Replace solib_global_lookup with gdbarch_iterate_over_objfiles_in_search_order
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
626ca2c0
CB
12019-09-20 Christian Biesinger <cbiesinger@google.com>
2
3 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
4 (_initialize_darwin_solib): Don't set
5 darwin_so_ops.lookup_lib_global_symbol.
6 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
7 set_gdbarch_iterate_over_objfiles_in_search_order.
8 (elf_lookup_lib_symbol): Rename to...
9 (svr4_iterate_over_objfiles_in_search_order): this, and update
10 to iterate semantics.
11 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
12 * solib.c (solib_global_lookup): Remove.
13 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
14 (solib_global_lookup): Remove.
15 * symtab.c (lookup_global_or_static_symbol): Remove call to
16 solib_global_lookup.
17
5a3a0d63
JB
182019-09-20 Joel Brobecker <brobecker@adacore.com>
19
20 * NEWS: Move entries about default MI version now being
21 version 3, and about the GDB/MI fix for multi-location
22 breakpoints to the "since GDB 8.3" section.
23
ffea1427
JB
242019-09-20 Joel Brobecker <brobecker@adacore.com>
25
26 GDB 8.3.1 released.
27
abf516c6
UW
282019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
29
30 * NEWS: Mention that Cell/B.E. debugging support was removed.
31 * MAINTAINERS: Remove spu target.
32
33 * config/djgpp/fnchange.lst: Remove entries for removed files.
34
35 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
36 spu-multiarch.o, and spu-tdep.o.
37 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
38 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
39 spu-multiarch.c, and spu-tdep.c.
40 * spu-linux-nat.c: Remove file.
41 * spu-multiarch.c: Remove file.
42 * spu-tdep.c: Remove file.
43 * spu-tdep.h: Remove file.
44 * solib-spu.c: Remove file.
45 * solib-spu.h: Remove file.
46
47 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
48 * configure.nat (spu-linux): Remove.
49 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
50 solib-multiarch.o from gdb_target_obs.
51 (spu*-*-*): Remove.
52
53 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
54 feature flag.
55 (ppc_linux_no_features): Update.
56 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
57 Cell/B.E. support.
58 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
59 (tdesc_powerpc_cell64l): Likewise.
60 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
61 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
62 Cell/B.E. support.
63 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
64 Do not include "features/rs6000/powerpc-cell32l.c" or
65 "features/rs6000/powerpc-cell64l.c".
66 (ppc_linux_spu_section): Remove.
67 (ppc_linux_core_read_description): Remove Cell/B.E. support.
68 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
69 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
70 (ppc_linux_spe_context_lookup): Remove.
71 (ppc_linux_spe_context_inferior_created): Remove.
72 (ppc_linux_spe_context_solib_loaded): Remove.
73 (ppc_linux_spe_context_solib_unloaded): Remove.
74 (ppc_linux_spe_context): Remove.
75 (struct ppu2spu_cache): Remove.
76 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
77 (struct ppu2spu_data): Remove.
78 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
79 ppu2spu_unwind): Remove.
80 (ppc_linux_init_abi): Remove Cell/B.E. support.
81 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
82
83 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
84 (rs6000/powerpc-cell64l-expedite): Likewise
85 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
86 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
87 rs6000/powerpc-cell64l.xml.
88 * features/rs6000/powerpc-cell32l.xml: Remove.
89 * features/rs6000/powerpc-cell64l.xml: Likewise.
90 * features/rs6000/powerpc-cell32l.c: Remove generated file.
91 * features/rs6000/powerpc-cell64l.c: Likewise.
92 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
93 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
94 * regformats/reg-spu.dat: Remove.
95
96 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
97 * corelow.c (struct spuid_list): Remove.
98 (add_to_spuid_list): Remove.
99 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
100 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
101 (remote_protocol_features): Remove associated entries.
102 (_initialize_remote): No longer initialize them.
103 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
104 * linux-nat.c (SPUFS_MAGIC): Remove.
105 (linux_proc_xfer_spu): Remove.
106 (spu_enumerate_spu_ids): Remove.
107 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
108 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
109 (linux_make_corefile_notes): No longer call it.
110
111 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
112 (cooked_write_test): Likewise.
113
78e8cb91
TT
1142019-09-20 Tom Tromey <tom@tromey.com>
115
116 * NEWS: Mention case-sensitivity of TUI commands.
117 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
118 (tui_set_win_height_command, parse_scrolling_args): Likewise.
119 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
120
f074b67e
TT
1212019-09-20 Tom Tromey <tom@tromey.com>
122
123 * tui/tui-source.c (tui_source_window::set_contents): Use
124 make_unique_xstrdup.
125 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
126 make_unique_xstrdup.
127
63c4bf19
TT
1282019-09-20 Tom Tromey <tom@tromey.com>
129
130 * tui/tui-data.c: Remove separator comments.
131 * tui/tui-layout.c: Remove separator comments.
132 * tui/tui-win.c: Remove separator comments.
133 * tui/tui-wingeneral.c: Remove separator comments.
134
43df9b2f
TT
1352019-09-20 Tom Tromey <tom@tromey.com>
136
137 * tui/tui.h (strcat_to_buf): Don't declare.
138 * tui/tui.c (strcat_to_buf): Remove.
139
7226433c
TT
1402019-09-20 Tom Tromey <tom@tromey.com>
141
142 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
143 from "fullname".
144 * tui/tui-source.c (tui_source_window::set_contents)
145 (tui_source_window::location_matches_p)
146 (tui_source_window::maybe_update): Update.
147
80df3337
TT
1482019-09-20 Tom Tromey <tom@tromey.com>
149
150 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
151 Update.
152 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
153 prefix.
154 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
155 (tui_data_window::line_from_reg_element_no)
156 (tui_data_window::first_reg_element_no_inline)
157 (tui_data_window::show_registers)
158 (tui_data_window::show_register_group)
159 (tui_data_window::display_registers_from)
160 (tui_data_window::display_registers_from_line)
161 (tui_data_window::first_data_item_displayed)
162 (tui_data_window::delete_data_content_windows)
163 (tui_data_window::erase_data_content)
164 (tui_data_window::do_scroll_vertical)
165 (tui_data_window::refresh_window)
166 (tui_data_window::check_register_values): Update.
167
9923f347
TT
1682019-09-20 Tom Tromey <tom@tromey.com>
169
170 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
171 (struct tui_locator_window) <full_name, proc_name>: Now
172 std::string.
173 * tui/tui-stack.c (tui_locator_window::make_status_line)
174 (tui_locator_window::set_locator_fullname)
175 (tui_locator_window::set_locator_info): Update.
176 * tui/tui-source.c (tui_source_window::set_contents)
177 (tui_source_window::showing_source_p): Update.
178
b76251ab
TT
1792019-09-20 Tom Tromey <tom@tromey.com>
180
181 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
182 Don't call tui_locator_win_info_ptr.
183
0891be08
TT
1842019-09-20 Tom Tromey <tom@tromey.com>
185
186 * tui/tui-win.c (tui_resize_all): Don't call refresh.
187
1b935acf
TT
1882019-09-20 Tom Tromey <tom@tromey.com>
189
190 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
191 height for locator.
192 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
193 * tui/tui-layout.c (show_source_disasm_command, show_data)
194 (show_source_or_disasm_and_command): Use 1 as height for locator.
195
9abd8a65
TT
1962019-09-20 Tom Tromey <tom@tromey.com>
197
198 * tui/tui.c (tui_enable): Update.
199 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
200 Update.
201 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
202 Update.
203 * tui/tui-data.c (win_resized): Now bool.
204 (tui_win_resized): Return bool.
205 (tui_set_win_resized_to): Accept a bool.
206
b5457826
TT
2072019-09-20 Tom Tromey <tom@tromey.com>
208
209 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
210 Change type of "refresh_values_only".
211 * tui/tui-regs.c (tui_data_window::show_register_group): Change
212 type of "refresh_values_only".
213
6b915f7d
TT
2142019-09-20 Tom Tromey <tom@tromey.com>
215
216 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
217 std::string.
218 (tui_disassemble): Add "pos" parameter.
219 (tui_disasm_window::set_contents): Simplify.
220
2ad52f6f
TT
2212019-09-20 Tom Tromey <tom@tromey.com>
222
223 * tui/tui-winsource.h (struct tui_source_window_base)
224 <show_source_content>: Now private.
225 * tui/tui-winsource.c
226 (tui_source_window_base::show_source_content): Don't handle empty
227 content case.
228
b3b1bde6
TT
2292019-09-20 Tom Tromey <tom@tromey.com>
230
231 * tui/tui-layout.c (show_source_disasm_command)
232 (show_source_or_disasm_and_command): Don't call
233 show_source_content.
234
71a25ed2
TT
2352019-09-20 Tom Tromey <tom@tromey.com>
236
237 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
238 Declare.
239 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
240 from tui_make_status_line.
241 (tui_locator_window::rerender): Update.
242
f8532154
TT
2432019-09-20 Tom Tromey <tom@tromey.com>
244
245 * tui/tui-stack.c (tui_make_status_line): Return std::string.
246 (tui_locator_window::rerender): Update.
247
2d81b349
TT
2482019-09-20 Tom Tromey <tom@tromey.com>
249
250 * tui/tui-winsource.h (struct tui_source_window_base)
251 <~tui_source_window_base>: Don't declare.
252 <fullname>: Remove.
253 * tui/tui-winsource.c (~tui_source_window_base): Remove.
254 * tui/tui-source.h (struct tui_source_window) <fullname>: New
255 member.
256 * tui/tui-source.c (tui_source_window::set_contents): Update.
257 (tui_source_window::location_matches_p)
258 (tui_source_window::maybe_update): Update.
259
f14bec58
TT
2602019-09-20 Tom Tromey <tom@tromey.com>
261
262 * tui/tui-winsource.h (~tui_source_element): Remove.
263 (tui_source_element): Update.
264 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
265 * tui/tui-winsource.c (tui_show_source_line): Update.
266 * tui/tui-source.c (tui_source_window::set_contents): Update.
267 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
268
78d5933a
TT
2692019-09-20 Tom Tromey <tom@tromey.com>
270
271 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
272 declare.
273 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
274 tui_clear_source_windows_detail.
275 * tui/tui-winsource.h (struct tui_source_window_base)
276 <clear_detail>: Don't declare.
277 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
278 Remove.
279 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
280
d4207696
TT
2812019-09-20 Tom Tromey <tromey@adacore.com>
282
283 PR ada/24919:
284 * block.c (contained_in): Fix final return value.
285
00f93c44
AM
2862019-09-20 Alan Modra <amodra@gmail.com>
287
288 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
289 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
290 (read_indirect_string_from_dwz): Use bfd accessor.
291 * dwarf2read.h (struct dwz_file <filename>): Likewise.
292 * machoread.c (macho_symfile_read_all_oso): Likewise.
293 * solib.c (solib_bfd_open): Likewise.
294
e4153ae6
CB
2952019-09-19 Christian Biesinger <cbiesinger@google.com>
296
297 * eval.c: Move declaration of overload_resolution to...
298 * value.h: ...here.
299
c7ae7675
CB
3002019-09-19 Christian Biesinger <cbiesinger@google.com>
301
302 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
303 * arm-linux-tdep.c: Likewise.
304 * arm-nbsd-nat.c: Likewise.
305 * arm-tdep.h: Declare arm_apcs_32.
306 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
307
e86f08d2
CB
3082019-09-19 Christian Biesinger <cbiesinger@google.com>
309
310 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
311 * dwarf2read.h: Declare dwarf_always_disassemble.
312
f64e2f40
TV
3132019-09-19 Tom de Vries <tdevries@suse.de>
314
315 PR gdb/25009
316 * source-cache.c (source_cache::ensure): Catch exception thrown during
317 construction of the highlighter.
318
fd361982
AM
3192019-09-18 Alan Modra <amodra@gmail.com>
320
321 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
322 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
323 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
324 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
325 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
326 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
327 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
328 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
329 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
330 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
331 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
332 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
333 * solib-spu.c, * solib-svr4.c, * solib-target.c,
334 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
335 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
336 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
337 * mi/mi-interp.c: Update throughout for bfd section macro and
338 function changes.
339 * gcore (gcore_create_callback): Use bfd_set_section_lma.
340 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
341
11061048
TT
3422019-09-18 Tom Tromey <tom@tromey.com>
343
344 * NEWS: Add entry.
345 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
346 call rl_initialize.
347 (tui_enable): Do not call rl_initialize.
348
7a27b85f
CG
3492019-09-18 Christian Groessler <chris@groessler.org>
350
351 * alpha-linux-nat.c: Include gdbarch.h.
352
f64eea3a
SM
3532019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
354
355 * ui-file.c: Include cli/cli-style.h.
356 (term_cli_styling): Remove cli_styling declaration.
357
e6f7f6d1
AM
3582019-09-18 Alan Modra <amodra@gmail.com>
359
360 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
361 to bfd_asymbol_section.
362
1d38e9d1
AM
3632019-09-18 Alan Modra <amodra@gmail.com>
364
365 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
366 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
367 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
368
90d92a63
AM
3692019-09-18 Alan Modra <amodra@gmail.com>
370
371 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
372 * spu-linux-nat.c (spu_bfd_open): Likewise.
373
a3d181d2
CB
3742019-09-18 Christian Biesinger <cbiesinger@google.com>
375
376 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
377 to bool to match definition in dwarf2read.c.
378
491144b5
CB
3792019-09-17 Christian Biesinger <cbiesinger@google.com>
380
381 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
382 (print_signatures): Likewise.
383 (trust_pad_over_xvs): Likewise.
384 * arch/aarch64-insn.c (aarch64_debug): Likewise.
385 * arch/aarch64-insn.h (aarch64_debug): Likewise.
386 * arm-linux-nat.c (arm_apcs_32): Likewise.
387 * arm-linux-tdep.c (arm_apcs_32): Likewise.
388 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
389 * arm-tdep.c (arm_debug): Likewise.
390 (arm_apcs_32): Likewise.
391 * auto-load.c (debug_auto_load): Likewise.
392 (auto_load_gdb_scripts): Likewise.
393 (global_auto_load): Likewise.
394 (auto_load_local_gdbinit): Likewise.
395 (auto_load_local_gdbinit_loaded): Likewise.
396 * auto-load.h (global_auto_load): Likewise.
397 (auto_load_local_gdbinit): Likewise.
398 (auto_load_local_gdbinit_loaded): Likewise.
399 * breakpoint.c (disconnected_dprintf): Likewise.
400 (breakpoint_proceeded): Likewise.
401 (automatic_hardware_breakpoints): Likewise.
402 (always_inserted_mode): Likewise.
403 (target_exact_watchpoints): Likewise.
404 (_initialize_breakpoint): Update.
405 * breakpoint.h (target_exact_watchpoints): Change to bool.
406 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
407 * cli/cli-cmds.c (trace_commands): Likewise.
408 * cli/cli-cmds.h (trace_commands): Likewise.
409 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
410 to bool*.
411 * cli/cli-logging.c (logging_overwrite): Change to bool.
412 (logging_redirect): Likewise.
413 (debug_redirect): Likewise.
414 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
415 (struct boolean_option_def) <get_var_address_cb_>: Change return type
416 to bool.
417 <boolean_option_def>: Update.
418 (struct flag_option_def): Change default type of Context to bool
419 from int.
420 <flag_option_def>: Change return type of var_address_cb_ to bool*.
421 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
422 (get_setshow_command_value_string): Likewise.
423 * cli/cli-style.c (cli_styling): Change to bool.
424 (source_styling): Likewise.
425 * cli/cli-style.h (source_styling): Likewise.
426 (cli_styling): Likewise.
427 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
428 to bool.
429 * command.h (var_types): Update comment.
430 (add_setshow_boolean_cmd): Change int* var argument to bool*.
431 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
432 bool.
433 (debug_compile_cplus_scopes): Likewise.
434 * compile/compile-internal.h (compile_debug): Likewise.
435 * compile/compile.c (compile_debug): Likewise.
436 (struct compile_options) <raw>: Likewise.
437 * cp-support.c (catch_demangler_crashes): Likewise.
438 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
439 (usr_cmd_cris_dwarf2_cfi): Likewise.
440 * csky-tdep.c (csky_debug): Likewise.
441 * darwin-nat.c (enable_mach_exceptions): Likewise.
442 * dcache.c (dcache_enabled_p): Likewise.
443 * defs.h (info_verbose): Likewise.
444 * demangle.c (demangle): Likewise.
445 (asm_demangle): Likewise.
446 * dwarf-index-cache.c (debug_index_cache): Likewise.
447 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
448 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
449 * dwarf2read.c (check_physname): Likewise.
450 (use_deprecated_index_sections): Likewise.
451 (dwarf_always_disassemble): Likewise.
452 * eval.c (overload_resolution): Likewise.
453 * event-top.c (set_editing_cmd_var): Likewise.
454 (exec_done_display_p): Likewise.
455 * event-top.h (set_editing_cmd_var): Likewise.
456 (exec_done_display_p): Likewise.
457 * exec.c (write_files): Likewise.
458 * fbsd-nat.c (debug_fbsd_lwp): Likewise
459 (debug_fbsd_nat): Likewise.
460 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
461 Likewise.
462 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
463 <backtrace_past_entry> Likewise.
464 * gdb-demangle.h (demangle): Likewise.
465 (asm_demangle): Likewise.
466 * gdb_bfd.c (bfd_sharing): Likewise.
467 * gdbcore.h (write_files): Likewise.
468 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
469 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
470 * gdbthread.h (print_thread_events): Likewise.
471 * gdbtypes.c (opaque_type_resolution): Likewise.
472 (strict_type_checking): Likewise.
473 * gnu-nat.c (gnu_debug_flag): Likewise.
474 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
475 * guile/scm-param.c (pascm_variable): Add boolval.
476 (add_setshow_generic): Update.
477 (pascm_param_value): Update.
478 (pascm_set_param_value_x): Update.
479 * hppa-tdep.c (hppa_debug): Change to bool..
480 * infcall.c (may_call_functions_p): Likewise.
481 (coerce_float_to_double_p): Likewise.
482 (unwind_on_signal_p): Likewise.
483 (unwind_on_terminating_exception_p): Likewise.
484 * infcmd.c (startup_with_shell): Likewise.
485 * inferior.c (print_inferior_events): Likewise.
486 * inferior.h (startup_with_shell): Likewise.
487 (print_inferior_events): Likewise.
488 * infrun.c (step_stop_if_no_debug): Likewise.
489 (detach_fork): Likewise.
490 (debug_displaced): Likewise.
491 (disable_randomization): Likewise.
492 (non_stop): Likewise.
493 (non_stop_1): Likewise.
494 (observer_mode): Likewise.
495 (observer_mode_1): Likewise.
496 (set_observer_mode): Update.
497 (sched_multi): Change to bool.
498 * infrun.h (debug_displaced): Likewise.
499 (sched_multi): Likewise.
500 (step_stop_if_no_debug): Likewise.
501 (non_stop): Likewise.
502 (disable_randomization): Likewise.
503 * linux-tdep.c (use_coredump_filter): Likewise.
504 (dump_excluded_mappings): Likewise.
505 * linux-thread-db.c (auto_load_thread_db): Likewise.
506 (check_thread_db_on_load): Likewise.
507 * main.c (captured_main_1): Update.
508 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
509 xx2_opt, boolean_opt>: Change to bool.
510 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
511 * maint.c (maintenance_profile_p): Likewise.
512 (per_command_time): Likewise.
513 (per_command_space): Likewise.
514 (per_command_symtab): Likewise.
515 * memattr.c (inaccessible_by_default): Likewise.
516 * mi/mi-main.c (mi_async): Likewise.
517 (mi_async_1): Likewise.
518 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
519 * nat/fork-inferior.h (startup_with_shell): Likewise.
520 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
521 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
522 * nios2-tdep.c (nios2_debug): Likewise.
523 * or1k-tdep.c (or1k_debug): Likewise.
524 * parse.c (parser_debug): Likewise.
525 * parser-defs.h (parser_debug): Likewise.
526 * printcmd.c (print_symbol_filename): Likewise.
527 * proc-api.c (procfs_trace): Likewise.
528 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
529 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
530 (set_parameter_value): Update.
531 (add_setshow_generic): Update.
532 * python/py-value.c (copy_py_bool_obj): Change argument from int*
533 to bool*.
534 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
535 int*.
536 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
537 * record-btrace.c (record_btrace_target::store_registers): Update.
538 * record-full.c (record_full_memory_query): Change to bool.
539 (record_full_stop_at_limit): Likewise.
540 * record-full.h (record_full_memory_query): Likewise.
541 * remote-notif.c (notif_debug): Likewise.
542 * remote-notif.h (notif_debug): Likewise.
543 * remote.c (use_range_stepping): Likewise.
544 (interrupt_on_connect): Likewise.
545 (remote_break): Likewise.
546 * ser-tcp.c (tcp_auto_retry): Likewise.
547 * ser-unix.c (serial_hwflow): Likewise.
548 * skip.c (debug_skip): Likewise.
549 * solib-aix.c (solib_aix_debug): Likewise.
550 * spu-tdep.c (spu_stop_on_load_p): Likewise.
551 (spu_auto_flush_cache_p): Likewise.
552 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
553 Likewise.
554 (struct info_print_options) <quiet>: Likewise.
555 * symfile-debug.c (debug_symfile): Likewise.
556 * symfile.c (auto_solib_add): Likewise.
557 (separate_debug_file_debug): Likewise.
558 * symfile.h (auto_solib_add): Likewise.
559 (separate_debug_file_debug): Likewise.
560 * symtab.c (basenames_may_differ): Likewise.
561 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
562 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
563 (struct info_types_options) <quiet>: Likewise.
564 * symtab.h (demangle): Likewise.
565 (basenames_may_differ): Likewise.
566 * target-dcache.c (stack_cache_enabled_1): Likewise.
567 (code_cache_enabled_1): Likewise.
568 * target.c (trust_readonly): Likewise.
569 (may_write_registers): Likewise.
570 (may_write_memory): Likewise.
571 (may_insert_breakpoints): Likewise.
572 (may_insert_tracepoints): Likewise.
573 (may_insert_fast_tracepoints): Likewise.
574 (may_stop): Likewise.
575 (auto_connect_native_target): Likewise.
576 (target_stop_and_wait): Update.
577 (target_async_permitted): Change to bool.
578 (target_async_permitted_1): Likewise.
579 (may_write_registers_1): Likewise.
580 (may_write_memory_1): Likewise.
581 (may_insert_breakpoints_1): Likewise.
582 (may_insert_tracepoints_1): Likewise.
583 (may_insert_fast_tracepoints_1): Likewise.
584 (may_stop_1): Likewise.
585 * target.h (target_async_permitted): Likewise.
586 (may_write_registers): Likewise.
587 (may_write_memory): Likewise.
588 (may_insert_breakpoints): Likewise.
589 (may_insert_tracepoints): Likewise.
590 (may_insert_fast_tracepoints): Likewise.
591 (may_stop): Likewise.
592 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
593 (make_thread_apply_all_options_def_group): Change argument from int*
594 to bool*.
595 (thread_apply_all_command): Update.
596 (print_thread_events): Change to bool.
597 * top.c (confirm): Likewise.
598 (command_editing_p): Likewise.
599 (history_expansion_p): Likewise.
600 (write_history_p): Likewise.
601 (info_verbose): Likewise.
602 * top.h (confirm): Likewise.
603 (history_expansion_p): Likewise.
604 * tracepoint.c (disconnected_tracing): Likewise.
605 (circular_trace_buffer): Likewise.
606 * typeprint.c (print_methods): Likewise.
607 (print_typedefs): Likewise.
608 * utils.c (debug_timestamp): Likewise.
609 (sevenbit_strings): Likewise.
610 (pagination_enabled): Likewise.
611 * utils.h (sevenbit_strings): Likewise.
612 (pagination_enabled): Likewise.
613 * valops.c (overload_resolution): Likewise.
614 * valprint.h (struct value_print_options) <prettyformat_arrays,
615 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
616 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
617 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
618 Likewise.
619 * windows-nat.c (new_console): Likewise.
620 (cygwin_exceptions): Likewise.
621 (new_group): Likewise.
622 (debug_exec): Likewise.
623 (debug_events): Likewise.
624 (debug_memory): Likewise.
625 (debug_exceptions): Likewise.
626 (useshell): Likewise.
627 * windows-tdep.c (maint_display_all_tib): Likewise.
628 * xml-support.c (debug_xml): Likewise.
629
f1b620e9
MG
6302019-09-17 Mike Gulick <mgulick@mathworks.com>
631
632 * source.c (prepare_path_for_appending): New function.
633 (openp): Make use of new function.
634 (find_and_open_source): Search for the compilation directory and
635 source file as a relative path beneath the directory search path.
636
67f3ed6a
AB
6372019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
638
639 * source-cache.c (source_cache::get_line_charpos): Catch
640 exceptions and return false, this matches the behaviour documented
641 in the header file.
642
74332189
JB
6432019-09-17 Joel Brobecker <brobecker@adacore.com>
644
645 * ada-tasks.c (info_task): Remove quoting of the task's name.
646
f2f24aa9
CB
6472019-09-16 Christian Biesinger <cbiesinger@google.com>
648
649 * symfile.c (auto_solib_add): Replace comment with a reference
650 to the header file.
651
6a062a93
CB
6522019-09-14 Christian Biesinger <cbiesinger@google.com>
653
654 * NEWS: Mention that gdb can now be compiled with Python 3
655 on Windows.
656
ec6c8338
AB
6572019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
658
659 * maint.c (maint_print_section_data::maint_print_section_data):
660 Force use of 'float log10 (float)' by casting the argument to
661 float.
662
aa17805f
AB
6632019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
664
665 * maint.c: Add 'cmath' include.
666 (struct maint_print_section_data): New structure.
667 (print_section_index): New function.
668 (print_bfd_section_info): Add header comment, small whitespace
669 cleanup, and update to call new print_section_index function.
670 (print_objfile_section_info): Likewise.
671 (maint_obj_section_from_bfd_section): New function.
672 (print_bfd_section_info_maybe_relocated): New function.
673 (maintenance_info_sections): Add header comment, always use
674 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
675
3dd9bb46
AB
6762019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
677
678 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
679 inner scope, add check that the objfile has psymtabs before
680 checking psymtabs_addrmap.
681 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
682
4993045d
PW
6832019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
684
685 * NEWS: Announce that Ada task names are now shown at more places,
686 and between quotes (except in info task output).
687 * gdb/ada-tasks.c (task_to_str): New function.
688 (display_current_task_id): Call task_to_str.
689 (task_command_1): Likewise.
690 (print_ada_task_info): In non-mi mode, Properly align headers and data
691 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
692
7a289707
RO
6932019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
694
695 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
696 prstatus.pr_lwp.pr_info instead of making it up.
697
f2aec7f6
CB
6982019-09-11 Christian Biesinger <cbiesinger@google.com>
699
700 * auto-load.c (auto_load_expand_dir_vars): Update.
701 * defs.h (gdb_datadir): Change to std::string.
702 (python_libdir): Likewise.
703 (relocate_gdb_directory): Change return type to std::string.
704 * guile/guile.c (gdbscm_data_directory): Update.
705 (initialize_scheme_side): Update.
706 * jit.c (jit_reader_dir): Change to std::string.
707 (jit_reader_load_command): Update.
708 * main.c (gdb_datadir): Change to std::string.
709 (python_libdir): Likewise.
710 (set_gdb_data_directory): Update.
711 (relocate_path): Change to return std::string.
712 (relocate_gdb_directory): Change to return std::string.
713 (relocate_gdbinit_path_maybe_in_datadir): Update.
714 (captured_main_1): Update.
715 * python/python.c (do_start_initialization): Update.
716 * top.c (show_gdb_datadir): Update.
717 * xml-syscall.c (xml_init_syscalls_info): Update.
718 (init_syscalls_info): Update.
719
9224a013
CB
7202019-09-11 Christian Biesinger <cbiesinger@google.com>
721
722 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
723 out of get_init_files.
724 (get_init_files): Update.
725
f48cd836
CB
7262019-09-11 Christian Biesinger <cbiesinger@google.com>
727
728 * main.c (get_init_files): Change to use std::string.
729 (captured_main_1): Update.
730 (print_gdb_help): Update.
731
9cab7ecd
AT
7322019-09-11 Ali Tamur <tamur@google.com>
733
734 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
735 implementation.
736
67547d89
CB
7372019-09-11 Christian Biesinger <cbiesinger@google.com>
738
739 * dbxread.c (read_dbx_symtab): Update.
740 * dwarf2read.c (load_partial_dies): Update.
741 * mdebugread.c (parse_partial_symbols): Update.
742 (handle_psymbol_enumerators): Update.
743 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
744 * psymtab.c (add_psymbol_to_bcache): Likewise.
745 (add_psymbol_to_list): Likewise.
746 * symtab.c (symbol_set_names): Likewise.
747 * symtab.h (symbol_set_names): Likewise.
748 * xcoffread.c (scan_xcoff_symtab): Update.
749
64b2d4a0
TT
7502019-09-11 Tom Tromey <tom@tromey.com>
751
752 * symfile-mem.c (symbol_file_add_from_memory): Use
753 bfd_set_filename.
754 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
755 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
756
3b00ef10
TT
7572019-09-10 Tom Tromey <tromey@adacore.com>
758
759 * dwarf-index-write.c (write_psymbols): Extend error message.
760 (debug_names::insert): Add Ada code.
761 (debug_names::write_psymbols): Remove Ada check.
762 (debug_names) <m_string_obstack>: New member.
763 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
764 (gdb_index_symbol_name_matcher::matches): Remove.
765 (mapped_index_base::find_name_components_bounds): Add "lang"
766 parameter.
767 (mapped_index_base::build_name_components): Also split names
768 according to Ada syntax.
769 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
770 type of "match_callback".
771 (check_match, check_find_bounds_finds)
772 (dw2_expand_symtabs_matching): Update.
773 (dw2_debug_names_iterator): Add new constructor.
774 (dw2_debug_names_map_matching_symbols): New function.
775 (dw2_debug_names_expand_symtabs_matching): Update.
776 (dwarf2_debug_names_functions): Use
777 dw2_debug_names_map_matching_symbols.
778
aa391654
TT
7792019-09-10 Tom Tromey <tromey@adacore.com>
780
781 * dwarf2read.c (dw2_get_file_names_reader): Add the
782 CU's file name to the results.
783
b054970d
TT
7842019-09-10 Tom Tromey <tromey@adacore.com>
785
786 * ada-lang.c (add_nonlocal_symbols): Combine calls to
787 map_matching_symbols. Update.
788 * dwarf2read.c (dw2_map_matching_symbols): Update.
789 * psymtab.c (match_partial_symbol): Change type; update.
790 (psym_map_matching_symbols): Likewise.
791 * symfile-debug.c (debug_qf_map_matching_symbols): Change
792 type; update.
793 * symfile.h (struct quick_symbol_functions)
794 <map_matching_symbols>: Change "name" to be a lookup_name_info.
795 Remove "match".
796
6a3dbf1b
TT
7972019-09-10 Tom Tromey <tromey@adacore.com>
798
799 * psymtab.c (map_block): Remove.
800 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
801 * symtab.c (iterate_over_symbols_terminated): New function.
802 * symtab.c (iterate_over_symbols_terminated): Declare.
803
6969f124
TT
8042019-09-10 Tom Tromey <tromey@adacore.com>
805
806 * ada-lang.c (ada_iterate_over_symbols): Return bool.
807 * language.h (struct language_defn) <la_iterate_over_symbols>:
808 Return bool.
809 * symtab.c (iterate_over_symbols): Return bool.
810 * symtab.h (iterate_over_symbols): Return bool.
811
199b4314
TT
8122019-09-10 Tom Tromey <tromey@adacore.com>
813
814 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
815 (add_nonlocal_symbols): Update.
816 * dwarf2read.c (dw2_map_matching_symbols): Change type.
817 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
818 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
819 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
820 Change type of "callback". Remove "data".
821
a084a2a6
AT
822
8232019-09-09 Ali Tamur <tamur@google.com>
824
825 * dwarf2read.c (comp_unit_head): Update comment.
826 (dwarf2_dwo_name): New function declaration.
827 (dwarf_unit_type_name): New function declaration.
828 (read_comp_unit_head): Add support for new compilation units,
829 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
830 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
831 (currently named as "signature") in their header. Also clarify error
832 messages.
833 (lookup_dwo_id): New function. Returns the dwo id of the given
834 compile unit.
835 (lookup_dwo_unit): Use the new lookup_dwo_id function.
836 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
837 functions.
838 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
839 (dwarf2_dwo_name): Get the dwo name if present.
840 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
841 purposes.
842
25a2915e
TT
8432019-09-09 Tom Tromey <tom@tromey.com>
844
845 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
846
e4df0874
PW
8472019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
848
849 * python/python.c (do_start_initialization): Make progname_copy static,
850 to avoid a leak report.
851
8634b462
TT
8522019-09-08 Tom Tromey <tom@tromey.com>
853
854 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
855
c7f839cb
SM
8562019-09-07 Simon Marchi <simon.marchi@efficios.com>
857
858 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
859 Change type to gdb::optional<block_enum>.
860 (dw2_symtab_iter_init): Change block_index parameter type
861 to gdb::optional<block_enum>.
862 (dw2_lookup_symbol): Change block_index parameter
863 type to block_enum.c
864 (dw2_debug_names_lookup_symbol): Likewise.
865 * psymtab.c (psym_lookup_symbol): Likewise.
866 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
867 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
868 Likewise.
869
ead0e69a
CB
8702019-09-06 Christian Biesinger <cbiesinger@google.com>
871
872 * defs.h (relocate_gdb_directory): Change int to bool in
873 signature and rename flag to relocatable.
874 * main.c (relocate_path): Likewise.
875 (relocate_gdb_directory): Likewise.
876
b16c44de
AM
8772019-09-06 Alan Modra <amodra@gmail.com>
878
879 * coffread.c (coff_symfile_read): Constify filename variable.
880 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
881 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
882 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
883 * solib.c (reload_shared_libraries_1): Likewise.
884 * symfile.c (reread_symbols): Likewise.
885 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
886 * solib-darwin.c (darwin_bfd_open): Likewise.
887 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
888
06ff036e
AB
8892019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
890
891 * psymtab.c (print_partial_symbols): Handle missing domain_enum
892 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
893
4e962e74
TT
8942019-09-03 Tom Tromey <tromey@adacore.com>
895
896 * ada-valprint.c (ada_val_print_num): Don't recurse for range
897 types.
898 (has_negatives): Unbias a range type bound.
899 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
900 * gdbtypes.c (operator==): Handle new field.
901 (create_range_type): Add "bias" parameter.
902 (create_static_range_type, resolve_dynamic_range): Update.
903 * gdbtypes.h (struct range_bounds) <bias>: New member.
904 (create_range_type): Add bias parameter.
905 * printcmd.c (print_scalar_formatted): Unbias range types.
906 * value.c (unpack_long): Unbias range types.
907 (pack_long): Bias range types.
908
d90b8f26
AH
9092019-09-02 Alan Hayward <alan.hayward@arm.com>
910
911 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
912 probe arguments.
913
fe01123e
AH
9142019-09-02 Alan Hayward <alan.hayward@arm.com>
915
916 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
917 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
918 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
919 (compile_probe_arg): Likewise.
920 * probe.h (get_argument_count): Likewise.
921 * solib-svr4.c (solib_event_probe_action): Likewise.
922 * stap-probe.c (stap_probe::get_argument_count): Likewise.
923
e661ef01
AH
9242019-09-02 Alan Hayward <alan.hayward@arm.com>
925
926 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
927 code to here...
928 (svr4_create_solib_event_breakpoints): ...from here.
929
47a536d9
SDJ
9302019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
931
932 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
933 suffix from warning message.
934
d6a00eba
TT
9352019-08-30 Tom Tromey <tom@tromey.com>
936
937 * tui/tui-winsource.h (struct tui_source_window_base)
938 <refresh_all>: Don't declare.
939 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
940 Remove.
941 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
942 tui_show_locator_content.
943 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
944 declare.
945 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
946 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
947 declare.
948
55b2657b
TT
9492019-08-30 Tom Tromey <tom@tromey.com>
950
951 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
952
12a8555a
TT
9532019-08-30 Tom Tromey <tom@tromey.com>
954
955 * tui/tui-stack.c (_initialize_tui_stack): Move later.
956 Remove unnecessary forward declarations.
957
900ac242
TT
9582019-08-30 Tom Tromey <tom@tromey.com>
959
960 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
961 rerender.
962 (tui_update_locator_fullname, tui_show_frame_info): Don't call
963 tui_show_locator_content.
964
99ab33fb
TT
9652019-08-30 Tom Tromey <tom@tromey.com>
966
967 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
968 (tui_locator_window::rerender): Rewrite using body of previous
969 tui_show_locator_content.
970
e594a5d1
TT
9712019-08-30 Tom Tromey <tom@tromey.com>
972
973 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
974 set_locator_fullname>: New methods.
975 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
976 Rename from tui_set_locator_fullname.
977 (tui_locator_window::set_locator_info): Rename from
978 tui_set_locator_info. Return bool.
979 (tui_update_locator_fullname, tui_show_frame_info): Update.
980
715bb467
TT
9812019-08-30 Tom Tromey <tom@tromey.com>
982
983 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
984
772f3f03
TT
9852019-08-30 Tom Tromey <tom@tromey.com>
986
987 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
988 call touchwin.
989
108e13ab
TT
9902019-08-30 Tom Tromey <tom@tromey.com>
991
992 * tui/tui-wingeneral.c (box_win): Assume win_info and
993 win_info->handle cannot be NULL.
994
cdaa6eb4
TT
9952019-08-30 Tom Tromey <tom@tromey.com>
996
997 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
998 refresh_window>: Declare.
999 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1000 resize.
1001 (tui_data_item_window::rerender): Rename from
1002 tui_display_register.
1003 (tui_data_item_window::refresh_window): New method.
1004 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1005 no-op.
1006
89df7f90
TT
10072019-08-30 Tom Tromey <tom@tromey.com>
1008
1009 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1010 regs_column_count, current_group>: Move later. Now private.
1011 <get_current_group>: New method.
1012 * tui/tui-regs.c (tui_reg_command): Update.
1013 * tui/tui-layout.c (tui_set_layout): Update.
1014
1bf2866a
TT
10152019-08-30 Tom Tromey <tom@tromey.com>
1016
1017 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1018 (tui_data_window::rerender): Don't call
1019 check_and_display_highlight_if_needed.
1020 (tui_data_window::refresh_all): Remove call to
1021 erase_data_content.
1022
0670413d
TT
10232019-08-30 Tom Tromey <tom@tromey.com>
1024
1025 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1026 (tui_data_window::display_registers_from)
1027 (tui_data_window::display_reg_element_at_line)
1028 (tui_data_window::display_registers_from_line): Remove checks of
1029 "empty".
1030
18bb55c7
TT
10312019-08-30 Tom Tromey <tom@tromey.com>
1032
1033 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1034 Don't declare.
1035 * tui/tui-regs.c (tui_data_window::show_registers): Call
1036 rerender.
1037 (tui_data_window::rerender): Rename from display_all_data.
1038 (tui_data_window::rerender): Remove old implementation.
1039
1f6d2f10
TT
10402019-08-30 Tom Tromey <tom@tromey.com>
1041
1042 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1043 text.
1044 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1045
16d01f9c
BW
10462019-08-29 Bernhard Wodok <barto@gmx.net>
1047 Sergio Durigan Junior <sergiodj@redhat.com>
1048
1049 PR win32/24284
1050 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1051
d8f27c60
AB
10522019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1053
1054 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1055 when searching for types.
1056
1f20c35e
AB
10572019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1058
1059 * f-lang.c (f_language_defn): Use f_print_typedef.
1060 * f-lang.h (f_print_typedef): Declare.
1061 * f-typeprint.c (f_print_typedef): Define.
1062
550105b7
CB
10632019-08-27 Christian Biesinger <cbiesinger@google.com>
1064
1065 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1066
4acfdd20
AB
10672019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1068
1069 * cli/cli-utils.c (info_print_options_defs): Delete.
1070 (make_info_print_options_def_group): Delete.
1071 (extract_info_print_options): Delete.
1072 (info_print_command_completer): Delete.
1073 (info_print_args_help): Add extra parameter, and optionally
1074 include text about -n flag.
1075 * cli/cli-utils.h (struct info_print_options): Delete.
1076 (extract_info_print_options): Delete declaration.
1077 (info_print_command_completer): Delete declaration.
1078 (info_print_args_help): Add extra parameter, extend header
1079 comment.
1080 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1081 search_symbols.
1082 * stack.c (struct info_print_options): New type.
1083 (info_print_options_defs): New file scoped variable.
1084 (make_info_print_options_def_group): New static function.
1085 (info_print_command_completer): New static function.
1086 (info_locals_command): Update to use new local functions.
1087 (info_args_command): Likewise.
1088 (_initialize_stack): Add extra parameter to calls to
1089 info_print_args_help.
1090 * symtab.c (search_symbols): Add extra parameter, use this to
1091 possibly excluse non-debug symbols.
1092 (symtab_symbol_info): Add extra parameter, which is passed on to
1093 search_symbols.
1094 (struct info_print_options): New type.
1095 (info_print_options_defs): New file scoped variable.
1096 (make_info_print_options_def_group): New static function.
1097 (info_print_command_completer): New static function.
1098 (info_variables_command): Update to use local functions, and pass
1099 extra parameter through to symtab_symbol_info.
1100 (info_functions_command): Likewise.
1101 (info_types_command): Pass additional argument through to
1102 symtab_symbol_info.
1103 (rbreak_command): Pass extra argument to search_symbols.
1104 (_initialize_symtab): Add extra arguments for calls to
1105 info_print_args_help, and update help text for 'info variables',
1106 'whereis', and 'info functions' commands.
1107 * symtab.h (search_symbols): Add extra argument to declaration.
1108 * NEWS: Mention new flags.
1109
9aa55206
CB
11102019-08-26 Christian Biesinger <cbiesinger@google.com>
1111
1112 * symtab.c (lookup_static_symbol): Call the new function (and move
1113 it down to be next to lookup_global_symbol).
1114 (struct global_sym_lookup_data): Add block_enum member and rename to...
1115 (struct global_or_static_sym_lookup_data): ...this.
1116 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1117 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1118 (lookup_symbol_global_or_static_iterator_cb): ...this.
1119 (lookup_global_or_static_symbol): New function.
1120 (lookup_global_symbol): Call new function.
1121
5c31b358
TV
11222019-08-26 Tom de Vries <tdevries@suse.de>
1123
1124 PR c++/24852
1125 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1126 when pc_probe.prob == NULL.
1127
23c13d42
SM
11282019-08-25 Simon Marchi <simon.marchi@efficios.com>
1129
1130 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1131 variable symbol_linkage to symbol_linkage_.
1132
beadd3e8
SM
11332019-08-25 Simon Marchi <simon.marchi@efficios.com>
1134
1135 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1136 represent whether the symbol is static, dynamic, or we don't
1137 know.
1138
e3ec872f
YS
11392019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1140
1141 * gdb/rx-tdep.c (rx_register_names): New.
1142 (rx_register_name): Delete.
1143 (rx_psw_type): Delete.
1144 (rx_fpsw_type): Delete.
1145 (rx_register_type): Delete.
1146 (rx_gdbarch_init): Convert target-descriptions.
1147 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1148 * gdb/features/Makefile: Add rx.xml.
1149 * gdb/features/rx.xml: New.
1150 * gdb/features/rx.c: Generated.
1151 * gdb/NEWS: Mention target description support.
1152
d0509ba4
CB
11532019-08-22 Christian Biesinger <cbiesinger@google.com>
1154
1155 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1156 *slot_ptr.
1157
2d41fa11
SDJ
11582019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1159
1160 * configure.ac: Don't check for 'dlfcn.h' (moved to
1161 gdbsupport/common.m4).
1162 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1163 'gdbsupport/'.
1164 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1165 * compile/compile-c-support.c: Include
1166 'gdbsupport/gdb-dlfcn.h'.
1167 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1168 * gdb-dlfcn.c: Move to...
1169 * gdbsupport/gdb-dlfcn.c: ... here.
1170 * gdb-dlfcn.h: Move to...
1171 * gdbsupport/gdb-dlfcn.h: ... here.
1172
de8af808
SL
11732019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1174
1175 * nios2-tdep.c (struct reg_value): Improve comments. Make
1176 the offset field signed.
1177
27204489
CB
11782019-08-22 Christian Biesinger <cbiesinger@google.com>
1179
1180 * python/lib/gdb/__init__.py (_execute_file): New function.
1181 * python/python.c (python_run_simple_file): Call gdb._execute_file
1182 on Windows.
1183
43771869
AB
11842019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1185
1186 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1187 all uses as this was never set to anything but a zero value.
1188
26c957f1
PA
11892019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1190
1191 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1192
c07aae6e
CB
11932019-08-21 Christian Biesinger <cbiesinger@google.com>
1194
1195 * tui/tui-data.h (tui_gen_win_info): Add an =default
1196 move constructor, required by some GCC versions.
1197
3960cb7a
JF
11982019-08-21 Jinke Fan <fanjinke51@yeah.net>
1199
1200 * go32-nat.c (go32_sysinfo): Add hygon_p.
1201
04c72a68
TT
12022019-08-20 Tom Tromey <tom@tromey.com>
1203
1204 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1205 line_from_reg_element_no, first_reg_element_no_inline,
1206 display_all_data, delete_data_content_windows,
1207 erase_data_content>: Now private.
1208
072272ce
TT
12092019-08-20 Tom Tromey <tom@tromey.com>
1210
1211 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1212 (tui_unhighlight_win, tui_highlight_win)
1213 (tui_win_info::make_window): Update.
1214 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1215
973961bd
TT
12162019-08-20 Tom Tromey <tom@tromey.com>
1217
1218 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1219 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1220 (MAX_PID_WIDTH): Move to tui-stack.c.
1221 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1222 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1223 (MAX_PID_WIDTH): Move from tui-data.h.
1224
ab0e1f1a
TT
12252019-08-20 Tom Tromey <tom@tromey.com>
1226
1227 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1228 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1229 (box_win): Update.
1230 (tui_gen_win_info::make_window): Rename from tui_make_window.
1231 (tui_win_info::make_window): New method.
1232 (tui_gen_win_info::make_visible): Update.
1233 * tui/tui-source.c (tui_source_window::set_contents): Update.
1234 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1235 (tui_data_window::display_registers_from): Update.
1236 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1237 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1238 Declare.
1239 <can_box>: Remove.
1240 <title>: Remove.
1241 (struct tui_win_info) <make_window>: Declare.
1242 <can_box>: Now virtual.
1243 <title>: New member.
1244 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1245 * tui/tui-command.c (tui_cmd_window::resize): Update.
1246
100c2bf3
TT
12472019-08-20 Tom Tromey <tom@tromey.com>
1248
1249 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1250 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1251 (tui_data_window::check_register_values): Update.
1252
fa4dc567
TT
12532019-08-20 Tom Tromey <tom@tromey.com>
1254
1255 * tui/tui-regs.h (struct tui_data_window): Use
1256 DISABLE_COPY_AND_ASSIGN.
1257 <regs_content>: Change type, removing unique_ptr.
1258 <tui_data_window>: Add move constructor.
1259 * tui/tui-regs.c (tui_data_window::show_registers)
1260 (tui_data_window::show_register_group)
1261 (tui_data_window::display_registers_from)
1262 (tui_data_window::display_registers_from)
1263 (tui_data_window::first_data_item_displayed)
1264 (tui_data_window::delete_data_content_windows)
1265 (tui_data_window::rerender, tui_data_window::refresh_window)
1266 (tui_data_window::check_register_values): Update.
1267
ca02d7c8
TT
12682019-08-20 Tom Tromey <tom@tromey.com>
1269
1270 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1271 show_register_group>: Declare.
1272 (tui_show_register_group): Don't declare.
1273 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1274 tui_show_registers.
1275 (tui_data_window::show_register_group): Rename from
1276 tui_show_register_group.
1277 (tui_data_window::check_register_values, tui_reg_command):
1278 Update.
1279 * tui/tui-layout.c (tui_set_layout): Update.
1280
63356bfd
TT
12812019-08-20 Tom Tromey <tom@tromey.com>
1282
1283 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1284 Declare.
1285 (tui_check_register_values): Don't declare.
1286 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1287 from tui_check_register_values.
1288 * tui/tui-hooks.c (tui_register_changed): Update.
1289
42cc14a7
TT
12902019-08-20 Tom Tromey <tom@tromey.com>
1291
1292 * tui/tui-regs.c (tui_reg_layout): Move later.
1293 (tui_show_registers): Don't enable TUI mode or change layout.
1294
b9ad3686
TT
12952019-08-20 Tom Tromey <tom@tromey.com>
1296
1297 * tui/tui-regs.h (struct tui_data_item_window)
1298 <~tui_data_item_window>: Remove.
1299 <content>: Now a unique_xmalloc_ptr.
1300 * tui/tui-regs.c (tui_register_format): Return a
1301 unique_xmalloc_ptr.
1302 (tui_get_register): Update.
1303 (~tui_data_item_window): Remove.
1304 (tui_data_window::display_registers_from, tui_display_register):
1305 Update.
1306 * tui/tui-io.h (tui_expand_tabs): Update.
1307 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1308 Remove "col" parameter.
1309
8e114aab
TT
13102019-08-20 Tom Tromey <tom@tromey.com>
1311
1312 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1313 field.
1314 * tui/tui-regs.c (~tui_data_item_window): Update.
1315
1a4f81dd
TT
13162019-08-20 Tom Tromey <tom@tromey.com>
1317
1318 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1319 earlier.
1320
0f8d8876
TT
13212019-08-20 Tom Tromey <tom@tromey.com>
1322
1323 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1324
605dc2c2
TT
13252019-08-20 Tom Tromey <tom@tromey.com>
1326
1327 * tui/tui-source.h (struct tui_source_window): Update.
1328 * tui/tui-regs.c (tui_show_registers): Update.
1329 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1330 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1331 (NO_REGS_STRING): Remove defines.
1332
aedbe3bb
CM
13332019-08-20 Conrad Meyer <cem@FreeBSD.org>
1334
1335 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1336 unnecessary thread walk if remote doesn't support the packet.
1337
7ce8f214
TT
13382019-08-19 Tom Tromey <tromey@adacore.com>
1339
1340 * python/py-value.c (value_has_field): Fix indentation.
1341
f21c2bd7
TT
13422019-08-19 Tom Tromey <tromey@adacore.com>
1343
1344 * printcmd.c (do_one_display, info_display_command): Update.
1345 * block.h (contained_in): Return bool. Add allow_nested
1346 parameter.
1347 * block.c (contained_in): Return bool. Add allow_nested
1348 parameter.
1349
d806ea2d
TT
13502019-08-19 Tom Tromey <tom@tromey.com>
1351
1352 * configure: Rebuild.
1353 * configure.ac: Disallow the combination of -static-libstdc++ and
1354 source highlight.
1355 * source-cache.c (get_language_name): Handle rust.
1356 (source_cache::get_source_lines): Ignore highlighting exceptions.
1357
398fdd60
TT
13582019-08-16 Tom Tromey <tom@tromey.com>
1359
1360 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1361 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1362 (struct tui_source_window_base) <make_visible, refresh_window,
1363 resize>: Remove methods.
1364 <execution_info>: Remove field.
1365 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1366 (tui_show_source_line, tui_source_window_base)
1367 (~tui_source_window_base): Update.
1368 (tui_source_window_base::resize)
1369 (tui_source_window_base::make_visible)
1370 (tui_source_window_base::refresh_window): Remove.
1371 (tui_source_window_base::update_exec_info): Update.
1372 * tui/tui-source.c (tui_source_window::set_contents): Update.
1373 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1374
e699d331
TT
13752019-08-16 Tom Tromey <tom@tromey.com>
1376
1377 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1378 deprecated_query_hook.
1379
bb01dbfc
TT
13802019-08-16 Tom Tromey <tom@tromey.com>
1381
1382 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1383 (tui_update_source_windows_with_line): Update.
1384 * tui/tui-source.h (struct tui_source_window)
1385 <show_symtab_source>: Declare.
1386 (tui_show_symtab_source): Don't declare.
1387 * tui/tui-source.c (tui_show_symtab_source): Rename from
1388 tui_show_symtab_source.
1389
81c82c4b
TT
13902019-08-16 Tom Tromey <tom@tromey.com>
1391
1392 * tui/tui-winsource.h (struct tui_source_window_base)
1393 <set_contents>: Declare.
1394 * tui/tui-winsource.c
1395 (tui_source_window_base::update_source_window_as_is): Update.
1396 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1397 Declare.
1398 (tui_set_source_content): Don't declare.
1399 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1400 tui_set_source_content.
1401 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1402 Declare.
1403 (tui_set_disassem_content): Don't declare.
1404 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1405 tui_set_disassem_content.
1406
2ddaf614
TT
14072019-08-16 Tom Tromey <tom@tromey.com>
1408
1409 * tui/tui-winsource.h (struct tui_source_window_base)
1410 <update_breakpoint_info>: Declare.
1411 (tui_update_breakpoint_info): Don't declare.
1412 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1413 (tui_update_all_breakpoint_info): Update.
1414 (tui_source_window_base::update_breakpoint_info): Rename from
1415 tui_update_breakpoint_info.
1416 (tui_source_window_base::update_exec_info): Update.
1417
017f9828
TT
14182019-08-16 Tom Tromey <tom@tromey.com>
1419
1420 * tui/tui-winsource.h (struct tui_source_window_base)
1421 <update_source_window>: Declare.
1422 (tui_update_source_window): Don't declare.
1423 * tui/tui-winsource.c
1424 (tui_source_window_base::update_source_window): Rename from
1425 tui_update_source_window.
1426 (tui_source_window_base::rerender): Update.
1427 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1428 * tui/tui-disasm.c (tui_show_disassem)
1429 (tui_show_disassem_and_update_source)
1430 (tui_disasm_window::maybe_update): Update.
1431
ed8358e9
TT
14322019-08-16 Tom Tromey <tom@tromey.com>
1433
1434 * tui/tui-winsource.h (struct tui_source_window_base)
1435 <update_source_window_as_is>: Declare.
1436 (tui_update_source_window_as_is): Don't declare.
1437 * tui/tui-winsource.c (tui_update_source_window): Update
1438 (tui_source_window_base::update_source_window_as_is): Rename from
1439 tui_update_source_window_as_is.
1440 (tui_source_window_base::refill): Update.
1441 * tui/tui-source.c (tui_show_symtab_source): Update.
1442 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1443 Update.
1444
20149b6b
TT
14452019-08-16 Tom Tromey <tom@tromey.com>
1446
1447 * tui/tui-winsource.h (tui_update_source_window)
1448 (tui_update_source_window_as_is): Remove "noerror" parameter.
1449 * tui/tui-winsource.c (tui_update_source_window)
1450 (tui_update_source_window_as_is): Remove "noerror" parameter.
1451 (tui_update_source_windows_with_addr)
1452 (tui_update_source_windows_with_line)
1453 (tui_source_window_base::rerender)
1454 (tui_source_window_base::refill): Update.
1455 * tui/tui-source.h (tui_set_source_content)
1456 (tui_show_symtab_source): Remove "noerror" parameter.
1457 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1458 parameter.
1459 (tui_show_symtab_source): Likewise.
1460 (tui_source_window::maybe_update): Update.
1461 * tui/tui-disasm.c (tui_show_disassem)
1462 (tui_show_disassem_and_update_source)
1463 (tui_disasm_window::do_scroll_vertical)
1464 (tui_disasm_window::maybe_update): Update.
1465
2d83e710
TT
14662019-08-16 Tom Tromey <tom@tromey.com>
1467
1468 * tui/tui.c (tui_is_window_visible): Update.
1469 * tui/tui-wingeneral.c (tui_make_window)
1470 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1471 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1472 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1473 (tui_set_win_height_command, parse_scrolling_args): Update.
1474 * tui/tui-source.c (tui_source_window::style_changed): Update.
1475 * tui/tui-regs.c (tui_show_registers)
1476 (tui_data_window::first_data_item_displayed)
1477 (tui_data_window::delete_data_content_windows)
1478 (tui_check_register_values, tui_reg_command): Update.
1479 * tui/tui-disasm.c (tui_show_disassem): Update.
1480 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1481 method.
1482 <is_visible>: Remove field.
1483 * tui/tui-data.c (tui_next_win, tui_prev_win)
1484 (tui_delete_invisible_windows): Update.
1485
d4ab829a
TT
14862019-08-16 Tom Tromey <tom@tromey.com>
1487
1488 * tui/tui-winsource.h (struct tui_source_window_base)
1489 <m_has_locator>: Remove.
1490 * tui/tui-layout.c (show_source_disasm_command, show_data)
1491 (show_source_or_disasm_and_command): Update.
1492
aa7ca1bb
AH
14932019-08-16 Alan Hayward <alan.hayward@arm.com>
1494
1495 * NEWS (Other MI changes): New subsection.
1496 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1497 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1498 * arch-utils.c (default_get_pc_address_flags): New function.
1499 * arch-utils.h (default_get_pc_address_flags): New declaration.
1500 * gdbarch.sh: Add get_pc_address_flags.
1501 * gdbarch.c: Regenerate.
1502 * gdbarch.h: Likewise.
1503 * stack.c (print_pc): New function.
1504 (print_frame_info) (print_frame): Call print_pc.
1505
6eac171f
TV
15062019-08-16 Tom de Vries <tdevries@suse.de>
1507
1508 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1509 print_objfile_section_info.
1510
3df505f6
TT
15112019-08-15 Tom Tromey <tom@tromey.com>
1512
1513 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1514 calling update_cmdwin_start_line.
1515 * tui/tui-winsource.h (struct tui_source_window_base)
1516 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1517 <rerender>: Declare.
1518 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1519 Call rerender.
1520 (tui_source_window_base::set_new_height): Remove.
1521 (tui_source_window_base::rerender): Rename from
1522 do_make_visible_with_new_height.
1523 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1524 resize method.
1525 (tui_win_info::make_invisible_and_set_new_height)
1526 (tui_win_info::make_visible_with_new_height): Remove.
1527 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1528 Declare.
1529 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1530 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1531 do_make_visible_with_new_height>: Don't declare.
1532 <rerender>: Declare.
1533 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1534 set_new_height.
1535 (tui_data_window::do_make_visible_with_new_height): Remove.
1536 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1537 call tui_show_locator_content.
1538 (tui_gen_win_info::resize): Call rerender.
1539 (show_source_or_disasm_and_command): Don't call
1540 tui_show_locator_content.
1541 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1542 method.
1543 (struct tui_win_info) <rerender>: Declare.
1544 <set_new_height, make_invisible_and_set_new_height,
1545 make_visible_with_new_height>: Don't declare.
1546 * tui/tui-data.c (tui_win_list::rerender): New method.
1547 * tui/tui-command.h (struct tui_cmd_window)
1548 <do_make_visible_with_new_height>: Don't declare.
1549 * tui/tui-command.c
1550 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1551
272560b5
TT
15522019-08-15 Tom Tromey <tromey@adacore.com>
1553
1554 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1555 * ada-lang.c (ada_enum_name): Likewise.
1556
08235187
CB
15572019-08-15 Christian Biesinger <cbiesinger@google.com>
1558
1559 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1560 leading underscore.
1561 (GdbOutputErrorFile): Likewise.
1562 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1563 accordingly.
1564 (execute_unwinders): Rename to have a leading underscore.
1565 (auto_load_packages): Likewise.
1566 (global scope): Adjust call to auto_load_packages accordingly.
1567 (GdbSetPythonDirectory): Likewise.
1568 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1569 instead of execute_unwinders.
1570
db502012
TT
15712019-08-15 Tom Tromey <tom@tromey.com>
1572
1573 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1574 (show_data): Don't change window visibility.
1575 (tui_gen_win_info::resize): Remove special case for command
1576 window. Use wresize, when available.
1577 (show_source_or_disasm_and_command): Don't change window
1578 visibility.
1579 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1580 <make_visible>: New method.
1581 * tui/tui-command.c (tui_cmd_window::resize): New method.
1582
3891b65e
TT
15832019-08-15 Tom Tromey <tom@tromey.com>
1584
1585 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1586 (struct tui_source_windows): New.
1587 * tui/tui-winsource.c (tui_display_main): Update.
1588 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1589 (new_height_ok, parse_scrolling_args): Update.
1590 * tui/tui-layout.c (show_layout, show_data): Update.
1591 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1592 (tui_add_to_source_windows): Don't declare.
1593 * tui/tui-data.c (source_windows, tui_source_windows)
1594 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1595
ee556432
TT
15962019-08-15 Tom Tromey <tom@tromey.com>
1597
1598 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1599 Rename from reset.
1600 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1601 * tui/tui-layout.c (show_source_disasm_command, show_data):
1602 Update.
1603 (tui_gen_win_info::resize): Rename.
1604 (show_source_or_disasm_and_command): Update.
1605 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1606 reset.
1607
46f438e3
TT
16082019-08-15 Tom Tromey <tom@tromey.com>
1609
1610 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1611 * tui/tui-interp.c (tui_interp::init): Don't call
1612 tui_initialize_static_data.
1613 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1614
f4ce562c
TT
16152019-08-15 Tom Tromey <tom@tromey.com>
1616
1617 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1618 examine tui_win_list.
1619
c398c3d0
TT
16202019-08-15 Tom Tromey <tom@tromey.com>
1621
1622 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1623 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1624 tui_clear_source_content.
1625 (tui_clear_source_content): Remove.
1626 (tui_source_window_base::do_erase_source_content): Hoist call to
1627 content.clear().
1628 * tui/tui-stack.c (tui_show_frame_info): Don't call
1629 tui_clear_source_content.
1630
e25d2004
TT
16312019-08-15 Tom Tromey <tom@tromey.com>
1632
1633 * tui/tui-winsource.h (struct tui_source_window_base)
1634 <do_erase_source_content>: New method.
1635 <erase_source_content>: New method.
1636 (tui_erase_source_content): Don't declare.
1637 * tui/tui-winsource.c (tui_clear_source_content): Update.
1638 (tui_source_window_base::do_erase_source_content): Rename from
1639 tui_erase_source_content.
1640 (tui_source_window_base::show_source_content): Update.
1641 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1642 * tui/tui-source.h (struct tui_source_window)
1643 <erase_source_content>: New method.
1644 * tui/tui-disasm.h (struct tui_disasm_window)
1645 <erase_source_content>: New method.
1646
002f15c2
TT
16472019-08-15 Tom Tromey <tom@tromey.com>
1648
1649 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1650 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1651 constructor.
1652 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1653 * tui/tui-source.c (tui_set_source_content): Update.
1654 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1655
c9033fe8
TT
16562019-08-15 Tom Tromey <tom@tromey.com>
1657
1658 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1659 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1660 tui-source.c.
1661 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1662 Declare.
1663 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1664 method.
1665 (tui_source_window::maybe_update): Update.
1666
088f37dd
TT
16672019-08-15 Tom Tromey <tom@tromey.com>
1668
1669 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1670 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1671 tui-disasm.c.
1672 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1673 Declare.
1674 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1675 method.
1676 (tui_disasm_window::maybe_update): Update.
1677
a54700c6
TT
16782019-08-15 Tom Tromey <tom@tromey.com>
1679
1680 * tui/tui-winsource.h (struct tui_source_window_base)
1681 <maybe_update>: Declare.
1682 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1683 method.
1684 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1685 Declare.
1686 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1687 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1688 Declare.
1689 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1690
e2a678a5
TT
16912019-08-15 Tom Tromey <tom@tromey.com>
1692
1693 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1694
f2dda477
TT
16952019-08-15 Tom Tromey <tom@tromey.com>
1696
1697 * tui/tui-wingeneral.c: Include tui-stack.h.
1698 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1699 (struct tui_locator_window): Move from tui-data.h.
1700 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1701 (tui_initialize_static_data): Move from tui-data.c.
1702 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1703 (struct tui_locator_window): Move to tui-stack.c.
1704 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1705 (tui_initialize_static_data): Move to tui-stack.c.
1706
ed4a1084
TT
17072019-08-15 Tom Tromey <tom@tromey.com>
1708
1709 * tui/tui-layout.c (show_source_disasm_command)
1710 (show_source_or_disasm_and_command): Use make_visible method, not
1711 tui_make_window.
1712 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1713 Remove.
1714
65962b20
TT
17152019-08-15 Tom Tromey <tom@tromey.com>
1716
1717 * tui/tui-wingeneral.h (tui_make_window): Update.
1718 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1719 parameter.
1720 (tui_gen_win_info::make_visible): Update.
1721 * tui/tui-regs.c (tui_data_window::display_registers_from):
1722 Update.
1723 * tui/tui-layout.c (show_source_disasm_command)
1724 (show_source_or_disasm_and_command): Update.
1725 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1726 (enum tui_box): Remove.
1727 (struct tui_win_info) <can_box>: New method.
1728 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1729 method.
1730
2208ee91
TV
17312019-08-15 Tom de Vries <tdevries@suse.de>
1732
1733 * linux-nat-trad.c: Include gdbarch.h.
1734
75faf5c4
AH
17352019-08-14 Alan Hayward <alan.hayward@arm.com>
1736
1737 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1738 register sizes.
1739
b1c896b3
TT
17402019-08-14 Tom Tromey <tromey@adacore.com>
1741
1742 * darwin-nat.c: Include gdbarch.h.
1743 * darwin-nat-info.c: Include gdbarch.h.
1744
6405cd73
TT
17452019-08-13 Tom Tromey <tom@tromey.com>
1746
1747 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1748 Remove.
1749 * tui/tui-data.c (tui_initialize_static_data): Update.
1750
5216580d
TT
17512019-08-13 Tom Tromey <tom@tromey.com>
1752
1753 * tui/tui-winsource.h (struct tui_exec_info_window)
1754 <~tui_exec_info_window, maybe_allocate_content, get_content,
1755 m_content>: Remove.
1756 (struct tui_source_window_base) <set_exec_info_content,
1757 show_exec_info_content>: Don't declare.
1758 * tui/tui-winsource.c
1759 (tui_exec_info_window::maybe_allocate_content): Remove.
1760 (tui_source_window_base::update_exec_info): Rename from
1761 set_exec_info_content.
1762 (tui_source_window_base::show_exec_info_content)
1763 (tui_source_window_base::update_exec_info): Remove.
1764
93858ad3
TT
17652019-08-13 Tom Tromey <tom@tromey.com>
1766
1767 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1768 declare.
1769 * tui/tui-winsource.c (tui_update_source_window_as_is)
1770 (tui_update_source_windows_with_addr, tui_erase_source_content):
1771 Update.
1772 (tui_clear_exec_info_content): Remove.
1773
e321e7ce
TT
17742019-08-13 Tom Tromey <tom@tromey.com>
1775
1776 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1777 declare.
1778 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1779 call tui_erase_exec_info_content.
1780 (tui_clear_exec_info_content): Rename from
1781 tui_erase_exec_info_content.
1782 (tui_clear_exec_info_content): Delete.
1783
8270ac62
TT
17842019-08-13 Tom Tromey <tom@tromey.com>
1785
1786 * tui/tui-winsource.h (struct tui_source_window_base)
1787 <show_exec_info_content>: Declare.
1788 (tui_show_exec_info_content): Don't declare.
1789 * tui/tui-winsource.c
1790 (tui_source_window_base::show_exec_info_content): Rename from
1791 tui_show_exec_info_content.
1792 (tui_source_window_base::update_exec_info): Update.
1793
7b56485d
TT
17942019-08-13 Tom Tromey <tom@tromey.com>
1795
1796 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1797 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1798 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1799 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1800 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1801 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1802 ... here.
1803
7ba913dc
TT
18042019-08-13 Tom Tromey <tom@tromey.com>
1805
1806 * tui/tui-winsource.h (struct tui_source_window_base)
1807 <update_exec_info>: Declare.
1808 (tui_update_exec_info): Don't declare.
1809 * tui/tui-winsource.c (tui_update_source_window_as_is)
1810 (tui_source_window_base::refresh_all)
1811 (tui_update_all_breakpoint_info): Update.
1812 (tui_source_window_base::update_exec_info): Rename from
1813 tui_update_exec_info.
1814 * tui/tui-stack.c (tui_show_frame_info): Update.
1815
37a4a131
TT
18162019-08-13 Tom Tromey <tom@tromey.com>
1817
1818 * tui/tui-winsource.h (struct tui_source_window_base)
1819 <set_exec_info_content>: Declare.
1820 (tui_set_exec_info_content): Don't declare.
1821 * tui/tui-winsource.c
1822 (tui_source_window_base::set_exec_info_content): Rename from
1823 tui_set_exec_info_content.
1824 (tui_update_exec_info): Update.
1825
0bd27e07
TT
18262019-08-13 Tom Tromey <tom@tromey.com>
1827
1828 * tui/tui-winsource.h (struct tui_source_window_base)
1829 <show_source_content>: Declare.
1830 (tui_show_source_content): Don't declare.
1831 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1832 (tui_source_window_base::show_source_content): Rename from
1833 tui_show_source_content.
1834 (tui_source_window_base::refresh_all): Update.
1835 * tui/tui-layout.c (show_source_disasm_command)
1836 (show_source_or_disasm_and_command): Update.
1837
b4ef5aeb
TT
18382019-08-13 Tom Tromey <tom@tromey.com>
1839
1840 * tui/tui-winsource.c (tui_erase_source_content)
1841 (tui_show_source_content, tui_source_window_base::refresh_all):
1842 Update.
1843 * tui/tui-wingeneral.h
1844 (tui_check_and_display_highlight_if_needed): Don't declare.
1845 * tui/tui-wingeneral.c
1846 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1847 check_and_display_highlight_if_needed.
1848 * tui/tui-win.c (tui_rehighlight_all)
1849 (tui_win_info::make_visible_with_new_height): Update.
1850 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1851 (tui_data_window::erase_data_content)
1852 (tui_data_window::display_all_data): Update.
1853 * tui/tui-data.h (struct tui_win_info)
1854 <check_and_display_highlight_if_needed>: Declare.
1855
fede5273
TT
18562019-08-13 Tom Tromey <tom@tromey.com>
1857
1858 * tui/tui-win.c (tui_resize_all): Call
1859 tui_delete_invisible_windows.
1860 * tui/tui-layout.c (show_layout): Call
1861 tui_delete_invisible_windows.
1862 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1863 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1864
22c3f490
TT
18652019-08-13 Tom Tromey <tom@tromey.com>
1866
1867 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1868 tui_add_win_to_layout.
1869
16cb7910
TT
18702019-08-13 Tom Tromey <tom@tromey.com>
1871
1872 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1873 * tui/tui-layout.c (tui_default_win_height): Now static.
1874
cc0c3ffb
TT
18752019-08-13 Tom Tromey <tom@tromey.com>
1876
1877 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1878 single switch.
1879 (show_source_disasm_command, show_source_or_disasm_and_command):
1880 Don't check current layout.
1881
3f3ffe54
TT
18822019-08-13 Tom Tromey <tom@tromey.com>
1883
1884 * tui/tui-wingeneral.c (make_all_visible): Remove.
1885 (tui_make_all_invisible): Simplify.
1886 * tui/tui-layout.c (tui_make_all_invisible): Move from
1887 tui-wingeneral.c; simplify.
1888 (show_layout): Hoist call to tui_make_all_invisible.
1889 (show_data): Don't call tui_make_all_invisible.
1890
69258091
TT
18912019-08-13 Tom Tromey <tom@tromey.com>
1892
1893 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1894 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1895
62cf57fe
TT
18962019-08-13 Tom Tromey <tom@tromey.com>
1897
1898 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1899 tui-data.c.
1900 (show_source_disasm_command, show_data)
1901 (show_source_or_disasm_and_command): Don't use
1902 tui_set_current_layout_to.
1903 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1904 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1905 tui-layout.c.
1906 (tui_set_current_layout_to): Remove.
1907
2afade5d
TT
19082019-08-13 Tom Tromey <tom@tromey.com>
1909
1910 * tui/tui-layout.c (tui_set_layout): Update.
1911 * tui/tui-data.h (struct tui_layout_def): Remove.
1912 (tui_layout_def): Don't declare.
1913 * tui/tui-data.c (layout_def): Remove.
1914 (tui_layout_def): Remove.
1915
a3504e96
TT
19162019-08-13 Tom Tromey <tom@tromey.com>
1917
1918 * tui/tui-winsource.h (struct tui_source_window_base)
1919 <clear_detail>: No longer "override".
1920 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1921 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1922 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1923 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1924 Remove.
1925 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1926
29c92911
TT
19272019-08-13 Tom Tromey <tromey@adacore.com>
1928
1929 * tracepoint.c: Don't include readline.h or history.h.
1930
86c6b807
TT
19312019-08-12 Tom Tromey <tom@tromey.com>
1932
1933 * configure: Rebuild.
1934 * configure.ac: Check for readline 7.
1935 * NEWS: Mention readline 7 requirement.
1936 * README: Update.
1937
5db2718c
TT
19382019-08-12 Tom Tromey <tom@tromey.com>
1939
1940 * mingw-hdep.c (gdb_select): Remove readline hack.
1941
dac36daf
PFC
19422019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1943
1944 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1945 when the function fails.
1946
1022c627
AA
19472019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1948
1949 * s390-tdep.c (s390_type_align): New function.
1950 (s390_gdbarch_init): Set it as type_align gdbarch method.
1951
eba4caf2
TV
19522019-08-09 Tom de Vries <tdevries@suse.de>
1953
1954 PR gdb/24591
1955 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1956 pc_low with relocation offset.
1957
123cd851
TT
19582019-08-07 Tom Tromey <tromey@adacore.com>
1959
1960 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1961 (print_frame_args): Update.
1962 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1963 Update.
1964 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1965 * frame.h (struct frame_arg): Add initializers.
1966 <error>: Now a unique_xmalloc_ptr.
1967
3d31bc39
AH
19682019-08-07 Alan Hayward <alan.hayward@arm.com>
1969
1970 * NEWS: Expand the Pointer Authentication entry.
1971 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1972 (aarch64_frame_unmask_lr): ... to this.
1973 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1974 Call aarch64_frame_unmask_lr.
1975 * frame.c (struct frame_info): Add "masked" variable.
1976 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1977 (fprint_frame): Check for masked pc.
1978 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1979 declarations.
1980 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1981 * stack.c (print_frame): Check for masked pc.
1982
0cf9feb9
TT
19832019-08-06 Tom Tromey <tom@tromey.com>
1984
1985 * stabsread.c (patch_block_stabs, read_one_struct_field)
1986 (read_enum_type): Use obstack_strndup.
1987 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1988 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1989 * dwarf2read.c (guess_full_die_structure_name)
1990 (anonymous_struct_prefix): Use obstack_strndup.
1991 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1992 * c-exp.y (yylex): Use obstack_strndup.
1993 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1994 (write_var_or_type): Use obstack_strndup.
1995
efba19b0
TT
19962019-08-06 Tom Tromey <tom@tromey.com>
1997
1998 * symfile.c (reread_symbols): Use obstack_strdup.
1999 * stabsread.c (read_type): Use obstack_strdup.
2000 * gdb_obstack.h (obstack_strdup): New overload.
2001 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2002 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2003 (dwarf2_canonicalize_name): Use obstack_strdup.
2004 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2005 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2006 Use obstack_strdup.
2007
f25102f7
TT
20082019-08-06 Tom Tromey <tom@tromey.com>
2009
2010 * gdb_obstack.h (obstack_strdup): Define.
2011 * gdb_obstack.c (obstack_strdup): Don't define.
2012
021887d8
TT
20132019-08-06 Tom Tromey <tom@tromey.com>
2014
2015 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2016 obstack_strdup.
2017 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2018 obstack_strdup.
2019 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2020 * stabsread.c (common_block_start): Use obstack_strdup.
2021 * objfiles.c (set_objfile_main_name, objfile): Use
2022 obstack_strdup.
2023 * namespace.c (add_using_directive): Use obstack_strdup.
2024 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2025 * jit.c (finalize_symtab): Use obstack_strdup.
2026 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2027 (guess_partial_die_structure_name, partial_die_info::fixup)
2028 (dwarf2_name): Use obstack_strdup.
2029 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2030 obstack_strdup.
2031 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2032 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2033 obstack_strdup.
2034 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2035
d2834edc
PW
20362019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2037
2038 * unittests/help-doc-selftests.c: New file.
2039 * Makefile.in: Add the new file.
2040
590042fc
PW
20412019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2042
2043 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2044 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2045 the full first line, except when FOR_VALUE_PREFIX. In this case,
2046 the trailing '.' is not output, and the first character is uppercased.
2047 (print_help_for_command): Update call to print_doc_line.
2048 (print_doc_of_command): Likewise.
2049 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2050 * cli/cli-option.c (append_indented_doc): Do not append newline.
2051 (build_help_option): Append newline after first appended_indented_doc
2052 only if a second call is done.
2053 (build_help): Append 2 new lines before each option, except the first
2054 one.
2055 * compile/compile.c (_initialize_compile): Add new lines after
2056 %OPTIONS%, when not at the end of the help.
2057 Change help doc or code
2058 producing the help doc to respect the invariants.
2059 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2060 Also removed the new line after 'Options:', as all other commands
2061 do not put an empty line between 'Options:' and the first option.
2062 * printcmd.c (_initialize_printcmd): Likewise.
2063 * stack.c (_initialize_stack): Likewise.
2064 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2065 incorrectly telling COMMAND is optional.
2066 * ada-lang.c (_initialize_ada_language): Change help doc or code
2067 producing the help doc to respect the invariants.
2068 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2069 * breakpoint.c (_initialize_breakpoint): Likewise.
2070 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2071 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2072 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2073 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2074 _initialize_cli_style): Likewise.
2075 * corelow.c (core_target_info): Likewise.
2076 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2077 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2078 * filesystem.c (_initialize_filesystem): Likewise.
2079 * frame.c (_initialize_frame): Likewise.
2080 * gnu-nat.c (add_task_commands): Likewise.
2081 * infcall.c (_initialize_infcall): Likewise.
2082 * infcmd.c (_initialize_infcmd): Likewise.
2083 * interps.c (_initialize_interpreter): Likewise.
2084 * language.c (_initialize_language): Likewise.
2085 * linux-fork.c (_initialize_linux_fork): Likewise.
2086 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2087 * maint.c (_initialize_maint_cmds): Likewise.
2088 * memattr.c (_initialize_mem): Likewise.
2089 * printcmd.c (_initialize_printcmd): Likewise.
2090 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2091 _RegEx): Likewise.
2092 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2093 * record-btrace.c (_initialize_record_btrace): Likewise.
2094 * record-full.c (_initialize_record_full): Likewise.
2095 * record.c (_initialize_record): Likewise.
2096 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2097 * regcache.c (_initialize_regcache): Likewise.
2098 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2099 _initialize_remote): Likewise.
2100 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2101 * serial.c (_initialize_serial): Likewise.
2102 * skip.c (_initialize_step_skip): Likewise.
2103 * source.c (_initialize_source): Likewise.
2104 * stack.c (_initialize_stack): Likewise.
2105 * symfile.c (_initialize_symfile): Likewise.
2106 * symtab.c (_initialize_symtab): Likewise.
2107 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2108 * top.c (init_main): Likewise.
2109 * tracefile-tfile.c (tfile_target_info): Likewise.
2110 * tracepoint.c (_initialize_tracepoint): Likewise.
2111 * tui/tui-win.c (_initialize_tui_win): Likewise.
2112 * utils.c (add_internal_problem_command): Likewise.
2113 * valprint.c (value_print_option_defs): Likewise.
2114
404f2902
FCE
21152019-08-06 Frank Ch. Eigler <fche@redhat.com>
2116
2117 PR build/24886
2118 * configure.ac: Drop enable-libmcheck support.
2119 * configure, config.in: Rebuild.
2120 * libmcheck.m4: Remove.
2121 * acinclude.m4: Don't include it.
2122 * Makefile.in: Don't distribute it.
2123 * top.c (print_gdb_configuration): Don't mention it.
2124
046bebe1
TT
21252019-08-06 Tom Tromey <tom@tromey.com>
2126
2127 * utils.c (set_output_style): Sometimes pass stream to
2128 emit_style_escape.
2129 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2130 * record-btrace.c (btrace_insn_history): Update.
2131 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2132 method.
2133 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2134 Update initializers.
2135 <m_uiout>: New field.
2136 <m_di>: Move lower.
2137 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2138 Remove "uiout" parameter.
2139 (dump_insns): Update.
2140 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2141 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2142
ddbcedf5
CB
21432019-08-06 Christian Biesinger <cbiesinger@google.com>
2144
2145 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2146 (error_in_psymtab_expansion): Likewise.
2147 (lookup_symbol_via_quick_fns): Likewise.
2148 (basic_lookup_transparent_type_quick): Likewise.
2149 (basic_lookup_transparent_type_1): Likewise.
2150
b08b16c8
TT
21512019-08-06 Tom Tromey <tromey@adacore.com>
2152
2153 * source.c (last_source_error): Now bool.
2154 (print_source_lines_base): Make "noprint" bool. Only open
2155 source file when last_source_visited changes.
2156
cb44333d
TT
21572019-08-06 Tom Tromey <tromey@adacore.com>
2158
2159 * annotate.c (annotate_source_line): Use g_source_cache.
2160 * source-cache.c (source_cache::get_plain_source_lines): Change
2161 parameters. Populate m_offset_cache.
2162 (source_cache::ensure): New method.
2163 (source_cache::get_line_charpos): New method.
2164 (extract_lines): Move lower. Change parameters.
2165 (source_cache::get_source_lines): Move lower.
2166 * source-cache.h (class source_cache): Update comment.
2167 <get_line_charpos>: New method.
2168 <get_source_lines>: Update comment.
2169 <clear>: Clear m_offset_cache.
2170 <get_plain_source_lines>: Change parameters.
2171 <ensure>: New method
2172 <m_offset_cache>: New member.
2173 * source.c (forget_cached_source_info_for_objfile): Update.
2174 (info_source_command): Use g_source_cache.
2175 (find_source_lines, open_source_file_with_line_charpos): Remove.
2176 (print_source_lines_base, search_command_helper): Use g_source_cache.
2177 * source.h (open_source_file_with_line_charpos): Don't declare.
2178 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2179 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2180 Use g_source_cache.
2181
872dceaa
TT
21822019-08-06 Tom Tromey <tromey@adacore.com>
2183
2184 * source-cache.c (source_cache::get_plain_source_lines):
2185 Remove "first_line" and "last_line" parameters.
2186 (source_cache::get_source_lines): Cache plain text.
2187 * source-cache.h (class source_cache)
2188 <get_plain_source_lines>: Update.
2189
269249d9
TT
21902019-08-06 Tom Tromey <tromey@adacore.com>
2191
2192 * source-cache.c (extract_lines): No longer a method.
2193 Changed type of parameter. Include final newline.
2194 (selftests::extract_lines_test): New function.
2195 (_initialize_source_cache): Likewise.
2196 * source-cache.h (class source_cache)
2197 <extract_lines>: Don't declare.
2198
c0e8dcd8
TT
21992019-08-06 Tom Tromey <tromey@adacore.com>
2200
2201 * breakpoint.c (init_breakpoint_sal): Update.
2202 (breakpoint): Update.
2203 * breakpoint.h (struct breakpoint) <filter>: Now a
2204 unique_xmalloc_ptr.
2205
0b27c27d
CB
22062019-08-05 Christian Biesinger <cbiesinger@google.com>
2207
2208 * NEWS: Mention dictionary access on blocks.
2209 * python/py-block.c (blpy_getitem): New function.
2210 (block_object_as_mapping): New struct.
2211 (block_object_type): Use new struct for tp_as_mapping field.
2212
4ee94178
CB
22132019-08-05 Christian Biesinger <cbiesinger@google.com>
2214
2215 * objfiles.h (objfile): Add a comment describing partial symbols.
2216
8abfcabc
TT
22172019-08-05 Tom Tromey <tromey@adacore.com>
2218
2219 * compile/compile.c (_initialize_compile): Use _(), not N_().
2220 * thread.c (_initialize_thread): Use _(), not N_().
2221 * stack.c (_initialize_stack): Use _(), not N_().
2222 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2223
2b79f376
SM
22242019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2225
2226 * dwarf2read.c (struct dw2_symtab_iterator):
2227 <want_specific_block>: Remove.
2228 <block_index>: Change type to gdb::optional.
2229 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2230 change type of BLOCK_INDEX parameter to gdb::optional.
2231 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2232 (dw2_lookup_symbol): Don't pass argument for
2233 WANT_SPECIFIC_BLOCK.
2234 (dw2_expand_symtabs_for_function): Don't pass argument for
2235 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2236 (class dw2_debug_names_iterator)
2237 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2238 parameter, change BLOCK_INDEX type to gdb::optional.
2239 <m_want_specific_block>: Remove.
2240 <m_block_index>: Change type to gdb::optional.
2241 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2242 gdb::optional. Re-write in function of gdb::optional.
2243 (dw2_debug_names_lookup_symbol): Don't pass argument for
2244 WANT_SPECIFIC_BLOCK.
2245 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2246 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2247 BLOCK_INDEX.
2248
ae60f04e
PW
22492019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2250
2251 * NEWS: Mention changes to "info sources" command.
2252
28cd9371
PW
22532019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2254
2255 * symtab.c (filename_partial_match_opts): New struct type.
2256 (struct output_source_filename_data): New members
2257 regexp, c_regexp, partial_match.
2258 (output_source_filename): Use new members to decide to print file.
2259 (info_sources_option_defs): New variable.
2260 (make_info_sources_options_def_group, print_info_sources_header,
2261 info_sources_command_completer):
2262 New functions.
2263 (info_sources_command): Read new optional arguments.
2264 (_initialize_symtab): Update info sources help.
2265
ca683e3a
AO
22662019-08-02 Alexandre Oliva <oliva@adacore.com>
2267
2268 * ada-lang.c (exception_support_info_v0): Renamed from...
2269 (default_exception_support_info): ... this. Create new
2270 definition for v1.
2271 (ada_has_this_exception_support): Look up catch_handlers_sym.
2272 (ada_exception_support_info_sniffer): Try v0 after default.
2273
f1264162
TT
22742019-08-01 Tom Tromey <tromey@adacore.com>
2275
2276 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2277 gdbarch.h.
2278
0a7b2485
CB
22792019-08-01 Christian Biesinger <cbiesinger@google.com>
2280
2281 * s12z-tdep.c: Fix include path for s12z-opc.h.
2282
c6bdbeb7
AH
22832019-08-01 Alan Hayward <alan.hayward@arm.com>
2284
2285 * NEWS: Require GNU make 3.82.
2286
a2bd7b82
TT
22872019-07-16 Tom Tromey <tom@tromey.com>
2288
2289 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2290 declare.
2291
aa3b6533
TT
22922019-07-30 Tom Tromey <tromey@adacore.com>
2293
2294 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2295
a1530dc7
KB
22962019-07-30 Kevin Buettner <kevinb@redhat.com>
2297
2298 * printcmd.c (print_address_symbolic): Print negative offsets.
2299 (build_address_symbolic): Force signed arithmetic when computing
2300 offset.
2301
2906593f
CB
23022019-07-30 Christian Biesinger <cbiesinger@google.com>
2303
2304 PR/24474: Add a function to lookup static variables.
2305 * NEWS: Mention this new function.
2306 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2307 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2308 * python/python.c (python_GdbMethods): Add new function.
2309
c620ed88
CB
23102019-07-29 Christian Biesinger <cbiesinger@google.com>
2311
2312 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2313 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2314 (objfpy_lookup_static_symbol): New function.
2315 (objfile_object_methods): Add new functions.
2316
bc4268a5
PW
23172019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2318
2319 * NEWS: Mention 'set|show print frame-info'. Mention new
2320 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2321 backtrace argument. Mention that python frame filtering code
2322 is now consistent with what 'backtrace' command prints.
2323
4b5e8d19
PW
23242019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2325
2326 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2327 comments.
2328 (print_frame_info_auto, print_frame_info_source_line,
2329 print_frame_info_location, print_frame_info_source_and_location,
2330 print_frame_info_location_and_address, print_frame_info_short_location):
2331 New declarations.
2332 (struct frame_print_options): New member print_frame_info.
2333 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2334 * stack.h (get_user_print_what_frame_info): New declaration.
2335 (frame_show_address): New declaration.
2336 * stack.c (print_frame_arguments_choices): New value 'presence'.
2337 (print_frame_info_auto, print_frame_info_source_line,
2338 print_frame_info_location, print_frame_info_source_and_location,
2339 print_frame_info_location_and_address, print_frame_info_short_location,
2340 print_frame_info_choices, print_frame_info_print_what): New definitions.
2341 (print_frame_args): Only print dots for args if print frame-arguments
2342 is 'presence'.
2343 (frame_print_option_defs): New element for "frame-info".
2344 (get_user_print_what_frame_info): New function.
2345 (frame_show_address): Make non static. Move comment to stack.h.
2346 (print_frame_info_to_print_what): New function.
2347 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2348 to decide what to print.
2349 (backtrace_command_1): Handle the new print_frame_arguments_presence
2350 value.
2351 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2352 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2353 (py_print_frame): In non-mi mode, use LOCATION as default for
2354 print_what, similarly to frame information printed directly by
2355 backtrace command. Handle frame-info user option in non MI mode.
2356
6bdfee81
KB
23572019-07-27 Kevin Buettner <kevinb@redhat.com>
2358
2359 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2360 Add case for debugging 32-bit target on 64-bit host. Revise
2361 comment.
2362
98a617f8
KB
23632019-07-27 Kevin Buettner <kevinb@redhat.com>
2364
2365 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2366 instead of find_function_entry_range_from_pc.
2367
567238c9
KB
23682019-07-27 Kevin Buettner <kevinb@redhat.com>
2369
2370 * stack.c (find_frame_funname): Remove code which preferred
2371 minsym over symtab sym in "certain pathological cases".
2372
2dc80cf8
KB
2373 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2374 parameter. Change type of "do_demangle" to bool.
2375 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2376 Pass suitable "prefer_sym_over_minsym" flag to
2377 build_address_symbolic(). Don't output "+" for negative offsets.
2378 * printcmd.c (print_address_symbolic): Update invocation of
2379 build_address_symbolic to include a "prefer_sym_over_minsym"
2380 flag.
2381 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2382 Restrict cases in which use of minimal symbol is preferred to that
2383 of a found symbol. Update comments.
2384
1aff7173
KB
2385 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2386 for entry pc when entry pc is out of range for that FDE.
2387
89b085ac
BC
23882019-07-26 Brian Callahan <bcallah@openbsd.org>
2389
2390 PR gdb/24839:
2391 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2392 type.
2393
f32feb4a
CB
23942019-07-25 Christian Biesinger <cbiesinger@google.com>
2395
2396 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2397 this function's Python signature.
2398
2399
24002019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
2401
2402 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2403 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2404 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2405 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2406 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2407
2408
c54e4253
YS
24092019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2410
2411 * h8300-tdep.c (h8300_register_name_common): New.
2412 h8300_register_name): Use h8300_register_name_common.
2413 (h8300s_register_name): Likewise.
2414 (h8300sx_register_name): Likewise.
2415 (h8300h_register_nam): New.
2416 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2417
2418
40eadf04
SP
24192019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2420
2421 * arm-tdep.c (arm_skip_cmse_entry): New function.
2422 (arm_is_sgstubs_section): New function.
2423 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2424
bfa2a36d
TT
24252019-07-22 Tom Tromey <tom@tromey.com>
2426
2427 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2428 Don't self-assign.
2429
a8e9d247
AB
24302019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2431
2432 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2433 type_print.
2434
eb86c5e2
AB
24352019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2436
2437 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2438 so that GDB doesn't match any msymbols when searching in the
2439 TYPES_DOMAIN.
2440 (print_symbol_info): Print using typedef_print or type_print based
2441 on the type of the symbol. Add updated FIXME comment moved from...
2442 (_initialize_symtab): ... move and update FIXME comment to above.
2443
a8eab7c6
AB
24442019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2445
2446 * NEWS: Mention adding -q option to "info types".
2447 * symtab.c (struct info_types_options): New struct.
2448 (info_types_options_defs): New variable.
2449 (make_info_types_options_def_group): New function.
2450 (info_types_command): Use gdb::option framework to parse options.
2451 (info_types_command_completer): New function.
2452 (_initialize_symtab): Extend the help text on "info types" and
2453 register command completer.
2454
b4603c34
CB
24552019-07-21 Christian Biesinger <cbiesinger@google.com>
2456
2457 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2458 (lookup_symbol_in_objfile): Change int to block_enum and add a
2459 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2460
c8cdc1e0
CB
24612019-07-20 Christian Biesinger <cbiesinger@google.com>
2462
2463 * MAINTAINERS (Write After Approval): Add self.
2464
01e175fe
AB
24652019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2466
2467 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2468 instruction to the dummy code region.
2469
56f79b63
TT
24702019-07-19 Tom Tromey <tromey@adacore.com>
2471
2472 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2473 (ARGSUSED, PARAMS, __func__): Remove rules.
2474
4c5aa8e0
AH
24752019-07-19 Alan Hayward <alan.hayward@arm.com>
2476
2477 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2478 * features/arm/arm-with-iwmmxt.c: Remove.
2479 * features/arm/arm-with-iwmmxt.xml: Remove.
2480 * features/arm/arm-with-m-fpa-layout.c: Remove.
2481 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2482 * features/arm/arm-with-m-vfp-d16.c: Remove.
2483 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2484 * features/arm/arm-with-m.c: Remove.
2485 * features/arm/arm-with-m.xml: Remove.
2486 * features/arm/arm-with-neon.c: Remove.
2487 * features/arm/arm-with-neon.xml: Remove.
2488 * features/arm/arm-with-vfpv2.c: Remove.
2489 * features/arm/arm-with-vfpv2.xml: Remove.
2490 * features/arm/arm-with-vfpv3.c: Remove.
2491 * features/arm/arm-with-vfpv3.xml: Remove.
2492
f42b2617
AH
24932019-07-19 Alan Hayward <alan.hayward@arm.com>
2494
2495 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2496
f29ec966
AH
24972019-07-19 Alan Hayward <alan.hayward@arm.com>
2498
2499 * arch/aarch32.c (aarch32_create_target_description): Create
2500 target descriptions using features.
2501 * arch/arm.c (arm_create_target_description)
2502 (arm_create_mprofile_target_description): Likewise.
2503 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2504
d105cce5
AH
25052019-07-19 Alan Hayward <alan.hayward@arm.com>
2506
2507 * Makefile.in: Add new files.
2508 * aarch32-tdep.c: New file.
2509 * aarch32-tdep.h: New file.
2510 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2511 Call aarch32_read_description.
2512 * arch/aarch32.c: New file.
2513 * arch/aarch32.h: New file.
2514 * arch/arm.c (arm_create_target_description)
2515 (arm_create_mprofile_target_description): New function.
2516 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2517 (arm_create_target_description)
2518 (arm_create_mprofile_target_description): New declaration.
2519 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2520 read_description functions.
2521 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2522 Likewise.
2523 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2524 * arm-tdep.c (tdesc_arm_list): New variable.
2525 (arm_register_g_packet_guesses): Call create description functions.
2526 (arm_read_description) (arm_read_mprofile_description): New
2527 function.
2528 * arm-tdep.h (arm_read_description)
2529 (arm_read_mprofile_description): Add declaration.
2530 * configure.tgt: Add new files.
2531
afe09f0b
GL
25322019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2533
2534 * top.c (new_ui_command): Open specified terminal just once.
2535
cd215b2e
TT
25362019-07-18 Tom Tromey <tromey@adacore.com>
2537
2538 * symtab.c (main_name): Constify return type.
2539 * symfile.c (set_initial_language): Update.
2540 * symtab.h (main_name): Constify return type.
2541
d8f68fcb
TT
25422019-07-17 Tom Tromey <tom@tromey.com>
2543
2544 * tui/tui-winsource.c (tui_update_source_window)
2545 (tui_update_source_window_as_is)
2546 (tui_update_source_windows_with_line): Remove return.
2547 * tui/tui-disasm.c (tui_show_disassem)
2548 (tui_show_disassem_and_update_source): Remove return.
2549 * tui/tui.c (tui_reset): Remove return.
2550 * tui/tui-wingeneral.c
2551 (tui_check_and_display_highlight_if_needed): Remove return.
2552
ca5af91e
TT
25532019-07-17 Tom Tromey <tom@tromey.com>
2554
2555 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2556
5104fe36
TT
25572019-07-17 Tom Tromey <tom@tromey.com>
2558
2559 * tui/tui-winsource.h (struct tui_exec_info_window)
2560 (struct tui_source_window_base): Move from tui-data.h.
2561 * tui/tui-winsource.c: Move many method definitions from
2562 elsewhere. Remove "structuring" comments.
2563 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2564 (tui_source_window_base::refresh_window): Move to
2565 tui-winsource.c.
2566 * tui/tui-win.c (tui_source_window_base::refresh_all)
2567 (tui_source_window_base::update_tab_width)
2568 (tui_source_window_base::set_new_height)
2569 (tui_source_window_base::do_make_visible_with_new_height): Move to
2570 tui-winsource.c.
2571 * tui/tui-source.h: Update.
2572 * tui/tui-source.c (tui_source_window_base::reset): Move to
2573 tui-winsource.c.
2574 * tui/tui-disasm.h: Update.
2575 * tui/tui-data.h (struct tui_exec_info_window): Move to
2576 tui-winsource.h.
2577 (struct tui_source_window_base): Likewise.
2578 * tui/tui-data.c (tui_source_window_base::clear_detail)
2579 (tui_source_window_base, ~tui_source_window_base): Move to
2580 tui-winsource.c.
2581
daa15dde
TT
25822019-07-17 Tom Tromey <tom@tromey.com>
2583
2584 * tui/tui-win.c (tui_resize_all)
2585 (tui_source_window_base::update_tab_width)
2586 (tui_adjust_win_heights): Update.
2587 (tui_win_info::make_invisible_and_set_new_height): Rename from
2588 make_invisible_and_set_new_height.
2589 * tui/tui-data.h (struct tui_win_info)
2590 <make_invisible_and_set_new_height>: New method.
2591
bfad4537
TT
25922019-07-17 Tom Tromey <tom@tromey.com>
2593
2594 * tui/tui.c: Update.
2595 * tui/tui-source.h (struct tui_source_window): Move from
2596 tui-data.h.
2597 * tui/tui-layout.c: Update.
2598 * tui/tui-disasm.c: Update.
2599 * tui/tui-data.h (struct tui_source_window): Move to
2600 tui-source.h.
2601
88f7e873
TT
26022019-07-17 Tom Tromey <tom@tromey.com>
2603
2604 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2605 tui-data.h.
2606 * tui/tui-data.h (struct tui_disasm_window): Move to
2607 tui-disasm.h.
2608
96bd6233
TT
26092019-07-17 Tom Tromey <tom@tromey.com>
2610
2611 * tui/tui-regs.h (struct tui_data_item_window): Move from
2612 tui-data.h.
2613 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2614 * tui/tui-data.h (struct tui_data_item_window): Move to
2615 tui-regs.h.
2616 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2617
ce38393b
TT
26182019-07-17 Tom Tromey <tom@tromey.com>
2619
2620 * tui/tui.c: Update.
2621 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2622 (tui_cmd_window::max_height): Move to tui-command.c.
2623 * tui/tui-layout.c: Update.
2624 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2625 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2626 tui-command.c.
2627 * tui/tui-command.h (struct tui_cmd_window): Move from
2628 tui-data.h.
2629 * tui/tui-command.c: Remove "structuring" comments.
2630 (tui_cmd_window::clear_detail)
2631 (tui_cmd_window::do_make_visible_with_new_height)
2632 (tui_cmd_window::max_height): Move from elsewhere.
2633
2d8b51cb
TT
26342019-07-17 Tom Tromey <tom@tromey.com>
2635
2636 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2637 Now static.
2638 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2639 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2640
18ab23af
TT
26412019-07-17 Tom Tromey <tom@tromey.com>
2642
2643 * tui/tui.c: Update.
2644 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2645 tui-regs.c.
2646 * tui/tui-windata.h: Remove file.
2647 * tui/tui-windata.c: Remove file.
2648 * tui/tui-win.c (tui_data_window::set_new_height)
2649 (tui_data_window::do_make_visible_with_new_height): Move to
2650 tui-regs.c.
2651 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2652 * tui/tui-regs.c: Remove "structuring" comments.
2653 (tui_data_window::first_data_item_displayed)
2654 (tui_data_window::delete_data_content_windows)
2655 (tui_data_window::erase_data_content)
2656 (tui_data_window::display_all_data)
2657 (tui_data_window::refresh_all)
2658 (tui_data_window::do_scroll_vertical)
2659 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2660 (tui_data_window::do_make_visible_with_new_height)
2661 (tui_data_window::refresh_window): Move from elsewhere.
2662 (_initialize_tui_regs): Move to end of file.
2663 * tui/tui-layout.c: Update.
2664 * tui/tui-hooks.c: Update.
2665 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2666 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2667 tui-regs.c.
2668 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2669
88b7e7cc
TT
26702019-07-17 Tom Tromey <tom@tromey.com>
2671
2672 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2673 seen.
2674
0fcd3711
TT
26752019-07-17 Tom Tromey <tom@tromey.com>
2676
2677 * tui/tui-win.c (tui_source_window_base::set_new_height)
2678 (tui_source_window_base::do_make_visible_with_new_height): Use
2679 m_has_locator field directly.
2680 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2681 method.
2682 (struct tui_source_window_base) <has_locator>: Likewise.
2683
4a38112d
TT
26842019-07-17 Tom Tromey <tom@tromey.com>
2685
2686 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2687 Don't declare.
2688 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2689 Remove.
2690 * tui/tui-win.c (tui_source_window_base::set_new_height)
2691 (tui_source_window_base::set_new_height)
2692 (make_invisible_and_set_new_height)
2693 (tui_source_window_base::do_make_visible_with_new_height)
2694 (tui_source_window_base::do_make_visible_with_new_height):
2695 Update.
2696 * tui/tui-layout.c (show_source_disasm_command, show_data)
2697 (show_source_or_disasm_and_command): Update.
2698 * tui/tui-layout.c (show_layout): Update.
2699
09129226
TT
27002019-07-17 Tom Tromey <tom@tromey.com>
2701
2702 * tui/tui-layout.c (make_data_window): Remove.
2703 (show_data): Unify creation and re-initialization cases.
2704
4a8a5e84
TT
27052019-07-17 Tom Tromey <tom@tromey.com>
2706
2707 * tui/tui-layout.c (make_source_window, make_disasm_window):
2708 Remove.
2709 (show_data): Unify creation and re-initialization cases.
2710
76d2be8e
TT
27112019-07-17 Tom Tromey <tom@tromey.com>
2712
2713 * tui/tui-layout.c (make_command_window): Remove.
2714 (show_source_disasm_command, show_source_or_disasm_and_command):
2715 Unify creation and re-initialization cases.
2716
890b8bde
TT
27172019-07-17 Tom Tromey <tom@tromey.com>
2718
2719 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2720 creation and re-initialization cases.
2721
2cdfa113
TT
27222019-07-17 Tom Tromey <tom@tromey.com>
2723
2724 * tui/tui-regs.c (tui_get_register): Return void.
2725
8e3cfd09
TT
27262019-07-17 Tom Tromey <tom@tromey.com>
2727
2728 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2729 Simplify.
2730
f4e04977
TT
27312019-07-17 Tom Tromey <tom@tromey.com>
2732
2733 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2734 resetting.
2735
0379b883
TT
27362019-07-17 Tom Tromey <tom@tromey.com>
2737
2738 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2739 * tui/tui-regs.c (tui_reg_layout): New function.
2740 (tui_show_registers, tui_reg_command): Use it.
2741 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2742 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2743 parameters.
2744 (tui_layout_command): Remove.
2745
b7fbad91
TT
27462019-07-17 Tom Tromey <tom@tromey.com>
2747
2748 * tui/tui-layout.h (tui/tui-layout): Return void.
2749 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2750
4e1e56b9
TT
27512019-07-17 Tom Tromey <tom@tromey.com>
2752
2753 * tui/tui-layout.c (show_source_disasm_command, show_data):
2754 Update.
2755 (reset_locator): Remove.
2756 (show_source_or_disasm_and_command): Update.
2757
1e0c09ba
TT
27582019-07-17 Tom Tromey <tom@tromey.com>
2759
2760 * tui/tui-source.c (tui_source_window_base::reset): Remove
2761 win_type parameter.
2762 * tui/tui-layout.c (make_command_window, make_source_window)
2763 (make_disasm_window, make_data_window)
2764 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2765 (reset_locator, show_source_or_disasm_and_command): Update.
2766 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2767 win_type parameter.
2768 (struct tui_source_window_base) <reset>: Likewise.
2769
1bf605de
TT
27702019-07-17 Tom Tromey <tom@tromey.com>
2771
2772 * tui/tui-layout.c (show_source_disasm_command): Use
2773 reset_locator.
2774 (reset_locator): New function.
2775 (init_and_make_win): Remove.
2776 (show_source_or_disasm_and_command): Use reset_locator.
2777
098f9ed4
TT
27782019-07-17 Tom Tromey <tom@tromey.com>
2779
2780 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2781 condition.
2782 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2783 Remove condition.
2784 * tui/tui-source.c (tui_source_window_base::reset): New method.
2785 * tui/tui-layout.c (make_command_window): Don't call
2786 init_and_make_win.
2787 (make_source_window, make_disasm_window): Don't call
2788 make_source_or_disasm_window.
2789 (make_data_window): Don't call init_and_make_win. Change calling
2790 convention.
2791 (show_source_disasm_command, show_data): Simplify.
2792 (make_source_or_disasm_window): Remove.
2793 (show_source_or_disasm_and_command): Simplify.
2794 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2795 (struct tui_source_window_base) <reset>: Likewise.
2796 <execution_info>: Remove initializer.
2797 * tui/tui-data.c (tui_source_window_base): Initialize
2798 execution_info.
2799
80110957
TT
28002019-07-17 Tom Tromey <tom@tromey.com>
2801
2802 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2803 variable.
2804
cf82af05
TT
28052019-07-17 Tom Tromey <tom@tromey.com>
2806
2807 * tui/tui.c (tui_rl_other_window): Update.
2808 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2809 superclass method first. Always iterate over regs_content.
2810 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2811 method.
2812 * tui/tui-win.c (tui_set_focus_command): Update.
2813
01aeb396
TT
28142019-07-17 Tom Tromey <tom@tromey.com>
2815
2816 * tui/tui-win.c (tui_set_focus_command): Rename from
2817 tui_set_focus. Call tui_enable.
2818 (tui_set_focus_command): Remove.
2819
fd6c75ee
TT
28202019-07-17 Tom Tromey <tom@tromey.com>
2821
2822 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2823 refresh_window.
2824 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2825 touchwin.
2826 (tui_data_window::refresh_window): Call refresh_window on data
2827 items. Always call superclass refresh_window.
2828 (tui_win_info::refresh): Remove.
2829 (tui_source_window_base::refresh_window): Update.
2830 (tui_refresh_all): Update.
2831 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2832 refresh_window.
2833 (show_source_or_disasm_and_command): Likewise.
2834 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2835 (struct tui_source_window_base) <refresh>: Likewise.
2836
f6cc34a9
TT
28372019-07-17 Tom Tromey <tom@tromey.com>
2838
2839 * tui/tui-winsource.c (tui_clear_source_content)
2840 (tui_show_source_content): Update.
2841 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2842 whether content is empty.
2843 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2844 Remove.
2845
f31ec9af
TT
28462019-07-17 Tom Tromey <tom@tromey.com>
2847
2848 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2849 window's contents.
2850 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2851 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2852
d1b6f1e5
TT
28532019-07-17 Tom Tromey <tom@tromey.com>
2854
2855 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2856 (struct tui_data_item_window): Update.
2857
d9743a13
TT
28582019-07-17 Tom Tromey <tom@tromey.com>
2859
2860 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2861 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2862 defines.
2863
caf0bc4e
TT
28642019-07-17 Tom Tromey <tom@tromey.com>
2865
2866 * tui/tui-winsource.h (tui_erase_source_content)
2867 (tui_clear_source_content): Remove "display_prompt" parameter.
2868 * tui/tui-winsource.c (tui_update_source_window_as_is)
2869 (tui_update_source_windows_with_addr): Update.
2870 (tui_clear_source_content): Remove "display_prompt" parameter.
2871 (tui_erase_source_content): Likewise. Simplify.
2872 (tui_show_source_content): Update.
2873 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2874 * tui/tui-stack.c (tui_show_frame_info): Update.
2875 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2876 Remove defines.
2877
9d391078
TT
28782019-07-17 Tom Tromey <tom@tromey.com>
2879
2880 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2881 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2882 parameter.
2883 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2884 parameter.
2885
a38da35d
TT
28862019-07-17 Tom Tromey <tom@tromey.com>
2887
2888 * tui/tui-winsource.c (tui_clear_source_content)
2889 (tui_show_source_content, tui_show_exec_info_content)
2890 (tui_clear_exec_info_content): Update.
2891 * tui/tui-stack.c (tui_show_locator_content): Update.
2892 (tui_show_frame_info): Update.
2893 * tui/tui-source.h (tui_source_window): Don't declare.
2894 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2895 from tui_source_is_displayed.
2896 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2897 Remove field.
2898 (struct tui_source_window_base) <content_in_use>: New field. Now
2899 bool.
2900 (struct tui_source_window) <showing_source_p>: New method.
2901 (TUI_SRC_WIN): Change cast.
2902 * tui/tui-data.c (tui_initialize_static_data): Update.
2903
c2cd8994
TT
29042019-07-17 Tom Tromey <tom@tromey.com>
2905
2906 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2907 location_matches_p.
2908 * tui/tui-source.c (tui_source_window::location_matches_p): New
2909 method.
2910 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2911 method.
2912 * tui/tui-data.h (struct tui_source_window_base)
2913 <location_matches_p>: New method.
2914 (struct tui_source_window, struct tui_disasm_window)
2915 <location_matches_p>: Likewise.
2916
4dde7b34
TT
29172019-07-17 Tom Tromey <tom@tromey.com>
2918
2919 * tui/tui-win.c (tui_set_win_height_command): Rename from
2920 tui_set_win_height.
2921 (tui_set_win_height_command): Remove.
2922
b73dd877
TT
29232019-07-17 Tom Tromey <tom@tromey.com>
2924
2925 * tui/tui-source.c (tui_source_window): New constructor. Add
2926 observer.
2927 (~tui_source_window): New destructor.
2928 (tui_source_window::style_changed): New method.
2929 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2930 (tui_attach_detach_observers): Update.
2931 * tui/tui-data.h (struct tui_source_window): Make constructor not
2932 inline. Add destructor.
2933 (struct tui_source_window) <style_changed>: New method.
2934 <m_observable>: New member.
2935
ae2b5380
TT
29362019-07-17 Tom Tromey <tom@tromey.com>
2937
2938 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2939 * tui/tui-win.c (tui_resize_all): Fix typo.
2940
1ce3e844
TT
29412019-07-17 Tom Tromey <tom@tromey.com>
2942
2943 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2944 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2945 (tui_refresh_all): Remove "list" parameter. Use foreach.
2946 * tui/tui-win.c (window_name_completer): Use foreach.
2947 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2948 (update_tab_width): Likewise.
2949 * tui/tui-layout.c (show_layout): Update.
2950 * tui/tui-data.h (class tui_window_iterator): New.
2951 (struct all_tui_windows): New.
2952 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2953
fe3eaf1c
TT
29542019-07-17 Tom Tromey <tom@tromey.com>
2955
2956 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2957 parameter. Don't reference globals.
2958 (tui_reg_command): Update.
2959
368c1354
TT
29602019-07-17 Tom Tromey <tom@tromey.com>
2961
2962 * tui/tui-regs.c (tui_show_registers): Simplify.
2963
e80cd204
TT
29642019-07-17 Tom Tromey <tom@tromey.com>
2965
2966 * tui/tui-regs.c (tui_show_registers): Update.
2967 (tui_show_register_group): Add win_info parameter.
2968
aca2dd16
TT
29692019-07-17 Tom Tromey <tom@tromey.com>
2970
2971 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2972 Rename from tui_display_reg_element_at_line.
2973 (tui_data_window::display_registers_from_line): Update.
2974 * tui/tui-data.h (struct tui_data_window)
2975 <display_reg_element_at_line>: New method.
2976
517e9505
TT
29772019-07-17 Tom Tromey <tom@tromey.com>
2978
2979 * tui/tui-regs.h (tui_display_registers_from)
2980 (tui_display_registers_from_line): Don't declare.
2981 * tui/tui-windata.c (tui_data_window::display_all_data)
2982 (tui_data_window::refresh_all)
2983 (tui_data_window::do_scroll_vertical): Update.
2984 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2985 from tui_display_registers_from.
2986 (tui_display_reg_element_at_line): Update.
2987 (tui_data_window::display_registers_from_line): Rename from
2988 tui_display_registers_from_line.
2989 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2990 display_registers_from_line>: New methods.
2991
f76d8b19
TT
29922019-07-17 Tom Tromey <tom@tromey.com>
2993
2994 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2995 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2996 from tui_erase_data_content.
2997 (tui_data_window::display_all_data)
2998 (tui_data_window::refresh_all)
2999 (tui_data_window::do_scroll_vertical): Update.
3000 * tui/tui-regs.c (tui_show_registers): Update.
3001 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3002 New method.
3003
b4094625
TT
30042019-07-17 Tom Tromey <tom@tromey.com>
3005
3006 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3007 declare.
3008 * tui/tui-windata.c
3009 (tui_data_window::delete_data_content_windows): Rename from
3010 tui_delete_data_content_windows.
3011 (tui_data_window::display_all_data)
3012 (tui_data_window::do_scroll_vertical): Update.
3013 * tui/tui-data.h (struct tui_data_window)
3014 <delete_data_content_windows>: New method.
3015
c223a729
TT
30162019-07-17 Tom Tromey <tom@tromey.com>
3017
3018 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3019 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3020
50daf268
TT
30212019-07-17 Tom Tromey <tom@tromey.com>
3022
3023 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3024 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3025 from tui_display_all_data.
3026 * tui/tui-win.c
3027 (tui_data_window::do_make_visible_with_new_height): Update.
3028 * tui/tui-regs.c (tui_show_registers): Update.
3029 * tui/tui-layout.c (tui_set_layout): Update.
3030 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3031 method.
3032
df5f8cab
TT
30332019-07-17 Tom Tromey <tom@tromey.com>
3034
3035 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3036 * tui/tui-windata.c (tui_display_data_from): Remove.
3037 (tui_data_window::refresh_all): Update.
3038
80cb6c27
TT
30392019-07-17 Tom Tromey <tom@tromey.com>
3040
3041 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3042 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3043 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3044 tui_display_registers_from_line.
3045 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3046 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3047 "force_display" parameter.
3048
baff0c28
TT
30492019-07-17 Tom Tromey <tom@tromey.com>
3050
3051 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3052 declare.
3053 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3054 Rename from tui_first_reg_element_no_inline.
3055 (tui_display_reg_element_at_line)
3056 (tui_display_registers_from_line): Update.
3057 * tui/tui-data.h (struct tui_data_window)
3058 <first_reg_element_no_inline>: New method.
3059
3b23c5f2
TT
30602019-07-17 Tom Tromey <tom@tromey.com>
3061
3062 * tui/tui-windata.c (tui_display_data_from)
3063 (tui_data_window::do_scroll_vertical): Update.
3064 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3065 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3066 Rename from tui_line_from_reg_element_no.
3067 (tui_display_registers_from_line): Update.
3068 * tui/tui-data.h (struct tui_data_window)
3069 <line_from_reg_element_no>: New method.
3070
0b5ec218
TT
30712019-07-17 Tom Tromey <tom@tromey.com>
3072
3073 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3074 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3075 tui_last_regs_line_no.
3076 (tui_display_reg_element_at_line)
3077 (tui_display_registers_from_line): Update.
3078 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3079 method.
3080
0807ab7b
TT
30812019-07-17 Tom Tromey <tom@tromey.com>
3082
3083 PR tui/24722:
3084 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3085 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3086 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3087 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3088 (tui_update_breakpoint_info): Likewise.
3089 * tui/tui-hooks.c (tui_event_create_breakpoint)
3090 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3091 Update.
3092
9ad7fdef
TT
30932019-07-17 Tom Tromey <tom@tromey.com>
3094
3095 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3096
5813316f
TT
30972019-07-17 Tom Tromey <tom@tromey.com>
3098
3099 * tui/tui-winsource.c (tui_update_source_window_as_is)
3100 (tui_update_source_windows_with_addr): Update.
3101 * tui/tui-source.h (tui_set_source_content)
3102 (tui_show_symtab_source): Add "win_info" parameter.
3103 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3104 parameter.
3105 (tui_show_symtab_source): Likewise.
3106
00e264e7
TT
31072019-07-17 Tom Tromey <tom@tromey.com>
3108
3109 * tui/tui-wingeneral.c
3110 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3111
06210ce4
TT
31122019-07-17 Tom Tromey <tom@tromey.com>
3113
3114 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3115 (struct tui_cmd_window) <can_scroll>: New method.
3116 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3117 method.
3118
381befee
TT
31192019-07-17 Tom Tromey <tromey@adacore.com>
3120
3121 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3122 do_field_signed>: Rename. Change type of "value".
3123 * ui-out.c (ui_out::field_signed): Rename from field_int.
3124 Change type of "value".
3125 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3126 type of "value".
3127 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3128 do_field_int. Change type of "value".
3129 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3130 do_field_int. Change type of "value".
3131 * tracepoint.c (trace_status_mi, tfind_1)
3132 (print_one_static_tracepoint_marker): Update.
3133 * thread.c (print_thread_info_1, print_selected_thread_frame):
3134 Update.
3135 * stack.c (print_frame, print_frame_info): Update.
3136 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3137 Update.
3138 * source.c (print_source_lines_base): Update.
3139 * skip.c (info_skip_command): Update.
3140 * record-btrace.c (btrace_ui_out_decode_error)
3141 (btrace_call_history_src_line): Update.
3142 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3143 Update.
3144 * progspace.c (print_program_space): Update.
3145 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3146 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3147 do_field_int. Change type of "value".
3148 * mi/mi-out.c (mi_ui_out::do_table_begin)
3149 (mi_ui_out::do_table_header): Update.
3150 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3151 type of "value".
3152 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3153 (mi_cmd_data_list_changed_registers, output_register)
3154 (mi_cmd_data_read_memory, mi_load_progress)
3155 (mi_cmd_trace_frame_collected): Update.
3156 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3157 Update.
3158 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3159 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3160 (mi_cmd_var_list_children, varobj_update_one): Update.
3161 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3162 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3163 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3164 * inferior.c (print_inferior): Update.
3165 * gdb_bfd.c (print_one_bfd): Update.
3166 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3167 Update.
3168 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3169 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3170 do_field_int. Change type of "value".
3171 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3172 do_field_int. Change type of "value".
3173 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3174 (print_one_breakpoint_location, print_it_catch_fork)
3175 (print_one_catch_fork, print_it_catch_vfork)
3176 (print_one_catch_vfork, print_it_catch_solib)
3177 (print_it_catch_exec, print_it_ranged_breakpoint)
3178 (print_mention_watchpoint, print_mention_masked_watchpoint)
3179 (bkpt_print_it, update_static_tracepoint): Update.
3180 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3181 * break-catch-syscall.c (print_it_catch_syscall): Update.
3182 * ada-tasks.c (print_ada_task_info): Update.
3183 * ada-lang.c (print_it_exception, print_mention_exception):
3184 Update.
3185
6b78c3f8
AB
31862019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3187
3188 PR breakpoints/24541
3189 * gdbarch.c: Regenerate.
3190 * gdbarch.h: Regenerate.
3191 * gdbarch.sh: Adjust return type and parameter types for
3192 'stap_adjust_register'.
3193 (i386_stap_adjust_register): Adjust signature and return new
3194 register name.
3195 * stap-probe.c (stap_parse_register_operand): Adjust use of
3196 'gdbarch_stap_adjust_register'.
3197
d72a9b85
TT
31982019-07-17 Tom Tromey <tromey@adacore.com>
3199
3200 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3201 declare VEC.
3202 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3203 std::vector.
3204 (struct s390_process_info): Add initializers.
3205 (s390_add_process): Use new.
3206 (s390_linux_nat_target::low_forget_process): Use delete.
3207 (s390_linux_nat_target::low_new_fork)
3208 (s390_linux_nat_target::stopped_by_watchpoint)
3209 (s390_linux_nat_target::low_prepare_to_resume)
3210 (s390_linux_nat_target::insert_watchpoint)
3211 (s390_linux_nat_target::insert_hw_breakpoint)
3212 (s390_linux_nat_target::remove_watchpoint)
3213 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3214
206e6c58
JB
32152019-07-16 John Baldwin <jhb@FreeBSD.org>
3216
3217 * aarch64-fbsd-nat.c: Include regcache.h.
3218 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3219 argument.
3220 (aarch64_fbsd_nat_target::fetch_registers)
3221 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3222 variable.
3223 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3224
cbde90f2
JB
32252019-07-16 John Baldwin <jhb@FreeBSD.org>
3226
3227 * fbsd-nat.c: Include gdbarch.h.
3228
07128006
TT
32292019-07-15 Tom Tromey <tromey@adacore.com>
3230
3231 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3232
1f77b012
TT
32332019-07-15 Tom Tromey <tromey@adacore.com>
3234
3235 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3236 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3237 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3238 * cli-out.c (cli_ui_out::do_field_int): New method.
3239 * ui-out.c (ui_out::field_unsigned): New method.
3240 * symfile.c (generic_load): Use field_unsigned.
3241 (print_transfer_performance): Likewise.
3242 * record-btrace.c (ui_out_field_uint): Remove.
3243 (btrace_call_history_insn_range, btrace_call_history): Use
3244 field_unsigned.
3245 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3246 field_unsigned.
3247 * ui-out.h (class ui_out) <field_unsigned>: New method.
3248 <do_field_unsigned>: Likewise.
3249
33eca680
TT
32502019-07-15 Tom Tromey <tromey@adacore.com>
3251
3252 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3253 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3254 * target.c (flash_erase_command): Use field_string.
3255 * infrun.c (print_signal_received_reason): Use field_string.
3256 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3257 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3258 field_string.
3259 * ada-tasks.c (print_ada_task_info): Use field_string.
3260
ca8d69be
TT
32612019-07-15 Tom Tromey <tromey@adacore.com>
3262
3263 * target.c (flash_erase_command): Use field_core_addr.
3264 * symfile.c (generic_load): Use field_core_addr.
3265 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3266 Use field_core_addr.
3267 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3268 field_core_addr.
3269
0d4e84ed
AB
32702019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3271
3272 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3273 value if its desired type is smaller than a CORE_ADDR and signed.
3274
9a49df9d
AB
32752019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3276
3277 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3278 of changes to field names, and use new is_reference field to
3279 decide if a property is a reference or not.
3280 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3281 field.
3282 (struct dwarf2_property_baton): Update header comment, rename
3283 'referenced_type' to 'property_type' and update comments.
3284 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3285 default property type, store in property baton, update to take
3286 accound of renamed field.
3287 (read_func_scope): Update call to attr_to_dynamic_prop.
3288 (read_array_type): Likewise.
3289 (dwarf2_per_cu_addr_sized_int_type): New function.
3290 (read_subrange_index_type): Move type finding code to
3291 dwarf2_per_cu_addr_sized_int_type.
3292 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3293 (dwarf2_per_cu_addr_type): New function.
3294 (set_die_type): Update calls to attr_to_dynamic_prop.
3295
b86352cf
AB
32962019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3297
3298 * dwarf2read.c (read_subrange_index_type): New function.
3299 (read_subrange_type): Move code into new function and call it.
3300 * gdbtypes.c (create_range_type): Add some asserts.
3301
603490bf
AB
33022019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3303
3304 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3305 update return statements.
3306 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3307 declaration, and update comment to match.
3308 * gdbtypes.c (resolve_dynamic_array): Update call to
3309 dwarf2_evaluate_property to match new return type.
3310
592f9d27
AB
33112019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3312
3313 * valarith.c (value_subscripted_rvalue): Change lowerbound
3314 parameter type from int to LONGEST.
3315 * value.h (value_subscripted_rvalue): Likewise in declaration.
3316
60cfcb20
AB
33172019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3318
3319 * cli/cli-utils.c (info_print_command_completer): New function.
3320 * cli/cli-utils.h: Add 'completer.h' include, and forward
3321 declaration for 'struct cmd_list_element'.
3322 (info_print_command_completer): Declare.
3323 * stack.c (_initialize_stack): Add completer for 'info locals' and
3324 'info args'.
3325 * symtab.c (_initialize_symtab): Add completer for 'info
3326 variables' and 'info functions'.
3327 * NEWS: Mention completion for additional info commands.
3328
b16507e0
AB
33292019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3330
3331 * cli/cli-utils.c (extract_info_print_args): Delete.
3332 (extract_arg_maybe_quoted): Delete.
3333 (info_print_options_defs): New variable.
3334 (make_info_print_options_def_group): New function.
3335 (extract_info_print_options): Define new function.
3336 * cli/cli-utils.h (extract_info_print_args): Delete.
3337 (struct info_print_options): New structure.
3338 (extract_info_print_options): Declare new function.
3339 * stack.c (info_locals_command): Update to use new
3340 extract_info_print_options, also add a header comment.
3341 (info_args_command): Likewise.
3342 * symtab.c (info_variables_command): Likewise.
3343 (info_functions_command): Likewise.
3344
021d8588
AB
33452019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3346
3347 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3348 to extract string arguments.
3349 * common/common-utils.c (extract_string_maybe_quoted): New function.
3350 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3351
b777eb6d
TT
33522019-07-11 Tom Tromey <tromey@adacore.com>
3353
3354 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3355 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3356 * top.h (gdbinit): Don't declare.
3357 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3358 into...
3359 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3360 * top.c (gdb_init): Don't call init_cli_cmds.
3361 (gdbinit): Remove.
3362 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3363
72ee03ff
TT
33642019-07-11 Tom Tromey <tromey@adacore.com>
3365
3366 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3367 after it has been moved.
3368
00db9531
SM
33692019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3370
3371 * valops.c (value_must_coerce_to_target): Change return type to
3372 bool.
3373 * value.h (value_must_coerce_to_target): Likewise.
3374
f2478a7e
SM
33752019-07-10 Simon Marchi <simon.marchi@efficios.com>
3376
3377 * breakpoint.c (is_hardware_watchpoint): Remove
3378 forward-declaration.
3379 (is_masked_watchpoint): Change return type to bool.
3380 (is_tracepoint): Likewise.
3381 (is_breakpoint): Likewise.
3382 (is_hardware_watchpoint): Likewise.
3383 (is_watchpoint): Likewise.
3384 (is_no_memory_software_watchpoint): Likewise.
3385 (is_catchpoint): Likewise.
3386 (breakpoint_1): Make FILTER parameter's return type bool.
3387 is_masked_watchpoint): Change return type to bool.
3388 (save_breakpoints): Make FILTER parameter's return type bool.
3389 * breakpoint.h (is_breakpoint): Change return type to bool.
3390 (is_watchpoint): Likewise.
3391 (is_catchpoint): Likewise.
3392 (is_tracepoint): Likewise.
3393
0d12e84c
TT
33942019-07-10 Tom Tromey <tom@tromey.com>
3395
3396 * defs.h: Don't include gdbarch.h.
3397 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3398 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3399 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3400 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3401 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3402 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3403 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3404 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3405 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3406 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3407 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3408 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3409 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3410 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3411 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3412 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3413 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3414 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3415 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3416 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3417 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3418 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3419 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3420 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3421 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3422 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3423 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3424
f06f1252
TT
34252019-07-10 Tom Tromey <tromey@adacore.com>
3426
3427 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3428 * breakpoint.c (init_ada_exception_breakpoint): Register as
3429 bp_catchpoint.
3430 (print_one_breakpoint_location, print_one_breakpoint): Use
3431 is_ada_exception_catchpoint.
3432 * ada-lang.c (class ada_catchpoint_location): Pass
3433 bp_loc_software_breakpoint to bp_location constructor.
3434 (is_ada_exception_catchpoint): New function.
3435
7a5d944b
TT
34362019-07-10 Tom Tromey <tromey@adacore.com>
3437
3438 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3439 VEC.
3440 (struct arm_exidx_entry): New method operator<.
3441 (struct arm_exidx_data) <section_maps>: Change type.
3442 (arm_exidx_data_free): Remove.
3443 (arm_exidx_data_key): Change type. Move lower.
3444 (arm_exidx_new_objfile): Update.
3445 (arm_compare_exidx_entries): Remove.
3446 (arm_find_exidx_entry, _initialize_arm_tdep)
3447
48c66e1d
TT
34482019-07-10 Tom Tromey <tromey@adacore.com>
3449
3450 * solib-spu.c (ocl_program_data_key): Change type.
3451 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3452 Update.
3453
a269fbf1
TT
34542019-07-10 Tom Tromey <tromey@adacore.com>
3455
3456 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3457 (struct solib_aix_inferior_data) <library_list>: Change type.
3458 (solib_aix_inferior_data_handle): Change type.
3459 (get_solib_aix_inferior_data): Update.
3460 (solib_aix_free_library_list): Remove.
3461 (library_list_start_library): Update.
3462 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3463 return type.
3464 (solib_aix_get_library_list)
3465 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3466 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3467
c294730c
TT
34682019-07-10 Tom Tromey <tromey@adacore.com>
3469
3470 * solib-dsbt.c (struct dsbt_info): Add initializers.
3471 (solib_dsbt_pspace_data): Change type.
3472 (dsbt_pspace_data_cleanup): Remove.
3473 (get_dsbt_info, _initialize_dsbt_solib): Update.
3474
9d52077d
TT
34752019-07-10 Tom Tromey <tromey@adacore.com>
3476
3477 * spu-tdep.c (spu_overlay_data): Change type.
3478 (spu_get_overlay_table, spu_overlay_new_objfile)
3479 (_initialize_spu_tdep): Update.
3480
22a20dca
TT
34812019-07-10 Tom Tromey <tromey@adacore.com>
3482
3483 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3484 destructor.
3485 (dbx_objfile_data_key): Change type and declare later.
3486 (DBX_SYMFILE_INFO): Rewrite.
3487 * dbxread.c (dbx_objfile_data_key): Change type.
3488 (dbx_symfile_init): Update.
3489 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3490 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3491 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3492
cb60f420
TT
34932019-07-10 Tom Tromey <tromey@adacore.com>
3494
3495 * jit.c (jit_program_space_key): Change type. Move lower.
3496 (get_jit_program_space_data): Update.
3497 (jit_program_space_data_cleanup): Remove.
3498 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3499 Update.
3500 (struct jit_program_space_data): Add initializers.
3501
51df2ae3
TT
35022019-07-10 Tom Tromey <tromey@adacore.com>
3503
3504 * solib-darwin.c (struct darwin_info): Add initializers.
3505 (solib_darwin_pspace_data): Change type.
3506 (darwin_pspace_data_cleanup): Remove.
3507 (get_darwin_info, _initialize_darwin_solib): Update.
3508
18101a35
TT
35092019-07-10 Tom Tromey <tromey@adacore.com>
3510
3511 * remote-sim.c (struct sim_inferior_data): Add initializers,
3512 constructor, and destructor.
3513 (sim_inferior_data_key): Change type. Move lower.
3514 (check_for_duplicate_sim_descriptor): Update.
3515 (get_sim_inferior_data): Use new. Update.
3516 (~sim_inferior_data_cleanup): Rename from
3517 sim_inferior_data_cleanup. Simplify.
3518 (gdbsim_close_inferior, simulator_command)
3519 (sim_command_completer, _initialize_remote_sim): Update.
3520 (next_pid, INITIAL_PID): Move earlier.
3521
05b08ac1
TT
35222019-07-10 Tom Tromey <tromey@adacore.com>
3523
3524 * python/python-internal.h (create_thread_object): Return
3525 gdbpy_ref.
3526 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3527 * python/py-inferior.c (struct threadlist_entry): Add
3528 constructor.
3529 <thread_obj>: Now a gdbpy_ref.
3530 (thread_to_thread_object): Update.
3531 (add_thread_object): Use new.
3532 (delete_thread_object): Use delete.
3533 (infpy_threads): Update.
3534 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3535 GIL.
3536
32372d80
TT
35372019-07-10 Tom Tromey <tromey@adacore.com>
3538
3539 * valops.c (value_cast): Specialize error message for Ada.
3540
5c458ae8
SM
35412019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3542
3543 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3544
4c462cb0
SM
35452019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3546
3547 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3548 bpstat_should_step): Return bool, adjust comments.
3549 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3550 bpstat_should_step): Likewise.
3551
89abbcc2
AH
35522019-07-10 Alan Hayward <alan.hayward@arm.com>
3553
3554 * features/Makefile: Use feature target descriptions for Arm.
3555 * features/arm/arm-core.c: Generate new file.
3556 * features/arm/arm-fpa.c: Likewise.
3557 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3558 * features/arm/arm-m-profile.c: Likewise.
3559 * features/arm/arm-vfpv2.c: Likewise.
3560 * features/arm/arm-vfpv3.c: Likewise.
3561 * features/arm/xscale-iwmmxt.c: Likewise.
3562 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3563
166a82be
AH
35642019-07-10 Alan Hayward <alan.hayward@arm.com>
3565
3566 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3567 ptrace earlier.
3568
9fb4c7e9
AH
35692019-07-10 Alan Hayward <alan.hayward@arm.com>
3570
3571 * features/aarch64-pauth.c: Regenerate.
3572
e2d0f980
SM
35732019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3574
3575 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3576 bool.
3577 (bpstat_what): Use false instead of 0.
3578
a38118e5
PA
35792019-07-09 Pedro Alves <palves@redhat.com>
3580
3581 * break-catch-throw.c (is_exception_catchpoint): New.
3582 * breakpoint.c (print_one_breakpoint_location): New parameter
3583 'raw_loc'. Handle it. Use
3584 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3585 looking at the breakpoint's type.
3586 (print_one_breakpoint): If handling "maint info breakpoints", also
3587 print locations of exception catchpoints.
3588 * breakpoint.h (is_exception_catchpoint): Declare.
3589
cb1e4e32
PA
35902019-07-09 Pedro Alves <palves@redhat.com>
3591
3592 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3593 "addr" field.
3594 (allocate_location_exception_catchpoint): New.
3595 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3596 (initialize_throw_catchpoint_ops): Install
3597 allocate_location_exception_catchpoint as allocate_location
3598 method.
3599 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3600 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3601 bp_loc_other.
3602 (breakpoint_address_is_meaningful): Delete.
3603 (bl_address_is_meaningful): New.
3604 (breakpoint_locations_match): Adjust comment.
3605 (bp_location_from_bp_type): New, factored out of...
3606 (bp_location::bp_location(breakpoint *)): ... this.
3607 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3608 factored out of...
3609 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3610 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3611 breakpoint_address_is_meaningful.
3612 (bp_locations_compare): Adjust comment.
3613 (update_global_location_list): Use bl_address_is_meaningful
3614 instead of breakpoint_address_is_meaningful.
3615 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3616 explicit.
3617 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3618 * python/py-breakpoint.c (bppy_get_location): No longer check
3619 whether location is null.
3620
b58a68fe
PA
36212019-07-09 Pedro Alves <palves@redhat.com>
3622
3623 PR c++/15468
3624 * breakpoint.c (print_one_breakpoint_location): Remove
3625 single-location assert.
3626
268a13a5
TT
36272019-07-09 Tom Tromey <tom@tromey.com>
3628
3629 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3630 * configure: Rebuild.
3631 * configure.ac: Change common to gdbsupport.
3632 * gdbsupport: Rename from common.
3633 * acinclude.m4: Change common to gdbsupport.
3634 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3635 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3636 gdbsupport.
3637 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3638 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3639 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3640 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3641 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3642 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3643 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3644 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3645 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3646 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3647 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3648 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3649 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3650 coff-pe-read.c, command.h, compile/compile-c-support.c,
3651 compile/compile-c.h, compile/compile-cplus-symbols.c,
3652 compile/compile-cplus-types.c, compile/compile-cplus.h,
3653 compile/compile-loc2c.c, compile/compile.c, completer.c,
3654 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3655 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3656 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3657 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3658 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3659 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3660 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3661 features/aarch64-core.c, features/aarch64-fpu.c,
3662 features/aarch64-pauth.c, features/aarch64-sve.c,
3663 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3664 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3665 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3666 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3667 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3668 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3669 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3670 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3671 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3672 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3673 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3674 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3675 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3676 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3677 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3678 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3679 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3680 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3681 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3682 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3683 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3684 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3685 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3686 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3687 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3688 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3689 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3690 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3691 minsyms.c, mips-linux-tdep.c, namespace.h,
3692 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3693 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3694 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3695 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3696 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3697 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3698 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3699 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3700 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3701 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3702 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3703 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3704 procfs.c, producer.c, progspace.h, psymtab.h,
3705 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3706 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3707 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3708 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3709 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3710 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3711 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3712 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3713 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3714 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3715 target-memory.c, target.c, target.h, target/waitstatus.c,
3716 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3717 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3718 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3719 unittests/array-view-selftests.c,
3720 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3721 unittests/common-utils-selftests.c,
3722 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3723 unittests/format_pieces-selftests.c,
3724 unittests/function-view-selftests.c,
3725 unittests/lookup_name_info-selftests.c,
3726 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3727 unittests/mkdir-recursive-selftests.c,
3728 unittests/observable-selftests.c,
3729 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3730 unittests/parse-connection-spec-selftests.c,
3731 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3732 unittests/scoped_fd-selftests.c,
3733 unittests/scoped_mmap-selftests.c,
3734 unittests/scoped_restore-selftests.c,
3735 unittests/string_view-selftests.c, unittests/style-selftests.c,
3736 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3737 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3738 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3739 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3740 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3741 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3742
5b0e2db4
AB
37432019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3744
3745 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3746 bool value.
3747 (decode_digits_ordinary): Set explicit_line field in sal.
3748 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3749 symtab_and_line that was set on an explicit line number in
3750 assembler code. Do always update the recorded symtab and line if
3751 we do skip the prologue.
3752
0ba852ab
AB
37532019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3754
3755 * breakpoint.c (set_breakpoint_location_function): Remove
3756 explicit_loc parameter.
3757 (momentary_breakpoint_from_master): Update call to
3758 set_breakpoint_location_function.
3759 (add_location_to_breakpoint): Likewise.
3760
b3a7d171
AB
37612019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3762
3763 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3764 required features based on default bfd type when no specific bfd
3765 is present.
3766
1f6f6e21
PW
37672019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3768
3769 * NEWS: Mention that GDB printf and eval commands can now print
3770 C-style and Ada-style convenience var strings without
3771 calling the inferior.
3772 * printcmd.c (printf_c_string): Locally print GDB internal var
3773 instead of transiting via the inferior.
3774 (printf_wide_c_string): Likewise.
3775
37762019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
3777
3778 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3779
0598af48
TT
37802019-07-04 Tom Tromey <tom@tromey.com>
3781
3782 PR tui/24724:
3783 * tui/tui-winsource.c (tui_clear_source_content): Update.
3784 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3785 (tui_update_breakpoint_info): Update.
3786 (tui_set_exec_info_content): Update.
3787 * tui/tui-source.c (tui_set_source_content_nil): Update.
3788 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3789 has_break.
3790 * tui/tui-data.h (enum tui_bp_flag): New.
3791 (tui_bp_flags): New enum flags type.
3792 (struct tui_source_element) <break_mode>: Change type. Rename
3793 from has_break.
3794 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3795 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3796 constants.
3797 * tui/tui-winsource.h: Fix comment.
3798
350fab54
AH
37992019-07-04 Alan Hayward <alan.hayward@arm.com>
3800
3801 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3802 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3803 (store_fpregs_to_thread)
3804 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3805 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3806 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3807 (IWMMXT_REGS_SIZE): Add define.
3808 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3809 (fetch_vfp_regs, store_vfp_regs)
3810 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3811 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3812
f0452268
AH
38132019-07-04 Alan Hayward <alan.hayward@arm.com>
3814
3815 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3816 defines.
3817 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3818 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3819 (ARM_INT_REGISTER_SIZE): ...to this.
3820 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3821 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3822 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3823 (arm_linux_collect_gregset, supply_nwfpe_register)
3824 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3825 defines.
3826 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3827 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3828 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3829 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3830 (arm_return_in_memory, arm_store_return_value)
3831 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3832 (arm_record_ld_st_multiple): Likewise.
3833 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3834 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3835
e935475c
AH
38362019-07-04 Alan Hayward <alan.hayward@arm.com>
3837
3838 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3839 AARCH64_DISPLACED_MODIFIED_INSNS.
3840 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3841 (aarch64_displaced_step_copy_insn): Likewise.
3842 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3843 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3844 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3845 ARM_DISPLACED_MODIFIED_INSNS.
3846 * arm-tdep.c (arm_gdbarch_init): Likewise.
3847 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3848 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3849 (struct arm_displaced_step_closure): Use
3850 ARM_DISPLACED_MODIFIED_INSNS.
3851
df0bb381
AH
38522019-07-04 Alan Hayward <alan.hayward@arm.com>
3853
3854 * features/Makefile: Remove unused xml files.
3855 * features/aarch64.xml: Remove.
3856 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3857 * features/i386/amd64-avx-avx512.xml: Remove.
3858 * features/i386/amd64-avx-linux.xml: Remove.
3859 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3860 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3861 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3862 * features/i386/amd64-avx-mpx.xml: Remove.
3863 * features/i386/amd64-avx.xml: Remove.
3864 * features/i386/amd64-linux.xml: Remove.
3865 * features/i386/amd64-mpx-linux.xml: Remove.
3866 * features/i386/amd64-mpx.xml: Remove.
3867 * features/i386/amd64.xml: Remove.
3868 * features/i386/i386-avx-avx512-linux.xml: Remove.
3869 * features/i386/i386-avx-avx512.xml: Remove.
3870 * features/i386/i386-avx-linux.xml: Remove.
3871 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3872 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3873 * features/i386/i386-avx-mpx-linux.xml: Remove.
3874 * features/i386/i386-avx-mpx.xml: Remove.
3875 * features/i386/i386-avx.xml: Remove.
3876 * features/i386/i386-linux.xml: Remove.
3877 * features/i386/i386-mmx-linux.xml: Remove.
3878 * features/i386/i386-mmx.xml: Remove.
3879 * features/i386/i386-mpx-linux.xml: Remove.
3880 * features/i386/i386-mpx.xml: Remove.
3881 * features/i386/i386.xml: Remove.
3882 * features/i386/x32-avx-avx512-linux.xml: Remove.
3883 * features/i386/x32-avx-linux.xml: Remove.
3884 * features/i386/x32-linux.xml: Remove.
3885
edd6266a
AH
38862019-07-04 Alan Hayward <alan.hayward@arm.com>
3887
3888 * regformats/aarch64.dat: Remove.
3889 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3890 * regformats/i386/amd64-avx-linux.dat: Remove.
3891 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3892 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3893 * regformats/i386/amd64-linux.dat: Remove.
3894 * regformats/i386/amd64-mpx-linux.dat: Remove.
3895 * regformats/i386/amd64.dat: Remove.
3896 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3897 * regformats/i386/i386-avx-linux.dat: Remove.
3898 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3899 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3900 * regformats/i386/i386-linux.dat: Remove.
3901 * regformats/i386/i386-mmx-linux.dat: Remove.
3902 * regformats/i386/i386-mpx-linux.dat: Remove.
3903 * regformats/i386/i386.dat: Remove.
3904 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3905 * regformats/i386/x32-avx-linux.dat: Remove.
3906 * regformats/i386/x32-linux.dat: Remove.
3907
2b40fda7
AH
39082019-07-04 Alan Hayward <alan.hayward@arm.com>
3909
3910 * aarch64-tdep.c: Remove xml self tests.
3911 * amd64-linux-tdep.c: Likewise.
3912 * amd64-tdep.c: Likewise.
3913 * i386-linux-tdep.c: Likewise.
3914 * i386-tdep.c: Likewise.
3915
5f4ba3e7
PA
39162019-07-03 Pedro Alves <palves@redhat.com>
3917
3918 PR cli/24732
3919 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3920 (pipe_cmd_option_defs): New.
3921 (make_pipe_cmd_options_def_group): New.
3922 (pipe_command): Use gdb::option::process_options.
3923 (pipe_command_completer): New function.
3924 (_initialize_cli_cmds): Install completer for "pipe" command.
3925
3d9be6f5
PA
39262019-07-03 Pedro Alves <palves@redhat.com>
3927
3928 * cli/cli-option.c (union option_value) <string>: New field.
3929 (struct option_def_and_value): Add ctor, move ctor, dtor and
3930 use DISABLE_COPY_AND_ASSIGN.
3931 (option_def_and_value::clear_value): New.
3932 (parse_option, save_option_value_in_ctx, get_val_type_str)
3933 (add_setshow_cmds_for_options): Handle var_string.
3934 * cli-option.h (union option_def::var_address) <string>: New
3935 field.
3936 (struct string_option_def): New.
3937 * maint-test-options.c (struct test_options_opts): Add default
3938 ctor and use DISABLE_COPY_AND_ASSIGN.
3939 <string_opt>: New field.
3940 (test_options_opts::~test_options_opts): New.
3941 (test_options_opts::dump): Also dump "-string".
3942 (test_options_option_defs): Install "string.
3943
41fc454c
PA
39442019-07-03 Pedro Alves <palves@redhat.com>
3945
3946 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3947 option_value with a null enumeration.
3948 (complete_options): Save the option values in the context.
3949 (save_option_value_in_ctx): New, factored out from ...
3950 (process_options): ... here.
3951 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3952 of the function.
3953 * maint-test-options.c (test_options_opts::dump): New, factored
3954 out from ...
3955 (maintenance_test_options_command_mode): ... here.
3956 (maintenance_test_options_command_completion_result): Delete.
3957 (maintenance_test_options_command_completion_text): Update
3958 comment.
3959 (maintenance_show_test_options_completion_result): Change
3960 prototype. Just print
3961 maintenance_test_options_command_completion_text.
3962 (save_completion_result): New.
3963 (maintenance_test_options_completer_mode): Pass options context to
3964 complete_options, and then save a dump.
3965 (_initialize_maint_test_options): Use add_cmd to install "maint
3966 show test-options-completion-result".
3967
fdbc9870
PA
39682019-07-03 Pedro Alves <palves@redhat.com>
3969
3970 * NEWS (New commands): Mention "with" and "maint with".
3971 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3972 (with_command, with_command_completer): New.
3973 (pipe_command): Adjust to new repeat_previous
3974 interface.
3975 (_initialize_cli_cmds): Install the "with" command and its "w"
3976 alias.
3977 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3978 declarations.
3979 * cli/cli-setshow.c (parse_cli_var_uinteger)
3980 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3981 argument strings for all var_types.
3982 (get_setshow_command_value_string): New, factored out from ...
3983 (do_show_command): ... this.
3984 * cli/cli-setshow.h: Include <string>.
3985 (get_setshow_command_value_string): Declare.
3986 * command.h (repeat_previous): Now returns const char *. Adjust
3987 comment.
3988 * maint.c: Include "cli/cli-cmds.h".
3989 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3990 (_initialize_maint_cmds): Register the "maintenance with" command.
3991 * top.c (repeat_previous): Move bits from pipe_command here:
3992 Return the saved command line, if any; error out if there's no
3993 command to relaunch.
3994
c6ac8931
PA
39952019-07-03 Pedro Alves <palves@redhat.com>
3996
3997 * NEWS (New commands): Mention "maint set/show test-settings"
3998 instead of "maint test-settings".
3999 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4000 (maintenance_test_settings_set_list): Rename to ...
4001 (maintenance_set_test_settings_list): ... this.
4002 (maintenance_test_settings_show_list): Rename to ...
4003 (maintenance_show_test_settings_list): ... this.
4004 (maintenance_test_settings_cmd): Delete.
4005 (maintenance_test_settings_set_cmd): ...
4006 (maintenance_set_test_settings_cmd): ... this.
4007 (maintenance_test_settings_show_cmd): ...
4008 (maintenance_show_test_settings_cmd): ... this.
4009 (maintenance_test_settings_show_value_cmd):
4010 (maintenance_show_test_settings_value_cmd): ... this.
4011 (_initialize_maint_test_settings): No longer install the "maint
4012 test-settings" prefix command. Rename "maint test-settings set"
4013 to "maint set test-settings", and "maint test-settings show" to
4014 "maint show test-settings". Adjust all subcommands.
4015
d1fcf2fd
PA
40162019-07-03 Pedro Alves <palves@redhat.com>
4017
4018 * maint-test-settings.c: Fix file's intro comment. Replace all
4019 references to "test-options" with references to "test-settings",
4020 in comments.
4021
970f9d09
PA
40222019-07-03 Pedro Alves <palves@redhat.com>
4023
4024 * maint-test-settings.c (maintenance_test_settings_xxx)
4025 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4026 New.
4027 (maintenance_test_settings_enums): Use them.
4028 (maintenance_test_settings_enum): Default to
4029 maintenance_test_settings_xxx.
4030 (_initialize_maint_test_settings): Initialize
4031 MAINTENANCE_TEST_SETTINGS_FILENAME.
4032
f3869b1a
SM
40332019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4034
4035 * breakpoint.h (remove_breakpoints_inf): Change return type to
4036 void, move function documentation here.
4037 * breakpoint.c (remove_breakpoints_inf): Change return type to
4038 void, move function documentation to header.
4039
54d66006
PA
40402019-07-02 Pedro Alves <palves@redhat.com>
4041
4042 * NEWS (Completion improvements): Mention "info threads".
4043 * thread.c (struct info_threads_opts, info_threads_option_defs)
4044 (make_info_threads_options_def_group): New.
4045 (info_threads_command): Use gdb::option::process_options.
4046 (info_threads_command_completer): New.
4047 (_initialize_thread): Use gdb::option::build_help to build the
4048 help text for "info threads".
4049
854f6088
SM
40502019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4051
4052 * defs.h (generic_load): Move from here...
4053 * symfile.h (generic_load): ... to here. Rename name parameter
4054 to args.
4055 * symfile.c (generic_load): Add comment.
4056
54ee4252
TT
40572019-07-01 Tom Tromey <tromey@adacore.com>
4058
4059 * dwarf2read.c
4060 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4061 declaration of without_params. Fix formatting.
4062
65392b3e
TT
40632019-07-01 Tom Tromey <tromey@adacore.com>
4064
4065 * ada-exp.y (find_primitive_type): Update.
4066 * ada-lang.h (ada_lookup_symbol): Update.
4067 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4068 parameter.
4069 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4070
7d7571f0
SDJ
40712019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4072
4073 PR breakpoints/24541
4074 * gdbarch.c: Regenerate.
4075 * gdbarch.h: Regenerate.
4076 * gdbarch.sh: Add 'stap_adjust_register'.
4077 * i386-tdep.c: Include '<unordered_set>'.
4078 (i386_stap_adjust_register): New function.
4079 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4080 * stap-probe.c (stap_parse_register_operand): Call
4081 'gdbarch_stap_adjust_register'.
4082
5af5392a
SDJ
40832019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4084
4085 PR python/24742
4086 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4087 * python/python.c (do_start_initialization): Use 'xmalloc'
4088 instead of 'PyMem_Malloc'.
4089
10d06d82
TT
40902019-06-28 Tom Tromey <tromey@adacore.com>
4091
4092 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4093 for Ada.
4094
1b7f24cd
TT
40952019-06-27 Tom Tromey <tromey@adacore.com>
4096
4097 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4098 objfile_key.
4099 (arm_find_mapping_symbol, arm_record_special_symbol)
4100 (_initialize_arm_tdep): Update.
4101 (arm_objfile_data_free): Remove.
4102
3d507ff2
TT
41032019-06-27 Tom Tromey <tromey@adacore.com>
4104
4105 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4106 to cp_print_static_field.
4107
762c164d
TT
41082019-06-26 Tom Tromey <tromey@adacore.com>
4109
4110 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4111 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4112 declare.
4113
aa2f9bcf
AH
41142019-06-26 Alan Hayward <alan.hayward@arm.com>
4115
4116 * features/aarch64-core.c (create_feature_aarch64_core):
4117 Regenerate.
4118 * features/aarch64-core.xml: Add cpsr flags.
4119
3426ae57
AH
41202019-06-26 Alan Hayward <alan.hayward@arm.com>
4121
4122 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4123 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4124
4838e44c
SM
41252019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4126
4127 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4128 field.
4129 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4130 use.
4131 (arm_record_special_symbol): Don't insert new symbol in sorted
4132 position, push it at the end.
4133
54cc7474
SM
41342019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4135
4136 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4137 (arm_mapping_symbol_s): Remove.
4138 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4139 (arm_mapping_symbol_vec): New typedef.
4140 (struct arm_per_objfile): Add constructor.
4141 <section_maps>: Change type to
4142 std::unique_ptr<arm_mapping_symbol_vec[]>.
4143 (arm_compare_mapping_symbols): Remove.
4144 (arm_find_mapping_symbol): Adjust to section_maps type change.
4145 (arm_objfile_data_free): Call delete on arm_per_objfile.
4146 (arm_record_special_symbol): Adjust to section_maps type change.
4147 Allocate arm_per_objfile with new.
4148
b65b566c
PW
41492019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4150
4151 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4152 with the command prefix.
4153
c2fc64f5
TT
41542019-06-25 Tom Tromey <tom@tromey.com>
4155
4156 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4157 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4158
fb54fa76
TT
41592019-06-25 Tom Tromey <tom@tromey.com>
4160
4161 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4162 type.
4163 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4164 protected.
4165
f7952c57
TT
41662019-06-25 Tom Tromey <tom@tromey.com>
4167
4168 * tui/tui-winsource.c
4169 (tui_source_window_base::set_is_exec_point_at): Add check against
4170 LOA_ADDRESS.
4171
17568d78
TT
41722019-06-25 Tom Tromey <tom@tromey.com>
4173
4174 * tui/tui-source.c (tui_set_source_content): Don't check before
4175 xfree.
4176 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4177
53e7cdba
TT
41782019-06-25 Tom Tromey <tom@tromey.com>
4179
4180 * tui/tui-winsource.h (tui_update_source_window_as_is)
4181 (tui_alloc_source_buffer, tui_line_is_displayed)
4182 (tui_addr_is_displayed): Change type of win_info.
4183 * tui/tui-winsource.c (tui_update_source_window_as_is)
4184 (tui_clear_source_content, tui_show_source_line)
4185 (tui_show_source_content, tui_source_window_base::refill)
4186 (tui_source_window_base::set_is_exec_point_at)
4187 (tui_source_window_base::set_is_exec_point_at)
4188 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4189 (tui_alloc_source_buffer, tui_line_is_displayed)
4190 (tui_addr_is_displayed): Change type of win_info. Update.
4191 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4192 (tui_source_window_base::do_make_visible_with_new_height):
4193 Update.
4194 * tui/tui-source.c (tui_set_source_content)
4195 (tui_set_source_content_nil)
4196 (tui_source_window::do_scroll_vertical): Update.
4197 * tui/tui-layout.c (show_layout): Update.
4198 * tui/tui-disasm.c (tui_set_disassem_content)
4199 (tui_disasm_window::do_scroll_vertical): Update.
4200 * tui/tui-data.h (tui_win_content): Remove.
4201 (struct tui_gen_win_info) <content, content_size>: Remove.
4202 (struct tui_source_element): Add initializers and destructor.
4203 (union tui_which_element, struct tui_win_element): Remove.
4204 (struct tui_source_window_base) <content>: New field.
4205 (struct tui_data_window): Remove destructor.
4206 (tui_alloc_content, tui_free_win_content)
4207 (tui_free_all_source_wins_content): Don't declare.
4208 * tui/tui-data.c (tui_initialize_static_data): Update.
4209 (init_content_element, tui_alloc_content): Remove.
4210 (~tui_gen_win_info): Update.
4211 (~tui_data_window, tui_free_all_source_wins_content)
4212 (tui_free_win_content, free_content, free_content_elements):
4213 Remove.
4214
7908abbf
TT
42152019-06-25 Tom Tromey <tom@tromey.com>
4216
4217 * tui/tui-winsource.h (tui_clear_source_content)
4218 (tui_erase_source_content, tui_show_source_content): Change type
4219 of win_info.
4220 * tui/tui-winsource.c (tui_clear_source_content)
4221 (tui_erase_source_content, tui_show_source_content): Change type
4222 of win_info.
4223 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4224 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4225 win_info.
4226 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4227 win_info.
4228 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4229
02c28df0
TT
42302019-06-25 Tom Tromey <tom@tromey.com>
4231
4232 * tui/tui-winsource.c (tui_clear_source_content)
4233 (tui_source_window_base::set_is_exec_point_at): Update.
4234 * tui/tui-source.c (tui_set_source_content_nil): Update.
4235 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4236 a bool.
4237 * tui/tui-data.c (init_content_element): Update.
4238
6658b1bf
TT
42392019-06-25 Tom Tromey <tom@tromey.com>
4240
4241 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4242 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4243 * tui/tui-layout.c (init_and_make_win): Update.
4244 * tui/tui.h (enum tui_win_type): Update.
4245 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4246 tui_win_is_auxillary.
4247 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4248 tui_win_is_auxillary.
4249
21e1c91e
TT
42502019-06-25 Tom Tromey <tom@tromey.com>
4251
4252 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4253 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4254 (tui_delete_data_content_windows, tui_display_all_data)
4255 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4256 Update.
4257 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4258 * tui/tui-regs.c (tui_last_regs_line_no)
4259 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4260 (tui_show_registers): Update.
4261 (tui_show_register_group): Return void. Update.
4262 (tui_display_registers_from, tui_display_reg_element_at_line)
4263 (tui_display_registers_from_line, tui_check_register_values):
4264 Update.
4265 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4266 member.
4267 (struct tui_data_window) <regs_content>: Now a std::vector.
4268 <regs_content_count>: Remove.
4269 (tui_add_content_elements, tui_free_data_content): Don't declare.
4270 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4271 (init_content_element): Remove DATA_WIN case. Add assert.
4272 (tui_add_content_elements): Remove.
4273 (tui_data_window): Update.
4274 (tui_free_data_content): Remove.
4275 (free_content_elements): Remove DATA_WIN case.
4276
115ac53b
TT
42772019-06-25 Tom Tromey <tom@tromey.com>
4278
4279 * tui/tui-data.c (tui_data_item_window): Update.
4280 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4281 * tui/tui-windata.c (tui_display_all_data)
4282 (tui_display_data_from_line): Update.
4283 (tui_check_data_values): Remove.
4284 * tui/tui-regs.c (tui_show_register_group)
4285 (tui_display_reg_element_at_line): Update.
4286 * tui/tui-hooks.c (tui_register_changed)
4287 (tui_refresh_frame_and_register_information): Call
4288 tui_check_register_values.
4289 * tui/tui-data.h (struct tui_data_window) <data_content,
4290 data_content_count, data_type>: Remove.
4291 (enum tui_data_type): Remove.
4292
4293 * tui/tui-data.c (tui_data_window::clear_detail)
4294 (~tui_data_window): Update.
4295
eaf9738b
TT
42962019-06-25 Tom Tromey <tom@tromey.com>
4297
4298 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4299 declare.
4300 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4301 Rename from tui_first_data_item_displayed. Update.
4302 (tui_data_window::refresh_all)
4303 (tui_data_window::do_scroll_vertical): Update.
4304 * tui/tui-data.h (struct tui_data_window)
4305 <first_data_item_displayed>: Declare new method.
4306
31ca4723
TT
43072019-06-25 Tom Tromey <tom@tromey.com>
4308
4309 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4310 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4311 contents...
4312 (tui_initialize_static_data): ...here.
4313
41bcff7f
TT
43142019-06-25 Tom Tromey <tom@tromey.com>
4315
4316 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4317 (tui_display_registers_from, tui_check_register_values): Update.
4318 (tui_display_register): Remove win_info parameter; update.
4319 (tui_get_register): Change type of parameters.
4320 * tui/tui-data.h (struct tui_data_element): Remove.
4321 (union tui_which_element) <data>: Remove.
4322 <data_window>: Change type.
4323 (struct tui_data_item_window): New.
4324 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4325 case. Add assert.
4326 (~tui_data_item_window): New destructor.
4327 (free_content_elements): Remove DATA_ITEM_WIN case.
4328
d2802c33
TT
43292019-06-25 Tom Tromey <tom@tromey.com>
4330
4331 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4332 Remove.
4333
dd835f8b
TT
43342019-06-25 Tom Tromey <tom@tromey.com>
4335
4336 * tui/tui-data.h (struct tui_command_element): Remove.
4337 (union tui_which_element) <command>: Remove.
4338 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4339 assert.
4340 (free_content_elements): Remove CMD_WIN case.
4341
bd7db367
TT
43422019-06-25 Tom Tromey <tom@tromey.com>
4343
4344 * tui/tui-layout.c (tui_set_layout): Update.
4345 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4346 * tui/tui-data.c (layout_def): Update.
4347
3add462f
TT
43482019-06-25 Tom Tromey <tom@tromey.com>
4349
4350 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4351 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4352 (tui_source_window_base::set_new_height): Update.
4353 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4354 Update.
4355 (tui_set_locator_fullname, tui_set_locator_info)
4356 (tui_show_frame_info): Update.
4357 * tui/tui-source.c (tui_set_source_content)
4358 (tui_source_is_displayed): Update.
4359 * tui/tui-layout.c (show_source_disasm_command, show_data)
4360 (show_source_or_disasm_and_command): Update.
4361 * tui/tui-disasm.c (tui_set_disassem_content)
4362 (tui_get_begin_asm_address): Update.
4363 * tui/tui-data.h (struct tui_locator_element): Remove.
4364 (union tui_which_element) <locator>: Remove.
4365 (struct tui_locator_window): New.
4366 (tui_locator_win_info_ptr): Change return type.
4367 * tui/tui-data.c (_locator): Change type.
4368 (tui_locator_win_info_ptr): Change return type.
4369 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4370 (tui_alloc_content): Add assert.
4371
489e9d8b
TT
43722019-06-25 Tom Tromey <tom@tromey.com>
4373
4374 * tui/tui-winsource.c
4375 (tui_exec_info_window::maybe_allocate_content): New method.
4376 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4377 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4378 (make_source_or_disasm_window): Add cast.
4379 * tui/tui-data.h (union tui_which_element) <simple_string>:
4380 Remove.
4381 (struct tui_source_info): New.
4382 (struct tui_source_window_base) <execution_info>: Change type.
4383 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4384 case, and add assert.
4385 (tui_alloc_content): Add assert.
4386
c3fabb7d
TT
43872019-06-25 Tom Tromey <tom@tromey.com>
4388
4389 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4390 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4391 * tui/tui-data.c (tui_alloc_win_info): Remove.
4392
bbc228ee
TT
43932019-06-25 Tom Tromey <tom@tromey.com>
4394
4395 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4396 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4397 can_highlight.
4398
5fcee43a
TT
43992019-06-25 Tom Tromey <tom@tromey.com>
4400
4401 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4402 make_visible_with_new_height method.
4403 (tui_win_info::make_visible_with_new_height): New method.
4404 (tui_source_window_base::do_make_visible_with_new_height)
4405 (tui_data_window::do_make_visible_with_new_height)
4406 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4407 (make_visible_with_new_height): Remove.
4408 (tui_resize_all, tui_adjust_win_heights): Use
4409 make_visible_with_new_height method.
4410 * tui/tui-data.h (struct tui_win_info)
4411 <do_make_visible_with_new_height, make_visible_with_new_height>:
4412 New methods.
4413 (struct tui_source_window_base, struct tui_data_window)
4414 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4415 methods.
4416
d83f1fe6
TT
44172019-06-25 Tom Tromey <tom@tromey.com>
4418
4419 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4420 method.
4421 (update_tab_width): Call update_tab_width method.
4422 * tui/tui-data.h (struct tui_win_info)
4423 (struct tui_source_window_base) <update_tab_width>: New methods.
4424
17374de4
TT
44252019-06-25 Tom Tromey <tom@tromey.com>
4426
4427 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4428 parameter.
4429 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4430 parameter.
4431 (tui_gen_win_info::make_visible): Update.
4432 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4433 parameter.
4434 * tui/tui-data.h (enum tui_box): New enum.
4435 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4436
f936bca2
TT
44372019-06-25 Tom Tromey <tom@tromey.com>
4438
4439 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4440 init_and_make_win for EXEC_INFO_WIN.
4441 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4442 longer inline.
4443 (struct tui_win_info) <~tui_win_info>: Inline.
4444 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4445 Don't declare.
4446 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4447 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4448 Remove.
4449 (tui_initialize_static_data): Update.
4450 (~tui_gen_win_info): Handle more cleanup here.
4451 (~tui_source_window_base): Delete "execution_info".
4452 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4453
d6ba6a11
TT
44542019-06-25 Tom Tromey <tom@tromey.com>
4455
4456 * tui/tui-layout.c (make_command_window): Don't set
4457 can_highlight.
4458 (show_source_disasm_command): Call the reset method.
4459 (show_data): Don't set can_highlight. Call the reset method.
4460 (tui_gen_win_info::reset): Rename from init_gen_win_info
4461 (init_and_make_win): Simplify. Return tui_gen_win_info.
4462 (show_source_or_disasm_and_command): Call the reset method.
4463 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4464 (struct tui_cmd_window): Set can_highlight.
4465
48a3bd16
TT
44662019-06-25 Tom Tromey <tom@tromey.com>
4467
4468 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4469 from make_visible.
4470 (tui_make_visible, tui_make_invisible): Rewrite.
4471 (tui_win_info::make_visible): Remove.
4472 (tui_source_window_base::make_visible): Update.
4473 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4474 method. Moved from...
4475 (struct tui_win_info) <make_visible>: ...here.
4476
c3bd716f
TT
44772019-06-25 Tom Tromey <tom@tromey.com>
4478
4479 * tui/tui-winsource.c
4480 (tui_source_window_base::do_scroll_horizontal): Remove direction
4481 parameter.
4482 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4483 direction parameter.
4484 * tui/tui-win.c (tui_win_info::forward_scroll)
4485 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4486 (tui_win_info::right_scroll): Update.
4487 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4488 direction parameter.
4489 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4490 direction parameter.
4491 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4492 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4493 Remove direction parameter.
4494 (struct tui_source_window_base, struct tui_source_window)
4495 (struct tui_disasm_window, struct tui_data_window)
4496 (struct tui_cmd_window): Update.
4497
21c32dca
TT
44982019-06-25 Tom Tromey <tom@tromey.com>
4499
4500 * tui/tui-winsource.h (tui_set_exec_info_content)
4501 (tui_show_exec_info_content, tui_erase_exec_info_content)
4502 (tui_clear_exec_info_content, tui_update_exec_info): Change
4503 argument to tui_source_window_base.
4504 * tui/tui-winsource.c (tui_set_exec_info_content)
4505 (tui_show_exec_info_content, tui_erase_exec_info_content)
4506 (tui_clear_exec_info_content, tui_update_exec_info): Change
4507 argument to tui_source_window_base.
4508
73fbdc65
TT
45092019-06-25 Tom Tromey <tom@tromey.com>
4510
4511 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4512 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4513
33325343
TT
45142019-06-25 Tom Tromey <tom@tromey.com>
4515
4516 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4517 check.
4518
29d2c474
TT
45192019-06-25 Tom Tromey <tom@tromey.com>
4520
4521 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4522 type to void.
4523 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4524 type to void.
4525 * tui/tui-source.c (tui_set_source_content): Update.
4526 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4527
152f3f4b
TT
45282019-06-25 Tom Tromey <tom@tromey.com>
4529
4530 * tui/tui-win.c (window_name_completer, tui_set_focus)
4531 (tui_all_windows_info): Use name method.
4532 * tui/tui-data.h (struct tui_gen_win_info)
4533 (struct tui_source_window, struct tui_disasm_window)
4534 (struct tui_data_window, struct tui_cmd_window) <name>: New
4535 method.
4536 (tui_win_name): Don't declare.
4537 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4538 (tui_win_name): Remove.
4539
be4da588
TT
45402019-06-25 Tom Tromey <tom@tromey.com>
4541
4542 * tui/tui-winsource.h (tui_update_source_window)
4543 (tui_update_source_window_as_is): Change parameter type.
4544 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4545 to be a tui_source_window_base.
4546 (tui_update_source_window_as_is): Likewise.
4547 * tui/tui-win.c (make_visible_with_new_height): Update.
4548
5b81daba
TT
45492019-06-25 Tom Tromey <tom@tromey.com>
4550
4551 * tui/tui-winsource.c (tui_erase_source_content)
4552 (tui_show_source_content, tui_show_exec_info_content)
4553 (tui_erase_exec_info_content): Use refresh_window method.
4554 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4555 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4556 from tui_refresh_win.
4557 (tui_data_window::refresh_window): New method.
4558 (tui_win_info::refresh, tui_source_window_base::refresh)
4559 (tui_refresh_all): Use refresh_window method.
4560 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4561 method.
4562 * tui/tui-regs.c (tui_display_register): Call refresh_window
4563 method.
4564 * tui/tui-layout.c (show_source_disasm_command)
4565 (show_source_or_disasm_and_command): Call refresh_window method.
4566 * tui/tui-data.h (struct tui_gen_win_info)
4567 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4568 New method.
4569
cb2ce893
TT
45702019-06-25 Tom Tromey <tom@tromey.com>
4571
4572 * tui/tui.c (tui_rl_other_window, tui_enable)
4573 (tui_is_window_visible, tui_get_command_dimension): Update.
4574 * tui/tui-winsource.c (tui_update_source_window_as_is)
4575 (tui_clear_source_content, tui_erase_source_content)
4576 (tui_show_source_line, tui_source_window_base::refill)
4577 (tui_source_window_base::do_scroll_horizontal)
4578 (tui_source_window_base::set_is_exec_point_at)
4579 (tui_update_breakpoint_info, tui_set_exec_info_content)
4580 (tui_alloc_source_buffer, tui_line_is_displayed)
4581 (tui_addr_is_displayed): Update.
4582 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4583 (tui_check_and_display_highlight_if_needed)
4584 (tui_win_info::make_visible, tui_win_info::refresh)
4585 (tui_refresh_all): Update.
4586 * tui/tui-windata.c (tui_first_data_item_displayed)
4587 (tui_delete_data_content_windows, tui_erase_data_content)
4588 (tui_display_all_data, tui_data_window::refresh_all)
4589 (tui_check_data_values): Update.
4590 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4591 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4592 (tui_win_info::backward_scroll, tui_refresh_all_win)
4593 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4594 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4595 (tui_source_window_base::set_new_height)
4596 (tui_data_window::set_new_height)
4597 (make_invisible_and_set_new_height)
4598 (make_visible_with_new_height, new_height_ok)
4599 (parse_scrolling_args): Update.
4600 * tui/tui-stack.c (tui_show_frame_info): Update.
4601 * tui/tui-source.c (tui_set_source_content)
4602 (tui_set_source_content_nil, tui_source_is_displayed)
4603 (tui_source_window::do_scroll_vertical): Update.
4604 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4605 (tui_display_registers_from, tui_display_reg_element_at_line)
4606 (tui_check_register_values, tui_reg_command): Update.
4607 * tui/tui-layout.c (tui_default_win_height)
4608 (show_source_disasm_command, show_data, init_and_make_win)
4609 (show_source_or_disasm_and_command): Update.
4610 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4611 (tui_redisplay_readline, tui_mld_flush)
4612 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4613 (tui_getc): Update.
4614 * tui/tui-disasm.c (tui_set_disassem_content)
4615 (tui_disasm_window::do_scroll_vertical): Update.
4616 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4617 Now virtual.
4618 (struct tui_win_info): Derive from tui_gen_win_info.
4619 <~tui_win_info>: Mark as override.
4620 <generic>: Remove member.
4621 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4622 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4623 (~tui_data_window, ~tui_win_info)
4624 (tui_free_all_source_wins_content): Update.
4625 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4626
ab313b35
TT
46272019-06-25 Tom Tromey <tom@tromey.com>
4628
4629 * tui/tui-layout.c (init_and_make_win): Use new.
4630 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4631 destructor, initializers.
4632 (tui_alloc_generic_win_info): Don't declare.
4633 * tui/tui-data.c (_locator): Add argument to constructor.
4634 (source_win, disasm_win): New globals.
4635 (exec_info): Remove.
4636 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4637 Update.
4638 (tui_alloc_generic_win_info): Remove.
4639 (init_content_element): Use new.
4640 (tui_win_info::tui_win_info): Update.
4641 (free_content_elements) <case DATA_WIN>: Use delete.
4642
dc2c33e4
TT
46432019-06-25 Tom Tromey <tom@tromey.com>
4644
4645 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4646 * tui/tui-windata.c (tui_first_data_item_displayed)
4647 (tui_delete_data_content_windows): Update.
4648 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4649 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4650 (tui_display_registers_from, tui_check_register_values): Update.
4651 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4652 pointer.
4653 * tui/tui-data.c (init_content_element): Update. Allocate the new
4654 window.
4655 (tui_free_data_content): Update.
4656 (free_content_elements) <case DATA_WIN>: Free the window.
4657
214a5cbe
TT
46582019-06-25 Tom Tromey <tom@tromey.com>
4659
4660 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4661 Update.
4662 * tui/tui-layout.c (make_command_window)
4663 (show_source_disasm_command, show_data, init_and_make_win)
4664 (show_source_or_disasm_and_command): Update.
4665 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4666 method.
4667 <can_highight, is_highlighted>: Now bool.
4668 (tui_set_win_highlight): Don't declare.
4669 * tui/tui-data.c (tui_set_win_highlight): Remove.
4670
8e2daf15
TT
46712019-06-25 Tom Tromey <tom@tromey.com>
4672
4673 * tui/tui-wingeneral.c (make_visible): Remove check of window
4674 type.
4675
8903bd8a
TT
46762019-06-25 Tom Tromey <tom@tromey.com>
4677
4678 * tui/tui-win.c (tui_win_info::max_height)
4679 (tui_cmd_window::max_height): New methods.
4680 (new_height_ok): Call max_height.
4681 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4682 <max_height>: New method.
4683
3f02ce1e
TT
46842019-06-25 Tom Tromey <tom@tromey.com>
4685
4686 * tui/tui-win.c (tui_source_window_base::set_new_height)
4687 (tui_data_window::set_new_height): New methods.
4688 (make_invisible_and_set_new_height): Call set_new_height method.
4689 * tui/tui-data.h (struct tui_win_info)
4690 (struct tui_source_window_base, struct tui_data_window)
4691 <set_new_height>: New method.
4692
1825f487
TT
46932019-06-25 Tom Tromey <tom@tromey.com>
4694
4695 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4696 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4697 tui_refresh_data_win.
4698 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4699 method.
4700 (tui_refresh_all_win): Call the refresh_all method.
4701 (tui_set_focus): Likewise.
4702 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4703 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4704 Likewise.
4705
ad54d15b
TT
47062019-06-25 Tom Tromey <tom@tromey.com>
4707
4708 * tui/tui-winsource.h (tui_refill_source_window)
4709 (tui_set_is_exec_point_at): Don't declare.
4710 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4711 (tui_source_window_base::refill): Rename from
4712 tui_refill_source_window.
4713 (tui_source_window_base::do_scroll_horizontal): Update.
4714 (tui_source_window_base::set_is_exec_point_at): Rename from
4715 tui_set_is_exec_point_at.
4716 (tui_update_all_breakpoint_info): Update.
4717 * tui/tui-stack.c (tui_show_frame_info): Update.
4718 * tui/tui-layout.c (show_data): Add cast.
4719 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4720 * tui/tui-data.h (struct tui_source_window_base) <refill,
4721 set_is_exec_point_at>: New methods.
4722 (tui_source_windows, tui_add_to_source_windows): Update types.
4723 (tui_add_to_source_windows): Remove redundant declaration.
4724 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4725 (tui_source_windows): Change return type.
4726 (tui_clear_source_windows_detail): Update.
4727 (tui_add_to_source_windows): Change type of parameter.
4728 (tui_free_all_source_wins_content): Update.
4729
2042b506
TT
47302019-06-25 Tom Tromey <tom@tromey.com>
4731
4732 * tui/tui-wingeneral.c (tui_win_info::refresh)
4733 (tui_source_window_base::refresh): New methods.
4734 (tui_refresh_all): Call the refresh method.
4735 * tui/tui-data.h (struct tui_win_info)
4736 (struct tui_source_window_base) <refresh>: New method.
4737
56122977
TT
47382019-06-25 Tom Tromey <tom@tromey.com>
4739
4740 * tui/tui.h (tui_is_window_visible): Return bool.
4741 * tui/tui.c (tui_is_window_visible): Return bool.
4742 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4743 (tui_make_visible, tui_make_invisible)
4744 (tui_win_info::make_visible)
4745 (tui_source_window_base::make_visible, make_all_visible)
4746 (tui_make_all_visible, tui_make_all_invisible): Update.
4747 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4748 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4749 bool.
4750 (struct tui_win_info, struct tui_source_window_base)
4751 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4752 * tui/tui-data.c (tui_init_generic_part): Update.
4753
cda37efb
TT
47542019-06-25 Tom Tromey <tom@tromey.com>
4755
4756 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4757 (tui_source_window_base::make_visible): New methods.
4758 (make_all_visible): Make method call.
4759 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4760 (struct tui_source_window_base, struct tui_cmd_window): Override
4761 make_visible.
4762 (tui_win_is_source_type): Don't declare.
4763 * tui/tui-data.c (tui_win_is_source_type): Remove.
4764
6a0ee02c
TT
47652019-06-25 Tom Tromey <tom@tromey.com>
4766
4767 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4768 NULL check.
4769
63901aec
TT
47702019-06-25 Tom Tromey <tom@tromey.com>
4771
4772 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4773 Inline constructor. Add initializers for members.
4774 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4775 constructors; now inline in class.
4776
ceb13a13
TT
47772019-06-25 Tom Tromey <tom@tromey.com>
4778
4779 * tui/tui-regs.c (tui_show_registers): Update.
4780 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4781 bool.
4782 * tui/tui-data.c (tui_data_window::clear_detail)
4783 (tui_data_window): Update.
4784
238eb706
TT
47852019-06-25 Tom Tromey <tom@tromey.com>
4786
4787 * tui/tui-windata.c (tui_display_all_data)
4788 (tui_display_data_from_line, tui_display_data_from)
4789 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4790 Update.
4791 * tui/tui-regs.c (tui_last_regs_line_no)
4792 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4793 (tui_show_registers, tui_show_register_group)
4794 (tui_display_registers_from, tui_display_reg_element_at_line)
4795 (tui_display_registers_from_line, tui_check_register_values)
4796 (tui_reg_next, tui_reg_prev): Update.
4797 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4798 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4799 tui_data_window.
4800 (struct tui_win_info) <detail>: Remove. Add new fields from
4801 tui_data_info.
4802 (TUI_DATA_WIN): Add cast.
4803 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4804 (~tui_data_window): Simplify.
4805
81491aa0
TT
48062019-06-25 Tom Tromey <tom@tromey.com>
4807
4808 * tui/tui-layout.c (show_source_disasm_command)
4809 (show_source_or_disasm_and_command): Update.
4810 * tui/tui-io.c (update_cmdwin_start_line)
4811 (tui_redisplay_readline): Update.
4812 * tui/tui-data.h (struct tui_command_info): Remove.
4813 (struct tui_win_info) <detail>: Remove command_info member.
4814 (struct tui_data_window) <start_line>: New member, from
4815 tui_command_info.
4816 (TUI_CMD_WIN): Add casts.
4817
e6e41501
TT
48182019-06-25 Tom Tromey <tom@tromey.com>
4819
4820 * tui/tui-winsource.c (tui_update_source_window)
4821 (tui_refill_source_window)
4822 (tui_source_window_base::do_scroll_horizontal)
4823 (tui_update_breakpoint_info, tui_set_exec_info_content)
4824 (tui_show_exec_info_content, tui_erase_exec_info_content)
4825 (tui_clear_exec_info_content): Update.
4826 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4827 Update.
4828 * tui/tui-win.c (make_invisible_and_set_new_height)
4829 (make_visible_with_new_height): Update.
4830 * tui/tui-source.c (tui_set_source_content)
4831 (tui_show_symtab_source): Update.
4832 * tui/tui-layout.c (extract_display_start_addr)
4833 (show_source_disasm_command, show_data)
4834 (make_source_or_disasm_window)
4835 (show_source_or_disasm_and_command): Update.
4836 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4837 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4838 "gdbarch".
4839 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4840 to tui_source_window_base.
4841 (struct tui_win_info) <detail>: Remove source_info member.
4842 (struct tui_source_window_base) <has_locator>: Inline.
4843 Move contents from tui_source_info; rename has_locator member to
4844 m_has_locator.
4845 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4846 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4847 header file.
4848 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4849 Simplify.
4850 (tui_free_all_source_wins_content): Cast to
4851 tui_source_window_base.
4852
44f0e208
TT
48532019-06-25 Tom Tromey <tom@tromey.com>
4854
4855 * tui/tui-win.c (make_invisible_and_set_new_height)
4856 (make_visible_with_new_height): Call has_locator method.
4857 * tui/tui-layout.c (show_source_disasm_command, show_data)
4858 (show_source_or_disasm_and_command): Update for bool change.
4859 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4860 (tui_win_info) <has_locator>: New method.
4861 (struct tui_source_window_base) <has_locator>: New method.
4862 (tui_win_has_locator): Don't declare.
4863 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4864 from tui_win_has_locator.
4865 (tui_source_window_base): Use false, not FALSE.
4866
7778b912
TT
48672019-06-25 Tom Tromey <tom@tromey.com>
4868
4869 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4870 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4871 clear_detail method directly.
4872 (tui_clear_win_detail): Remove.
4873
f83d391c
TT
48742019-06-25 Tom Tromey <tom@tromey.com>
4875
4876 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4877 "this", not TUI_DISASM_WIN.
4878
13446e05
TT
48792019-06-25 Tom Tromey <tom@tromey.com>
4880
4881 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4882 declare.
4883 * tui/tui-winsource.c
4884 (tui_source_window_base::do_scroll_horizontal): Rename from
4885 tui_horizontal_source_scroll.
4886 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4887 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4888 from tui_vertical_data_scroll.
4889 * tui/tui-win.h (tui_scroll): Don't declare.
4890 * tui/tui-win.c (tui_win_info::forward_scroll)
4891 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4892 (tui_win_info::right_scroll): Rename and update.
4893 (tui_scroll_forward_command, tui_scroll_backward_command)
4894 (tui_scroll_left_command, tui_scroll_right_command): Update.
4895 (tui_scroll): Remove.
4896 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4897 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4898 from tui_vertical_source_scroll.
4899 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4900 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4901 from tui_vertical_disassem_scroll.
4902 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4903 do_scroll_horizontal>: New methods.
4904 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4905 Likewise.
4906 (struct tui_source_window_base): Add do_scroll_horizontal.
4907 (struct tui_source_window, struct tui_disasm_window): Add
4908 do_scroll_vertical.
4909 (struct tui_data_window, struct tui_cmd_window): Add
4910 do_scroll_horizontal and do_scroll_vertical.
4911 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4912
5cf82909
TT
49132019-06-25 Tom Tromey <tom@tromey.com>
4914
4915 * tui/tui-data.h (struct tui_source_window_base): New struct.
4916 (struct tui_source_window): Derive from tui_source_window_base.
4917 (struct tui_disasm_window): New struct.
4918 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4919 from tui_source_window::clear_detail.
4920 (tui_source_window_base): Rename from tui_source_window.
4921 (~tui_source_window_base): Rename from ~tui_source_window.
4922 (tui_alloc_win_info): Create a tui_disasm_window.
4923
ee1d42d6
TT
49242019-06-25 Tom Tromey <tom@tromey.com>
4925
4926 * tui/tui-data.h (struct tui_source_window)
4927 (struct tui_data_window): Declare destructors.
4928 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4929 destructors.
4930 (tui_win_info): Simplify.
4931
b4eb2452
TT
49322019-06-25 Tom Tromey <tom@tromey.com>
4933
4934 * tui/tui-winsource.c (tui_display_main)
4935 (tui_update_source_windows_with_addr)
4936 (tui_update_all_breakpoint_info): Update.
4937 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4938 (new_height_ok, parse_scrolling_args): Update.
4939 * tui/tui-stack.c (tui_show_frame_info): Update.
4940 * tui/tui-data.h (struct tui_list): Remove.
4941 (tui_source_windows): Return a reference to a std::vector.
4942 * tui/tui-data.c (source_windows): Now a std::vector.
4943 (tui_source_windows): Change return type.
4944 (tui_clear_source_windows): Rewrite.
4945 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4946 (tui_free_all_source_wins_content): Rewrite.
4947
8761a91b
TT
49482019-06-25 Tom Tromey <tom@tromey.com>
4949
4950 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4951 (struct tui_data_window, struct tui_cmd_window): Declare
4952 clear_detail method.
4953 * tui/tui-data.c (tui_source_window::clear_detail)
4954 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4955 methods.
4956 (tui_clear_win_detail): Simplify.
4957
0ed69eda
TT
49582019-06-25 Tom Tromey <tom@tromey.com>
4959
4960 * tui/tui-layout.c (make_source_window, make_disasm_window)
4961 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4962 Return the new window.
4963 (show_source_disasm_command, show_data)
4964 (show_source_or_disasm_and_command): Update.
4965
82432e10
TT
49662019-06-25 Tom Tromey <tom@tromey.com>
4967
4968 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4969 parameter. Return the new window.
4970 (show_source_disasm_command): Update and remove NULL check.
4971 (show_source_or_disasm_and_command): Update.
4972
ec328aa5
TT
49732019-06-25 Tom Tromey <tom@tromey.com>
4974
4975 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4976
33b906ab
TT
49772019-06-25 Tom Tromey <tom@tromey.com>
4978
4979 * tui/tui-data.h (struct tui_win_info): Make constructor
4980 protected. Make destructor virtual. Add initializers.
4981 (tui_source_window, tui_data_window, tui_cmd_window): New
4982 classes.
4983 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4984 constructor. Add "type" parameter.
4985 (tui_source_window, tui_data_window, tui_cmd_window): New
4986 constructors.
4987 (tui_alloc_win_info): Instantiate the appropriate subclass.
4988
e7e11af4
TT
49892019-06-25 Tom Tromey <tom@tromey.com>
4990
4991 * tui/tui-win.c (tui_resize_all): Use delete.
4992 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4993 destructor.
4994 (tui_free_window): Don't declare.
4995 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4996 Update.
4997
6792b55e
TT
49982019-06-25 Tom Tromey <tom@tromey.com>
4999
5000 * tui/tui-data.h (struct tui_win_info): Add constructor.
5001 * tui/tui-data.c (tui_alloc_win_info): Use new.
5002 (tui_free_window): Use delete.
5003
f95675e1
TT
50042019-06-22 Tom Tromey <tom@tromey.com>
5005
5006 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5007 declare.
5008 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5009
5bff081c
TT
50102019-06-22 Tom Tromey <tom@tromey.com>
5011
5012 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5013 declare.
5014 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5015
47e3f474
TV
50162019-06-22 Tom de Vries <tdevries@suse.de>
5017
5018 * dwarf2read.c (create_addrmap_from_aranges)
5019 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5020 instead of '%zu'.
5021
fd5866f6
SM
50222019-06-21 Simon Marchi <simon.marchi@efficios.com>
5023
5024 * dwarf2read.h (dwarf2_section_info_def): Remove.
5025 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5026 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5027 std::vector<dwarf2_section_info>.
5028 (struct dwo_file) <~dwo_file>: Remove.
5029 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5030 types field.
5031 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5032 (dwarf2_read_debug_names): Likewise.
5033 (create_debug_types_hash_table): Change parameter type to
5034 array_view, adjust code accordingly.
5035 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5036 (partial_die_info::fixup): Likewise.
5037 (determine_prefix): Likewise.
5038 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5039
fb1eb2f9
SM
50402019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5041
5042 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5043 gdb_bfd_ref_ptr.
5044 <~dwo_file>: Remove call to gdb_bfd_unref.
5045 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5046 gdb_bfd_ref_ptr::get.
5047
51ac9db5
SM
50482019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5049
5050 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5051 type to htab_up.
5052 * dwarf2read.c (struct dwo_file): Initialize fields.
5053 <~dwo_file>: New.
5054 (free_dwo_file): Remove, move content to ~dwo_file.
5055 (struct dwo_file_deleter): Remove.
5056 (dwo_file_up>: Remove custom deleter.
5057 (free_dwo_files): Remove.
5058 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5059 dwo_files.
5060 (process_skeletonless_type_units): Call unique_ptr::get.
5061 (allocate_dwo_file_hash_table): Add deleter to created hash
5062 table. Change return type to htab_up.
5063 (lookup_dwo_file_slot): Don't memset dwo_file, call
5064 unique_ptr::get.
5065 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5066 (create_dwo_unit_in_dwp_v2): Likewise.
5067 (open_and_init_dwo_file): Likewise.
5068 (free_dwo_file_from_slot): Remove.
5069
dc4ccb6f
SM
50702019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5071
5072 * dwarf2read.h (struct dwarf2_section_info) <readin,
5073 is_virtual>: Change type to bool.
5074 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5075 true instead of 1.
5076
e6a1c5cb
TT
50772019-06-19 Tom Tromey <tom@tromey.com>
5078
5079 * tui/tui-data.h (tui_init_content_element): Don't declare.
5080
6f6ffbeb
TT
50812019-06-19 Tom Tromey <tom@tromey.com>
5082
5083 * tui/tui-data.h (tui_init_win_info): Don't declare.
5084
f23f598e
TV
50852019-06-19 Tom de Vries <tdevries@suse.de>
5086
5087 * dwarf2read.h (abstract_to_concrete): Change type to
5088 std::unordered_map<sect_offset, std::vector<sect_offset>,
5089 gdb::hash_enum<sect_offset>>.
5090
680e1bee
TT
50912019-06-19 Tom Tromey <tromey@adacore.com>
5092
5093 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5094 EVAL_AVOID_SIDE_EFFECTS specially.
5095
dcf37923
TT
50962019-06-19 Tom Tromey <tromey@adacore.com>
5097
5098 * source-cache.c (highlighter): New global.
5099 (source_cache::get_source_lines): Create a highlighter on demand.
5100
494986d5
AB
51012019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5102
5103 * defs.h (deprecated_interactive_hook): Delete declaration.
5104 * interps.c (clear_interpreter_hooks): Remove use of
5105 deprecated_interactive_hook.
5106 * top.c (deprecated_interactive_hook): Delete definition.
5107 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5108
3360b6e7
TV
51092019-06-18 Tom de Vries <tdevries@suse.de>
5110
5111 PR gdb/24515
5112 * dwarf2read.h (abstract_to_concrete): Change type from
5113 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5114 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5115 * dwarf2read.c (read_variable): Update.
5116 (dwarf2_fetch_die_loc_sect_off): Update.
5117
310b3441
TV
51182019-06-17 Tom de Vries <tdevries@suse.de>
5119
5120 PR gdb/24617
5121 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5122 accessing parent[parent_len - 1].
5123
ba9777be
PP
51242019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5125
5126 PR gdb/24364
5127 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5128 call dtrace_process_dof with NULL dof.
5129
2b9f6e89
TV
51302019-06-16 Tom de Vries <tdevries@suse.de>
5131
5132 PR gdb/24445
5133 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5134
431b3ead
TT
51352019-06-16 Tom Tromey <tom@tromey.com>
5136
5137 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5138 (make_all_visible): Use address of member.
5139
d04b44a1
TT
51402019-06-16 Tom Tromey <tom@tromey.com>
5141
5142 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5143 (tui_free_window, free_content, free_content_elements): Remove
5144 unnecessary cast.
5145 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5146 cast.
5147 * tui/tui-regs.c (tui_show_register_group)
5148 (tui_display_registers_from, tui_display_reg_element_at_line):
5149 Remove unnecessary cast.
5150
bf5142e7
AB
51512019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5152
5153 * linux-nat.c (normal_mask): Delete.
5154 (_initialize_linux_nat): Don't initialise normal_mask.
5155
c4973306
SM
51562019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5157
5158 PR gdb/24445
5159 * dwarf-index-write.h (write_psymtabs_to_index): Add
5160 dwz_basename parameter.
5161 * dwarf-index-write.c (write_gdbindex): Move file writing to
5162 write_gdbindex_1. Change return type void.
5163 (assert_file_size): Move up, remove filename parameter.
5164 (write_gdbindex_1): New function.
5165 (write_debug_names): Change return type to void, call
5166 assert_file_size.
5167 (struct index_wip_file): New struct.
5168 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5169 file logic to index_wip_file. Write index for dwz file if
5170 needed.
5171 (save_gdb_index_command): Pass basename of dwz file, if present.
5172 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5173 build-id of dwz file, if present.
5174 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5175 (dwarf2_get_dwz_file): Likewise.
5176 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5177 (dwarf2_get_dwz_file): Likewise.
5178
395f9c91
TT
51792019-06-16 Tom Tromey <tom@tromey.com>
5180
5181 * coffread.c (process_coff_symbol): Use xstrdup.
5182 * value.c (create_internalvar): Use xstrdup.
5183
cafb3438
TT
51842019-06-16 Tom Tromey <tom@tromey.com>
5185
5186 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5187 * breakpoint.c (stopin_command, stopat_command)
5188 (until_break_command, decode_location_default): Remove unnecessary
5189 cast.
5190 * utils.c (subset_compare): Remove unnecessary cast.
5191 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5192 cast.
5193 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5194 cast.
5195 * infcmd.c (path_command): Remove unnecessary cast.
5196 * coffread.c (decode_type): Remove unnecessary cast.
5197 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5198 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5199 * tui/tui-stack.c (tui_show_locator_content)
5200 (tui_show_frame_info): Remove unnecessary cast.
5201 * tui/tui-win.c (tui_scroll_forward_command)
5202 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5203 (parse_scrolling_args): Remove unnecessary cast.
5204 * tui/tui-data.c (init_win_info, tui_del_window)
5205 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5206 (free_content_elements): Remove unnecessary cast.
5207 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5208 unnecessary cast.
5209 * tui/tui-source.c (tui_set_source_content)
5210 (tui_vertical_source_scroll): Remove unnecessary cast.
5211 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5212 cast.
5213 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5214 * tui/tui-regs.c (tui_display_registers_from)
5215 (tui_display_register): Remove unnecessary cast.
5216 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5217 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5218 (make_visible): Remove unnecessary cast.
5219 * tui/tui-winsource.c (tui_erase_source_content)
5220 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5221 unnecessary cast.
5222 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5223 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5224 * stabsread.c (read_type, read_array_type, read_range_type):
5225 Remove unnecessary cast.
5226 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5227 (parse_symbol, parse_type, upgrade_type, parse_external)
5228 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5229 unnecessary cast.
5230 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5231
730ead81
TT
52322019-06-16 Tom Tromey <tom@tromey.com>
5233
5234 * tui/tui-data.c (tui_alloc_generic_win_info)
5235 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5236 checks.
5237
584a927c
AB
52382019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5239 Andrew Burgess <andrew.burgess@embecosm.com>
5240
5241 * f-typeprint.c (f_print_type): Don't return early for not
5242 associated or not allocated types.
5243 (f_type_print_varspec_suffix): Add print_rank parameter and print
5244 ranks of array types in case they dangling.
5245 (f_type_print_base): Add print_rank parameter.
5246
30056ea0
AB
52472019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5248
5249 * NEWS: Mention new MI commands.
5250 * break-catch-throw.c (enum exception_event_kind): Move to
5251 breakpoint.h.
5252 (print_mention_exception_catchpoint): Output text as a single
5253 message.
5254 (catch_exception_command_1): Rename to...
5255 (catch_exception_event): ...this, make non-static, update header
5256 command, and change some parameter types.
5257 (catch_catch_command): Update for changes to
5258 catch_exception_command_1.
5259 (catch_throw_command): Likewise.
5260 (catch_rethrow_command): Likewise.
5261 * breakpoint.c (enum exception_event_kind): Delete.
5262 * breakpoint.h (enum exception_event_kind): Moved here from
5263 break-catch-throw.c.
5264 (catch_exception_event): Declare.
5265 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5266 (mi_cmd_catch_throw): New function.
5267 (mi_cmd_catch_rethrow): New function.
5268 (mi_cmd_catch_catch): New function.
5269 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5270 'catch-catch' entries.
5271 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5272 (mi_cmd_catch_rethrow): Declare.
5273 (mi_cmd_catch_catch): Declare.
5274
ec8e2b6d
AB
52752019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5276
5277 * annotate.c (annotate_source_line): Change return type to void,
5278 update implementation to match.
5279 * annotate.h (annotate_source_line): Change return type to void,
5280 update header comment.
5281 * stack.c (print_frame_info): Don't change what frame information
5282 is printed based on whether annotations are on or not.
5283
0d3abd8c
AB
52842019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5285
5286 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5287 (annotate_source): Make static.
5288 (annotate_source_line): Moved from source.c and renamed from
5289 identify_source_line. Update the return type.
5290 * annotate.h (annotate_source): Delete declaration.
5291 (annotate_source_line): Declaration moved from source.h, and
5292 renamed from identify_source_line. Return type updated.
5293 * source.c (identify_source_line): Moved to annotate.c and renamed
5294 to annotate_source_line.
5295 (info_line_command): Remove check of annotation_level.
5296 * source.h (identify_source_line): Move declaration to annotate.h
5297 and rename to annotate_source_line.
5298 * stack.c: Add 'annotate.h' include.
5299 (print_frame_info): Remove check of annotation_level before
5300 calling annotate_source_line.
5301
00df30ae
AB
53022019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5303
5304 * source-cache.c (source_cache::get_plain_source_lines): Use
5305 open_source_file_with_line_charpos instead of just
5306 open_source_file, remove call to find_source_lines.
5307 (source_cache::get_source_lines): Likewise.
5308 * source.c (find_source_lines): Make static.
5309 (get_filename_and_charpos): Renamed into...
5310 (open_source_file_with_line_charpos): ..this along with changes to
5311 return a scoped_fd, and some other minor clean ups.
5312 (identify_source_line): Use open_source_file_with_line_charpos.
5313 (search_command_helper): Use open_source_file_with_line_charpos
5314 instead of just open_source_file, remove call to
5315 find_source_lines.
5316 * source.h (open_source_file_with_line_charpos): Declare new
5317 function.
5318 (find_source_lines): Delete declaration.
5319
afda45a2
AB
53202019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5321
5322 * source.c (get_filename_and_charpos): Remove fullname
5323 parameter.
5324 (identify_source_line): Update call to get_filename_and_charpos.
5325
0735b091
TT
53262019-06-14 Tom Tromey <tromey@adacore.com>
5327
5328 PR gdb/24502:
5329 * ui-style.h (skip_ansi_escape): Update comment.
5330 * ui-file.h (class no_terminal_escape_file): New class.
5331 * ui-file.c (no_terminal_escape_file::write)
5332 (no_terminal_escape_file::puts): New methods.
5333 * cli/cli-logging.c (handle_redirections): Use
5334 no_terminal_escape_file.
5335
52ce35e2
TT
53362019-06-14 Tom Tromey <tromey@adacore.com>
5337
5338 * NEWS: Move convenience variable news above Python news.
5339
73cc7272
TT
53402019-06-14 Tom Tromey <tom@tromey.com>
5341
5342 * gnulib: Move directory to top-level.
5343 * configure.ac: Don't configure gnulib.
5344 * configure: Rebuild.
5345 * common/common-defs.h: Use new path to gnulib.
5346 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5347 (GNULIB_H): Remove.
5348 (INCGNU): Look in new gnulib location.
5349 (HFILES_NO_SRCDIR): Remove gnulib files.
5350 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5351 (generated_files): Remove GNULIB_H.
5352 ($(LIBGNU), all-lib): Remove targets.
5353 (distclean): Don't mention GNULIB_BUILDDIR.
5354 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5355
f5686554
TT
53562019-06-14 Tom Tromey <tromey@adacore.com>
5357
5358 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5359 Warn if symbol file does not provide any symbols.
5360
a0c1ffed
TT
53612019-06-14 Tom Tromey <tromey@adacore.com>
5362
5363 * source.c (find_and_open_source): Respect basenames_may_differ.
5364
7c39e397
AB
53652019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5366
5367 * annotate.c (annotate_breakpoints_invalid): Make use of
5368 scoped_restore_terminal_state.
5369 (annotate_frames_invalid): Likewise.
5370
f411722c
TT
53712019-06-14 Tom Tromey <tromey@adacore.com>
5372
5373 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5374 allow assignment to an internalvar.
5375
4268ec18
TT
53762019-06-14 Tom Tromey <tromey@adacore.com>
5377
5378 * ada-lex.l: Allow "_" in attribute names.
5379
abdb711e
TT
53802019-06-14 Tom Tromey <tromey@adacore.com>
5381
5382 PR gdb/24653:
5383 * regcache.c (registers_changed): Don't call alloca.
5384 * top.c (execute_command): Don't call alloca.
5385
4c048731
PA
53862019-06-13 Pedro Alves <palves@redhat.com>
5387
5388 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5389 'expression'. When parsing an expression, error out if there's
5390 junk after "unlimited".
5391 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5392 (do_set_command): Adjust calls to is_unlimited_literal.
5393
66eb1ed3
PA
53942019-06-13 Pedro Alves <palves@redhat.com>
5395
5396 * compile/compile.c (make_compile_options_def_group): Add braces
5397 around array_view initializer.
5398 * thread.c (make_thread_apply_all_options_def_group)
5399 (make_thread_apply_all_options_def_group): Likewise.
5400
3345721a
PA
54012019-06-13 Pedro Alves <palves@redhat.com>
5402
5403 * NEWS (New commands): Mention "maint test-options
5404 require-delimiter", "maint test-options unknown-is-error", "maint
5405 test-options unknown-is-operand" and "maint show
5406 test-options-completion-result".
5407 (New command options, command completion): New section.
5408 (Completion improvements): New section.
5409 Mention that you can abbreviate "unlimited".
5410
6206060d
PA
54112019-06-13 Pedro Alves <palves@redhat.com>
5412
5413 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5414 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5415 * unittests/cli-utils-selftests.c (test_parse_flags)
5416 (test_parse_flags_qcs): Delete.
5417 (test_cli_utils): Don't call deleted functions.
5418
6665660a
PA
54192019-06-13 Pedro Alves <palves@redhat.com>
5420
5421 * thread.c: Include "cli/cli-option.h".
5422 (tp_array_compar_ascending): Global.
5423 (tp_array_compar): Delete function.
5424 (tp_array_compar_ascending, tp_array_compar_descending): New
5425 functions.
5426 (ascending_option_def, qcs_flag_option_def)
5427 (thr_qcs_flags_option_defs)
5428 (make_thread_apply_all_options_def_group)
5429 (make_thread_apply_options_def_group): New.
5430 (thread_apply_all_command): Use gdb::option::process_options.
5431 (thread_apply_command_completer)
5432 (thread_apply_all_command_completer): New.
5433 (thread_apply_command): Use gdb::option::process_options.
5434 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5435 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5436 to generate help text of "thread apply". Adjust "taas"'s help.
5437 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5438 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5439
f7e13587
PA
54402019-06-13 Pedro Alves <palves@redhat.com>
5441
5442 * thread.c (thread_apply_command): Check for invalid TID with
5443 isdigit instead of !isalpha.
5444
5d707134
PA
54452019-06-13 Pedro Alves <palves@redhat.com>
5446
5447 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5448 (validate_flags_qcs): New.
5449 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5450 (validate_flags_qcs): Declare.
5451 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5452 (make_frame_apply_options_def_group): New.
5453 (frame_apply_command_count): Process options with
5454 gdb::option::process_options.
5455 (frame_apply_completer): New.
5456 (frame_apply_level_completer, frame_apply_all_completer)
5457 (frame_apply_completer): New.
5458 (_initialize_stack): Update help of "frame apply", "frame apply
5459 level", "frame apply all" and "faas" to mention supported options
5460 and install command completers.
5461 * stack.h (frame_apply_all_completer): Declare.
5462 * thread.c: Include "stack.h".
5463 (tfaas_command): Add "--".
5464 (_initialize_thread): Update help "tfaas" to mention supported
5465 options and install command completer.
5466
272d4594
PA
54672019-06-13 Pedro Alves <palves@redhat.com>
5468
5469 * completer.c (complete_nested_command_line): New.
5470 (gdb_completion_word_break_characters_throw): Add assertion.
5471 * completer.h (complete_nested_command_line): Declare.
5472
90a1ef87
PA
54732019-06-13 Pedro Alves <palves@redhat.com>
5474
5475 * stack.c (parse_backtrace_qualifiers): New.
5476 (backtrace_command): Use it.
5477 (backtrace_command_completer): Complete on qualifiers.
5478
d4c16835
PA
54792019-06-13 Pedro Alves <palves@redhat.com>
5480
5481 * frame.c: Include "cli/cli-option.h.
5482 (user_set_backtrace_options): New.
5483 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5484 Delete.
5485 (get_prev_frame): Adjust.
5486 (boolean_option_def, uinteger_option_def)
5487 (set_backtrace_option_defs): New.
5488 (_initialize_frame): Adjust and use
5489 gdb::option::add_setshow_cmds_for_options to install "set
5490 backtrace past-main" and "set backtrace past-entry".
5491 * frame.h: Include "cli/cli-option.h".
5492 (struct frame_print_options): Forward declare.
5493 (print_frame_arguments_all, print_frame_arguments_scalars)
5494 (print_frame_arguments_none): Declare.
5495 (print_entry_values): Delete declaration.
5496 (struct frame_print_options, user_frame_print_options): New.
5497 (struct set_backtrace_options): New.
5498 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5499 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5500 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5501 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5502 (list_args_or_locals): Add frame_print_options parameter.
5503 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5504 * python/py-framefilter.c (enumerate_args): Pass down
5505 USER_FRAME_PRINT_OPTIONS.
5506 * stack.c: Include "cli/cli-option.h".
5507 (print_frame_arguments_all, print_frame_arguments_scalars)
5508 (print_frame_arguments_none): Declare.
5509 (print_raw_frame_arguments, print_entry_values): Delete.
5510 (user_frame_print_options): New.
5511 (boolean_option_def, enum_option_def, frame_print_option_defs):
5512 New.
5513 (struct backtrace_cmd_options): New.
5514 (bt_flag_option_def): New.
5515 (backtrace_command_option_defs): New.
5516 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5517 (print_frame_arg, read_frame_arg, print_frame_args)
5518 (print_frame_info, print_frame): Add frame_print_options parameter
5519 and use it.
5520 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5521 (backtrace_command_1): Add frame_print_options and
5522 backtrace_cmd_options parameters and use them.
5523 (make_backtrace_options_def_group): New.
5524 (backtrace_command): Process command options with
5525 gdb::option::process_options.
5526 (backtrace_command_completer): New.
5527 (_initialize_stack): Extend "backtrace"'s help to mention
5528 supported options. Install completer for "backtrace".
5529 Install some settings commands with add_setshow_cmds_for_options.
5530
2daf894e
PA
55312019-06-13 Pedro Alves <palves@redhat.com>
5532
5533 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5534 and that "set/show print raw frame-arguments" are now deprecated.
5535
5536 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5537 command.
5538 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5539 * stack.c (_initialize_stack): Install "set/show print
5540 raw-frame-arguments", and deprecate "set/show print raw
5541 frame-arguments".
5542 * valprint.c (_initialize_valprint): Deprecate "set/show print
5543 raw".
5544
e6ed716c
PA
55452019-06-13 Pedro Alves <palves@redhat.com>
5546
5547 * compile/compile.c (struct compile_options): New.
5548 (compile_flag_option_def, compile_command_option_defs)
5549 (make_compile_options_def_group): New.
5550 (compile_file_command): Handle options with
5551 gdb::option::process_options.
5552 (compile_file_command_completer): New function.
5553 (compile_code_command): Handle options with
5554 gdb::option::process_options.
5555 (compile_code_command_completer): New function.
5556 (_initialize_compiler): Install completers for "compile code" and
5557 "compile file". Mention available options in "compile code" and
5558 "compile code"'s help.
5559 * completer.c (advance_to_completion_word): New, factored out from
5560 ...
5561 (advance_to_expression_complete_word_point): ... this.
5562 (advance_to_filename_complete_word_point): New.
5563 * completer.h (advance_to_filename_complete_word_point): New
5564 declaration.
5565
7d8062de
PA
55662019-06-13 Pedro Alves <palves@redhat.com>
5567
5568 * compile/compile.c: Include "cli/cli-option.h".
5569 (compile_print_value): Scope data pointer is now a
5570 value_print_options pointer; adjust.
5571 (compile_print_command): Process options. Scope data pointer is
5572 now a value_print_options pointer; adjust.
5573 (_initialize_compile): Update "compile print"'s help to include
5574 supported options. Install a completer for "compile print".
5575 * cp-valprint.c (show_vtblprint, show_objectprint)
5576 (show_static_field_print): Delete.
5577 (_initialize_cp_valprint): Don't install "set print
5578 static-members", "set print vtbl", "set print object" here.
5579 * printcmd.c: Include "cli/cli-option.h" and
5580 "common/gdb_optional.h".
5581 (print_command_parse_format): Rework to fill in a
5582 value_print_options instead of a format_data.
5583 (print_value): Change parameter type from format_data pointer to
5584 value_print_options reference. Adjust.
5585 (print_command_1): Process options. Adjust to pass down a
5586 value_print_options.
5587 (print_command_completer): New.
5588 (_initialize_printcmd): Install print_command_completer as
5589 handle_brkchars completer for the "print" command. Update
5590 "print"'s help to include supported options.
5591 * valprint.c: Include "cli/cli-option.h".
5592 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5593 here from cp-valprint.c.
5594 (boolean_option_def, uinteger_option_def)
5595 (value_print_option_defs, make_value_print_options_def_group):
5596 New. Use gdb::option::add_setshow_cmds_for_options to install
5597 "set print elements", "set print null-stop", "set print repeats",
5598 "set print pretty", "set print union", "set print array", "set
5599 print address", "set print symbol", "set print array-indexes".
5600 * valprint.h: Include <string> and "cli/cli-option.h".
5601 (make_value_print_options_def_group): Declare.
5602 (print_value): Change parameter type from format_data pointer to
5603 value_print_options reference.
5604 (print_command_completer): Declare.
5605
9d0faba9
PA
56062019-06-13 Pedro Alves <palves@redhat.com>
5607
5608 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5609 (COMMON_SFILES): Add maint-test-settings.c.
5610 * cli/cli-decode.c (boolean_enums): New global, factored out from
5611 ...
5612 (add_setshow_boolean_cmd): ... here.
5613 * cli/cli-decode.h (boolean_enums): Declare.
5614 * cli/cli-option.c: New file.
5615 * cli/cli-option.h: New file.
5616 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5617 factored out from ...
5618 (parse_cli_boolean_value(const char *)): ... this.
5619 (is_unlimited_literal): Change parameter type to pointer to
5620 pointer. Adjust and advance ARG pointer.
5621 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5622 (parse_cli_var_enum): New, factored out from ...
5623 (do_set_command): ... this. Adjust.
5624 * cli/cli-setshow.h (parse_cli_boolean_value)
5625 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5626 (parse_cli_var_enum): Declare.
5627 * cli/cli-utils.c: Include "cli/cli-option.h".
5628 (get_ulongest): New.
5629 * cli/cli-utils.h (get_ulongest): Declare.
5630 (check_for_argument): New overloads.
5631 * maint-test-options.c: New file.
5632
2c722807
PA
56332019-06-13 Pedro Alves <palves@redhat.com>
5634
5635 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5636 parse a range if "-" is at the end of the string.
5637
dee7b4c8
PA
56382019-06-13 Pedro Alves <palves@redhat.com>
5639
5640 * cli/cli-setshow.c (parse_auto_binary_operation)
5641 (parse_cli_boolean_value): Don't allow "o".
5642
dca0f6c0
PA
56432019-06-13 Pedro Alves <palves@redhat.com>
5644
5645 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5646 * NEWS: Mention maint test-settings KIND.
5647 * maint-test-settings.c: New file.
5648
597bf39d
PA
56492019-06-13 Pedro Alves <palves@redhat.com>
5650
5651 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5652 completer.
5653 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5654 "set" completers.
5655
48c410fb
PA
56562019-06-13 Pedro Alves <palves@redhat.com>
5657
5658 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5659 after item.
5660
93bcb043
PA
56612019-06-13 Pedro Alves <palves@redhat.com>
5662
5663 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5664
cbba3ecd
PA
56652019-06-13 Pedro Alves <palves@redhat.com>
5666
5667 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5668 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5669 call.
5670 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5671 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5672 calls.
5673 (check_for_argument): Skip spaces after argument.
5674
b9a3f842
PA
56752019-06-13 Pedro Alves <palves@redhat.com>
5676
5677 * thread.c (thread_apply_command): Adjust TID parsing.
5678 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5679 detected before end of string.
5680 (tid_is_in_list): Error out if LIST is invalid.
5681
3844e605
PA
56822019-06-13 Pedro Alves <palves@redhat.com>
5683
5684 * completer.c (complete_line_internal_1): Rewind completion word
5685 point.
5686 (completion_tracker::advance_custom_word_point_by): Change
5687 parameter type to int.
5688 * completer.h (completion_tracker::advance_custom_word_point_by):
5689 Likewise.
5690
00b56dbe
PA
56912019-06-13 Pedro Alves <palves@redhat.com>
5692
5693 * completer.c (advance_to_completion_word): Handle delimiters.
5694
d106773e
PA
56952019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5696
5697 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5698
08f10e02
TT
56992019-06-11 Tom Tromey <tom@tromey.com>
5700
5701 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5702 (xmalloc_failed): Move to alloc.c.
5703 * alloc.c: New file.
5704 * Makefile.in (COMMON_SFILES): Add alloc.c.
5705
1c7fe951
TT
57062019-06-11 Tom Tromey <tom@tromey.com>
5707
5708 * nat/linux-waitpid.c: Don't include server.h.
5709 (linux_debug): Remove.
5710 (my_waitpid): Update.
5711
89549d7f
TT
57122019-06-11 Tom Tromey <tromey@adacore.com>
5713
5714 * infcall.c (_initialize_infcall): Remove trailing newline from
5715 help.
5716 * user-regs.c (_initialize_user_regs): Remove trailing newline
5717 from help.
5718 * typeprint.c (_initialize_typeprint): Remove trailing newline
5719 from help.
5720 * reverse.c (_initialize_reverse): Remove trailing newlines from
5721 help.
5722 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5723 from help.
5724 * language.c (add_set_language_command): Remove trailing newline
5725 from help.
5726 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5727 help.
5728 * disasm.c (_initialize_disasm): Remove trailing newline from
5729 help.
5730 * top.c (init_main): Remove trailing newline from help.
5731 * interps.c (_initialize_interpreter): Remove trailing newline
5732 from help.
5733 * btrace.c (_initialize_btrace): Remove trailing newlines from
5734 help.
5735 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5736 from help.
5737 * python/python.c (_initialize_python): Remove trailing newline
5738 from help.
5739 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5740 help.
5741 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5742 from help. Reformat some text.
5743 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5744 from help.
5745 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5746 newline from help.
5747
86108c13
TT
57482019-06-11 Tom Tromey <tromey@adacore.com>
5749
5750 * darwin-nat.c (darwin_decode_exception_message)
5751 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5752
a7067863
AB
57532019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5754
5755 * valops.c (value_slice): Check for not allocated or not
5756 associated values.
5757
9ab08412
TV
57582019-06-10 Tom de Vries <tdevries@suse.de>
5759
5760 PR gdb/24618
5761 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5762 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5763 invalid.
5764
f19e22e9
TV
57652019-06-10 Tom de Vries <tdevries@suse.de>
5766
5767 PR gdb/24611
5768 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5769 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5770
e99f9db0
TV
57712019-06-10 Tom de Vries <tdevries@suse.de>
5772
5773 PR symtab/24545
5774 * symtab.c (struct demangled_name_entry): Add language field.
5775 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5776 static minimal symbol". Set and use language field.
5777
9bf7038b
TT
57782019-06-10 Tom Tromey <tromey@adacore.com>
5779
5780 * ada-lang.c (_initialize_ada_language): Update help text.
5781
422186a9
TT
57822019-06-10 Tom Tromey <tromey@adacore.com>
5783
5784 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5785 with a newline.
5786 * guile/guile.c (handle_boot_error): Don't end warning with a
5787 newline.
5788 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5789 warning with a newline.
5790 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5791 newline.
5792 (s12z_frame_cache): Likewise.
5793 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5794 a newline.
5795 * solib-svr4.c (disable_probes_interface): Don't end warning with
5796 a newline.
5797 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5798 newline.
5799 * python/python.c (do_finish_initialization): Don't end warning
5800 with a newline.
5801
25ce02ee
TT
58022019-06-10 Tom Tromey <tom@tromey.com>
5803
5804 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5805 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5806 gdbpy_enter.
5807
caa429d8
TT
58082019-06-10 Tom Tromey <tromey@adacore.com>
5809
5810 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5811 data.
5812 (elf_new_init): Don't call stabsread_new_init.
5813 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5814 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5815 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5816
81873cc8
TV
58172019-06-10 Tom de Vries <tdevries@suse.de>
5818
5819 PR symtab/16264
5820 PR symtab/24517
5821 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5822
4fa0265e
РИ
58232019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5824
5825 * source.c (find_and_open_source): Also rewrite relative file
5826 names.
5827
1a3da2cd
AB
58282019-04-26 Amos Bird <amosbird@gmail.com>
5829
5830 * annotate.c (annotate_thread_exited): Add "thread-exited"
5831 annotation.
5832
3847a7bf
TT
58332019-06-06 Tom Tromey <tromey@adacore.com>
5834
5835 * maint.h (class scoped_command_stats): Use
5836 DISABLE_COPY_AND_ASSIGN.
5837 <print_time>: New method.
5838 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5839 print_time.
5840 (scoped_command_stats::print_time): New method.
5841
312617a3
AB
58422019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5843
5844 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5845 instructions of lengths 6 or 8 bytes.
5846
b02f78f9
PA
58472019-06-04 Pedro Alves <palves@redhat.com>
5848
5849 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5850
5851 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5852 * breakpoint.c (condition_completer): Likewise.
5853 * cli/cli-dump.c (scan_expression): Likewise.
5854 * common/filestuff.c (mkdir_recursive): Likewise.
5855 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5856 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5857 (gdb_abspath): Likewise.
5858 * compile/compile-cplus-types.c
5859 (compile_cplus_instance::decl_name): Likewise.
5860 * completer.c (complete_explicit_location):
5861 (signal_completer, reg_or_group_completer_1): Likewise.
5862 * cp-support.c (cp_remove_params_if_any): Likewise.
5863 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5864 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5865 * infcmd.c (strip_bg_char): Likewise.
5866 * linespec.c (copy_token_string): Likewise.
5867 * mi/mi-main.c (output_cores): Likewise.
5868 * psymtab.c (psymtab_search_name):
5869 * symfile.c (test_set_ext_lang_command): Likewise.
5870 * target.c (target_fileio_read_stralloc): Likewise.
5871 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5872 * value.c (complete_internalvar): Likewise.
5873
e1f2e1a2
CB
58742019-06-04 Christian Biesinger <cbiesinger@google.com>
5875
5876 Add objfile property to gdb.Type.
d3238f7d
PA
5877 * NEWS: Mention Python API addition.
5878 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 5879
e664d728
PW
58802019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5881
5882 * NEWS: Mention the new set|show style [title|highlight].
5883 Mention changes to "show style", "help" and "apropos".
5884
66d8c862
PW
58852019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5886
5887 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5888 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5889 instead of print_help_for_command.
5890 (print_doc_of_command): New function.
5891 (help_list): Add 'apropos -v word' suggestion.
5892 (print_help_for_command): Style the command name using title style.
5893 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5894 (_initialize_cli_cmds): Describe -v in apropos_command help.
5895
9303eb2f
PW
58962019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5897
5898 * cli/cli-style.h (cli_style_option): Add name in constructor,
5899 add m_name class member, add constructor with intensity,
5900 add name class function.
5901 (cli_style_option::add_setshow_commands): Remove name argument.
5902 (highlight_style, title_style): New styles.
5903 * cli/cli-style.c (do_show): New function that shows a style
5904 characteristic styling the style name with itself.
5905 (set_style_name): New function.
5906 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5907 Update all callers according to the changes in cli/cli-style.h.
5908 * utils.h (fputs_highlighted): New function.
5909 * utils.c (fputs_highlighted): Likewise.
5910
e2c52041
PW
59112019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5912
5913 * NEWS: Mention new pipe command and new convenience variables.
5914
947d3946
PW
59152019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5916
5917 * cli/cli-cmds.c (pipe_command): New function.
5918 (_initialize_cli_cmds): Call add_com for pipe_command.
5919 Define | as an alias for pipe.
5920 (exit_status_set_internal_vars): New function.
5921 (shell_escape): Call exit_status_set_internal_vars.
5922 cli/cli-decode.c (find_command_name_length): Recognize | as
5923 a single character command.
5924
b8fd0918
PW
59252019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5926
5927 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5928 top.c (execute_command_to_ui_file): New function, mostly a copy
5929 of execute_command_to_string.
5930 (execute_command_to_string): Implement by calling
5931 execute_command_to_ui_file.
5932
68bb5386
PW
59332019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5934
5935 * top.h (saved_command_line): Remove declaration.
5936 * top.c (previous_saved_command_line, previous_repeat_arguments):
5937 New variables.
5938 (saved_command_line): Make static, define together with other
5939 'repeat variables'.
5940 (dont_repeat): Clear repeat_arguments.
5941 (repeat_previous, get_saved_command_line, save_command_line):
5942 New functions.
5943 (gdb_init): Initialize saved_command_line
5944 and previous_saved_command_line.
5945 * main.c (captured_main_1): Remove saved_command_line initialization.
5946 * event-top.c (handle_line_of_input): Update to use
5947 the new 'repeat' related functions instead of direct access to
5948 saved_command_line.
5949 * command.h (repeat_previous, get_saved_command_line,
5950 save_command_line): New declarations.
5951 (dont_repeat): Add comment.
5952
bfcdb852
TT
59532019-05-30 Tom Tromey <tromey@adacore.com>
5954
5955 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5956 Fix comment.
5957 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5958
0ef209f2
JV
59592019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5960
5961 PR cli/24587
5962 * completer.c (complete): Initialize variable word.
5963
955b06fa
SDJ
59642019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5965
5966 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5967 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5968 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5969 'body' is NULL to the outter 'if', protecting the '!is_define'
5970 situation as well.
5971
fa9c3fa0
TT
59722019-05-29 Tom Tromey <tromey@adacore.com>
5973
5974 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5975 (dwarf_unknown): New function.
5976 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5977 (dwarf_type_encoding_name): Use dwarf_unknown.
5978
4330d61d
TT
59792019-05-29 Tom Tromey <tromey@adacore.com>
5980
5981 PR c++/20020:
5982 * cp-valprint.c (cp_print_value_fields): Call
5983 cp_print_static_field inside "try".
5984
33a6bc35
TT
59852019-05-29 Tom Tromey <tromey@adacore.com>
5986
5987 * inflow.c (struct terminal_info): Add default operator=.
5988 * configure: Rebuild.
5989 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5990 -Wdeprecated-copy-dtor, -Wredundant-move.
5991
000439d5
TT
59922019-05-29 Tom Tromey <tromey@adacore.com>
5993
5994 * NEWS: Add entry.
5995 * infcmd.c (print_return_value_1): Handle finish_print
5996 option.
5997 (show_print_finish): New function.
5998 (_initialize_infcmd): Add "set/show print finish" commands.
5999 * valprint.c (user_print_options): Initialize new member.
6000 * valprint.h (struct value_print_options) <finish_print>: New
6001 member.
6002
c0e70c62
TT
60032019-05-28 Tom Tromey <tromey@adacore.com>
6004
6005 * ada-lang.c (ada_remove_Xbn_suffix)
6006 (find_old_style_renaming_symbol)
6007 (parse_old_style_renaming): Remove.
6008 (ada_find_renaming_symbol): Don't call
6009 find_old_style_renaming_symbol.
6010 (ada_is_renaming_symbol): Rename from
6011 ada_find_renaming_symbol. Remove "block" parameter. Return
6012 bool. Now static.
6013 (ada_read_var_value): Update and simplify.
6014 * ada-exp.y (write_var_or_type): Remove old code.
6015
766f8836
AH
60162019-05-28 Alan Hayward <alan.hayward@arm.com>
6017
6018 * event-top.c: Remove include comment.
6019 * inflow.c (class scoped_ignore_sigttou): Move from here...
6020 * inflow.h (class scoped_ignore_sigttou): ...to here.
6021 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6022 * top.c: Remove include comment.
6023
eb41253a
TT
60242019-05-27 Tom Tromey <tom@tromey.com>
6025
6026 * NEWS: Fix typo.
6027
4ca51187
TT
60282019-05-22 Tom Tromey <tromey@adacore.com>
6029
6030 * target.c (target_follow_exec): Constify parameter.
6031 * target-delegates.c: Rebuild.
6032 * remote.c (remote_target::follow_exec): Constify parameter.
6033 * infrun.c (follow_exec): Constify parameter.
6034 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6035 (target_follow_exec): Likewise.
6036
8fca4da0
AH
60372019-05-22 Alan Hayward <alan.hayward@arm.com>
6038
6039 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6040 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6041
b7060614
AH
60422019-05-22 Alan Hayward <alan.hayward@arm.com>
6043
6044 * NEWS: Add debugredirect and testsuite sections.
6045
0a5954bd
SC
60462019-05-22 Simon Cook <simon.cook@embecosm.com>
6047
6048 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6049 target descriptions using exclusively floating point register name
6050 aliases.
6051
dc42e902
AB
60522019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6053
6054 PR gdb/18644:
6055 * f-lang.c (build_fortran_types): Handle the case where
6056 gdbarch_floatformat_for_type returns a nullptr.
6057
fb7806c7
TV
60582019-05-21 Tom de Vries <tdevries@suse.de>
6059
6060 PR cli/24587
6061 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6062
34d11c68
AB
60632019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6064
6065 PR gdb/18644:
6066 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6067 16-byte floats.
6068 * i386-tdep.c (i386_floatformat_for_type): Use
6069 floatformats_ia64_quad for the 16-byte floating point component
6070 within a fortran 32-byte complex number.
6071
122cf0f2
AB
60722019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6073
6074 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6075 delete default constructor.
6076 (find_partial_die): Update to return const struct.
6077 (partial_die_parent_scope): Move variable declaration into scope
6078 of its use and change its type to auto.
6079 (guess_partial_die_structure_name): Likewise.
6080 (partial_die_info::fixup): Likewise.
6081
33d0e35a
TT
60822019-05-17 Tom Tromey <tromey@adacore.com>
6083
6084 * source.c (find_and_open_source): Remove cast.
6085
a45575b0
TT
60862019-05-17 Tom Tromey <tromey@adacore.com>
6087
6088 * annotate.c (annotate_source): Make "filename" const.
6089 * annotate.h (annotate_source): Use const.
6090
81f47ac2
AH
60912019-05-17 Alan Hayward <alan.hayward@arm.com>
6092
6093 * disasm.c (set_disassembler_options): Send errors to stderr.
6094
ca1285d1
AH
60952019-05-17 Alan Hayward <alan.hayward@arm.com>
6096
6097 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6098 (cli_interp_base::set_logging): Check debug_redirect.
6099 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6100 * cli/cli-logging.c (debug_redirect): Add static variable.
6101 (pop_output_files): Add default param.
6102 (handle_redirections): Print debug setting.
6103 (show_logging_command): Likewise.
6104 (_initialize_cli_logging): Add debugredirect command.
6105 * interps.c (current_interp_set_logging): Add debug_redirect
6106 parameter.
6107 * interps.h (set_logging): Add debug_redirect parameter.
6108 (current_interp_set_logging): Likewise.
6109 * mi/mi-common.h: Likewise.
6110 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6111
61122019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
6113 Tom Tromey <tromey@adacore.com>
6114
6115 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6116 directly.
6117 * cli/cli-interp.h (make_logging_output): Remove declaration.
6118 * cli/cli-logging.c (make_logging_output): Remove function.
6119 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6120 directly.
6121 * ui-file.c (tee_file::tee_file): Remove bools.
6122 (tee_file::~tee_file): Remove deletes.
6123 * ui-file.h (tee_file): Remove bools.
6124
26648588
JV
61252019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6126
6127 * mi/mi-cmds.h (mi_cmd_complete): New function.
6128 * mi/mi-main.c (mi_cmd_complete): Likewise.
6129 * mi/mi-cmds.c: Define new MI command -complete.
6130 * NEWS: Mention new -complete command.
6131
6e035501
JV
61322019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6133
6134 * completer.h (complete): New function.
6135 * completer.c (complete): Likewise.
6136 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6137 function defined in completer.h.
6138
7d0e2ece
JV
61392019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6140
e79be6e5 6141 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 6142
fb816e8b
TV
61432019-05-17 Tom de Vries <tdevries@suse.de>
6144
6145 PR gdb/24094
6146 * dwarf2read.c (struct cu_partial_die_info): New struct.
6147 (find_partial_die): Return cu_partial_die_info.
6148 (partial_die_parent_scope, guess_partial_die_structure_name)
6149 (partial_die_info::fixup): Handle new return type of find_partial_die.
6150
677052f2
SDJ
61512019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6152
a1726c38 6153 PR breakpoints/24541
677052f2
SDJ
6154 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6155 "std::string", simplifying the algorithm.
6156
f3da9116
SDJ
61572019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6158
6159 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6160 (stap_static_probe_ops::get_probes): Likewise.
6161
f1bb75ab
SDJ
61622019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6163
6164 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6165 '-')" and "else if".
6166 (stap_parse_single_operand): Join checks for
6167 "gdbarch_stap_parse_special_token_p" and
6168 "gdbarch_stap_parse_special_token" in the same "if" statement.
6169 Invert check when verifying for operation on register
6170 displacement.
6171
3ca58cde
SDJ
61722019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6173
6174 * stap-probe.c (stap_get_opcode): Update comment.
6175 (stap_get_expected_argument_type): Likewise.
6176 (handle_stap_probe): Likewise.
6177
af2d9bee
SDJ
61782019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6179
6180 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6181 return type to 'bool'. Adjust comment. Use 'bool' when
6182 appropriate.
6183 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6184 * stap-probe.c (stap_parse_argument_1): Likewise.
6185 (stap_is_operator): Likewise.
6186 (stap_is_generic_prefix): Likewise.
6187 (stap_is_register_prefix): Likewise.
6188 (stap_is_register_indirection_prefix): Likewise.
6189 (stap_is_integer_prefix): Likewise.
6190 (stap_generic_check_suffix): Likewise.
6191 (stap_check_integer_suffix): Likewise.
6192 (stap_check_register_suffix): Likewise.
6193 (stap_check_register_indirection_suffix): Likewise.
6194 (stap_parse_register_operand): Likewise.
6195 (stap_parse_single_operand): Likewise.
6196 (stap_parse_argument_1): Likewise.
6197 (stap_probe::get_argument_count): Likewise.
6198 (stap_is_operator): Likewise.
6199
61c9c421
TT
62002019-05-16 Tom Tromey <tromey@adacore.com>
6201
6202 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6203 keyword to foreach.
6204
9ddc1af1
SM
62052019-05-15 Simon Marchi <simon.marchi@efficios.com>
6206
6207 * linux-thread-db.c (try_thread_db_load_1): Change return type
6208 to bool.
6209 (try_thread_db_load): Likewise.
6210 (try_thread_db_load_from_pdir_1): Likewise.
6211 (try_thread_db_load_from_pdir): Likewise.
6212 (try_thread_db_load_from_sdir): Likewise.
6213 (try_thread_db_load_from_dir): Likewise.
6214 (thread_db_load_search): Likewise.
6215 (has_libpthread): Likewise.
6216 (thread_db_load): Likewise.
6217
7bede828
SDJ
62182019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6219
6220 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6221 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6222 NULL, and complain/return if that's the case.
6223
c5358db4
JD
62242019-05-15 John Darrington <john@darrington.wattle.id.au>
6225
6226 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6227 (advance, posn, abstract_read_memory): New functions.
6228 [struct mem_read_abstraction]: New struct.
6229 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6230
c408a94f
TT
62312019-05-14 Tom Tromey <tromey@adacore.com>
6232
6233 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6234 value is not lval_memory.
6235
e7bd7fba
TT
62362019-05-14 Tom Tromey <tromey@adacore.com>
6237
6238 * solib.c (info_sharedlibrary_command): Style the file name.
6239
a6d0f249
AH
62402019-05-14 Alan Hayward <alan.hayward@arm.com>
6241
6242 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6243 (aarch64_vnv_type): Likewise.
6244 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6245 * common/tdesc.c: Likewise.
6246 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6247 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6248 * features/aarch64-fpu.xml: Add ieee half view.
6249 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6250 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6251 * gdbtypes.h (struct builtin_type): Likewise.
6252 (struct objfile_type): Likewise.
6253
66b8bb74
SM
62542019-05-12 Paul Naert <paul.naert@polymtl.ca>
6255
6256 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6257 typo.
6258 * location.h (string_to_event_location): Likewise.
6259
21c219fd
JB
62602019-05-11 Joel Brobecker <brobecker@adacore.com>
6261
6262 GDB 8.3 released.
6263
13674803
SM
62642019-05-10 Simon Marchi <simon.marchi@efficios.com>
6265
6266 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6267 New variable declaration.
6268 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6269 New variable.
6270 (print_one_breakpoint): Use ui_out::test_flags and new global
6271 variable to compute use_fixed_output.
6272 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6273 Remove.
6274 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6275 (mi_multi_location_breakpoint_output_fixed): Remove.
6276 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6277 new variable.
6278 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6279 fix_multi_location_breakpoint_output flag if version >= 3.
6280 * ui-out.h (enum ui_out_flag)
6281 <fix_multi_location_breakpoint_output>: New enumerator.
6282
a9eac7f9
SM
62832019-05-10 Simon Marchi <simon.marchi@efficios.com>
6284
6285 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6286
71bed2db
TT
62872019-05-10 Tom Tromey <tromey@adacore.com>
6288
6289 * ada-lang.c (catch_ada_completer): New function.
6290 (_initialize_ada_language): Use it.
6291
24c54127
TT
62922019-05-10 Tom Tromey <tromey@adacore.com>
6293
6294 * thread.c (print_thread_info): Make "requested_threads" const.
6295 * gdbthread.h (print_thread_info): Make "requested_threads"
6296 const.
6297 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6298 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6299
7a102139
TT
63002019-05-08 Tom Tromey <tom@tromey.com>
6301
6302 * gdbtypes.c (objfile_type_data): Change type.
6303 (objfile_type, _initialize_gdbtypes): Update.
6304
924d79e2
TT
63052019-05-08 Tom Tromey <tom@tromey.com>
6306
6307 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6308 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6309 (_initialize_dwarf2_frame): Update.
6310
4c58e337
TT
63112019-05-08 Tom Tromey <tom@tromey.com>
6312
6313 * objc-lang.c (objc_objfile_data): Change type.
6314 (find_methods): Update.
6315 (_initialize_objc_lang): Remove.
6316
d772d2ab
TT
63172019-05-08 Tom Tromey <tom@tromey.com>
6318
6319 * stabsread.c (rs6000_builtin_type_data): Change type.
6320 (rs6000_builtin_type, _initialize_stabsread): Update.
6321
d11d83f4
TT
63222019-05-08 Tom Tromey <tom@tromey.com>
6323
6324 * mips-tdep.c (mips_pdr_data): Remove.
6325 (_initialize_mips_tdep): Update.
6326
9a73f0ad
TT
63272019-05-08 Tom Tromey <tom@tromey.com>
6328
6329 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6330 (hppa_init_objfile_priv_data, read_unwind_info)
6331 (find_unwind_entry, _initialize_hppa_tdep): Update.
6332
8127a2fa
TT
63332019-05-08 Tom Tromey <tom@tromey.com>
6334
6335 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6336 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6337 on obstack.
6338 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6339
91d3055d
TT
63402019-05-08 Tom Tromey <tom@tromey.com>
6341
6342 * mdebugread.c (basic_type_data): Change type.
6343 (basic_type, _initialize_mdebugread): Update.
6344
31930bd3
TT
63452019-05-08 Tom Tromey <tom@tromey.com>
6346
6347 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6348
bdb3ed9e
TT
63492019-05-08 Tom Tromey <tom@tromey.com>
6350
6351 * nto-tdep.c (nto_inferior_data_reg): Change type.
6352 (nto_inferior_data): Update.
6353 (nto_inferior_data_cleanup, nto_new_inferior_data)
6354 (_initialize_nto_tdep): Remove.
6355 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6356
f37b313d
TT
63572019-05-08 Tom Tromey <tom@tromey.com>
6358
6359 * ada-lang.c (struct ada_inferior_data): Add initializers.
6360 (ada_inferior_data): Change type.
6361 (ada_inferior_data_cleanup): Remove.
6362 (get_ada_inferior_data, ada_inferior_exit)
6363 (struct ada_pspace_data): Add initializers, destructor.
6364 (ada_pspace_data_handle): Change type.
6365 (get_ada_pspace_data): Update.
6366 (ada_pspace_data_cleanup): Remove.
6367
24699405
TT
63682019-05-08 Tom Tromey <tom@tromey.com>
6369
6370 * coffread.c (struct coff_symfile_info): Add initializers.
6371 (coff_objfile_data_key): Move lower. Change type.
6372 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6373 Update.
6374 (coff_free_info): Remove.
6375
d4e05d2f
TT
63762019-05-08 Tom Tromey <tom@tromey.com>
6377
6378 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6379 (fbsd_pspace_data_handle): Move lower. Change type.
6380 (get_fbsd_pspace_data): Update.
6381 (fbsd_pspace_data_cleanup): Remove.
6382 (_initialize_fbsd_tdep): Update.
6383
14ef6690
TT
63842019-05-08 Tom Tromey <tom@tromey.com>
6385
6386 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6387 (get_ada_tasks_pspace_data): Update.
6388 (ada_tasks_pspace_data_cleanup): Remove.
6389 (_initialize_tasks): Update.
6390 (ada_tasks_inferior_data_handle): Change type.
6391 (get_ada_tasks_inferior_data): Update.
6392 (ada_tasks_inferior_data_cleanup): Remove.
6393 (struct ada_tasks_pspace_data): Add initializers.
6394
814cf43a
TT
63952019-05-08 Tom Tromey <tom@tromey.com>
6396
6397 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6398 * symfile-debug.c (debug_sym_get_probes): Change type.
6399 * stap-probe.c (handle_stap_probe):
6400 (stap_static_probe_ops::get_probes): Change type.
6401 * probe.h (class static_probe_ops) <get_probes>: Change type.
6402 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6403 (parse_probes_in_pspace): Update.
6404 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6405 Update.
6406 (any_static_probe_ops::get_probes): Change type.
6407 * elfread.c (elfread_data): New typedef.
6408 (probe_key): Change type.
6409 (elf_get_probes): Likewise. Update.
6410 (probe_key_free): Remove.
6411 (_initialize_elfread): Update.
6412 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6413 Change type.
6414 (dtrace_process_dof_probe, dtrace_process_dof)
6415 (dtrace_static_probe_ops::get_probe): Change type.
6416
02dc647e
TT
64172019-05-08 Tom Tromey <tom@tromey.com>
6418
6419 * xcoffread.c (struct xcoff_symfile_info): Rename from
6420 coff_symfile_info. Add initializers.
6421 (xcoff_objfile_data_key): Move lower. Change type.
6422 (XCOFF_DATA): Rewrite.
6423 (xcoff_free_info): Remove.
6424 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6425 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6426 (xcoff_initial_scan): Update.
6427
09232438
TT
64282019-05-08 Tom Tromey <tom@tromey.com>
6429
6430 * solib-svr4.c (struct svr4_info): Add initializers and
6431 destructor.
6432 <probes_table>: Now an htab_up.
6433 (solib_svr4_pspace_data): Change type.
6434 (free_probes_table): Simplify.
6435 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6436 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6437 (probes_table_remove_objfile_probes, register_solib_event_probe)
6438 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6439 (_initialize_svr4_solib): Update.
6440
7b4a314f
TT
64412019-05-08 Tom Tromey <tom@tromey.com>
6442
6443 * remote.c (remote_pspace_data): Change type.
6444 (remote_pspace_data_cleanup): Remove.
6445 (get_remote_exec_file, set_pspace_remote_exec_file)
6446 (_initialize_remote): Update.
6447
51d3063a
TT
64482019-05-08 Tom Tromey <tom@tromey.com>
6449
6450 * breakpoint.c (breakpoint_objfile_key): Change type.
6451 (get_breakpoint_objfile_data): Update.
6452 (free_breakpoint_objfile_data): Remove.
6453 (_initialize_breakpoint): Update.
6454
89fb8848
TT
64552019-05-08 Tom Tromey <tom@tromey.com>
6456
6457 * linux-tdep.c (struct linux_info): Add initializers.
6458 (linux_inferior_data): Move. Change type.
6459 (invalidate_linux_cache_inf): Update.
6460 (linux_inferior_data_cleanup): Remove.
6461 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6462
e9b89e2d
TT
64632019-05-08 Tom Tromey <tom@tromey.com>
6464
6465 * auxv.c (auxv_inferior_data): Move. Change type.
6466 (auxv_inferior_data_cleanup): Remove.
6467 (invalidate_auxv_cache_inf): Rewrite.
6468 (get_auxv_inferior_data, _initialize_auxv): Update.
6469
8c42777c
TT
64702019-05-08 Tom Tromey <tom@tromey.com>
6471
6472 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6473 (symfile_debug_objfile_data_key): Change type.
6474 (symfile_debug_installed, debug_qf_has_symbols)
6475 (debug_qf_find_last_source_symtab)
6476 (debug_qf_forget_cached_source_info)
6477 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6478 (debug_qf_print_stats, debug_qf_dump)
6479 (debug_qf_expand_symtabs_for_function)
6480 (debug_qf_expand_all_symtabs)
6481 (debug_qf_expand_symtabs_with_fullname)
6482 (debug_qf_map_matching_symbols)
6483 (debug_qf_expand_symtabs_matching)
6484 (debug_qf_find_pc_sect_compunit_symtab)
6485 (debug_qf_map_symbol_filenames)
6486 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6487 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6488 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6489 (debug_sym_read_linetable, debug_sym_relocate): Update.
6490 (symfile_debug_free_objfile): Remove.
6491 (install_symfile_debug_logging, _initialize_symfile_debug):
6492 Update.
6493
5bfd760d
TT
64942019-05-08 Tom Tromey <tom@tromey.com>
6495
6496 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6497 allocate_on_obstack.
6498 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6499 (get_dwarf2_per_objfile): Update.
6500 (set_dwarf2_per_objfile): Remove.
6501 (dwarf2_has_info, dwarf2_get_section_info): Update.
6502 (dwarf2_free_objfile): Remove.
6503 (_initialize_dwarf2_read): Update.
6504
e85e19b4
TT
65052019-05-08 Tom Tromey <tom@tromey.com>
6506
6507 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6508 initializers.
6509 <unsupported_script_warning_printed,
6510 script_not_found_warning_printed>: Now bool.
6511 (auto_load_pspace_data): Change type.
6512 (~auto_load_pspace_info): Rename from
6513 auto_load_pspace_data_cleanup.
6514 (get_auto_load_pspace_data, init_loaded_scripts_info)
6515 (clear_section_scripts, maybe_print_unsupported_script_warning)
6516 (maybe_print_script_not_found_warning, _initialize_auto_load):
6517 Update.
6518
f6aa7436
TT
65192019-05-08 Tom Tromey <tom@tromey.com>
6520
6521 * objfiles.c (objfile_pspace_info): Add destructor and
6522 initializers.
6523 (objfiles_pspace_data): Change type.
6524 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6525 (get_objfile_pspace_data): Update.
6526 (objfiles_bfd_data): Change type.
6527 (get_objfile_bfd_data): Update.
6528 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6529
6ae614f6
TT
65302019-05-08 Tom Tromey <tom@tromey.com>
6531
6532 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6533 Change type.
6534 (get_catch_syscall_inferior_data): Update.
6535 (catch_syscall_inferior_data_cleanup): Remove.
6536 (_initialize_break_catch_syscall): Update.
6537
6509b8eb
TT
65382019-05-08 Tom Tromey <tom@tromey.com>
6539
6540 * inflow.c (struct terminal_info): Add destructor and
6541 initializers.
6542 (inflow_inferior_data): Change type.
6543 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6544 (get_inflow_inferior_data, inflow_inferior_exit)
6545 (swap_terminal_info, _initialize_inflow): Update.
6546
35632941
TT
65472019-05-08 Tom Tromey <tom@tromey.com>
6548
6549 * target-dcache.c (target_dcache_cleanup): Remove.
6550 (target_dcache_aspace_key): Change type.
6551 (target_dcache_init_p, target_dcache_invalidate)
6552 (target_dcache_get, target_dcache_get_or_init)
6553 (_initialize_target_dcache): Update.
6554 * dcache.h (struct dcache_deleter): New.
6555
3017b94d
TT
65562019-05-08 Tom Tromey <tom@tromey.com>
6557
6558 * symtab.c (struct symbol_cache): Add destructor and
6559 initializers.
6560 (symbol_cache_key): Move. Change type.
6561 (make_symbol_cache, free_symbol_cache): Remove.
6562 (get_symbol_cache): Update.
6563 (symbol_cache_cleanup): Remove.
6564 (ALL_PSPACES, symbol_cache_flush)
6565 (maintenance_print_symbol_cache)
6566 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6567 Update.
6568
a32ad8c5
TT
65692019-05-08 Tom Tromey <tom@tromey.com>
6570
6571 * symtab.c (struct main_info): Add destructor and initializers.
6572 (main_progspace_key): Move. Change type.
6573 (get_main_info): Update.
6574 (main_info_cleanup): Remove.
6575 (_initialize_symtab): Update.
6576
5f6e90a0
TT
65772019-05-08 Tom Tromey <tom@tromey.com>
6578
6579 * registry.h (DECLARE_REGISTRY): Define the _key class.
6580
1bd0c6e4
AB
65812019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6582
6583 * NEWS: Merge two 'New commands' sections.
6584
2228ef77
XR
65852019-05-08 Joel Brobecker <brobecker@adacore.com>
6586
6587 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6588 parameter and use Ada language definition instead.
6589 (ada_val_print_ptr): Remove unused language parameter.
6590 (ada_val_print_num): Remove language parameter and use Ada language
6591 definition instead.
6592 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6593 parameter.
6594 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6595 parameter and use Ada language definition instead.
6596 (ada_val_print_1): Update all ada_val_print_xxx calls.
6597 Remove language parameter.
6598 (ada_val_print): Update ada_val_print_1 call.
6599
60fcc1c3
TT
66002019-05-08 Tom Tromey <tromey@adacore.com>
6601
6602 * remote.c (remote_hw_watchpoint_limit)
6603 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6604 Now static.
6605
ed2b7c17
TT
66062019-05-08 Tom Tromey <tromey@adacore.com>
6607
6608 * maint.c (_initialize_maint_cmds): Move initialization code to
6609 remote.c.
6610 (watchdog, show_watchdog): Move to remote.c.
6611 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6612 "watchdog" static.
6613 (_initialize_remote): Move initialization code from maint.c.
6614 * defs.h (watchdog): Don't declare.
6615
b0be6c91
TT
66162019-05-08 Tom Tromey <tromey@adacore.com>
6617
6618 * tui/tui-interp.c: Include main.h.
6619 * interps.c: Include main.h.
6620 * main.h (interpreter_p): Declare.
6621 * defs.h (interpreter_p): Don't declare.
6622
587ee17b
TT
66232019-05-08 Tom Tromey <tromey@adacore.com>
6624
6625 * dwarf2loc.c: Include dwarf2read.h.
6626 * defs.h (read_unsigned_leb128): Don't declare.
6627 * dwarf2read.h (read_unsigned_leb128): Declare.
6628
ca1df239
TT
66292019-05-08 Tom Tromey <tromey@adacore.com>
6630
6631 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6632 method.
6633
99f20f08
TT
66342019-05-08 Tom Tromey <tromey@adacore.com>
6635
6636 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6637 when no wrap column is set.
6638
80e55b13
TT
66392019-05-08 Tom Tromey <tromey@adacore.com>
6640
6641 * c-lang.c (c_get_string): Handle non-C-style arrays.
6642
9d3421af
TT
66432019-05-08 Tom Tromey <tromey@adacore.com>
6644
6645 * typeprint.c (print_offset_data::update): Print the bit offset,
6646 not the number of bits remaining.
6647
844333e2
TT
66482019-05-08 Tom Tromey <tromey@adacore.com>
6649
6650 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6651 padding at end of comment.
6652
988915ee
TT
66532019-05-08 Tom Tromey <tromey@adacore.com>
6654
6655 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6656 Compare main types.
6657
26bfd823
TT
66582019-05-06 Tom Tromey <tom@tromey.com>
6659
6660 * common/scoped_mmap.c: Include common-defs.h.
6661 * common/scoped_mmap.h: Don't include config.h.
6662
89055eaa
TT
66632019-05-04 Tom Tromey <tom@tromey.com>
6664
6665 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6666 (struct aarch64_call_info): Add initializers.
6667 <si>: Now a std::vector.
6668 (pass_on_stack, aarch64_push_dummy_call): Update.
6669
5da01df5
TT
66702019-05-04 Simon Marchi <simon.marchi@efficios.com>
6671 Tom Tromey <tom@tromey.com>
6672
6673 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6674 (ppc_threads): Now a std::vector. Now static.
6675 (hwdebug_find_thread_points_by_tid)
6676 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6677 Update.
6678
fbdf05a1
TT
66792019-05-04 Tom Tromey <tom@tromey.com>
6680
6681 * arc-tdep.c (arc_tdesc_init): Return bool.
6682
06d16ec9
TT
66832019-05-04 Tom Tromey <tom@tromey.com>
6684
6685 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6686 Use gdb_assert_not_reached.
6687
9c056022
TT
66882019-05-04 Tom Tromey <tom@tromey.com>
6689
6690 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6691 "false".
6692
fa9c2a59
TT
66932019-05-04 Tom Tromey <tom@tromey.com>
6694
6695 * arc-tdep.c (arc_tdesc_init): Use bool.
6696
e2eb806a
TT
66972019-05-04 Tom Tromey <tom@tromey.com>
6698
6699 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6700
6fe87677
TT
67012019-05-04 Tom Tromey <tom@tromey.com>
6702
6703 * cli/cli-cmds.c (valid_command_p): Return bool.
6704
7f008c9e
TT
67052019-05-04 Tom Tromey <tom@tromey.com>
6706
6707 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6708 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6709
b6484282
RT
67102019-05-04 Raul Tambre <raul@tambre.ee>
6711
6712 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6713 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6714 operator for comparison.
6715
af97b416
TT
67162019-05-04 Tom Tromey <tom@tromey.com>
6717
6718 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6719 (lookup_partial_symbol, print_partial_symbols)
6720 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6721 (psymbol_compare): Update.
6722 (add_psymbol_to_bcache): Clear the entire psymbol.
6723 (maintenance_check_psymtabs): Update.
6724 * psympriv.h (struct partial_symbol): Don't derive from
6725 general_symbol_info.
6726 <obj_section, unrelocated_address, address,
6727 set_unrelocated_address>: Update.
6728 <ginfo>: New member.
6729 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6730 (debug_names::write_psymbols): Update.
6731
9d6d4be8
TV
67322019-05-04 Tom de Vries <tdevries@suse.de>
6733
6734 * contrib/cc-with-tweaks.sh: Support -n arg.
6735
66452beb
PW
67362019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6737
6738 * corelow.c (core_target::detach): Ensure frame cache and
6739 register caches are cleared.
6740 inferior.c (exit_inferior_1): Likewise.
6741
bde09ab7
TT
67422019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6743 Tom Tromey <tom@tromey.com>
6744
6745 * dictionary.c (collate_pending_symbols_by_language): Remove
6746 "struct" from foreach.
6747 * symtab.c (lookup_global_symbol_from_objfile)
6748 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6749 foreach.
6750 * ser-tcp.c (net_open): Remove "struct" from foreach.
6751 * objfiles.c (objfile_relocate, objfile_rebase)
6752 (objfile_has_symbols): Remove "struct" from foreach.
6753 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6754 from foreach.
6755 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6756 foreach.
6757 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6758 "struct" from foreach.
6759 * ada-lang.c (create_excep_cond_exprs)
6760 (ada_exception_catchpoint_cond_string): Remove "struct" from
6761 foreach.
6762
222a8d25
TT
67632019-05-03 Tom Tromey <tromey@adacore.com>
6764
6765 * ada-exp.y (convert_char_literal): Check suffix of each
6766 enumerator.
6767
fcd60b84
DP
67682019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6769
6770 PR ada/21406:
6771 * ada-exp.y (yywrap): Don't define.
6772 * ada-lex.l (%option): Add noyywrap
6773 (yywrap): Remove.
6774
5f2459c2
EZ
67752019-05-03 Eli Zaretskii <eliz@gnu.org>
6776
353ea2d1
EZ
6777 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6778 _WIN32_WINNT to the XP level, unless already defined to a higher
6779 level.
6780
6781 * unittests/parse-connection-spec-selftests.c:
6782 * ser-tcp.c:
6783 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6784 override.
6785
5f2459c2
EZ
6786 * symfile.c (find_separate_debug_file): Remove colon from the
6787 drive spec of DOS/Windows file names of the target, so that the
6788 file name produced from DEBUGDIR and the target's directory will
6789 be valid on DOS/Windows systems.
6790
80062eb9
AB
67912019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6792
6793 * rust-lang.c (val_print_struct): Handle printing structures
6794 containing strings.
6795
b8c05e85
TT
67962019-05-02 Tom Tromey <tromey@adacore.com>
6797
6798 * valarith.c (_initialize_valarith): Remove.
6799
4504bbde
TT
68002019-05-01 Tom Tromey <tromey@adacore.com>
6801
6802 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6803 bitfields.
6804
d48e62f4
TT
68052019-05-01 Tom Tromey <tromey@adacore.com>
6806
6807 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6808 for big-endian copies.
6809
15f18d14
AT
68102019-04-30 Ali Tamur <tamur@google.com>
6811 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6812 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6813 (read_3_bytes): New function.
6814
ab4ee614
JB
68152019-04-30 Joel Brobecker <brobecker@adacore.com>
6816
6817 * windows-nat.c (main_thread_id): Delete.
6818 (handle_output_debug_string): Replace main_thread_id by
6819 current_event.dwThreadId.
6820 (fake_create_process): Likewise.
6821 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6822 Do not set main_thread_id.
6823 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6824 current_event.dwThreadId.
6825 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6826
8ed5b76e
JB
68272019-04-30 Joel Brobecker <brobecker@adacore.com>
6828
6829 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6830 Use current_event.dwThreadId instead of main_thread_id.
6831
2ff0a947
TT
68322019-04-30 Tom Tromey <tromey@adacore.com>
6833
6834 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6835 (create_excep_cond_exprs): Iterate over program spaces.
6836 (ada_exception_catchpoint_cond_string): Examine all minimal
6837 symbols for exception types.
6838
a776957c
TT
68392019-04-30 Tom Tromey <tromey@adacore.com>
6840
6841 PR c++/24470:
6842 * dwarf2read.c (process_structure_scope): Handle case where type
6843 has template parameters but no symbol was created.
6844
bc68014d
AB
68452019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6846 Chris January <chris.january@arm.com>
6847
6848 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6849 qualifier.
6850 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6851
f1fdc960
AB
68522019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6853
6854 * f-typeprint.c (f_print_type): Update rules for printing
6855 whitespace.
6856 (f_type_print_varspec_suffix): Likewise.
6857
bf7a4de1
AB
68582019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6859 Chris January <chris.january@arm.com>
6860
6861 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6862 function arguments.
6863
bbe75b9d
AB
68642019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6865
6866 * f-lang.c (build_fortran_types): Change name of void type to
6867 lower case.
6868 * f-typeprint.c (f_type_print_base): Print the name of the void
6869 type, rather than a fixed string.
6870 * f-valprint.c (f_decorations): Use lower case void string.
6871
1db455a7
AB
68722019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6873 Chris January <chris.january@arm.com>
6874
6875 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6876 types for Fortran.
6877
b6d03bb2
AB
68782019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6879 Chris January <chris.january@arm.com>
6880 David Lecomber <david.lecomber@arm.com>
6881
6882 * f-exp.y (BINOP_INTRINSIC): New token.
6883 (exp): New parser rule handling BINOP_INTRINSIC.
6884 (f77_keywords): Add new builtin procedures.
6885 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6886 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6887 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6888 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6889 (print_unop_subexp_f): New function.
6890 (print_binop_subexp_f): New function.
6891 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6892 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6893 (dump_subexp_body_f): Likewise.
6894 (operator_check_f): Likewise.
6895 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6896 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6897
83228e93
AB
68982019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6899
6900 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6901 UNOP_KIND.
6902 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6903 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6904 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6905 (operator_length_f): New fuction.
6906 (print_subexp_f): New function.
6907 (op_name_f): New function.
6908 (dump_subexp_body_f): New function.
6909 (operator_check_f): New function.
6910 (exp_descriptor_f): Replace standard expression handling functions
6911 with new functions.
6912 * gdb/fortran-operator.def: New file.
6913 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6914 * gdb/std-operator.def: Remove UNOP_KIND.
6915
6fdcd7cc
AB
69162019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6917
6918 * std-operator.def: Remove unbalanced, stray double quote
6919 character.
6920
2e62ab40
AB
69212019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6922 Chris January <chris.january@arm.com>
6923 Daniel Everett <daniel.everett@arm.com>
6924 Nick Forrington <nick.forrington@arm.com>
6925 Richard Bunt <richard.bunt@arm.com>
6926
6927 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6928 of depth when printing anonymous structs or unions.
6929 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6930 Don't print either the top-level value, or the children if the
6931 max-depth is exceeded.
6932 (ppscm_print_children): When printing the key of a map, allow one
6933 extra level of depth.
6934 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6935 print either the top-level value, or the children if the max-depth
6936 is exceeded.
6937 (print_children): When printing the key of a map, allow one extra
6938 level of depth.
6939 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6940 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6941 (user_print_options): Initialise max_depth field.
6942 (val_print_scalar_or_string_type_p): New function.
6943 (val_print): Check to see if the max depth has been reached.
6944 (val_print_check_max_depth): Define new function.
6945 (show_print_max_depth): New function.
6946 (_initialize_valprint): Add 'print max-depth' option.
6947 * valprint.h (struct value_print_options) <max_depth>: New field.
6948 (val_print_check_max_depth): Declare new function.
6949 * NEWS: Document new feature.
6950
4be290b2
AB
69512019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6952
6953 * ada-lang.c (ada_language_defn): Initialise new field.
6954 * c-lang.c (c_is_string_type_p): New function.
6955 (c_language_defn): Initialise new field.
6956 (cplus_language_defn): Initialise new field.
6957 (asm_language_defn): Initialise new field.
6958 (minimal_language_defn): Initialise new field.
6959 * c-lang.h (c_is_string_type_p): Declare new function.
6960 * d-lang.c (d_language_defn): Initialise new field.
6961 * f-lang.c (f_is_string_type_p): New function.
6962 (f_language_defn): Initialise new field.
6963 * go-lang.c (go_is_string_type_p): New function.
6964 (go_language_defn): Initialise new field.
6965 * language.c (default_is_string_type_p): New function.
6966 (unknown_language_defn): Initialise new field.
6967 (auto_language_defn): Initialise new field.
6968 * language.h (struct language_defn) <la_is_string_type_p>: New
6969 member variable.
6970 (default_is_string_type_p): Declare new function.
6971 * m2-lang.c (m2_language_defn): Initialise new field.
6972 * objc-lang.c (objc_language_defn): Initialise new field.
6973 * opencl-lang.c (opencl_language_defn): Initialise new field.
6974 * p-lang.c (pascal_is_string_type_p): New function.
6975 (pascal_language_defn): Initialise new field.
6976 * rust-lang.c (rust_is_string_type_p): New function.
6977 (rust_language_defn): Initialise new field.
6978
721b08c6
AB
69792019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6980
6981 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6982 New field.
6983 * ada-lang.c (ada_language_defn): Initialise new field.
6984 * c-lang.c (c_language_defn): Likewise.
6985 (cplus_language_defn): Likewise.
6986 (asm_language_defn): Likewise.
6987 (minimal_language_defn): Likewise.
6988 * d-lang.c (d_language_defn): Likewise.
6989 * f-lang.c (f_language_defn): Likewise.
6990 * go-lang.c (go_language_defn): Likewise.
6991 * language.c (unknown_language_defn): Likewise.
6992 (auto_language_defn): Likewise.
6993 * m2-lang.c (m2_language_defn): Likewise.
6994 * objc-lang.c (objc_language_defn): Likewise.
6995 * opencl-lang.c (opencl_language_defn): Likewise.
6996 * p-lang.c (pascal_language_defn): Likewise.
6997 * rust-lang.c (rust_language_defn): Likewise.
6998
fc913e53
AB
69992019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7000
7001 * ada-lang.c (ada_is_character_type): Change return type to bool.
7002 (ada_is_string_type): Likewise.
7003 * ada-lang.h (ada_is_character_type): Update declaration
7004 (ada_is_string_type): Likewise.
7005
fa731fa0
PW
70062019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7007
7008 Support style in 'frame|thread apply'
7009
7010 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7011 * record.c (record_start, record_stop): Update callers of
7012 execute_command_to_string with false.
7013 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7014 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7015 methods.
7016 (class string_file): New constructor with term_out parameter.
7017 Override methods term_out and can_emit_style_escape. New member
7018 term_out.
7019 (class stdio_file): Override can_emit_style_escape.
7020 (class tee_file): Override term_out and can_emit_style_escape.
7021 * utils.h (can_emit_style_escape): Remove.
7022 * utils.c (can_emit_style_escape): Likewise.
7023 Update all callers of can_emit_style_escape (SOMESTREAM) to
7024 SOMESTREAM->can_emit_style_escape.
7025 * source-cache.c (source_cache::get_source_lines): Likewise.
7026 * stack.c (frame_apply_command_count): Call execute_command_to_string
7027 passing the term_out characteristic of the current gdb_stdout.
7028 * thread.c (thr_try_catch_cmd): Likewise.
7029 * top.c (execute_command_to_string): pass term_out parameter
7030 to construct the string_file for the command output.
7031 * ui-file.c (term_cli_styling): New function (most code moved
7032 from utils.c can_emit_style_escape).
7033 (string_file::string_file, string_file::can_emit_style_escape,
7034 stdio_file::can_emit_style_escape, tee_file::term_out,
7035 tee_file::can_emit_style_escape): New functions.
7036
136afab8
PW
70372019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7038
7039 * NEWS: Mention the new set|show may-call-functions.
7040 * infcall.c (may_call_functions_p): New variable.
7041 (show_may_call_functions_p): New function.
7042 (call_function_by_hand_dummy): Throws an error if not
7043 may-call-functions.
7044 (_initialize_infcall): Call add_setshow_boolean_cmd for
7045 may-call-functions.
7046
725cbb63
KS
70472019-04-25 Keith Seitz <keiths@redhat.com>
7048
7049 PR c++/24367
7050 * cp-support.c (inspect_type): Don't attempt substitutions
7051 of symbol with the same name.
7052
3d1cbb78
TT
70532019-04-25 Tom Tromey <tromey@adacore.com>
7054
7055 PR gdb/24475:
7056 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7057 static.
7058
94aeb44b
TT
70592019-04-25 Tom Tromey <tromey@adacore.com>
7060
7061 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7062 rvalue reference.
7063 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7064 (gdb_xml_parser::parse): Use std::move.
7065 * python/python-internal.h (gdbpy_convert_exception): Take a const
7066 reference.
7067 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7068 std::move.
7069 * python/py-utils.c (gdbpy_convert_exception): Take a const
7070 reference.
7071 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7072 Use std::move.
7073 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7074 Use std::move.
7075 * mi/mi-main.c (mi_print_exception): Take a const reference.
7076 * main.c (handle_command_errors): Take a const reference.
7077 * linespec.c (parse_linespec): Use std::move.
7078 * infcall.c (run_inferior_call): Use std::move.
7079 (call_function_by_hand_dummy): Use std::move.
7080 * exec.c (try_open_exec_file): Use std::move.
7081 * exceptions.h (exception_print, exception_fprintf)
7082 (exception_print_same): Update.
7083 * exceptions.c (print_exception, exception_print)
7084 (exception_fprintf, exception_print_same): Change parameters to
7085 const reference.
7086 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7087 * common/new-op.c: Use std::move.
7088 * common/common-exceptions.h (struct gdb_exception): Add move
7089 constructor.
7090 (struct gdb_exception_error, struct gdb_exception_quit, struct
7091 gdb_quit_bad_alloc): Change constructor to move constructor.
7092 (throw_exception): Change parameter to rvalue reference.
7093 * common/common-exceptions.c (throw_exception): Take rvalue
7094 reference.
7095 * cli/cli-interp.c (safe_execute_command): Use std::move.
7096 * breakpoint.c (insert_bp_location, location_to_sals): Use
7097 std::move.
7098
680d7fd5
TT
70992019-04-25 Tom Tromey <tromey@adacore.com>
7100
7101 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7102 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7103 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7104 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7105 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7106 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7107 guile/scm-value.c: Use unpack.
7108 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7109 gdbscm_gdb_exception.
7110 (gdbscm_throw_gdb_exception): Likewise.
7111 (struct gdbscm_gdb_exception): New.
7112 (unpack): New function.
7113 (gdbscm_wrap): Use unpack.
7114
c6fdd8b2
TT
71152019-04-25 Tom Tromey <tromey@adacore.com>
7116
7117 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7118 (gdb_rl_callback_handler): Use std::move.
7119 * common/common-exceptions.h (struct gdb_exception): Add move
7120 assignment operator.
7121 (throw_exception_sjlj): Change "exception" to const reference.
7122 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7123 (throw_exception_sjlj): Change "exception" to const reference.
7124
cc06b668
TT
71252019-04-25 Tom Tromey <tromey@adacore.com>
7126
7127 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7128 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7129 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7130 Update.
7131 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7132 Update.
7133 * mi/mi-interp.c (mi_interp::exec): Update.
7134 * linespec.c (parse_linespec): Update.
7135 * infcall.c (run_inferior_call): Update.
7136 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7137 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7138 (gdbscm_lookup_global_symbol): Update.
7139 * guile/scm-param.c (gdbscm_parameter_value): Update.
7140 * guile/scm-frame.c (gdbscm_frame_read_register)
7141 (gdbscm_frame_read_var): Update.
7142 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7143 * exec.c (try_open_exec_file): Update.
7144 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7145 (gdb_rl_callback_handler): Update.
7146 * common/common-exceptions.h (exception_none): Don't declare.
7147 * common/common-exceptions.c (exception_none): Don't define.
7148 (struct catcher) <exception>: Update.
7149 * cli/cli-interp.c (safe_execute_command): Update.
7150 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7151
cf532bd1
AT
71522019-04-25 Ali Tamur <tamur@google.com>
7153
7154 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7155 (read_attribute_value): Likewise.
7156 (dwarf2_read_addr_index): Update comment.
7157 (read_str_index): Add DW_FORM_strx.
7158 (dwarf2_string_attr): Likewise.
7159 (dwarf2_const_value_attr): Likewise.
7160 (dump_die_shallow): Likewise.
7161 (dwarf2_fetch_constant_bytes): Likewise.
7162 (skip_form_bytes): Likewise.
7163 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7164
82433e3e
SDJ
71652019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7166
7167 PR corefiles/11608
7168 PR corefiles/18187
7169 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7170 OFFSET. Verify if current mapping contains an ELF header.
7171 (linux_find_memory_regions_full): Adjust call to
7172 dump_mapping_p.
7173
723adb65
SL
71742019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7175 Kang Li <kanglictf@gmail.com>
7176
7177 PR gdb/21600
7178
7179 * dwarf2-frame.c (read_initial_length): Be consistent about using
7180 unsigned representation of length.
7181 (decode_frame_entry_1): Likewise. Check for wraparound of
7182 end pointer as well as buffer overflow.
7183
596179f7
SDJ
71842019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7185
7186 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7187 "vq".
7188
a59240a4
TT
71892019-04-24 Tom Tromey <tromey@adacore.com>
7190
7191 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7192
f872fdbb
AB
71932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7194
7195 * s12z-tdep.c (s12z_unwind_pc): Delete.
7196 (s12z_unwind_sp): Delete.
7197 (s12z_gdbarch_init): Don't register deleted functions with
7198 gdbarch.
7199
b614e6f3
AB
72002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7201
7202 * rl78-tdep.c (rl78_unwind_sp): Delete.
7203 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7204
14faed38
AB
72052019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7206
7207 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7208 (xstormy16_unwind_pc): Delete.
7209 (xstormy16_dummy_id): Delete.
7210 (xstormy16_gdbarch_init): Don't register deleted functions with
7211 gdbarch.
7212
541aad8a
AB
72132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7214
7215 * vax-tdep.c (vax_unwind_pc): Delete.
7216 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7217
29222070
AB
72182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7219
7220 * v850-tdep.c (v850_unwind_sp): Delete.
7221 (v850_unwind_pc): Delete.
7222 (v850_dummy_id): Delete.
7223 (v850_gdbarch_init): Don't register deleted functions with
7224 gdbarch.
7225
0f534d76
AB
72262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7227
7228 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7229 (tilegx_unwind_pc): Delete.
7230 (tilegx_unwind_dummy_id): Delete.
7231 (tilegx_gdbarch_init): Don't register deleted functions with
7232 gdbarch.
7233
1ba7b7f9
AB
72342019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7235
7236 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7237 (tic6x_dummy_id): Delete.
7238 (tic6x_gdbarch_init): Don't register deleted functions with
7239 gdbarch.
7240
d31f262c
AB
72412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7242
7243 * sparc-tdep.c (sparc_unwind_pc): Delete.
7244 (sparc32_gdbarch_init): Don't register deleted function with
7245 gdbarch.
7246
6d14d64d
AB
72472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7248
7249 * sh-tdep.c (sh_unwind_sp): Delete.
7250 (sh_unwind_pc): Delete.
7251 (sh_dummy_id): Delete.
7252 (sh_gdbarch_init): Don't register deleted functions with
7253 gdbarch.
7254
a40dde9d
AB
72552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7256
7257 * score-tdep.c (score_unwind_sp): Delete.
7258 (score_unwind_pc): Delete.
7259 (score_dummy_id): Delete.
7260 (score_gdbarch_init): Don't register deleted functions with
7261 gdbarch.
7262
47c47d69
AB
72632019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7264
7265 * rx-tdep.c (rx_unwind_pc): Delete.
7266 (rx_unwind_sp): Delete.
7267 (rx_dummy_id): Delete.
7268 (rx_gdbarch_init): Don't register deleted functions with
7269 gdbarch. Update comment.
7270
833a4480
AB
72712019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7272
7273 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7274 (rs6000_dummy_id): Delete.
7275 (rs6000_gdbarch_init): Don't register deleted functions with
7276 gdbarch.
7277
3f2cef49
AB
72782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7279
7280 * or1k-tdep.c (or1k_dummy_id): Delete.
7281 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7282
96acf884
AB
72832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7284
7285 * nios2-tdep.c (nios2_dummy_id): Delete.
7286 (nios2_unwind_sp): Delete.
7287 (nios2_gdbarch_init): Don't register deleted functions with
7288 gdbarch.
7289
ca0ab0aa
AB
72902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7291
7292 * nds32-tdep.c (nds32_dummy_id): Delete.
7293 (nds32_unwind_pc): Delete.
7294 (nds32_unwind_sp): Delete.
7295 (nds32_gdbarch_init): Don't register deleted functions with
7296 gdbarch.
7297
c8259044
AB
72982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7299
7300 * msp430-tdep.c (msp430_unwind_pc): Delete.
7301 (msp430_unwind_sp): Delete.
7302 (msp430_dummy_id): Delete.
7303 (msp430_gdbarch_init): Don't register deleted functions with
7304 gdbarch.
7305
27f113c8
AB
73062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7307
7308 * moxie-tdep.c (moxie_unwind_sp): Delete.
7309 (moxie_unwind_pc): Delete.
7310 (moxie_dummy_id): Delete.
7311 (moxie_gdbarch_init): Don't register deleted functions with
7312 gdbarch.
7313
aee6c3cd
AB
73142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7315
7316 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7317 (mn10300_unwind_pc): Delete.
7318 (mn10300_unwind_sp): Delete.
7319 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7320 mn10300_unwind_sp.
7321 (mn10300_frame_unwind_init): Don't register deleted functions with
7322 gdbarch.
7323
8e2b5aea
AB
73242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7325
7326 * mep-tdep.c (mep_unwind_pc): Delete.
7327 (mep_unwind_sp): Delete.
7328 (mep_dummy_id): Delete.
7329 (mep_gdbarch_init): Don't register deleted functions with
7330 gdbarch.
7331
43cf3ede
AB
73322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7333
7334 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7335 (m68hc11_unwind_sp): Delete.
7336 (m68hc11_gdbarch_init): Don't register deleted functions with
7337 gdbarch.
7338
5e79b7bb
AB
73392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7340
7341 * m32r-tdep.c (m32r_unwind_sp): Delete.
7342 (m32r_unwind_pc): Delete.
7343 (m32r_dummy_id): Delete.
7344 (m32r_gdbarch_init): Don't register deleted functions with
7345 gdbarch.
7346
89b268d8
AB
73472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7348
7349 * m32c-tdep.c (m32c_unwind_pc): Delete.
7350 (m32c_unwind_sp): Delete.
7351 (m32c_dummy_id): Delete.
7352 (m32c_gdbarch_init): Don't register deleted functions with
7353 gdbarch.
7354
946c28d2
AB
73552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7356
7357 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7358 (lm32_unwind_pc): Delete.
7359 (lm32_dummy_id): Delete.
7360 (lm32_gdbarch_init): Don't register deleted functions with
7361 gdbarch.
7362
bf12844a
AB
73632019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7364
7365 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7366 (iq2000_unwind_pc): Delete.
7367 (iq2000_dummy_id): Delete.
7368 (iq2000_gdbarch_init): Don't register deleted functions with
7369 gdbarch.
7370
ecbc06d2
AB
73712019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7372
7373 * nds32-tdep.c (nds32_type_align): Delete.
7374 (nds32_push_dummy_call): Use type_align instead.
7375
030197b4
AB
73762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7377
7378 * arm-tdep.c (arm_type_align): Only handle vector override case.
7379 (arm_push_dummy_call): Use type_align.
7380 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7381
b907456c
AB
73822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7383
7384 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7385 case.
7386 (pass_on_stack): Use type_align.
7387 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7388 function.
7389
9e97ba43
TT
73902019-04-23 Tom Tromey <tromey@adacore.com>
7391
7392 * dwarf2read.c (line_header::file_name_at): Remove unused
7393 overload.
7394
6892f601
TV
73952019-04-23 Tom de Vries <tdevries@suse.de>
7396
7397 PR gdb/24438
7398 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7399 invocation.
7400
336d760d
AT
7401
74022019-03-27 Ali Tamur <tamur@google.com>
7403
7404 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7405 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7406 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7407 (dwarf_expr_context::get_addr_index): Likewise
7408 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7409 (symbol_needs_eval_context::get_addr_index): Likewise
7410 (disassemble_dwarf_expression): Add DW_OP_addrx
7411 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7412 (read_cutu_die_from_dwo): Update comment
7413 (skip_one_die): Add DW_FORM_addrx
7414 (read_attribute_value): Likewise
7415 (var_decode_location): Add DW_OP_addrx
7416 (dwarf2_const_value_attr): Add DW_FORM_addrx
7417 (dump_die_shallow): Likewise
7418 (dwarf2_fetch_constant_bytes): Likewise
7419 (decode_locdesc): Add DW_OP_addrx
7420 (skip_form_bytes): Add DW_FORM_addrx
7421
ad9d13f8
AT
74222019-04-22 Ali Tamur <tamur@google.com>
7423
7424 * MAINTAINERS (Write After Approval): Add self.
7425
d70cc3ba
SM
74262019-04-22 Simon Marchi <simon.marchi@efficios.com>
7427
7428 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7429 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7430 (open_symbol_file_object): Likewise.
7431 (svr4_default_sos): Add info parameter.
7432 (svr4_read_so_list): Likewise.
7433 (svr4_current_sos_direct): Adjust functions calls to pass down
7434 info.
7435 (svr4_current_sos_1): Add info parameter.
7436 (svr4_current_sos): Call get_svr4_info, pass info down to
7437 svr4_current_sos_1.
7438 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7439 get_svr4_info.
7440 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7441 get_svr4_info.
7442 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7443 to get_svr4_info.
7444 (probes_table_remove_objfile_probes): Likewise.
7445 (register_solib_event_probe): Add info parameter.
7446 (solist_update_incremental): Pass info parameter down to
7447 svr4_read_so_list.
7448 (disable_probes_interface): Add info parameter.
7449 (svr4_handle_solib_event): Pass current_program_space to
7450 get_svr4_info. Adjust disable_probes_interface cleanup.
7451 (svr4_create_probe_breakpoints): Add info parameter, pass it
7452 down to register_solib_event_probe.
7453 (svr4_create_solib_event_breakpoints): Add info parameter,
7454 pass it down to svr4_create_probe_breakpoints.
7455 (enable_break): Pass info down to
7456 svr4_create_solib_event_breakpoints.
7457 (svr4_solib_create_inferior_hook): Pass current_program_space to
7458 get_svr4_info.
7459 (svr4_clear_solib): Likewise.
7460
7905fc35
PA
74612019-04-22 Pedro Alves <palves@redhat.com>
7462
7463 * solib-svr4.c (svr4_free_objfile_observer): New.
7464 (probe_and_action::objfile): New field.
7465 (probes_table_htab_remove_objfile_probes)
7466 (probes_table_remove_objfile_probes): New functions.
7467 (register_solib_event_probe): Add 'objfile' parameter. Store it
7468 in the new probe_and_action. Don't store the probe in 'lookup'.
7469 (svr4_create_probe_breakpoints): Pass objfile to
7470 register_solib_event_probe.
7471 (_initialize_svr4_solib): Register a free_objfile observer.
7472
fb881986
TT
74732019-04-19 Tom Tromey <tom@tromey.com>
7474
7475 * common/queue.h: Remove.
7476
8732db6c
TT
74772019-04-19 Tom Tromey <tom@tromey.com>
7478
7479 * event-loop.c: Don't include "common/queue.h".
7480
97dfbadd
TT
74812019-04-19 Tom Tromey <tom@tromey.com>
7482
7483 * remote.c (remote_target): Use delete.
7484 * remote-notif.h: Include <list>, not "common/queue.h".
7485 (notif_client_p): Remove typedef.
7486 (remote_notif_state): Add constructor, destructor, initializer.
7487 <notif_queue>: Now a std::list.
7488 (remote_notif_state_xfree): Don't declare.
7489 * remote-notif.c (remote_notif_process, handle_notification)
7490 (remote_notif_state_allocate): Update.
7491 (~remote_notif_state): Rename from remote_notif_state_xfree.
7492
cf250e36
TT
74932019-04-19 Tom Tromey <tom@tromey.com>
7494
7495 * symfile.c (reread_symbols): Update.
7496 * objfiles.c (objfile_register_static_link)
7497 (objfile_lookup_static_link): Update
7498 (~objfile) Don't delete static_links.
7499 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7500
61f4b350
TT
75012019-04-19 Tom Tromey <tom@tromey.com>
7502
7503 * type-stack.h (struct type_stack) <insert>: Constify string.
7504 * type-stack.c (type_stack::insert): Constify string.
7505 * gdbtypes.h (lookup_template_type): Update.
7506 (address_space_name_to_int): Update.
7507 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7508 const.
7509 (lookup_template_type): Make name const.
7510 * c-exp.y: Update rules.
7511 (lex_one_token, classify_name, classify_inner_name)
7512 (c_print_token): Update.
7513 * p-exp.y: Update rules.
7514 (yylex): Update.
7515 * f-exp.y: Update rules.
7516 (yylex): Update.
7517 * d-exp.y: Update rules.
7518 (lex_one_token, classify_name, classify_inner_name): Update.
7519 * parse.c (write_dollar_variable, copy_name): Return std::string.
7520 * parser-defs.h (copy_name): Change return type.
7521 * m2-exp.y: Update rules.
7522 (yylex): Update.
7523 * go-exp.y (lex_one_token): Update.
7524 Update rules.
7525 (classify_unsafe_function, classify_packaged_name)
7526 (classify_name, yylex): Update.
7527
189b8c2e
ST
75282019-04-19 Sergei Trofimovich <siarheit@google.com>
7529
7530 * configure.ac: add --enable-source-highlight switch.
7531 * configure: Regenerate.
7532 * top.c (print_gdb_version): plumb --enable-source-highlight
7533 status to "show configuration".
7534
8ecb59f8
TT
75352019-04-19 Tom Tromey <tromey@adacore.com>
7536
7537 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7538 Check ADA_TYPE_P.
7539 (empty_record, ada_template_to_fixed_record_type_1)
7540 (template_to_static_fixed_type)
7541 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7542 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7543 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7544 macros.
7545
62160ec9
TT
75462019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7547
7548 PR symtab/24423:
7549 * source.c (print_source_lines_base): Advance "iter" when a
7550 control character is seen.
7551
f2ae8bc8
PW
75522019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7553
7554 * inferior.h (struct infcall_suspend_state_deleter):
7555 Catch exception in destructor to avoid crash.
7556
d563b953
PW
75572019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7558
7559 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7560 close to the add_com "shell".
7561
dc34c897
TT
75622019-04-18 Tom Tromey <tromey@adacore.com>
7563
7564 * process-stratum-target.h (class process_stratum_target)
7565 <stratum>: Add "final".
7566
a12e5744
TT
75672019-04-17 Tom Tromey <tromey@adacore.com>
7568
7569 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7570 against nullptr before use.
7571
a7e559cc
AH
75722019-04-17 Alan Hayward <alan.hayward@arm.com>
7573
7574 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7575
c01660c6
AB
75762019-04-17 Jim Wilson <jimw@sifive.com>
7577 Andrew Burgess <andrew.burgess@embecosm.com>
7578
7579 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7580 code read might fail, assume 4-byte breakpoint in that case.
7581
4aa866af
LS
75822019-04-15 Leszek Swirski <leszeks@google.com>
7583
7584 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7585 rather than a hand-rolled POD check when checking for forced MEMORY
7586 classification.
7587
48574d91
AH
75882019-04-15 Alan Hayward <alan.hayward@arm.com>
7589
7590 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7591 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7592 function.
7593 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7594 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7595 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7596 declaration.
7597
4da037ef
AH
75982019-04-15 Alan Hayward <alan.hayward@arm.com>
7599
7600 * aarch64-linux-nat.c
7601 (aarch64_linux_nat_target::thread_architecture): Add override.
7602 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7603 each VQ.
7604
ccb8d7e8
AH
76052019-04-15 Alan Hayward <alan.hayward@arm.com>
7606
7607 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7608
35add35e
AB
76092019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7610
7611 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7612 target types of size 96-bits, add some additional comments, and
7613 check that the builtin type we found was the correct size.
7614
51196bbc
EZ
76152019-04-12 Eli Zaretskii <eliz@gnu.org>
7616
7617 * utils.c (prompt_for_continue): Don't restore the styling at the
7618 end, as applied_style has the wrong value. This fixes styling in
7619 long lists of file names that are interrupted by the "Continue?"
7620 prompt.
7621
62253a61
AB
76222019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7623
7624 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7625 * c-lang.c (c_language_defn): Likewise.
7626 (cplus_language_defn): Likewise.
7627 (asm_language_defn): Likewise.
7628 (minimal_language_defn): Likewise.
7629 * d-lang.c (d_language_defn): Likewise.
7630 * f-lang.c (f_language_defn): Likewise.
7631 * go-lang.c (go_language_defn): Likewise.
7632 * language.c (unknown_language_defn): Likewise.
7633 (auto_language_defn): Likewise.
7634 * language.h (struct language_defn): Remove la_magic field.
7635 (LANG_MAGIC): Delete.
7636 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7637 * objc-lang.c (objc_language_defn): Likewise.
7638 * opencl-lang.c (opencl_language_defn): Likewise.
7639 * p-lang.c (pascal_language_defn): Likewise.
7640 * rust-lang.c (rust_language_defn): Likewise.
7641
a9158a86
AB
76422019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7643
7644 * riscv-tdep.c (riscv_type_align): New function.
7645 (riscv_type_alignment): Delete.
7646 (riscv_arg_location): Use 'type_align'.
7647 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7648
41077b66
AB
76492019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7650
7651 * gdbtypes.c (type_align): A struct with no non-static fields also
7652 has alignment of 1.
7653
9f0272f8
AB
76542019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7655
7656 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7657 component to 0.
7658 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7659 member.
7660 (riscv_struct_info::analyse): New implementation using new
7661 analyse_inner member function.
7662 (riscv_struct_info::field_offset): New member function.
7663 (riscv_struct_info::m_offsets): New member variable.
7664 (riscv_struct_info::analyse_inner): New private member function,
7665 takes the old implementation of riscv_struct_info::analyse but
7666 extended to track field offsets.
7667 (riscv_call_arg_struct): Update the struct folding special cases
7668 to handle cases where empty C++ structs, which are non-zero
7669 length, are found.
7670 (riscv_arg_location): Initialise the length of each location, a
7671 non-zero length now indicates the location is in use.
7672 (riscv_push_dummy_call): Allow for the first location having a
7673 non-zero offset when setting up arguments.
7674 (riscv_return_value): Likewise, but for return values.
7675
02cf60c7
TT
76762019-04-11 Tom Tromey <tromey@adacore.com>
7677
7678 * utils.c (internal_vproblem): Make "msg" const.
7679
68811f8f
AH
76802019-04-11 Alan Hayward <alan.hayward@arm.com>
7681
7682 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7683 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7684 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7685 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7686
3f52fdbc
KB
76872019-04-10 Kevin Buettner <kevinb@redhat.com>
7688
7689 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7690 function.
7691 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7692 of amd64_collect_native_gregset.
7693 (amd64_linux_nat_target::store_registers): Likewise.
7694
e9ad22ee
TT
76952019-04-10 Tom Tromey <tom@tromey.com>
7696
7697 * symtab.c (lookup_global_symbol_from_objfile)
7698 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7699 * objfiles.h (class separate_debug_iterator): New.
7700 (class separate_debug_range): New.
7701 (struct objfile) <separate_debug_objfiles>: New method.
7702 (objfile_separate_debug_iterate): Don't declare.
7703 * objfiles.c (separate_debug_iterator::operator++): Rename from
7704 objfile_separate_debug_iterate.
7705 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7706 iterator.
7707 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7708 iterator.
7709
ee371134
TT
77102019-04-10 Tom Tromey <tom@tromey.com>
7711
7712 * symfile.c (reread_symbols): Remove old comment.
7713 * objfiles.c (free_all_objfiles): Fix a typo.
7714
bf227d61
TT
77152019-04-10 Tom Tromey <tom@tromey.com>
7716
7717 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7718 * minsyms.c (lookup_minimal_symbol): Use foreach.
7719 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7720 (lookup_minimal_symbol_solib_trampoline): Likewise.
7721 * symfile.c (reread_symbols): Use foreach.
7722
8dc433a0
TT
77232019-04-09 Ivan Begert <ivanbegert@gmail.com>
7724 Tom Tromey <tromey@adacore.com>
7725
7726 PR rust/24414:
7727 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7728 (rust_lex_int_test): Change "value" to be LONGEST.
7729 (rust_lex_tests): Add test for long integer literal.
7730
9ab8741a
TT
77312019-04-09 Tom Tromey <tromey@adacore.com>
7732
7733 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7734 to bool.
7735 (extended_remote_target::attach): Update.
7736 (remote_target::remote_notice_new_inferior): Update.
7737 (remote_target::add_current_inferior_and_thread): Update.
7738 * inferior.c (exit_inferior_1): Use "false".
7739 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7740
e242fd12
SM
77412019-04-09 Simon Marchi <simon.marchi@efficios.com>
7742
9ca1957f 7743 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
7744 the "start" command.
7745
2b0c8b01
KB
77462019-04-08 Kevin Buettner <kevinb@redhat.com>
7747
7748 * python/py-inferior.c (infpy_thread_from_thread_handle):
7749 Adjust comments to reflect renaming of thread_from_thread_handle
7750 to thread_from_handle. Adjust keywords. Fix type error message.
7751 (inferior_object_methods): Add thread_from_handle. Retain
7752 thread_from_thread_handle, but mark it as deprecated.
7753
50a82723
KB
77542019-04-08 Kevin Buettner <kevinb@redhat.com>
7755
7756 * gdbthread.h (find_thread_by_handle): Revise declaration.
7757 * thread.c (find_thread_by_handle): Likewise. Adjust
7758 implementation too.
7759 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7760 support for buffer objects as handles.
7761
cf63b016
KB
77622019-04-08 Kevin Buettner <kevinb@redhat.com>
7763
7764 * python/py-infthread.c (thpy_thread_handle): New function.
7765 (thread_object_methods): Register thpy_thread_handle.
7766
3d6c6204
KB
77672019-04-08 Kevin Buettner <kevinb@redhat.com>
7768
7769 * gdbthread.h (thread_to_thread_handle): Declare.
7770 * thread.c (gdbtypes.h): Include.
7771 (thread_to_thread_handle): New function.
7772
7773 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7774 (target_thread_info_to_thread_handle): Declare.
7775 * target.c (target_thread_info_to_thread_handle): New function.
7776 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7777 * target-delegates.c: Regenerate.
7778
7779 * linux-thread-db.c (class thread_db_target): Add method
7780 thread_info_to_thread_handle.
7781 (thread_db_target::thread_info_to_thread_handle): Define.
7782 * remote.c (class remote_target): Add new method
7783 thread_info_to_thread_handle.
7784 (remote_target::thread_info_to_thread_handle): Define.
7785
56be6ea8
PA
77862019-04-08 Pedro Alves <palves@redhat.com>
7787
7788 * common/common-exceptions.c (throw_exception): Don't create
7789 named object to throw; throw directly.
7790 (throw_it): Likewise. Don't initialize gdb_exception::message
7791 here, with new; pass FMT and AP to the ctor instead.
7792 * common/common-exceptions.h: Include <string>.
7793 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7794 const char *, va_list)): New ctor. Use std::make_shared.
7795 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7796 errors)): Delete.
7797 (gdb_exception_error::gdb_exception_error(enum errors, const char
7798 *, va_list)): New.
7799 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7800 Add assertion.
7801 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7802 errors)): Delete.
7803 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7804 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7805 Add assertion.
7806
eedc3f4f
TT
78072019-04-08 Tom Tromey <tom@tromey.com>
7808
7809 * valops.c (value_rtti_indirect_type): Replace throw_exception
7810 with throw.
7811 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7812 with throw.
7813 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7814 throw.
7815 * target.c (target_translate_tls_address): Replace throw_exception
7816 with throw.
7817 * stack.c (frame_apply_command_count): Replace throw_exception
7818 with throw.
7819 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7820 throw.
7821 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7822 with throw.
7823 * rs6000-tdep.c (rs6000_frame_cache)
7824 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7825 * remote.c: Replace throw_exception with throw.
7826 * record-full.c (record_full_message, record_full_wait_1)
7827 (record_full_restore): Replace throw_exception with throw.
7828 * record-btrace.c:
7829 (get_thread_current_frame_id, record_btrace_start_replaying)
7830 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7831 (cmd_record_btrace_start): Replace throw_exception with throw.
7832 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7833 throw.
7834 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7835 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7836 * linespec.c:
7837 (find_linespec_symbols): Replace throw_exception with throw.
7838 * infrun.c (displaced_step_prepare, resume): Replace
7839 throw_exception with throw.
7840 * infcmd.c (post_create_inferior): Replace throw_exception with
7841 throw.
7842 * inf-loop.c (inferior_event_handler): Replace throw_exception
7843 with throw.
7844 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7845 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7846 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7847 (get_prev_frame_always, get_frame_pc_if_available)
7848 (get_frame_address_in_block_if_available, get_frame_language):
7849 Replace throw_exception with throw.
7850 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7851 throw_exception with throw.
7852 * eval.c (fetch_subexp_value, evaluate_var_value)
7853 (evaluate_funcall, evaluate_subexp_standard): Replace
7854 throw_exception with throw.
7855 * dwarf2loc.c (call_site_find_chain)
7856 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7857 Replace throw_exception with throw.
7858 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7859 with throw.
7860 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7861 throw.
7862 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7863 * completer.c (complete_line_internal): Replace throw_exception
7864 with throw.
7865 * compile/compile-object-run.c (compile_object_run): Replace
7866 throw_exception with throw.
7867 * cli/cli-script.c (process_next_line): Replace throw_exception
7868 with throw.
7869 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7870 (btrace_enable, btrace_maint_update_pt_packets): Replace
7871 throw_exception with throw.
7872 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7873 throw_exception with throw.
7874 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7875 throw_exception with throw.
7876 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7877 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7878 * aarch64-tdep.c (aarch64_make_prologue_cache)
7879 (aarch64_make_stub_cache): Replace throw_exception with throw.
7880
26003a20
TT
78812019-04-08 Tom Tromey <tom@tromey.com>
7882
7883 * common/common-exceptions.c (throw_exception): Rename from
7884 throw_exception_cxx. Remove old copy. Make argument const.
7885 (throw_it): Create and throw exception objects directly.
7886 * common/common-exceptions.h (throw_exception): Make argument
7887 const.
7888 (struct gdb_exception_error): Add constructor.
7889 (struct gdb_exception_quit): Add constructor.
7890
d272eb37
TT
78912019-04-08 Tom Tromey <tom@tromey.com>
7892
7893 * common/common-exceptions.h (exception_rethrow): Don't declare.
7894 (TRY_SJLJ): Update comment.
7895 (TRY, CATCH, END_CATCH): Remove.
7896 * common/common-exceptions.c (exception_rethrow): Remove.
7897
230d2906
TT
78982019-04-08 Tom Tromey <tom@tromey.com>
7899
7900 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7901 Remove.
7902 (gdb_exception_error): Rename from
7903 gdb_exception_RETURN_MASK_ERROR.
7904 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7905 (gdb_quit_bad_alloc): Update.
7906 * aarch64-tdep.c: Update.
7907 * ada-lang.c: Update.
7908 * ada-typeprint.c: Update.
7909 * ada-valprint.c: Update.
7910 * amd64-tdep.c: Update.
7911 * arch-utils.c: Update.
7912 * break-catch-throw.c: Update.
7913 * breakpoint.c: Update.
7914 * btrace.c: Update.
7915 * c-varobj.c: Update.
7916 * cli/cli-cmds.c: Update.
7917 * cli/cli-interp.c: Update.
7918 * cli/cli-script.c: Update.
7919 * common/common-exceptions.c: Update.
7920 * common/new-op.c: Update.
7921 * common/selftest.c: Update.
7922 * compile/compile-c-symbols.c: Update.
7923 * compile/compile-cplus-symbols.c: Update.
7924 * compile/compile-object-load.c: Update.
7925 * compile/compile-object-run.c: Update.
7926 * completer.c: Update.
7927 * corelow.c: Update.
7928 * cp-abi.c: Update.
7929 * cp-support.c: Update.
7930 * cp-valprint.c: Update.
7931 * darwin-nat.c: Update.
7932 * disasm-selftests.c: Update.
7933 * dtrace-probe.c: Update.
7934 * dwarf-index-cache.c: Update.
7935 * dwarf-index-write.c: Update.
7936 * dwarf2-frame-tailcall.c: Update.
7937 * dwarf2-frame.c: Update.
7938 * dwarf2loc.c: Update.
7939 * dwarf2read.c: Update.
7940 * eval.c: Update.
7941 * event-loop.c: Update.
7942 * event-top.c: Update.
7943 * exec.c: Update.
7944 * f-valprint.c: Update.
7945 * fbsd-tdep.c: Update.
7946 * frame-unwind.c: Update.
7947 * frame.c: Update.
7948 * gdbtypes.c: Update.
7949 * gnu-v3-abi.c: Update.
7950 * guile/guile-internal.h: Update.
7951 * guile/scm-block.c: Update.
7952 * guile/scm-breakpoint.c: Update.
7953 * guile/scm-cmd.c: Update.
7954 * guile/scm-disasm.c: Update.
7955 * guile/scm-frame.c: Update.
7956 * guile/scm-lazy-string.c: Update.
7957 * guile/scm-math.c: Update.
7958 * guile/scm-param.c: Update.
7959 * guile/scm-ports.c: Update.
7960 * guile/scm-pretty-print.c: Update.
7961 * guile/scm-symbol.c: Update.
7962 * guile/scm-symtab.c: Update.
7963 * guile/scm-type.c: Update.
7964 * guile/scm-value.c: Update.
7965 * i386-linux-tdep.c: Update.
7966 * i386-tdep.c: Update.
7967 * inf-loop.c: Update.
7968 * infcall.c: Update.
7969 * infcmd.c: Update.
7970 * infrun.c: Update.
7971 * jit.c: Update.
7972 * language.c: Update.
7973 * linespec.c: Update.
7974 * linux-fork.c: Update.
7975 * linux-nat.c: Update.
7976 * linux-tdep.c: Update.
7977 * linux-thread-db.c: Update.
7978 * main.c: Update.
7979 * mi/mi-cmd-break.c: Update.
7980 * mi/mi-cmd-stack.c: Update.
7981 * mi/mi-interp.c: Update.
7982 * mi/mi-main.c: Update.
7983 * objc-lang.c: Update.
7984 * p-valprint.c: Update.
7985 * parse.c: Update.
7986 * ppc-linux-tdep.c: Update.
7987 * printcmd.c: Update.
7988 * python/py-arch.c: Update.
7989 * python/py-breakpoint.c: Update.
7990 * python/py-cmd.c: Update.
7991 * python/py-finishbreakpoint.c: Update.
7992 * python/py-frame.c: Update.
7993 * python/py-framefilter.c: Update.
7994 * python/py-gdb-readline.c: Update.
7995 * python/py-inferior.c: Update.
7996 * python/py-infthread.c: Update.
7997 * python/py-lazy-string.c: Update.
7998 * python/py-linetable.c: Update.
7999 * python/py-objfile.c: Update.
8000 * python/py-param.c: Update.
8001 * python/py-prettyprint.c: Update.
8002 * python/py-progspace.c: Update.
8003 * python/py-record-btrace.c: Update.
8004 * python/py-record.c: Update.
8005 * python/py-symbol.c: Update.
8006 * python/py-type.c: Update.
8007 * python/py-unwind.c: Update.
8008 * python/py-utils.c: Update.
8009 * python/py-value.c: Update.
8010 * python/python.c: Update.
8011 * record-btrace.c: Update.
8012 * record-full.c: Update.
8013 * remote-fileio.c: Update.
8014 * remote.c: Update.
8015 * riscv-tdep.c: Update.
8016 * rs6000-aix-tdep.c: Update.
8017 * rs6000-tdep.c: Update.
8018 * rust-exp.y: Update.
8019 * rust-lang.c: Update.
8020 * s390-tdep.c: Update.
8021 * selftest-arch.c: Update.
8022 * solib-dsbt.c: Update.
8023 * solib-frv.c: Update.
8024 * solib-spu.c: Update.
8025 * solib-svr4.c: Update.
8026 * solib.c: Update.
8027 * sparc64-linux-tdep.c: Update.
8028 * stack.c: Update.
8029 * symfile-mem.c: Update.
8030 * symmisc.c: Update.
8031 * target.c: Update.
8032 * thread.c: Update.
8033 * top.c: Update.
8034 * tracefile-tfile.c: Update.
8035 * tui/tui.c: Update.
8036 * typeprint.c: Update.
8037 * unittests/cli-utils-selftests.c: Update.
8038 * unittests/parse-connection-spec-selftests.c: Update.
8039 * valops.c: Update.
8040 * valprint.c: Update.
8041 * value.c: Update.
8042 * varobj.c: Update.
8043 * windows-nat.c: Update.
8044 * x86-linux-nat.c: Update.
8045 * xml-support.c: Update.
8046
a70b8144
TT
80472019-04-08 Tom Tromey <tom@tromey.com>
8048
8049 * xml-support.c: Use C++ exception handling.
8050 * x86-linux-nat.c: Use C++ exception handling.
8051 * windows-nat.c: Use C++ exception handling.
8052 * varobj.c: Use C++ exception handling.
8053 * value.c: Use C++ exception handling.
8054 * valprint.c: Use C++ exception handling.
8055 * valops.c: Use C++ exception handling.
8056 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8057 handling.
8058 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8059 * typeprint.c: Use C++ exception handling.
8060 * tui/tui.c: Use C++ exception handling.
8061 * tracefile-tfile.c: Use C++ exception handling.
8062 * top.c: Use C++ exception handling.
8063 * thread.c: Use C++ exception handling.
8064 * target.c: Use C++ exception handling.
8065 * symmisc.c: Use C++ exception handling.
8066 * symfile-mem.c: Use C++ exception handling.
8067 * stack.c: Use C++ exception handling.
8068 * sparc64-linux-tdep.c: Use C++ exception handling.
8069 * solib.c: Use C++ exception handling.
8070 * solib-svr4.c: Use C++ exception handling.
8071 * solib-spu.c: Use C++ exception handling.
8072 * solib-frv.c: Use C++ exception handling.
8073 * solib-dsbt.c: Use C++ exception handling.
8074 * selftest-arch.c: Use C++ exception handling.
8075 * s390-tdep.c: Use C++ exception handling.
8076 * rust-lang.c: Use C++ exception handling.
8077 * rust-exp.y: Use C++ exception handling.
8078 * rs6000-tdep.c: Use C++ exception handling.
8079 * rs6000-aix-tdep.c: Use C++ exception handling.
8080 * riscv-tdep.c: Use C++ exception handling.
8081 * remote.c: Use C++ exception handling.
8082 * remote-fileio.c: Use C++ exception handling.
8083 * record-full.c: Use C++ exception handling.
8084 * record-btrace.c: Use C++ exception handling.
8085 * python/python.c: Use C++ exception handling.
8086 * python/py-value.c: Use C++ exception handling.
8087 * python/py-utils.c: Use C++ exception handling.
8088 * python/py-unwind.c: Use C++ exception handling.
8089 * python/py-type.c: Use C++ exception handling.
8090 * python/py-symbol.c: Use C++ exception handling.
8091 * python/py-record.c: Use C++ exception handling.
8092 * python/py-record-btrace.c: Use C++ exception handling.
8093 * python/py-progspace.c: Use C++ exception handling.
8094 * python/py-prettyprint.c: Use C++ exception handling.
8095 * python/py-param.c: Use C++ exception handling.
8096 * python/py-objfile.c: Use C++ exception handling.
8097 * python/py-linetable.c: Use C++ exception handling.
8098 * python/py-lazy-string.c: Use C++ exception handling.
8099 * python/py-infthread.c: Use C++ exception handling.
8100 * python/py-inferior.c: Use C++ exception handling.
8101 * python/py-gdb-readline.c: Use C++ exception handling.
8102 * python/py-framefilter.c: Use C++ exception handling.
8103 * python/py-frame.c: Use C++ exception handling.
8104 * python/py-finishbreakpoint.c: Use C++ exception handling.
8105 * python/py-cmd.c: Use C++ exception handling.
8106 * python/py-breakpoint.c: Use C++ exception handling.
8107 * python/py-arch.c: Use C++ exception handling.
8108 * printcmd.c: Use C++ exception handling.
8109 * ppc-linux-tdep.c: Use C++ exception handling.
8110 * parse.c: Use C++ exception handling.
8111 * p-valprint.c: Use C++ exception handling.
8112 * objc-lang.c: Use C++ exception handling.
8113 * mi/mi-main.c: Use C++ exception handling.
8114 * mi/mi-interp.c: Use C++ exception handling.
8115 * mi/mi-cmd-stack.c: Use C++ exception handling.
8116 * mi/mi-cmd-break.c: Use C++ exception handling.
8117 * main.c: Use C++ exception handling.
8118 * linux-thread-db.c: Use C++ exception handling.
8119 * linux-tdep.c: Use C++ exception handling.
8120 * linux-nat.c: Use C++ exception handling.
8121 * linux-fork.c: Use C++ exception handling.
8122 * linespec.c: Use C++ exception handling.
8123 * language.c: Use C++ exception handling.
8124 * jit.c: Use C++ exception handling.
8125 * infrun.c: Use C++ exception handling.
8126 * infcmd.c: Use C++ exception handling.
8127 * infcall.c: Use C++ exception handling.
8128 * inf-loop.c: Use C++ exception handling.
8129 * i386-tdep.c: Use C++ exception handling.
8130 * i386-linux-tdep.c: Use C++ exception handling.
8131 * guile/scm-value.c: Use C++ exception handling.
8132 * guile/scm-type.c: Use C++ exception handling.
8133 * guile/scm-symtab.c: Use C++ exception handling.
8134 * guile/scm-symbol.c: Use C++ exception handling.
8135 * guile/scm-pretty-print.c: Use C++ exception handling.
8136 * guile/scm-ports.c: Use C++ exception handling.
8137 * guile/scm-param.c: Use C++ exception handling.
8138 * guile/scm-math.c: Use C++ exception handling.
8139 * guile/scm-lazy-string.c: Use C++ exception handling.
8140 * guile/scm-frame.c: Use C++ exception handling.
8141 * guile/scm-disasm.c: Use C++ exception handling.
8142 * guile/scm-cmd.c: Use C++ exception handling.
8143 * guile/scm-breakpoint.c: Use C++ exception handling.
8144 * guile/scm-block.c: Use C++ exception handling.
8145 * guile/guile-internal.h: Use C++ exception handling.
8146 * gnu-v3-abi.c: Use C++ exception handling.
8147 * gdbtypes.c: Use C++ exception handling.
8148 * frame.c: Use C++ exception handling.
8149 * frame-unwind.c: Use C++ exception handling.
8150 * fbsd-tdep.c: Use C++ exception handling.
8151 * f-valprint.c: Use C++ exception handling.
8152 * exec.c: Use C++ exception handling.
8153 * event-top.c: Use C++ exception handling.
8154 * event-loop.c: Use C++ exception handling.
8155 * eval.c: Use C++ exception handling.
8156 * dwarf2read.c: Use C++ exception handling.
8157 * dwarf2loc.c: Use C++ exception handling.
8158 * dwarf2-frame.c: Use C++ exception handling.
8159 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8160 * dwarf-index-write.c: Use C++ exception handling.
8161 * dwarf-index-cache.c: Use C++ exception handling.
8162 * dtrace-probe.c: Use C++ exception handling.
8163 * disasm-selftests.c: Use C++ exception handling.
8164 * darwin-nat.c: Use C++ exception handling.
8165 * cp-valprint.c: Use C++ exception handling.
8166 * cp-support.c: Use C++ exception handling.
8167 * cp-abi.c: Use C++ exception handling.
8168 * corelow.c: Use C++ exception handling.
8169 * completer.c: Use C++ exception handling.
8170 * compile/compile-object-run.c: Use C++ exception handling.
8171 * compile/compile-object-load.c: Use C++ exception handling.
8172 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8173 * compile/compile-c-symbols.c: Use C++ exception handling.
8174 * common/selftest.c: Use C++ exception handling.
8175 * common/new-op.c: Use C++ exception handling.
8176 * cli/cli-script.c: Use C++ exception handling.
8177 * cli/cli-interp.c: Use C++ exception handling.
8178 * cli/cli-cmds.c: Use C++ exception handling.
8179 * c-varobj.c: Use C++ exception handling.
8180 * btrace.c: Use C++ exception handling.
8181 * breakpoint.c: Use C++ exception handling.
8182 * break-catch-throw.c: Use C++ exception handling.
8183 * arch-utils.c: Use C++ exception handling.
8184 * amd64-tdep.c: Use C++ exception handling.
8185 * ada-valprint.c: Use C++ exception handling.
8186 * ada-typeprint.c: Use C++ exception handling.
8187 * ada-lang.c: Use C++ exception handling.
8188 * aarch64-tdep.c: Use C++ exception handling.
8189
3d6e9d23
TT
81902019-04-08 Tom Tromey <tom@tromey.com>
8191
8192 * xml-support.c (gdb_xml_parser::parse): Update.
8193 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8194 * value.c (show_convenience): Update.
8195 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8196 (test_parse_flags_qcs): Update.
8197 * thread.c (thr_try_catch_cmd): Update.
8198 * target.c (target_translate_tls_address): Update.
8199 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8200 (info_frame_command_core, frame_apply_command_count): Update.
8201 * rust-exp.y (rust_lex_exception_test): Update.
8202 * riscv-tdep.c (riscv_print_one_register_info): Update.
8203 * remote.c (remote_target::enable_btrace): Update.
8204 * record-btrace.c (record_btrace_enable_warn): Update.
8205 * python/py-utils.c (gdbpy_convert_exception): Update.
8206 * printcmd.c (do_one_display, print_variable_and_value): Update.
8207 * mi/mi-main.c (mi_print_exception): Update.
8208 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8209 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8210 * linux-nat.c (linux_nat_target::attach): Update.
8211 * linux-fork.c (class scoped_switch_fork_info): Update.
8212 * infrun.c (displaced_step_prepare): Update.
8213 * infcall.c (call_function_by_hand_dummy): Update.
8214 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8215 * gnu-v3-abi.c (print_one_vtable): Update.
8216 * frame.c (get_prev_frame_always): Update.
8217 * f-valprint.c (info_common_command_for_block): Update.
8218 * exec.c (try_open_exec_file): Update.
8219 * exceptions.c (print_exception, exception_print)
8220 (exception_fprintf, exception_print_same): Update.
8221 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8222 * dwarf-index-cache.c (index_cache::store)
8223 (index_cache::lookup_gdb_index): Update.
8224 * darwin-nat.c (maybe_cache_shell): Update.
8225 * cp-valprint.c (cp_print_value_fields): Update.
8226 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8227 (gcc_cplus_symbol_address): Update.
8228 * compile/compile-c-symbols.c (gcc_convert_symbol)
8229 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8230 * common/selftest.c: Update.
8231 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8232 a std::string.
8233 (exception_try_scope_entry, exception_try_scope_exit): Don't
8234 declare.
8235 (struct exception_try_scope): Remove.
8236 (TRY): Don't use exception_try_scope.
8237 (struct gdb_exception): Add constructor, operator=.
8238 <what>: New method.
8239 (struct gdb_exception_RETURN_MASK_ALL)
8240 (struct gdb_exception_RETURN_MASK_ERROR)
8241 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8242 (struct gdb_quit_bad_alloc): Update.
8243 * common/common-exceptions.c (exception_none): Change
8244 initializer.
8245 (struct catcher) <state, exception>: Initialize inline.
8246 <prev>: Remove member.
8247 (current_catcher): Remove.
8248 (catchers): New global.
8249 (exceptions_state_mc_init): Simplify.
8250 (catcher_pop): Remove.
8251 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8252 (try_scope_depth, exception_try_scope_entry)
8253 (exception_try_scope_exit): Remove.
8254 (throw_exception_sjlj): Update.
8255 (exception_messages, exception_messages_size): Remove.
8256 (throw_it): Simplify.
8257 (gdb_exception_sliced_copy): Remove.
8258 (throw_exception_cxx): Update.
8259 * cli/cli-script.c (script_from_file): Update.
8260 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8261 Update.
8262 * ada-valprint.c (ada_val_print): Update.
8263 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8264 (create_excep_cond_exprs): Update.
8265
c5c10118
TT
82662019-04-08 Tom Tromey <tom@tromey.com>
8267
8268 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8269 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8270 (TRY, CATCH, END_CATCH): Remove some definitions.
8271 * common/common-exceptions.c: Don't use GDB_XCPT.
8272 (catcher_list_size): Remove.
8273 (throw_exception, throw_it): Simplify.
8274
4de283e4
TT
82752019-04-05 Tom Tromey <tom@tromey.com>
8276
8277 Revert the header-sorting patch.
8278 * ft32-tdep.c: Revert.
8279 * frv-tdep.c: Revert.
8280 * frv-linux-tdep.c: Revert.
8281 * frame.c: Revert.
8282 * frame-unwind.c: Revert.
8283 * frame-base.c: Revert.
8284 * fork-child.c: Revert.
8285 * findvar.c: Revert.
8286 * findcmd.c: Revert.
8287 * filesystem.c: Revert.
8288 * filename-seen-cache.h: Revert.
8289 * filename-seen-cache.c: Revert.
8290 * fbsd-tdep.c: Revert.
8291 * fbsd-nat.h: Revert.
8292 * fbsd-nat.c: Revert.
8293 * f-valprint.c: Revert.
8294 * f-typeprint.c: Revert.
8295 * f-lang.c: Revert.
8296 * extension.h: Revert.
8297 * extension.c: Revert.
8298 * extension-priv.h: Revert.
8299 * expprint.c: Revert.
8300 * exec.h: Revert.
8301 * exec.c: Revert.
8302 * exceptions.c: Revert.
8303 * event-top.c: Revert.
8304 * event-loop.c: Revert.
8305 * eval.c: Revert.
8306 * elfread.c: Revert.
8307 * dwarf2read.h: Revert.
8308 * dwarf2read.c: Revert.
8309 * dwarf2loc.c: Revert.
8310 * dwarf2expr.h: Revert.
8311 * dwarf2expr.c: Revert.
8312 * dwarf2-frame.c: Revert.
8313 * dwarf2-frame-tailcall.c: Revert.
8314 * dwarf-index-write.h: Revert.
8315 * dwarf-index-write.c: Revert.
8316 * dwarf-index-common.c: Revert.
8317 * dwarf-index-cache.h: Revert.
8318 * dwarf-index-cache.c: Revert.
8319 * dummy-frame.c: Revert.
8320 * dtrace-probe.c: Revert.
8321 * disasm.h: Revert.
8322 * disasm.c: Revert.
8323 * disasm-selftests.c: Revert.
8324 * dictionary.c: Revert.
8325 * dicos-tdep.c: Revert.
8326 * demangle.c: Revert.
8327 * dcache.h: Revert.
8328 * dcache.c: Revert.
8329 * darwin-nat.h: Revert.
8330 * darwin-nat.c: Revert.
8331 * darwin-nat-info.c: Revert.
8332 * d-valprint.c: Revert.
8333 * d-namespace.c: Revert.
8334 * d-lang.c: Revert.
8335 * ctf.c: Revert.
8336 * csky-tdep.c: Revert.
8337 * csky-linux-tdep.c: Revert.
8338 * cris-tdep.c: Revert.
8339 * cris-linux-tdep.c: Revert.
8340 * cp-valprint.c: Revert.
8341 * cp-support.c: Revert.
8342 * cp-namespace.c: Revert.
8343 * cp-abi.c: Revert.
8344 * corelow.c: Revert.
8345 * corefile.c: Revert.
8346 * continuations.c: Revert.
8347 * completer.h: Revert.
8348 * completer.c: Revert.
8349 * complaints.c: Revert.
8350 * coffread.c: Revert.
8351 * coff-pe-read.c: Revert.
8352 * cli-out.h: Revert.
8353 * cli-out.c: Revert.
8354 * charset.c: Revert.
8355 * c-varobj.c: Revert.
8356 * c-valprint.c: Revert.
8357 * c-typeprint.c: Revert.
8358 * c-lang.c: Revert.
8359 * buildsym.c: Revert.
8360 * buildsym-legacy.c: Revert.
8361 * build-id.h: Revert.
8362 * build-id.c: Revert.
8363 * btrace.c: Revert.
8364 * bsd-uthread.c: Revert.
8365 * breakpoint.h: Revert.
8366 * breakpoint.c: Revert.
8367 * break-catch-throw.c: Revert.
8368 * break-catch-syscall.c: Revert.
8369 * break-catch-sig.c: Revert.
8370 * blockframe.c: Revert.
8371 * block.c: Revert.
8372 * bfin-tdep.c: Revert.
8373 * bfin-linux-tdep.c: Revert.
8374 * bfd-target.c: Revert.
8375 * bcache.c: Revert.
8376 * ax-general.c: Revert.
8377 * ax-gdb.h: Revert.
8378 * ax-gdb.c: Revert.
8379 * avr-tdep.c: Revert.
8380 * auxv.c: Revert.
8381 * auto-load.c: Revert.
8382 * arm-wince-tdep.c: Revert.
8383 * arm-tdep.c: Revert.
8384 * arm-symbian-tdep.c: Revert.
8385 * arm-pikeos-tdep.c: Revert.
8386 * arm-obsd-tdep.c: Revert.
8387 * arm-nbsd-tdep.c: Revert.
8388 * arm-nbsd-nat.c: Revert.
8389 * arm-linux-tdep.c: Revert.
8390 * arm-linux-nat.c: Revert.
8391 * arm-fbsd-tdep.c: Revert.
8392 * arm-fbsd-nat.c: Revert.
8393 * arm-bsd-tdep.c: Revert.
8394 * arch-utils.c: Revert.
8395 * arc-tdep.c: Revert.
8396 * arc-newlib-tdep.c: Revert.
8397 * annotate.h: Revert.
8398 * annotate.c: Revert.
8399 * amd64-windows-tdep.c: Revert.
8400 * amd64-windows-nat.c: Revert.
8401 * amd64-tdep.c: Revert.
8402 * amd64-sol2-tdep.c: Revert.
8403 * amd64-obsd-tdep.c: Revert.
8404 * amd64-obsd-nat.c: Revert.
8405 * amd64-nbsd-tdep.c: Revert.
8406 * amd64-nbsd-nat.c: Revert.
8407 * amd64-nat.c: Revert.
8408 * amd64-linux-tdep.c: Revert.
8409 * amd64-linux-nat.c: Revert.
8410 * amd64-fbsd-tdep.c: Revert.
8411 * amd64-fbsd-nat.c: Revert.
8412 * amd64-dicos-tdep.c: Revert.
8413 * amd64-darwin-tdep.c: Revert.
8414 * amd64-bsd-nat.c: Revert.
8415 * alpha-tdep.c: Revert.
8416 * alpha-obsd-tdep.c: Revert.
8417 * alpha-nbsd-tdep.c: Revert.
8418 * alpha-mdebug-tdep.c: Revert.
8419 * alpha-linux-tdep.c: Revert.
8420 * alpha-linux-nat.c: Revert.
8421 * alpha-bsd-tdep.c: Revert.
8422 * alpha-bsd-nat.c: Revert.
8423 * aix-thread.c: Revert.
8424 * agent.c: Revert.
8425 * addrmap.c: Revert.
8426 * ada-varobj.c: Revert.
8427 * ada-valprint.c: Revert.
8428 * ada-typeprint.c: Revert.
8429 * ada-tasks.c: Revert.
8430 * ada-lang.c: Revert.
8431 * aarch64-tdep.c: Revert.
8432 * aarch64-ravenscar-thread.c: Revert.
8433 * aarch64-newlib-tdep.c: Revert.
8434 * aarch64-linux-tdep.c: Revert.
8435 * aarch64-linux-nat.c: Revert.
8436 * aarch64-fbsd-tdep.c: Revert.
8437 * aarch64-fbsd-nat.c: Revert.
8438 * aarch32-linux-nat.c: Revert.
8439
d55e5aa6
TT
84402019-04-05 Tom Tromey <tom@tromey.com>
8441
8442 * ft32-tdep.c: Sort headers.
8443 * frv-tdep.c: Sort headers.
8444 * frv-linux-tdep.c: Sort headers.
8445 * frame.c: Sort headers.
8446 * frame-unwind.c: Sort headers.
8447 * frame-base.c: Sort headers.
8448 * fork-child.c: Sort headers.
8449 * findvar.c: Sort headers.
8450 * findcmd.c: Sort headers.
8451 * filesystem.c: Sort headers.
8452 * filename-seen-cache.h: Sort headers.
8453 * filename-seen-cache.c: Sort headers.
8454 * fbsd-tdep.c: Sort headers.
8455 * fbsd-nat.h: Sort headers.
8456 * fbsd-nat.c: Sort headers.
8457 * f-valprint.c: Sort headers.
8458 * f-typeprint.c: Sort headers.
8459 * f-lang.c: Sort headers.
8460 * extension.h: Sort headers.
8461 * extension.c: Sort headers.
8462 * extension-priv.h: Sort headers.
8463 * expprint.c: Sort headers.
8464 * exec.h: Sort headers.
8465 * exec.c: Sort headers.
8466 * exceptions.c: Sort headers.
8467 * event-top.c: Sort headers.
8468 * event-loop.c: Sort headers.
8469 * eval.c: Sort headers.
8470 * elfread.c: Sort headers.
8471 * dwarf2read.h: Sort headers.
8472 * dwarf2read.c: Sort headers.
8473 * dwarf2loc.c: Sort headers.
8474 * dwarf2expr.h: Sort headers.
8475 * dwarf2expr.c: Sort headers.
8476 * dwarf2-frame.c: Sort headers.
8477 * dwarf2-frame-tailcall.c: Sort headers.
8478 * dwarf-index-write.h: Sort headers.
8479 * dwarf-index-write.c: Sort headers.
8480 * dwarf-index-common.c: Sort headers.
8481 * dwarf-index-cache.h: Sort headers.
8482 * dwarf-index-cache.c: Sort headers.
8483 * dummy-frame.c: Sort headers.
8484 * dtrace-probe.c: Sort headers.
8485 * disasm.h: Sort headers.
8486 * disasm.c: Sort headers.
8487 * disasm-selftests.c: Sort headers.
8488 * dictionary.c: Sort headers.
8489 * dicos-tdep.c: Sort headers.
8490 * demangle.c: Sort headers.
8491 * dcache.h: Sort headers.
8492 * dcache.c: Sort headers.
8493 * darwin-nat.h: Sort headers.
8494 * darwin-nat.c: Sort headers.
8495 * darwin-nat-info.c: Sort headers.
8496 * d-valprint.c: Sort headers.
8497 * d-namespace.c: Sort headers.
8498 * d-lang.c: Sort headers.
8499 * ctf.c: Sort headers.
8500 * csky-tdep.c: Sort headers.
8501 * csky-linux-tdep.c: Sort headers.
8502 * cris-tdep.c: Sort headers.
8503 * cris-linux-tdep.c: Sort headers.
8504 * cp-valprint.c: Sort headers.
8505 * cp-support.c: Sort headers.
8506 * cp-namespace.c: Sort headers.
8507 * cp-abi.c: Sort headers.
8508 * corelow.c: Sort headers.
8509 * corefile.c: Sort headers.
8510 * continuations.c: Sort headers.
8511 * completer.h: Sort headers.
8512 * completer.c: Sort headers.
8513 * complaints.c: Sort headers.
8514 * coffread.c: Sort headers.
8515 * coff-pe-read.c: Sort headers.
8516 * cli-out.h: Sort headers.
8517 * cli-out.c: Sort headers.
8518 * charset.c: Sort headers.
8519 * c-varobj.c: Sort headers.
8520 * c-valprint.c: Sort headers.
8521 * c-typeprint.c: Sort headers.
8522 * c-lang.c: Sort headers.
8523 * buildsym.c: Sort headers.
8524 * buildsym-legacy.c: Sort headers.
8525 * build-id.h: Sort headers.
8526 * build-id.c: Sort headers.
8527 * btrace.c: Sort headers.
8528 * bsd-uthread.c: Sort headers.
8529 * breakpoint.h: Sort headers.
8530 * breakpoint.c: Sort headers.
8531 * break-catch-throw.c: Sort headers.
8532 * break-catch-syscall.c: Sort headers.
8533 * break-catch-sig.c: Sort headers.
8534 * blockframe.c: Sort headers.
8535 * block.c: Sort headers.
8536 * bfin-tdep.c: Sort headers.
8537 * bfin-linux-tdep.c: Sort headers.
8538 * bfd-target.c: Sort headers.
8539 * bcache.c: Sort headers.
8540 * ax-general.c: Sort headers.
8541 * ax-gdb.h: Sort headers.
8542 * ax-gdb.c: Sort headers.
8543 * avr-tdep.c: Sort headers.
8544 * auxv.c: Sort headers.
8545 * auto-load.c: Sort headers.
8546 * arm-wince-tdep.c: Sort headers.
8547 * arm-tdep.c: Sort headers.
8548 * arm-symbian-tdep.c: Sort headers.
8549 * arm-pikeos-tdep.c: Sort headers.
8550 * arm-obsd-tdep.c: Sort headers.
8551 * arm-nbsd-tdep.c: Sort headers.
8552 * arm-nbsd-nat.c: Sort headers.
8553 * arm-linux-tdep.c: Sort headers.
8554 * arm-linux-nat.c: Sort headers.
8555 * arm-fbsd-tdep.c: Sort headers.
8556 * arm-fbsd-nat.c: Sort headers.
8557 * arm-bsd-tdep.c: Sort headers.
8558 * arch-utils.c: Sort headers.
8559 * arc-tdep.c: Sort headers.
8560 * arc-newlib-tdep.c: Sort headers.
8561 * annotate.h: Sort headers.
8562 * annotate.c: Sort headers.
8563 * amd64-windows-tdep.c: Sort headers.
8564 * amd64-windows-nat.c: Sort headers.
8565 * amd64-tdep.c: Sort headers.
8566 * amd64-sol2-tdep.c: Sort headers.
8567 * amd64-obsd-tdep.c: Sort headers.
8568 * amd64-obsd-nat.c: Sort headers.
8569 * amd64-nbsd-tdep.c: Sort headers.
8570 * amd64-nbsd-nat.c: Sort headers.
8571 * amd64-nat.c: Sort headers.
8572 * amd64-linux-tdep.c: Sort headers.
8573 * amd64-linux-nat.c: Sort headers.
8574 * amd64-fbsd-tdep.c: Sort headers.
8575 * amd64-fbsd-nat.c: Sort headers.
8576 * amd64-dicos-tdep.c: Sort headers.
8577 * amd64-darwin-tdep.c: Sort headers.
8578 * amd64-bsd-nat.c: Sort headers.
8579 * alpha-tdep.c: Sort headers.
8580 * alpha-obsd-tdep.c: Sort headers.
8581 * alpha-nbsd-tdep.c: Sort headers.
8582 * alpha-mdebug-tdep.c: Sort headers.
8583 * alpha-linux-tdep.c: Sort headers.
8584 * alpha-linux-nat.c: Sort headers.
8585 * alpha-bsd-tdep.c: Sort headers.
8586 * alpha-bsd-nat.c: Sort headers.
8587 * aix-thread.c: Sort headers.
8588 * agent.c: Sort headers.
8589 * addrmap.c: Sort headers.
8590 * ada-varobj.c: Sort headers.
8591 * ada-valprint.c: Sort headers.
8592 * ada-typeprint.c: Sort headers.
8593 * ada-tasks.c: Sort headers.
8594 * ada-lang.c: Sort headers.
8595 * aarch64-tdep.c: Sort headers.
8596 * aarch64-ravenscar-thread.c: Sort headers.
8597 * aarch64-newlib-tdep.c: Sort headers.
8598 * aarch64-linux-tdep.c: Sort headers.
8599 * aarch64-linux-nat.c: Sort headers.
8600 * aarch64-fbsd-tdep.c: Sort headers.
8601 * aarch64-fbsd-nat.c: Sort headers.
8602 * aarch32-linux-nat.c: Sort headers.
8603
699bd4cf
TT
86042019-04-04 Tom Tromey <tom@tromey.com>
8605
8606 * varobj.c (varobj_create): Update.
8607 * rust-exp.y (struct rust_parser) <update_innermost_block,
8608 lookup_symbol>: New methods.
8609 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8610 Rename.
8611 (rust_parser::rust_lookup_type)
8612 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8613 * printcmd.c (display_command, do_one_display): Update.
8614 * parser-defs.h (struct parser_state) <parser_state>: Add
8615 "tracker" parameter.
8616 (block_tracker): New member.
8617 (class innermost_block_tracker) <innermost_block_tracker>: Add
8618 "types" parameter.
8619 <reset>: Remove method.
8620 (innermost_block): Don't declare.
8621 (null_post_parser): Update.
8622 * parse.c (innermost_block): Remove global.
8623 (write_dollar_variable): Update.
8624 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8625 Remove "tracker_types" parameter.
8626 (parse_expression): Add "tracker" parameter.
8627 (parse_expression_for_completion): Update.
8628 (null_post_parser): Add "tracker" parameter.
8629 * p-exp.y: Update rules.
8630 * m2-exp.y: Update rules.
8631 * language.h (struct language_defn) <la_post_parser>: Add
8632 "tracker" parameter.
8633 * go-exp.y: Update rules.
8634 * f-exp.y: Update rules.
8635 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8636 parameter.
8637 * d-exp.y: Update rules.
8638 * c-exp.y: Update rules.
8639 * breakpoint.c (set_breakpoint_condition): Create an
8640 innermost_block_tracker.
8641 (watch_command_1): Likewise.
8642 * ada-lang.c (resolve): Add "tracker" parameter.
8643 (resolve_subexp): Likewise.
8644 * ada-exp.y (write_var_from_sym): Update.
8645
dac43e32
TT
86462019-04-04 Tom Tromey <tom@tromey.com>
8647
8648 * type-stack.h: New file.
8649 * type-stack.c: New file.
8650 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8651 type-stack.h.
8652 (insert_into_type_stack, insert_type, push_type, push_type_int)
8653 (insert_type_address_space, pop_type, pop_type_int)
8654 (pop_typelist, pop_type_stack, append_type_stack)
8655 (push_type_stack, get_type_stack, push_typelist)
8656 (follow_type_instance_flags, follow_types): Don't declare.
8657 * parse.c (type_stack): Remove global.
8658 (parse_exp_in_context): Update.
8659 (insert_into_type_stack, insert_type, push_type, push_type_int)
8660 (insert_type_address_space, pop_type, pop_type_int)
8661 (pop_typelist, pop_type_stack, append_type_stack)
8662 (push_type_stack, get_type_stack, push_typelist)
8663 (follow_type_instance_flags, follow_types): Remove (moved to
8664 type-stack.c).
8665 * f-exp.y (type_stack): New global.
8666 Update rules.
8667 (push_kind_type, f_parse): Update.
8668 * d-exp.y (type_stack): New global.
8669 Update rules.
8670 (d_parse): Update.
8671 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8672 Update rules.
8673 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8674 (HFILES_NO_SRCDIR): Add type-stack.h.
8675
2a612529
TT
86762019-04-04 Tom Tromey <tom@tromey.com>
8677
8678 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8679 (rust_parser::convert_ast_to_expression, rust_parse)
8680 (rust_lex_test_completion, rust_lex_tests): Update.
8681 * parser-defs.h (struct expr_completion_state): New.
8682 (struct parser_state) <parser_state>: Add completion parameter.
8683 <mark_struct_expression, mark_completion_tag>: New methods.
8684 <parse_completion, m_completion_state>: New members.
8685 (prefixify_expression, null_post_parser): Update.
8686 (mark_struct_expression, mark_completion_tag): Don't declare.
8687 * parse.c (parse_completion, expout_last_struct)
8688 (expout_tag_completion_type, expout_completion_name): Remove
8689 globals.
8690 (parser_state::mark_struct_expression)
8691 (parser_state::mark_completion_tag): Now methods.
8692 (prefixify_expression): Add last_struct parameter.
8693 (prefixify_subexp): Likewise.
8694 (parse_exp_1): Update.
8695 (parse_exp_in_context): Add cstate parameter. Update.
8696 (parse_expression_for_completion): Create an
8697 expr_completion_state.
8698 (null_post_parser): Add "completion" parameter.
8699 * p-exp.y: Update rules.
8700 (yylex): Update.
8701 * language.h (struct language_defn) <la_post_parser>: Add
8702 "completing" parameter.
8703 * go-exp.y: Update rules.
8704 (lex_one_token): Update.
8705 * expression.h (parse_completion): Don't declare.
8706 * d-exp.y: Update rules.
8707 (lex_one_token): Update rules.
8708 * c-exp.y: Update rules.
8709 (lex_one_token): Update.
8710 * ada-lang.c (resolve): Add "parse_completion" parameter.
8711 (resolve_subexp): Likewise.
8712 (ada_resolve_function): Likewise.
8713
43476f0b
TT
87142019-04-04 Tom Tromey <tom@tromey.com>
8715
8716 * parser-defs.h (struct parser_state) <start_arglist,
8717 end_arglist>: New methods.
8718 <arglist_len, m_funcall_chain>: New members.
8719 (arglist_len, start_arglist, end_arglist): Don't declare.
8720 * parse.c (arglist_len, funcall_chain): Remove global.
8721 (start_arglist, end_arglist): Remove functions.
8722 (parse_exp_in_context): Update.
8723 * p-exp.y: Update rules.
8724 * m2-exp.y: Update rules.
8725 * go-exp.y: Update rules.
8726 * f-exp.y: Update rules.
8727 * d-exp.y: Update rules.
8728 * c-exp.y: Update rules.
8729
5776fca3
TT
87302019-04-04 Tom Tromey <tom@tromey.com>
8731
8732 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8733 lex_operator, push_back>: New methods.
8734 Update all rules.
8735 (rust_parser::lex_hex, lex_escape): Rename and update.
8736 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8737 (rust_parser::lex_operator): Rename and update.
8738 (rust_parser::lex_number, rustyylex, rustyyerror)
8739 (rust_lex_test_init, rust_lex_test_sequence)
8740 (rust_lex_test_push_back, rust_lex_tests): Update.
8741 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8742 parameter.
8743 <lexptr, prev_lexptr>: New members.
8744 (lexptr, prev_lexptr): Don't declare.
8745 * parse.c (lexptr, prev_lexptr): Remove globals.
8746 (parse_exp_in_context): Update.
8747 * p-exp.y (yylex, yyerror): Update.
8748 * m2-exp.y (parse_number, yylex, yyerror): Update.
8749 * go-exp.y (lex_one_token, yyerror): Update.
8750 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8751 * d-exp.y (lex_one_token, yyerror): Update.
8752 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8753 (lex_one_token, yyerror): Update.
8754 * ada-lex.l (YY_INPUT): Update.
8755 (rewind_to_char): Update.
8756 * ada-exp.y (yyerror): Update.
8757
8621b685
TT
87582019-04-04 Tom Tromey <tom@tromey.com>
8759
8760 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8761 * parser-defs.h (struct parser_state) <parser_state>: Add new
8762 parameter.
8763 <comma_terminates>: New member.
8764 (comma_terminates): Don't declare global.
8765 * parse.c (comma_terminates): Remove global.
8766 (parse_exp_in_context): Update.
8767 * p-exp.y (yylex): Update.
8768 * m2-exp.y (yylex): Update.
8769 * go-exp.y (lex_one_token): Update.
8770 * f-exp.y (yylex): Update.
8771 * d-exp.y (lex_one_token): Update.
8772 * c-exp.y (lex_one_token): Update.
8773 * ada-lex.l: Update.
8774
28aaf3fd
TT
87752019-04-04 Tom Tromey <tom@tromey.com>
8776
8777 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8778 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8779 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8780 * parser-defs.h (paren_depth): Don't declare.
8781 * parse.c (paren_depth): Remove global.
8782 (parse_exp_in_context): Update.
8783 * p-exp.y (paren_depth): New global.
8784 (pascal_parse): Initialize it.
8785 * m2-exp.y (paren_depth): New global.
8786 (m2_parse): Initialize it.
8787 * go-exp.y (paren_depth): New global.
8788 (go_parse): Initialize it.
8789 * f-exp.y (paren_depth): New global.
8790 (f_parse): Initialize it.
8791 * d-exp.y (paren_depth): New global.
8792 (d_parse): Initialize it.
8793 * c-exp.y (paren_depth): New global.
8794 (c_parse): Initialize it.
8795 * ada-lex.l (paren_depth): New global.
8796 (lexer_init): Initialize it.
8797
1e58a4a4
TT
87982019-04-04 Tom Tromey <tom@tromey.com>
8799
8800 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8801 (rust_parser::convert_ast_to_type)
8802 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8803 * parser-defs.h (struct parser_state) <parser_state>: Add
8804 parameters. Initialize new members.
8805 <expression_context_block, expression_context_pc>: New members.
8806 * parse.c (expression_context_block, expression_context_pc):
8807 Remove globals.
8808 (parse_exp_in_context): Update.
8809 * p-exp.y: Update all rules.
8810 (yylex): Update.
8811 * m2-exp.y: Update all rules.
8812 (yylex): Update.
8813 * go-exp.y (yylex): Update.
8814 * f-exp.y (yylex): Update.
8815 * d-exp.y: Update all rules.
8816 (yylex): Update.
8817 * c-exp.y: Update all rules.
8818 (lex_one_token, classify_name, yylex, c_parse): Update.
8819 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8820
37eedb39
TT
88212019-04-04 Tom Tromey <tom@tromey.com>
8822
8823 * gdbarch.h, gdbarch.c: Rebuild.
8824 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8825 * stap-probe.h:
8826 (struct stap_parse_info): Replace "parser_state" with
8827 "expr_builder".
8828 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8829 (parser_state): New class.
8830 * parse.c (expr_builder): Rename.
8831 (expr_builder::release): Rename.
8832 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8833 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8834 (write_exp_elt_longcst, write_exp_elt_floatcst)
8835 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8836 (write_exp_string_vector, write_exp_bitstring)
8837 (write_exp_msymbol, mark_struct_expression)
8838 (write_dollar_variable)
8839 (insert_type_address_space, increase_expout_size): Replace
8840 "parser_state" with "expr_builder".
8841 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8842 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8843 "parser_state" with "expr_builder".
8844
73923d7e
TT
88452019-04-04 Tom Tromey <tom@tromey.com>
8846
8847 * rust-exp.y: Replace "parse_language" with method call.
8848 * p-exp.y:
8849 (yylex): Replace "parse_language" with method call.
8850 * m2-exp.y:
8851 (yylex): Replace "parse_language" with method call.
8852 * go-exp.y (classify_name): Replace "parse_language" with method
8853 call.
8854 * f-exp.y (yylex): Replace "parse_language" with method call.
8855 * d-exp.y (lex_one_token): Replace "parse_language" with method
8856 call.
8857 * c-exp.y:
8858 (lex_one_token, classify_name, yylex): Replace "parse_language"
8859 with method call.
8860 * ada-exp.y (find_primitive_type, type_char)
8861 (type_system_address): Replace "parse_language" with method call.
8862
fa9f5be6
TT
88632019-04-04 Tom Tromey <tom@tromey.com>
8864
8865 * rust-exp.y: Replace "parse_gdbarch" with method call.
8866 * parse.c (write_dollar_variable, insert_type_address_space):
8867 Replace "parse_gdbarch" with method call.
8868 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8869 call.
8870 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8871 call.
8872 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8873 "parse_gdbarch" with method call.
8874 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8875 with method call.
8876 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8877 "parse_gdbarch" with method call.
8878 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8879 "parse_gdbarch" with method call.
8880 * c-exp.y (parse_type, parse_number, classify_name): Replace
8881 "parse_gdbarch" with method call.
8882 * ada-lex.l: Replace "parse_gdbarch" with method call.
8883 * ada-exp.y (parse_type, find_primitive_type, type_char)
8884 (type_system_address): Replace "parse_gdbarch" with method call.
8885
1201a264
TT
88862019-04-04 Tom Tromey <tom@tromey.com>
8887
8888 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8889 * stap-probe.c (stap_parse_argument): Update.
8890 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8891 initial_size parameter.
8892 * rust-exp.y (rust_lex_tests): Update.
8893 * parse.c (parser_state): Update.
8894 (parse_exp_in_context): Update.
8895 * parser-defs.h (struct parser_state) <parser_state>: Remove
8896 "initial_size" parameter.
8897
e3980ce2
TT
88982019-04-04 Tom Tromey <tom@tromey.com>
8899
8900 * parser-defs.h (increase_expout_size): Don't declare.
8901 * parse.c (increase_expout_size): Now static.
8902
e9f8e3f1
TS
89032019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8904
8905 * gnu-nat.c (gnu_nat_target::wait): Fix
8906 target_waitstatus_to_string call.
8907
d7df6549
AB
89082019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8909
8910 * eval.c (evaluate_subexp_standard): Handle internal functions
8911 during Fortran function call handling.
8912
8bdc1658
AB
89132019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8914
8915 * NEWS: Mention new internal functions.
8916 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8917 (read_base_type): Use dwarf2_init_complex_target_type.
8918 * value.c (creal_internal_fn): New function.
8919 (cimag_internal_fn): New function.
8920 (_initialize_values): Register new internal functions.
8921
c29705b7
PW
89222019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8923
8924 * infrun.c (stop_all_threads): If debug_infrun, always
8925 trace the wait status after wait_one, using
8926 target_waitstatus_to_string and target_pid_to_str.
8927 (handle_inferior_event): Replace various trace of
8928 wait status kind by a single trace.
8929 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8930 wait status kind image by target_waitstatus_to_string.
8931 * target/waitstatus.c (target_waitstatus_to_string): Fix
8932 obsolete comment.
8933
05caa1d2
TT
89342019-04-01 Tom Tromey <tromey@adacore.com>
8935
8936 PR symtab/23331:
8937 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8938
9d1447e0
SDJ
89392019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8940 Pedro Alves <palves@redhat.com>
8941
8942 * top.c (quit_force): Call 'finalize_values'.
8943 * value.c (finalize_values): New function.
8944 * value.h (finalize_values): Declare.
8945
7734102d
EZ
89462019-03-30 Eli Zaretskii <eliz@gnu.org>
8947
8948 * NEWS: Announce $_gdb_major and $_gdb_minor.
8949
8950 * top.c (init_gdb_version_vars): New function.
8951 (gdb_init): Call init_gdb_version_vars.
8952
188e1fa9
TT
89532019-03-29 Tom Tromey <tromey@adacore.com>
8954
8955 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8956 help text. Remove dead code.
8957
2880242d
KS
89582019-03-29 Keith Seitz <keiths@redhat.com>
8959
8960 From Siddhesh Poyarekar:
8961 * f-lang.h (f77_get_upperbound): Return LONGEST.
8962 (f77_get_lowerbound): Likewise.
8963 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8964 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8965 print them.
8966 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8967 plongest to format print it.
8968 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8969 (f77_get_upperbound): Likewise.
8970 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8971 LOWER_BOUND to LONGEST.
8972 (f77_create_arrayprint_offset_tbl): Likewise.
8973
cc1defb1
KS
89742019-03-29 Keith Seitz <keiths@redhat.com>
8975
8976 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8977 %s/pulongest for TYPE_LENGTH instead of %d in format
8978 strings.
8979 * ada-typerint.c (ada_print_type): Likewise.
8980 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8981 * compile/compile-c-support.c (generate_register_struct): Likewise.
8982 * gdbtypes.c (recursive_dump_type): Likewise.
8983 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8984 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8985 instead of %d in format strings.
8986 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8987 to std::min to ULONGEST.
8988 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8989 instead of %d in format strings.
8990 * tracepoint.c (info_scope_command): Likewise.
8991 * typeprint.c (print_offset_data::update)
8992 (print_offset_data::finish): Likewise.
8993 * xtensa-tdep.c (xtensa_store_return_value)
8994 (xtensa_push_dummy_call): Likewise.
8995
e432ccf1
JT
89962019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8997
8998 * windows-nat.c (display_selector): Fixed format specifications
8999 for 64-bit Cygwin.
9000
65d2b333
PW
90012019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9002
9003 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9004
f489207e
SL
90052019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9006
9007 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9008 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9009 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9010 (nios2_linux_init_abi): Install it.
9011
bffa1015
AH
90122019-03-28 Alan Hayward <alan.hayward@arm.com>
9013
9014 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9015
fc96163a
AH
90162019-03-28 Alan Hayward <alan.hayward@arm.com>
9017
9018 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9019
20dc7e9b
PW
90202019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9021 Tom Tromey <tromey@adacore.com>
9022
9023 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9024
7f5331a8
JB
90252019-03-26 Joel Brobecker <brobecker@adacore.com>
9026
9027 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9028 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9029 method to compute the bounds of range types. Also print "[evaluated]"
9030 if the bounds' values come from a dynamic evaluation.
9031
18c77628
AB
90322019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9033
9034 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9035 whitespace when pretty printing is on.
9036
53c973f2
AH
90372019-03-26 Alan Hayward <alan.hayward@arm.com>
9038
e79be6e5 9039 * ppc-linux-nat.c: Add include.
53c973f2 9040
d851aa71
AH
90412019-03-26 Alan Hayward <alan.hayward@arm.com>
9042
e79be6e5 9043 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 9044
2fe7bab7
AH
90452019-03-26 Alan Hayward <alan.hayward@arm.com>
9046
e79be6e5 9047 * arm-linux-nat.c: Add include.
2fe7bab7 9048
068ef30e
SM
90492019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9050
9051 * source-cache.c (source_cache::get_source_lines): Re-read
9052 fullname after calling open_source_file.
9053
81a24d04
JB
90542019-03-25 John Baldwin <jhb@FreeBSD.org>
9055
9056 * NEWS: Mention TLS support for FreeBSD.
9057
79e7ae11
TT
90582019-03-25 Tom Tromey <tromey@adacore.com>
9059
9060 * minsyms.c (BUNCH_SIZE): Update comment.
9061 (~minimal_symbol_reader): Remove old comment.
9062 (compact_minimal_symbols): Update comment.
9063 (minimal_symbol_reader::install): Remove old comment. Update
9064 other comments.
9065
d45963c2
AH
90662019-03-25 Alan Hayward <alan.hayward@arm.com>
9067
9068 * s390-linux-nat.c: Add include.
9069
0f83012e
AH
90702019-03-25 Alan Hayward <alan.hayward@arm.com>
9071
9072 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9073 Call linux_get_hwcap.
9074 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9075 Likewise.
9076 (aarch64_linux_get_hwcap): Remove function.
9077 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9078 declaration.
9079 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9080 linux_get_hwcap.
9081 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9082 * linux-tdep.c (linux_get_hwcap): Add function.
9083 (linux_get_hwcap2): Likewise.
9084 * linux-tdep.h (linux_get_hwcap): Add declaration.
9085 (linux_get_hwcap2): Likewise.
9086 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9087 (ppc_linux_get_hwcap2): Likewise.
9088 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9089 linux_get_hwcap.
9090 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9091 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9092 (ppc_linux_nat_target::read_description): Likewise.
9093 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9094 * s390-linux-nat.c: Likewise.
9095 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9096
6640a367
TT
90972019-03-24 Tom Tromey <tom@tromey.com>
9098
9099 * ada-lang.c (standard_lookup): Simplify initialization.
9100 (ada_lookup_symbol_nonlocal): Simplify return.
9101 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9102 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9103 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9104 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9105 initialization.
9106 * solib.c (solib_global_lookup): Simplify.
9107 * symtab.c (null_block_symbol): Remove.
9108 (symbol_cache_lookup): Simplify returns.
9109 (lookup_language_this): Simplify returns.
9110 (lookup_symbol_aux): Simplify return.
9111 (lookup_local_symbol): Simplify returns.
9112 (lookup_global_symbol_from_objfile): Simplify return.
9113 (lookup_symbol_in_objfile_symtabs)
9114 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9115 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9116 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9117 * cp-namespace.c (cp_lookup_bare_symbol)
9118 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9119 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9120 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9121 (cp_lookup_symbol_via_imports): Simplify initialization.
9122 (find_symbol_in_baseclass): Likewise.
9123 * symtab.h (null_block_symbol): Remove.
9124 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9125 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9126 (d_lookup_symbol_module): Likewise.
9127 (find_symbol_in_baseclass): Simplify initialization.
9128
a930ebcd
TT
91292019-03-24 Tom Tromey <tom@tromey.com>
9130
9131 * expression.h: Don't include symtab.h.
9132 (struct block): Forward declare.
9133
582942f4
TT
91342019-03-24 Tom Tromey <tom@tromey.com>
9135
9136 * c-exp.y (typebase): Remove casts.
9137 * gdbtypes.c (lookup_unsigned_typename, )
9138 (lookup_signed_typename): Remove cast.
9139 * eval.c (parse_to_comma_and_eval): Remove cast.
9140 * parse.c (write_dollar_variable): Remove cast.
9141 * block.h (struct block) <superblock>: Now const.
9142 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9143 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9144 (map_block): Make "block" const.
9145 * symfile.h (struct quick_symbol_functions)
9146 <map_matching_symbols>: Constify block argument to "callback".
9147 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9148 const.
9149 (find_pc_sect_compunit_symtab): Make "b" const.
9150 (find_symbol_at_address): Likewise.
9151 (search_symbols): Likewise.
9152 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9153 (dw2_debug_names_lookup_symbol): Likewise.
9154 (dw2_map_matching_symbols): Update.
9155 * p-valprint.c (pascal_val_print): Remove "block".
9156 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9157 (aux_add_nonlocal_symbols): Make "block" const.
9158 (resolve_subexp): Remove cast.
9159 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9160 const.
9161 (iterate_over_file_blocks): Likewise.
9162 * f-exp.y (%union) <bval>: Remove.
9163 * coffread.c (patch_opaque_types): Make "b" const.
9164 * spu-tdep.c (spu_catch_start): Make "block" const.
9165 * c-valprint.c (print_unpacked_pointer): Remove "block".
9166 * symmisc.c (dump_symtab_1): Make "b" const.
9167 (block_depth): Make "block" const.
9168 * d-exp.y (%union) <bval>: Remove.
9169 * cp-support.h (cp_lookup_rtti_type): Update.
9170 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9171 * psymtab.c (psym_lookup_symbol): Make "block" const.
9172 (maintenance_check_psymtabs): Make "b" const.
9173 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9174 (enumerate_locals, enumerate_args): Update.
9175 * python/py-symtab.c (stpy_global_block): Make "block" const.
9176 (stpy_static_block): Likewise.
9177 * inline-frame.c (block_starting_point_at): Make "new_block"
9178 const.
9179 * block.c (find_block_in_blockvector): Make return type const.
9180 (blockvector_for_pc_sect): Make "b" const.
9181 (find_block_in_blockvector): Make "b" const.
9182
7ad417dd
TT
91832019-03-23 Tom Tromey <tom@tromey.com>
9184
9185 * varobj.c (varobj_create): Update.
9186 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9187 * printcmd.c (display_command, do_one_display): Don't reset
9188 innermost_block.
9189 * parser-defs.h (enum innermost_block_tracker_type): Move to
9190 expression.h.
9191 (innermost_block): Update comment.
9192 * parse.c (parse_exp_1): Add tracker_types parameter.
9193 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9194 tracker_types parameter. Reset innermost_block.
9195 (parse_exp_in_context): Remove.
9196 (parse_expression_for_completion): Update.
9197 * objfiles.c (~objfile): Don't reset expression_context_block or
9198 innermost_block.
9199 * expression.h (enum innermost_block_tracker_type): Move from
9200 parser-defs.h.
9201 (parse_exp_1): Add tracker_types parameter.
9202 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9203 reset innermost_block.
9204
b366c208
TT
92052019-03-23 Tom Tromey <tom@tromey.com>
9206
9207 * objfiles.h: Include bcache.h.
9208
9bb9b2f9
TT
92092019-03-23 Tom Tromey <tom@tromey.com>
9210
9211 * linespec.c (get_current_search_block): Use
9212 scoped_restore_current_language.
9213 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9214
59c28372
AH
92152019-03-22 Alan Hayward <alan.hayward@arm.com>
9216 Jiong Wang <jiong.wang@arm.com>
9217
9218 * aarch64-linux-tdep.c
9219 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9220 section.
9221 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9222
17e116a7
AH
92232019-03-22 Alan Hayward <alan.hayward@arm.com>
9224 Jiong Wang <jiong.wang@arm.com>
9225
9226 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9227 instructions.
9228 (aarch64_analyze_prologue_test): Add PACIASP test.
9229 (aarch64_prologue_prev_register): Unmask PC value.
9230
11e1b75f
AH
92312019-03-22 Alan Hayward <alan.hayward@arm.com>
9232 Jiong Wang <jiong.wang@arm.com>
9233
9234 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9235 (aarch64_dwarf2_prev_register): Unmask PC value.
9236 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9237 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9238 DW_CFA_AARCH64_negate_ra_state.
9239 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9240
34dcc7cf
AH
92412019-03-22 Alan Hayward <alan.hayward@arm.com>
9242 Jiong Wang <jiong.wang@arm.com>
9243
9244 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9245 registers.
9246 (aarch64_pseudo_register_name): Likewise.
9247 (aarch64_pseudo_register_type): Likewise.
9248 (aarch64_pseudo_register_reggroup_p): Likewise.
9249 (aarch64_gdbarch_init): Add pauth registers.
9250 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9251 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9252 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9253 (struct gdbarch_tdep): Add regnum for ra_state.
9254
1ef53e6b
AH
92552019-03-22 Alan Hayward <alan.hayward@arm.com>
9256 Jiong Wang <jiong.wang@arm.com>
9257
9258 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9259
76bed0fd
AH
92602019-03-22 Alan Hayward <alan.hayward@arm.com>
9261 Jiong Wang <jiong.wang@arm.com>
9262
9263 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9264 function.
9265 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9266 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9267 (aarch64_gdbarch_init): Add puth registers.
9268 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9269 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9270 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9271
ee4fbcfa
AH
92722019-03-22 Alan Hayward <alan.hayward@arm.com>
9273 Jiong Wang <jiong.wang@arm.com>
9274
9275 * aarch64-linux-nat.c
9276 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9277 * aarch64-linux-tdep.c
9278 (aarch64_linux_core_read_description): Likewise.
9279 (aarch64_linux_get_hwcap): New function.
9280 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9281 (aarch64_linux_get_hwcap): New declaration.
9282
6dc0ebde
AH
92832019-03-22 Alan Hayward <alan.hayward@arm.com>
9284 Jiong Wang <jiong.wang@arm.com>
9285
9286 * aarch64-linux-nat.c
9287 (aarch64_linux_nat_target::read_description): Add pauth param.
9288 * aarch64-linux-tdep.c
9289 (aarch64_linux_core_read_description): Likewise.
9290 * aarch64-tdep.c (struct target_desc): Add in pauth.
9291 (aarch64_read_description): Add pauth param.
9292 (aarch64_gdbarch_init): Likewise.
9293 * aarch64-tdep.h (aarch64_read_description): Likewise.
9294 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9295 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9296 * features/Makefile: Add new files.
9297 * features/aarch64-pauth.c: New file.
9298 * features/aarch64-pauth.xml: New file.
9299
595915c1
TT
93002019-03-20 Tom Tromey <tromey@adacore.com>
9301
9302 * infrun.c (handle_inferior_event): Rename from
9303 handle_inferior_event_1. Create a scoped_value_mark.
9304 (handle_inferior_event): Remove.
9305
4c7d57e7
TT
93062019-03-19 Tom Tromey <tromey@adacore.com>
9307
9308 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9309 * infrun.h (print_stop_event): Add "displays" parameter.
9310 * infrun.c (print_stop_event): Add "displays" parameter.
9311
cb246234
PA
93122019-03-19 Pedro Alves <palves@redhat.com>
9313
9314 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9315 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9316 to -1. Fix TABs vs spaces.
9317 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9318 * tui/tui-out.h (tui_ui_out) Add intro comments.
9319 <m_line, m_start_of_line>: In-class initialize, and add describing
9320 comment.
9321
3a0e45b2
AH
93222019-03-18 Alan Hayward <alan.hayward@arm.com>
9323
9324 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9325 variable names.
9326 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9327
5371b850
PA
93282019-03-18 Pedro Alves <palves@redhat.com>
9329 Eli Zaretskii <eliz@gnu.org>
9330
9331 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9332 m_line and m_start_of_line.
9333
b17c4cd0
EZ
93342019-03-18 Eli Zaretskii <eliz@gnu.org>
9335
9336 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9337 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9338 it returns a newline. This fixes a regression in TU mode, whereby
9339 the next line is output on the same screen line as the user input.
9340
4bd56d18
TT
93412019-03-18 Tom Tromey <tromey@adacore.com>
9342
9343 * minsyms.c (minimal_symbol_reader::install): Remove call to
9344 obstack_blank.
9345
55c10aca
PA
93462019-03-18 Pedro Alves <palves@redhat.com>
9347
9348 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9349 New globals.
9350 (apply_style): New, factored out from ...
9351 (apply_ansi_escape): ... this. Handle reverse video mode.
9352 (tui_set_reverse_mode): New function.
9353 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9354 * tui/tui-winsource.c (tui_show_source_line): Use
9355 tui_set_reverse_mode instead of setting A_STANDOUT.
9356 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9357 New setter methods.
9358
647bb750
HD
93592019-03-18 Hannes Domani <ssbssa@yahoo.de>
9360
9361 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9362 Handle tabs.
9363
bff8c71f
TT
93642019-03-18 Tom Tromey <tromey@adacore.com>
9365
9366 * ada-lang.c (empty_array): Add "high" parameter.
9367 (ada_evaluate_subexp): Update.
9368
58785d98
ST
93692019-03-17 Sergei Trofimovich <siarheit@google.com>
9370
9371 * unittests/string_view-selftests.c: Define
9372 _initialize_string_view_selftests unconditionally.
9373
d4cbef22
ВМ
93742019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9375
9376 PR gdb/24350
9377 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9378
fce4c071
ВМ
93792019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9380
9381 PR gdb/24351
9382 * windows-nat.c (display_selector): Fix format specifiers.
9383
f7f0a123
EZ
93842019-03-17 Eli Zaretskii <eliz@gnu.org>
9385
9386 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9387 tui_refill_source_window instead of tui_refresh_win, to update the
9388 current execution line. This fixes redisplay of the current line
9389 when stepping through the code with "next" or "step".
9390
ab42892f
EZ
93912019-03-16 Eli Zaretskii <eliz@gnu.org>
9392
9393 * source-cache.c (source_cache::get_source_lines): Call
9394 find_source_lines to initialize s->nlines. This fixes vertical
9395 scrolling of TUI source window when the DOWN arrow is pressed.
9396
8d8c087f
PW
93972019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9398
9399 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9400 linux-thread-db.c (_initialize_thread_db): Likewise.
9401
798e1c30
EZ
94022019-03-16 Eli Zaretskii <eliz@gnu.org>
9403
9404 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9405 wclrtoeol in tui_show_source_line". This reverts changes made in
9406 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9407
eefba3da
TT
94082019-03-15 Tom Tromey <tom@tromey.com>
9409
9410 * symtab.h (struct minimal_symbol): Derive from
9411 general_symbol_info.
9412 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9413 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9414 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9415 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9416 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9417 (MSYMBOL_SEARCH_NAME): Update.
9418 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9419 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9420 * minsyms.c (minimal_symbol_reader::record_full): Update.
9421
0de2420c
TT
94222019-03-15 Tom Tromey <tom@tromey.com>
9423
9424 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9425
042d75e4
TT
94262019-03-15 Tom Tromey <tom@tromey.com>
9427
9428 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9429 unique_xmalloc_ptr.
9430 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9431 Update.
9432 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9433 (build_minimal_symbol_hash_tables)
9434 (minimal_symbol_reader::install): Update.
9435
db92718b
TT
94362019-03-15 Tom Tromey <tom@tromey.com>
9437
9438 * symtab.c (create_demangled_names_hash): Update.
9439 (symbol_set_names): Update.
9440 * objfiles.h (struct objfile_per_bfd_storage)
9441 <demangled_names_hash>: Now an htab_up.
9442 * objfiles.c (objfile_per_bfd_storage): Simplify.
9443
d6797f46
TT
94442019-03-15 Tom Tromey <tom@tromey.com>
9445
9446 * objfiles.h (struct objfile_per_bfd_storage): Declare
9447 destructor.
9448 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9449 New.
9450 (get_objfile_bfd_data): Use new. Don't initialize
9451 language_of_main.
9452 (free_objfile_per_bfd_storage): Remove.
9453 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9454
741d7538
TT
94552019-03-15 Tom Tromey <tom@tromey.com>
9456
9457 * symfile.c (reread_symbols): Update.
9458 * objfiles.c (objfile::objfile): Update.
9459 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9460 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9461 comment.
9462 (minimal_symbol_reader::install): Update.
9463 (terminate_minimal_symbol_table): Remove.
9464 * jit.c (jit_object_close_impl): Update.
9465
788c80d1
TT
94662019-03-15 Tom Tromey <tom@tromey.com>
9467
9468 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9469 initializations.
9470
1b7a07cb
TT
94712019-03-15 Tom Tromey <tom@tromey.com>
9472
9473 * objfiles.h (struct objfile_per_bfd_storage)
9474 <demangled_hash_languages>: Now a bitset.
9475 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9476 (lookup_minimal_symbol): Update.
9477
3db066bc
TT
94782019-03-15 Tom Tromey <tom@tromey.com>
9479
9480 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9481 Don't return the symbol.
9482 * coffread.c (record_minimal_symbol): Use record_full.
9483
3fff2c37
EZ
94842019-03-14 Eli Zaretskii <eliz@gnu.org>
9485
9486 The MS-Windows port of ncurses fails to switch to a color pair if
9487 one or both of the colors are the implicit default colors. This
9488 change records the default colors when TUI is initialized, and
9489 then specifies them explicitly when a color pair uses the default
9490 colors. This allows color styling in TUI mode on MS-Windows.
9491
9492 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9493 ncurses_norm_attr.
9494 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9495 colors in ncurses_norm_attr.
9496 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9497 "none", replace it with the default color recorded in
9498 ncurses_norm_attr.
9499
3b336828
TT
95002019-03-14 Tom Tromey <tromey@adacore.com>
9501
9502 * source-cache.h (class source_cache) <get_source_lines>: Return
9503 std::string.
9504 * source-cache.c (source_cache::extract_lines): Handle case where
9505 first_pos==npos. Return std::string.
9506 (source_cache::get_source_lines): Update.
9507
d085f989
TT
95082019-03-14 Tom Tromey <tromey@adacore.com>
9509
9510 * NEWS: Add item for "style sources" commands.
9511 * source-cache.c (source_cache::get_source_lines): Check
9512 source_styling.
9513 * cli/cli-style.c (source_styling): New global.
9514 (_initialize_cli_style): Add "style sources" commands.
9515 (show_style_sources): New function.
9516 * cli/cli-style.h (source_styling): Declare.
9517
6f11e682
TT
95182019-03-14 Pedro Alves <palves@redhat.com>
9519 Tom Tromey <tromey@adacore.com>
9520
9521 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9522 * tui/tui-winsource.c (tui_refill_source_window): New function,
9523 from...
9524 (tui_horizontal_source_scroll): ... here. Move some logic.
9525 * cli/cli-style.c (set_style_enabled): Notify new observable.
9526 * tui/tui-hooks.c (tui_redisplay_source): New function.
9527 (tui_attach_detach_observers): Attach or detach
9528 tui_redisplay_source.
9529 * observable.h (source_styling_changed): New observable.
9530 * observable.c: Define source_styling_changed observable.
9531
a068643d
TT
95322019-03-13 Tom Tromey <tromey@adacore.com>
9533
9534 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9535 (i386_gnu_nat_target::store_registers): Update.
9536 * target-debug.h (target_debug_print_std_string): New macro.
9537 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9538 * windows-tdep.c (display_one_tib): Update.
9539 * tui/tui-stack.c (tui_make_status_line): Update.
9540 * top.c (print_inferior_quit_action): Update.
9541 * thread.c (thr_try_catch_cmd): Update.
9542 (add_thread_with_info): Update.
9543 (thread_target_id_str): Update.
9544 (thr_try_catch_cmd): Update.
9545 (thread_command): Update.
9546 (thread_find_command): Update.
9547 * record-btrace.c (record_btrace_target::info_record)
9548 (record_btrace_resume_thread, record_btrace_target::resume)
9549 (record_btrace_cancel_resume, record_btrace_step_thread)
9550 (record_btrace_target::wait, record_btrace_target::wait)
9551 (record_btrace_target::wait, record_btrace_target::stop): Update.
9552 * progspace.c (print_program_space): Update.
9553 * process-stratum-target.c
9554 (process_stratum_target::thread_address_space): Update.
9555 * linux-fork.c (linux_fork_mourn_inferior)
9556 (detach_checkpoint_command, info_checkpoints_command)
9557 (linux_fork_context): Update.
9558 (linux_fork_detach): Update.
9559 (class scoped_switch_fork_info): Update.
9560 (delete_checkpoint_command): Update.
9561 * infrun.c (follow_fork_inferior): Update.
9562 (follow_fork_inferior): Update.
9563 (proceed_after_vfork_done): Update.
9564 (handle_vfork_child_exec_or_exit): Update.
9565 (follow_exec): Update.
9566 (displaced_step_prepare_throw): Update.
9567 (displaced_step_restore): Update.
9568 (start_step_over): Update.
9569 (resume_1): Update.
9570 (clear_proceed_status_thread): Update.
9571 (proceed): Update.
9572 (print_target_wait_results): Update.
9573 (do_target_wait): Update.
9574 (context_switch): Update.
9575 (stop_all_threads): Update.
9576 (restart_threads): Update.
9577 (finish_step_over): Update.
9578 (handle_signal_stop): Update.
9579 (switch_back_to_stepped_thread): Update.
9580 (keep_going_pass_signal): Update.
9581 (print_exited_reason): Update.
9582 (normal_stop): Update.
9583 * inferior.c (inferior_pid_to_str): Change return type.
9584 (print_selected_inferior): Update.
9585 (add_inferior): Update.
9586 (detach_inferior): Update.
9587 * dummy-frame.c (fprint_dummy_frames): Update.
9588 * dcache.c (dcache_info_1): Update.
9589 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9590 (btrace_fetch, btrace_clear): Update.
9591 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9592 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9593 type.
9594 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9595 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9596 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9597 * gdbarch.c, gdbarch.h: Rebuild.
9598 * gdbarch.sh (core_pid_to_str): Change return type.
9599 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9600 return type.
9601 (windows_nat_target::pid_to_str): Change return type.
9602 (windows_delete_thread): Update.
9603 (windows_nat_target::attach): Update.
9604 (windows_nat_target::files_info): Update.
9605 * target-delegates.c: Rebuild.
9606 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9607 return type.
9608 (sol_thread_target::pid_to_str): Change return type.
9609 * remote.c (class remote_target) <pid_to_str>: Change return
9610 type.
9611 (remote_target::pid_to_str): Change return type.
9612 (extended_remote_target::attach, remote_target::remote_stop_ns)
9613 (remote_target::remote_notif_remove_queued_reply)
9614 (remote_target::push_stop_reply, remote_target::disable_btrace):
9615 Update.
9616 (extended_remote_target::attach): Update.
9617 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9618 type.
9619 (gdbsim_target::pid_to_str): Change return type.
9620 * ravenscar-thread.c (struct ravenscar_thread_target)
9621 <pid_to_str>: Change return type.
9622 (ravenscar_thread_target::pid_to_str): Change return type.
9623 * procfs.c (class procfs_target) <pid_to_str>: Change return
9624 type.
9625 (procfs_target::pid_to_str): Change return type.
9626 (procfs_target::attach): Update.
9627 (procfs_target::detach): Update.
9628 (procfs_target::fetch_registers): Update.
9629 (procfs_target::store_registers): Update.
9630 (procfs_target::wait): Update.
9631 (procfs_target::files_info): Update.
9632 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9633 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9634 return type.
9635 (nto_procfs_target::pid_to_str): Change return type.
9636 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9637 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9638 return type.
9639 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9640 (exit_lwp): Update.
9641 (attach_proc_task_lwp_callback, get_detach_signal)
9642 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9643 (linux_nat_target::resume, wait_lwp, stop_callback)
9644 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9645 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9646 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9647 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9648 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9649 type.
9650 (inf_ptrace_target::attach): Update.
9651 (inf_ptrace_target::files_info): Update.
9652 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9653 type.
9654 (go32_nat_target::pid_to_str): Change return type.
9655 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9656 (gnu_nat_target::wait): Update.
9657 (gnu_nat_target::wait): Update.
9658 (gnu_nat_target::resume): Update.
9659 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9660 (fbsd_nat_target::wait): Update.
9661 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9662 type.
9663 (darwin_nat_target::attach): Update.
9664 * corelow.c (class core_target) <pid_to_str>: Change return type.
9665 (core_target::pid_to_str): Change return type.
9666 * target.c (normal_pid_to_str): Change return type.
9667 (default_pid_to_str): Likewise.
9668 (target_pid_to_str): Change return type.
9669 (target_translate_tls_address): Update.
9670 (target_announce_detach): Update.
9671 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9672 return type.
9673 (bsd_uthread_target::pid_to_str): Change return type.
9674 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9675 type.
9676 (bsd_kvm_target::pid_to_str): Change return type.
9677 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9678 return type.
9679 (aix_thread_target::pid_to_str): Change return type.
9680 * target.h (struct target_ops) <pid_to_str>: Change return type.
9681 (target_pid_to_str, normal_pid_to_str): Likewise.
9682 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9683 type.
9684 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9685 type.
9686 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9687 return type.
9688 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9689 type.
9690 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9691 type.
9692 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9693 return type.
9694
b4be1b06
SM
96952019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9696
9697 * NEWS: Mention that the new default MI version is 3. Mention
9698 changes to the output of commands and events that deal with
9699 multi-location breakpoints.
9700 * breakpoint.c: Include "mi/mi-out.h".
9701 (print_one_breakpoint): Change output syntax if using MI version
9702 >= 3.
9703 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9704 New.
9705 (mi_multi_location_breakpoint_output_fixed): New.
9706 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9707 (mi_cmd_fix_multi_location_breakpoint_output): New.
9708 (mi_multi_location_breakpoint_output_fixed): New.
9709 * mi/mi-cmds.c (mi_cmds): Register command
9710 -fix-multi-location-breakpoint-output.
9711 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9712 interpreter "mi".
9713
8e5e5494
SM
97142019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9715
9716 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9717 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9718 instantiate mi_ui_out based on interpreter name.
9719 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9720 * mi/mi-main.c (mi_load_progress): Likewise.
9721
197df35e
JB
97222019-03-12 John Baldwin <jhb@FreeBSD.org>
9723
9724 * NEWS: Combine separate "New targets" sections for 8.3.
9725
8399425f
JB
97262019-03-12 John Baldwin <jhb@FreeBSD.org>
9727
9728 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9729 (ppcfbsd_init_abi): Install gdbarch
9730 "fetch_tls_load_module_address" and "get_thread_local_address"
9731 methods.
9732
b0f87ed0
JB
97332019-03-12 John Baldwin <jhb@FreeBSD.org>
9734
9735 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9736 (riscv_fbsd_init_abi): Install gdbarch
9737 "fetch_tls_load_module_address" and "get_thread_local_address"
9738 methods.
9739
ce25aa57
JB
97402019-03-12 John Baldwin <jhb@FreeBSD.org>
9741
9742 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9743 (i386fbsd_init_abi): Install gdbarch
9744 "fetch_tls_load_module_address" and "get_thread_local_address"
9745 methods.
9746
f5424cfa
JB
97472019-03-12 John Baldwin <jhb@FreeBSD.org>
9748
9749 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9750 (amd64fbsd_init_abi): Install gdbarch
9751 "fetch_tls_load_module_address" and "get_thread_local_address"
9752 methods.
9753
945f3901
JB
97542019-03-12 John Baldwin <jhb@FreeBSD.org>
9755
9756 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9757 (struct fbsd_pspace_data): New type.
9758 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9759 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9760 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9761 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9762 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9763
ef0bd204
JB
97642019-03-12 John Baldwin <jhb@FreeBSD.org>
9765
9766 * gdbtypes.c (lookup_struct_elt): New function.
9767 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9768 * gdbtypes.h (struct struct_elt): New type.
9769 (lookup_struct_elt): New prototype.
9770
36c53a02
JB
97712019-03-12 John Baldwin <jhb@FreeBSD.org>
9772
9773 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9774 remove disabled code block.
9775
6e056c81
JB
97762019-03-12 John Baldwin <jhb@FreeBSD.org>
9777
9778 * gdbarch.sh (get_thread_local_address): New method.
9779 * gdbarch.h, gdbarch.c: Regenerate.
9780 * target.c (target_translate_tls_address): Use
9781 gdbarch_get_thread_local_address if present instead of
9782 target::get_thread_local_address.
9783
cd250a18
JB
97842019-03-12 John Baldwin <jhb@FreeBSD.org>
9785
9786 * target.h (target::get_thread_local_address): Update comment.
9787
df22c1e5
JB
97882019-03-12 John Baldwin <jhb@FreeBSD.org>
9789
9790 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9791 objfile->separate_debug_objfile_backlink if not NULL.
9792
dd6876c9
JB
97932019-03-12 John Baldwin <jhb@FreeBSD.org>
9794
9795 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9796 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9797 (amd64bsd_store_inferior_registers): Likewise.
9798 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9799 Enable segment base registers.
9800 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9801 PT_GETFSBASE and PT_GETGSBASE.
9802 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9803 PT_SETGSBASE.
9804 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9805 segment base registers.
9806 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9807
1163a4b7
JB
98082019-03-12 John Baldwin <jhb@FreeBSD.org>
9809
9810 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9811 Update calls to i386_target_description to add 'segments'
9812 parameter.
9813 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9814 add segment base registers.
9815 * arch/i386.c (i386_create_target_description): Add 'segments'
9816 parameter to enable segment base registers.
9817 * arch/i386.h (i386_create_target_description): Likewise.
9818 * features/i386/32bit-segments.xml: New file.
9819 * features/i386/32bit-segments.c: Generate.
9820 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9821 call to i386_target_description to add 'segments' parameter.
9822 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9823 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9824 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9825 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9826 if feature is present.
9827 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9828 Add 'segments' parameter to call to i386_target_description.
9829 (i386_target_description): Add 'segments' parameter to enable
9830 segment base registers.
9831 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9832 to call to i386_target_description.
9833 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9834 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9835 Define I386_NUM_REGS.
9836 (i386_target_description): Add 'segments' parameter to enable
9837 segment base registers.
9838
3a350822
EZ
98392019-03-12 Eli Zaretskii <eliz@gnu.org>
9840
9841 PR/24325
9842 * source-cache.c: #undef open and close, to avoid unresolved
9843 externals during linking.
9844
ffdd69cf
TT
98452019-03-12 Tom Tromey <tromey@adacore.com>
9846
9847 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9848 const. Add initializers.
9849 (_initialize_remote): Don't initialize ptid globals.
9850
ec148c57
PA
98512019-03-12 Pedro Alves <palves@redhat.com>
9852
9853 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9854
32764270
PA
98552019-03-12 Pedro Alves <palves@redhat.com>
9856
9857 * cp-name-parser.y (main): Remove unused 'len' variable.
9858
17547186
TT
98592019-03-12 Tom Tromey <tromey@adacore.com>
9860
9861 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9862 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9863
d3a70e03
TT
98642019-03-12 Tom Tromey <tromey@adacore.com>
9865
9866 * linux-nat.c (iterate_over_lwps): Update.
9867 (stop_callback): Remove parameter.
9868 (stop_wait_callback, detach_callback, resume_set_callback)
9869 (select_singlestep_lwp_callback, set_ignore_sigint)
9870 (status_callback, resumed_callback, resume_clear_callback)
9871 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9872 data parameter.
9873 (linux_nat_target::detach, linux_nat_target::resume)
9874 (linux_stop_and_wait_all_lwps, select_event_lwp)
9875 (linux_nat_filter_event, linux_nat_wait_1)
9876 (linux_nat_target::kill, linux_nat_target::stop)
9877 (linux_nat_target::stop): Update.
9878 (linux_nat_resume_callback): Change type.
9879 (resume_stopped_resumed_lwps, count_events_callback)
9880 (select_event_lwp_callback): Likewise.
9881 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9882 * arm-linux-nat.c (struct update_registers_data): Remove.
9883 (update_registers_callback): Change type.
9884 (arm_linux_insert_hw_breakpoint1): Update.
9885 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9886 parameter.
9887 (x86_linux_dr_set_addr): Update.
9888 (x86_linux_dr_set_control): Update.
9889 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9890 (iterate_over_lwps): Use gdb::function_view.
9891 * nat/aarch64-linux-hw-point.c (struct
9892 aarch64_dr_update_callback_param): Remove.
9893 (debug_reg_change_callback): Change type.
9894 (aarch64_notify_debug_reg_change): Update.
9895 * s390-linux-nat.c (s390_refresh_per_info): Update.
9896
82cb27ff
TT
98972019-03-11 Tom Tromey <tromey@adacore.com>
9898
9899 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9900 redundant assignment to "this_cu".
9901
568c0683
SM
99022019-03-08 Simon Marchi <simon.marchi@efficios.com>
9903
9904 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9905
f09ce22d
SM
99062019-03-08 Simon Marchi <simon.marchi@efficios.com>
9907
9908 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9909 from...
9910 (rank_one_type): ... this.
9911
595f96a9
SM
99122019-03-08 Simon Marchi <simon.marchi@efficios.com>
9913
9914 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9915 from...
9916 (rank_one_type): ... this.
9917
2598a94b
SM
99182019-03-08 Simon Marchi <simon.marchi@efficios.com>
9919
9920 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9921 from...
9922 (rank_one_type): ... this.
9923
7f17b20d
SM
99242019-03-08 Simon Marchi <simon.marchi@efficios.com>
9925
9926 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9927 from...
9928 (rank_one_type): ... this.
9929
2c509035
SM
99302019-03-08 Simon Marchi <simon.marchi@efficios.com>
9931
9932 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9933 from...
9934 (rank_one_type): ... this.
9935
0dd322dc
SM
99362019-03-08 Simon Marchi <simon.marchi@efficios.com>
9937
9938 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9939 from...
9940 (rank_one_type): ... this.
9941
41ea4728
SM
99422019-03-08 Simon Marchi <simon.marchi@efficios.com>
9943
9944 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9945 from...
9946 (rank_one_type): ... this.
9947
793cd1d2
SM
99482019-03-08 Simon Marchi <simon.marchi@efficios.com>
9949
9950 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9951 from...
9952 (rank_one_type): ... this.
9953
34910087
SM
99542019-03-08 Simon Marchi <simon.marchi@efficios.com>
9955
9956 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9957 from...
9958 (rank_one_type): ... this.
9959
f1f832d6
SM
99602019-03-08 Simon Marchi <simon.marchi@efficios.com>
9961
9962 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9963 from...
9964 (rank_one_type): ... this.
9965
b9f4512f
SM
99662019-03-08 Simon Marchi <simon.marchi@efficios.com>
9967
9968 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9969 from...
9970 (rank_one_type): ... this.
9971
9293fc63
SM
99722019-03-08 Simon Marchi <simon.marchi@efficios.com>
9973
9974 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9975 from...
9976 (rank_one_type): ... this.
9977
e3abbe7e
PW
99782019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9979
9980 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9981 inferior-events' shows the example events.
9982
e4adb939
EZ
99832019-03-08 Eli Zaretskii <eliz@gnu.org>
9984
9985 Support styling on native MS-Windows console
9986
9987 PR/24315
9988 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9989 on MS-Windows if $TERM is not defined.
9990
9991 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9992
9993 * posix-hdep.c (gdb_console_fputs):
9994 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9995 functions.
9996 * ui-file.h (gdb_console_fputs): Add prototype.
9997
9998 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9999 back to fputs only if the former returns zero.
10000
25629dfd
TT
100012019-03-07 Tom Tromey <tom@tromey.com>
10002
10003 * symmisc.c (print_symbol_bcache_statistics): Update.
10004 (print_objfile_statistics): Update.
10005 * symfile.c (allocate_symtab): Update.
10006 * stabsread.c: Don't include bcache.h.
10007 * psymtab.h (struct psymbol_bcache): Don't declare.
10008 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10009 (psymbol_bcache_init, psymbol_bcache_free)
10010 (psymbol_bcache_get_bcache): Don't declare.
10011 * psymtab.c (struct psymbol_bcache): Remove.
10012 (psymtab_storage::psymtab_storage): Update.
10013 (psymtab_storage::~psymtab_storage): Update.
10014 (psymbol_bcache_init, psymbol_bcache_free)
10015 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10016 (add_psymbol_to_bcache): Update.
10017 (allocate_psymtab): Update.
10018 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10019 macro_cache>: No longer pointers.
10020 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10021 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10022 * macrotab.c (macro_bcache): Update.
10023 * macroexp.c: Don't include bcache.h.
10024 * gdbtypes.c (check_types_worklist): Update.
10025 (types_deeply_equal): Remove TRY/CATCH. Update.
10026 * elfread.c (elf_symtab_read): Update.
10027 * dwarf2read.c: Don't include bcache.h.
10028 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10029 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10030 (print_bcache_statistics, bcache_memory_used): Don't declare.
10031 (struct bcache): Move from bcache.c. Add constructor, destructor,
10032 methods. Rename all data members.
10033 * bcache.c (struct bcache): Move to bcache.h.
10034 (bcache::expand_hash_table): Rename from expand_hash_table.
10035 (bcache): Remove.
10036 (bcache::insert): Rename from bcache_full.
10037 (bcache::compare): Rename from bcache_compare.
10038 (bcache_xmalloc): Remove.
10039 (bcache::~bcache): Rename from bcache_xfree.
10040 (bcache::print_statistics): Rename from print_bcache_statistics.
10041 (bcache::memory_used): Rename from bcache_memory_used.
10042
fe726667
PA
100432019-03-07 Pedro Alves <palves@redhat.com>
10044
10045 * infrun.c (normal_stop): Also check for
10046 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10047
7584bb30
AB
100482019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10049
10050 * f-lang.c (value_from_host_double): Moved to...
10051 * value.c (value_from_host_double): ...here.
10052 * value.h (value_from_host_double): Declare.
10053 * guile/scm-math.c (vlscm_convert_typed_number): Use
10054 value_from_host_double.
10055 (vlscm_convert_number): Likewise.
10056 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10057 * python/py-value.c (convert_value_from_python): Likewise.
10058
a7b1986e
TT
100592019-03-06 Tom Tromey <tom@tromey.com>
10060
10061 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10062
0ccf4211
TT
100632019-03-06 Tom Tromey <tom@tromey.com>
10064
10065 * utils.h (free_current_contents): Don't declare.
10066 * utils.c (free_current_contents): Remove.
10067
fe7b42e5
TT
100682019-03-06 Tom Tromey <tom@tromey.com>
10069
10070 * top.c (quit_force): Update.
10071 * main.c (captured_command_loop): Update.
10072 * common/new-op.c (operator new): Update.
10073 * common/common-exceptions.c (struct catcher)
10074 <save_cleanup_chain>: Remove member.
10075 (exceptions_state_mc_init): Update.
10076 (exception_try_scope_entry): Return nullptr.
10077 (exception_try_scope_exit, exception_rethrow)
10078 (throw_exception_sjlj, throw_exception_cxx): Update.
10079 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10080 (all_cleanups, do_cleanups, discard_cleanups)
10081 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10082 (restore_cleanups, restore_final_cleanups): Don't declare.
10083 (do_final_cleanups): Remove parameter.
10084 * common/cleanups.c (cleanup_chain, make_cleanup)
10085 (make_cleanup_dtor, all_cleanups, do_cleanups)
10086 (discard_my_cleanups, discard_cleanups)
10087 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10088 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10089 (null_cleanup): Remove.
10090 (do_final_cleanups): Remove parameter.
10091
c6321f19
TT
100922019-03-06 Tom Tromey <tom@tromey.com>
10093
10094 * remote.c (remote_target::remote_parse_stop_reply): Use
10095 unique_xmalloc_ptr.
10096
61b30099
TT
100972019-03-06 Tom Tromey <tom@tromey.com>
10098
10099 * stabsread.c (struct stabs_field_info): Rename from field_info.
10100 <list, fnlist>: Add initializers.
10101 <obstack>: New member.
10102 (read_member_functions, read_struct_fields, read_baseclasses):
10103 Allocate on obstack. Don't use cleanups.
10104 (read_one_struct_field, read_member_functions, read_struct_fields)
10105 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10106 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10107 (read_struct_type): Update.
10108
6cceac94
TT
101092019-03-06 Tom Tromey <tom@tromey.com>
10110
10111 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10112 * common/filestuff.h (make_cleanup_close): Don't declare.
10113 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10114 Remove.
10115
72412762
TT
101162019-03-06 Tom Tromey <tom@tromey.com>
10117
10118 * solib-aix.c: Use make_scope_exit.
10119
2b6ff1c0
TT
101202019-03-06 Tom Tromey <tom@tromey.com>
10121
10122 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10123 Use make_scope_exit.
10124
d01c5877
TT
101252019-03-06 Tom Tromey <tom@tromey.com>
10126
10127 * solib-svr4.c (disable_probes_interface): Remove parameter.
10128 (svr4_handle_solib_event): Use make_scope_exit.
10129
32603266
TT
101302019-03-06 Tom Tromey <tom@tromey.com>
10131
10132 * remote.c (struct stop_reply_deleter): Remove.
10133 (stop_reply_up): Update.
10134 (struct stop_reply): Derive from notif_event. Don't typedef.
10135 <regcache>: Now a std::vector.
10136 (stop_reply_xfree): Remove.
10137 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10138 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10139 (remote_target::discard_pending_stop_replies): Use delete.
10140 (remote_target::remote_parse_stop_reply): Update.
10141 (remote_target::process_stop_reply): Update.
10142 * remote-notif.h (struct notif_event): Add virtual destructor.
10143 Remove "dtr" member.
10144 (struct notif_client) <alloc_event>: Return a unique_ptr.
10145 (notif_event_xfree): Don't declare.
10146 (notif_event_up): New typedef.
10147 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10148 (notif_event_xfree, do_notif_event_xfree): Remove.
10149 (remote_notif_state_xfree): Update.
10150
9799571e
TT
101512019-03-06 Tom Tromey <tom@tromey.com>
10152
10153 * infrun.c (displaced_step_clear_cleanup): Now a
10154 forward_scope_exit type.
10155 (displaced_step_prepare_throw): Update.
10156 (displaced_step_fixup): Update.
10157
09e3c4ca
TT
101582019-03-06 Tom Tromey <tom@tromey.com>
10159
10160 * inferior.h (class inferior): Update comment.
10161 * gdbthread.h (class thread_info): Update comment.
10162
e2a03548
TT
101632019-03-06 Joel Brobecker <brobecker@adacore.com>
10164 Tom Tromey <tom@tromey.com>
10165
10166 * stabsread.h (struct stab_section_list): Remove.
10167 (coffstab_build_psymtabs): Update.
10168 * dbxread.c (symbuf_sections): Now a std::vector.
10169 (sect_idx): New global.
10170 (fill_symbuf): Update.
10171 (coffstab_build_psymtabs): Change type of stabsects parameter.
10172 Update.
10173 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10174 std::vector.
10175 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10176 (coff_locate_sections): Update.
10177 (coff_symfile_read): Remove cleanups. Update.
10178 (init_stringtab): Add storage parameter.
10179 (free_stringtab, free_stringtab_cleanup): Remove.
10180 (init_lineno): Add storage parameter.
10181 (free_linetab, free_linetab_cleanup): Remove.
10182
b7e60d85
PA
101832019-03-06 Pedro Alves <palves@redhat.com>
10184
10185 * linux-fork.c (fork_info::clobber_regs): Delete.
10186 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10187 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10188 comment. Adjust.
10189 (scoped_switch_fork_info::scoped_switch_fork_info)
10190 (checkpoint_command, linux_fork_context): Adjust
10191 fork_save_infrun_state calls.
10192
e52c971f
PA
101932019-03-06 Pedro Alves <palves@redhat.com>
10194
10195 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10196 (inf_has_multiple_threads): Return 'bool' and rewrite using
10197 inferior_info::threads().
10198
06974e6c
PA
101992019-03-06 Pedro Alves <palves@redhat.com>
10200
10201 * linux-fork.c: Include <list>.
10202 (fork_list): Now a std::list instance.
10203 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10204 (forks_exist_p, find_last_fork): Adjust.
10205 (new_fork): Delete.
10206 (one_fork_p): New.
10207 (add_fork): Adjust.
10208 (free_fork): Delete, folded into fork_info::~fork_info().
10209 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10210 Adjust.
10211 (init_fork_list): Delete.
10212 (linux_fork_killall, linux_fork_mourn_inferior)
10213 (linux_fork_detach, info_checkpoints_command): Adjust.
10214 (_initialize_linux_fork): No longer call init_fork_list.
10215
72f31aea
PA
102162019-03-06 Pedro Alves <palves@redhat.com>
10217
10218 * linux-fork.c (new_fork): New, split out of ...
10219 (add_fork): ... this. Return void. Move "first fork" special
10220 case from here, to ...
10221 (checkpoint_command): ... here.
10222 * linux-linux.h (add_fork): Return void.
10223
efbecbc1
AB
102242019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10225
10226 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10227
0841c79a
AB
102282019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10229 Chris January <chris.january@arm.com>
10230 David Lecomber <david.lecomber@arm.com>
10231
10232 * f-exp.y: New token, UNOP_INTRINSIC.
10233 (exp): New pattern using UNOP_INTRINSIC token.
10234 (f77_keywords): Add 'abs' keyword.
10235 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10236 (value_from_host_double): New function.
10237 (evaluate_subexp_f): Support UNOP_ABS.
10238
4a270568
AB
102392019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10240
10241 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10242 types.
10243
067630bd
AB
102442019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10245
10246 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10247 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10248 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10249
3be47f7a
AB
102502019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10251
10252 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10253
4d00f5d8
AB
102542019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10255 Chris January <chris.january@arm.com>
10256
10257 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10258 * f-exp.y: Define 'KIND' token.
10259 (exp): New pattern for KIND expressions.
10260 (ptype): Handle types with a kind extension.
10261 (direct_abs_decl): Extend to spot kind extensions.
10262 (f77_keywords): Add 'kind' to the list.
10263 (push_kind_type): New function.
10264 (convert_to_kind_type): New function.
10265 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10266 * parse.c (operator_length_standard): Likewise.
10267 * parser-defs.h (enum type_pieces): Add tp_kind.
10268 * std-operator.def: Add UNOP_KIND.
10269
e454224f
AB
102702019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10271
10272 * f-exp.y (f_parse): Set yydebug.
10273
9dad4a58
AB
102742019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10275
10276 * f-lang.c (evaluate_subexp_f): New function.
10277 (exp_descriptor_f): New global.
10278 (f_language_defn): Use exp_descriptor_f instead of
10279 exp_descriptor_standard.
10280
c8f91604
AB
102812019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10282
10283 * f-exp.y (struct token): Add comments.
10284 (dot_ops): Remove uppercase versions and the end marker.
10285 (f77_keywords): Likewise.
10286 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10287 entries in the dot_ops array are case insensitive, and use
10288 strncasecmp to compare strings. Also some whitespace cleanup in
10289 this area. Similar for the f77_keywords array, except entries in
10290 this list might be case sensitive.
10291
dd9f2c76
AB
102922019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10293
10294 * f-exp.y (struct f77_boolean_val): Add comments.
10295 (boolean_values): Remove uppercase versions, and end marker.
10296 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10297 and use strncasecmp to achieve case insensitivity. Additionally,
10298 perform whitespace cleanup around this code.
10299
67a3048c
TT
103002019-03-06 Tom Tromey <tromey@adacore.com>
10301
10302 * remote-sim.c (gdbsim_target_open): Use result of
10303 gdb_argv::release.
10304
aa3cfbda
RB
103052019-03-06 Richard Bunt <richard.bunt@arm.com>
10306 Dirk Schubert <dirk.schubert@arm.com>
10307 Chris January <chris.january@arm.com>
10308
10309 * eval.c (evaluate_subexp_standard): Call Fortran argument
10310 wrapping logic.
10311 * f-lang.c (struct value): A value which can be passed into a
10312 Fortran function call.
10313 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10314 where appropriate.
10315 (struct type): Value ready for a Fortran function call.
10316 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10317 is needed.
10318 * f-lang.h (fortran_argument_convert): Declaration.
10319 (fortran_preserve_arg_pointer): Declaration.
10320 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10321
ea38e5df
TT
103222019-03-05 Tom Tromey <tromey@adacore.com>
10323
10324 * python/py-prettyprint.c (print_string_repr): Remove #if.
10325 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10326
06b5b831
TT
103272019-03-05 Tom Tromey <tromey@adacore.com>
10328
10329 * target.c (the_dummy_target): Move later. Change type to
10330 "dummy_target".
10331 (initialize_targets): Don't initialize the_dummy_target.
10332
edbd9e45
TT
103332019-03-05 Tom Tromey <tromey@adacore.com>
10334
10335 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10336 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10337
c119e040
TT
103382019-03-05 Tom Tromey <tromey@adacore.com>
10339
10340 * windows-nat.c (windows_nat_target::attach)
10341 (windows_nat_target::detach): Don't call gdb_flush.
10342 * valprint.c (generic_val_print, val_print, val_print_string):
10343 Don't call gdb_flush.
10344 * utils.c (defaulted_query): Don't call gdb_flush.
10345 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10346 * target.c (target_announce_detach): Don't call gdb_flush.
10347 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10348 * remote.c (extended_remote_target::attach): Don't call
10349 gdb_flush.
10350 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10351 * printcmd.c (do_examine): Don't call gdb_flush.
10352 (info_display_command): Don't call gdb_flush.
10353 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10354 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10355 * memattr.c (info_mem_command): Don't call gdb_flush.
10356 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10357 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10358 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10359 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10360 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10361 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10362 (gnu_nat_target::detach): Don't call gdb_flush.
10363 * f-valprint.c (f_val_print): Don't call gdb_flush.
10364 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10365 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10366 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10367 gdb_flush.
10368 * c-valprint.c (c_val_print): Don't call gdb_flush.
10369 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10370
895dafa6
TT
103712019-03-05 Tom Tromey <tromey@adacore.com>
10372
10373 * varobj.c (update_dynamic_varobj_children): Update.
10374 (install_default_visualizer): Use reset, not release.
10375 * value.c (set_internalvar): Update.
10376 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10377 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10378 ATTRIBUTE_UNUSED_RESULT.
10379
88a774b9
TT
103802019-03-05 Tom Tromey <tromey@adacore.com>
10381
10382 * remote.c (class scoped_remote_fd) <release>: Add
10383 ATTRIBUTE_UNUSED_RESULT.
10384
4e4a8b93
TT
103852019-03-05 Tom Tromey <tromey@adacore.com>
10386
10387 * macroexp.c (struct macro_buffer) <release>: Add
10388 ATTRIBUTE_UNUSED_RESULT.
10389
083eef1f
TT
103902019-03-05 Tom Tromey <tromey@adacore.com>
10391
10392 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10393 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10394 ATTRIBUTE_UNUSED_RESULT.
10395
3cabd438
TT
103962019-03-05 Tom Tromey <tromey@adacore.com>
10397
10398 * common/scoped_fd.h (class scoped_fd) <release>: Add
10399 ATTRIBUTE_UNUSED_RESULT.
10400
41e3300a
TT
104012019-03-05 Tom Tromey <tromey@adacore.com>
10402
10403 * parser-defs.h (struct parser_state) <release>: Add
10404 ATTRIBUTE_UNUSED_RESULT.
10405
18cb7c9f
TT
104062019-03-05 Tom Tromey <tromey@adacore.com>
10407
10408 * utils.h (class gdb_argv) <release>: Add
10409 ATTRIBUTE_UNUSED_RESULT.
10410 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10411
41fa577f
EZ
104122019-03-02 Eli Zaretskii <eliz@gnu.org>
10413
a6a4b2c6
EZ
10414 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10415 for-loop range, to avoid compiler warnings.
10416
10417 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10418 avoid compiler warnings about unused variables.
10419
742a7df5
EZ
10420 * NEWS: Mention end of support for native debugging on MS-Windows
10421 before XP.
10422
41fa577f
EZ
10423 PR gdb/24292
10424 * common/netstuff.c:
10425 * gdbserver/gdbreplay.c
10426 * gdbserver/remote-utils.c:
10427 * ser-tcp.c:
10428 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10429 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10430 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10431 'getaddrinfo' and 'freeaddrinfo' were not available before
10432 Windows XP, and mingw.org's MinGW headers by default define
10433 _WIN32_WINNT to 0x500.
10434
827f438f
GB
104352019-03-01 Gary Benson <gbenson@redhat.com>
10436
10437 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10438
92137da0
RO
104392019-02-28 Brian Vandenberg <phantall@gmail.com>
10440 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10441
10442 PR gdb/8527
10443 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10444 set_sigint_trap, clear_sigint_trap.
10445
799efbe8
PW
104462019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10447
10448 * target.c (target_detach): Clear the regcache and the
10449 frame cache.
10450
8ed25214
PA
104512019-02-27 Pedro Alves <palves@redhat.com>
10452
10453 * utils.c (set_screen_size): When we cap the height/width sizes,
10454 tweak the corresponding command variable to show "unlimited":
10455
23031e31
SJ
104562019-02-27 Saagar Jha <saagar@saagarjha.com>
10457 Pedro Alves <palves@redhat.com>
10458
10459 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10460 before calling rl_set_screen_size.
10461
6c28e44a
TT
104622019-02-27 Tom Tromey <tromey@adacore.com>
10463
10464 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10465 define.
10466 * python/py-value.c: Remove Python 2.4 workaround.
10467 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10468 workaround.
10469 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10470 Python 2.4 workaround.
10471 * python/python-internal.h: Remove Python 2.4 comment.
10472 (Py_ssize_t): Don't define.
10473 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10474 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10475 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10476 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10477 * python/python.c (do_start_initialization): Remove Python 2.4
10478 workaround.
10479 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10480 (print_children): Remove Python 2.4 workaround.
10481 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10482 workaround.
10483 (CHARBUFFERPROC_NAME): Remove.
10484 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10485 Python 2.4 workaround.
10486
2c3fc25d 104872019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 10488
2c3fc25d
KB
10489 * NEWS: Note minimum Python version.
10490
6ca62222
KB
104912019-02-27 Kevin Buettner <kevinb@redhat.com>
10492
10493 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10494 code from these functions. Remove corresponding ifdefs. Use
10495 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10496 Remove gotos and target of gotos.
10497 (infpy_search_memory): Likewise.
10498
f4bc7d2c
AB
104992019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10500
10501 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10502 (hppa_gdbarch_init): Don't register deleted functions with
10503 gdbarch.
10504
9734a586
AB
105052019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10506
10507 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10508 (h8300_unwind_sp): Delete.
10509 (h8300_dummy_id): Delete.
10510 (h8300_gdbarch_init): Don't register deleted functions with
10511 gdbarch.
10512
68b867f3
AB
105132019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10514
10515 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10516 (ft32_unwind_pc): Delete.
10517 (ft32_unwind_sp): Delete.
10518 (ft32_gdbarch_init): Don't register deleted functions with
10519 gdbarch.
10520
2fbe7ad0
AB
105212019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10522
10523 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10524 (frv_unwind_pc): Delete.
10525 (frv_unwind_sp): Delete.
10526 (frv_gdbarch_init): Don't register deleted functions with
10527 gdbarch.
10528
76055cbe
AB
105292019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10530
10531 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10532 (riscv_unwind_pc): Delete.
10533 (riscv_unwind_sp): Delete.
10534 (riscv_gdbarch_init): Don't register deleted functions with
10535 gdbarch.
10536
4133e5a1
AB
105372019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10538
10539 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10540 (csky_unwind_pc): Delete.
10541 (csky_unwind_sp): Delete.
10542 (csky_gdbarch_init): Don't register deleted functions with
10543 gdbarch.
10544
8010f576
AB
105452019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10546
10547 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10548 (cris_unwind_pc): Delete.
10549 (cris_unwind_sp): Delete.
10550 (cris_gdbarch_init): Don't register deleted functions with
10551 gdbarch.
10552
b56bf084
AB
105532019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10554
10555 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10556 (bfin_unwind_pc): Delete.
10557 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10558
a19a650f
AB
105592019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10560
10561 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10562 (arm_unwind_pc): Delete.
10563 (arm_unwind_sp): Delete.
10564 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10565
f8278c3c
AB
105662019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10567
10568 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10569 (arc_unwind_pc): Delete.
10570 (arc_unwind_sp): Delete.
10571 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10572
480e46cf
AB
105732019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10574
10575 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10576 (alpha_unwind_pc): Delete.
10577 (alpha_gdbarch_init): Don't register deleted functions with
10578 gdbarch.
10579
7a995095
AB
105802019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10581
10582 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10583 (aarch64_unwind_pc): Delete.
10584 (aarch64_unwind_sp): Delete.
10585 (aarch64_gdbarch_init): Don't register deleted functions with
10586 gdbarch.
10587
bf9a735e
AB
105882019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10589
10590 * gdbtypes.c (type_align): Don't consider static members when
10591 computing structure alignment.
10592
5561fc30
AB
105932019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10594
10595 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10596 return 0 for other types.
10597 * arch-utils.c (default_type_align): Always return 0.
10598 * gdbarch.h: Regenerate.
10599 * gdbarch.sh (type_align): Extend comment.
10600 * gdbtypes.c (type_align): Add additional comments, always call
10601 gdbarch_type_align before applying the default rules.
10602 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10603 generic code will then apply a suitable default.
10604 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10605 types, return 0 for other types.
10606
9335e75a
JB
106072019-02-27 Joel Brobecker <brobecker@adacore.com>
10608
10609 * NEWS: Create a new section for the next release branch.
10610 Rename the section of the current branch, now that it has
10611 been cut.
10612
3d34d8de
JB
106132019-02-27 Joel Brobecker <brobecker@adacore.com>
10614
10615 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10616 * version.in: Bump version to 8.3.50.DATE-git.
10617
143420fb
SM
106182019-02-26 Simon Marchi <simon.marchi@efficios.com>
10619
10620 * aix-thread.c (ptid_cmp): Remove unused variable.
10621 (get_signaled_thread): Likewise.
10622 (store_regs_user_thread): Likewise.
10623 (store_regs_kernel_thread): Likewise.
10624 (fetch_regs_kernel_thread): Remove shadowed variable.
10625
172fb711
AB
106262019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10627
10628 * features/riscv/32bit-cpu.xml: Add register numbers.
10629 * features/riscv/32bit-fpu.c: Regenerate.
10630 * features/riscv/32bit-fpu.xml: Add register numbers.
10631 * features/riscv/64bit-cpu.xml: Add register numbers.
10632 * features/riscv/64bit-fpu.c: Regenerate.
10633 * features/riscv/64bit-fpu.xml: Add register numbers.
10634
26c89782
KB
106352019-02-26 Kevin Buettner <kevinb@redhat.com>
10636
af54ade9 10637 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
10638 * python/py-value.c (convert_buffer_and_type_to_value): New
10639 function.
10640 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10641 Add support for handling an optional second argument. Call
10642 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
10643 * python/python-internal.h (Py_buffer_deleter): New struct.
10644 (Py_buffer_up): New typedef.
10645
0f58c9e8
JB
106462019-02-25 John Baldwin <jhb@FreeBSD.org>
10647
10648 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10649 instead of releasing ownership.
10650
0a0f4c01
JR
106512019-02-25 Jordan Rupprecht <rupprecht@google.com>
10652
10653 * dwarf2read.c (open_and_init_dwp_file): Call
10654 elf_numsections instead of bfd_count_sections to initialize
10655 dwp_file->num_sections.
10656
cd5a152c
TT
106572019-02-25 Tom Tromey <tromey@adacore.com>
10658
10659 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10660
8a6a8513
SDJ
106612019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10662
10663 * gcore.in: Add '--readnever' option when invoking GDB.
10664
04dcda9c
SM
106652019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10666
10667 * MAINTAINERS: Update my email address.
10668
07bc701d
SM
106692019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10670
10671 * build-id.c (build_id_to_debug_bfd_1): New function.
10672 (build_id_to_debug_bfd): Look for separate debug file in
10673 sysroot.
10674
c6f4a5d0
AB
106752019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10676
10677 * gdbarch.sh: Update the copyright year range that is placed into
10678 generated files.
10679
9600246d
KS
106802019-02-22 Keith Seitz <keiths@redhat.com>
10681
10682 PR symtab/23853
10683 * linespec.c (create_sals_line_offset): Search for the default
10684 symtab's filename instead of its fullname.
10685
7557a514
AH
106862019-02-21 Alan Hayward <alan.hayward@arm.com>
10687
10688 * NEWS: Update style defaults.
10689
ee2bcb0c
AH
106902019-02-21 Alan Hayward <alan.hayward@arm.com>
10691
10692 * main.c (captured_main_1): Disable styling in batch mode.
10693
0c95f9ed
TT
106942019-02-20 Tom Tromey <tom@tromey.com>
10695
10696 * symtab.c (symtab_symbol_info): Fix typos.
10697
c763b894
TT
106982019-02-20 Tom Tromey <tromey@adacore.com>
10699
10700 * findcmd.c (_initialize_mem_search): Use upper case for
10701 metasyntactic variables.
10702
0ef8a082
AH
107032019-02-20 Alan Hayward <alan.hayward@arm.com>
10704
10705 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10706 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10707
6caa91b6
SM
107082019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10709
10710 * top.h (source_file_name): Change to std::string.
10711 * top.c (source_file_name): Likewise.
10712 (command_line_input): Adjust.
10713 * cli/cli-script.c (script_from_file): Adjust.
10714
98814c6c
TT
107152019-02-19 Tom Tromey <tromey@adacore.com>
10716
10717 * ravenscar-thread.c
10718 (ravenscar_thread_target::update_thread_list): Don't call
10719 ada_build_task_list.
10720 * ada-lang.h (ada_build_task_list): Don't declare.
10721 * ada-tasks.c (struct ada_tasks_inferior_data)
10722 <task_list_valid_p>: Now bool.
10723 (read_known_tasks, ada_task_list_changed)
10724 (ada_tasks_invalidate_inferior_data): Update.
10725 (read_known_tasks_array): Return bool.
10726 (read_known_tasks_list): Likewise.
10727 (read_known_tasks): Return void.
10728 (ada_build_task_list): Now static.
10729
70cd633e
AB
107302019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10731
10732 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10733 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10734
040b3e95
PW
107352019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10736
10737 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10738 variant for ada_tasks_pspace_data_handle and
10739 ada_tasks_inferior_data_handle.
10740 (ada_tasks_pspace_data_cleanup): New function.
10741 (ada_tasks_inferior_data_cleanup): New function.
10742
9409233b
TT
107432019-02-17 Tom Tromey <tom@tromey.com>
10744
10745 * macrotab.h (macro_source_fullname): Return a std::string.
10746 * macrotab.c (macro_include, check_for_redefinition)
10747 (macro_undef, macro_lookup_definition, foreach_macro)
10748 (foreach_macro_in_scope): Update.
10749 (macro_source_fullname): Return a std::string.
10750 * macrocmd.c (show_pp_source_pos): Update.
10751
6506371f
TT
107522019-02-17 Tom Tromey <tom@tromey.com>
10753
10754 * macrocmd.c (show_pp_source_pos): Style the file names.
10755
0c820d67
TT
107562019-02-17 Tom Tromey <tom@tromey.com>
10757
10758 PR tui/24197:
10759 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10760
a0087920
TT
107612019-02-17 Tom Tromey <tom@tromey.com>
10762
10763 * ada-lang.c (user_select_syms): Use filtered printing.
10764 * utils.c (wrap_style): New global.
10765 (desired_style): Remove.
10766 (emit_style_escape): Add stream parameter.
10767 (set_output_style, reset_terminal_style, prompt_for_continue):
10768 Update.
10769 (flush_wrap_buffer): Only flush gdb_stdout.
10770 (wrap_here): Set wrap_style.
10771 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10772 treat escape sequences as a character. Change when wrap buffer is
10773 flushed.
10774 (fputs_styled): Do not set the output style when the default is
10775 requested.
10776 * ui-style.h (struct ui_file_style) <is_default>: New method.
10777 * source.c (print_source_lines_base): Emit escape sequences in one
10778 piece.
10779
75ba10dc
JB
107802019-02-17 Joel Brobecker <brobecker@adacore.com>
10781
10782 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10783 integers and enumeration types.
10784
a2cd4f14
JB
107852019-02-17 Joel Brobecker <brobecker@adacore.com>
10786
10787 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10788 instead of lookup_symbol_in_language
10789 (do_exact_match): New function.
10790 (ada_get_symbol_name_matcher): Return do_exact_match when
10791 doing a verbatim match.
10792
485b851b
TT
107932019-02-15 Tom Tromey <tromey@adacore.com>
10794
10795 * ravenscar-thread.c (ravenscar_thread_target::resume)
10796 (ravenscar_thread_target::wait): Special case wildcard requests.
10797
0b790b1e
TT
107982019-02-15 Tom Tromey <tromey@adacore.com>
10799
10800 * ravenscar-thread.c (base_ptid): Remove.
10801 (struct ravenscar_thread_target) <close>: New method.
10802 <m_base_ptid>: New member.
10803 <update_inferior_ptid, active_task, task_is_currently_active,
10804 runtime_initialized>: Declare methods.
10805 <ravenscar_thread_target>: Add constructor.
10806 (ravenscar_thread_target::task_is_currently_active)
10807 (ravenscar_thread_target::update_inferior_ptid)
10808 (ravenscar_runtime_initialized): Rename. Now methods.
10809 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10810 (ravenscar_thread_target::update_thread_list): Update.
10811 (ravenscar_thread_target::active_task): Now method.
10812 (ravenscar_thread_target::store_registers)
10813 (ravenscar_thread_target::prepare_to_store)
10814 (ravenscar_thread_target::prepare_to_store)
10815 (ravenscar_thread_target::mourn_inferior): Update.
10816 (ravenscar_inferior_created): Use "new" to create target.
10817 (ravenscar_thread_target::get_ada_task_ptid): Update.
10818 (_initialize_ravenscar): Don't initialize base_ptid.
10819 (ravenscar_ops): Remove global.
10820
dea57a62
TT
108212019-02-15 Tom Tromey <tromey@adacore.com>
10822
10823 * target.h (push_target): Declare new overload.
10824 * target.c (push_target): New overload, taking an rvalue reference.
10825 * remote.c (remote_target::open_1): Use push_target overload.
10826 * corelow.c (core_target_open): Use push_target overload.
10827
989f3c58
TT
108282019-02-15 Tom Tromey <tromey@adacore.com>
10829
10830 * ravenscar-thread.c (is_ravenscar_task)
10831 (ravenscar_task_is_currently_active): Return bool.
10832 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10833 (_initialize_ravenscar): Remove "(void)".
10834 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10835 Return bool.
10836
6cbcc006
TT
108372019-02-15 Tom Tromey <tromey@adacore.com>
10838
10839 * ravenscar-thread.c (ravenscar_runtime_initializer)
10840 (has_ravenscar_runtime, get_running_thread_id)
10841 (ravenscar_thread_target::resume): Fix indentation.
10842
7657f14d
TT
108432019-02-15 Tom Tromey <tromey@adacore.com>
10844
10845 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10846 from ravenscar_arch_ops.
10847 (sparc_ravenscar_ops::fetch_registers)
10848 (sparc_ravenscar_ops::store_registers): Now methods.
10849 (sparc_ravenscar_prepare_to_store): Remove.
10850 (sparc_ravenscar_ops): Redefine.
10851 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10852 methods and destructor. Remove members.
10853 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10854 (ravenscar_thread_target::store_registers)
10855 (ravenscar_thread_target::prepare_to_store): Update.
10856 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10857 Remove.
10858 (struct ppc_ravenscar_powerpc_ops): Derive from
10859 ravenscar_arch_ops.
10860 (ppc_ravenscar_powerpc_ops::fetch_registers)
10861 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10862 (ppc_ravenscar_powerpc_ops): Redefine.
10863 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10864 (ppc_ravenscar_e500_ops::fetch_registers)
10865 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10866 (ppc_ravenscar_e500_ops): Redefine.
10867 * aarch64-ravenscar-thread.c
10868 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10869 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10870 (aarch64_ravenscar_fetch_registers)
10871 (aarch64_ravenscar_store_registers): Now methods.
10872 (aarch64_ravenscar_ops): Redefine.
10873
5b6ea500
TT
108742019-02-15 Tom Tromey <tromey@adacore.com>
10875
10876 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10877 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10878 (ravenscar_thread_target::stopped_by_watchpoint)
10879 (ravenscar_thread_target::stopped_data_address)
10880 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10881
e397fd39
TT
108822019-02-15 Tom Tromey <tromey@adacore.com>
10883
10884 * ravenscar-thread.c: Fix some typos.
10885
cc12f4a8
TT
108862019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10887 Tom Tromey <tromey@adacore.com>
10888
10889 * ada-lang.c (ada_exception_sal): Change addr_string to a
10890 std::string.
10891 (create_ada_exception_catchpoint): Update.
10892
5f486660
TT
108932019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10894 Tom Tromey <tromey@adacore.com>
10895
10896 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10897 (bp_location_ops): Remove.
10898 (base_breakpoint_allocate_location): Update.
10899 (free_bp_location): Update.
10900 * ada-lang.c (class ada_catchpoint_location)
10901 <ada_catchpoint_location>: Remove ops parameter.
10902 (ada_catchpoint_location_dtor): Remove.
10903 (ada_catchpoint_location_ops): Remove.
10904 (allocate_location_exception): Update.
10905 * breakpoint.h (struct bp_location_ops): Remove.
10906 (class bp_location) <bp_location>: Remove bp_location_ops
10907 parameter.
10908 <~bp_location>: Add destructor.
10909 <ops>: Remove.
10910
b671c7fb
TS
109112019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10912 Pedro Alves <palves@redhat.com>
10913
10914 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10915 'PATH_MAX'.
10916
8071c5ce
DM
109172019-02-14 David Michael <fedora.dm0@gmail.com>
10918 Samuel Thibault <samuel.thibault@gnu.org>
10919 Thomas Schwinge <thomas@codesourcery.com>
10920
10921 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10922 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10923
b1041ae0
TS
109242019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10925
924514e1
TS
10926 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10927 (check_empty): Use "const char *".
10928
c29ee8d4
TS
10929 * gnu-nat.c (gnu_nat_target::detach): Instead of
10930 'detach_inferior (pid)' call
10931 'detach_inferior (find_inferior_pid (pid))'.
10932
6c6ef69f
TS
10933 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10934 'nat/fork-inferior.o'.
10935 * gnu-nat.c: #include "nat/fork-inferior.h".
10936
2d0a338c
TS
10937 * gnu-nat.c (gnu_nat_target::detach): Instead of
10938 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10939 * gnu-nat.h: #include "inf-child.h".
10940 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10941 'i386_gnu_nat_target::fetch_registers'.
10942 (gnu_store_registers): Rename/move to
10943 'i386_gnu_nat_target::store_registers'.
10944
cabb5f06
TS
10945 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10946 * gnu-nat.h (mach_thread_info): New function.
10947 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10948
b1041ae0
TS
10949 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10950
2988d01e
KF
109512019-02-14 Frederic Konrad <konrad@adacore.com>
10952
10953 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10954
c559d709
JB
109552019-02-14 Joel Brobecker <brobecker@adacore.com>
10956
10957 * windows-nat.c (windows_add_thread): Add new parameter
10958 "main_thread_p" with default value set to false. Update
10959 function documentation as well as all callers.
10960 (windows_delete_thread): Likewise.
10961 (fake_create_process): Update call to windows_add_thread.
10962 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10963 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10964 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10965 call to windows_delete_thread.
10966
007024cc
SM
109672019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10968
10969 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10970
f62318e9
JB
109712019-02-12 John Baldwin <jhb@FreeBSD.org>
10972
10973 * symfile.c (find_separate_debug_file): Use canonical path of
10974 sysroot with child_path instead of gdb_sysroot if it is valid.
10975
cd4b7848
JB
109762019-02-12 John Baldwin <jhb@FreeBSD.org>
10977
10978 * symfile.c (find_separate_debug_file): Use child_path to
10979 determine if an object file is under a sysroot.
10980
efac4bfe
JB
109812019-02-12 John Baldwin <jhb@FreeBSD.org>
10982
10983 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10984 unittests/child-path-selftests.c.
10985 * common/pathstuff.c (child_path): New function.
10986 * common/pathstuff.h (child_path): New prototype.
10987 * unittests/child-path-selftests.c: New file.
10988
402d2bfe
JB
109892019-02-12 John Baldwin <jhb@FreeBSD.org>
10990
10991 * symfile.c (find_separate_debug_file): Look for separate debug
10992 files in debug directories under the sysroot.
10993
1ed9f74e
PW
109942019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10995
10996 * symtab.h (struct minimal_symbol data_p): New const method.
10997 (struct minimal_symbol text_p): Likewise.
10998 * symtab.c (output_source_filename): Use file name style
10999 to print file name.
11000 (print_symbol_info): Likewise.
11001 (print_msymbol_info): Use address style to print addresses.
11002 Use function name style to print executable text symbols.
11003 (expand_symtab_containing_pc): Use data_p.
11004 (find_pc_sect_compunit_symtab): Likewise.
11005
2636d81d
PW
110062019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11007
11008 * breakpoint.c (describe_other_breakpoints): Use address style
11009 to print addresses.
11010 (say_where): Likewise.
11011
ac8c53cc
PW
110122019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11013
11014 * ada-typeprint.c (print_func_type): Print function name
11015 style to print function name.
11016 * c-typeprint.c (c_print_type_1): Likewise.
11017
ea638c43
AH
110182019-02-11 Alan Hayward <alan.hayward@arm.com>
11019
11020 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11021 for execve.
11022
ab759ca8
PW
110232019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11024
11025 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11026 type_stack.
11027
aff29d1c
JB
110282019-02-10 Joel Brobecker <brobecker@adacore.com>
11029
11030 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11031 TYPE_CODE_REF types.
11032
617126bc
JW
110332019-02-08 Jim Wilson <jimw@sifive.com>
11034
11035 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11036 (riscv_linux_fregset): New.
11037 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11038
46e3ed7f
TT
110392019-02-07 Tom Tromey <tom@tromey.com>
11040
11041 * thread.c (thread_cancel_execution_command): Update.
11042 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11043 methods.
11044 (struct thread_fsm_ops): Remove.
11045 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11046 (thread_fsm_should_stop, thread_fsm_return_value)
11047 (thread_fsm_set_finished, thread_fsm_finished_p)
11048 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11049 Don't declare.
11050 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11051 * infrun.c (clear_proceed_status_thread)
11052 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11053 (print_stop_event): Update.
11054 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11055 Add constructor.
11056 (step_command_fsm_ops): Remove.
11057 (new_step_command_fsm): Remove.
11058 (step_1): Update.
11059 (step_command_fsm::should_stop): Rename from
11060 step_command_fsm_should_stop.
11061 (step_command_fsm::clean_up): Rename from
11062 step_command_fsm_clean_up.
11063 (step_command_fsm::do_async_reply_reason): Rename from
11064 step_command_fsm_async_reply_reason.
11065 (struct until_next_fsm): Inherit from thread_fsm. Add
11066 constructor.
11067 (until_next_fsm_ops): Remove.
11068 (new_until_next_fsm): Remove.
11069 (until_next_fsm::should_stop): Rename from
11070 until_next_fsm_should_stop.
11071 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11072 (until_next_fsm::do_async_reply_reason): Rename from
11073 until_next_fsm_async_reply_reason.
11074 (struct finish_command_fsm): Inherit from thread_fsm. Add
11075 constructor. Change type of breakpoint.
11076 (finish_command_fsm_ops): Remove.
11077 (new_finish_command_fsm): Remove.
11078 (finish_command_fsm::should_stop): Rename from
11079 finish_command_fsm_should_stop.
11080 (finish_command_fsm::clean_up): Rename from
11081 finish_command_fsm_clean_up.
11082 (finish_command_fsm::return_value): Rename from
11083 finish_command_fsm_return_value.
11084 (finish_command_fsm::do_async_reply_reason): Rename from
11085 finish_command_fsm_async_reply_reason.
11086 (finish_command): Update.
11087 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11088 Add constructor.
11089 (call_thread_fsm_ops): Remove.
11090 (call_thread_fsm::call_thread_fsm): Rename from
11091 new_call_thread_fsm.
11092 (call_thread_fsm::should_stop): Rename from
11093 call_thread_fsm_should_stop.
11094 (call_thread_fsm::should_notify_stop): Rename from
11095 call_thread_fsm_should_notify_stop.
11096 (run_inferior_call, call_function_by_hand_dummy): Update.
11097 * cli/cli-interp.c (should_print_stop_to_console): Update.
11098 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11099 Add constructor. Change type of location_breakpoint,
11100 caller_breakpoint.
11101 (until_break_fsm_ops): Remove.
11102 (new_until_break_fsm): Remove.
11103 (until_break_fsm::should_stop): Rename from
11104 until_break_fsm_should_stop.
11105 (until_break_fsm::clean_up): Rename from
11106 until_break_fsm_clean_up.
11107 (until_break_fsm::do_async_reply_reason): Rename from
11108 until_break_fsm_async_reply_reason.
11109 (until_break_command): Update.
11110 * thread-fsm.c: Remove.
11111 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11112
1a5c2598
TT
111132019-02-07 Tom Tromey <tom@tromey.com>
11114
11115 * yy-remap.h: Add include guard.
11116 * xtensa-tdep.h: Add include guard.
11117 * xcoffread.h: Rename include guard.
11118 * varobj-iter.h: Add include guard.
11119 * tui/tui.h: Rename include guard.
11120 * tui/tui-winsource.h: Rename include guard.
11121 * tui/tui-wingeneral.h: Rename include guard.
11122 * tui/tui-windata.h: Rename include guard.
11123 * tui/tui-win.h: Rename include guard.
11124 * tui/tui-stack.h: Rename include guard.
11125 * tui/tui-source.h: Rename include guard.
11126 * tui/tui-regs.h: Rename include guard.
11127 * tui/tui-out.h: Rename include guard.
11128 * tui/tui-layout.h: Rename include guard.
11129 * tui/tui-io.h: Rename include guard.
11130 * tui/tui-hooks.h: Rename include guard.
11131 * tui/tui-file.h: Rename include guard.
11132 * tui/tui-disasm.h: Rename include guard.
11133 * tui/tui-data.h: Rename include guard.
11134 * tui/tui-command.h: Rename include guard.
11135 * tic6x-tdep.h: Add include guard.
11136 * target/waitstatus.h: Rename include guard.
11137 * target/wait.h: Rename include guard.
11138 * target/target.h: Rename include guard.
11139 * target/resume.h: Rename include guard.
11140 * target-float.h: Rename include guard.
11141 * stabsread.h: Add include guard.
11142 * rs6000-tdep.h: Add include guard.
11143 * riscv-fbsd-tdep.h: Add include guard.
11144 * regformats/regdef.h: Rename include guard.
11145 * record.h: Rename include guard.
11146 * python/python.h: Rename include guard.
11147 * python/python-internal.h: Rename include guard.
11148 * python/py-stopevent.h: Rename include guard.
11149 * python/py-ref.h: Rename include guard.
11150 * python/py-record.h: Rename include guard.
11151 * python/py-record-full.h: Rename include guard.
11152 * python/py-record-btrace.h: Rename include guard.
11153 * python/py-instruction.h: Rename include guard.
11154 * python/py-events.h: Rename include guard.
11155 * python/py-event.h: Rename include guard.
11156 * procfs.h: Add include guard.
11157 * proc-utils.h: Add include guard.
11158 * p-lang.h: Add include guard.
11159 * or1k-tdep.h: Rename include guard.
11160 * observable.h: Rename include guard.
11161 * nto-tdep.h: Rename include guard.
11162 * nat/x86-linux.h: Rename include guard.
11163 * nat/x86-linux-dregs.h: Rename include guard.
11164 * nat/x86-gcc-cpuid.h: Add include guard.
11165 * nat/x86-dregs.h: Rename include guard.
11166 * nat/x86-cpuid.h: Rename include guard.
11167 * nat/ppc-linux.h: Rename include guard.
11168 * nat/mips-linux-watch.h: Rename include guard.
11169 * nat/linux-waitpid.h: Rename include guard.
11170 * nat/linux-ptrace.h: Rename include guard.
11171 * nat/linux-procfs.h: Rename include guard.
11172 * nat/linux-osdata.h: Rename include guard.
11173 * nat/linux-nat.h: Rename include guard.
11174 * nat/linux-namespaces.h: Rename include guard.
11175 * nat/linux-btrace.h: Rename include guard.
11176 * nat/glibc_thread_db.h: Rename include guard.
11177 * nat/gdb_thread_db.h: Rename include guard.
11178 * nat/gdb_ptrace.h: Rename include guard.
11179 * nat/fork-inferior.h: Rename include guard.
11180 * nat/amd64-linux-siginfo.h: Rename include guard.
11181 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11182 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11183 * nat/aarch64-linux.h: Rename include guard.
11184 * nat/aarch64-linux-hw-point.h: Rename include guard.
11185 * mn10300-tdep.h: Add include guard.
11186 * mips-linux-tdep.h: Add include guard.
11187 * mi/mi-parse.h: Rename include guard.
11188 * mi/mi-out.h: Rename include guard.
11189 * mi/mi-main.h: Rename include guard.
11190 * mi/mi-interp.h: Rename include guard.
11191 * mi/mi-getopt.h: Rename include guard.
11192 * mi/mi-console.h: Rename include guard.
11193 * mi/mi-common.h: Rename include guard.
11194 * mi/mi-cmds.h: Rename include guard.
11195 * mi/mi-cmd-break.h: Rename include guard.
11196 * m2-lang.h: Add include guard.
11197 * location.h: Rename include guard.
11198 * linux-record.h: Rename include guard.
11199 * linux-nat.h: Add include guard.
11200 * linux-fork.h: Add include guard.
11201 * i386-darwin-tdep.h: Rename include guard.
11202 * hppa-linux-offsets.h: Add include guard.
11203 * guile/guile.h: Rename include guard.
11204 * guile/guile-internal.h: Rename include guard.
11205 * gnu-nat.h: Rename include guard.
11206 * gdb-stabs.h: Rename include guard.
11207 * frv-tdep.h: Add include guard.
11208 * f-lang.h: Add include guard.
11209 * event-loop.h: Add include guard.
11210 * darwin-nat.h: Rename include guard.
11211 * cp-abi.h: Rename include guard.
11212 * config/sparc/nm-sol2.h: Rename include guard.
11213 * config/nm-nto.h: Rename include guard.
11214 * config/nm-linux.h: Add include guard.
11215 * config/i386/nm-i386gnu.h: Rename include guard.
11216 * config/djgpp/nl_types.h: Rename include guard.
11217 * config/djgpp/langinfo.h: Rename include guard.
11218 * compile/gcc-cp-plugin.h: Add include guard.
11219 * compile/gcc-c-plugin.h: Add include guard.
11220 * compile/compile.h: Rename include guard.
11221 * compile/compile-object-run.h: Rename include guard.
11222 * compile/compile-object-load.h: Rename include guard.
11223 * compile/compile-internal.h: Rename include guard.
11224 * compile/compile-cplus.h: Rename include guard.
11225 * compile/compile-c.h: Rename include guard.
11226 * common/xml-utils.h: Rename include guard.
11227 * common/x86-xstate.h: Rename include guard.
11228 * common/version.h: Rename include guard.
11229 * common/vec.h: Rename include guard.
11230 * common/tdesc.h: Rename include guard.
11231 * common/selftest.h: Rename include guard.
11232 * common/scoped_restore.h: Rename include guard.
11233 * common/scoped_mmap.h: Rename include guard.
11234 * common/scoped_fd.h: Rename include guard.
11235 * common/safe-iterator.h: Rename include guard.
11236 * common/run-time-clock.h: Rename include guard.
11237 * common/refcounted-object.h: Rename include guard.
11238 * common/queue.h: Rename include guard.
11239 * common/ptid.h: Rename include guard.
11240 * common/print-utils.h: Rename include guard.
11241 * common/preprocessor.h: Rename include guard.
11242 * common/pathstuff.h: Rename include guard.
11243 * common/observable.h: Rename include guard.
11244 * common/netstuff.h: Rename include guard.
11245 * common/job-control.h: Rename include guard.
11246 * common/host-defs.h: Rename include guard.
11247 * common/gdb_wait.h: Rename include guard.
11248 * common/gdb_vecs.h: Rename include guard.
11249 * common/gdb_unlinker.h: Rename include guard.
11250 * common/gdb_unique_ptr.h: Rename include guard.
11251 * common/gdb_tilde_expand.h: Rename include guard.
11252 * common/gdb_sys_time.h: Rename include guard.
11253 * common/gdb_string_view.h: Rename include guard.
11254 * common/gdb_splay_tree.h: Rename include guard.
11255 * common/gdb_setjmp.h: Rename include guard.
11256 * common/gdb_ref_ptr.h: Rename include guard.
11257 * common/gdb_optional.h: Rename include guard.
11258 * common/gdb_locale.h: Rename include guard.
11259 * common/gdb_assert.h: Rename include guard.
11260 * common/filtered-iterator.h: Rename include guard.
11261 * common/filestuff.h: Rename include guard.
11262 * common/fileio.h: Rename include guard.
11263 * common/environ.h: Rename include guard.
11264 * common/common-utils.h: Rename include guard.
11265 * common/common-types.h: Rename include guard.
11266 * common/common-regcache.h: Rename include guard.
11267 * common/common-inferior.h: Rename include guard.
11268 * common/common-gdbthread.h: Rename include guard.
11269 * common/common-exceptions.h: Rename include guard.
11270 * common/common-defs.h: Rename include guard.
11271 * common/common-debug.h: Rename include guard.
11272 * common/cleanups.h: Rename include guard.
11273 * common/buffer.h: Rename include guard.
11274 * common/btrace-common.h: Rename include guard.
11275 * common/break-common.h: Rename include guard.
11276 * cli/cli-utils.h: Rename include guard.
11277 * cli/cli-style.h: Rename include guard.
11278 * cli/cli-setshow.h: Rename include guard.
11279 * cli/cli-script.h: Rename include guard.
11280 * cli/cli-interp.h: Rename include guard.
11281 * cli/cli-decode.h: Rename include guard.
11282 * cli/cli-cmds.h: Rename include guard.
11283 * charset-list.h: Add include guard.
11284 * buildsym-legacy.h: Rename include guard.
11285 * bfin-tdep.h: Add include guard.
11286 * ax.h: Rename include guard.
11287 * arm-linux-tdep.h: Add include guard.
11288 * arm-fbsd-tdep.h: Add include guard.
11289 * arch/xtensa.h: Rename include guard.
11290 * arch/tic6x.h: Add include guard.
11291 * arch/i386.h: Add include guard.
11292 * arch/arm.h: Rename include guard.
11293 * arch/arm-linux.h: Rename include guard.
11294 * arch/arm-get-next-pcs.h: Rename include guard.
11295 * arch/amd64.h: Add include guard.
11296 * arch/aarch64-insn.h: Rename include guard.
11297 * arch-utils.h: Rename include guard.
11298 * annotate.h: Add include guard.
11299 * amd64-darwin-tdep.h: Rename include guard.
11300 * aarch64-linux-tdep.h: Add include guard.
11301 * aarch64-fbsd-tdep.h: Add include guard.
11302 * aarch32-linux-nat.h: Add include guard.
11303
ab9268d2
PW
113042019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11305
11306 * macrotab.c (macro_define_internal): New function that
11307 factorizes macro_define_object_internal and macro_define_function
11308 code.
11309 (macro_define_object_internal): Use macro_define_internal.
11310 (macro_define_function): Likewise.
11311
bb0da2b4
PW
113122019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11313
11314 * macrocmd.c (extract_identifier): Return
11315 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11316 callers.
11317
424eb552
JB
113182019-02-06 John Baldwin <jhb@FreeBSD.org>
11319
11320 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11321
1688cb29
TT
113222019-02-05 Tom Tromey <tom@tromey.com>
11323
11324 * target.c (target_stack::unpush): Move assertion earlier.
11325
b5eba2d8
TT
113262019-01-30 Tom Tromey <tom@tromey.com>
11327
11328 PR python/23615:
11329 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11330 (gdbpy_parse_and_eval): Likewise.
11331 * python/python-internal.h (gdbpy_allow_threads): New class.
11332
7054e2ff
JB
113332019-01-28 John Baldwin <jhb@FreeBSD.org>
11334
11335 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11336 (aarch64_fbsd_fpregmap): Move earlier.
11337 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11338 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11339 instead of individual calls to trad_frame_set_reg_addr.
11340 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11341 earlier.
11342 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11343 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11344 instead of individual calls to trad_frame_set_reg_addr.
11345
36c25ffa
AH
113462019-01-28 Alan Hayward <alan.hayward@arm.com>
11347
11348 * CONTRIBUTE: Replace contribution list with wiki link.
11349
a0707f3c
TT
113502019-01-25 Tom Tromey <tom@tromey.com>
11351
11352 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11353
0747795c
TT
113542019-01-25 Tom Tromey <tom@tromey.com>
11355
11356 * xtensa-linux-nat.c: Fix common/ includes.
11357 * xml-support.h: Fix common/ includes.
11358 * xml-support.c: Fix common/ includes.
11359 * x86-linux-nat.c: Fix common/ includes.
11360 * windows-nat.c: Fix common/ includes.
11361 * varobj.h: Fix common/ includes.
11362 * varobj.c: Fix common/ includes.
11363 * value.c: Fix common/ includes.
11364 * valops.c: Fix common/ includes.
11365 * utils.c: Fix common/ includes.
11366 * unittests/xml-utils-selftests.c: Fix common/ includes.
11367 * unittests/utils-selftests.c: Fix common/ includes.
11368 * unittests/unpack-selftests.c: Fix common/ includes.
11369 * unittests/tracepoint-selftests.c: Fix common/ includes.
11370 * unittests/style-selftests.c: Fix common/ includes.
11371 * unittests/string_view-selftests.c: Fix common/ includes.
11372 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11373 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11374 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11375 * unittests/rsp-low-selftests.c: Fix common/ includes.
11376 * unittests/parse-connection-spec-selftests.c: Fix common/
11377 includes.
11378 * unittests/optional-selftests.c: Fix common/ includes.
11379 * unittests/offset-type-selftests.c: Fix common/ includes.
11380 * unittests/observable-selftests.c: Fix common/ includes.
11381 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11382 * unittests/memrange-selftests.c: Fix common/ includes.
11383 * unittests/memory-map-selftests.c: Fix common/ includes.
11384 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11385 * unittests/function-view-selftests.c: Fix common/ includes.
11386 * unittests/environ-selftests.c: Fix common/ includes.
11387 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11388 * unittests/common-utils-selftests.c: Fix common/ includes.
11389 * unittests/cli-utils-selftests.c: Fix common/ includes.
11390 * unittests/array-view-selftests.c: Fix common/ includes.
11391 * ui-file.c: Fix common/ includes.
11392 * tui/tui-io.c: Fix common/ includes.
11393 * tracepoint.h: Fix common/ includes.
11394 * tracepoint.c: Fix common/ includes.
11395 * tracefile-tfile.c: Fix common/ includes.
11396 * top.h: Fix common/ includes.
11397 * top.c: Fix common/ includes.
11398 * thread.c: Fix common/ includes.
11399 * target/waitstatus.h: Fix common/ includes.
11400 * target/waitstatus.c: Fix common/ includes.
11401 * target.h: Fix common/ includes.
11402 * target.c: Fix common/ includes.
11403 * target-memory.c: Fix common/ includes.
11404 * target-descriptions.c: Fix common/ includes.
11405 * symtab.h: Fix common/ includes.
11406 * symfile.c: Fix common/ includes.
11407 * stap-probe.c: Fix common/ includes.
11408 * spu-linux-nat.c: Fix common/ includes.
11409 * sparc-nat.c: Fix common/ includes.
11410 * source.c: Fix common/ includes.
11411 * solib.c: Fix common/ includes.
11412 * solib-target.c: Fix common/ includes.
11413 * ser-unix.c: Fix common/ includes.
11414 * ser-tcp.c: Fix common/ includes.
11415 * ser-pipe.c: Fix common/ includes.
11416 * ser-base.c: Fix common/ includes.
11417 * selftest-arch.c: Fix common/ includes.
11418 * s12z-tdep.c: Fix common/ includes.
11419 * rust-exp.y: Fix common/ includes.
11420 * rs6000-aix-tdep.c: Fix common/ includes.
11421 * riscv-tdep.c: Fix common/ includes.
11422 * remote.c: Fix common/ includes.
11423 * remote-notif.h: Fix common/ includes.
11424 * remote-fileio.h: Fix common/ includes.
11425 * remote-fileio.c: Fix common/ includes.
11426 * regcache.h: Fix common/ includes.
11427 * regcache.c: Fix common/ includes.
11428 * record-btrace.c: Fix common/ includes.
11429 * python/python.c: Fix common/ includes.
11430 * python/py-type.c: Fix common/ includes.
11431 * python/py-inferior.c: Fix common/ includes.
11432 * progspace.h: Fix common/ includes.
11433 * producer.c: Fix common/ includes.
11434 * procfs.c: Fix common/ includes.
11435 * proc-api.c: Fix common/ includes.
11436 * printcmd.c: Fix common/ includes.
11437 * ppc-linux-nat.c: Fix common/ includes.
11438 * parser-defs.h: Fix common/ includes.
11439 * osdata.c: Fix common/ includes.
11440 * obsd-nat.c: Fix common/ includes.
11441 * nat/x86-linux.c: Fix common/ includes.
11442 * nat/x86-linux-dregs.c: Fix common/ includes.
11443 * nat/x86-dregs.h: Fix common/ includes.
11444 * nat/x86-dregs.c: Fix common/ includes.
11445 * nat/ppc-linux.c: Fix common/ includes.
11446 * nat/mips-linux-watch.h: Fix common/ includes.
11447 * nat/mips-linux-watch.c: Fix common/ includes.
11448 * nat/linux-waitpid.c: Fix common/ includes.
11449 * nat/linux-ptrace.h: Fix common/ includes.
11450 * nat/linux-ptrace.c: Fix common/ includes.
11451 * nat/linux-procfs.c: Fix common/ includes.
11452 * nat/linux-personality.c: Fix common/ includes.
11453 * nat/linux-osdata.c: Fix common/ includes.
11454 * nat/linux-namespaces.c: Fix common/ includes.
11455 * nat/linux-btrace.h: Fix common/ includes.
11456 * nat/linux-btrace.c: Fix common/ includes.
11457 * nat/fork-inferior.c: Fix common/ includes.
11458 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11459 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11460 * nat/aarch64-linux.c: Fix common/ includes.
11461 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11462 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11463 * namespace.h: Fix common/ includes.
11464 * mips-linux-tdep.c: Fix common/ includes.
11465 * minsyms.c: Fix common/ includes.
11466 * mi/mi-parse.h: Fix common/ includes.
11467 * mi/mi-main.c: Fix common/ includes.
11468 * mi/mi-cmd-env.c: Fix common/ includes.
11469 * memrange.h: Fix common/ includes.
11470 * memattr.c: Fix common/ includes.
11471 * maint.h: Fix common/ includes.
11472 * maint.c: Fix common/ includes.
11473 * main.c: Fix common/ includes.
11474 * machoread.c: Fix common/ includes.
11475 * location.c: Fix common/ includes.
11476 * linux-thread-db.c: Fix common/ includes.
11477 * linux-nat.c: Fix common/ includes.
11478 * linux-fork.c: Fix common/ includes.
11479 * inline-frame.c: Fix common/ includes.
11480 * infrun.c: Fix common/ includes.
11481 * inflow.c: Fix common/ includes.
11482 * inferior.h: Fix common/ includes.
11483 * inferior.c: Fix common/ includes.
11484 * infcmd.c: Fix common/ includes.
11485 * inf-ptrace.c: Fix common/ includes.
11486 * inf-child.c: Fix common/ includes.
11487 * ia64-linux-nat.c: Fix common/ includes.
11488 * i387-tdep.c: Fix common/ includes.
11489 * i386-tdep.c: Fix common/ includes.
11490 * i386-linux-tdep.c: Fix common/ includes.
11491 * i386-linux-nat.c: Fix common/ includes.
11492 * i386-go32-tdep.c: Fix common/ includes.
11493 * i386-fbsd-tdep.c: Fix common/ includes.
11494 * i386-fbsd-nat.c: Fix common/ includes.
11495 * guile/scm-type.c: Fix common/ includes.
11496 * guile/guile.c: Fix common/ includes.
11497 * go32-nat.c: Fix common/ includes.
11498 * gnu-nat.c: Fix common/ includes.
11499 * gdbthread.h: Fix common/ includes.
11500 * gdbarch-selftests.c: Fix common/ includes.
11501 * gdb_usleep.c: Fix common/ includes.
11502 * gdb_select.h: Fix common/ includes.
11503 * gdb_bfd.c: Fix common/ includes.
11504 * gcore.c: Fix common/ includes.
11505 * fork-child.c: Fix common/ includes.
11506 * findvar.c: Fix common/ includes.
11507 * fbsd-nat.c: Fix common/ includes.
11508 * event-top.c: Fix common/ includes.
11509 * event-loop.c: Fix common/ includes.
11510 * dwarf2read.c: Fix common/ includes.
11511 * dwarf2loc.c: Fix common/ includes.
11512 * dwarf2-frame.c: Fix common/ includes.
11513 * dwarf-index-cache.c: Fix common/ includes.
11514 * dtrace-probe.c: Fix common/ includes.
11515 * disasm-selftests.c: Fix common/ includes.
11516 * defs.h: Fix common/ includes.
11517 * csky-tdep.c: Fix common/ includes.
11518 * cp-valprint.c: Fix common/ includes.
11519 * cp-support.h: Fix common/ includes.
11520 * cp-support.c: Fix common/ includes.
11521 * corelow.c: Fix common/ includes.
11522 * completer.h: Fix common/ includes.
11523 * completer.c: Fix common/ includes.
11524 * compile/compile.c: Fix common/ includes.
11525 * compile/compile-loc2c.c: Fix common/ includes.
11526 * compile/compile-cplus-types.c: Fix common/ includes.
11527 * compile/compile-cplus-symbols.c: Fix common/ includes.
11528 * command.h: Fix common/ includes.
11529 * cli/cli-dump.c: Fix common/ includes.
11530 * cli/cli-cmds.c: Fix common/ includes.
11531 * charset.c: Fix common/ includes.
11532 * build-id.c: Fix common/ includes.
11533 * btrace.h: Fix common/ includes.
11534 * btrace.c: Fix common/ includes.
11535 * breakpoint.h: Fix common/ includes.
11536 * breakpoint.c: Fix common/ includes.
11537 * ax.h:
11538 (enum agent_op): Fix common/ includes.
11539 * ax-general.c (struct aop_map): Fix common/ includes.
11540 * ax-gdb.c: Fix common/ includes.
11541 * auxv.c: Fix common/ includes.
11542 * auto-load.c: Fix common/ includes.
11543 * arm-tdep.c: Fix common/ includes.
11544 * arch/riscv.c: Fix common/ includes.
11545 * arch/ppc-linux-common.c: Fix common/ includes.
11546 * arch/i386.c: Fix common/ includes.
11547 * arch/arm.c: Fix common/ includes.
11548 * arch/arm-linux.c: Fix common/ includes.
11549 * arch/arm-get-next-pcs.c: Fix common/ includes.
11550 * arch/amd64.c: Fix common/ includes.
11551 * arch/aarch64.c: Fix common/ includes.
11552 * arch/aarch64-insn.c: Fix common/ includes.
11553 * arch-utils.c: Fix common/ includes.
11554 * amd64-windows-tdep.c: Fix common/ includes.
11555 * amd64-tdep.c: Fix common/ includes.
11556 * amd64-sol2-tdep.c: Fix common/ includes.
11557 * amd64-obsd-tdep.c: Fix common/ includes.
11558 * amd64-nbsd-tdep.c: Fix common/ includes.
11559 * amd64-linux-tdep.c: Fix common/ includes.
11560 * amd64-linux-nat.c: Fix common/ includes.
11561 * amd64-fbsd-tdep.c: Fix common/ includes.
11562 * amd64-fbsd-nat.c: Fix common/ includes.
11563 * amd64-dicos-tdep.c: Fix common/ includes.
11564 * amd64-darwin-tdep.c: Fix common/ includes.
11565 * agent.c: Fix common/ includes.
11566 * ada-lang.h: Fix common/ includes.
11567 * ada-lang.c: Fix common/ includes.
11568 * aarch64-tdep.c: Fix common/ includes.
11569
2f5c153e
TT
115702019-01-25 Tom Tromey <tom@tromey.com>
11571
11572 * common/create-version.sh: Use common/version.h.
11573
adc6a863
PA
115742019-01-24 Pedro Alves <palves@redhat.com>
11575
11576 * infrun.c (signal_stop, signal_print, signal_program)
11577 (signal_catch, signal_pass): Now arrays instead of pointers.
11578 (update_signals_program_target, do_target_resume)
11579 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11580 * linux-nat.c (linux_nat_target::pass_signals)
11581 (linux_nat_target::create_inferior, linux_nat_target::attach):
11582 Adjust.
11583 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11584 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11585 * procfs.c (procfs_target::pass_signals): Adjust.
11586 * record-full.c (record_full_target::resume): Adjust.
11587 * remote.c (remote_target::pass_signals)
11588 (remote_target::program_signals): Adjust.
11589 * target-debug.h (target_debug_print_signals): Now takes a
11590 gdb::array_view as parameter. Adjust.
11591 * target.h (target_ops) <pass_signals, program_signals>: Replace
11592 pointer and length parameters with gdb::array_view.
11593 (target_pass_signals, target_program_signals): Likewise.
11594 * target-delegates.c: Regenerate.
11595
3046d67a
PA
115962019-01-24 Pedro Alves <palves@redhat.com>
11597
11598 * common/forward-scope-exit.h
11599 (forward_scope_exit::forward_scope_exit): Pass arguments to
11600 m_bind_function directly, instead of creating a std::bind and
11601 copying that.
11602
353229bf
AH
116032019-01-24 Alan Hayward <alan.hayward@arm.com>
11604
11605 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11606 for static members.
11607 (pass_in_v_vfp_candidate): Likewise.
11608
311dc83a
TT
116092019-01-23 Tom Tromey <tom@tromey.com>
11610 Pedro Alves <palves@redhat.com>
11611
11612 * regcache.c (class regcache_invalidator): Remove.
11613 (regcache::raw_write): Use make_scope_exit.
11614
296bd123
TT
116152019-01-23 Tom Tromey <tom@tromey.com>
11616
11617 * ui-out.h (class ui_out_emit_type): Update comment.
11618
979a0d13
TT
116192019-01-23 Tom Tromey <tom@tromey.com>
11620
11621 * infrun.c (fetch_inferior_event): Update comment.
11622
d238133d
TT
116232019-01-23 Tom Tromey <tom@tromey.com>
11624 Pedro Alves <palves@redhat.com>
11625
11626 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11627 parameter.
11628 (fetch_inferior_event): Use SCOPE_EXIT.
11629
11630
9885e6bb
TT
116312019-01-23 Tom Tromey <tom@tromey.com>
11632 Pedro Alves <palves@redhat.com>
11633
11634 * infrun.c (disable_thread_events): Delete.
11635 (stop_all_threads): Use SCOPE_EXIT.
11636
286526c1
TT
116372019-01-23 Tom Tromey <tom@tromey.com>
11638 Pedro Alves <palves@redhat.com>
11639
11640 * symfile.c: Include forward-scope-exit.h.
11641 (clear_symtab_users_cleanup): Replace forward declaration with
11642 a FORWARD_SCOPE_EXIT.
11643 (syms_from_objfile_1): Use the forward_scope_exit and
11644 gdb::optional instead of cleanup_function.
11645 (reread_symbols): Use the forward_scope_exit instead of
11646 cleanup_function.
11647 (clear_symtab_users_cleanup): Remove function.
11648
1db93f14
TT
116492019-01-23 Tom Tromey <tom@tromey.com>
11650 Pedro Alves <palves@redhat.com>
11651
11652 * linux-nat.c: Include scope-exit.h.
11653 (cleanup_target_stop): Remove.
11654 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11655 SCOPE_EXIT.
11656
2cc83d1e
TT
116572019-01-23 Tom Tromey <tom@tromey.com>
11658 Pedro Alves <palves@redhat.com>
11659
11660 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11661 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11662
694c6bf5
TT
116632019-01-23 Tom Tromey <tom@tromey.com>
11664 Andrew Burgess <andrew.burgess@embecosm.com>
11665 Pedro Alves <palves@redhat.com>
11666
11667 * infrun.c (fetch_inferior_event): Use scope_exit.
11668 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11669 * top.c (execute_command): Use scope_exit.
11670 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11671 * utils.c (do_bpstat_clear_actions_cleanup)
11672 (make_bpstat_clear_actions_cleanup): Remove.
11673
4c41382a
TT
116742019-01-23 Tom Tromey <tom@tromey.com>
11675 Pedro Alves <palves@redhat.com>
11676
11677 * infrun.c: Include "common/scope-exit.h"
11678 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11679 (wait_for_inferior): Use SCOPE_EXIT.
11680 (fetch_inferior_event): Use scope_exit.
11681
89f8fb50
TT
116822019-01-23 Tom Tromey <tom@tromey.com>
11683 Pedro Alves <palves@redhat.com>
11684
11685 * breakpoint.c (create_breakpoint): Remove cleanup.
11686
5419bdae
TT
116872019-01-23 Tom Tromey <tom@tromey.com>
11688 Andrew Burgess <andrew.burgess@embecosm.com>
11689 Pedro Alves <palves@redhat.com>
11690
e587ef42
PA
116912019-01-23 Pedro Alves <palves@redhat.com>
11692
11693 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11694
77f0e74c
PA
116952019-01-23 Pedro Alves <palves@redhat.com>
11696 Andrew Burgess <andrew.burgess@embecosm.com>
11697
11698 * gdbthread.h: Include "common/forward-scope-exit.h".
11699 (scoped_finish_thread_state): Redefine custom class in terms of
11700 forward_scope_exit.
11701
5b9b3e53
PA
117022019-01-23 Pedro Alves <palves@redhat.com>
11703 Andrew Burgess <andrew.burgess@embecosm.com>
11704
11705 * common/forward-scope-exit.h: New file.
11706
54b65c9b
PA
117072019-01-23 Pedro Alves <palves@redhat.com>
11708 Andrew Burgess <andrew.burgess@embecosm.com>
11709 Tom Tromey <tom@tromey.com>
11710
11711 * common/scope-exit.h: New file.
11712
cf08fb29
PA
117132019-01-23 Pedro Alves <palves@redhat.com>
11714
11715 * common/preprocessor.h (ESC): Rename to ...
11716 (ESC_PARENS): ... this.
11717 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11718 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11719
ae73e2e2
TT
117202019-01-23 Tom Tromey <tom@tromey.com>
11721
11722 * language.h (class scoped_switch_to_sym_language_if_auto):
11723 Initialize m_lang in both cases.
11724
6594e122
AH
117252019-01-23 Alan Hayward <alan.hayward@arm.com>
11726
11727 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11728 with XCNEW.
11729
a7c9855d
TT
117302019-01-22 Tom Tromey <tom@tromey.com>
11731
11732 * corelow.c: Do not include sys/file.h.
11733
93cc1d53
TT
117342019-01-22 Tom Tromey <tom@tromey.com>
11735
11736 * tui/tui-wingeneral.h: Include gdb_curses.h.
11737
38561778
TT
117382019-01-22 Tom Tromey <tom@tromey.com>
11739
11740 * source-cache.h (class source_cache) <get_source_lines,
11741 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11742
37b3ab5b
TT
117432019-01-22 Tom Tromey <tom@tromey.com>
11744
11745 * remote-fileio.h (struct remote_target): Declare.
11746
3fabc016
TT
117472019-01-22 Tom Tromey <tom@tromey.com>
11748
11749 * python/py-arch.c: Do not include py-ref.h.
11750 * python/py-bpevent.c: Do not include py-ref.h.
11751 * python/py-cmd.c: Do not include py-ref.h.
11752 * python/py-continueevent.c: Do not include py-ref.h.
11753 * python/py-event.h: Do not include py-ref.h.
11754 * python/py-evtregistry.c: Do not include py-ref.h.
11755 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11756 * python/py-frame.c: Do not include py-ref.h.
11757 * python/py-framefilter.c: Do not include py-ref.h.
11758 * python/py-function.c: Do not include py-ref.h.
11759 * python/py-infevents.c: Do not include py-ref.h.
11760 * python/py-linetable.c: Do not include py-ref.h.
11761 * python/py-objfile.c: Do not include py-ref.h.
11762 * python/py-param.c: Do not include py-ref.h.
11763 * python/py-prettyprint.c: Do not include py-ref.h.
11764 * python/py-progspace.c: Do not include py-ref.h.
11765 * python/py-symbol.c: Do not include py-ref.h.
11766 * python/py-symtab.c: Do not include py-ref.h.
11767 * python/py-type.c: Do not include py-ref.h.
11768 * python/py-unwind.c: Do not include py-ref.h.
11769 * python/py-utils.c: Do not include py-ref.h.
11770 * python/py-value.c: Do not include py-ref.h.
11771 * python/py-varobj.c: Do not include py-ref.h.
11772 * python/py-xmethods.c: Do not include py-ref.h.
11773 * python/python.c: Do not include py-ref.h.
11774 * varobj.c: Do not include py-ref.h.
11775
6b4d7774
TT
117762019-01-22 Tom Tromey <tom@tromey.com>
11777
11778 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11779 keyword for bcache.
11780
7af7e9b5
TT
117812019-01-22 Tom Tromey <tom@tromey.com>
11782
11783 * compile/compile-cplus-types.c: Remove a comment by #include.
11784
951d1049
TT
117852019-01-22 Tom Tromey <tom@tromey.com>
11786
11787 * compile/gcc-c-plugin.h: Include compile-internal.h.
11788
d65d5705
TT
117892019-01-22 Tom Tromey <tom@tromey.com>
11790
11791 * stabsread.c (EXTERN): Do not define.
11792 (symnum, next_symbol_text_func, processing_gcc_compilation)
11793 (within_function, global_sym_chain, global_stabs)
11794 (previous_stab_code, this_object_header_files)
11795 (n_this_object_header_files)
11796 (n_allocated_this_object_header_files): Define.
11797 * stabsread.h (EXTERN): Never define. Use "extern".
11798
b6fb1ee5
PW
117992019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11800
11801 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11802 history_value.
11803
be6d4f74
TT
118042019-01-21 Tom Tromey <tom@tromey.com>
11805
11806 * ui-out.c: Fix includes.
11807 * tui/tui-source.c: Fix includes.
11808 * target.c: Fix includes.
11809 * remote.c: Fix includes.
11810 * regcache.c: Fix includes.
11811 * python/py-block.c: Fix includes.
11812 * printcmd.c: Fix includes.
11813 * or1k-tdep.c: Fix includes.
11814 * mi/mi-main.c: Fix includes.
11815 * m32r-tdep.c: Fix includes.
11816 * csky-tdep.c: Fix includes.
11817 * compile/compile-cplus-types.c: Fix includes.
11818 * cli/cli-interp.c: Fix includes.
11819
73021deb
AH
118202019-01-21 Alan Hayward <alan.hayward@arm.com>
11821
11822 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11823 for padding.
11824
7932255d
TT
118252019-01-16 Tom Tromey <tom@tromey.com>
11826
11827 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11828 earlier.
11829 (struct objfile) <msymbols_range>: Move from top level.
11830 <msymbols>: New method.
11831 (class objfile_msymbols): Remove.
11832 * symtab.c (default_collect_symbol_completion_matches_break_on):
11833 Update.
11834 * symmisc.c (dump_msymbols): Update.
11835 * stabsread.c (scan_file_globals): Update.
11836 * objc-lang.c (info_selectors_command, info_classes_command)
11837 (find_methods): Update.
11838 * minsyms.c (find_solib_trampoline_target): Update.
11839 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11840 * coffread.c (coff_symfile_read): Update.
11841 * ada-lang.c (ada_lookup_simple_minsym)
11842 (ada_collect_symbol_completion_matches): Update.
11843
604b1bfb
TT
118442019-01-16 Tom Tromey <tom@tromey.com>
11845
11846 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11847 type. Remove no-argument constructor.
11848 <iterator::operator++>: Simplify.
11849 <begin>: Update.
11850 <end>: Use minimal_symbol_count.
11851
f252c6d5
TT
118522019-01-16 Tom Tromey <tom@tromey.com>
11853
11854 * objfiles.h (struct objfile) <psymtabs>: New method.
11855 (class objfile_psymtabs): Remove.
11856 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11857 typedef.
11858 <range>: New method.
11859 (require_partial_symbols): Change return type.
11860 * psymtab.c (require_partial_symbols)
11861 (psym_expand_symtabs_matching): Update.
11862 * mdebugread.c (parse_partial_symbols): Update.
11863 * dbxread.c (dbx_end_psymtab): Update.
11864
b669c953
TT
118652019-01-15 Tom Tromey <tom@tromey.com>
11866
11867 * symtab.c (lookup_objfile_from_block)
11868 (lookup_symbol_in_objfile_symtabs)
11869 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11870 (find_line_symtab, info_sources_command)
11871 (default_collect_symbol_completion_matches_break_on)
11872 (make_source_files_completion_list): Update.
11873 * symmisc.c (print_objfile_statistics, dump_objfile)
11874 (maintenance_print_symbols, maintenance_info_symtabs)
11875 (maintenance_check_symtabs, maintenance_info_line_tables):
11876 Update.
11877 * source.c (select_source_symtab)
11878 (forget_cached_source_info_for_objfile): Update.
11879 * objfiles.h (class objfile_compunits): Remove.
11880 (struct objfile) <compunits_range>: New typedef.
11881 (compunits): New method.
11882 * objfiles.c (objfile_relocate1): Update.
11883 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11884 * maint.c (count_symtabs_and_blocks): Update.
11885 * linespec.c (iterate_over_all_matching_symtabs): Update.
11886 * cp-support.c (add_symbol_overload_list_qualified): Update.
11887 * coffread.c (coff_symtab_read): Update.
11888 * ada-lang.c (add_nonlocal_symbols)
11889 (ada_collect_symbol_completion_matches)
11890 (ada_add_global_exceptions): Update.
11891
7e955d83
TT
118922019-01-15 Tom Tromey <tom@tromey.com>
11893
11894 * progspace.h (program_space) <objfiles_safe_range>: New
11895 typedef.
11896 <objfiles_safe>: New method.
11897 * objfiles.h (class all_objfiles_safe): Remove.
11898 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11899 * jit.c (jit_inferior_exit_hook): Update.
11900
2030c079
TT
119012019-01-17 Tom Tromey <tom@tromey.com>
11902
11903 * progspace.h (program_space) <objfiles_range>: New typedef.
11904 <objfiles>: New method.
11905 <objfiles_head>: Rename from objfiles.
11906 (object_files): Update.
11907 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11908 * guile/scm-pretty-print.c
11909 (ppscm_find_pretty_printer_from_objfiles): Update.
11910 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11911 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11912 Update.
11913 * python/py-progspace.c (pspy_get_objfiles): Update.
11914 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11915 Update.
11916 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11917 (objfpy_lookup_objfile_by_build_id): Update.
11918 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11919 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11920 Update.
11921 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11922 (expand_symtab_containing_pc, lookup_objfile_from_block)
11923 (lookup_static_symbol, basic_lookup_transparent_type)
11924 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11925 (find_line_symtab, info_sources_command)
11926 (default_collect_symbol_completion_matches_break_on)
11927 (make_source_files_completion_list, find_main_name): Update.
11928 * symmisc.c (print_symbol_bcache_statistics)
11929 (print_objfile_statistics, maintenance_print_symbols)
11930 (maintenance_print_msymbols, maintenance_print_objfiles)
11931 (maintenance_info_symtabs, maintenance_check_symtabs)
11932 (maintenance_expand_symtabs, maintenance_info_line_tables):
11933 Update.
11934 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11935 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11936 (map_overlay_command, unmap_overlay_command)
11937 (simple_overlay_update, expand_symtabs_matching)
11938 (map_symbol_filenames): Update.
11939 * symfile-debug.c (set_debug_symfile): Update.
11940 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11941 Update.
11942 * source.c (select_source_symtab, forget_cached_source_info):
11943 Update.
11944 * solib.c (solib_read_symbols): Update.
11945 * solib-spu.c (append_ocl_sos): Update.
11946 * psymtab.c (maintenance_print_psymbols)
11947 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11948 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11949 * printcmd.c (info_symbol_command): Update.
11950 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11951 Update.
11952 * objfiles.h (class all_objfiles): Remove.
11953 * objfiles.c (have_partial_symbols, have_full_symbols)
11954 (have_minimal_symbols, qsort_cmp, update_section_map)
11955 (shared_objfile_contains_address_p)
11956 (default_iterate_over_objfiles_in_search_order): Update.
11957 * objc-lang.c (info_selectors_command, info_classes_command)
11958 (find_methods): Update.
11959 * minsyms.c (find_solib_trampoline_target): Update.
11960 * maint.c (maintenance_info_sections)
11961 (maintenance_translate_address, count_symtabs_and_blocks):
11962 Update.
11963 * main.c (captured_main_1): Update.
11964 * linux-thread-db.c (try_thread_db_load_from_pdir)
11965 (has_libpthread): Update.
11966 * linespec.c (iterate_over_all_matching_symtabs)
11967 (search_minsyms_for_name): Update.
11968 * jit.c (jit_find_objf_with_entry_addr): Update.
11969 * hppa-tdep.c (find_unwind_entry)
11970 (hppa_lookup_stub_minimal_symbol): Update.
11971 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11972 Update.
11973 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11974 (elf_gnu_ifunc_resolve_by_got): Update.
11975 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11976 * dwarf-index-write.c (save_gdb_index_command): Update.
11977 * cp-support.c (add_symbol_overload_list_qualified): Update.
11978 * breakpoint.c (create_overlay_event_breakpoint)
11979 (create_longjmp_master_breakpoint)
11980 (create_std_terminate_master_breakpoint)
11981 (create_exception_master_breakpoint): Update.
11982 * blockframe.c (find_pc_partial_function): Update.
11983 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11984 (ada_collect_symbol_completion_matches)
11985 (ada_add_global_exceptions): Update.
11986
776489e0
TT
119872019-01-17 Tom Tromey <tom@tromey.com>
11988
11989 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11990 declare VEC.
11991 (solib_target_parse_libraries): Change return type.
11992 (library_list_start_segment, library_list_start_section)
11993 (library_list_end_library, library_list_start_library); Update.
11994 (solib_target_free_library_list): Remove.
11995 (solib_target_parse_libraries): Remove cleanup. Change return
11996 type.
11997 (solib_target_current_sos): Update.
11998
6471e7d2
TT
119992019-01-17 Tom Tromey <tromey@bapiya>
12000
12001 * valprint.c: Replace "the the" with "the".
12002 * symtab.c: Replace "the the" with "the".
12003 * solib.c: Replace "the the" with "the".
12004 * solib-dsbt.c: Replace "the the" with "the".
12005 * linespec.c: Replace "the the" with "the".
12006 * dwarf2loc.h: Replace "the the" with "the".
12007 * amd64-windows-tdep.c: Replace "the the" with "the".
12008 * aarch64-tdep.c: Replace "the the" with "the".
12009
c24bdb02
KS
120102019-01-16 Keith Seitz <keiths@redhat.com>
12011
12012 PR gdb/23773
12013 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12014 <builder>: Rename to ..
12015 <m_builder>: ... this and make private.
12016 (dwarf2_cu::get_builder): New method. Change all users of
12017 `builder' to use this method.
12018 (dwarf2_start_symtab): Move to ...
12019 (dwarf2_cu::start_symtab): ... here. Update all callers
12020 (setup_type_unit_groups): Move to ...
12021 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12022 callers.
12023 (dwarf2_cu::reset_builder): New method.
12024 (process_full_compunit, process_full_type_unit): Use
12025 dwarf2_cu::reset_builder.
12026 (follow_die_offset): Record the ancestor CU if it is different
12027 from the followed DIE's CU.
12028 (follow_die_sig_1): Likewise.
12029
8d64371b
TT
120302019-01-15 Tom Tromey <tom@tromey.com>
12031
12032 * remote.c (class remote_state) <buf>: Now a char_vector.
12033 <buf_size>: Remove.
12034 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12035 parameter.
12036 (remote_target::getpkt_or_notif_sane_1)
12037 (remote_target::getpkt_sane)
12038 (remote_target::getpkt_or_notif_sane): Likewise.
12039 (class remote_target) <putpkt>: New overload.
12040 (remote_target::read_frame): Change type of "buf_p". Remove
12041 sizeof_p parameter.
12042 (packet_ok): New overload.
12043 (packet_check_result): New overload.
12044 Update all uses.
12045
bb277751
TT
120462019-01-14 Tom Tromey <tom@tromey.com>
12047
12048 * remote-notif.c (handle_notification, remote_notif_ack)
12049 (remote_notif_parse): Make "buf" const.
12050 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12051 const.
12052 (remote_notif_parse, remote_notif_ack, handle_notification):
12053 Likewise.
12054 * remote.c (remote_notif_stop_parse): Make "buf" const.
12055 (remote_target::remote_parse_stop_reply): Make "buf" const.
12056 (remote_notif_stop_ack): Make "buf" const.
12057
05be00a8
TT
120582019-01-14 Tom Tromey <tom@tromey.com>
12059
12060 * remote.c (remote_console_output): Make parameter const.
12061
491adeca
TT
120622019-01-14 Tom Tromey <tom@tromey.com>
12063
12064 * target-debug.h (target_debug_print_signals): Constify.
12065 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12066 * procfs.c (procfs_target::pass_signals): Update.
12067 * linux-nat.c (linux_nat_target::pass_signals): Update.
12068 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12069 * target-delegates.c: Rebuild.
12070 * remote.c (remote_target::program_signals): Update.
12071 (remote_target::pass_signals): Update.
12072 * target.c (target_pass_signals): Constify argument.
12073 (target_program_signals): Likewise.
12074 * target.h (struct target_ops) <pass_signals, program_signals>:
12075 Constify argument.
12076 (target_pass_signals, target_program_signals): Constify argument.
12077
bbd94648
TT
120782019-01-14 Tom Tromey <tom@tromey.com>
12079
12080 PR tui/28819:
12081 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12082
6f072a10
PFC
120832019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12084
12085 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12086 field.
12087 * rs6000-tdep.c: Include reggroups.h.
12088 (IS_V_ALIAS_PSEUDOREG): Define.
12089 (rs6000_register_name): Return names for the "vX" aliases.
12090 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12091 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12092 aliases. Call default_register_reggroup_p for all other
12093 pseudo-registers.
12094 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12095 New functions.
12096 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12097 Handle "vX" aliases.
12098 (v_alias_pseudo_register_collect): New function.
12099 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12100 (rs6000_gdbarch_init): Initialize "vX" aliases as
12101 pseudo-registers. Restore registration of
12102 rs6000_pseudo_register_reggroup_p with
12103 set_tdesc_pseudo_register_reggroup_p.
12104
1a782351
MF
121052019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12106
12107 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12108 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12109 set_gdbarch_num_pseudo_regs.
12110
d73cff18
PW
121112019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12112
12113 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12114 Remove arg prefixname, add do_set and do_show.
12115 Add member functions set_list and show_list.
12116 * cli/cli-style.c (class cli_style_option): Update accordingly.
12117 (style_set_list): Move to file scope.
12118 (style_show_list): Likewise.
12119 (set_style): Call help_list.
12120 (show_style): Call cmd_show_list.
12121 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12122 Update to use the new macro.
12123
60a90376
JB
121242019-10-12 Joel Brobecker <brobecker@adacore.com>
12125
12126 * ada-lang.c (_initialize_ada_language): Expand the help text
12127 for the "catch exception" command.
12128
9d7c67bf
PW
121292019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12130
12131 * symtab.c (matching_obj_sections): Initialize obj,
12132 declare it closer to its usage.
12133
7cf47dc4
TT
121342019-01-10 Tom Tromey <tom@tromey.com>
12135
12136 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12137 (basic_inf_threads_range): Remove.
12138 (inf_threads_range, inf_non_exited_threads_range)
12139 (safe_inf_threads_range): Use next_adapter.
12140
d3cb6808
KS
121412019-01-10 Keith Seitz <keiths@redhat.com>
12142
12143 PR gdb/23712
12144 PR symtab/23010
12145 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12146 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12147
63a20375
KS
121482019-01-10 Keith Seitz <keiths@redhat.com>
12149
12150 PR gdb/23712
12151 PR symtab/23010
12152 * dictionary.c (pending_to_vector): Remove.
12153 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12154 Remove _1 suffix, replacing functions of the same name. Update
12155 all callers.
12156 (dict_create_hashed, dict_create_hashed_expandable)
12157 (dict_create_linear, dict_create_linear_expandable, dict_free)
12158 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12159 Make functions static.
12160
b026f593
KS
121612019-01-10 Keith Seitz <keiths@redhat.com>
12162
12163 PR gdb/23712
12164 PR symtab/23010
12165 * dictionary.h (struct dictionary): Replace declaration with
12166 multidictionary.
12167 (dict_create_hashed, dict_create_hashed_expandable)
12168 (dict_create_linear, dict_create_linear_expandable)
12169 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12170 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12171 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12172 taking multidictionary argument.
12173 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12174 * block.h (struct block) <dict>: Change to multidictionary
12175 and rename `multidict'.
12176 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12177 symmisc.c: Update all dictionary references to multidictionary.
12178
c7748ee9
KS
121792019-01-10 Keith Seitz <keiths@redhat.com>
12180
12181 PR gdb/23712
12182 PR symtab/23010
12183 * dictionary.c: Include unordered_map.
12184 (pending_to_vector): New function.
12185 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12186 Rewrite the non-"_1" functions to take vector instead
12187 of linked list.
12188 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12189 "new" _1 versions of the same name.
12190 (multidictionary): Define.
12191 (std::hash<enum language): New definition.
12192 (collate_pending_symbols_by_language, mdict_create_hashed)
12193 (mdict_create_hashed_expandable, mdict_create_linear)
12194 (mdict_create_linear_expandable, mdict_free)
12195 (find_language_dictionary, create_new_language_dictionary)
12196 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12197 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12198 (mdict_size, mdict_empty): New functions.
12199 * dictionary.h (mdict_iterator): Define.
12200
67aa1f3c
PA
122012019-01-10 Pedro Alves <palves@redhat.com>
12202
12203 * breakpoint.c (read_uploaded_action)
12204 (create_tracepoint_from_upload): Adjust to use
12205 gdb::unique_xmalloc_ptr.
12206 * ctf.c (ctf_write_uploaded_tp):
12207 (SET_ARRAY_FIELD): Use emplace_back.
12208 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12209 * tracefile-tfile.c (tfile_write_uploaded_tp):
12210 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12211 gdb::unique_xmalloc_ptr.
12212 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12213 at_string, cond_string, cmd_strings>: Replace char pointers
12214 with gdb::unique_xmalloc_ptr.
12215
2f667667
PA
122162019-01-10 Pedro Alves <palves@redhat.com>
12217
12218 * solib-target.c (library_list_start_library): Don't xstrdup name.
12219
36cb7237
PA
122202019-01-10 Pedro Alves <palves@redhat.com>
12221
12222 * mdebugread.c (parse_partial_symbols): Use
12223 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12224
da584958
AB
122252019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12226
12227 * linux-fork.c (scoped_switch_fork_info)
12228 <~scoped_switch_fork_info>: Fix incorrect variable name.
12229
1ef8573c
AB
122302019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12231
12232 * linux-fork.c (scoped_switch_fork_info)
12233 <scoped_switch_fork_info>: Make explicit.
12234 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12235
8d7bcccb
TT
122362019-01-10 Tom Tromey <tom@tromey.com>
12237
12238 * objfiles.h (objfile::reset_psymtabs): Update.
12239 * objfiles.c (objfile::objfile): Update.
12240 * psymtab.h (psymtab_storage::obstack): Update.
12241 (psymtab_storage::m_obstack): Use gdb::optional.
12242 (class psymtab_storage): Update comment. Remove objfile
12243 parameter.
12244 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12245
b596a3c7
TT
122462019-01-10 Tom Tromey <tom@tromey.com>
12247
12248 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12249 <free_psymtabs>: Now private.
12250 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12251 (allocate_psymtab): Use new method.
12252
a9342b62
TT
122532019-01-10 Tom Tromey <tom@tromey.com>
12254
12255 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12256 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12257 * mdebugread.c (parse_partial_symbols): Use
12258 allocate_dependencies.
12259 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12260 allocate_dependencies.
12261 (process_psymtab_comp_unit_reader)
12262 (build_type_psymtab_dependencies): Likewise.
12263 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12264
5af70966
TT
122652019-01-10 Tom Tromey <tom@tromey.com>
12266
12267 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12268 PSYMBOL_SET_LANGUAGE.
12269 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12270
5923a04c
TT
122712019-01-10 Tom Tromey <tom@tromey.com>
12272
12273 * psymtab.h (psymtab_storage::obstack): New method.
12274 <m_obstack>: Rename from obstack; now private.
12275 * psymtab.c (psymtab_storage): Update.
12276 * dwarf2read.c (create_addrmap_from_index)
12277 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12278 Update.
12279
6d6a12bf
TT
122802019-01-10 Tom Tromey <tom@tromey.com>
12281
12282 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12283 * objfiles.h (objfile::reset_psymtabs): New method.
12284
d320c2b5
TT
122852019-01-10 Tom Tromey <tom@tromey.com>
12286
12287 * symmisc.c (print_symbol_bcache_statistics): Update.
12288 (print_objfile_statistics): Update.
12289 * symfile.c (reread_symbols): Update.
12290 * psymtab.h (class psymtab_storage): New.
12291 * psymtab.c (psymtab_storage): New constructor.
12292 (~psymtab_storage): New destructor.
12293 (require_partial_symbols): Update.
12294 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12295 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12296 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12297 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12298 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12299 (start_psymtab_common, end_psymtab_common)
12300 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12301 (allocate_psymtab): Update.
12302 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12303 Update.
12304 (dump_psymtab_addrmap, maintenance_print_psymbols)
12305 (maintenance_check_psymtabs): Update.
12306 (class objfile_psymtabs): Move to objfiles.h.
12307 * psympriv.h (discard_psymtab): Now inline.
12308 (psymtab_discarder::psymtab_discarder): Update.
12309 (psymtab_discarder::~psymtab_discarder): Update.
12310 (ALL_OBJFILE_PSYMTABS): Rewrite.
12311 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12312 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12313 Remove fields.
12314 <partial_symtabs>: New field.
12315 (class objfile_psymtabs): Move from psymtab.h. Update.
12316 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12317 psymbol_cache.
12318 (objfile::~objfile): Don't destroy psymbol_cache.
12319 * mdebugread.c (parse_partial_symbols): Update.
12320 * dwarf2read.c (create_addrmap_from_index)
12321 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12322 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12323 (add_partial_subprogram, dwarf2_ranges_read): Update.
12324 * dwarf-index-write.c (write_address_map)
12325 (write_one_signatured_type, recursively_write_psymbols)
12326 (class debug_names, class debug_names, write_psymtabs_to_index):
12327 Update.
12328
1d94a5a3
TT
123292019-01-10 Tom Tromey <tom@tromey.com>
12330
12331 * symtab.h (SYMBOL_SET_NAMES): Update.
12332 (symbol_set_names): Update.
12333 (MSYMBOL_SET_NAMES): Update.
12334 * symtab.c (symbol_set_names): Change argument to be an
12335 objfile_per_bfd_storage.
12336 * psymtab.c (add_psymbol_to_bcache): Update.
12337 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12338
0f14768a
TT
123392019-01-10 Tom Tromey <tom@tromey.com>
12340
12341 * symtab.c (create_demangled_names_hash): Change argument to be an
12342 objfile_per_bfd_storage.
12343 (symbol_set_names): Update.
12344
6eee24ce
TT
123452019-01-10 Tom Tromey <tom@tromey.com>
12346
12347 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12348 init_psymbol_list.
12349 * psymtab.c (init_psymbol_list): Do nothing if already called.
12350 * psympriv.h (init_psymbol_list): Add comment.
12351 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12352 init_psymbol_list.
12353 * dbxread.c (dbx_symfile_read): Unconditionally call
12354 init_psymbol_list.
12355
75aedd27
TT
123562019-01-10 Tom Tromey <tom@tromey.com>
12357
12358 * xcoffread.c (scan_xcoff_symtab): Update.
12359 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12360 "where".
12361 * mdebugread.c (parse_partial_symbols)
12362 (handle_psymbol_enumerators): Update.
12363 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12364 * dbxread.c (read_dbx_symtab): Update.
12365 * psympriv.h (psymbol_placement): New enum.
12366 (add_psymbol_to_list): Update.
12367
939652a5
TT
123682019-01-10 Tom Tromey <tom@tromey.com>
12369
12370 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12371 static_psymbols parameters.
12372 (scan_xcoff_symtab): Update.
12373 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12374 static_psymbols parameters.
12375 * psympriv.h (start_psymtab_common): Update.
12376 * mdebugread.c (parse_partial_symbols): Update.
12377 * dwarf2read.c (create_partial_symtab): Update.
12378 * dbxread.c (read_dbx_symtab): Update.
12379 (start_psymtab): Remove global_psymbols and static_psymbols
12380 parameters.
12381
baa62830
TT
123822019-01-10 Tom Tromey <tom@tromey.com>
12383
12384 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12385 * psymtab.c (allocate_psymtab): Add comment.
12386 * psympriv.h (allocate_psymtab): Add comment.
12387 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12388 initializations.
12389 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12390
0e8f53ba
TT
123912019-01-10 Tom Tromey <tom@tromey.com>
12392
12393 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12394 Don't declare.
12395 * mipsread.c: Include mdebugread.h.
12396 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12397 Declare.
12398 * elfread.c: Include mdebugread.h.
12399
b22a7c6a
TT
124002019-01-09 Tom Tromey <tom@tromey.com>
12401
12402 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12403 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12404 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12405 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12406 (psym_lookup_symbol, psym_find_last_source_symtab)
12407 (psym_forget_cached_source_info, psym_print_stats)
12408 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12409 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12410 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12411 (psym_find_compunit_symtab_by_address)
12412 (maintenance_print_psymbols, maintenance_info_psymtabs)
12413 (maintenance_check_psymtabs): Use ranged for.
12414 * psymtab.h (class objfile_psymtabs): New.
12415 (require_partial_symbols): Return objfile_psymtabs.
12416 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12417
3b9d3ac2
TT
124182019-01-09 Tom Tromey <tom@tromey.com>
12419
12420 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12421 (find_pc_mapped_section, list_overlays_command)
12422 (map_overlay_command, unmap_overlay_command)
12423 (simple_overlay_update): Use all_objfiles.
12424 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12425 * printcmd.c (info_symbol_command): Use all_objfiles.
12426 * objfiles.h (ALL_OBJSECTIONS): Remove.
12427 * maint.c (maintenance_translate_address): Use all_objfiles.
12428 * gcore.c (gcore_create_callback): Use all_objfiles.
12429 (objfile_find_memory_regions): Likewise.
12430
8b31193a
TT
124312019-01-09 Tom Tromey <tom@tromey.com>
12432
12433 * symtab.c (find_line_symtab, info_sources_command)
12434 (make_source_files_completion_list): Use objfile_compunits.
12435 * source.c (select_source_symtab): Use objfile_compunits.
12436 * objfiles.h (struct objfile): Update comment.
12437 (ALL_OBJFILES): Remove.
12438 (ALL_FILETABS): Remove.
12439 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12440 objfile_compunits.
12441
d5da8b3c
TT
124422019-01-09 Tom Tromey <tom@tromey.com>
12443
12444 * symmisc.c (print_objfile_statistics, dump_objfile)
12445 (maintenance_print_symbols): Use compunit_filetabs.
12446 * source.c (forget_cached_source_info_for_objfile): Use
12447 compunit_filetabs.
12448 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12449 (ALL_FILETABS): Use compunit_filetabs.
12450 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12451 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12452
5accd1a0
TT
124532019-01-09 Tom Tromey <tom@tromey.com>
12454
12455 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12456 (compunit_filetabs): New.
12457 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12458 compunit_filetabs.
12459 (info_sources_command, make_source_files_completion_list): Remove
12460 declaration.
12461 * symmisc.c (print_objfile_statistics, dump_objfile)
12462 (maintenance_print_symbols): Remove declaration.
12463 (maintenance_info_symtabs): Use compunit_filetabs.
12464 (maintenance_info_line_tables): Likewise.
12465 * source.c (select_source_symtab): Change local variable name.
12466 (forget_cached_source_info_for_objfile): Remove declaration.
12467 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12468 * objfiles.c (objfile_relocate1): Remove declaration.
12469 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12470 declaration.
12471 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12472 * coffread.c (coff_symtab_read): Remove declaration.
12473 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12474 compunit_filetabs.
12475
d8aeb77f
TT
124762019-01-09 Tom Tromey <tom@tromey.com>
12477
12478 * symtab.c (lookup_objfile_from_block)
12479 (find_pc_sect_compunit_symtab, search_symbols)
12480 (default_collect_symbol_completion_matches_break_on): Use
12481 objfile_compunits.
12482 * objfiles.h (ALL_COMPUNITS): Remove.
12483 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12484 * cp-support.c (add_symbol_overload_list_qualified): Use
12485 objfile_compunits.
12486 * ada-lang.c (ada_collect_symbol_completion_matches)
12487 (ada_add_global_exceptions): Use objfile_compunits.
12488
592553c4
TT
124892019-01-09 Tom Tromey <tom@tromey.com>
12490
12491 * source.c (select_source_symtab)
12492 (forget_cached_source_info_for_objfile): Remove declaration.
12493 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12494 declaration.
12495 * maint.c (count_symtabs_and_blocks): Remove declaration.
12496 * cp-support.c (add_symbol_overload_list_qualified): Remove
12497 declaration.
12498 * coffread.c (coff_symtab_read): Remove declaration.
12499 * symtab.c (lookup_symbol_in_objfile_symtabs)
12500 (basic_lookup_transparent_type_1): Use objfile_compunits.
12501 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12502 (info_sources_command, search_symbols)
12503 (default_collect_symbol_completion_matches_break_on)
12504 (make_source_files_completion_list): Remove declaration.
12505 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12506 (ada_collect_symbol_completion_matches)
12507 (ada_add_global_exceptions): Remove declaration.
12508 * linespec.c (iterate_over_all_matching_symtabs): Use
12509 objfile_compunits.
12510 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12511 (class objfile_compunits): New.
12512 (ALL_COMPUNITS): Use objfile_compunits.
12513 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12514 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12515 objfile_compunits.
12516 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12517
5325b9bf
TT
125182019-01-09 Tom Tromey <tom@tromey.com>
12519
12520 * symtab.c (search_symbols)
12521 (default_collect_symbol_completion_matches_break_on): Use
12522 objfile_msymbols.
12523 * ada-lang.c (ada_lookup_simple_minsym)
12524 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12525 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12526 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12527 objfile_msymbols.
12528 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12529 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12530 * objc-lang.c (find_methods): Use objfile_msymbols.
12531 (info_selectors_command, info_classes_command): Likewise.
12532 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12533 * objfiles.h (class objfile_msymbols): New.
12534 (ALL_OBJFILE_MSYMBOLS): Remove.
12535 (ALL_MSYMBOLS): Remove.
12536
cac85af2
TT
125372019-01-09 Tom Tromey <tom@tromey.com>
12538
12539 * common/next-iterator.h (next_adapter): Add Iterator template
12540 parameter.
12541 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12542 (class all_objfiles_safe): New.
12543 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12544 * objfiles.c (put_objfile_before): Update comment.
12545 (add_separate_debug_objfile): Likewise.
12546 (free_all_objfiles): Use all_objfiles_safe.
12547 (objfile_purge_solibs): Likewise.
12548
aed57c53
TT
125492019-01-09 Tom Tromey <tom@tromey.com>
12550
12551 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12552 (expand_symtab_containing_pc, lookup_static_symbol)
12553 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12554 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12555 all_objfiles.
12556 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12557 * breakpoint.c (create_overlay_event_breakpoint)
12558 (create_longjmp_master_breakpoint)
12559 (create_std_terminate_master_breakpoint)
12560 (create_exception_master_breakpoint): Use all_objfiles.
12561 * linux-thread-db.c (try_thread_db_load_from_pdir)
12562 (has_libpthread): Use all_objfiles.
12563 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12564 * linespec.c (iterate_over_all_matching_symtabs)
12565 (search_minsyms_for_name): Use all_objfiles.
12566 * maint.c (maintenance_info_sections): Use all_objfiles.
12567 * main.c (captured_main_1): Use all_objfiles.
12568 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12569 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12570 * guile/scm-pretty-print.c
12571 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12572 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12573 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12574 (maintenance_print_msymbols): Use all_objfiles.
12575 * source.c (select_source_symtab): Use all_objfiles.
12576 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12577 * symfile.c (remove_symbol_file_command)
12578 (expand_symtabs_matching, map_symbol_filenames): Use
12579 all_objfiles.
12580 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12581 all_objfiles.
12582 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12583 * objc-lang.c (find_methods): Use all_objfiles.
12584 * objfiles.c (have_partial_symbols, have_full_symbols)
12585 (have_minimal_symbols, qsort_cmp)
12586 (default_iterate_over_objfiles_in_search_order): Use
12587 all_objfiles.
12588 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12589 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12590 (maintenance_check_psymtabs): Use all_objfiles.
12591 (ALL_PSYMTABS): Remove.
12592 * compile/compile-object-run.c (do_module_cleanup): Use
12593 all_objfiles.
12594 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12595 * cp-support.c (add_symbol_overload_list_qualified): Use
12596 all_objfiles.
12597 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12598 Use all_objfiles.
12599 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12600 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12601 all_objfiles.
12602 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12603 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12604 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12605 Uses all_objfiles.
12606 * solib.c (solib_read_symbols): Use all_objfiles
12607
99d89cde
TT
126082019-01-09 Tom Tromey <tom@tromey.com>
12609
12610 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12611 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12612 all_objfiles.
12613 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12614 * symmisc.c (print_symbol_bcache_statistics)
12615 (print_objfile_statistics, maintenance_print_objfiles)
12616 (maintenance_info_symtabs, maintenance_check_symtabs)
12617 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12618 all_objfiles.
12619 * source.c (forget_cached_source_info): Use all_objfiles.
12620 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12621 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12622 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12623 * objfiles.c (update_section_map): Use all_objfiles.
12624 (shared_objfile_contains_address_p): Likewise.
12625 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12626 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12627
21708325
TT
126282019-01-09 Tom Tromey <tom@tromey.com>
12629
12630 * common/next-iterator.h: New file.
12631 * objfiles.h (class all_objfiles): New.
12632 (struct objfile_iterator): New.
12633
669e09f6
PW
126342019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12635
12636 * NEWS: Move the description of the changed "frame", "select-frame",
12637 and "info frame" commands to the Changed commands section.
12638
041be526
SM
126392019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12640
12641 * gdbtypes.c (check_stub_method_group): Remove handling of old
12642 mangling schemes.
12643 * linespec.c (find_methods): Likewise.
12644 * stabsread.c (read_member_functions): Likewise.
12645 * valops.c (search_struct_method): Likewise.
12646 (value_struct_elt_for_reference): Likewise.
12647 * NEWS: Mention this change.
12648
0e2a2133
AB
126492019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12650
12651 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12652 print_source_lines.
12653 * source.c (print_source_lines_base): Update line number check.
12654 (print_source_lines): New function.
12655 (source_lines_range::source_lines_range): New function.
12656 * source.h (class source_lines_range): New class.
12657 (print_source_lines): New declaration.
12658
1055a3b4
PW
126592019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12660
12661 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12662
cfeadda5
TT
126632019-01-08 Tom Tromey <tom@tromey.com>
12664 Simon Marchi <simon.marchi@ericsson.com>
12665
12666 PR gdb/24060
12667 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12668 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12669 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12670 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12671 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12672 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12673
583068ca
AB
126742019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12675
12676 * source.c (select_source_symtab): Move header comment to
12677 declaration in source.h.
12678 (forget_cached_source_info_for_objfile): Likewise.
12679 (forget_cached_source_info): Likewise.
12680 (identify_source_line): Likewise.
12681 * source.h (identify_source_line): Move declaration from symtab.h
12682 and add comment from source.c
12683 (print_source_lines): Likewise.
12684 (forget_cached_source_info_for_objfile): Likewise.
12685 (forget_cached_source_info): Likewise.
12686 (select_source_symtab): Likewise.
12687 (enum print_source_lines_flag): Move definition from symtab.h.
12688 * symtab.h (identify_source_line): Move declaration to source.h.
12689 (print_source_lines): Likewise.
12690 (forget_cached_source_info_for_objfile): Likewise.
12691 (forget_cached_source_info): Likewise.
12692 (select_source_symtab): Likewise.
12693 (enum print_source_lines_flag): Move definition to source.h.
12694 * tui/tui-hooks.c: Add 'source.h' include.
12695
ec98a4ad
AB
126962019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12697
12698 * source.c (print_source_lines_base): Handle requests to print
12699 reverse line number sequences, and guard against empty lines
12700 string.
12701
62ea19c1
AB
127022019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12703
12704 * source.c (print_source_lines_base): Fix skip of '\r' if next
12705 character is '\n'.
12706
9d30e1fd
TT
127072019-01-06 Tom Tromey <tom@tromey.com>
12708
12709 * c-exp.y (struct c_parse_state) <macro_original_text,
12710 expansion_obstack>: New member.
12711 (macro_original_text, expansion_obstack): Remove globals.
12712 (scan_macro_expansion, scanning_macro_expansion)
12713 (finished_macro_expansion): Update.
12714 (scan_macro_cleanup): Remove.
12715 (yylex, c_parse): Update.
12716
c65bac38
TT
127172019-01-06 Tom Tromey <tom@tromey.com>
12718
12719 * c-exp.y (struct c_parse_state) <strings>: New member.
12720 (operator_stoken): Update.
12721
02e12e38
TT
127222019-01-06 Tom Tromey <tom@tromey.com>
12723
12724 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12725 (union type_stack_elt) <typelist_val>: Now a pointer to
12726 std::vector.
12727 (type_stack_cleanup): Don't declare.
12728 (push_typelist): Update.
12729 * parse.c (pop_typelist): Return a std::vector.
12730 (push_typelist): Take a std::vector.
12731 (follow_types): Update. Do not free args.
12732 (type_stack_cleanup): Remove.
12733 * c-exp.y (struct c_parse_state): New.
12734 (cpstate): New global.
12735 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12736 (nonempty_typelist): Update.
12737 (func_mod): Create a new vector.
12738 (c_parse): Create a c_parse_state.
12739 (check_parameter_typelist): Do not delete params.
12740 (function_method): Update. Do not delete type_list.
12741
f097f5ad
TT
127422019-01-06 Tom Tromey <tom@tromey.com>
12743
12744 PR gdb/28155:
12745 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12746 check_typedef.
12747 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12748 (print_return_value): Likewise.
12749
d2adf9f1
TT
127502019-01-05 Tom Tromey <tom@tromey.com>
12751
12752 * contrib/cleanup_check.py: Remove.
12753 * contrib/gcc-with-excheck: Remove.
12754 * contrib/exsummary.py: Remove.
12755 * contrib/excheck.py: Remove.
12756
2eab46b1
JB
127572019-01-05 Joel Brobecker <brobecker@adacore.com>
12758
12759 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12760 NULL. Initialize tpprev to NULL instead of assigning it
12761 to NULL on the next statement.
12762 * windows-nat.c (windows_delete_thread): Remove check for
12763 main_thread_id before printing thread exit notifications.
12764 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12765 Remove thread ID check against main_thread_id.
12766 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12767 windows_delete_thread.
12768 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12769
48c5e7e2
TT
127702019-01-04 Tom Tromey <tom@tromey.com>
12771
12772 * compile/compile.c (_initialize_compile): Use upper case for
12773 metasyntactic variables.
12774 * symmisc.c (_initialize_symmisc): Use upper case for
12775 metasyntactic variables.
12776 * psymtab.c (_initialize_psymtab): Use upper case for
12777 metasyntactic variables.
12778 * demangle.c (demangle_command): Use upper case for metasyntactic
12779 variables.
12780 (_initialize_demangler): Likewise.
12781 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12782 variables.
12783
986041cd
TT
127842019-01-03 Tom Tromey <tom@tromey.com>
12785
12786 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12787
7c711119
TT
127882019-01-03 Tom Tromey <tom@tromey.com>
12789
12790 * python/py-symtab.c (salpy_str): Update.
12791 (struct salpy_sal_object) <symtab>: Now a PyObject.
12792 (salpy_dealloc): Update.
12793 (del_objfile_sal): Use gdbpy_ref.
12794
1b20edf0
TT
127952019-01-03 Tom Tromey <tom@tromey.com>
12796
12797 * python/py-type.c (convert_field): Use new_reference. Return
12798 gdbpy_ref.
12799 (make_fielditem): Return gdbpy_ref.
12800 (typy_fields): Update.
12801 (typy_getitem): Update.
12802 (field_name): Return gdbpy_ref. Use new_reference.
12803 (typy_iterator_iternext): Update.
12804
ea41325b
TT
128052019-01-03 Tom Tromey <tom@tromey.com>
12806
12807 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12808
2a3c71d6
TT
128092019-01-03 Tom Tromey <tom@tromey.com>
12810
12811 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12812 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12813 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12814 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12815 (pspy_set_type_printers): Likewise.
12816 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12817 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12818 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12819 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12820 (objfpy_set_type_printers): Likewise.
12821
5c329e6a
TT
128222019-01-03 Tom Tromey <tom@tromey.com>
12823
12824 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12825 (gdbpy_print_stack): Use gdbpy_err_fetch.
12826 * python/python-internal.h (class gdbpy_err_fetch): New class.
12827 (class gdbpy_enter) <m_error_type, m_error_value,
12828 m_error_traceback>: Remove.
12829 <m_error>: New member.
12830 (gdbpy_exception_to_string): Don't declare.
12831 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12832 * python/py-value.c (convert_value_from_python): Use
12833 gdbpy_err_fetch.
12834 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12835 gdbpy_exception_to_string.
12836 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12837 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12838 gdbpy_err_fetch.
12839
169bb27b
AB
128402019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12841
12842 * linux-nat.c (delete_lwp_cleanup): Delete.
12843 (struct lwp_deleter): New struct.
12844 (lwp_info_up): New typedef.
12845 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12846 lwp_info_up.
12847
a07c8880
AB
128482019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12849
12850 * linux-fork.c (class scoped_switch_fork_info): New class.
12851 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12852
26089c49
AB
128532019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12854
12855 * valops.c (find_overload_match): Remove use of null_cleanup, and
12856 calls to do_cleanups.
12857
06d3e5b0
AB
128582019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12859
12860 * compile/compile-cplus-types.c
12861 (compile_cplus_instance::decl_name): Handle changes to
12862 cp_func_name.
12863 * cp-support.c (cp_func_name): Update header comment, update
12864 return type.
12865 * cp-support.h (cp_func_name): Update return type in declaration.
12866 * valops.c (find_overload_match): Move temp_func local to top
12867 level of function and change its type. Use temp_func to hold and
12868 delete temporary string obtained from cp_func_name.
12869
66644cd3
AB
128702019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12871
12872 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12873 gdb::char_vector, remove cleanup, and update uses of `msg`.
12874
592d8c0a
JW
128752019-01-03 Jim Wilson <jimw@sifive.com>
12876
12877 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12878
c55d06ec
TT
128792019-01-02 Tom Tromey <tom@tromey.com>
12880
12881 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12882 (tdesc_parse_xml): Remove cleanups.
12883 * target-descriptions.h (make_cleanup_free_target_description):
12884 Don't declare.
12885 (target_desc_deleter): New struct.
12886 (target_desc_up): New typedef.
12887 * target-descriptions.c (target_desc_deleter::operator()): Rename
12888 from free_target_description.
12889 (make_cleanup_free_target_description): Remove.
12890
3a6ae42d
TT
128912019-01-02 Tom Tromey <tom@tromey.com>
12892
12893 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12894 constructor, destructor.
12895 (linespec_parser): Remove typedef.
12896 (~linespec_parser): Rename from linespec_parser_delete.
12897 (linespec_lex_to_end, linespec_complete_label)
12898 (linespec_complete): Update.
12899 (decode_line_full): Remove cleanups.
12900 (decode_line_1): Update.
12901
61fd3e73
TT
129022019-01-02 Tom Tromey <tom@tromey.com>
12903
12904 * python/python-internal.h (inferior_to_inferior_object): Change
12905 return type.
12906 * python/py-exitedevent.c (create_exited_event_object): Update.
12907 * python/py-inferior.c (inferior_to_inferior_object): Return
12908 gdbpy_ref.
12909 (python_new_inferior, python_inferior_deleted)
12910 (thread_to_thread_object, delete_thread_object)
12911 (build_inferior_list, gdbpy_selected_inferior): Update.
12912 * python/py-infthread.c (create_thread_object): Update. Also fail
12913 if inferior_to_inferior_object fails.
12914
d20172fc
SM
129152019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12916
12917 * inferior.h (class inferior) <displaced_step_state>: New field.
12918 * infrun.h (struct displaced_step_state): Move here from
12919 infrun.c. Initialize fields, add constructor.
12920 <inf>: Remove field.
12921 <reset>: New method.
12922 * infrun.c (struct displaced_step_inferior_state): Move to
12923 infrun.h.
12924 (displaced_step_inferior_states): Remove.
12925 (get_displaced_stepping_state): Adust.
12926 (displaced_step_in_progress_any_inferior): Adjust.
12927 (displaced_step_in_progress_thread): Adjust.
12928 (displaced_step_in_progress): Adjust.
12929 (add_displaced_stepping_state): Remove.
12930 (get_displaced_step_closure_by_addr): Adjust.
12931 (remove_displaced_stepping_state): Remove.
12932 (infrun_inferior_exit): Call displaced_step_state.reset.
12933 (use_displaced_stepping): Don't check for NULL.
12934 (displaced_step_prepare_throw): Call
12935 get_displaced_stepping_state.
12936 (displaced_step_fixup): Don't check for NULL.
12937 (prepare_for_detach): Don't check for NULL.
12938
e3319240
PW
129392019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12940
12941 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12942 in case of call that did not complete.
12943
5d36dfb9
AU
129442019-01-02 Andrey Utkin <autkin@undo.io>
12945
12946 * symfile.c (find_separate_debug_file): Fix search of debug files for
12947 remote debuggee.
12948
8833fbf0
TT
129492019-01-02 Tom Tromey <tom@tromey.com>
12950
12951 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12952 indentation.
12953 * python/py-frame.c (frapy_older): Remove cast.
12954 (frapy_newer): Likewise.
12955 * python/py-breakpoint.c (local_setattro): Remove cast.
12956 * python/py-arch.c (archpy_name): Remove local variable.
12957 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12958
4ada3dfd
JB
129592019-01-02 Joel Brobecker <brobecker@adacore.com>
12960
12961 * unittests/basic_string_view/element_access/char/empty.cc:
12962 Fix year range in copyright header.
12963
113b7b81
AB
129642019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12965
12966 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12967 Delete.
12968 <operator==>: Update with for removed field.
12969 <hash>: Likewise.
12970 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12971 <isa_features>: ...this.
12972 <abi_features>: New field.
12973 (riscv_isa_flen): Update comment.
12974 (riscv_abi_xlen): New declaration.
12975 (riscv_abi_flen): New declaration.
12976 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12977 isa_features.
12978 (riscv_abi_xlen): New function.
12979 (riscv_isa_flen): Update to get answer from isa_features.
12980 (riscv_abi_flen): New function.
12981 (riscv_has_fp_abi): Update to get answer from abi_features.
12982 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12983 xlen and flen.
12984 (riscv_call_info) <xlen, flen>: Update comment.
12985 (riscv_call_arg_struct): Remove invalid assertions
12986 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12987 is removed.
12988 (riscv_gdbarch_init): Gather isa features and abi features
12989 separately, ensure both match on the gdbarch when reusing an old
12990 gdbarch. Relax an error check to allow 32-bit abi float to run on
12991 a target with 64-bit float hardware.
12992
b18ca514
PW
129932019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12994
12995 * source.c (search_command_helper): Stop reverse search
12996 when line 1 has been searched.
12997
ec70d8db
PW
129982019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12999
13000 * record-full.c (record_full_base_target::close): Rewrite
13001 record_full_core_buf_list free logic.
13002
5b38f9c1
PW
130032019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13004
13005 * break-catch-syscall.c (print_one_catch_syscall): xfree
13006 the last text.
13007
66d91b39
JB
130082019-01-01 Joel Brobecker <brobecker@adacore.com>
13009
13010 * top.c (print_gdb_version): Update Copyright year in version
13011 message.
13012
42a4f53d
JB
130132019-01-01 Joel Brobecker <brobecker@adacore.com>
13014
13015 Update copyright year range in all GDB files.
13016
7e955d83 130172019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 13018
5bbd631d 13019 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 13020
5bbd631d 13021For older changes see ChangeLog-2018.
c906108c
SS
13022\f
13023Local Variables:
13024mode: change-log
13025left-margin: 8
13026fill-column: 74
13027version-control: never
57da7796 13028coding: utf-8
c906108c 13029End:
5bbd631d 13030
This page took 2.708314 seconds and 4 git commands to generate.