1 2019-07-09 Tom Tromey <tom@tromey.com>
3 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5 * configure.ac: Change common to gdbsupport.
6 * gdbsupport: Rename from common.
7 * acinclude.m4: Change common to gdbsupport.
8 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
9 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
11 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
12 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
13 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
14 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
15 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
16 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
17 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
18 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
19 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
20 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
21 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
22 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
23 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
24 coff-pe-read.c, command.h, compile/compile-c-support.c,
25 compile/compile-c.h, compile/compile-cplus-symbols.c,
26 compile/compile-cplus-types.c, compile/compile-cplus.h,
27 compile/compile-loc2c.c, compile/compile.c, completer.c,
28 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
29 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
30 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
31 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
32 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
33 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
34 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
35 features/aarch64-core.c, features/aarch64-fpu.c,
36 features/aarch64-pauth.c, features/aarch64-sve.c,
37 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
38 features/i386/32bit-core.c, features/i386/32bit-linux.c,
39 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
40 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
41 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
42 features/i386/64bit-core.c, features/i386/64bit-linux.c,
43 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
44 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
45 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
46 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
47 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
48 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
49 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
50 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
51 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
52 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
53 go32-nat.c, guile/guile.c, guile/scm-ports.c,
54 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
55 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
56 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
57 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
58 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
59 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
60 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
61 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
62 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
63 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
64 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
65 minsyms.c, mips-linux-tdep.c, namespace.h,
66 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
67 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
68 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
69 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
70 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
71 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
72 nat/linux-waitpid.c, nat/mips-linux-watch.c,
73 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
74 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
75 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
76 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
77 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
78 procfs.c, producer.c, progspace.h, psymtab.h,
79 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
80 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
81 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
82 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
83 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
84 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
85 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
86 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
87 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
88 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
89 target-memory.c, target.c, target.h, target/waitstatus.c,
90 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
91 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
92 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
93 unittests/array-view-selftests.c,
94 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
95 unittests/common-utils-selftests.c,
96 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
97 unittests/format_pieces-selftests.c,
98 unittests/function-view-selftests.c,
99 unittests/lookup_name_info-selftests.c,
100 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
101 unittests/mkdir-recursive-selftests.c,
102 unittests/observable-selftests.c,
103 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
104 unittests/parse-connection-spec-selftests.c,
105 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
106 unittests/scoped_fd-selftests.c,
107 unittests/scoped_mmap-selftests.c,
108 unittests/scoped_restore-selftests.c,
109 unittests/string_view-selftests.c, unittests/style-selftests.c,
110 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
111 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
112 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
113 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
114 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
115 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
117 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
119 * linespec.c (decode_digits_list_mode): Set explicit_line to a
121 (decode_digits_ordinary): Set explicit_line field in sal.
122 * symtab.c (skip_prologue_sal): Don't skip prologue for a
123 symtab_and_line that was set on an explicit line number in
124 assembler code. Do always update the recorded symtab and line if
125 we do skip the prologue.
127 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
129 * breakpoint.c (set_breakpoint_location_function): Remove
130 explicit_loc parameter.
131 (momentary_breakpoint_from_master): Update call to
132 set_breakpoint_location_function.
133 (add_location_to_breakpoint): Likewise.
135 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
137 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
138 required features based on default bfd type when no specific bfd
141 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
143 * NEWS: Mention that GDB printf and eval commands can now print
144 C-style and Ada-style convenience var strings without
145 calling the inferior.
146 * printcmd.c (printf_c_string): Locally print GDB internal var
147 instead of transiting via the inferior.
148 (printf_wide_c_string): Likewise.
150 2019-07-04 Alan Hayward <alan.hayward@arm.com>
152 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
154 2019-07-04 Tom Tromey <tom@tromey.com>
157 * tui/tui-winsource.c (tui_clear_source_content): Update.
158 (tui_source_window_base::set_is_exec_point_at): Fix comment.
159 (tui_update_breakpoint_info): Update.
160 (tui_set_exec_info_content): Update.
161 * tui/tui-source.c (tui_set_source_content_nil): Update.
162 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
164 * tui/tui-data.h (enum tui_bp_flag): New.
165 (tui_bp_flags): New enum flags type.
166 (struct tui_source_element) <break_mode>: Change type. Rename
168 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
169 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
171 * tui/tui-winsource.h: Fix comment.
173 2019-07-04 Alan Hayward <alan.hayward@arm.com>
175 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
176 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
177 (store_fpregs_to_thread)
178 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
179 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
180 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
181 (IWMMXT_REGS_SIZE): Add define.
182 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
183 (fetch_vfp_regs, store_vfp_regs)
184 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
185 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
187 2019-07-04 Alan Hayward <alan.hayward@arm.com>
189 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
191 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
192 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
193 (ARM_INT_REGISTER_SIZE): ...to this.
194 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
195 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
196 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
197 (arm_linux_collect_gregset, supply_nwfpe_register)
198 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
200 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
201 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
202 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
203 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
204 (arm_return_in_memory, arm_store_return_value)
205 (arm_get_longjmp_target, arm_register_g_packet_guesses)
206 (arm_record_ld_st_multiple): Likewise.
207 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
208 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
210 2019-07-04 Alan Hayward <alan.hayward@arm.com>
212 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
213 AARCH64_DISPLACED_MODIFIED_INSNS.
214 * aarch64-tdep.c (struct aarch64_displaced_step_data)
215 (aarch64_displaced_step_copy_insn): Likewise.
216 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
217 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
218 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
219 ARM_DISPLACED_MODIFIED_INSNS.
220 * arm-tdep.c (arm_gdbarch_init): Likewise.
221 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
222 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
223 (struct arm_displaced_step_closure): Use
224 ARM_DISPLACED_MODIFIED_INSNS.
226 2019-07-04 Alan Hayward <alan.hayward@arm.com>
228 * features/Makefile: Remove unused xml files.
229 * features/aarch64.xml: Remove.
230 * features/i386/amd64-avx-avx512-linux.xml: Remove.
231 * features/i386/amd64-avx-avx512.xml: Remove.
232 * features/i386/amd64-avx-linux.xml: Remove.
233 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
234 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
235 * features/i386/amd64-avx-mpx-linux.xml: Remove.
236 * features/i386/amd64-avx-mpx.xml: Remove.
237 * features/i386/amd64-avx.xml: Remove.
238 * features/i386/amd64-linux.xml: Remove.
239 * features/i386/amd64-mpx-linux.xml: Remove.
240 * features/i386/amd64-mpx.xml: Remove.
241 * features/i386/amd64.xml: Remove.
242 * features/i386/i386-avx-avx512-linux.xml: Remove.
243 * features/i386/i386-avx-avx512.xml: Remove.
244 * features/i386/i386-avx-linux.xml: Remove.
245 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
246 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
247 * features/i386/i386-avx-mpx-linux.xml: Remove.
248 * features/i386/i386-avx-mpx.xml: Remove.
249 * features/i386/i386-avx.xml: Remove.
250 * features/i386/i386-linux.xml: Remove.
251 * features/i386/i386-mmx-linux.xml: Remove.
252 * features/i386/i386-mmx.xml: Remove.
253 * features/i386/i386-mpx-linux.xml: Remove.
254 * features/i386/i386-mpx.xml: Remove.
255 * features/i386/i386.xml: Remove.
256 * features/i386/x32-avx-avx512-linux.xml: Remove.
257 * features/i386/x32-avx-linux.xml: Remove.
258 * features/i386/x32-linux.xml: Remove.
260 2019-07-04 Alan Hayward <alan.hayward@arm.com>
262 * regformats/aarch64.dat: Remove.
263 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
264 * regformats/i386/amd64-avx-linux.dat: Remove.
265 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
266 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
267 * regformats/i386/amd64-linux.dat: Remove.
268 * regformats/i386/amd64-mpx-linux.dat: Remove.
269 * regformats/i386/amd64.dat: Remove.
270 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
271 * regformats/i386/i386-avx-linux.dat: Remove.
272 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
273 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
274 * regformats/i386/i386-linux.dat: Remove.
275 * regformats/i386/i386-mmx-linux.dat: Remove.
276 * regformats/i386/i386-mpx-linux.dat: Remove.
277 * regformats/i386/i386.dat: Remove.
278 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
279 * regformats/i386/x32-avx-linux.dat: Remove.
280 * regformats/i386/x32-linux.dat: Remove.
282 2019-07-04 Alan Hayward <alan.hayward@arm.com>
284 * aarch64-tdep.c: Remove xml self tests.
285 * amd64-linux-tdep.c: Likewise.
286 * amd64-tdep.c: Likewise.
287 * i386-linux-tdep.c: Likewise.
288 * i386-tdep.c: Likewise.
290 2019-07-03 Pedro Alves <palves@redhat.com>
293 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
294 (pipe_cmd_option_defs): New.
295 (make_pipe_cmd_options_def_group): New.
296 (pipe_command): Use gdb::option::process_options.
297 (pipe_command_completer): New function.
298 (_initialize_cli_cmds): Install completer for "pipe" command.
300 2019-07-03 Pedro Alves <palves@redhat.com>
302 * cli/cli-option.c (union option_value) <string>: New field.
303 (struct option_def_and_value): Add ctor, move ctor, dtor and
304 use DISABLE_COPY_AND_ASSIGN.
305 (option_def_and_value::clear_value): New.
306 (parse_option, save_option_value_in_ctx, get_val_type_str)
307 (add_setshow_cmds_for_options): Handle var_string.
308 * cli-option.h (union option_def::var_address) <string>: New
310 (struct string_option_def): New.
311 * maint-test-options.c (struct test_options_opts): Add default
312 ctor and use DISABLE_COPY_AND_ASSIGN.
313 <string_opt>: New field.
314 (test_options_opts::~test_options_opts): New.
315 (test_options_opts::dump): Also dump "-string".
316 (test_options_option_defs): Install "string.
318 2019-07-03 Pedro Alves <palves@redhat.com>
320 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
321 option_value with a null enumeration.
322 (complete_options): Save the option values in the context.
323 (save_option_value_in_ctx): New, factored out from ...
324 (process_options): ... here.
325 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
327 * maint-test-options.c (test_options_opts::dump): New, factored
329 (maintenance_test_options_command_mode): ... here.
330 (maintenance_test_options_command_completion_result): Delete.
331 (maintenance_test_options_command_completion_text): Update
333 (maintenance_show_test_options_completion_result): Change
334 prototype. Just print
335 maintenance_test_options_command_completion_text.
336 (save_completion_result): New.
337 (maintenance_test_options_completer_mode): Pass options context to
338 complete_options, and then save a dump.
339 (_initialize_maint_test_options): Use add_cmd to install "maint
340 show test-options-completion-result".
342 2019-07-03 Pedro Alves <palves@redhat.com>
344 * NEWS (New commands): Mention "with" and "maint with".
345 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
346 (with_command, with_command_completer): New.
347 (pipe_command): Adjust to new repeat_previous
349 (_initialize_cli_cmds): Install the "with" command and its "w"
351 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
353 * cli/cli-setshow.c (parse_cli_var_uinteger)
354 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
355 argument strings for all var_types.
356 (get_setshow_command_value_string): New, factored out from ...
357 (do_show_command): ... this.
358 * cli/cli-setshow.h: Include <string>.
359 (get_setshow_command_value_string): Declare.
360 * command.h (repeat_previous): Now returns const char *. Adjust
362 * maint.c: Include "cli/cli-cmds.h".
363 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
364 (_initialize_maint_cmds): Register the "maintenance with" command.
365 * top.c (repeat_previous): Move bits from pipe_command here:
366 Return the saved command line, if any; error out if there's no
369 2019-07-03 Pedro Alves <palves@redhat.com>
371 * NEWS (New commands): Mention "maint set/show test-settings"
372 instead of "maint test-settings".
373 * maint-test-settings.c (maintenance_test_settings_list): Delete.
374 (maintenance_test_settings_set_list): Rename to ...
375 (maintenance_set_test_settings_list): ... this.
376 (maintenance_test_settings_show_list): Rename to ...
377 (maintenance_show_test_settings_list): ... this.
378 (maintenance_test_settings_cmd): Delete.
379 (maintenance_test_settings_set_cmd): ...
380 (maintenance_set_test_settings_cmd): ... this.
381 (maintenance_test_settings_show_cmd): ...
382 (maintenance_show_test_settings_cmd): ... this.
383 (maintenance_test_settings_show_value_cmd):
384 (maintenance_show_test_settings_value_cmd): ... this.
385 (_initialize_maint_test_settings): No longer install the "maint
386 test-settings" prefix command. Rename "maint test-settings set"
387 to "maint set test-settings", and "maint test-settings show" to
388 "maint show test-settings". Adjust all subcommands.
390 2019-07-03 Pedro Alves <palves@redhat.com>
392 * maint-test-settings.c: Fix file's intro comment. Replace all
393 references to "test-options" with references to "test-settings",
396 2019-07-03 Pedro Alves <palves@redhat.com>
398 * maint-test-settings.c (maintenance_test_settings_xxx)
399 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
401 (maintenance_test_settings_enums): Use them.
402 (maintenance_test_settings_enum): Default to
403 maintenance_test_settings_xxx.
404 (_initialize_maint_test_settings): Initialize
405 MAINTENANCE_TEST_SETTINGS_FILENAME.
407 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
409 * breakpoint.h (remove_breakpoints_inf): Change return type to
410 void, move function documentation here.
411 * breakpoint.c (remove_breakpoints_inf): Change return type to
412 void, move function documentation to header.
414 2019-07-02 Pedro Alves <palves@redhat.com>
416 * NEWS (Completion improvements): Mention "info threads".
417 * thread.c (struct info_threads_opts, info_threads_option_defs)
418 (make_info_threads_options_def_group): New.
419 (info_threads_command): Use gdb::option::process_options.
420 (info_threads_command_completer): New.
421 (_initialize_thread): Use gdb::option::build_help to build the
422 help text for "info threads".
424 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
426 * defs.h (generic_load): Move from here...
427 * symfile.h (generic_load): ... to here. Rename name parameter
429 * symfile.c (generic_load): Add comment.
431 2019-07-01 Tom Tromey <tromey@adacore.com>
434 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
435 declaration of without_params. Fix formatting.
437 2019-07-01 Tom Tromey <tromey@adacore.com>
439 * ada-exp.y (find_primitive_type): Update.
440 * ada-lang.h (ada_lookup_symbol): Update.
441 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
443 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
445 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
448 * gdbarch.c: Regenerate.
449 * gdbarch.h: Regenerate.
450 * gdbarch.sh: Add 'stap_adjust_register'.
451 * i386-tdep.c: Include '<unordered_set>'.
452 (i386_stap_adjust_register): New function.
453 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
454 * stap-probe.c (stap_parse_register_operand): Call
455 'gdbarch_stap_adjust_register'.
457 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
460 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
461 * python/python.c (do_start_initialization): Use 'xmalloc'
462 instead of 'PyMem_Malloc'.
464 2019-06-28 Tom Tromey <tromey@adacore.com>
466 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
469 2019-06-27 Tom Tromey <tromey@adacore.com>
471 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
473 (arm_find_mapping_symbol, arm_record_special_symbol)
474 (_initialize_arm_tdep): Update.
475 (arm_objfile_data_free): Remove.
477 2019-06-27 Tom Tromey <tromey@adacore.com>
479 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
480 to cp_print_static_field.
482 2019-06-26 Tom Tromey <tromey@adacore.com>
484 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
485 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
488 2019-06-26 Alan Hayward <alan.hayward@arm.com>
490 * features/aarch64-core.c (create_feature_aarch64_core):
492 * features/aarch64-core.xml: Add cpsr flags.
494 2019-06-26 Alan Hayward <alan.hayward@arm.com>
496 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
497 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
499 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
501 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
503 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
505 (arm_record_special_symbol): Don't insert new symbol in sorted
506 position, push it at the end.
508 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
510 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
511 (arm_mapping_symbol_s): Remove.
512 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
513 (arm_mapping_symbol_vec): New typedef.
514 (struct arm_per_objfile): Add constructor.
515 <section_maps>: Change type to
516 std::unique_ptr<arm_mapping_symbol_vec[]>.
517 (arm_compare_mapping_symbols): Remove.
518 (arm_find_mapping_symbol): Adjust to section_maps type change.
519 (arm_objfile_data_free): Call delete on arm_per_objfile.
520 (arm_record_special_symbol): Adjust to section_maps type change.
521 Allocate arm_per_objfile with new.
523 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
525 * cli/cli-cmds.c (alias_command): Compare the alias prefix
526 with the command prefix.
528 2019-06-25 Tom Tromey <tom@tromey.com>
530 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
531 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
533 2019-06-25 Tom Tromey <tom@tromey.com>
535 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
537 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
540 2019-06-25 Tom Tromey <tom@tromey.com>
542 * tui/tui-winsource.c
543 (tui_source_window_base::set_is_exec_point_at): Add check against
546 2019-06-25 Tom Tromey <tom@tromey.com>
548 * tui/tui-source.c (tui_set_source_content): Don't check before
550 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
552 2019-06-25 Tom Tromey <tom@tromey.com>
554 * tui/tui-winsource.h (tui_update_source_window_as_is)
555 (tui_alloc_source_buffer, tui_line_is_displayed)
556 (tui_addr_is_displayed): Change type of win_info.
557 * tui/tui-winsource.c (tui_update_source_window_as_is)
558 (tui_clear_source_content, tui_show_source_line)
559 (tui_show_source_content, tui_source_window_base::refill)
560 (tui_source_window_base::set_is_exec_point_at)
561 (tui_source_window_base::set_is_exec_point_at)
562 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
563 (tui_alloc_source_buffer, tui_line_is_displayed)
564 (tui_addr_is_displayed): Change type of win_info. Update.
565 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
566 (tui_source_window_base::do_make_visible_with_new_height):
568 * tui/tui-source.c (tui_set_source_content)
569 (tui_set_source_content_nil)
570 (tui_source_window::do_scroll_vertical): Update.
571 * tui/tui-layout.c (show_layout): Update.
572 * tui/tui-disasm.c (tui_set_disassem_content)
573 (tui_disasm_window::do_scroll_vertical): Update.
574 * tui/tui-data.h (tui_win_content): Remove.
575 (struct tui_gen_win_info) <content, content_size>: Remove.
576 (struct tui_source_element): Add initializers and destructor.
577 (union tui_which_element, struct tui_win_element): Remove.
578 (struct tui_source_window_base) <content>: New field.
579 (struct tui_data_window): Remove destructor.
580 (tui_alloc_content, tui_free_win_content)
581 (tui_free_all_source_wins_content): Don't declare.
582 * tui/tui-data.c (tui_initialize_static_data): Update.
583 (init_content_element, tui_alloc_content): Remove.
584 (~tui_gen_win_info): Update.
585 (~tui_data_window, tui_free_all_source_wins_content)
586 (tui_free_win_content, free_content, free_content_elements):
589 2019-06-25 Tom Tromey <tom@tromey.com>
591 * tui/tui-winsource.h (tui_clear_source_content)
592 (tui_erase_source_content, tui_show_source_content): Change type
594 * tui/tui-winsource.c (tui_clear_source_content)
595 (tui_erase_source_content, tui_show_source_content): Change type
597 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
598 * tui/tui-source.h (tui_set_source_content_nil): Change type of
600 * tui/tui-source.c (tui_set_source_content_nil): Change type of
602 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
604 2019-06-25 Tom Tromey <tom@tromey.com>
606 * tui/tui-winsource.c (tui_clear_source_content)
607 (tui_source_window_base::set_is_exec_point_at): Update.
608 * tui/tui-source.c (tui_set_source_content_nil): Update.
609 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
611 * tui/tui-data.c (init_content_element): Update.
613 2019-06-25 Tom Tromey <tom@tromey.com>
615 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
616 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
617 * tui/tui-layout.c (init_and_make_win): Update.
618 * tui/tui.h (enum tui_win_type): Update.
619 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
620 tui_win_is_auxillary.
621 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
622 tui_win_is_auxillary.
624 2019-06-25 Tom Tromey <tom@tromey.com>
626 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
627 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
628 (tui_delete_data_content_windows, tui_display_all_data)
629 (tui_data_window::do_scroll_vertical, tui_display_data_from):
631 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
632 * tui/tui-regs.c (tui_last_regs_line_no)
633 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
634 (tui_show_registers): Update.
635 (tui_show_register_group): Return void. Update.
636 (tui_display_registers_from, tui_display_reg_element_at_line)
637 (tui_display_registers_from_line, tui_check_register_values):
639 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
641 (struct tui_data_window) <regs_content>: Now a std::vector.
642 <regs_content_count>: Remove.
643 (tui_add_content_elements, tui_free_data_content): Don't declare.
644 * tui/tui-data.c (tui_data_window::clear_detail): Update.
645 (init_content_element): Remove DATA_WIN case. Add assert.
646 (tui_add_content_elements): Remove.
647 (tui_data_window): Update.
648 (tui_free_data_content): Remove.
649 (free_content_elements): Remove DATA_WIN case.
651 2019-06-25 Tom Tromey <tom@tromey.com>
653 * tui/tui-data.c (tui_data_item_window): Update.
654 * tui/tui-windata.h (tui_check_data_values): Don't declare.
655 * tui/tui-windata.c (tui_display_all_data)
656 (tui_display_data_from_line): Update.
657 (tui_check_data_values): Remove.
658 * tui/tui-regs.c (tui_show_register_group)
659 (tui_display_reg_element_at_line): Update.
660 * tui/tui-hooks.c (tui_register_changed)
661 (tui_refresh_frame_and_register_information): Call
662 tui_check_register_values.
663 * tui/tui-data.h (struct tui_data_window) <data_content,
664 data_content_count, data_type>: Remove.
665 (enum tui_data_type): Remove.
667 * tui/tui-data.c (tui_data_window::clear_detail)
668 (~tui_data_window): Update.
670 2019-06-25 Tom Tromey <tom@tromey.com>
672 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
674 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
675 Rename from tui_first_data_item_displayed. Update.
676 (tui_data_window::refresh_all)
677 (tui_data_window::do_scroll_vertical): Update.
678 * tui/tui-data.h (struct tui_data_window)
679 <first_data_item_displayed>: Declare new method.
681 2019-06-25 Tom Tromey <tom@tromey.com>
683 * tui/tui-data.h (tui_init_generic_part): Don't declare.
684 * tui/tui-data.c (tui_init_generic_part): Remove, moving
686 (tui_initialize_static_data): ...here.
688 2019-06-25 Tom Tromey <tom@tromey.com>
690 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
691 (tui_display_registers_from, tui_check_register_values): Update.
692 (tui_display_register): Remove win_info parameter; update.
693 (tui_get_register): Change type of parameters.
694 * tui/tui-data.h (struct tui_data_element): Remove.
695 (union tui_which_element) <data>: Remove.
696 <data_window>: Change type.
697 (struct tui_data_item_window): New.
698 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
700 (~tui_data_item_window): New destructor.
701 (free_content_elements): Remove DATA_ITEM_WIN case.
703 2019-06-25 Tom Tromey <tom@tromey.com>
705 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
708 2019-06-25 Tom Tromey <tom@tromey.com>
710 * tui/tui-data.h (struct tui_command_element): Remove.
711 (union tui_which_element) <command>: Remove.
712 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
714 (free_content_elements): Remove CMD_WIN case.
716 2019-06-25 Tom Tromey <tom@tromey.com>
718 * tui/tui-layout.c (tui_set_layout): Update.
719 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
720 * tui/tui-data.c (layout_def): Update.
722 2019-06-25 Tom Tromey <tom@tromey.com>
724 * tui/tui-wingeneral.c (tui_refresh_all): Update.
725 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
726 (tui_source_window_base::set_new_height): Update.
727 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
729 (tui_set_locator_fullname, tui_set_locator_info)
730 (tui_show_frame_info): Update.
731 * tui/tui-source.c (tui_set_source_content)
732 (tui_source_is_displayed): Update.
733 * tui/tui-layout.c (show_source_disasm_command, show_data)
734 (show_source_or_disasm_and_command): Update.
735 * tui/tui-disasm.c (tui_set_disassem_content)
736 (tui_get_begin_asm_address): Update.
737 * tui/tui-data.h (struct tui_locator_element): Remove.
738 (union tui_which_element) <locator>: Remove.
739 (struct tui_locator_window): New.
740 (tui_locator_win_info_ptr): Change return type.
741 * tui/tui-data.c (_locator): Change type.
742 (tui_locator_win_info_ptr): Change return type.
743 (init_content_element): Remove LOCATOR_WIN case. Add assert.
744 (tui_alloc_content): Add assert.
746 2019-06-25 Tom Tromey <tom@tromey.com>
748 * tui/tui-winsource.c
749 (tui_exec_info_window::maybe_allocate_content): New method.
750 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
751 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
752 (make_source_or_disasm_window): Add cast.
753 * tui/tui-data.h (union tui_which_element) <simple_string>:
755 (struct tui_source_info): New.
756 (struct tui_source_window_base) <execution_info>: Change type.
757 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
758 case, and add assert.
759 (tui_alloc_content): Add assert.
761 2019-06-25 Tom Tromey <tom@tromey.com>
763 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
764 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
765 * tui/tui-data.c (tui_alloc_win_info): Remove.
767 2019-06-25 Tom Tromey <tom@tromey.com>
769 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
770 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
773 2019-06-25 Tom Tromey <tom@tromey.com>
775 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
776 make_visible_with_new_height method.
777 (tui_win_info::make_visible_with_new_height): New method.
778 (tui_source_window_base::do_make_visible_with_new_height)
779 (tui_data_window::do_make_visible_with_new_height)
780 (tui_cmd_window::do_make_visible_with_new_height): New methods.
781 (make_visible_with_new_height): Remove.
782 (tui_resize_all, tui_adjust_win_heights): Use
783 make_visible_with_new_height method.
784 * tui/tui-data.h (struct tui_win_info)
785 <do_make_visible_with_new_height, make_visible_with_new_height>:
787 (struct tui_source_window_base, struct tui_data_window)
788 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
791 2019-06-25 Tom Tromey <tom@tromey.com>
793 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
795 (update_tab_width): Call update_tab_width method.
796 * tui/tui-data.h (struct tui_win_info)
797 (struct tui_source_window_base) <update_tab_width>: New methods.
799 2019-06-25 Tom Tromey <tom@tromey.com>
801 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
803 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
805 (tui_gen_win_info::make_visible): Update.
806 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
808 * tui/tui-data.h (enum tui_box): New enum.
809 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
811 2019-06-25 Tom Tromey <tom@tromey.com>
813 * tui/tui-layout.c (make_source_or_disasm_window): Always use
814 init_and_make_win for EXEC_INFO_WIN.
815 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
817 (struct tui_win_info) <~tui_win_info>: Inline.
818 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
820 * tui/tui-data.c (source_win, disasm_win): Remove globals.
821 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
823 (tui_initialize_static_data): Update.
824 (~tui_gen_win_info): Handle more cleanup here.
825 (~tui_source_window_base): Delete "execution_info".
826 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
828 2019-06-25 Tom Tromey <tom@tromey.com>
830 * tui/tui-layout.c (make_command_window): Don't set
832 (show_source_disasm_command): Call the reset method.
833 (show_data): Don't set can_highlight. Call the reset method.
834 (tui_gen_win_info::reset): Rename from init_gen_win_info
835 (init_and_make_win): Simplify. Return tui_gen_win_info.
836 (show_source_or_disasm_and_command): Call the reset method.
837 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
838 (struct tui_cmd_window): Set can_highlight.
840 2019-06-25 Tom Tromey <tom@tromey.com>
842 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
844 (tui_make_visible, tui_make_invisible): Rewrite.
845 (tui_win_info::make_visible): Remove.
846 (tui_source_window_base::make_visible): Update.
847 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
848 method. Moved from...
849 (struct tui_win_info) <make_visible>: ...here.
851 2019-06-25 Tom Tromey <tom@tromey.com>
853 * tui/tui-winsource.c
854 (tui_source_window_base::do_scroll_horizontal): Remove direction
856 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
858 * tui/tui-win.c (tui_win_info::forward_scroll)
859 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
860 (tui_win_info::right_scroll): Update.
861 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
863 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
865 * tui/tui-data.h (enum tui_scroll_direction): Remove.
866 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
867 Remove direction parameter.
868 (struct tui_source_window_base, struct tui_source_window)
869 (struct tui_disasm_window, struct tui_data_window)
870 (struct tui_cmd_window): Update.
872 2019-06-25 Tom Tromey <tom@tromey.com>
874 * tui/tui-winsource.h (tui_set_exec_info_content)
875 (tui_show_exec_info_content, tui_erase_exec_info_content)
876 (tui_clear_exec_info_content, tui_update_exec_info): Change
877 argument to tui_source_window_base.
878 * tui/tui-winsource.c (tui_set_exec_info_content)
879 (tui_show_exec_info_content, tui_erase_exec_info_content)
880 (tui_clear_exec_info_content, tui_update_exec_info): Change
881 argument to tui_source_window_base.
883 2019-06-25 Tom Tromey <tom@tromey.com>
885 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
886 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
888 2019-06-25 Tom Tromey <tom@tromey.com>
890 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
893 2019-06-25 Tom Tromey <tom@tromey.com>
895 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
897 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
899 * tui/tui-source.c (tui_set_source_content): Update.
900 * tui/tui-disasm.c (tui_set_disassem_content): Update.
902 2019-06-25 Tom Tromey <tom@tromey.com>
904 * tui/tui-win.c (window_name_completer, tui_set_focus)
905 (tui_all_windows_info): Use name method.
906 * tui/tui-data.h (struct tui_gen_win_info)
907 (struct tui_source_window, struct tui_disasm_window)
908 (struct tui_data_window, struct tui_cmd_window) <name>: New
910 (tui_win_name): Don't declare.
911 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
912 (tui_win_name): Remove.
914 2019-06-25 Tom Tromey <tom@tromey.com>
916 * tui/tui-winsource.h (tui_update_source_window)
917 (tui_update_source_window_as_is): Change parameter type.
918 * tui/tui-winsource.c (tui_update_source_window): Change win_info
919 to be a tui_source_window_base.
920 (tui_update_source_window_as_is): Likewise.
921 * tui/tui-win.c (make_visible_with_new_height): Update.
923 2019-06-25 Tom Tromey <tom@tromey.com>
925 * tui/tui-winsource.c (tui_erase_source_content)
926 (tui_show_source_content, tui_show_exec_info_content)
927 (tui_erase_exec_info_content): Use refresh_window method.
928 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
929 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
930 from tui_refresh_win.
931 (tui_data_window::refresh_window): New method.
932 (tui_win_info::refresh, tui_source_window_base::refresh)
933 (tui_refresh_all): Use refresh_window method.
934 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
936 * tui/tui-regs.c (tui_display_register): Call refresh_window
938 * tui/tui-layout.c (show_source_disasm_command)
939 (show_source_or_disasm_and_command): Call refresh_window method.
940 * tui/tui-data.h (struct tui_gen_win_info)
941 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
944 2019-06-25 Tom Tromey <tom@tromey.com>
946 * tui/tui.c (tui_rl_other_window, tui_enable)
947 (tui_is_window_visible, tui_get_command_dimension): Update.
948 * tui/tui-winsource.c (tui_update_source_window_as_is)
949 (tui_clear_source_content, tui_erase_source_content)
950 (tui_show_source_line, tui_source_window_base::refill)
951 (tui_source_window_base::do_scroll_horizontal)
952 (tui_source_window_base::set_is_exec_point_at)
953 (tui_update_breakpoint_info, tui_set_exec_info_content)
954 (tui_alloc_source_buffer, tui_line_is_displayed)
955 (tui_addr_is_displayed): Update.
956 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
957 (tui_check_and_display_highlight_if_needed)
958 (tui_win_info::make_visible, tui_win_info::refresh)
959 (tui_refresh_all): Update.
960 * tui/tui-windata.c (tui_first_data_item_displayed)
961 (tui_delete_data_content_windows, tui_erase_data_content)
962 (tui_display_all_data, tui_data_window::refresh_all)
963 (tui_check_data_values): Update.
964 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
965 (tui_set_win_focus_to, tui_win_info::forward_scroll)
966 (tui_win_info::backward_scroll, tui_refresh_all_win)
967 (tui_resize_all, tui_set_focus, tui_all_windows_info)
968 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
969 (tui_source_window_base::set_new_height)
970 (tui_data_window::set_new_height)
971 (make_invisible_and_set_new_height)
972 (make_visible_with_new_height, new_height_ok)
973 (parse_scrolling_args): Update.
974 * tui/tui-stack.c (tui_show_frame_info): Update.
975 * tui/tui-source.c (tui_set_source_content)
976 (tui_set_source_content_nil, tui_source_is_displayed)
977 (tui_source_window::do_scroll_vertical): Update.
978 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
979 (tui_display_registers_from, tui_display_reg_element_at_line)
980 (tui_check_register_values, tui_reg_command): Update.
981 * tui/tui-layout.c (tui_default_win_height)
982 (show_source_disasm_command, show_data, init_and_make_win)
983 (show_source_or_disasm_and_command): Update.
984 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
985 (tui_redisplay_readline, tui_mld_flush)
986 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
988 * tui/tui-disasm.c (tui_set_disassem_content)
989 (tui_disasm_window::do_scroll_vertical): Update.
990 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
992 (struct tui_win_info): Derive from tui_gen_win_info.
993 <~tui_win_info>: Mark as override.
994 <generic>: Remove member.
995 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
996 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
997 (~tui_data_window, ~tui_win_info)
998 (tui_free_all_source_wins_content): Update.
999 * tui/tui-command.c (tui_refresh_cmd_win): Update.
1001 2019-06-25 Tom Tromey <tom@tromey.com>
1003 * tui/tui-layout.c (init_and_make_win): Use new.
1004 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
1005 destructor, initializers.
1006 (tui_alloc_generic_win_info): Don't declare.
1007 * tui/tui-data.c (_locator): Add argument to constructor.
1008 (source_win, disasm_win): New globals.
1009 (exec_info): Remove.
1010 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
1012 (tui_alloc_generic_win_info): Remove.
1013 (init_content_element): Use new.
1014 (tui_win_info::tui_win_info): Update.
1015 (free_content_elements) <case DATA_WIN>: Use delete.
1017 2019-06-25 Tom Tromey <tom@tromey.com>
1019 * tui/tui-wingeneral.c (tui_refresh_win): Update.
1020 * tui/tui-windata.c (tui_first_data_item_displayed)
1021 (tui_delete_data_content_windows): Update.
1022 * tui/tui-win.c (tui_data_window::set_new_height): Update.
1023 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
1024 (tui_display_registers_from, tui_check_register_values): Update.
1025 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
1027 * tui/tui-data.c (init_content_element): Update. Allocate the new
1029 (tui_free_data_content): Update.
1030 (free_content_elements) <case DATA_WIN>: Free the window.
1032 2019-06-25 Tom Tromey <tom@tromey.com>
1034 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
1036 * tui/tui-layout.c (make_command_window)
1037 (show_source_disasm_command, show_data, init_and_make_win)
1038 (show_source_or_disasm_and_command): Update.
1039 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
1041 <can_highight, is_highlighted>: Now bool.
1042 (tui_set_win_highlight): Don't declare.
1043 * tui/tui-data.c (tui_set_win_highlight): Remove.
1045 2019-06-25 Tom Tromey <tom@tromey.com>
1047 * tui/tui-wingeneral.c (make_visible): Remove check of window
1050 2019-06-25 Tom Tromey <tom@tromey.com>
1052 * tui/tui-win.c (tui_win_info::max_height)
1053 (tui_cmd_window::max_height): New methods.
1054 (new_height_ok): Call max_height.
1055 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
1056 <max_height>: New method.
1058 2019-06-25 Tom Tromey <tom@tromey.com>
1060 * tui/tui-win.c (tui_source_window_base::set_new_height)
1061 (tui_data_window::set_new_height): New methods.
1062 (make_invisible_and_set_new_height): Call set_new_height method.
1063 * tui/tui-data.h (struct tui_win_info)
1064 (struct tui_source_window_base, struct tui_data_window)
1065 <set_new_height>: New method.
1067 2019-06-25 Tom Tromey <tom@tromey.com>
1069 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
1070 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
1071 tui_refresh_data_win.
1072 * tui/tui-win.c (tui_source_window_base::refresh_all): New
1074 (tui_refresh_all_win): Call the refresh_all method.
1075 (tui_set_focus): Likewise.
1076 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
1077 (struct tui_source_window_base, struct tui_data_window) <refresh>:
1080 2019-06-25 Tom Tromey <tom@tromey.com>
1082 * tui/tui-winsource.h (tui_refill_source_window)
1083 (tui_set_is_exec_point_at): Don't declare.
1084 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1085 (tui_source_window_base::refill): Rename from
1086 tui_refill_source_window.
1087 (tui_source_window_base::do_scroll_horizontal): Update.
1088 (tui_source_window_base::set_is_exec_point_at): Rename from
1089 tui_set_is_exec_point_at.
1090 (tui_update_all_breakpoint_info): Update.
1091 * tui/tui-stack.c (tui_show_frame_info): Update.
1092 * tui/tui-layout.c (show_data): Add cast.
1093 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
1094 * tui/tui-data.h (struct tui_source_window_base) <refill,
1095 set_is_exec_point_at>: New methods.
1096 (tui_source_windows, tui_add_to_source_windows): Update types.
1097 (tui_add_to_source_windows): Remove redundant declaration.
1098 * tui/tui-data.c (source_windows): Store tui_source_window_base.
1099 (tui_source_windows): Change return type.
1100 (tui_clear_source_windows_detail): Update.
1101 (tui_add_to_source_windows): Change type of parameter.
1102 (tui_free_all_source_wins_content): Update.
1104 2019-06-25 Tom Tromey <tom@tromey.com>
1106 * tui/tui-wingeneral.c (tui_win_info::refresh)
1107 (tui_source_window_base::refresh): New methods.
1108 (tui_refresh_all): Call the refresh method.
1109 * tui/tui-data.h (struct tui_win_info)
1110 (struct tui_source_window_base) <refresh>: New method.
1112 2019-06-25 Tom Tromey <tom@tromey.com>
1114 * tui/tui.h (tui_is_window_visible): Return bool.
1115 * tui/tui.c (tui_is_window_visible): Return bool.
1116 * tui/tui-wingeneral.c (tui_make_window, make_visible)
1117 (tui_make_visible, tui_make_invisible)
1118 (tui_win_info::make_visible)
1119 (tui_source_window_base::make_visible, make_all_visible)
1120 (tui_make_all_visible, tui_make_all_invisible): Update.
1121 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
1122 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
1124 (struct tui_win_info, struct tui_source_window_base)
1125 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
1126 * tui/tui-data.c (tui_init_generic_part): Update.
1128 2019-06-25 Tom Tromey <tom@tromey.com>
1130 * tui/tui-wingeneral.c (tui_win_info::make_visible)
1131 (tui_source_window_base::make_visible): New methods.
1132 (make_all_visible): Make method call.
1133 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
1134 (struct tui_source_window_base, struct tui_cmd_window): Override
1136 (tui_win_is_source_type): Don't declare.
1137 * tui/tui-data.c (tui_win_is_source_type): Remove.
1139 2019-06-25 Tom Tromey <tom@tromey.com>
1141 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
1144 2019-06-25 Tom Tromey <tom@tromey.com>
1146 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
1147 Inline constructor. Add initializers for members.
1148 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
1149 constructors; now inline in class.
1151 2019-06-25 Tom Tromey <tom@tromey.com>
1153 * tui/tui-regs.c (tui_show_registers): Update.
1154 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
1156 * tui/tui-data.c (tui_data_window::clear_detail)
1157 (tui_data_window): Update.
1159 2019-06-25 Tom Tromey <tom@tromey.com>
1161 * tui/tui-windata.c (tui_display_all_data)
1162 (tui_display_data_from_line, tui_display_data_from)
1163 (tui_check_data_values, tui_data_window::do_scroll_vertical):
1165 * tui/tui-regs.c (tui_last_regs_line_no)
1166 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
1167 (tui_show_registers, tui_show_register_group)
1168 (tui_display_registers_from, tui_display_reg_element_at_line)
1169 (tui_display_registers_from_line, tui_check_register_values)
1170 (tui_reg_next, tui_reg_prev): Update.
1171 * tui/tui-layout.c (tui_set_layout, show_data): Update.
1172 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
1174 (struct tui_win_info) <detail>: Remove. Add new fields from
1176 (TUI_DATA_WIN): Add cast.
1177 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
1178 (~tui_data_window): Simplify.
1180 2019-06-25 Tom Tromey <tom@tromey.com>
1182 * tui/tui-layout.c (show_source_disasm_command)
1183 (show_source_or_disasm_and_command): Update.
1184 * tui/tui-io.c (update_cmdwin_start_line)
1185 (tui_redisplay_readline): Update.
1186 * tui/tui-data.h (struct tui_command_info): Remove.
1187 (struct tui_win_info) <detail>: Remove command_info member.
1188 (struct tui_data_window) <start_line>: New member, from
1190 (TUI_CMD_WIN): Add casts.
1192 2019-06-25 Tom Tromey <tom@tromey.com>
1194 * tui/tui-winsource.c (tui_update_source_window)
1195 (tui_refill_source_window)
1196 (tui_source_window_base::do_scroll_horizontal)
1197 (tui_update_breakpoint_info, tui_set_exec_info_content)
1198 (tui_show_exec_info_content, tui_erase_exec_info_content)
1199 (tui_clear_exec_info_content): Update.
1200 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
1202 * tui/tui-win.c (make_invisible_and_set_new_height)
1203 (make_visible_with_new_height): Update.
1204 * tui/tui-source.c (tui_set_source_content)
1205 (tui_show_symtab_source): Update.
1206 * tui/tui-layout.c (extract_display_start_addr)
1207 (show_source_disasm_command, show_data)
1208 (make_source_or_disasm_window)
1209 (show_source_or_disasm_and_command): Update.
1210 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
1211 (tui_disasm_window::do_scroll_vertical): Remove shadowing
1213 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
1214 to tui_source_window_base.
1215 (struct tui_win_info) <detail>: Remove source_info member.
1216 (struct tui_source_window_base) <has_locator>: Inline.
1217 Move contents from tui_source_info; rename has_locator member to
1219 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
1220 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
1222 (tui_source_window_base::clear_detail, ~tui_source_window_base):
1224 (tui_free_all_source_wins_content): Cast to
1225 tui_source_window_base.
1227 2019-06-25 Tom Tromey <tom@tromey.com>
1229 * tui/tui-win.c (make_invisible_and_set_new_height)
1230 (make_visible_with_new_height): Call has_locator method.
1231 * tui/tui-layout.c (show_source_disasm_command, show_data)
1232 (show_source_or_disasm_and_command): Update for bool change.
1233 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
1234 (tui_win_info) <has_locator>: New method.
1235 (struct tui_source_window_base) <has_locator>: New method.
1236 (tui_win_has_locator): Don't declare.
1237 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
1238 from tui_win_has_locator.
1239 (tui_source_window_base): Use false, not FALSE.
1241 2019-06-25 Tom Tromey <tom@tromey.com>
1243 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
1244 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
1245 clear_detail method directly.
1246 (tui_clear_win_detail): Remove.
1248 2019-06-25 Tom Tromey <tom@tromey.com>
1250 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
1251 "this", not TUI_DISASM_WIN.
1253 2019-06-25 Tom Tromey <tom@tromey.com>
1255 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
1257 * tui/tui-winsource.c
1258 (tui_source_window_base::do_scroll_horizontal): Rename from
1259 tui_horizontal_source_scroll.
1260 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
1261 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
1262 from tui_vertical_data_scroll.
1263 * tui/tui-win.h (tui_scroll): Don't declare.
1264 * tui/tui-win.c (tui_win_info::forward_scroll)
1265 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
1266 (tui_win_info::right_scroll): Rename and update.
1267 (tui_scroll_forward_command, tui_scroll_backward_command)
1268 (tui_scroll_left_command, tui_scroll_right_command): Update.
1269 (tui_scroll): Remove.
1270 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
1271 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
1272 from tui_vertical_source_scroll.
1273 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
1274 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
1275 from tui_vertical_disassem_scroll.
1276 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
1277 do_scroll_horizontal>: New methods.
1278 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
1280 (struct tui_source_window_base): Add do_scroll_horizontal.
1281 (struct tui_source_window, struct tui_disasm_window): Add
1283 (struct tui_data_window, struct tui_cmd_window): Add
1284 do_scroll_horizontal and do_scroll_vertical.
1285 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
1287 2019-06-25 Tom Tromey <tom@tromey.com>
1289 * tui/tui-data.h (struct tui_source_window_base): New struct.
1290 (struct tui_source_window): Derive from tui_source_window_base.
1291 (struct tui_disasm_window): New struct.
1292 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
1293 from tui_source_window::clear_detail.
1294 (tui_source_window_base): Rename from tui_source_window.
1295 (~tui_source_window_base): Rename from ~tui_source_window.
1296 (tui_alloc_win_info): Create a tui_disasm_window.
1298 2019-06-25 Tom Tromey <tom@tromey.com>
1300 * tui/tui-data.h (struct tui_source_window)
1301 (struct tui_data_window): Declare destructors.
1302 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
1304 (tui_win_info): Simplify.
1306 2019-06-25 Tom Tromey <tom@tromey.com>
1308 * tui/tui-winsource.c (tui_display_main)
1309 (tui_update_source_windows_with_addr)
1310 (tui_update_all_breakpoint_info): Update.
1311 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1312 (new_height_ok, parse_scrolling_args): Update.
1313 * tui/tui-stack.c (tui_show_frame_info): Update.
1314 * tui/tui-data.h (struct tui_list): Remove.
1315 (tui_source_windows): Return a reference to a std::vector.
1316 * tui/tui-data.c (source_windows): Now a std::vector.
1317 (tui_source_windows): Change return type.
1318 (tui_clear_source_windows): Rewrite.
1319 (tui_clear_source_windows_detail, tui_add_to_source_windows)
1320 (tui_free_all_source_wins_content): Rewrite.
1322 2019-06-25 Tom Tromey <tom@tromey.com>
1324 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
1325 (struct tui_data_window, struct tui_cmd_window): Declare
1326 clear_detail method.
1327 * tui/tui-data.c (tui_source_window::clear_detail)
1328 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
1330 (tui_clear_win_detail): Simplify.
1332 2019-06-25 Tom Tromey <tom@tromey.com>
1334 * tui/tui-layout.c (make_source_window, make_disasm_window)
1335 (make_source_or_disasm_window): Remove win_info_ptr parameter.
1336 Return the new window.
1337 (show_source_disasm_command, show_data)
1338 (show_source_or_disasm_and_command): Update.
1340 2019-06-25 Tom Tromey <tom@tromey.com>
1342 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
1343 parameter. Return the new window.
1344 (show_source_disasm_command): Update and remove NULL check.
1345 (show_source_or_disasm_and_command): Update.
1347 2019-06-25 Tom Tromey <tom@tromey.com>
1349 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
1351 2019-06-25 Tom Tromey <tom@tromey.com>
1353 * tui/tui-data.h (struct tui_win_info): Make constructor
1354 protected. Make destructor virtual. Add initializers.
1355 (tui_source_window, tui_data_window, tui_cmd_window): New
1357 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
1358 constructor. Add "type" parameter.
1359 (tui_source_window, tui_data_window, tui_cmd_window): New
1361 (tui_alloc_win_info): Instantiate the appropriate subclass.
1363 2019-06-25 Tom Tromey <tom@tromey.com>
1365 * tui/tui-win.c (tui_resize_all): Use delete.
1366 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
1368 (tui_free_window): Don't declare.
1369 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
1372 2019-06-25 Tom Tromey <tom@tromey.com>
1374 * tui/tui-data.h (struct tui_win_info): Add constructor.
1375 * tui/tui-data.c (tui_alloc_win_info): Use new.
1376 (tui_free_window): Use delete.
1378 2019-06-22 Tom Tromey <tom@tromey.com>
1380 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
1382 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
1384 2019-06-22 Tom Tromey <tom@tromey.com>
1386 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
1388 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
1390 2019-06-22 Tom de Vries <tdevries@suse.de>
1392 * dwarf2read.c (create_addrmap_from_aranges)
1393 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
1396 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
1398 * dwarf2read.h (dwarf2_section_info_def): Remove.
1399 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
1400 * dwarf2read.c (struct dwo_sections) <types>: Change type to
1401 std::vector<dwarf2_section_info>.
1402 (struct dwo_file) <~dwo_file>: Remove.
1403 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
1405 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
1406 (dwarf2_read_debug_names): Likewise.
1407 (create_debug_types_hash_table): Change parameter type to
1408 array_view, adjust code accordingly.
1409 (dwarf2_locate_dwo_sections): Adjust to std::vector.
1410 (partial_die_info::fixup): Likewise.
1411 (determine_prefix): Likewise.
1412 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
1414 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
1416 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
1418 <~dwo_file>: Remove call to gdb_bfd_unref.
1419 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
1420 gdb_bfd_ref_ptr::get.
1422 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
1424 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
1426 * dwarf2read.c (struct dwo_file): Initialize fields.
1428 (free_dwo_file): Remove, move content to ~dwo_file.
1429 (struct dwo_file_deleter): Remove.
1430 (dwo_file_up>: Remove custom deleter.
1431 (free_dwo_files): Remove.
1432 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
1434 (process_skeletonless_type_units): Call unique_ptr::get.
1435 (allocate_dwo_file_hash_table): Add deleter to created hash
1436 table. Change return type to htab_up.
1437 (lookup_dwo_file_slot): Don't memset dwo_file, call
1439 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
1440 (create_dwo_unit_in_dwp_v2): Likewise.
1441 (open_and_init_dwo_file): Likewise.
1442 (free_dwo_file_from_slot): Remove.
1444 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
1446 * dwarf2read.h (struct dwarf2_section_info) <readin,
1447 is_virtual>: Change type to bool.
1448 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
1451 2019-06-19 Tom Tromey <tom@tromey.com>
1453 * tui/tui-data.h (tui_init_content_element): Don't declare.
1455 2019-06-19 Tom Tromey <tom@tromey.com>
1457 * tui/tui-data.h (tui_init_win_info): Don't declare.
1459 2019-06-19 Tom de Vries <tdevries@suse.de>
1461 * dwarf2read.h (abstract_to_concrete): Change type to
1462 std::unordered_map<sect_offset, std::vector<sect_offset>,
1463 gdb::hash_enum<sect_offset>>.
1465 2019-06-19 Tom Tromey <tromey@adacore.com>
1467 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
1468 EVAL_AVOID_SIDE_EFFECTS specially.
1470 2019-06-19 Tom Tromey <tromey@adacore.com>
1472 * source-cache.c (highlighter): New global.
1473 (source_cache::get_source_lines): Create a highlighter on demand.
1475 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
1477 * defs.h (deprecated_interactive_hook): Delete declaration.
1478 * interps.c (clear_interpreter_hooks): Remove use of
1479 deprecated_interactive_hook.
1480 * top.c (deprecated_interactive_hook): Delete definition.
1481 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
1483 2019-06-18 Tom de Vries <tdevries@suse.de>
1486 * dwarf2read.h (abstract_to_concrete): Change type from
1487 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
1488 std::unordered_map<sect_offset, std::vector<sect_offset>>.
1489 * dwarf2read.c (read_variable): Update.
1490 (dwarf2_fetch_die_loc_sect_off): Update.
1492 2019-06-17 Tom de Vries <tdevries@suse.de>
1495 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
1496 accessing parent[parent_len - 1].
1498 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
1501 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
1502 call dtrace_process_dof with NULL dof.
1504 2019-06-16 Tom de Vries <tdevries@suse.de>
1507 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
1509 2019-06-16 Tom Tromey <tom@tromey.com>
1511 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
1512 (make_all_visible): Use address of member.
1514 2019-06-16 Tom Tromey <tom@tromey.com>
1516 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
1517 (tui_free_window, free_content, free_content_elements): Remove
1519 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
1521 * tui/tui-regs.c (tui_show_register_group)
1522 (tui_display_registers_from, tui_display_reg_element_at_line):
1523 Remove unnecessary cast.
1525 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
1527 * linux-nat.c (normal_mask): Delete.
1528 (_initialize_linux_nat): Don't initialise normal_mask.
1530 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
1533 * dwarf-index-write.h (write_psymtabs_to_index): Add
1534 dwz_basename parameter.
1535 * dwarf-index-write.c (write_gdbindex): Move file writing to
1536 write_gdbindex_1. Change return type void.
1537 (assert_file_size): Move up, remove filename parameter.
1538 (write_gdbindex_1): New function.
1539 (write_debug_names): Change return type to void, call
1541 (struct index_wip_file): New struct.
1542 (write_psymtabs_to_index): Add dwz_basename parameter. Move
1543 file logic to index_wip_file. Write index for dwz file if
1545 (save_gdb_index_command): Pass basename of dwz file, if present.
1546 * dwarf-index-cache.c (index_cache::store): Obtain and pass
1547 build-id of dwz file, if present.
1548 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
1549 (dwarf2_get_dwz_file): Likewise.
1550 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
1551 (dwarf2_get_dwz_file): Likewise.
1553 2019-06-16 Tom Tromey <tom@tromey.com>
1555 * coffread.c (process_coff_symbol): Use xstrdup.
1556 * value.c (create_internalvar): Use xstrdup.
1558 2019-06-16 Tom Tromey <tom@tromey.com>
1560 * valops.c (value_cast, value_slice): Remove unnecessary cast.
1561 * breakpoint.c (stopin_command, stopat_command)
1562 (until_break_command, decode_location_default): Remove unnecessary
1564 * utils.c (subset_compare): Remove unnecessary cast.
1565 * ada-lang.c (ada_update_initial_language): Remove unnecessary
1567 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
1569 * infcmd.c (path_command): Remove unnecessary cast.
1570 * coffread.c (decode_type): Remove unnecessary cast.
1571 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
1572 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
1573 * tui/tui-stack.c (tui_show_locator_content)
1574 (tui_show_frame_info): Remove unnecessary cast.
1575 * tui/tui-win.c (tui_scroll_forward_command)
1576 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
1577 (parse_scrolling_args): Remove unnecessary cast.
1578 * tui/tui-data.c (init_win_info, tui_del_window)
1579 (tui_free_window, tui_del_data_windows, tui_free_data_content)
1580 (free_content_elements): Remove unnecessary cast.
1581 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
1583 * tui/tui-source.c (tui_set_source_content)
1584 (tui_vertical_source_scroll): Remove unnecessary cast.
1585 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
1587 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
1588 * tui/tui-regs.c (tui_display_registers_from)
1589 (tui_display_register): Remove unnecessary cast.
1590 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
1591 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
1592 (make_visible): Remove unnecessary cast.
1593 * tui/tui-winsource.c (tui_erase_source_content)
1594 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
1596 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
1597 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
1598 * stabsread.c (read_type, read_array_type, read_range_type):
1599 Remove unnecessary cast.
1600 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
1601 (parse_symbol, parse_type, upgrade_type, parse_external)
1602 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
1604 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
1606 2019-06-16 Tom Tromey <tom@tromey.com>
1608 * tui/tui-data.c (tui_alloc_generic_win_info)
1609 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
1612 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
1613 Andrew Burgess <andrew.burgess@embecosm.com>
1615 * f-typeprint.c (f_print_type): Don't return early for not
1616 associated or not allocated types.
1617 (f_type_print_varspec_suffix): Add print_rank parameter and print
1618 ranks of array types in case they dangling.
1619 (f_type_print_base): Add print_rank parameter.
1621 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
1623 * NEWS: Mention new MI commands.
1624 * break-catch-throw.c (enum exception_event_kind): Move to
1626 (print_mention_exception_catchpoint): Output text as a single
1628 (catch_exception_command_1): Rename to...
1629 (catch_exception_event): ...this, make non-static, update header
1630 command, and change some parameter types.
1631 (catch_catch_command): Update for changes to
1632 catch_exception_command_1.
1633 (catch_throw_command): Likewise.
1634 (catch_rethrow_command): Likewise.
1635 * breakpoint.c (enum exception_event_kind): Delete.
1636 * breakpoint.h (enum exception_event_kind): Moved here from
1637 break-catch-throw.c.
1638 (catch_exception_event): Declare.
1639 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
1640 (mi_cmd_catch_throw): New function.
1641 (mi_cmd_catch_rethrow): New function.
1642 (mi_cmd_catch_catch): New function.
1643 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
1644 'catch-catch' entries.
1645 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
1646 (mi_cmd_catch_rethrow): Declare.
1647 (mi_cmd_catch_catch): Declare.
1649 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
1651 * annotate.c (annotate_source_line): Change return type to void,
1652 update implementation to match.
1653 * annotate.h (annotate_source_line): Change return type to void,
1654 update header comment.
1655 * stack.c (print_frame_info): Don't change what frame information
1656 is printed based on whether annotations are on or not.
1658 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
1660 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
1661 (annotate_source): Make static.
1662 (annotate_source_line): Moved from source.c and renamed from
1663 identify_source_line. Update the return type.
1664 * annotate.h (annotate_source): Delete declaration.
1665 (annotate_source_line): Declaration moved from source.h, and
1666 renamed from identify_source_line. Return type updated.
1667 * source.c (identify_source_line): Moved to annotate.c and renamed
1668 to annotate_source_line.
1669 (info_line_command): Remove check of annotation_level.
1670 * source.h (identify_source_line): Move declaration to annotate.h
1671 and rename to annotate_source_line.
1672 * stack.c: Add 'annotate.h' include.
1673 (print_frame_info): Remove check of annotation_level before
1674 calling annotate_source_line.
1676 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
1678 * source-cache.c (source_cache::get_plain_source_lines): Use
1679 open_source_file_with_line_charpos instead of just
1680 open_source_file, remove call to find_source_lines.
1681 (source_cache::get_source_lines): Likewise.
1682 * source.c (find_source_lines): Make static.
1683 (get_filename_and_charpos): Renamed into...
1684 (open_source_file_with_line_charpos): ..this along with changes to
1685 return a scoped_fd, and some other minor clean ups.
1686 (identify_source_line): Use open_source_file_with_line_charpos.
1687 (search_command_helper): Use open_source_file_with_line_charpos
1688 instead of just open_source_file, remove call to
1690 * source.h (open_source_file_with_line_charpos): Declare new
1692 (find_source_lines): Delete declaration.
1694 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
1696 * source.c (get_filename_and_charpos): Remove fullname
1698 (identify_source_line): Update call to get_filename_and_charpos.
1700 2019-06-14 Tom Tromey <tromey@adacore.com>
1703 * ui-style.h (skip_ansi_escape): Update comment.
1704 * ui-file.h (class no_terminal_escape_file): New class.
1705 * ui-file.c (no_terminal_escape_file::write)
1706 (no_terminal_escape_file::puts): New methods.
1707 * cli/cli-logging.c (handle_redirections): Use
1708 no_terminal_escape_file.
1710 2019-06-14 Tom Tromey <tromey@adacore.com>
1712 * NEWS: Move convenience variable news above Python news.
1714 2019-06-14 Tom Tromey <tom@tromey.com>
1716 * gnulib: Move directory to top-level.
1717 * configure.ac: Don't configure gnulib.
1718 * configure: Rebuild.
1719 * common/common-defs.h: Use new path to gnulib.
1720 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
1722 (INCGNU): Look in new gnulib location.
1723 (HFILES_NO_SRCDIR): Remove gnulib files.
1724 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
1725 (generated_files): Remove GNULIB_H.
1726 ($(LIBGNU), all-lib): Remove targets.
1727 (distclean): Don't mention GNULIB_BUILDDIR.
1728 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
1730 2019-06-14 Tom Tromey <tromey@adacore.com>
1732 * symfile.c (add_symbol_file_command): Remove obsolete comment.
1733 Warn if symbol file does not provide any symbols.
1735 2019-06-14 Tom Tromey <tromey@adacore.com>
1737 * source.c (find_and_open_source): Respect basenames_may_differ.
1739 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
1741 * annotate.c (annotate_breakpoints_invalid): Make use of
1742 scoped_restore_terminal_state.
1743 (annotate_frames_invalid): Likewise.
1745 2019-06-14 Tom Tromey <tromey@adacore.com>
1747 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
1748 allow assignment to an internalvar.
1750 2019-06-14 Tom Tromey <tromey@adacore.com>
1752 * ada-lex.l: Allow "_" in attribute names.
1754 2019-06-14 Tom Tromey <tromey@adacore.com>
1757 * regcache.c (registers_changed): Don't call alloca.
1758 * top.c (execute_command): Don't call alloca.
1760 2019-06-13 Pedro Alves <palves@redhat.com>
1762 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
1763 'expression'. When parsing an expression, error out if there's
1764 junk after "unlimited".
1765 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
1766 (do_set_command): Adjust calls to is_unlimited_literal.
1768 2019-06-13 Pedro Alves <palves@redhat.com>
1770 * compile/compile.c (make_compile_options_def_group): Add braces
1771 around array_view initializer.
1772 * thread.c (make_thread_apply_all_options_def_group)
1773 (make_thread_apply_all_options_def_group): Likewise.
1775 2019-06-13 Pedro Alves <palves@redhat.com>
1777 * NEWS (New commands): Mention "maint test-options
1778 require-delimiter", "maint test-options unknown-is-error", "maint
1779 test-options unknown-is-operand" and "maint show
1780 test-options-completion-result".
1781 (New command options, command completion): New section.
1782 (Completion improvements): New section.
1783 Mention that you can abbreviate "unlimited".
1785 2019-06-13 Pedro Alves <palves@redhat.com>
1787 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
1788 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
1789 * unittests/cli-utils-selftests.c (test_parse_flags)
1790 (test_parse_flags_qcs): Delete.
1791 (test_cli_utils): Don't call deleted functions.
1793 2019-06-13 Pedro Alves <palves@redhat.com>
1795 * thread.c: Include "cli/cli-option.h".
1796 (tp_array_compar_ascending): Global.
1797 (tp_array_compar): Delete function.
1798 (tp_array_compar_ascending, tp_array_compar_descending): New
1800 (ascending_option_def, qcs_flag_option_def)
1801 (thr_qcs_flags_option_defs)
1802 (make_thread_apply_all_options_def_group)
1803 (make_thread_apply_options_def_group): New.
1804 (thread_apply_all_command): Use gdb::option::process_options.
1805 (thread_apply_command_completer)
1806 (thread_apply_all_command_completer): New.
1807 (thread_apply_command): Use gdb::option::process_options.
1808 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
1809 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
1810 to generate help text of "thread apply". Adjust "taas"'s help.
1811 * tid-parse.c (tid_range_parser::in_thread_range): New method.
1812 * tid-parse.h (tid_range_parser::in_thread_range): New method.
1814 2019-06-13 Pedro Alves <palves@redhat.com>
1816 * thread.c (thread_apply_command): Check for invalid TID with
1817 isdigit instead of !isalpha.
1819 2019-06-13 Pedro Alves <palves@redhat.com>
1821 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
1822 (validate_flags_qcs): New.
1823 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
1824 (validate_flags_qcs): Declare.
1825 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
1826 (make_frame_apply_options_def_group): New.
1827 (frame_apply_command_count): Process options with
1828 gdb::option::process_options.
1829 (frame_apply_completer): New.
1830 (frame_apply_level_completer, frame_apply_all_completer)
1831 (frame_apply_completer): New.
1832 (_initialize_stack): Update help of "frame apply", "frame apply
1833 level", "frame apply all" and "faas" to mention supported options
1834 and install command completers.
1835 * stack.h (frame_apply_all_completer): Declare.
1836 * thread.c: Include "stack.h".
1837 (tfaas_command): Add "--".
1838 (_initialize_thread): Update help "tfaas" to mention supported
1839 options and install command completer.
1841 2019-06-13 Pedro Alves <palves@redhat.com>
1843 * completer.c (complete_nested_command_line): New.
1844 (gdb_completion_word_break_characters_throw): Add assertion.
1845 * completer.h (complete_nested_command_line): Declare.
1847 2019-06-13 Pedro Alves <palves@redhat.com>
1849 * stack.c (parse_backtrace_qualifiers): New.
1850 (backtrace_command): Use it.
1851 (backtrace_command_completer): Complete on qualifiers.
1853 2019-06-13 Pedro Alves <palves@redhat.com>
1855 * frame.c: Include "cli/cli-option.h.
1856 (user_set_backtrace_options): New.
1857 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
1859 (get_prev_frame): Adjust.
1860 (boolean_option_def, uinteger_option_def)
1861 (set_backtrace_option_defs): New.
1862 (_initialize_frame): Adjust and use
1863 gdb::option::add_setshow_cmds_for_options to install "set
1864 backtrace past-main" and "set backtrace past-entry".
1865 * frame.h: Include "cli/cli-option.h".
1866 (struct frame_print_options): Forward declare.
1867 (print_frame_arguments_all, print_frame_arguments_scalars)
1868 (print_frame_arguments_none): Declare.
1869 (print_entry_values): Delete declaration.
1870 (struct frame_print_options, user_frame_print_options): New.
1871 (struct set_backtrace_options): New.
1872 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
1873 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1874 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
1875 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
1876 (list_args_or_locals): Add frame_print_options parameter.
1877 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
1878 * python/py-framefilter.c (enumerate_args): Pass down
1879 USER_FRAME_PRINT_OPTIONS.
1880 * stack.c: Include "cli/cli-option.h".
1881 (print_frame_arguments_all, print_frame_arguments_scalars)
1882 (print_frame_arguments_none): Declare.
1883 (print_raw_frame_arguments, print_entry_values): Delete.
1884 (user_frame_print_options): New.
1885 (boolean_option_def, enum_option_def, frame_print_option_defs):
1887 (struct backtrace_cmd_options): New.
1888 (bt_flag_option_def): New.
1889 (backtrace_command_option_defs): New.
1890 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
1891 (print_frame_arg, read_frame_arg, print_frame_args)
1892 (print_frame_info, print_frame): Add frame_print_options parameter
1894 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
1895 (backtrace_command_1): Add frame_print_options and
1896 backtrace_cmd_options parameters and use them.
1897 (make_backtrace_options_def_group): New.
1898 (backtrace_command): Process command options with
1899 gdb::option::process_options.
1900 (backtrace_command_completer): New.
1901 (_initialize_stack): Extend "backtrace"'s help to mention
1902 supported options. Install completer for "backtrace".
1903 Install some settings commands with add_setshow_cmds_for_options.
1905 2019-06-13 Pedro Alves <palves@redhat.com>
1907 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
1908 and that "set/show print raw frame-arguments" are now deprecated.
1910 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
1912 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
1913 * stack.c (_initialize_stack): Install "set/show print
1914 raw-frame-arguments", and deprecate "set/show print raw
1916 * valprint.c (_initialize_valprint): Deprecate "set/show print
1919 2019-06-13 Pedro Alves <palves@redhat.com>
1921 * compile/compile.c (struct compile_options): New.
1922 (compile_flag_option_def, compile_command_option_defs)
1923 (make_compile_options_def_group): New.
1924 (compile_file_command): Handle options with
1925 gdb::option::process_options.
1926 (compile_file_command_completer): New function.
1927 (compile_code_command): Handle options with
1928 gdb::option::process_options.
1929 (compile_code_command_completer): New function.
1930 (_initialize_compiler): Install completers for "compile code" and
1931 "compile file". Mention available options in "compile code" and
1932 "compile code"'s help.
1933 * completer.c (advance_to_completion_word): New, factored out from
1935 (advance_to_expression_complete_word_point): ... this.
1936 (advance_to_filename_complete_word_point): New.
1937 * completer.h (advance_to_filename_complete_word_point): New
1940 2019-06-13 Pedro Alves <palves@redhat.com>
1942 * compile/compile.c: Include "cli/cli-option.h".
1943 (compile_print_value): Scope data pointer is now a
1944 value_print_options pointer; adjust.
1945 (compile_print_command): Process options. Scope data pointer is
1946 now a value_print_options pointer; adjust.
1947 (_initialize_compile): Update "compile print"'s help to include
1948 supported options. Install a completer for "compile print".
1949 * cp-valprint.c (show_vtblprint, show_objectprint)
1950 (show_static_field_print): Delete.
1951 (_initialize_cp_valprint): Don't install "set print
1952 static-members", "set print vtbl", "set print object" here.
1953 * printcmd.c: Include "cli/cli-option.h" and
1954 "common/gdb_optional.h".
1955 (print_command_parse_format): Rework to fill in a
1956 value_print_options instead of a format_data.
1957 (print_value): Change parameter type from format_data pointer to
1958 value_print_options reference. Adjust.
1959 (print_command_1): Process options. Adjust to pass down a
1960 value_print_options.
1961 (print_command_completer): New.
1962 (_initialize_printcmd): Install print_command_completer as
1963 handle_brkchars completer for the "print" command. Update
1964 "print"'s help to include supported options.
1965 * valprint.c: Include "cli/cli-option.h".
1966 (show_vtblprint, show_objectprint, show_static_field_print): Moved
1967 here from cp-valprint.c.
1968 (boolean_option_def, uinteger_option_def)
1969 (value_print_option_defs, make_value_print_options_def_group):
1970 New. Use gdb::option::add_setshow_cmds_for_options to install
1971 "set print elements", "set print null-stop", "set print repeats",
1972 "set print pretty", "set print union", "set print array", "set
1973 print address", "set print symbol", "set print array-indexes".
1974 * valprint.h: Include <string> and "cli/cli-option.h".
1975 (make_value_print_options_def_group): Declare.
1976 (print_value): Change parameter type from format_data pointer to
1977 value_print_options reference.
1978 (print_command_completer): Declare.
1980 2019-06-13 Pedro Alves <palves@redhat.com>
1982 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
1983 (COMMON_SFILES): Add maint-test-settings.c.
1984 * cli/cli-decode.c (boolean_enums): New global, factored out from
1986 (add_setshow_boolean_cmd): ... here.
1987 * cli/cli-decode.h (boolean_enums): Declare.
1988 * cli/cli-option.c: New file.
1989 * cli/cli-option.h: New file.
1990 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
1991 factored out from ...
1992 (parse_cli_boolean_value(const char *)): ... this.
1993 (is_unlimited_literal): Change parameter type to pointer to
1994 pointer. Adjust and advance ARG pointer.
1995 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
1996 (parse_cli_var_enum): New, factored out from ...
1997 (do_set_command): ... this. Adjust.
1998 * cli/cli-setshow.h (parse_cli_boolean_value)
1999 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
2000 (parse_cli_var_enum): Declare.
2001 * cli/cli-utils.c: Include "cli/cli-option.h".
2002 (get_ulongest): New.
2003 * cli/cli-utils.h (get_ulongest): Declare.
2004 (check_for_argument): New overloads.
2005 * maint-test-options.c: New file.
2007 2019-06-13 Pedro Alves <palves@redhat.com>
2009 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
2010 parse a range if "-" is at the end of the string.
2012 2019-06-13 Pedro Alves <palves@redhat.com>
2014 * cli/cli-setshow.c (parse_auto_binary_operation)
2015 (parse_cli_boolean_value): Don't allow "o".
2017 2019-06-13 Pedro Alves <palves@redhat.com>
2019 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
2020 * NEWS: Mention maint test-settings KIND.
2021 * maint-test-settings.c: New file.
2023 2019-06-13 Pedro Alves <palves@redhat.com>
2025 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
2027 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
2030 2019-06-13 Pedro Alves <palves@redhat.com>
2032 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
2035 2019-06-13 Pedro Alves <palves@redhat.com>
2037 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
2039 2019-06-13 Pedro Alves <palves@redhat.com>
2041 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
2042 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
2044 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
2045 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
2047 (check_for_argument): Skip spaces after argument.
2049 2019-06-13 Pedro Alves <palves@redhat.com>
2051 * thread.c (thread_apply_command): Adjust TID parsing.
2052 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
2053 detected before end of string.
2054 (tid_is_in_list): Error out if LIST is invalid.
2056 2019-06-13 Pedro Alves <palves@redhat.com>
2058 * completer.c (complete_line_internal_1): Rewind completion word
2060 (completion_tracker::advance_custom_word_point_by): Change
2061 parameter type to int.
2062 * completer.h (completion_tracker::advance_custom_word_point_by):
2065 2019-06-13 Pedro Alves <palves@redhat.com>
2067 * completer.c (advance_to_completion_word): Handle delimiters.
2069 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
2071 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
2073 2019-06-11 Tom Tromey <tom@tromey.com>
2075 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
2076 (xmalloc_failed): Move to alloc.c.
2077 * alloc.c: New file.
2078 * Makefile.in (COMMON_SFILES): Add alloc.c.
2080 2019-06-11 Tom Tromey <tom@tromey.com>
2082 * nat/linux-waitpid.c: Don't include server.h.
2083 (linux_debug): Remove.
2084 (my_waitpid): Update.
2086 2019-06-11 Tom Tromey <tromey@adacore.com>
2088 * infcall.c (_initialize_infcall): Remove trailing newline from
2090 * user-regs.c (_initialize_user_regs): Remove trailing newline
2092 * typeprint.c (_initialize_typeprint): Remove trailing newline
2094 * reverse.c (_initialize_reverse): Remove trailing newlines from
2096 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
2098 * language.c (add_set_language_command): Remove trailing newline
2100 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
2102 * disasm.c (_initialize_disasm): Remove trailing newline from
2104 * top.c (init_main): Remove trailing newline from help.
2105 * interps.c (_initialize_interpreter): Remove trailing newline
2107 * btrace.c (_initialize_btrace): Remove trailing newlines from
2109 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
2111 * python/python.c (_initialize_python): Remove trailing newline
2113 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
2115 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
2116 from help. Reformat some text.
2117 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
2119 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
2122 2019-06-11 Tom Tromey <tromey@adacore.com>
2124 * darwin-nat.c (darwin_decode_exception_message)
2125 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
2127 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
2129 * valops.c (value_slice): Check for not allocated or not
2132 2019-06-10 Tom de Vries <tdevries@suse.de>
2135 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
2136 sure an empty slot (defined by a 32-bit zero pair) is recognized as
2139 2019-06-10 Tom de Vries <tdevries@suse.de>
2142 * linespec.c (linespec_lexer_lex_string): Remove incorrect
2143 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
2145 2019-06-10 Tom de Vries <tdevries@suse.de>
2148 * symtab.c (struct demangled_name_entry): Add language field.
2149 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
2150 static minimal symbol". Set and use language field.
2152 2019-06-10 Tom Tromey <tromey@adacore.com>
2154 * ada-lang.c (_initialize_ada_language): Update help text.
2156 2019-06-10 Tom Tromey <tromey@adacore.com>
2158 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
2160 * guile/guile.c (handle_boot_error): Don't end warning with a
2162 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
2163 warning with a newline.
2164 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
2166 (s12z_frame_cache): Likewise.
2167 * dwarf-index-cache.c (index_cache::store): Don't end warning with
2169 * solib-svr4.c (disable_probes_interface): Don't end warning with
2171 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
2173 * python/python.c (do_finish_initialization): Don't end warning
2176 2019-06-10 Tom Tromey <tom@tromey.com>
2178 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2179 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
2182 2019-06-10 Tom Tromey <tromey@adacore.com>
2184 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
2186 (elf_new_init): Don't call stabsread_new_init.
2187 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
2188 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
2189 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
2191 2019-06-10 Tom de Vries <tdevries@suse.de>
2195 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
2197 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
2199 * source.c (find_and_open_source): Also rewrite relative file
2202 2019-04-26 Amos Bird <amosbird@gmail.com>
2204 * annotate.c (annotate_thread_exited): Add "thread-exited"
2207 2019-06-06 Tom Tromey <tromey@adacore.com>
2209 * maint.h (class scoped_command_stats): Use
2210 DISABLE_COPY_AND_ASSIGN.
2211 <print_time>: New method.
2212 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
2214 (scoped_command_stats::print_time): New method.
2216 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2218 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
2219 instructions of lengths 6 or 8 bytes.
2221 2019-06-04 Pedro Alves <palves@redhat.com>
2223 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
2225 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
2226 * breakpoint.c (condition_completer): Likewise.
2227 * cli/cli-dump.c (scan_expression): Likewise.
2228 * common/filestuff.c (mkdir_recursive): Likewise.
2229 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
2230 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
2231 (gdb_abspath): Likewise.
2232 * compile/compile-cplus-types.c
2233 (compile_cplus_instance::decl_name): Likewise.
2234 * completer.c (complete_explicit_location):
2235 (signal_completer, reg_or_group_completer_1): Likewise.
2236 * cp-support.c (cp_remove_params_if_any): Likewise.
2237 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
2238 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
2239 * infcmd.c (strip_bg_char): Likewise.
2240 * linespec.c (copy_token_string): Likewise.
2241 * mi/mi-main.c (output_cores): Likewise.
2242 * psymtab.c (psymtab_search_name):
2243 * symfile.c (test_set_ext_lang_command): Likewise.
2244 * target.c (target_fileio_read_stralloc): Likewise.
2245 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
2246 * value.c (complete_internalvar): Likewise.
2248 2019-06-04 Christian Biesinger <cbiesinger@google.com>
2250 Add objfile property to gdb.Type.
2251 * NEWS: Mention Python API addition.
2252 * python/py-type.c (typy_get_objfile): New method.
2254 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2256 * NEWS: Mention the new set|show style [title|highlight].
2257 Mention changes to "show style", "help" and "apropos".
2259 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2261 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
2262 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
2263 instead of print_help_for_command.
2264 (print_doc_of_command): New function.
2265 (help_list): Add 'apropos -v word' suggestion.
2266 (print_help_for_command): Style the command name using title style.
2267 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
2268 (_initialize_cli_cmds): Describe -v in apropos_command help.
2270 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2272 * cli/cli-style.h (cli_style_option): Add name in constructor,
2273 add m_name class member, add constructor with intensity,
2274 add name class function.
2275 (cli_style_option::add_setshow_commands): Remove name argument.
2276 (highlight_style, title_style): New styles.
2277 * cli/cli-style.c (do_show): New function that shows a style
2278 characteristic styling the style name with itself.
2279 (set_style_name): New function.
2280 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
2281 Update all callers according to the changes in cli/cli-style.h.
2282 * utils.h (fputs_highlighted): New function.
2283 * utils.c (fputs_highlighted): Likewise.
2285 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2287 * NEWS: Mention new pipe command and new convenience variables.
2289 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2291 * cli/cli-cmds.c (pipe_command): New function.
2292 (_initialize_cli_cmds): Call add_com for pipe_command.
2293 Define | as an alias for pipe.
2294 (exit_status_set_internal_vars): New function.
2295 (shell_escape): Call exit_status_set_internal_vars.
2296 cli/cli-decode.c (find_command_name_length): Recognize | as
2297 a single character command.
2299 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2301 * gdbcmd.h (execute_command_to_ui_file): New declaration.
2302 top.c (execute_command_to_ui_file): New function, mostly a copy
2303 of execute_command_to_string.
2304 (execute_command_to_string): Implement by calling
2305 execute_command_to_ui_file.
2307 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2309 * top.h (saved_command_line): Remove declaration.
2310 * top.c (previous_saved_command_line, previous_repeat_arguments):
2312 (saved_command_line): Make static, define together with other
2314 (dont_repeat): Clear repeat_arguments.
2315 (repeat_previous, get_saved_command_line, save_command_line):
2317 (gdb_init): Initialize saved_command_line
2318 and previous_saved_command_line.
2319 * main.c (captured_main_1): Remove saved_command_line initialization.
2320 * event-top.c (handle_line_of_input): Update to use
2321 the new 'repeat' related functions instead of direct access to
2323 * command.h (repeat_previous, get_saved_command_line,
2324 save_command_line): New declarations.
2325 (dont_repeat): Add comment.
2327 2019-05-30 Tom Tromey <tromey@adacore.com>
2329 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
2331 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
2333 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
2336 * completer.c (complete): Initialize variable word.
2338 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
2340 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
2341 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
2342 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
2343 'body' is NULL to the outter 'if', protecting the '!is_define'
2346 2019-05-29 Tom Tromey <tromey@adacore.com>
2348 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
2349 (dwarf_unknown): New function.
2350 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
2351 (dwarf_type_encoding_name): Use dwarf_unknown.
2353 2019-05-29 Tom Tromey <tromey@adacore.com>
2356 * cp-valprint.c (cp_print_value_fields): Call
2357 cp_print_static_field inside "try".
2359 2019-05-29 Tom Tromey <tromey@adacore.com>
2361 * inflow.c (struct terminal_info): Add default operator=.
2362 * configure: Rebuild.
2363 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
2364 -Wdeprecated-copy-dtor, -Wredundant-move.
2366 2019-05-29 Tom Tromey <tromey@adacore.com>
2369 * infcmd.c (print_return_value_1): Handle finish_print
2371 (show_print_finish): New function.
2372 (_initialize_infcmd): Add "set/show print finish" commands.
2373 * valprint.c (user_print_options): Initialize new member.
2374 * valprint.h (struct value_print_options) <finish_print>: New
2377 2019-05-28 Tom Tromey <tromey@adacore.com>
2379 * ada-lang.c (ada_remove_Xbn_suffix)
2380 (find_old_style_renaming_symbol)
2381 (parse_old_style_renaming): Remove.
2382 (ada_find_renaming_symbol): Don't call
2383 find_old_style_renaming_symbol.
2384 (ada_is_renaming_symbol): Rename from
2385 ada_find_renaming_symbol. Remove "block" parameter. Return
2387 (ada_read_var_value): Update and simplify.
2388 * ada-exp.y (write_var_or_type): Remove old code.
2390 2019-05-28 Alan Hayward <alan.hayward@arm.com>
2392 * event-top.c: Remove include comment.
2393 * inflow.c (class scoped_ignore_sigttou): Move from here...
2394 * inflow.h (class scoped_ignore_sigttou): ...to here.
2395 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
2396 * top.c: Remove include comment.
2398 2019-05-27 Tom Tromey <tom@tromey.com>
2402 2019-05-22 Tom Tromey <tromey@adacore.com>
2404 * target.c (target_follow_exec): Constify parameter.
2405 * target-delegates.c: Rebuild.
2406 * remote.c (remote_target::follow_exec): Constify parameter.
2407 * infrun.c (follow_exec): Constify parameter.
2408 * target.h (struct target_ops) <follow_exec>: Constify parameter.
2409 (target_follow_exec): Likewise.
2411 2019-05-22 Alan Hayward <alan.hayward@arm.com>
2413 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
2414 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
2416 2019-05-22 Alan Hayward <alan.hayward@arm.com>
2418 * NEWS: Add debugredirect and testsuite sections.
2420 2019-05-22 Simon Cook <simon.cook@embecosm.com>
2422 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
2423 target descriptions using exclusively floating point register name
2426 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2429 * f-lang.c (build_fortran_types): Handle the case where
2430 gdbarch_floatformat_for_type returns a nullptr.
2432 2019-05-21 Tom de Vries <tdevries@suse.de>
2435 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
2437 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
2440 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
2442 * i386-tdep.c (i386_floatformat_for_type): Use
2443 floatformats_ia64_quad for the 16-byte floating point component
2444 within a fortran 32-byte complex number.
2446 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
2448 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
2449 delete default constructor.
2450 (find_partial_die): Update to return const struct.
2451 (partial_die_parent_scope): Move variable declaration into scope
2452 of its use and change its type to auto.
2453 (guess_partial_die_structure_name): Likewise.
2454 (partial_die_info::fixup): Likewise.
2456 2019-05-17 Tom Tromey <tromey@adacore.com>
2458 * source.c (find_and_open_source): Remove cast.
2460 2019-05-17 Tom Tromey <tromey@adacore.com>
2462 * annotate.c (annotate_source): Make "filename" const.
2463 * annotate.h (annotate_source): Use const.
2465 2019-05-17 Alan Hayward <alan.hayward@arm.com>
2467 * disasm.c (set_disassembler_options): Send errors to stderr.
2469 2019-05-17 Alan Hayward <alan.hayward@arm.com>
2471 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
2472 (cli_interp_base::set_logging): Check debug_redirect.
2473 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
2474 * cli/cli-logging.c (debug_redirect): Add static variable.
2475 (pop_output_files): Add default param.
2476 (handle_redirections): Print debug setting.
2477 (show_logging_command): Likewise.
2478 (_initialize_cli_logging): Add debugredirect command.
2479 * interps.c (current_interp_set_logging): Add debug_redirect
2481 * interps.h (set_logging): Add debug_redirect parameter.
2482 (current_interp_set_logging): Likewise.
2483 * mi/mi-common.h: Likewise.
2484 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
2486 2019-05-17 Alan Hayward <alan.hayward@arm.com>
2487 Tom Tromey <tromey@adacore.com>
2489 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
2491 * cli/cli-interp.h (make_logging_output): Remove declaration.
2492 * cli/cli-logging.c (make_logging_output): Remove function.
2493 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
2495 * ui-file.c (tee_file::tee_file): Remove bools.
2496 (tee_file::~tee_file): Remove deletes.
2497 * ui-file.h (tee_file): Remove bools.
2499 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
2501 * mi/mi-cmds.h (mi_cmd_complete): New function.
2502 * mi/mi-main.c (mi_cmd_complete): Likewise.
2503 * mi/mi-cmds.c: Define new MI command -complete.
2504 * NEWS: Mention new -complete command.
2506 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
2508 * completer.h (complete): New function.
2509 * completer.c (complete): Likewise.
2510 * cli/cli-cmds.c: (complete_command): Update to use new complete()
2511 function defined in completer.h.
2513 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
2515 * MAINTAINERS (Write After Approval): Add myself.
2517 2019-05-17 Tom de Vries <tdevries@suse.de>
2520 * dwarf2read.c (struct cu_partial_die_info): New struct.
2521 (find_partial_die): Return cu_partial_die_info.
2522 (partial_die_parent_scope, guess_partial_die_structure_name)
2523 (partial_die_info::fixup): Handle new return type of find_partial_die.
2525 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2527 * stap-probe.c (stap_parse_register_operand): Make "regname" an
2528 "std::string", simplifying the algorithm.
2530 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2532 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
2533 (stap_static_probe_ops::get_probes): Likewise.
2535 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2537 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
2538 '-')" and "else if".
2539 (stap_parse_single_operand): Join checks for
2540 "gdbarch_stap_parse_special_token_p" and
2541 "gdbarch_stap_parse_special_token" in the same "if" statement.
2542 Invert check when verifying for operation on register
2545 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2547 * stap-probe.c (stap_get_opcode): Update comment.
2548 (stap_get_expected_argument_type): Likewise.
2549 (handle_stap_probe): Likewise.
2551 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2553 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
2554 return type to 'bool'. Adjust comment. Use 'bool' when
2556 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2557 * stap-probe.c (stap_parse_argument_1): Likewise.
2558 (stap_is_operator): Likewise.
2559 (stap_is_generic_prefix): Likewise.
2560 (stap_is_register_prefix): Likewise.
2561 (stap_is_register_indirection_prefix): Likewise.
2562 (stap_is_integer_prefix): Likewise.
2563 (stap_generic_check_suffix): Likewise.
2564 (stap_check_integer_suffix): Likewise.
2565 (stap_check_register_suffix): Likewise.
2566 (stap_check_register_indirection_suffix): Likewise.
2567 (stap_parse_register_operand): Likewise.
2568 (stap_parse_single_operand): Likewise.
2569 (stap_parse_argument_1): Likewise.
2570 (stap_probe::get_argument_count): Likewise.
2571 (stap_is_operator): Likewise.
2573 2019-05-16 Tom Tromey <tromey@adacore.com>
2575 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
2578 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
2580 * linux-thread-db.c (try_thread_db_load_1): Change return type
2582 (try_thread_db_load): Likewise.
2583 (try_thread_db_load_from_pdir_1): Likewise.
2584 (try_thread_db_load_from_pdir): Likewise.
2585 (try_thread_db_load_from_sdir): Likewise.
2586 (try_thread_db_load_from_dir): Likewise.
2587 (thread_db_load_search): Likewise.
2588 (has_libpthread): Likewise.
2589 (thread_db_load): Likewise.
2591 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
2593 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
2594 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
2595 NULL, and complain/return if that's the case.
2597 2019-05-15 John Darrington <john@darrington.wattle.id.au>
2599 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
2600 (advance, posn, abstract_read_memory): New functions.
2601 [struct mem_read_abstraction]: New struct.
2602 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
2604 2019-05-14 Tom Tromey <tromey@adacore.com>
2606 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
2607 value is not lval_memory.
2609 2019-05-14 Tom Tromey <tromey@adacore.com>
2611 * solib.c (info_sharedlibrary_command): Style the file name.
2613 2019-05-14 Alan Hayward <alan.hayward@arm.com>
2615 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
2616 (aarch64_vnv_type): Likewise.
2617 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
2618 * common/tdesc.c: Likewise.
2619 * common/tdesc.h (enum tdesc_type_kind): Likewise.
2620 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
2621 * features/aarch64-fpu.xml: Add ieee half view.
2622 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
2623 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
2624 * gdbtypes.h (struct builtin_type): Likewise.
2625 (struct objfile_type): Likewise.
2627 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
2629 * language.c (language_sniff_from_mangled_name): Fix "langauge"
2631 * location.h (string_to_event_location): Likewise.
2633 2019-05-11 Joel Brobecker <brobecker@adacore.com>
2637 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
2639 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
2640 New variable declaration.
2641 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
2643 (print_one_breakpoint): Use ui_out::test_flags and new global
2644 variable to compute use_fixed_output.
2645 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
2647 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
2648 (mi_multi_location_breakpoint_output_fixed): Remove.
2649 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
2651 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
2652 fix_multi_location_breakpoint_output flag if version >= 3.
2653 * ui-out.h (enum ui_out_flag)
2654 <fix_multi_location_breakpoint_output>: New enumerator.
2656 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
2658 * contrib/cc-with-tweaks.sh: Validate dwz's work.
2660 2019-05-10 Tom Tromey <tromey@adacore.com>
2662 * ada-lang.c (catch_ada_completer): New function.
2663 (_initialize_ada_language): Use it.
2665 2019-05-10 Tom Tromey <tromey@adacore.com>
2667 * thread.c (print_thread_info): Make "requested_threads" const.
2668 * gdbthread.h (print_thread_info): Make "requested_threads"
2670 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
2671 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
2673 2019-05-08 Tom Tromey <tom@tromey.com>
2675 * gdbtypes.c (objfile_type_data): Change type.
2676 (objfile_type, _initialize_gdbtypes): Update.
2678 2019-05-08 Tom Tromey <tom@tromey.com>
2680 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
2681 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
2682 (_initialize_dwarf2_frame): Update.
2684 2019-05-08 Tom Tromey <tom@tromey.com>
2686 * objc-lang.c (objc_objfile_data): Change type.
2687 (find_methods): Update.
2688 (_initialize_objc_lang): Remove.
2690 2019-05-08 Tom Tromey <tom@tromey.com>
2692 * stabsread.c (rs6000_builtin_type_data): Change type.
2693 (rs6000_builtin_type, _initialize_stabsread): Update.
2695 2019-05-08 Tom Tromey <tom@tromey.com>
2697 * mips-tdep.c (mips_pdr_data): Remove.
2698 (_initialize_mips_tdep): Update.
2700 2019-05-08 Tom Tromey <tom@tromey.com>
2702 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
2703 (hppa_init_objfile_priv_data, read_unwind_info)
2704 (find_unwind_entry, _initialize_hppa_tdep): Update.
2706 2019-05-08 Tom Tromey <tom@tromey.com>
2708 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
2709 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
2711 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
2713 2019-05-08 Tom Tromey <tom@tromey.com>
2715 * mdebugread.c (basic_type_data): Change type.
2716 (basic_type, _initialize_mdebugread): Update.
2718 2019-05-08 Tom Tromey <tom@tromey.com>
2720 * common/gdb_unique_ptr.h (struct noop_deleter): New.
2722 2019-05-08 Tom Tromey <tom@tromey.com>
2724 * nto-tdep.c (nto_inferior_data_reg): Change type.
2725 (nto_inferior_data): Update.
2726 (nto_inferior_data_cleanup, nto_new_inferior_data)
2727 (_initialize_nto_tdep): Remove.
2728 * nto-tdep.h (struct nto_inferior_data): Add initializers.
2730 2019-05-08 Tom Tromey <tom@tromey.com>
2732 * ada-lang.c (struct ada_inferior_data): Add initializers.
2733 (ada_inferior_data): Change type.
2734 (ada_inferior_data_cleanup): Remove.
2735 (get_ada_inferior_data, ada_inferior_exit)
2736 (struct ada_pspace_data): Add initializers, destructor.
2737 (ada_pspace_data_handle): Change type.
2738 (get_ada_pspace_data): Update.
2739 (ada_pspace_data_cleanup): Remove.
2741 2019-05-08 Tom Tromey <tom@tromey.com>
2743 * coffread.c (struct coff_symfile_info): Add initializers.
2744 (coff_objfile_data_key): Move lower. Change type.
2745 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
2747 (coff_free_info): Remove.
2749 2019-05-08 Tom Tromey <tom@tromey.com>
2751 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
2752 (fbsd_pspace_data_handle): Move lower. Change type.
2753 (get_fbsd_pspace_data): Update.
2754 (fbsd_pspace_data_cleanup): Remove.
2755 (_initialize_fbsd_tdep): Update.
2757 2019-05-08 Tom Tromey <tom@tromey.com>
2759 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
2760 (get_ada_tasks_pspace_data): Update.
2761 (ada_tasks_pspace_data_cleanup): Remove.
2762 (_initialize_tasks): Update.
2763 (ada_tasks_inferior_data_handle): Change type.
2764 (get_ada_tasks_inferior_data): Update.
2765 (ada_tasks_inferior_data_cleanup): Remove.
2766 (struct ada_tasks_pspace_data): Add initializers.
2768 2019-05-08 Tom Tromey <tom@tromey.com>
2770 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
2771 * symfile-debug.c (debug_sym_get_probes): Change type.
2772 * stap-probe.c (handle_stap_probe):
2773 (stap_static_probe_ops::get_probes): Change type.
2774 * probe.h (class static_probe_ops) <get_probes>: Change type.
2775 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
2776 (parse_probes_in_pspace): Update.
2777 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
2779 (any_static_probe_ops::get_probes): Change type.
2780 * elfread.c (elfread_data): New typedef.
2781 (probe_key): Change type.
2782 (elf_get_probes): Likewise. Update.
2783 (probe_key_free): Remove.
2784 (_initialize_elfread): Update.
2785 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
2787 (dtrace_process_dof_probe, dtrace_process_dof)
2788 (dtrace_static_probe_ops::get_probe): Change type.
2790 2019-05-08 Tom Tromey <tom@tromey.com>
2792 * xcoffread.c (struct xcoff_symfile_info): Rename from
2793 coff_symfile_info. Add initializers.
2794 (xcoff_objfile_data_key): Move lower. Change type.
2795 (XCOFF_DATA): Rewrite.
2796 (xcoff_free_info): Remove.
2797 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
2798 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
2799 (xcoff_initial_scan): Update.
2801 2019-05-08 Tom Tromey <tom@tromey.com>
2803 * solib-svr4.c (struct svr4_info): Add initializers and
2805 <probes_table>: Now an htab_up.
2806 (solib_svr4_pspace_data): Change type.
2807 (free_probes_table): Simplify.
2808 (~svr4_info): Rename from svr4_pspace_data_cleanup.
2809 (get_svr4_info, probes_table_htab_remove_objfile_probes)
2810 (probes_table_remove_objfile_probes, register_solib_event_probe)
2811 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
2812 (_initialize_svr4_solib): Update.
2814 2019-05-08 Tom Tromey <tom@tromey.com>
2816 * remote.c (remote_pspace_data): Change type.
2817 (remote_pspace_data_cleanup): Remove.
2818 (get_remote_exec_file, set_pspace_remote_exec_file)
2819 (_initialize_remote): Update.
2821 2019-05-08 Tom Tromey <tom@tromey.com>
2823 * breakpoint.c (breakpoint_objfile_key): Change type.
2824 (get_breakpoint_objfile_data): Update.
2825 (free_breakpoint_objfile_data): Remove.
2826 (_initialize_breakpoint): Update.
2828 2019-05-08 Tom Tromey <tom@tromey.com>
2830 * linux-tdep.c (struct linux_info): Add initializers.
2831 (linux_inferior_data): Move. Change type.
2832 (invalidate_linux_cache_inf): Update.
2833 (linux_inferior_data_cleanup): Remove.
2834 (get_linux_inferior_data, _initialize_linux_tdep): Update.
2836 2019-05-08 Tom Tromey <tom@tromey.com>
2838 * auxv.c (auxv_inferior_data): Move. Change type.
2839 (auxv_inferior_data_cleanup): Remove.
2840 (invalidate_auxv_cache_inf): Rewrite.
2841 (get_auxv_inferior_data, _initialize_auxv): Update.
2843 2019-05-08 Tom Tromey <tom@tromey.com>
2845 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
2846 (symfile_debug_objfile_data_key): Change type.
2847 (symfile_debug_installed, debug_qf_has_symbols)
2848 (debug_qf_find_last_source_symtab)
2849 (debug_qf_forget_cached_source_info)
2850 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
2851 (debug_qf_print_stats, debug_qf_dump)
2852 (debug_qf_expand_symtabs_for_function)
2853 (debug_qf_expand_all_symtabs)
2854 (debug_qf_expand_symtabs_with_fullname)
2855 (debug_qf_map_matching_symbols)
2856 (debug_qf_expand_symtabs_matching)
2857 (debug_qf_find_pc_sect_compunit_symtab)
2858 (debug_qf_map_symbol_filenames)
2859 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
2860 (debug_sym_new_init, debug_sym_init, debug_sym_read)
2861 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
2862 (debug_sym_read_linetable, debug_sym_relocate): Update.
2863 (symfile_debug_free_objfile): Remove.
2864 (install_symfile_debug_logging, _initialize_symfile_debug):
2867 2019-05-08 Tom Tromey <tom@tromey.com>
2869 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
2870 allocate_on_obstack.
2871 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
2872 (get_dwarf2_per_objfile): Update.
2873 (set_dwarf2_per_objfile): Remove.
2874 (dwarf2_has_info, dwarf2_get_section_info): Update.
2875 (dwarf2_free_objfile): Remove.
2876 (_initialize_dwarf2_read): Update.
2878 2019-05-08 Tom Tromey <tom@tromey.com>
2880 * auto-load.c (struct auto_load_pspace_info): Add destructor and
2882 <unsupported_script_warning_printed,
2883 script_not_found_warning_printed>: Now bool.
2884 (auto_load_pspace_data): Change type.
2885 (~auto_load_pspace_info): Rename from
2886 auto_load_pspace_data_cleanup.
2887 (get_auto_load_pspace_data, init_loaded_scripts_info)
2888 (clear_section_scripts, maybe_print_unsupported_script_warning)
2889 (maybe_print_script_not_found_warning, _initialize_auto_load):
2892 2019-05-08 Tom Tromey <tom@tromey.com>
2894 * objfiles.c (objfile_pspace_info): Add destructor and
2896 (objfiles_pspace_data): Change type.
2897 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
2898 (get_objfile_pspace_data): Update.
2899 (objfiles_bfd_data): Change type.
2900 (get_objfile_bfd_data): Update.
2901 (objfile_bfd_data_free, _initialize_objfiles): Remove.
2903 2019-05-08 Tom Tromey <tom@tromey.com>
2905 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
2907 (get_catch_syscall_inferior_data): Update.
2908 (catch_syscall_inferior_data_cleanup): Remove.
2909 (_initialize_break_catch_syscall): Update.
2911 2019-05-08 Tom Tromey <tom@tromey.com>
2913 * inflow.c (struct terminal_info): Add destructor and
2915 (inflow_inferior_data): Change type.
2916 (~terminal_info): Rename from inflow_inferior_data_cleanup.
2917 (get_inflow_inferior_data, inflow_inferior_exit)
2918 (swap_terminal_info, _initialize_inflow): Update.
2920 2019-05-08 Tom Tromey <tom@tromey.com>
2922 * target-dcache.c (target_dcache_cleanup): Remove.
2923 (target_dcache_aspace_key): Change type.
2924 (target_dcache_init_p, target_dcache_invalidate)
2925 (target_dcache_get, target_dcache_get_or_init)
2926 (_initialize_target_dcache): Update.
2927 * dcache.h (struct dcache_deleter): New.
2929 2019-05-08 Tom Tromey <tom@tromey.com>
2931 * symtab.c (struct symbol_cache): Add destructor and
2933 (symbol_cache_key): Move. Change type.
2934 (make_symbol_cache, free_symbol_cache): Remove.
2935 (get_symbol_cache): Update.
2936 (symbol_cache_cleanup): Remove.
2937 (ALL_PSPACES, symbol_cache_flush)
2938 (maintenance_print_symbol_cache)
2939 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
2942 2019-05-08 Tom Tromey <tom@tromey.com>
2944 * symtab.c (struct main_info): Add destructor and initializers.
2945 (main_progspace_key): Move. Change type.
2946 (get_main_info): Update.
2947 (main_info_cleanup): Remove.
2948 (_initialize_symtab): Update.
2950 2019-05-08 Tom Tromey <tom@tromey.com>
2952 * registry.h (DECLARE_REGISTRY): Define the _key class.
2954 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
2956 * NEWS: Merge two 'New commands' sections.
2958 2019-05-08 Joel Brobecker <brobecker@adacore.com>
2960 * ada-valprint.c (ada_val_print_gnat_array): Remove language
2961 parameter and use Ada language definition instead.
2962 (ada_val_print_ptr): Remove unused language parameter.
2963 (ada_val_print_num): Remove language parameter and use Ada language
2965 (ada_val_print_enum, ada_val_print_flt): Remove unused language
2967 (ada_val_print_struct_union, ada_val_print_ref): Remove language
2968 parameter and use Ada language definition instead.
2969 (ada_val_print_1): Update all ada_val_print_xxx calls.
2970 Remove language parameter.
2971 (ada_val_print): Update ada_val_print_1 call.
2973 2019-05-08 Tom Tromey <tromey@adacore.com>
2975 * remote.c (remote_hw_watchpoint_limit)
2976 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
2979 2019-05-08 Tom Tromey <tromey@adacore.com>
2981 * maint.c (_initialize_maint_cmds): Move initialization code to
2983 (watchdog, show_watchdog): Move to remote.c.
2984 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
2986 (_initialize_remote): Move initialization code from maint.c.
2987 * defs.h (watchdog): Don't declare.
2989 2019-05-08 Tom Tromey <tromey@adacore.com>
2991 * tui/tui-interp.c: Include main.h.
2992 * interps.c: Include main.h.
2993 * main.h (interpreter_p): Declare.
2994 * defs.h (interpreter_p): Don't declare.
2996 2019-05-08 Tom Tromey <tromey@adacore.com>
2998 * dwarf2loc.c: Include dwarf2read.h.
2999 * defs.h (read_unsigned_leb128): Don't declare.
3000 * dwarf2read.h (read_unsigned_leb128): Declare.
3002 2019-05-08 Tom Tromey <tromey@adacore.com>
3004 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
3007 2019-05-08 Tom Tromey <tromey@adacore.com>
3009 * utils.c (fputs_maybe_filtered): Reset style after paging, even
3010 when no wrap column is set.
3012 2019-05-08 Tom Tromey <tromey@adacore.com>
3014 * c-lang.c (c_get_string): Handle non-C-style arrays.
3016 2019-05-08 Tom Tromey <tromey@adacore.com>
3018 * typeprint.c (print_offset_data::update): Print the bit offset,
3019 not the number of bits remaining.
3021 2019-05-08 Tom Tromey <tromey@adacore.com>
3023 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
3024 padding at end of comment.
3026 2019-05-08 Tom Tromey <tromey@adacore.com>
3028 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
3031 2019-05-06 Tom Tromey <tom@tromey.com>
3033 * common/scoped_mmap.c: Include common-defs.h.
3034 * common/scoped_mmap.h: Don't include config.h.
3036 2019-05-04 Tom Tromey <tom@tromey.com>
3038 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
3039 (struct aarch64_call_info): Add initializers.
3040 <si>: Now a std::vector.
3041 (pass_on_stack, aarch64_push_dummy_call): Update.
3043 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
3044 Tom Tromey <tom@tromey.com>
3046 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
3047 (ppc_threads): Now a std::vector. Now static.
3048 (hwdebug_find_thread_points_by_tid)
3049 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
3052 2019-05-04 Tom Tromey <tom@tromey.com>
3054 * arc-tdep.c (arc_tdesc_init): Return bool.
3056 2019-05-04 Tom Tromey <tom@tromey.com>
3058 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
3059 Use gdb_assert_not_reached.
3061 2019-05-04 Tom Tromey <tom@tromey.com>
3063 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
3066 2019-05-04 Tom Tromey <tom@tromey.com>
3068 * arc-tdep.c (arc_tdesc_init): Use bool.
3070 2019-05-04 Tom Tromey <tom@tromey.com>
3072 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
3074 2019-05-04 Tom Tromey <tom@tromey.com>
3076 * cli/cli-cmds.c (valid_command_p): Return bool.
3078 2019-05-04 Tom Tromey <tom@tromey.com>
3080 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
3081 * command.h (valid_user_defined_cmd_name_p): Channge return type.
3083 2019-05-04 Raul Tambre <raul@tambre.ee>
3085 * python/lib/gdb/prompt.py (_ExtendedPrompt)
3086 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
3087 operator for comparison.
3089 2019-05-04 Tom Tromey <tom@tromey.com>
3091 * psymtab.c (psymbol_name_matches, match_partial_symbol)
3092 (lookup_partial_symbol, print_partial_symbols)
3093 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
3094 (psymbol_compare): Update.
3095 (add_psymbol_to_bcache): Clear the entire psymbol.
3096 (maintenance_check_psymtabs): Update.
3097 * psympriv.h (struct partial_symbol): Don't derive from
3098 general_symbol_info.
3099 <obj_section, unrelocated_address, address,
3100 set_unrelocated_address>: Update.
3101 <ginfo>: New member.
3102 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3103 (debug_names::write_psymbols): Update.
3105 2019-05-04 Tom de Vries <tdevries@suse.de>
3107 * contrib/cc-with-tweaks.sh: Support -n arg.
3109 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3111 * corelow.c (core_target::detach): Ensure frame cache and
3112 register caches are cleared.
3113 inferior.c (exit_inferior_1): Likewise.
3115 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
3116 Tom Tromey <tom@tromey.com>
3118 * dictionary.c (collate_pending_symbols_by_language): Remove
3119 "struct" from foreach.
3120 * symtab.c (lookup_global_symbol_from_objfile)
3121 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
3123 * ser-tcp.c (net_open): Remove "struct" from foreach.
3124 * objfiles.c (objfile_relocate, objfile_rebase)
3125 (objfile_has_symbols): Remove "struct" from foreach.
3126 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
3128 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
3130 * darwin-nat.c (thread_info_from_private_thread_info): Remove
3131 "struct" from foreach.
3132 * ada-lang.c (create_excep_cond_exprs)
3133 (ada_exception_catchpoint_cond_string): Remove "struct" from
3136 2019-05-03 Tom Tromey <tromey@adacore.com>
3138 * ada-exp.y (convert_char_literal): Check suffix of each
3141 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
3144 * ada-exp.y (yywrap): Don't define.
3145 * ada-lex.l (%option): Add noyywrap
3148 2019-05-03 Eli Zaretskii <eliz@gnu.org>
3150 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
3151 _WIN32_WINNT to the XP level, unless already defined to a higher
3154 * unittests/parse-connection-spec-selftests.c:
3156 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
3159 * symfile.c (find_separate_debug_file): Remove colon from the
3160 drive spec of DOS/Windows file names of the target, so that the
3161 file name produced from DEBUGDIR and the target's directory will
3162 be valid on DOS/Windows systems.
3164 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
3166 * rust-lang.c (val_print_struct): Handle printing structures
3169 2019-05-02 Tom Tromey <tromey@adacore.com>
3171 * valarith.c (_initialize_valarith): Remove.
3173 2019-05-01 Tom Tromey <tromey@adacore.com>
3175 * ada-lang.c (ada_value_primitive_field): Treat more fields as
3178 2019-05-01 Tom Tromey <tromey@adacore.com>
3180 * ada-lang.c (ada_value_assign): Correctly compute starting offset
3181 for big-endian copies.
3183 2019-04-30 Ali Tamur <tamur@google.com>
3184 * gdb/dwarf2read.c (read_3_bytes): New declaration.
3185 (read_attribute_value): Added DW_FORM_strx1-4 cases.
3186 (read_3_bytes): New function.
3188 2019-04-30 Joel Brobecker <brobecker@adacore.com>
3190 * windows-nat.c (main_thread_id): Delete.
3191 (handle_output_debug_string): Replace main_thread_id by
3192 current_event.dwThreadId.
3193 (fake_create_process): Likewise.
3194 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
3195 Do not set main_thread_id.
3196 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
3197 current_event.dwThreadId.
3198 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
3200 2019-04-30 Joel Brobecker <brobecker@adacore.com>
3202 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
3203 Use current_event.dwThreadId instead of main_thread_id.
3205 2019-04-30 Tom Tromey <tromey@adacore.com>
3207 * ada-lang.c (ada_lookup_simple_minsyms): New function.
3208 (create_excep_cond_exprs): Iterate over program spaces.
3209 (ada_exception_catchpoint_cond_string): Examine all minimal
3210 symbols for exception types.
3212 2019-04-30 Tom Tromey <tromey@adacore.com>
3215 * dwarf2read.c (process_structure_scope): Handle case where type
3216 has template parameters but no symbol was created.
3218 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3219 Chris January <chris.january@arm.com>
3221 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
3223 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
3225 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3227 * f-typeprint.c (f_print_type): Update rules for printing
3229 (f_type_print_varspec_suffix): Likewise.
3231 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3232 Chris January <chris.january@arm.com>
3234 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
3237 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3239 * f-lang.c (build_fortran_types): Change name of void type to
3241 * f-typeprint.c (f_type_print_base): Print the name of the void
3242 type, rather than a fixed string.
3243 * f-valprint.c (f_decorations): Use lower case void string.
3245 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3246 Chris January <chris.january@arm.com>
3248 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
3251 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3252 Chris January <chris.january@arm.com>
3253 David Lecomber <david.lecomber@arm.com>
3255 * f-exp.y (BINOP_INTRINSIC): New token.
3256 (exp): New parser rule handling BINOP_INTRINSIC.
3257 (f77_keywords): Add new builtin procedures.
3258 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
3259 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
3260 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
3261 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
3262 (print_unop_subexp_f): New function.
3263 (print_binop_subexp_f): New function.
3264 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
3265 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
3266 (dump_subexp_body_f): Likewise.
3267 (operator_check_f): Likewise.
3268 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
3269 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
3271 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3273 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
3275 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
3276 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
3277 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
3278 (operator_length_f): New fuction.
3279 (print_subexp_f): New function.
3280 (op_name_f): New function.
3281 (dump_subexp_body_f): New function.
3282 (operator_check_f): New function.
3283 (exp_descriptor_f): Replace standard expression handling functions
3285 * gdb/fortran-operator.def: New file.
3286 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
3287 * gdb/std-operator.def: Remove UNOP_KIND.
3289 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3291 * std-operator.def: Remove unbalanced, stray double quote
3294 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
3295 Chris January <chris.january@arm.com>
3296 Daniel Everett <daniel.everett@arm.com>
3297 Nick Forrington <nick.forrington@arm.com>
3298 Richard Bunt <richard.bunt@arm.com>
3300 * cp-valprint.c (cp_print_value_fields): Allow an additional level
3301 of depth when printing anonymous structs or unions.
3302 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3303 Don't print either the top-level value, or the children if the
3304 max-depth is exceeded.
3305 (ppscm_print_children): When printing the key of a map, allow one
3306 extra level of depth.
3307 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
3308 print either the top-level value, or the children if the max-depth
3310 (print_children): When printing the key of a map, allow one extra
3312 * python/py-value.c (valpy_format_string): Add max_depth keyword.
3313 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
3314 (user_print_options): Initialise max_depth field.
3315 (val_print_scalar_or_string_type_p): New function.
3316 (val_print): Check to see if the max depth has been reached.
3317 (val_print_check_max_depth): Define new function.
3318 (show_print_max_depth): New function.
3319 (_initialize_valprint): Add 'print max-depth' option.
3320 * valprint.h (struct value_print_options) <max_depth>: New field.
3321 (val_print_check_max_depth): Declare new function.
3322 * NEWS: Document new feature.
3324 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
3326 * ada-lang.c (ada_language_defn): Initialise new field.
3327 * c-lang.c (c_is_string_type_p): New function.
3328 (c_language_defn): Initialise new field.
3329 (cplus_language_defn): Initialise new field.
3330 (asm_language_defn): Initialise new field.
3331 (minimal_language_defn): Initialise new field.
3332 * c-lang.h (c_is_string_type_p): Declare new function.
3333 * d-lang.c (d_language_defn): Initialise new field.
3334 * f-lang.c (f_is_string_type_p): New function.
3335 (f_language_defn): Initialise new field.
3336 * go-lang.c (go_is_string_type_p): New function.
3337 (go_language_defn): Initialise new field.
3338 * language.c (default_is_string_type_p): New function.
3339 (unknown_language_defn): Initialise new field.
3340 (auto_language_defn): Initialise new field.
3341 * language.h (struct language_defn) <la_is_string_type_p>: New
3343 (default_is_string_type_p): Declare new function.
3344 * m2-lang.c (m2_language_defn): Initialise new field.
3345 * objc-lang.c (objc_language_defn): Initialise new field.
3346 * opencl-lang.c (opencl_language_defn): Initialise new field.
3347 * p-lang.c (pascal_is_string_type_p): New function.
3348 (pascal_language_defn): Initialise new field.
3349 * rust-lang.c (rust_is_string_type_p): New function.
3350 (rust_language_defn): Initialise new field.
3352 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
3354 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
3356 * ada-lang.c (ada_language_defn): Initialise new field.
3357 * c-lang.c (c_language_defn): Likewise.
3358 (cplus_language_defn): Likewise.
3359 (asm_language_defn): Likewise.
3360 (minimal_language_defn): Likewise.
3361 * d-lang.c (d_language_defn): Likewise.
3362 * f-lang.c (f_language_defn): Likewise.
3363 * go-lang.c (go_language_defn): Likewise.
3364 * language.c (unknown_language_defn): Likewise.
3365 (auto_language_defn): Likewise.
3366 * m2-lang.c (m2_language_defn): Likewise.
3367 * objc-lang.c (objc_language_defn): Likewise.
3368 * opencl-lang.c (opencl_language_defn): Likewise.
3369 * p-lang.c (pascal_language_defn): Likewise.
3370 * rust-lang.c (rust_language_defn): Likewise.
3372 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
3374 * ada-lang.c (ada_is_character_type): Change return type to bool.
3375 (ada_is_string_type): Likewise.
3376 * ada-lang.h (ada_is_character_type): Update declaration
3377 (ada_is_string_type): Likewise.
3379 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3381 Support style in 'frame|thread apply'
3383 * gdbcmd.h (execute_command_to_string): New term_out parameter.
3384 * record.c (record_start, record_stop): Update callers of
3385 execute_command_to_string with false.
3386 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
3387 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
3389 (class string_file): New constructor with term_out parameter.
3390 Override methods term_out and can_emit_style_escape. New member
3392 (class stdio_file): Override can_emit_style_escape.
3393 (class tee_file): Override term_out and can_emit_style_escape.
3394 * utils.h (can_emit_style_escape): Remove.
3395 * utils.c (can_emit_style_escape): Likewise.
3396 Update all callers of can_emit_style_escape (SOMESTREAM) to
3397 SOMESTREAM->can_emit_style_escape.
3398 * source-cache.c (source_cache::get_source_lines): Likewise.
3399 * stack.c (frame_apply_command_count): Call execute_command_to_string
3400 passing the term_out characteristic of the current gdb_stdout.
3401 * thread.c (thr_try_catch_cmd): Likewise.
3402 * top.c (execute_command_to_string): pass term_out parameter
3403 to construct the string_file for the command output.
3404 * ui-file.c (term_cli_styling): New function (most code moved
3405 from utils.c can_emit_style_escape).
3406 (string_file::string_file, string_file::can_emit_style_escape,
3407 stdio_file::can_emit_style_escape, tee_file::term_out,
3408 tee_file::can_emit_style_escape): New functions.
3410 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3412 * NEWS: Mention the new set|show may-call-functions.
3413 * infcall.c (may_call_functions_p): New variable.
3414 (show_may_call_functions_p): New function.
3415 (call_function_by_hand_dummy): Throws an error if not
3417 (_initialize_infcall): Call add_setshow_boolean_cmd for
3420 2019-04-25 Keith Seitz <keiths@redhat.com>
3423 * cp-support.c (inspect_type): Don't attempt substitutions
3424 of symbol with the same name.
3426 2019-04-25 Tom Tromey <tromey@adacore.com>
3429 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
3432 2019-04-25 Tom Tromey <tromey@adacore.com>
3434 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
3436 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
3437 (gdb_xml_parser::parse): Use std::move.
3438 * python/python-internal.h (gdbpy_convert_exception): Take a const
3440 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
3442 * python/py-utils.c (gdbpy_convert_exception): Take a const
3444 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
3446 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
3448 * mi/mi-main.c (mi_print_exception): Take a const reference.
3449 * main.c (handle_command_errors): Take a const reference.
3450 * linespec.c (parse_linespec): Use std::move.
3451 * infcall.c (run_inferior_call): Use std::move.
3452 (call_function_by_hand_dummy): Use std::move.
3453 * exec.c (try_open_exec_file): Use std::move.
3454 * exceptions.h (exception_print, exception_fprintf)
3455 (exception_print_same): Update.
3456 * exceptions.c (print_exception, exception_print)
3457 (exception_fprintf, exception_print_same): Change parameters to
3459 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
3460 * common/new-op.c: Use std::move.
3461 * common/common-exceptions.h (struct gdb_exception): Add move
3463 (struct gdb_exception_error, struct gdb_exception_quit, struct
3464 gdb_quit_bad_alloc): Change constructor to move constructor.
3465 (throw_exception): Change parameter to rvalue reference.
3466 * common/common-exceptions.c (throw_exception): Take rvalue
3468 * cli/cli-interp.c (safe_execute_command): Use std::move.
3469 * breakpoint.c (insert_bp_location, location_to_sals): Use
3472 2019-04-25 Tom Tromey <tromey@adacore.com>
3474 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
3475 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
3476 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
3477 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
3478 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
3479 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
3480 guile/scm-value.c: Use unpack.
3481 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
3482 gdbscm_gdb_exception.
3483 (gdbscm_throw_gdb_exception): Likewise.
3484 (struct gdbscm_gdb_exception): New.
3485 (unpack): New function.
3486 (gdbscm_wrap): Use unpack.
3488 2019-04-25 Tom Tromey <tromey@adacore.com>
3490 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
3491 (gdb_rl_callback_handler): Use std::move.
3492 * common/common-exceptions.h (struct gdb_exception): Add move
3493 assignment operator.
3494 (throw_exception_sjlj): Change "exception" to const reference.
3495 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
3496 (throw_exception_sjlj): Change "exception" to const reference.
3498 2019-04-25 Tom Tromey <tromey@adacore.com>
3500 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
3501 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
3502 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
3504 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
3506 * mi/mi-interp.c (mi_interp::exec): Update.
3507 * linespec.c (parse_linespec): Update.
3508 * infcall.c (run_inferior_call): Update.
3509 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
3510 * guile/scm-symbol.c (gdbscm_lookup_symbol)
3511 (gdbscm_lookup_global_symbol): Update.
3512 * guile/scm-param.c (gdbscm_parameter_value): Update.
3513 * guile/scm-frame.c (gdbscm_frame_read_register)
3514 (gdbscm_frame_read_var): Update.
3515 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
3516 * exec.c (try_open_exec_file): Update.
3517 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
3518 (gdb_rl_callback_handler): Update.
3519 * common/common-exceptions.h (exception_none): Don't declare.
3520 * common/common-exceptions.c (exception_none): Don't define.
3521 (struct catcher) <exception>: Update.
3522 * cli/cli-interp.c (safe_execute_command): Update.
3523 * breakpoint.c (insert_bp_location, location_to_sals): Update.
3525 2019-04-25 Ali Tamur <tamur@google.com>
3527 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
3528 (read_attribute_value): Likewise.
3529 (dwarf2_read_addr_index): Update comment.
3530 (read_str_index): Add DW_FORM_strx.
3531 (dwarf2_string_attr): Likewise.
3532 (dwarf2_const_value_attr): Likewise.
3533 (dump_die_shallow): Likewise.
3534 (dwarf2_fetch_constant_bytes): Likewise.
3535 (skip_form_bytes): Likewise.
3536 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
3538 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
3542 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
3543 OFFSET. Verify if current mapping contains an ELF header.
3544 (linux_find_memory_regions_full): Adjust call to
3547 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
3548 Kang Li <kanglictf@gmail.com>
3552 * dwarf2-frame.c (read_initial_length): Be consistent about using
3553 unsigned representation of length.
3554 (decode_frame_entry_1): Likewise. Check for wraparound of
3555 end pointer as well as buffer overflow.
3557 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
3559 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
3562 2019-04-24 Tom Tromey <tromey@adacore.com>
3564 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
3566 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3568 * s12z-tdep.c (s12z_unwind_pc): Delete.
3569 (s12z_unwind_sp): Delete.
3570 (s12z_gdbarch_init): Don't register deleted functions with
3573 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3575 * rl78-tdep.c (rl78_unwind_sp): Delete.
3576 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
3578 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3580 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
3581 (xstormy16_unwind_pc): Delete.
3582 (xstormy16_dummy_id): Delete.
3583 (xstormy16_gdbarch_init): Don't register deleted functions with
3586 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3588 * vax-tdep.c (vax_unwind_pc): Delete.
3589 (vax_gdbarch_init): Don't register deleted function with gdbarch.
3591 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3593 * v850-tdep.c (v850_unwind_sp): Delete.
3594 (v850_unwind_pc): Delete.
3595 (v850_dummy_id): Delete.
3596 (v850_gdbarch_init): Don't register deleted functions with
3599 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3601 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
3602 (tilegx_unwind_pc): Delete.
3603 (tilegx_unwind_dummy_id): Delete.
3604 (tilegx_gdbarch_init): Don't register deleted functions with
3607 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3609 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
3610 (tic6x_dummy_id): Delete.
3611 (tic6x_gdbarch_init): Don't register deleted functions with
3614 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3616 * sparc-tdep.c (sparc_unwind_pc): Delete.
3617 (sparc32_gdbarch_init): Don't register deleted function with
3620 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3622 * sh-tdep.c (sh_unwind_sp): Delete.
3623 (sh_unwind_pc): Delete.
3624 (sh_dummy_id): Delete.
3625 (sh_gdbarch_init): Don't register deleted functions with
3628 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3630 * score-tdep.c (score_unwind_sp): Delete.
3631 (score_unwind_pc): Delete.
3632 (score_dummy_id): Delete.
3633 (score_gdbarch_init): Don't register deleted functions with
3636 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3638 * rx-tdep.c (rx_unwind_pc): Delete.
3639 (rx_unwind_sp): Delete.
3640 (rx_dummy_id): Delete.
3641 (rx_gdbarch_init): Don't register deleted functions with
3642 gdbarch. Update comment.
3644 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3646 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
3647 (rs6000_dummy_id): Delete.
3648 (rs6000_gdbarch_init): Don't register deleted functions with
3651 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3653 * or1k-tdep.c (or1k_dummy_id): Delete.
3654 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
3656 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3658 * nios2-tdep.c (nios2_dummy_id): Delete.
3659 (nios2_unwind_sp): Delete.
3660 (nios2_gdbarch_init): Don't register deleted functions with
3663 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3665 * nds32-tdep.c (nds32_dummy_id): Delete.
3666 (nds32_unwind_pc): Delete.
3667 (nds32_unwind_sp): Delete.
3668 (nds32_gdbarch_init): Don't register deleted functions with
3671 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3673 * msp430-tdep.c (msp430_unwind_pc): Delete.
3674 (msp430_unwind_sp): Delete.
3675 (msp430_dummy_id): Delete.
3676 (msp430_gdbarch_init): Don't register deleted functions with
3679 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3681 * moxie-tdep.c (moxie_unwind_sp): Delete.
3682 (moxie_unwind_pc): Delete.
3683 (moxie_dummy_id): Delete.
3684 (moxie_gdbarch_init): Don't register deleted functions with
3687 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3689 * mn10300-tdep.c (mn10300_dummy_id): Delete.
3690 (mn10300_unwind_pc): Delete.
3691 (mn10300_unwind_sp): Delete.
3692 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
3694 (mn10300_frame_unwind_init): Don't register deleted functions with
3697 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3699 * mep-tdep.c (mep_unwind_pc): Delete.
3700 (mep_unwind_sp): Delete.
3701 (mep_dummy_id): Delete.
3702 (mep_gdbarch_init): Don't register deleted functions with
3705 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3707 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
3708 (m68hc11_unwind_sp): Delete.
3709 (m68hc11_gdbarch_init): Don't register deleted functions with
3712 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3714 * m32r-tdep.c (m32r_unwind_sp): Delete.
3715 (m32r_unwind_pc): Delete.
3716 (m32r_dummy_id): Delete.
3717 (m32r_gdbarch_init): Don't register deleted functions with
3720 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3722 * m32c-tdep.c (m32c_unwind_pc): Delete.
3723 (m32c_unwind_sp): Delete.
3724 (m32c_dummy_id): Delete.
3725 (m32c_gdbarch_init): Don't register deleted functions with
3728 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3730 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
3731 (lm32_unwind_pc): Delete.
3732 (lm32_dummy_id): Delete.
3733 (lm32_gdbarch_init): Don't register deleted functions with
3736 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3738 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
3739 (iq2000_unwind_pc): Delete.
3740 (iq2000_dummy_id): Delete.
3741 (iq2000_gdbarch_init): Don't register deleted functions with
3744 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3746 * nds32-tdep.c (nds32_type_align): Delete.
3747 (nds32_push_dummy_call): Use type_align instead.
3749 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3751 * arm-tdep.c (arm_type_align): Only handle vector override case.
3752 (arm_push_dummy_call): Use type_align.
3753 (arm_gdbarch_init): Register arm_type_align gdbarch function.
3755 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3757 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
3759 (pass_on_stack): Use type_align.
3760 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
3763 2019-04-23 Tom Tromey <tromey@adacore.com>
3765 * dwarf2read.c (line_header::file_name_at): Remove unused
3768 2019-04-23 Tom de Vries <tdevries@suse.de>
3771 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
3775 2019-03-27 Ali Tamur <tamur@google.com>
3777 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
3778 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
3779 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
3780 (dwarf_expr_context::get_addr_index): Likewise
3781 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
3782 (symbol_needs_eval_context::get_addr_index): Likewise
3783 (disassemble_dwarf_expression): Add DW_OP_addrx
3784 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
3785 (read_cutu_die_from_dwo): Update comment
3786 (skip_one_die): Add DW_FORM_addrx
3787 (read_attribute_value): Likewise
3788 (var_decode_location): Add DW_OP_addrx
3789 (dwarf2_const_value_attr): Add DW_FORM_addrx
3790 (dump_die_shallow): Likewise
3791 (dwarf2_fetch_constant_bytes): Likewise
3792 (decode_locdesc): Add DW_OP_addrx
3793 (skip_form_bytes): Add DW_FORM_addrx
3795 2019-04-22 Ali Tamur <tamur@google.com>
3797 * MAINTAINERS (Write After Approval): Add self.
3799 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
3801 * solib-svr4.c (get_svr4_info): Add pspace parameter.
3802 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
3803 (open_symbol_file_object): Likewise.
3804 (svr4_default_sos): Add info parameter.
3805 (svr4_read_so_list): Likewise.
3806 (svr4_current_sos_direct): Adjust functions calls to pass down
3808 (svr4_current_sos_1): Add info parameter.
3809 (svr4_current_sos): Call get_svr4_info, pass info down to
3811 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
3813 (svr4_in_dynsym_resolve_code): Pass current_program_space to
3815 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
3817 (probes_table_remove_objfile_probes): Likewise.
3818 (register_solib_event_probe): Add info parameter.
3819 (solist_update_incremental): Pass info parameter down to
3821 (disable_probes_interface): Add info parameter.
3822 (svr4_handle_solib_event): Pass current_program_space to
3823 get_svr4_info. Adjust disable_probes_interface cleanup.
3824 (svr4_create_probe_breakpoints): Add info parameter, pass it
3825 down to register_solib_event_probe.
3826 (svr4_create_solib_event_breakpoints): Add info parameter,
3827 pass it down to svr4_create_probe_breakpoints.
3828 (enable_break): Pass info down to
3829 svr4_create_solib_event_breakpoints.
3830 (svr4_solib_create_inferior_hook): Pass current_program_space to
3832 (svr4_clear_solib): Likewise.
3834 2019-04-22 Pedro Alves <palves@redhat.com>
3836 * solib-svr4.c (svr4_free_objfile_observer): New.
3837 (probe_and_action::objfile): New field.
3838 (probes_table_htab_remove_objfile_probes)
3839 (probes_table_remove_objfile_probes): New functions.
3840 (register_solib_event_probe): Add 'objfile' parameter. Store it
3841 in the new probe_and_action. Don't store the probe in 'lookup'.
3842 (svr4_create_probe_breakpoints): Pass objfile to
3843 register_solib_event_probe.
3844 (_initialize_svr4_solib): Register a free_objfile observer.
3846 2019-04-19 Tom Tromey <tom@tromey.com>
3848 * common/queue.h: Remove.
3850 2019-04-19 Tom Tromey <tom@tromey.com>
3852 * event-loop.c: Don't include "common/queue.h".
3854 2019-04-19 Tom Tromey <tom@tromey.com>
3856 * remote.c (remote_target): Use delete.
3857 * remote-notif.h: Include <list>, not "common/queue.h".
3858 (notif_client_p): Remove typedef.
3859 (remote_notif_state): Add constructor, destructor, initializer.
3860 <notif_queue>: Now a std::list.
3861 (remote_notif_state_xfree): Don't declare.
3862 * remote-notif.c (remote_notif_process, handle_notification)
3863 (remote_notif_state_allocate): Update.
3864 (~remote_notif_state): Rename from remote_notif_state_xfree.
3866 2019-04-19 Tom Tromey <tom@tromey.com>
3868 * symfile.c (reread_symbols): Update.
3869 * objfiles.c (objfile_register_static_link)
3870 (objfile_lookup_static_link): Update
3871 (~objfile) Don't delete static_links.
3872 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
3874 2019-04-19 Tom Tromey <tom@tromey.com>
3876 * type-stack.h (struct type_stack) <insert>: Constify string.
3877 * type-stack.c (type_stack::insert): Constify string.
3878 * gdbtypes.h (lookup_template_type): Update.
3879 (address_space_name_to_int): Update.
3880 * gdbtypes.c (address_space_name_to_int): Make space_identifier
3882 (lookup_template_type): Make name const.
3883 * c-exp.y: Update rules.
3884 (lex_one_token, classify_name, classify_inner_name)
3885 (c_print_token): Update.
3886 * p-exp.y: Update rules.
3888 * f-exp.y: Update rules.
3890 * d-exp.y: Update rules.
3891 (lex_one_token, classify_name, classify_inner_name): Update.
3892 * parse.c (write_dollar_variable, copy_name): Return std::string.
3893 * parser-defs.h (copy_name): Change return type.
3894 * m2-exp.y: Update rules.
3896 * go-exp.y (lex_one_token): Update.
3898 (classify_unsafe_function, classify_packaged_name)
3899 (classify_name, yylex): Update.
3901 2019-04-19 Sergei Trofimovich <siarheit@google.com>
3903 * configure.ac: add --enable-source-highlight switch.
3904 * configure: Regenerate.
3905 * top.c (print_gdb_version): plumb --enable-source-highlight
3906 status to "show configuration".
3908 2019-04-19 Tom Tromey <tromey@adacore.com>
3910 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
3912 (empty_record, ada_template_to_fixed_record_type_1)
3913 (template_to_static_fixed_type)
3914 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
3915 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
3916 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
3919 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
3922 * source.c (print_source_lines_base): Advance "iter" when a
3923 control character is seen.
3925 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3927 * inferior.h (struct infcall_suspend_state_deleter):
3928 Catch exception in destructor to avoid crash.
3930 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3932 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
3933 close to the add_com "shell".
3935 2019-04-18 Tom Tromey <tromey@adacore.com>
3937 * process-stratum-target.h (class process_stratum_target)
3938 <stratum>: Add "final".
3940 2019-04-17 Tom Tromey <tromey@adacore.com>
3942 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
3943 against nullptr before use.
3945 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3947 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
3949 2019-04-17 Jim Wilson <jimw@sifive.com>
3950 Andrew Burgess <andrew.burgess@embecosm.com>
3952 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
3953 code read might fail, assume 4-byte breakpoint in that case.
3955 2019-04-15 Leszek Swirski <leszeks@google.com>
3957 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
3958 rather than a hand-rolled POD check when checking for forced MEMORY
3961 2019-04-15 Alan Hayward <alan.hayward@arm.com>
3963 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
3964 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
3966 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
3967 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
3968 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
3971 2019-04-15 Alan Hayward <alan.hayward@arm.com>
3973 * aarch64-linux-nat.c
3974 (aarch64_linux_nat_target::thread_architecture): Add override.
3975 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
3978 2019-04-15 Alan Hayward <alan.hayward@arm.com>
3980 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
3982 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
3984 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
3985 target types of size 96-bits, add some additional comments, and
3986 check that the builtin type we found was the correct size.
3988 2019-04-12 Eli Zaretskii <eliz@gnu.org>
3990 * utils.c (prompt_for_continue): Don't restore the styling at the
3991 end, as applied_style has the wrong value. This fixes styling in
3992 long lists of file names that are interrupted by the "Continue?"
3995 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
3997 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
3998 * c-lang.c (c_language_defn): Likewise.
3999 (cplus_language_defn): Likewise.
4000 (asm_language_defn): Likewise.
4001 (minimal_language_defn): Likewise.
4002 * d-lang.c (d_language_defn): Likewise.
4003 * f-lang.c (f_language_defn): Likewise.
4004 * go-lang.c (go_language_defn): Likewise.
4005 * language.c (unknown_language_defn): Likewise.
4006 (auto_language_defn): Likewise.
4007 * language.h (struct language_defn): Remove la_magic field.
4008 (LANG_MAGIC): Delete.
4009 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
4010 * objc-lang.c (objc_language_defn): Likewise.
4011 * opencl-lang.c (opencl_language_defn): Likewise.
4012 * p-lang.c (pascal_language_defn): Likewise.
4013 * rust-lang.c (rust_language_defn): Likewise.
4015 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
4017 * riscv-tdep.c (riscv_type_align): New function.
4018 (riscv_type_alignment): Delete.
4019 (riscv_arg_location): Use 'type_align'.
4020 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
4022 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
4024 * gdbtypes.c (type_align): A struct with no non-static fields also
4027 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
4029 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
4031 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
4033 (riscv_struct_info::analyse): New implementation using new
4034 analyse_inner member function.
4035 (riscv_struct_info::field_offset): New member function.
4036 (riscv_struct_info::m_offsets): New member variable.
4037 (riscv_struct_info::analyse_inner): New private member function,
4038 takes the old implementation of riscv_struct_info::analyse but
4039 extended to track field offsets.
4040 (riscv_call_arg_struct): Update the struct folding special cases
4041 to handle cases where empty C++ structs, which are non-zero
4043 (riscv_arg_location): Initialise the length of each location, a
4044 non-zero length now indicates the location is in use.
4045 (riscv_push_dummy_call): Allow for the first location having a
4046 non-zero offset when setting up arguments.
4047 (riscv_return_value): Likewise, but for return values.
4049 2019-04-11 Tom Tromey <tromey@adacore.com>
4051 * utils.c (internal_vproblem): Make "msg" const.
4053 2019-04-11 Alan Hayward <alan.hayward@arm.com>
4055 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
4056 * trad-frame.c (trad_frame_reset_saved_regs): New function.
4057 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
4058 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
4060 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4062 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
4064 (fill_gregset): Call amd64_linux_collect_native_gregset instead
4065 of amd64_collect_native_gregset.
4066 (amd64_linux_nat_target::store_registers): Likewise.
4068 2019-04-10 Tom Tromey <tom@tromey.com>
4070 * symtab.c (lookup_global_symbol_from_objfile)
4071 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
4072 * objfiles.h (class separate_debug_iterator): New.
4073 (class separate_debug_range): New.
4074 (struct objfile) <separate_debug_objfiles>: New method.
4075 (objfile_separate_debug_iterate): Don't declare.
4076 * objfiles.c (separate_debug_iterator::operator++): Rename from
4077 objfile_separate_debug_iterate.
4078 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
4080 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
4083 2019-04-10 Tom Tromey <tom@tromey.com>
4085 * symfile.c (reread_symbols): Remove old comment.
4086 * objfiles.c (free_all_objfiles): Fix a typo.
4088 2019-04-10 Tom Tromey <tom@tromey.com>
4090 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
4091 * minsyms.c (lookup_minimal_symbol): Use foreach.
4092 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4093 (lookup_minimal_symbol_solib_trampoline): Likewise.
4094 * symfile.c (reread_symbols): Use foreach.
4096 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
4097 Tom Tromey <tromey@adacore.com>
4100 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
4101 (rust_lex_int_test): Change "value" to be LONGEST.
4102 (rust_lex_tests): Add test for long integer literal.
4104 2019-04-09 Tom Tromey <tromey@adacore.com>
4106 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
4108 (extended_remote_target::attach): Update.
4109 (remote_target::remote_notice_new_inferior): Update.
4110 (remote_target::add_current_inferior_and_thread): Update.
4111 * inferior.c (exit_inferior_1): Use "false".
4112 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
4114 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
4116 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
4117 the "start" command.
4119 2019-04-08 Kevin Buettner <kevinb@redhat.com>
4121 * python/py-inferior.c (infpy_thread_from_thread_handle):
4122 Adjust comments to reflect renaming of thread_from_thread_handle
4123 to thread_from_handle. Adjust keywords. Fix type error message.
4124 (inferior_object_methods): Add thread_from_handle. Retain
4125 thread_from_thread_handle, but mark it as deprecated.
4127 2019-04-08 Kevin Buettner <kevinb@redhat.com>
4129 * gdbthread.h (find_thread_by_handle): Revise declaration.
4130 * thread.c (find_thread_by_handle): Likewise. Adjust
4132 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
4133 support for buffer objects as handles.
4135 2019-04-08 Kevin Buettner <kevinb@redhat.com>
4137 * python/py-infthread.c (thpy_thread_handle): New function.
4138 (thread_object_methods): Register thpy_thread_handle.
4140 2019-04-08 Kevin Buettner <kevinb@redhat.com>
4142 * gdbthread.h (thread_to_thread_handle): Declare.
4143 * thread.c (gdbtypes.h): Include.
4144 (thread_to_thread_handle): New function.
4146 * target.h (struct target_ops): Add thread_info_to_thread_handle.
4147 (target_thread_info_to_thread_handle): Declare.
4148 * target.c (target_thread_info_to_thread_handle): New function.
4149 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
4150 * target-delegates.c: Regenerate.
4152 * linux-thread-db.c (class thread_db_target): Add method
4153 thread_info_to_thread_handle.
4154 (thread_db_target::thread_info_to_thread_handle): Define.
4155 * remote.c (class remote_target): Add new method
4156 thread_info_to_thread_handle.
4157 (remote_target::thread_info_to_thread_handle): Define.
4159 2019-04-08 Pedro Alves <palves@redhat.com>
4161 * common/common-exceptions.c (throw_exception): Don't create
4162 named object to throw; throw directly.
4163 (throw_it): Likewise. Don't initialize gdb_exception::message
4164 here, with new; pass FMT and AP to the ctor instead.
4165 * common/common-exceptions.h: Include <string>.
4166 (gdb_exception::gdb_exception(enum return_reason, enum errors,
4167 const char *, va_list)): New ctor. Use std::make_shared.
4168 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
4170 (gdb_exception_error::gdb_exception_error(enum errors, const char
4172 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
4174 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
4176 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
4177 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
4180 2019-04-08 Tom Tromey <tom@tromey.com>
4182 * valops.c (value_rtti_indirect_type): Replace throw_exception
4184 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
4186 * thread.c (thr_try_catch_cmd): Replace throw_exception with
4188 * target.c (target_translate_tls_address): Replace throw_exception
4190 * stack.c (frame_apply_command_count): Replace throw_exception
4192 * solib-spu.c (append_ocl_sos): Replace throw_exception with
4194 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
4196 * rs6000-tdep.c (rs6000_frame_cache)
4197 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
4198 * remote.c: Replace throw_exception with throw.
4199 * record-full.c (record_full_message, record_full_wait_1)
4200 (record_full_restore): Replace throw_exception with throw.
4202 (get_thread_current_frame_id, record_btrace_start_replaying)
4203 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
4204 (cmd_record_btrace_start): Replace throw_exception with throw.
4205 * parse.c (parse_exp_in_context_1): Replace throw_exception with
4207 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
4208 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
4210 (find_linespec_symbols): Replace throw_exception with throw.
4211 * infrun.c (displaced_step_prepare, resume): Replace
4212 throw_exception with throw.
4213 * infcmd.c (post_create_inferior): Replace throw_exception with
4215 * inf-loop.c (inferior_event_handler): Replace throw_exception
4217 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
4218 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
4219 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
4220 (get_prev_frame_always, get_frame_pc_if_available)
4221 (get_frame_address_in_block_if_available, get_frame_language):
4222 Replace throw_exception with throw.
4223 * frame-unwind.c (frame_unwind_try_unwinder): Replace
4224 throw_exception with throw.
4225 * eval.c (fetch_subexp_value, evaluate_var_value)
4226 (evaluate_funcall, evaluate_subexp_standard): Replace
4227 throw_exception with throw.
4228 * dwarf2loc.c (call_site_find_chain)
4229 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
4230 Replace throw_exception with throw.
4231 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
4233 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
4235 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
4236 * completer.c (complete_line_internal): Replace throw_exception
4238 * compile/compile-object-run.c (compile_object_run): Replace
4239 throw_exception with throw.
4240 * cli/cli-script.c (process_next_line): Replace throw_exception
4242 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
4243 (btrace_enable, btrace_maint_update_pt_packets): Replace
4244 throw_exception with throw.
4245 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
4246 throw_exception with throw.
4247 * break-catch-throw.c (re_set_exception_catchpoint): Replace
4248 throw_exception with throw.
4249 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
4250 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
4251 * aarch64-tdep.c (aarch64_make_prologue_cache)
4252 (aarch64_make_stub_cache): Replace throw_exception with throw.
4254 2019-04-08 Tom Tromey <tom@tromey.com>
4256 * common/common-exceptions.c (throw_exception): Rename from
4257 throw_exception_cxx. Remove old copy. Make argument const.
4258 (throw_it): Create and throw exception objects directly.
4259 * common/common-exceptions.h (throw_exception): Make argument
4261 (struct gdb_exception_error): Add constructor.
4262 (struct gdb_exception_quit): Add constructor.
4264 2019-04-08 Tom Tromey <tom@tromey.com>
4266 * common/common-exceptions.h (exception_rethrow): Don't declare.
4267 (TRY_SJLJ): Update comment.
4268 (TRY, CATCH, END_CATCH): Remove.
4269 * common/common-exceptions.c (exception_rethrow): Remove.
4271 2019-04-08 Tom Tromey <tom@tromey.com>
4273 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
4275 (gdb_exception_error): Rename from
4276 gdb_exception_RETURN_MASK_ERROR.
4277 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
4278 (gdb_quit_bad_alloc): Update.
4279 * aarch64-tdep.c: Update.
4280 * ada-lang.c: Update.
4281 * ada-typeprint.c: Update.
4282 * ada-valprint.c: Update.
4283 * amd64-tdep.c: Update.
4284 * arch-utils.c: Update.
4285 * break-catch-throw.c: Update.
4286 * breakpoint.c: Update.
4288 * c-varobj.c: Update.
4289 * cli/cli-cmds.c: Update.
4290 * cli/cli-interp.c: Update.
4291 * cli/cli-script.c: Update.
4292 * common/common-exceptions.c: Update.
4293 * common/new-op.c: Update.
4294 * common/selftest.c: Update.
4295 * compile/compile-c-symbols.c: Update.
4296 * compile/compile-cplus-symbols.c: Update.
4297 * compile/compile-object-load.c: Update.
4298 * compile/compile-object-run.c: Update.
4299 * completer.c: Update.
4300 * corelow.c: Update.
4302 * cp-support.c: Update.
4303 * cp-valprint.c: Update.
4304 * darwin-nat.c: Update.
4305 * disasm-selftests.c: Update.
4306 * dtrace-probe.c: Update.
4307 * dwarf-index-cache.c: Update.
4308 * dwarf-index-write.c: Update.
4309 * dwarf2-frame-tailcall.c: Update.
4310 * dwarf2-frame.c: Update.
4311 * dwarf2loc.c: Update.
4312 * dwarf2read.c: Update.
4314 * event-loop.c: Update.
4315 * event-top.c: Update.
4317 * f-valprint.c: Update.
4318 * fbsd-tdep.c: Update.
4319 * frame-unwind.c: Update.
4321 * gdbtypes.c: Update.
4322 * gnu-v3-abi.c: Update.
4323 * guile/guile-internal.h: Update.
4324 * guile/scm-block.c: Update.
4325 * guile/scm-breakpoint.c: Update.
4326 * guile/scm-cmd.c: Update.
4327 * guile/scm-disasm.c: Update.
4328 * guile/scm-frame.c: Update.
4329 * guile/scm-lazy-string.c: Update.
4330 * guile/scm-math.c: Update.
4331 * guile/scm-param.c: Update.
4332 * guile/scm-ports.c: Update.
4333 * guile/scm-pretty-print.c: Update.
4334 * guile/scm-symbol.c: Update.
4335 * guile/scm-symtab.c: Update.
4336 * guile/scm-type.c: Update.
4337 * guile/scm-value.c: Update.
4338 * i386-linux-tdep.c: Update.
4339 * i386-tdep.c: Update.
4340 * inf-loop.c: Update.
4341 * infcall.c: Update.
4345 * language.c: Update.
4346 * linespec.c: Update.
4347 * linux-fork.c: Update.
4348 * linux-nat.c: Update.
4349 * linux-tdep.c: Update.
4350 * linux-thread-db.c: Update.
4352 * mi/mi-cmd-break.c: Update.
4353 * mi/mi-cmd-stack.c: Update.
4354 * mi/mi-interp.c: Update.
4355 * mi/mi-main.c: Update.
4356 * objc-lang.c: Update.
4357 * p-valprint.c: Update.
4359 * ppc-linux-tdep.c: Update.
4360 * printcmd.c: Update.
4361 * python/py-arch.c: Update.
4362 * python/py-breakpoint.c: Update.
4363 * python/py-cmd.c: Update.
4364 * python/py-finishbreakpoint.c: Update.
4365 * python/py-frame.c: Update.
4366 * python/py-framefilter.c: Update.
4367 * python/py-gdb-readline.c: Update.
4368 * python/py-inferior.c: Update.
4369 * python/py-infthread.c: Update.
4370 * python/py-lazy-string.c: Update.
4371 * python/py-linetable.c: Update.
4372 * python/py-objfile.c: Update.
4373 * python/py-param.c: Update.
4374 * python/py-prettyprint.c: Update.
4375 * python/py-progspace.c: Update.
4376 * python/py-record-btrace.c: Update.
4377 * python/py-record.c: Update.
4378 * python/py-symbol.c: Update.
4379 * python/py-type.c: Update.
4380 * python/py-unwind.c: Update.
4381 * python/py-utils.c: Update.
4382 * python/py-value.c: Update.
4383 * python/python.c: Update.
4384 * record-btrace.c: Update.
4385 * record-full.c: Update.
4386 * remote-fileio.c: Update.
4388 * riscv-tdep.c: Update.
4389 * rs6000-aix-tdep.c: Update.
4390 * rs6000-tdep.c: Update.
4391 * rust-exp.y: Update.
4392 * rust-lang.c: Update.
4393 * s390-tdep.c: Update.
4394 * selftest-arch.c: Update.
4395 * solib-dsbt.c: Update.
4396 * solib-frv.c: Update.
4397 * solib-spu.c: Update.
4398 * solib-svr4.c: Update.
4400 * sparc64-linux-tdep.c: Update.
4402 * symfile-mem.c: Update.
4403 * symmisc.c: Update.
4407 * tracefile-tfile.c: Update.
4408 * tui/tui.c: Update.
4409 * typeprint.c: Update.
4410 * unittests/cli-utils-selftests.c: Update.
4411 * unittests/parse-connection-spec-selftests.c: Update.
4413 * valprint.c: Update.
4416 * windows-nat.c: Update.
4417 * x86-linux-nat.c: Update.
4418 * xml-support.c: Update.
4420 2019-04-08 Tom Tromey <tom@tromey.com>
4422 * xml-support.c: Use C++ exception handling.
4423 * x86-linux-nat.c: Use C++ exception handling.
4424 * windows-nat.c: Use C++ exception handling.
4425 * varobj.c: Use C++ exception handling.
4426 * value.c: Use C++ exception handling.
4427 * valprint.c: Use C++ exception handling.
4428 * valops.c: Use C++ exception handling.
4429 * unittests/parse-connection-spec-selftests.c: Use C++ exception
4431 * unittests/cli-utils-selftests.c: Use C++ exception handling.
4432 * typeprint.c: Use C++ exception handling.
4433 * tui/tui.c: Use C++ exception handling.
4434 * tracefile-tfile.c: Use C++ exception handling.
4435 * top.c: Use C++ exception handling.
4436 * thread.c: Use C++ exception handling.
4437 * target.c: Use C++ exception handling.
4438 * symmisc.c: Use C++ exception handling.
4439 * symfile-mem.c: Use C++ exception handling.
4440 * stack.c: Use C++ exception handling.
4441 * sparc64-linux-tdep.c: Use C++ exception handling.
4442 * solib.c: Use C++ exception handling.
4443 * solib-svr4.c: Use C++ exception handling.
4444 * solib-spu.c: Use C++ exception handling.
4445 * solib-frv.c: Use C++ exception handling.
4446 * solib-dsbt.c: Use C++ exception handling.
4447 * selftest-arch.c: Use C++ exception handling.
4448 * s390-tdep.c: Use C++ exception handling.
4449 * rust-lang.c: Use C++ exception handling.
4450 * rust-exp.y: Use C++ exception handling.
4451 * rs6000-tdep.c: Use C++ exception handling.
4452 * rs6000-aix-tdep.c: Use C++ exception handling.
4453 * riscv-tdep.c: Use C++ exception handling.
4454 * remote.c: Use C++ exception handling.
4455 * remote-fileio.c: Use C++ exception handling.
4456 * record-full.c: Use C++ exception handling.
4457 * record-btrace.c: Use C++ exception handling.
4458 * python/python.c: Use C++ exception handling.
4459 * python/py-value.c: Use C++ exception handling.
4460 * python/py-utils.c: Use C++ exception handling.
4461 * python/py-unwind.c: Use C++ exception handling.
4462 * python/py-type.c: Use C++ exception handling.
4463 * python/py-symbol.c: Use C++ exception handling.
4464 * python/py-record.c: Use C++ exception handling.
4465 * python/py-record-btrace.c: Use C++ exception handling.
4466 * python/py-progspace.c: Use C++ exception handling.
4467 * python/py-prettyprint.c: Use C++ exception handling.
4468 * python/py-param.c: Use C++ exception handling.
4469 * python/py-objfile.c: Use C++ exception handling.
4470 * python/py-linetable.c: Use C++ exception handling.
4471 * python/py-lazy-string.c: Use C++ exception handling.
4472 * python/py-infthread.c: Use C++ exception handling.
4473 * python/py-inferior.c: Use C++ exception handling.
4474 * python/py-gdb-readline.c: Use C++ exception handling.
4475 * python/py-framefilter.c: Use C++ exception handling.
4476 * python/py-frame.c: Use C++ exception handling.
4477 * python/py-finishbreakpoint.c: Use C++ exception handling.
4478 * python/py-cmd.c: Use C++ exception handling.
4479 * python/py-breakpoint.c: Use C++ exception handling.
4480 * python/py-arch.c: Use C++ exception handling.
4481 * printcmd.c: Use C++ exception handling.
4482 * ppc-linux-tdep.c: Use C++ exception handling.
4483 * parse.c: Use C++ exception handling.
4484 * p-valprint.c: Use C++ exception handling.
4485 * objc-lang.c: Use C++ exception handling.
4486 * mi/mi-main.c: Use C++ exception handling.
4487 * mi/mi-interp.c: Use C++ exception handling.
4488 * mi/mi-cmd-stack.c: Use C++ exception handling.
4489 * mi/mi-cmd-break.c: Use C++ exception handling.
4490 * main.c: Use C++ exception handling.
4491 * linux-thread-db.c: Use C++ exception handling.
4492 * linux-tdep.c: Use C++ exception handling.
4493 * linux-nat.c: Use C++ exception handling.
4494 * linux-fork.c: Use C++ exception handling.
4495 * linespec.c: Use C++ exception handling.
4496 * language.c: Use C++ exception handling.
4497 * jit.c: Use C++ exception handling.
4498 * infrun.c: Use C++ exception handling.
4499 * infcmd.c: Use C++ exception handling.
4500 * infcall.c: Use C++ exception handling.
4501 * inf-loop.c: Use C++ exception handling.
4502 * i386-tdep.c: Use C++ exception handling.
4503 * i386-linux-tdep.c: Use C++ exception handling.
4504 * guile/scm-value.c: Use C++ exception handling.
4505 * guile/scm-type.c: Use C++ exception handling.
4506 * guile/scm-symtab.c: Use C++ exception handling.
4507 * guile/scm-symbol.c: Use C++ exception handling.
4508 * guile/scm-pretty-print.c: Use C++ exception handling.
4509 * guile/scm-ports.c: Use C++ exception handling.
4510 * guile/scm-param.c: Use C++ exception handling.
4511 * guile/scm-math.c: Use C++ exception handling.
4512 * guile/scm-lazy-string.c: Use C++ exception handling.
4513 * guile/scm-frame.c: Use C++ exception handling.
4514 * guile/scm-disasm.c: Use C++ exception handling.
4515 * guile/scm-cmd.c: Use C++ exception handling.
4516 * guile/scm-breakpoint.c: Use C++ exception handling.
4517 * guile/scm-block.c: Use C++ exception handling.
4518 * guile/guile-internal.h: Use C++ exception handling.
4519 * gnu-v3-abi.c: Use C++ exception handling.
4520 * gdbtypes.c: Use C++ exception handling.
4521 * frame.c: Use C++ exception handling.
4522 * frame-unwind.c: Use C++ exception handling.
4523 * fbsd-tdep.c: Use C++ exception handling.
4524 * f-valprint.c: Use C++ exception handling.
4525 * exec.c: Use C++ exception handling.
4526 * event-top.c: Use C++ exception handling.
4527 * event-loop.c: Use C++ exception handling.
4528 * eval.c: Use C++ exception handling.
4529 * dwarf2read.c: Use C++ exception handling.
4530 * dwarf2loc.c: Use C++ exception handling.
4531 * dwarf2-frame.c: Use C++ exception handling.
4532 * dwarf2-frame-tailcall.c: Use C++ exception handling.
4533 * dwarf-index-write.c: Use C++ exception handling.
4534 * dwarf-index-cache.c: Use C++ exception handling.
4535 * dtrace-probe.c: Use C++ exception handling.
4536 * disasm-selftests.c: Use C++ exception handling.
4537 * darwin-nat.c: Use C++ exception handling.
4538 * cp-valprint.c: Use C++ exception handling.
4539 * cp-support.c: Use C++ exception handling.
4540 * cp-abi.c: Use C++ exception handling.
4541 * corelow.c: Use C++ exception handling.
4542 * completer.c: Use C++ exception handling.
4543 * compile/compile-object-run.c: Use C++ exception handling.
4544 * compile/compile-object-load.c: Use C++ exception handling.
4545 * compile/compile-cplus-symbols.c: Use C++ exception handling.
4546 * compile/compile-c-symbols.c: Use C++ exception handling.
4547 * common/selftest.c: Use C++ exception handling.
4548 * common/new-op.c: Use C++ exception handling.
4549 * cli/cli-script.c: Use C++ exception handling.
4550 * cli/cli-interp.c: Use C++ exception handling.
4551 * cli/cli-cmds.c: Use C++ exception handling.
4552 * c-varobj.c: Use C++ exception handling.
4553 * btrace.c: Use C++ exception handling.
4554 * breakpoint.c: Use C++ exception handling.
4555 * break-catch-throw.c: Use C++ exception handling.
4556 * arch-utils.c: Use C++ exception handling.
4557 * amd64-tdep.c: Use C++ exception handling.
4558 * ada-valprint.c: Use C++ exception handling.
4559 * ada-typeprint.c: Use C++ exception handling.
4560 * ada-lang.c: Use C++ exception handling.
4561 * aarch64-tdep.c: Use C++ exception handling.
4563 2019-04-08 Tom Tromey <tom@tromey.com>
4565 * xml-support.c (gdb_xml_parser::parse): Update.
4566 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
4567 * value.c (show_convenience): Update.
4568 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
4569 (test_parse_flags_qcs): Update.
4570 * thread.c (thr_try_catch_cmd): Update.
4571 * target.c (target_translate_tls_address): Update.
4572 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4573 (info_frame_command_core, frame_apply_command_count): Update.
4574 * rust-exp.y (rust_lex_exception_test): Update.
4575 * riscv-tdep.c (riscv_print_one_register_info): Update.
4576 * remote.c (remote_target::enable_btrace): Update.
4577 * record-btrace.c (record_btrace_enable_warn): Update.
4578 * python/py-utils.c (gdbpy_convert_exception): Update.
4579 * printcmd.c (do_one_display, print_variable_and_value): Update.
4580 * mi/mi-main.c (mi_print_exception): Update.
4581 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
4582 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4583 * linux-nat.c (linux_nat_target::attach): Update.
4584 * linux-fork.c (class scoped_switch_fork_info): Update.
4585 * infrun.c (displaced_step_prepare): Update.
4586 * infcall.c (call_function_by_hand_dummy): Update.
4587 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
4588 * gnu-v3-abi.c (print_one_vtable): Update.
4589 * frame.c (get_prev_frame_always): Update.
4590 * f-valprint.c (info_common_command_for_block): Update.
4591 * exec.c (try_open_exec_file): Update.
4592 * exceptions.c (print_exception, exception_print)
4593 (exception_fprintf, exception_print_same): Update.
4594 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
4595 * dwarf-index-cache.c (index_cache::store)
4596 (index_cache::lookup_gdb_index): Update.
4597 * darwin-nat.c (maybe_cache_shell): Update.
4598 * cp-valprint.c (cp_print_value_fields): Update.
4599 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
4600 (gcc_cplus_symbol_address): Update.
4601 * compile/compile-c-symbols.c (gcc_convert_symbol)
4602 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
4603 * common/selftest.c: Update.
4604 * common/common-exceptions.h (struct gdb_exception) <message>: Now
4606 (exception_try_scope_entry, exception_try_scope_exit): Don't
4608 (struct exception_try_scope): Remove.
4609 (TRY): Don't use exception_try_scope.
4610 (struct gdb_exception): Add constructor, operator=.
4612 (struct gdb_exception_RETURN_MASK_ALL)
4613 (struct gdb_exception_RETURN_MASK_ERROR)
4614 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
4615 (struct gdb_quit_bad_alloc): Update.
4616 * common/common-exceptions.c (exception_none): Change
4618 (struct catcher) <state, exception>: Initialize inline.
4619 <prev>: Remove member.
4620 (current_catcher): Remove.
4621 (catchers): New global.
4622 (exceptions_state_mc_init): Simplify.
4623 (catcher_pop): Remove.
4624 (exceptions_state_mc, exceptions_state_mc_catch): Update.
4625 (try_scope_depth, exception_try_scope_entry)
4626 (exception_try_scope_exit): Remove.
4627 (throw_exception_sjlj): Update.
4628 (exception_messages, exception_messages_size): Remove.
4629 (throw_it): Simplify.
4630 (gdb_exception_sliced_copy): Remove.
4631 (throw_exception_cxx): Update.
4632 * cli/cli-script.c (script_from_file): Update.
4633 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
4635 * ada-valprint.c (ada_val_print): Update.
4636 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
4637 (create_excep_cond_exprs): Update.
4639 2019-04-08 Tom Tromey <tom@tromey.com>
4641 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
4642 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
4643 (TRY, CATCH, END_CATCH): Remove some definitions.
4644 * common/common-exceptions.c: Don't use GDB_XCPT.
4645 (catcher_list_size): Remove.
4646 (throw_exception, throw_it): Simplify.
4648 2019-04-05 Tom Tromey <tom@tromey.com>
4650 Revert the header-sorting patch.
4651 * ft32-tdep.c: Revert.
4652 * frv-tdep.c: Revert.
4653 * frv-linux-tdep.c: Revert.
4655 * frame-unwind.c: Revert.
4656 * frame-base.c: Revert.
4657 * fork-child.c: Revert.
4658 * findvar.c: Revert.
4659 * findcmd.c: Revert.
4660 * filesystem.c: Revert.
4661 * filename-seen-cache.h: Revert.
4662 * filename-seen-cache.c: Revert.
4663 * fbsd-tdep.c: Revert.
4664 * fbsd-nat.h: Revert.
4665 * fbsd-nat.c: Revert.
4666 * f-valprint.c: Revert.
4667 * f-typeprint.c: Revert.
4669 * extension.h: Revert.
4670 * extension.c: Revert.
4671 * extension-priv.h: Revert.
4672 * expprint.c: Revert.
4675 * exceptions.c: Revert.
4676 * event-top.c: Revert.
4677 * event-loop.c: Revert.
4679 * elfread.c: Revert.
4680 * dwarf2read.h: Revert.
4681 * dwarf2read.c: Revert.
4682 * dwarf2loc.c: Revert.
4683 * dwarf2expr.h: Revert.
4684 * dwarf2expr.c: Revert.
4685 * dwarf2-frame.c: Revert.
4686 * dwarf2-frame-tailcall.c: Revert.
4687 * dwarf-index-write.h: Revert.
4688 * dwarf-index-write.c: Revert.
4689 * dwarf-index-common.c: Revert.
4690 * dwarf-index-cache.h: Revert.
4691 * dwarf-index-cache.c: Revert.
4692 * dummy-frame.c: Revert.
4693 * dtrace-probe.c: Revert.
4696 * disasm-selftests.c: Revert.
4697 * dictionary.c: Revert.
4698 * dicos-tdep.c: Revert.
4699 * demangle.c: Revert.
4702 * darwin-nat.h: Revert.
4703 * darwin-nat.c: Revert.
4704 * darwin-nat-info.c: Revert.
4705 * d-valprint.c: Revert.
4706 * d-namespace.c: Revert.
4709 * csky-tdep.c: Revert.
4710 * csky-linux-tdep.c: Revert.
4711 * cris-tdep.c: Revert.
4712 * cris-linux-tdep.c: Revert.
4713 * cp-valprint.c: Revert.
4714 * cp-support.c: Revert.
4715 * cp-namespace.c: Revert.
4717 * corelow.c: Revert.
4718 * corefile.c: Revert.
4719 * continuations.c: Revert.
4720 * completer.h: Revert.
4721 * completer.c: Revert.
4722 * complaints.c: Revert.
4723 * coffread.c: Revert.
4724 * coff-pe-read.c: Revert.
4725 * cli-out.h: Revert.
4726 * cli-out.c: Revert.
4727 * charset.c: Revert.
4728 * c-varobj.c: Revert.
4729 * c-valprint.c: Revert.
4730 * c-typeprint.c: Revert.
4732 * buildsym.c: Revert.
4733 * buildsym-legacy.c: Revert.
4734 * build-id.h: Revert.
4735 * build-id.c: Revert.
4737 * bsd-uthread.c: Revert.
4738 * breakpoint.h: Revert.
4739 * breakpoint.c: Revert.
4740 * break-catch-throw.c: Revert.
4741 * break-catch-syscall.c: Revert.
4742 * break-catch-sig.c: Revert.
4743 * blockframe.c: Revert.
4745 * bfin-tdep.c: Revert.
4746 * bfin-linux-tdep.c: Revert.
4747 * bfd-target.c: Revert.
4749 * ax-general.c: Revert.
4752 * avr-tdep.c: Revert.
4754 * auto-load.c: Revert.
4755 * arm-wince-tdep.c: Revert.
4756 * arm-tdep.c: Revert.
4757 * arm-symbian-tdep.c: Revert.
4758 * arm-pikeos-tdep.c: Revert.
4759 * arm-obsd-tdep.c: Revert.
4760 * arm-nbsd-tdep.c: Revert.
4761 * arm-nbsd-nat.c: Revert.
4762 * arm-linux-tdep.c: Revert.
4763 * arm-linux-nat.c: Revert.
4764 * arm-fbsd-tdep.c: Revert.
4765 * arm-fbsd-nat.c: Revert.
4766 * arm-bsd-tdep.c: Revert.
4767 * arch-utils.c: Revert.
4768 * arc-tdep.c: Revert.
4769 * arc-newlib-tdep.c: Revert.
4770 * annotate.h: Revert.
4771 * annotate.c: Revert.
4772 * amd64-windows-tdep.c: Revert.
4773 * amd64-windows-nat.c: Revert.
4774 * amd64-tdep.c: Revert.
4775 * amd64-sol2-tdep.c: Revert.
4776 * amd64-obsd-tdep.c: Revert.
4777 * amd64-obsd-nat.c: Revert.
4778 * amd64-nbsd-tdep.c: Revert.
4779 * amd64-nbsd-nat.c: Revert.
4780 * amd64-nat.c: Revert.
4781 * amd64-linux-tdep.c: Revert.
4782 * amd64-linux-nat.c: Revert.
4783 * amd64-fbsd-tdep.c: Revert.
4784 * amd64-fbsd-nat.c: Revert.
4785 * amd64-dicos-tdep.c: Revert.
4786 * amd64-darwin-tdep.c: Revert.
4787 * amd64-bsd-nat.c: Revert.
4788 * alpha-tdep.c: Revert.
4789 * alpha-obsd-tdep.c: Revert.
4790 * alpha-nbsd-tdep.c: Revert.
4791 * alpha-mdebug-tdep.c: Revert.
4792 * alpha-linux-tdep.c: Revert.
4793 * alpha-linux-nat.c: Revert.
4794 * alpha-bsd-tdep.c: Revert.
4795 * alpha-bsd-nat.c: Revert.
4796 * aix-thread.c: Revert.
4798 * addrmap.c: Revert.
4799 * ada-varobj.c: Revert.
4800 * ada-valprint.c: Revert.
4801 * ada-typeprint.c: Revert.
4802 * ada-tasks.c: Revert.
4803 * ada-lang.c: Revert.
4804 * aarch64-tdep.c: Revert.
4805 * aarch64-ravenscar-thread.c: Revert.
4806 * aarch64-newlib-tdep.c: Revert.
4807 * aarch64-linux-tdep.c: Revert.
4808 * aarch64-linux-nat.c: Revert.
4809 * aarch64-fbsd-tdep.c: Revert.
4810 * aarch64-fbsd-nat.c: Revert.
4811 * aarch32-linux-nat.c: Revert.
4813 2019-04-05 Tom Tromey <tom@tromey.com>
4815 * ft32-tdep.c: Sort headers.
4816 * frv-tdep.c: Sort headers.
4817 * frv-linux-tdep.c: Sort headers.
4818 * frame.c: Sort headers.
4819 * frame-unwind.c: Sort headers.
4820 * frame-base.c: Sort headers.
4821 * fork-child.c: Sort headers.
4822 * findvar.c: Sort headers.
4823 * findcmd.c: Sort headers.
4824 * filesystem.c: Sort headers.
4825 * filename-seen-cache.h: Sort headers.
4826 * filename-seen-cache.c: Sort headers.
4827 * fbsd-tdep.c: Sort headers.
4828 * fbsd-nat.h: Sort headers.
4829 * fbsd-nat.c: Sort headers.
4830 * f-valprint.c: Sort headers.
4831 * f-typeprint.c: Sort headers.
4832 * f-lang.c: Sort headers.
4833 * extension.h: Sort headers.
4834 * extension.c: Sort headers.
4835 * extension-priv.h: Sort headers.
4836 * expprint.c: Sort headers.
4837 * exec.h: Sort headers.
4838 * exec.c: Sort headers.
4839 * exceptions.c: Sort headers.
4840 * event-top.c: Sort headers.
4841 * event-loop.c: Sort headers.
4842 * eval.c: Sort headers.
4843 * elfread.c: Sort headers.
4844 * dwarf2read.h: Sort headers.
4845 * dwarf2read.c: Sort headers.
4846 * dwarf2loc.c: Sort headers.
4847 * dwarf2expr.h: Sort headers.
4848 * dwarf2expr.c: Sort headers.
4849 * dwarf2-frame.c: Sort headers.
4850 * dwarf2-frame-tailcall.c: Sort headers.
4851 * dwarf-index-write.h: Sort headers.
4852 * dwarf-index-write.c: Sort headers.
4853 * dwarf-index-common.c: Sort headers.
4854 * dwarf-index-cache.h: Sort headers.
4855 * dwarf-index-cache.c: Sort headers.
4856 * dummy-frame.c: Sort headers.
4857 * dtrace-probe.c: Sort headers.
4858 * disasm.h: Sort headers.
4859 * disasm.c: Sort headers.
4860 * disasm-selftests.c: Sort headers.
4861 * dictionary.c: Sort headers.
4862 * dicos-tdep.c: Sort headers.
4863 * demangle.c: Sort headers.
4864 * dcache.h: Sort headers.
4865 * dcache.c: Sort headers.
4866 * darwin-nat.h: Sort headers.
4867 * darwin-nat.c: Sort headers.
4868 * darwin-nat-info.c: Sort headers.
4869 * d-valprint.c: Sort headers.
4870 * d-namespace.c: Sort headers.
4871 * d-lang.c: Sort headers.
4872 * ctf.c: Sort headers.
4873 * csky-tdep.c: Sort headers.
4874 * csky-linux-tdep.c: Sort headers.
4875 * cris-tdep.c: Sort headers.
4876 * cris-linux-tdep.c: Sort headers.
4877 * cp-valprint.c: Sort headers.
4878 * cp-support.c: Sort headers.
4879 * cp-namespace.c: Sort headers.
4880 * cp-abi.c: Sort headers.
4881 * corelow.c: Sort headers.
4882 * corefile.c: Sort headers.
4883 * continuations.c: Sort headers.
4884 * completer.h: Sort headers.
4885 * completer.c: Sort headers.
4886 * complaints.c: Sort headers.
4887 * coffread.c: Sort headers.
4888 * coff-pe-read.c: Sort headers.
4889 * cli-out.h: Sort headers.
4890 * cli-out.c: Sort headers.
4891 * charset.c: Sort headers.
4892 * c-varobj.c: Sort headers.
4893 * c-valprint.c: Sort headers.
4894 * c-typeprint.c: Sort headers.
4895 * c-lang.c: Sort headers.
4896 * buildsym.c: Sort headers.
4897 * buildsym-legacy.c: Sort headers.
4898 * build-id.h: Sort headers.
4899 * build-id.c: Sort headers.
4900 * btrace.c: Sort headers.
4901 * bsd-uthread.c: Sort headers.
4902 * breakpoint.h: Sort headers.
4903 * breakpoint.c: Sort headers.
4904 * break-catch-throw.c: Sort headers.
4905 * break-catch-syscall.c: Sort headers.
4906 * break-catch-sig.c: Sort headers.
4907 * blockframe.c: Sort headers.
4908 * block.c: Sort headers.
4909 * bfin-tdep.c: Sort headers.
4910 * bfin-linux-tdep.c: Sort headers.
4911 * bfd-target.c: Sort headers.
4912 * bcache.c: Sort headers.
4913 * ax-general.c: Sort headers.
4914 * ax-gdb.h: Sort headers.
4915 * ax-gdb.c: Sort headers.
4916 * avr-tdep.c: Sort headers.
4917 * auxv.c: Sort headers.
4918 * auto-load.c: Sort headers.
4919 * arm-wince-tdep.c: Sort headers.
4920 * arm-tdep.c: Sort headers.
4921 * arm-symbian-tdep.c: Sort headers.
4922 * arm-pikeos-tdep.c: Sort headers.
4923 * arm-obsd-tdep.c: Sort headers.
4924 * arm-nbsd-tdep.c: Sort headers.
4925 * arm-nbsd-nat.c: Sort headers.
4926 * arm-linux-tdep.c: Sort headers.
4927 * arm-linux-nat.c: Sort headers.
4928 * arm-fbsd-tdep.c: Sort headers.
4929 * arm-fbsd-nat.c: Sort headers.
4930 * arm-bsd-tdep.c: Sort headers.
4931 * arch-utils.c: Sort headers.
4932 * arc-tdep.c: Sort headers.
4933 * arc-newlib-tdep.c: Sort headers.
4934 * annotate.h: Sort headers.
4935 * annotate.c: Sort headers.
4936 * amd64-windows-tdep.c: Sort headers.
4937 * amd64-windows-nat.c: Sort headers.
4938 * amd64-tdep.c: Sort headers.
4939 * amd64-sol2-tdep.c: Sort headers.
4940 * amd64-obsd-tdep.c: Sort headers.
4941 * amd64-obsd-nat.c: Sort headers.
4942 * amd64-nbsd-tdep.c: Sort headers.
4943 * amd64-nbsd-nat.c: Sort headers.
4944 * amd64-nat.c: Sort headers.
4945 * amd64-linux-tdep.c: Sort headers.
4946 * amd64-linux-nat.c: Sort headers.
4947 * amd64-fbsd-tdep.c: Sort headers.
4948 * amd64-fbsd-nat.c: Sort headers.
4949 * amd64-dicos-tdep.c: Sort headers.
4950 * amd64-darwin-tdep.c: Sort headers.
4951 * amd64-bsd-nat.c: Sort headers.
4952 * alpha-tdep.c: Sort headers.
4953 * alpha-obsd-tdep.c: Sort headers.
4954 * alpha-nbsd-tdep.c: Sort headers.
4955 * alpha-mdebug-tdep.c: Sort headers.
4956 * alpha-linux-tdep.c: Sort headers.
4957 * alpha-linux-nat.c: Sort headers.
4958 * alpha-bsd-tdep.c: Sort headers.
4959 * alpha-bsd-nat.c: Sort headers.
4960 * aix-thread.c: Sort headers.
4961 * agent.c: Sort headers.
4962 * addrmap.c: Sort headers.
4963 * ada-varobj.c: Sort headers.
4964 * ada-valprint.c: Sort headers.
4965 * ada-typeprint.c: Sort headers.
4966 * ada-tasks.c: Sort headers.
4967 * ada-lang.c: Sort headers.
4968 * aarch64-tdep.c: Sort headers.
4969 * aarch64-ravenscar-thread.c: Sort headers.
4970 * aarch64-newlib-tdep.c: Sort headers.
4971 * aarch64-linux-tdep.c: Sort headers.
4972 * aarch64-linux-nat.c: Sort headers.
4973 * aarch64-fbsd-tdep.c: Sort headers.
4974 * aarch64-fbsd-nat.c: Sort headers.
4975 * aarch32-linux-nat.c: Sort headers.
4977 2019-04-04 Tom Tromey <tom@tromey.com>
4979 * varobj.c (varobj_create): Update.
4980 * rust-exp.y (struct rust_parser) <update_innermost_block,
4981 lookup_symbol>: New methods.
4982 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
4984 (rust_parser::rust_lookup_type)
4985 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
4986 * printcmd.c (display_command, do_one_display): Update.
4987 * parser-defs.h (struct parser_state) <parser_state>: Add
4988 "tracker" parameter.
4989 (block_tracker): New member.
4990 (class innermost_block_tracker) <innermost_block_tracker>: Add
4992 <reset>: Remove method.
4993 (innermost_block): Don't declare.
4994 (null_post_parser): Update.
4995 * parse.c (innermost_block): Remove global.
4996 (write_dollar_variable): Update.
4997 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
4998 Remove "tracker_types" parameter.
4999 (parse_expression): Add "tracker" parameter.
5000 (parse_expression_for_completion): Update.
5001 (null_post_parser): Add "tracker" parameter.
5002 * p-exp.y: Update rules.
5003 * m2-exp.y: Update rules.
5004 * language.h (struct language_defn) <la_post_parser>: Add
5005 "tracker" parameter.
5006 * go-exp.y: Update rules.
5007 * f-exp.y: Update rules.
5008 * expression.h (parse_expression, parse_exp_1): Add "tracker"
5010 * d-exp.y: Update rules.
5011 * c-exp.y: Update rules.
5012 * breakpoint.c (set_breakpoint_condition): Create an
5013 innermost_block_tracker.
5014 (watch_command_1): Likewise.
5015 * ada-lang.c (resolve): Add "tracker" parameter.
5016 (resolve_subexp): Likewise.
5017 * ada-exp.y (write_var_from_sym): Update.
5019 2019-04-04 Tom Tromey <tom@tromey.com>
5021 * type-stack.h: New file.
5022 * type-stack.c: New file.
5023 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
5025 (insert_into_type_stack, insert_type, push_type, push_type_int)
5026 (insert_type_address_space, pop_type, pop_type_int)
5027 (pop_typelist, pop_type_stack, append_type_stack)
5028 (push_type_stack, get_type_stack, push_typelist)
5029 (follow_type_instance_flags, follow_types): Don't declare.
5030 * parse.c (type_stack): Remove global.
5031 (parse_exp_in_context): Update.
5032 (insert_into_type_stack, insert_type, push_type, push_type_int)
5033 (insert_type_address_space, pop_type, pop_type_int)
5034 (pop_typelist, pop_type_stack, append_type_stack)
5035 (push_type_stack, get_type_stack, push_typelist)
5036 (follow_type_instance_flags, follow_types): Remove (moved to
5038 * f-exp.y (type_stack): New global.
5040 (push_kind_type, f_parse): Update.
5041 * d-exp.y (type_stack): New global.
5044 * c-exp.y (struct c_parse_state) <type_stack>: New member.
5046 * Makefile.in (COMMON_SFILES): Add type-stack.c.
5047 (HFILES_NO_SRCDIR): Add type-stack.h.
5049 2019-04-04 Tom Tromey <tom@tromey.com>
5051 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
5052 (rust_parser::convert_ast_to_expression, rust_parse)
5053 (rust_lex_test_completion, rust_lex_tests): Update.
5054 * parser-defs.h (struct expr_completion_state): New.
5055 (struct parser_state) <parser_state>: Add completion parameter.
5056 <mark_struct_expression, mark_completion_tag>: New methods.
5057 <parse_completion, m_completion_state>: New members.
5058 (prefixify_expression, null_post_parser): Update.
5059 (mark_struct_expression, mark_completion_tag): Don't declare.
5060 * parse.c (parse_completion, expout_last_struct)
5061 (expout_tag_completion_type, expout_completion_name): Remove
5063 (parser_state::mark_struct_expression)
5064 (parser_state::mark_completion_tag): Now methods.
5065 (prefixify_expression): Add last_struct parameter.
5066 (prefixify_subexp): Likewise.
5067 (parse_exp_1): Update.
5068 (parse_exp_in_context): Add cstate parameter. Update.
5069 (parse_expression_for_completion): Create an
5070 expr_completion_state.
5071 (null_post_parser): Add "completion" parameter.
5072 * p-exp.y: Update rules.
5074 * language.h (struct language_defn) <la_post_parser>: Add
5075 "completing" parameter.
5076 * go-exp.y: Update rules.
5077 (lex_one_token): Update.
5078 * expression.h (parse_completion): Don't declare.
5079 * d-exp.y: Update rules.
5080 (lex_one_token): Update rules.
5081 * c-exp.y: Update rules.
5082 (lex_one_token): Update.
5083 * ada-lang.c (resolve): Add "parse_completion" parameter.
5084 (resolve_subexp): Likewise.
5085 (ada_resolve_function): Likewise.
5087 2019-04-04 Tom Tromey <tom@tromey.com>
5089 * parser-defs.h (struct parser_state) <start_arglist,
5090 end_arglist>: New methods.
5091 <arglist_len, m_funcall_chain>: New members.
5092 (arglist_len, start_arglist, end_arglist): Don't declare.
5093 * parse.c (arglist_len, funcall_chain): Remove global.
5094 (start_arglist, end_arglist): Remove functions.
5095 (parse_exp_in_context): Update.
5096 * p-exp.y: Update rules.
5097 * m2-exp.y: Update rules.
5098 * go-exp.y: Update rules.
5099 * f-exp.y: Update rules.
5100 * d-exp.y: Update rules.
5101 * c-exp.y: Update rules.
5103 2019-04-04 Tom Tromey <tom@tromey.com>
5105 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
5106 lex_operator, push_back>: New methods.
5108 (rust_parser::lex_hex, lex_escape): Rename and update.
5109 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
5110 (rust_parser::lex_operator): Rename and update.
5111 (rust_parser::lex_number, rustyylex, rustyyerror)
5112 (rust_lex_test_init, rust_lex_test_sequence)
5113 (rust_lex_test_push_back, rust_lex_tests): Update.
5114 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
5116 <lexptr, prev_lexptr>: New members.
5117 (lexptr, prev_lexptr): Don't declare.
5118 * parse.c (lexptr, prev_lexptr): Remove globals.
5119 (parse_exp_in_context): Update.
5120 * p-exp.y (yylex, yyerror): Update.
5121 * m2-exp.y (parse_number, yylex, yyerror): Update.
5122 * go-exp.y (lex_one_token, yyerror): Update.
5123 * f-exp.y (match_string_literal, yylex, yyerror): Update.
5124 * d-exp.y (lex_one_token, yyerror): Update.
5125 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
5126 (lex_one_token, yyerror): Update.
5127 * ada-lex.l (YY_INPUT): Update.
5128 (rewind_to_char): Update.
5129 * ada-exp.y (yyerror): Update.
5131 2019-04-04 Tom Tromey <tom@tromey.com>
5133 * rust-exp.y (rustyylex, rust_lex_tests): Update.
5134 * parser-defs.h (struct parser_state) <parser_state>: Add new
5136 <comma_terminates>: New member.
5137 (comma_terminates): Don't declare global.
5138 * parse.c (comma_terminates): Remove global.
5139 (parse_exp_in_context): Update.
5140 * p-exp.y (yylex): Update.
5141 * m2-exp.y (yylex): Update.
5142 * go-exp.y (lex_one_token): Update.
5143 * f-exp.y (yylex): Update.
5144 * d-exp.y (lex_one_token): Update.
5145 * c-exp.y (lex_one_token): Update.
5146 * ada-lex.l: Update.
5148 2019-04-04 Tom Tromey <tom@tromey.com>
5150 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
5151 (rustyylex, rust_lex_test_init, rust_lex_test_one)
5152 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
5153 * parser-defs.h (paren_depth): Don't declare.
5154 * parse.c (paren_depth): Remove global.
5155 (parse_exp_in_context): Update.
5156 * p-exp.y (paren_depth): New global.
5157 (pascal_parse): Initialize it.
5158 * m2-exp.y (paren_depth): New global.
5159 (m2_parse): Initialize it.
5160 * go-exp.y (paren_depth): New global.
5161 (go_parse): Initialize it.
5162 * f-exp.y (paren_depth): New global.
5163 (f_parse): Initialize it.
5164 * d-exp.y (paren_depth): New global.
5165 (d_parse): Initialize it.
5166 * c-exp.y (paren_depth): New global.
5167 (c_parse): Initialize it.
5168 * ada-lex.l (paren_depth): New global.
5169 (lexer_init): Initialize it.
5171 2019-04-04 Tom Tromey <tom@tromey.com>
5173 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
5174 (rust_parser::convert_ast_to_type)
5175 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
5176 * parser-defs.h (struct parser_state) <parser_state>: Add
5177 parameters. Initialize new members.
5178 <expression_context_block, expression_context_pc>: New members.
5179 * parse.c (expression_context_block, expression_context_pc):
5181 (parse_exp_in_context): Update.
5182 * p-exp.y: Update all rules.
5184 * m2-exp.y: Update all rules.
5186 * go-exp.y (yylex): Update.
5187 * f-exp.y (yylex): Update.
5188 * d-exp.y: Update all rules.
5190 * c-exp.y: Update all rules.
5191 (lex_one_token, classify_name, yylex, c_parse): Update.
5192 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
5194 2019-04-04 Tom Tromey <tom@tromey.com>
5196 * gdbarch.h, gdbarch.c: Rebuild.
5197 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
5199 (struct stap_parse_info): Replace "parser_state" with
5201 * parser-defs.h (struct expr_builder): Rename from "parser_state".
5202 (parser_state): New class.
5203 * parse.c (expr_builder): Rename.
5204 (expr_builder::release): Rename.
5205 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
5206 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
5207 (write_exp_elt_longcst, write_exp_elt_floatcst)
5208 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
5209 (write_exp_string_vector, write_exp_bitstring)
5210 (write_exp_msymbol, mark_struct_expression)
5211 (write_dollar_variable)
5212 (insert_type_address_space, increase_expout_size): Replace
5213 "parser_state" with "expr_builder".
5214 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
5215 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
5216 "parser_state" with "expr_builder".
5218 2019-04-04 Tom Tromey <tom@tromey.com>
5220 * rust-exp.y: Replace "parse_language" with method call.
5222 (yylex): Replace "parse_language" with method call.
5224 (yylex): Replace "parse_language" with method call.
5225 * go-exp.y (classify_name): Replace "parse_language" with method
5227 * f-exp.y (yylex): Replace "parse_language" with method call.
5228 * d-exp.y (lex_one_token): Replace "parse_language" with method
5231 (lex_one_token, classify_name, yylex): Replace "parse_language"
5233 * ada-exp.y (find_primitive_type, type_char)
5234 (type_system_address): Replace "parse_language" with method call.
5236 2019-04-04 Tom Tromey <tom@tromey.com>
5238 * rust-exp.y: Replace "parse_gdbarch" with method call.
5239 * parse.c (write_dollar_variable, insert_type_address_space):
5240 Replace "parse_gdbarch" with method call.
5241 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
5243 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
5245 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
5246 "parse_gdbarch" with method call.
5247 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
5249 * f-exp.y (parse_type, parse_f_type, yylex): Replace
5250 "parse_gdbarch" with method call.
5251 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
5252 "parse_gdbarch" with method call.
5253 * c-exp.y (parse_type, parse_number, classify_name): Replace
5254 "parse_gdbarch" with method call.
5255 * ada-lex.l: Replace "parse_gdbarch" with method call.
5256 * ada-exp.y (parse_type, find_primitive_type, type_char)
5257 (type_system_address): Replace "parse_gdbarch" with method call.
5259 2019-04-04 Tom Tromey <tom@tromey.com>
5261 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
5262 * stap-probe.c (stap_parse_argument): Update.
5263 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
5264 initial_size parameter.
5265 * rust-exp.y (rust_lex_tests): Update.
5266 * parse.c (parser_state): Update.
5267 (parse_exp_in_context): Update.
5268 * parser-defs.h (struct parser_state) <parser_state>: Remove
5269 "initial_size" parameter.
5271 2019-04-04 Tom Tromey <tom@tromey.com>
5273 * parser-defs.h (increase_expout_size): Don't declare.
5274 * parse.c (increase_expout_size): Now static.
5276 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
5278 * gnu-nat.c (gnu_nat_target::wait): Fix
5279 target_waitstatus_to_string call.
5281 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
5283 * eval.c (evaluate_subexp_standard): Handle internal functions
5284 during Fortran function call handling.
5286 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
5288 * NEWS: Mention new internal functions.
5289 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
5290 (read_base_type): Use dwarf2_init_complex_target_type.
5291 * value.c (creal_internal_fn): New function.
5292 (cimag_internal_fn): New function.
5293 (_initialize_values): Register new internal functions.
5295 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5297 * infrun.c (stop_all_threads): If debug_infrun, always
5298 trace the wait status after wait_one, using
5299 target_waitstatus_to_string and target_pid_to_str.
5300 (handle_inferior_event): Replace various trace of
5301 wait status kind by a single trace.
5302 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
5303 wait status kind image by target_waitstatus_to_string.
5304 * target/waitstatus.c (target_waitstatus_to_string): Fix
5307 2019-04-01 Tom Tromey <tromey@adacore.com>
5310 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
5312 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
5313 Pedro Alves <palves@redhat.com>
5315 * top.c (quit_force): Call 'finalize_values'.
5316 * value.c (finalize_values): New function.
5317 * value.h (finalize_values): Declare.
5319 2019-03-30 Eli Zaretskii <eliz@gnu.org>
5321 * NEWS: Announce $_gdb_major and $_gdb_minor.
5323 * top.c (init_gdb_version_vars): New function.
5324 (gdb_init): Call init_gdb_version_vars.
5326 2019-03-29 Tom Tromey <tromey@adacore.com>
5328 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
5329 help text. Remove dead code.
5331 2019-03-29 Keith Seitz <keiths@redhat.com>
5333 From Siddhesh Poyarekar:
5334 * f-lang.h (f77_get_upperbound): Return LONGEST.
5335 (f77_get_lowerbound): Likewise.
5336 * f-typeprint.c (f_type_print_varspec_suffix): Expand
5337 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
5339 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
5340 plongest to format print it.
5341 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
5342 (f77_get_upperbound): Likewise.
5343 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
5344 LOWER_BOUND to LONGEST.
5345 (f77_create_arrayprint_offset_tbl): Likewise.
5347 2019-03-29 Keith Seitz <keiths@redhat.com>
5349 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5350 %s/pulongest for TYPE_LENGTH instead of %d in format
5352 * ada-typerint.c (ada_print_type): Likewise.
5353 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
5354 * compile/compile-c-support.c (generate_register_struct): Likewise.
5355 * gdbtypes.c (recursive_dump_type): Likewise.
5356 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
5357 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
5358 instead of %d in format strings.
5359 * riscv-tdep.c (riscv_type_alignment): Cast second argument
5360 to std::min to ULONGEST.
5361 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
5362 instead of %d in format strings.
5363 * tracepoint.c (info_scope_command): Likewise.
5364 * typeprint.c (print_offset_data::update)
5365 (print_offset_data::finish): Likewise.
5366 * xtensa-tdep.c (xtensa_store_return_value)
5367 (xtensa_push_dummy_call): Likewise.
5369 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
5371 * windows-nat.c (display_selector): Fixed format specifications
5374 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5376 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
5378 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
5380 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
5381 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
5382 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
5383 (nios2_linux_init_abi): Install it.
5385 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5387 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
5389 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5391 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
5393 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5394 Tom Tromey <tromey@adacore.com>
5396 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
5398 2019-03-26 Joel Brobecker <brobecker@adacore.com>
5400 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
5401 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
5402 method to compute the bounds of range types. Also print "[evaluated]"
5403 if the bounds' values come from a dynamic evaluation.
5405 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
5407 * cp-valprint.c (cp_print_value_fields): Don't print trailing
5408 whitespace when pretty printing is on.
5410 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5412 * ppc-linux-nat.c: Add include.
5414 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5416 * NEWS: Mention AArch64 Pointer Authentication.
5418 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5420 * arm-linux-nat.c: Add include.
5422 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
5424 * source-cache.c (source_cache::get_source_lines): Re-read
5425 fullname after calling open_source_file.
5427 2019-03-25 John Baldwin <jhb@FreeBSD.org>
5429 * NEWS: Mention TLS support for FreeBSD.
5431 2019-03-25 Tom Tromey <tromey@adacore.com>
5433 * minsyms.c (BUNCH_SIZE): Update comment.
5434 (~minimal_symbol_reader): Remove old comment.
5435 (compact_minimal_symbols): Update comment.
5436 (minimal_symbol_reader::install): Remove old comment. Update
5439 2019-03-25 Alan Hayward <alan.hayward@arm.com>
5441 * s390-linux-nat.c: Add include.
5443 2019-03-25 Alan Hayward <alan.hayward@arm.com>
5445 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5446 Call linux_get_hwcap.
5447 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5449 (aarch64_linux_get_hwcap): Remove function.
5450 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
5452 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
5454 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5455 * linux-tdep.c (linux_get_hwcap): Add function.
5456 (linux_get_hwcap2): Likewise.
5457 * linux-tdep.h (linux_get_hwcap): Add declaration.
5458 (linux_get_hwcap2): Likewise.
5459 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
5460 (ppc_linux_get_hwcap2): Likewise.
5461 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
5463 (ppc_linux_nat_target::insert_watchpoint): Likewise.
5464 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
5465 (ppc_linux_nat_target::read_description): Likewise.
5466 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
5467 * s390-linux-nat.c: Likewise.
5468 * s390-linux-tdep.c (s390_core_read_description): Likewise.
5470 2019-03-24 Tom Tromey <tom@tromey.com>
5472 * ada-lang.c (standard_lookup): Simplify initialization.
5473 (ada_lookup_symbol_nonlocal): Simplify return.
5474 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
5475 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
5476 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
5477 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
5479 * solib.c (solib_global_lookup): Simplify.
5480 * symtab.c (null_block_symbol): Remove.
5481 (symbol_cache_lookup): Simplify returns.
5482 (lookup_language_this): Simplify returns.
5483 (lookup_symbol_aux): Simplify return.
5484 (lookup_local_symbol): Simplify returns.
5485 (lookup_global_symbol_from_objfile): Simplify return.
5486 (lookup_symbol_in_objfile_symtabs)
5487 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
5488 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
5489 (lookup_static_symbol, lookup_global_symbol): Simplify return.
5490 * cp-namespace.c (cp_lookup_bare_symbol)
5491 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
5492 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
5493 (cp_lookup_nested_symbol): Don't use null_block_symbol.
5494 (cp_lookup_symbol_via_imports): Simplify initialization.
5495 (find_symbol_in_baseclass): Likewise.
5496 * symtab.h (null_block_symbol): Remove.
5497 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
5498 (d_lookup_nested_symbol, d_lookup_symbol_imports)
5499 (d_lookup_symbol_module): Likewise.
5500 (find_symbol_in_baseclass): Simplify initialization.
5502 2019-03-24 Tom Tromey <tom@tromey.com>
5504 * expression.h: Don't include symtab.h.
5505 (struct block): Forward declare.
5507 2019-03-24 Tom Tromey <tom@tromey.com>
5509 * c-exp.y (typebase): Remove casts.
5510 * gdbtypes.c (lookup_unsigned_typename, )
5511 (lookup_signed_typename): Remove cast.
5512 * eval.c (parse_to_comma_and_eval): Remove cast.
5513 * parse.c (write_dollar_variable): Remove cast.
5514 * block.h (struct block) <superblock>: Now const.
5515 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
5516 * psymtab.c (psym_map_matching_symbols): Make "block" const.
5517 (map_block): Make "block" const.
5518 * symfile.h (struct quick_symbol_functions)
5519 <map_matching_symbols>: Constify block argument to "callback".
5520 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
5522 (find_pc_sect_compunit_symtab): Make "b" const.
5523 (find_symbol_at_address): Likewise.
5524 (search_symbols): Likewise.
5525 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
5526 (dw2_debug_names_lookup_symbol): Likewise.
5527 (dw2_map_matching_symbols): Update.
5528 * p-valprint.c (pascal_val_print): Remove "block".
5529 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
5530 (aux_add_nonlocal_symbols): Make "block" const.
5531 (resolve_subexp): Remove cast.
5532 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
5534 (iterate_over_file_blocks): Likewise.
5535 * f-exp.y (%union) <bval>: Remove.
5536 * coffread.c (patch_opaque_types): Make "b" const.
5537 * spu-tdep.c (spu_catch_start): Make "block" const.
5538 * c-valprint.c (print_unpacked_pointer): Remove "block".
5539 * symmisc.c (dump_symtab_1): Make "b" const.
5540 (block_depth): Make "block" const.
5541 * d-exp.y (%union) <bval>: Remove.
5542 * cp-support.h (cp_lookup_rtti_type): Update.
5543 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
5544 * psymtab.c (psym_lookup_symbol): Make "block" const.
5545 (maintenance_check_psymtabs): Make "b" const.
5546 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
5547 (enumerate_locals, enumerate_args): Update.
5548 * python/py-symtab.c (stpy_global_block): Make "block" const.
5549 (stpy_static_block): Likewise.
5550 * inline-frame.c (block_starting_point_at): Make "new_block"
5552 * block.c (find_block_in_blockvector): Make return type const.
5553 (blockvector_for_pc_sect): Make "b" const.
5554 (find_block_in_blockvector): Make "b" const.
5556 2019-03-23 Tom Tromey <tom@tromey.com>
5558 * varobj.c (varobj_create): Update.
5559 * symfile.c (clear_symtab_users): Don't reset innermost_block.
5560 * printcmd.c (display_command, do_one_display): Don't reset
5562 * parser-defs.h (enum innermost_block_tracker_type): Move to
5564 (innermost_block): Update comment.
5565 * parse.c (parse_exp_1): Add tracker_types parameter.
5566 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
5567 tracker_types parameter. Reset innermost_block.
5568 (parse_exp_in_context): Remove.
5569 (parse_expression_for_completion): Update.
5570 * objfiles.c (~objfile): Don't reset expression_context_block or
5572 * expression.h (enum innermost_block_tracker_type): Move from
5574 (parse_exp_1): Add tracker_types parameter.
5575 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
5576 reset innermost_block.
5578 2019-03-23 Tom Tromey <tom@tromey.com>
5580 * objfiles.h: Include bcache.h.
5582 2019-03-23 Tom Tromey <tom@tromey.com>
5584 * linespec.c (get_current_search_block): Use
5585 scoped_restore_current_language.
5586 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
5588 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5589 Jiong Wang <jiong.wang@arm.com>
5591 * aarch64-linux-tdep.c
5592 (aarch64_linux_iterate_over_regset_sections): Check for pauth
5594 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
5596 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5597 Jiong Wang <jiong.wang@arm.com>
5599 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
5601 (aarch64_analyze_prologue_test): Add PACIASP test.
5602 (aarch64_prologue_prev_register): Unmask PC value.
5604 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5605 Jiong Wang <jiong.wang@arm.com>
5607 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
5608 (aarch64_dwarf2_prev_register): Unmask PC value.
5609 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
5610 (aarch64_execute_dwarf_cfa_vendor_op): Check for
5611 DW_CFA_AARCH64_negate_ra_state.
5612 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
5614 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5615 Jiong Wang <jiong.wang@arm.com>
5617 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
5619 (aarch64_pseudo_register_name): Likewise.
5620 (aarch64_pseudo_register_type): Likewise.
5621 (aarch64_pseudo_register_reggroup_p): Likewise.
5622 (aarch64_gdbarch_init): Add pauth registers.
5623 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
5624 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
5625 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
5626 (struct gdbarch_tdep): Add regnum for ra_state.
5628 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5629 Jiong Wang <jiong.wang@arm.com>
5631 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
5633 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5634 Jiong Wang <jiong.wang@arm.com>
5636 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
5638 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
5639 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
5640 (aarch64_gdbarch_init): Add puth registers.
5641 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
5642 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
5643 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
5645 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5646 Jiong Wang <jiong.wang@arm.com>
5648 * aarch64-linux-nat.c
5649 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
5650 * aarch64-linux-tdep.c
5651 (aarch64_linux_core_read_description): Likewise.
5652 (aarch64_linux_get_hwcap): New function.
5653 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
5654 (aarch64_linux_get_hwcap): New declaration.
5656 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5657 Jiong Wang <jiong.wang@arm.com>
5659 * aarch64-linux-nat.c
5660 (aarch64_linux_nat_target::read_description): Add pauth param.
5661 * aarch64-linux-tdep.c
5662 (aarch64_linux_core_read_description): Likewise.
5663 * aarch64-tdep.c (struct target_desc): Add in pauth.
5664 (aarch64_read_description): Add pauth param.
5665 (aarch64_gdbarch_init): Likewise.
5666 * aarch64-tdep.h (aarch64_read_description): Likewise.
5667 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5668 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5669 * features/Makefile: Add new files.
5670 * features/aarch64-pauth.c: New file.
5671 * features/aarch64-pauth.xml: New file.
5673 2019-03-20 Tom Tromey <tromey@adacore.com>
5675 * infrun.c (handle_inferior_event): Rename from
5676 handle_inferior_event_1. Create a scoped_value_mark.
5677 (handle_inferior_event): Remove.
5679 2019-03-19 Tom Tromey <tromey@adacore.com>
5681 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
5682 * infrun.h (print_stop_event): Add "displays" parameter.
5683 * infrun.c (print_stop_event): Add "displays" parameter.
5685 2019-03-19 Pedro Alves <palves@redhat.com>
5687 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
5688 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
5689 to -1. Fix TABs vs spaces.
5690 (tui_ui_out::tui_ui_out): Don't initialize fields here.
5691 * tui/tui-out.h (tui_ui_out) Add intro comments.
5692 <m_line, m_start_of_line>: In-class initialize, and add describing
5695 2019-03-18 Alan Hayward <alan.hayward@arm.com>
5697 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
5699 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
5701 2019-03-18 Pedro Alves <palves@redhat.com>
5702 Eli Zaretskii <eliz@gnu.org>
5704 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
5705 m_line and m_start_of_line.
5707 2019-03-18 Eli Zaretskii <eliz@gnu.org>
5709 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
5710 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
5711 it returns a newline. This fixes a regression in TU mode, whereby
5712 the next line is output on the same screen line as the user input.
5714 2019-03-18 Tom Tromey <tromey@adacore.com>
5716 * minsyms.c (minimal_symbol_reader::install): Remove call to
5719 2019-03-18 Pedro Alves <palves@redhat.com>
5721 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
5723 (apply_style): New, factored out from ...
5724 (apply_ansi_escape): ... this. Handle reverse video mode.
5725 (tui_set_reverse_mode): New function.
5726 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
5727 * tui/tui-winsource.c (tui_show_source_line): Use
5728 tui_set_reverse_mode instead of setting A_STANDOUT.
5729 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
5732 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
5734 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
5737 2019-03-18 Tom Tromey <tromey@adacore.com>
5739 * ada-lang.c (empty_array): Add "high" parameter.
5740 (ada_evaluate_subexp): Update.
5742 2019-03-17 Sergei Trofimovich <siarheit@google.com>
5744 * unittests/string_view-selftests.c: Define
5745 _initialize_string_view_selftests unconditionally.
5747 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
5750 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
5752 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
5755 * windows-nat.c (display_selector): Fix format specifiers.
5757 2019-03-17 Eli Zaretskii <eliz@gnu.org>
5759 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
5760 tui_refill_source_window instead of tui_refresh_win, to update the
5761 current execution line. This fixes redisplay of the current line
5762 when stepping through the code with "next" or "step".
5764 2019-03-16 Eli Zaretskii <eliz@gnu.org>
5766 * source-cache.c (source_cache::get_source_lines): Call
5767 find_source_lines to initialize s->nlines. This fixes vertical
5768 scrolling of TUI source window when the DOWN arrow is pressed.
5770 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5772 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
5773 linux-thread-db.c (_initialize_thread_db): Likewise.
5775 2019-03-16 Eli Zaretskii <eliz@gnu.org>
5777 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
5778 wclrtoeol in tui_show_source_line". This reverts changes made in
5779 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
5781 2019-03-15 Tom Tromey <tom@tromey.com>
5783 * symtab.h (struct minimal_symbol): Derive from
5784 general_symbol_info.
5785 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
5786 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5787 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5788 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5789 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
5790 (MSYMBOL_SEARCH_NAME): Update.
5791 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
5792 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
5793 * minsyms.c (minimal_symbol_reader::record_full): Update.
5795 2019-03-15 Tom Tromey <tom@tromey.com>
5797 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
5799 2019-03-15 Tom Tromey <tom@tromey.com>
5801 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
5803 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
5805 * minsyms.c (lookup_minimal_symbol_by_pc_section)
5806 (build_minimal_symbol_hash_tables)
5807 (minimal_symbol_reader::install): Update.
5809 2019-03-15 Tom Tromey <tom@tromey.com>
5811 * symtab.c (create_demangled_names_hash): Update.
5812 (symbol_set_names): Update.
5813 * objfiles.h (struct objfile_per_bfd_storage)
5814 <demangled_names_hash>: Now an htab_up.
5815 * objfiles.c (objfile_per_bfd_storage): Simplify.
5817 2019-03-15 Tom Tromey <tom@tromey.com>
5819 * objfiles.h (struct objfile_per_bfd_storage): Declare
5821 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
5823 (get_objfile_bfd_data): Use new. Don't initialize
5825 (free_objfile_per_bfd_storage): Remove.
5826 (objfile_bfd_data_free, objfile::~objfile): Use delete.
5828 2019-03-15 Tom Tromey <tom@tromey.com>
5830 * symfile.c (reread_symbols): Update.
5831 * objfiles.c (objfile::objfile): Update.
5832 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
5833 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
5835 (minimal_symbol_reader::install): Update.
5836 (terminate_minimal_symbol_table): Remove.
5837 * jit.c (jit_object_close_impl): Update.
5839 2019-03-15 Tom Tromey <tom@tromey.com>
5841 * minsyms.c (minimal_symbol_reader::record_full): Remove some
5844 2019-03-15 Tom Tromey <tom@tromey.com>
5846 * objfiles.h (struct objfile_per_bfd_storage)
5847 <demangled_hash_languages>: Now a bitset.
5848 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
5849 (lookup_minimal_symbol): Update.
5851 2019-03-15 Tom Tromey <tom@tromey.com>
5853 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
5854 Don't return the symbol.
5855 * coffread.c (record_minimal_symbol): Use record_full.
5857 2019-03-14 Eli Zaretskii <eliz@gnu.org>
5859 The MS-Windows port of ncurses fails to switch to a color pair if
5860 one or both of the colors are the implicit default colors. This
5861 change records the default colors when TUI is initialized, and
5862 then specifies them explicitly when a color pair uses the default
5863 colors. This allows color styling in TUI mode on MS-Windows.
5865 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
5867 (tui_initialize_io) [__MINGW32__]: Record the default terminal
5868 colors in ncurses_norm_attr.
5869 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
5870 "none", replace it with the default color recorded in
5873 2019-03-14 Tom Tromey <tromey@adacore.com>
5875 * source-cache.h (class source_cache) <get_source_lines>: Return
5877 * source-cache.c (source_cache::extract_lines): Handle case where
5878 first_pos==npos. Return std::string.
5879 (source_cache::get_source_lines): Update.
5881 2019-03-14 Tom Tromey <tromey@adacore.com>
5883 * NEWS: Add item for "style sources" commands.
5884 * source-cache.c (source_cache::get_source_lines): Check
5886 * cli/cli-style.c (source_styling): New global.
5887 (_initialize_cli_style): Add "style sources" commands.
5888 (show_style_sources): New function.
5889 * cli/cli-style.h (source_styling): Declare.
5891 2019-03-14 Pedro Alves <palves@redhat.com>
5892 Tom Tromey <tromey@adacore.com>
5894 * tui/tui-winsource.h (tui_refill_source_window): Declare.
5895 * tui/tui-winsource.c (tui_refill_source_window): New function,
5897 (tui_horizontal_source_scroll): ... here. Move some logic.
5898 * cli/cli-style.c (set_style_enabled): Notify new observable.
5899 * tui/tui-hooks.c (tui_redisplay_source): New function.
5900 (tui_attach_detach_observers): Attach or detach
5901 tui_redisplay_source.
5902 * observable.h (source_styling_changed): New observable.
5903 * observable.c: Define source_styling_changed observable.
5905 2019-03-13 Tom Tromey <tromey@adacore.com>
5907 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
5908 (i386_gnu_nat_target::store_registers): Update.
5909 * target-debug.h (target_debug_print_std_string): New macro.
5910 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
5911 * windows-tdep.c (display_one_tib): Update.
5912 * tui/tui-stack.c (tui_make_status_line): Update.
5913 * top.c (print_inferior_quit_action): Update.
5914 * thread.c (thr_try_catch_cmd): Update.
5915 (add_thread_with_info): Update.
5916 (thread_target_id_str): Update.
5917 (thr_try_catch_cmd): Update.
5918 (thread_command): Update.
5919 (thread_find_command): Update.
5920 * record-btrace.c (record_btrace_target::info_record)
5921 (record_btrace_resume_thread, record_btrace_target::resume)
5922 (record_btrace_cancel_resume, record_btrace_step_thread)
5923 (record_btrace_target::wait, record_btrace_target::wait)
5924 (record_btrace_target::wait, record_btrace_target::stop): Update.
5925 * progspace.c (print_program_space): Update.
5926 * process-stratum-target.c
5927 (process_stratum_target::thread_address_space): Update.
5928 * linux-fork.c (linux_fork_mourn_inferior)
5929 (detach_checkpoint_command, info_checkpoints_command)
5930 (linux_fork_context): Update.
5931 (linux_fork_detach): Update.
5932 (class scoped_switch_fork_info): Update.
5933 (delete_checkpoint_command): Update.
5934 * infrun.c (follow_fork_inferior): Update.
5935 (follow_fork_inferior): Update.
5936 (proceed_after_vfork_done): Update.
5937 (handle_vfork_child_exec_or_exit): Update.
5938 (follow_exec): Update.
5939 (displaced_step_prepare_throw): Update.
5940 (displaced_step_restore): Update.
5941 (start_step_over): Update.
5943 (clear_proceed_status_thread): Update.
5945 (print_target_wait_results): Update.
5946 (do_target_wait): Update.
5947 (context_switch): Update.
5948 (stop_all_threads): Update.
5949 (restart_threads): Update.
5950 (finish_step_over): Update.
5951 (handle_signal_stop): Update.
5952 (switch_back_to_stepped_thread): Update.
5953 (keep_going_pass_signal): Update.
5954 (print_exited_reason): Update.
5955 (normal_stop): Update.
5956 * inferior.c (inferior_pid_to_str): Change return type.
5957 (print_selected_inferior): Update.
5958 (add_inferior): Update.
5959 (detach_inferior): Update.
5960 * dummy-frame.c (fprint_dummy_frames): Update.
5961 * dcache.c (dcache_info_1): Update.
5962 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
5963 (btrace_fetch, btrace_clear): Update.
5964 * linux-tdep.c (linux_core_pid_to_str): Change return type.
5965 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
5967 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
5968 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
5969 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
5970 * gdbarch.c, gdbarch.h: Rebuild.
5971 * gdbarch.sh (core_pid_to_str): Change return type.
5972 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
5974 (windows_nat_target::pid_to_str): Change return type.
5975 (windows_delete_thread): Update.
5976 (windows_nat_target::attach): Update.
5977 (windows_nat_target::files_info): Update.
5978 * target-delegates.c: Rebuild.
5979 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
5981 (sol_thread_target::pid_to_str): Change return type.
5982 * remote.c (class remote_target) <pid_to_str>: Change return
5984 (remote_target::pid_to_str): Change return type.
5985 (extended_remote_target::attach, remote_target::remote_stop_ns)
5986 (remote_target::remote_notif_remove_queued_reply)
5987 (remote_target::push_stop_reply, remote_target::disable_btrace):
5989 (extended_remote_target::attach): Update.
5990 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
5992 (gdbsim_target::pid_to_str): Change return type.
5993 * ravenscar-thread.c (struct ravenscar_thread_target)
5994 <pid_to_str>: Change return type.
5995 (ravenscar_thread_target::pid_to_str): Change return type.
5996 * procfs.c (class procfs_target) <pid_to_str>: Change return
5998 (procfs_target::pid_to_str): Change return type.
5999 (procfs_target::attach): Update.
6000 (procfs_target::detach): Update.
6001 (procfs_target::fetch_registers): Update.
6002 (procfs_target::store_registers): Update.
6003 (procfs_target::wait): Update.
6004 (procfs_target::files_info): Update.
6005 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
6006 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
6008 (nto_procfs_target::pid_to_str): Change return type.
6009 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
6010 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
6012 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
6014 (attach_proc_task_lwp_callback, get_detach_signal)
6015 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
6016 (linux_nat_target::resume, wait_lwp, stop_callback)
6017 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
6018 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
6019 (linux_nat_wait_1, resume_stopped_resumed_lwps)
6020 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
6021 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
6023 (inf_ptrace_target::attach): Update.
6024 (inf_ptrace_target::files_info): Update.
6025 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
6027 (go32_nat_target::pid_to_str): Change return type.
6028 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
6029 (gnu_nat_target::wait): Update.
6030 (gnu_nat_target::wait): Update.
6031 (gnu_nat_target::resume): Update.
6032 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
6033 (fbsd_nat_target::wait): Update.
6034 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
6036 (darwin_nat_target::attach): Update.
6037 * corelow.c (class core_target) <pid_to_str>: Change return type.
6038 (core_target::pid_to_str): Change return type.
6039 * target.c (normal_pid_to_str): Change return type.
6040 (default_pid_to_str): Likewise.
6041 (target_pid_to_str): Change return type.
6042 (target_translate_tls_address): Update.
6043 (target_announce_detach): Update.
6044 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
6046 (bsd_uthread_target::pid_to_str): Change return type.
6047 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
6049 (bsd_kvm_target::pid_to_str): Change return type.
6050 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
6052 (aix_thread_target::pid_to_str): Change return type.
6053 * target.h (struct target_ops) <pid_to_str>: Change return type.
6054 (target_pid_to_str, normal_pid_to_str): Likewise.
6055 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
6057 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
6059 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
6061 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
6063 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
6065 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
6068 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
6070 * NEWS: Mention that the new default MI version is 3. Mention
6071 changes to the output of commands and events that deal with
6072 multi-location breakpoints.
6073 * breakpoint.c: Include "mi/mi-out.h".
6074 (print_one_breakpoint): Change output syntax if using MI version
6076 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
6078 (mi_multi_location_breakpoint_output_fixed): New.
6079 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
6080 (mi_cmd_fix_multi_location_breakpoint_output): New.
6081 (mi_multi_location_breakpoint_output_fixed): New.
6082 * mi/mi-cmds.c (mi_cmds): Register command
6083 -fix-multi-location-breakpoint-output.
6084 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
6087 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6089 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
6090 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
6091 instantiate mi_ui_out based on interpreter name.
6092 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
6093 * mi/mi-main.c (mi_load_progress): Likewise.
6095 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6097 * NEWS: Combine separate "New targets" sections for 8.3.
6099 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6101 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
6102 (ppcfbsd_init_abi): Install gdbarch
6103 "fetch_tls_load_module_address" and "get_thread_local_address"
6106 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6108 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
6109 (riscv_fbsd_init_abi): Install gdbarch
6110 "fetch_tls_load_module_address" and "get_thread_local_address"
6113 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6115 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
6116 (i386fbsd_init_abi): Install gdbarch
6117 "fetch_tls_load_module_address" and "get_thread_local_address"
6120 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6122 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
6123 (amd64fbsd_init_abi): Install gdbarch
6124 "fetch_tls_load_module_address" and "get_thread_local_address"
6127 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6129 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
6130 (struct fbsd_pspace_data): New type.
6131 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
6132 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
6133 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
6134 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
6135 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
6137 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6139 * gdbtypes.c (lookup_struct_elt): New function.
6140 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
6141 * gdbtypes.h (struct struct_elt): New type.
6142 (lookup_struct_elt): New prototype.
6144 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6146 * gdbtypes.c (lookup_struct_elt_type): Update comment and
6147 remove disabled code block.
6149 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6151 * gdbarch.sh (get_thread_local_address): New method.
6152 * gdbarch.h, gdbarch.c: Regenerate.
6153 * target.c (target_translate_tls_address): Use
6154 gdbarch_get_thread_local_address if present instead of
6155 target::get_thread_local_address.
6157 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6159 * target.h (target::get_thread_local_address): Update comment.
6161 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6163 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
6164 objfile->separate_debug_objfile_backlink if not NULL.
6166 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6168 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
6169 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
6170 (amd64bsd_store_inferior_registers): Likewise.
6171 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
6172 Enable segment base registers.
6173 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
6174 PT_GETFSBASE and PT_GETGSBASE.
6175 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
6177 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
6178 segment base registers.
6179 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
6181 2019-03-12 John Baldwin <jhb@FreeBSD.org>
6183 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
6184 Update calls to i386_target_description to add 'segments'
6186 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
6187 add segment base registers.
6188 * arch/i386.c (i386_create_target_description): Add 'segments'
6189 parameter to enable segment base registers.
6190 * arch/i386.h (i386_create_target_description): Likewise.
6191 * features/i386/32bit-segments.xml: New file.
6192 * features/i386/32bit-segments.c: Generate.
6193 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
6194 call to i386_target_description to add 'segments' parameter.
6195 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
6196 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
6197 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
6198 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
6199 if feature is present.
6200 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
6201 Add 'segments' parameter to call to i386_target_description.
6202 (i386_target_description): Add 'segments' parameter to enable
6203 segment base registers.
6204 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
6205 to call to i386_target_description.
6206 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
6207 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
6208 Define I386_NUM_REGS.
6209 (i386_target_description): Add 'segments' parameter to enable
6210 segment base registers.
6212 2019-03-12 Eli Zaretskii <eliz@gnu.org>
6215 * source-cache.c: #undef open and close, to avoid unresolved
6216 externals during linking.
6218 2019-03-12 Tom Tromey <tromey@adacore.com>
6220 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
6221 const. Add initializers.
6222 (_initialize_remote): Don't initialize ptid globals.
6224 2019-03-12 Pedro Alves <palves@redhat.com>
6226 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
6228 2019-03-12 Pedro Alves <palves@redhat.com>
6230 * cp-name-parser.y (main): Remove unused 'len' variable.
6232 2019-03-12 Tom Tromey <tromey@adacore.com>
6234 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
6235 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
6237 2019-03-12 Tom Tromey <tromey@adacore.com>
6239 * linux-nat.c (iterate_over_lwps): Update.
6240 (stop_callback): Remove parameter.
6241 (stop_wait_callback, detach_callback, resume_set_callback)
6242 (select_singlestep_lwp_callback, set_ignore_sigint)
6243 (status_callback, resumed_callback, resume_clear_callback)
6244 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
6246 (linux_nat_target::detach, linux_nat_target::resume)
6247 (linux_stop_and_wait_all_lwps, select_event_lwp)
6248 (linux_nat_filter_event, linux_nat_wait_1)
6249 (linux_nat_target::kill, linux_nat_target::stop)
6250 (linux_nat_target::stop): Update.
6251 (linux_nat_resume_callback): Change type.
6252 (resume_stopped_resumed_lwps, count_events_callback)
6253 (select_event_lwp_callback): Likewise.
6254 (linux_stop_lwp, linux_nat_stop_lwp): Update.
6255 * arm-linux-nat.c (struct update_registers_data): Remove.
6256 (update_registers_callback): Change type.
6257 (arm_linux_insert_hw_breakpoint1): Update.
6258 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
6260 (x86_linux_dr_set_addr): Update.
6261 (x86_linux_dr_set_control): Update.
6262 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
6263 (iterate_over_lwps): Use gdb::function_view.
6264 * nat/aarch64-linux-hw-point.c (struct
6265 aarch64_dr_update_callback_param): Remove.
6266 (debug_reg_change_callback): Change type.
6267 (aarch64_notify_debug_reg_change): Update.
6268 * s390-linux-nat.c (s390_refresh_per_info): Update.
6270 2019-03-11 Tom Tromey <tromey@adacore.com>
6272 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
6273 redundant assignment to "this_cu".
6275 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6277 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
6279 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6281 * gdbtypes.c (rank_one_type_parm_set): New function extracted
6283 (rank_one_type): ... this.
6285 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6287 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
6289 (rank_one_type): ... this.
6291 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6293 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
6295 (rank_one_type): ... this.
6297 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6299 * gdbtypes.c (rank_one_type_parm_float): New function extracted
6301 (rank_one_type): ... this.
6303 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6305 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
6307 (rank_one_type): ... this.
6309 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6311 * gdbtypes.c (rank_one_type_parm_range): New function extracted
6313 (rank_one_type): ... this.
6315 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6317 * gdbtypes.c (rank_one_type_parm_char): New function extracted
6319 (rank_one_type): ... this.
6321 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6323 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
6325 (rank_one_type): ... this.
6327 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6329 * gdbtypes.c (rank_one_type_parm_int): New function extracted
6331 (rank_one_type): ... this.
6333 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6335 * gdbtypes.c (rank_one_type_parm_func): New function extracted
6337 (rank_one_type): ... this.
6339 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6341 * gdbtypes.c (rank_one_type_parm_array): New function extracted
6343 (rank_one_type): ... this.
6345 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6347 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
6349 (rank_one_type): ... this.
6351 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6353 * inferior.c (initialize_inferiors): Ensure 'help set/show print
6354 inferior-events' shows the example events.
6356 2019-03-08 Eli Zaretskii <eliz@gnu.org>
6358 Support styling on native MS-Windows console
6361 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
6362 on MS-Windows if $TERM is not defined.
6364 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
6366 * posix-hdep.c (gdb_console_fputs):
6367 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
6369 * ui-file.h (gdb_console_fputs): Add prototype.
6371 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
6372 back to fputs only if the former returns zero.
6374 2019-03-07 Tom Tromey <tom@tromey.com>
6376 * symmisc.c (print_symbol_bcache_statistics): Update.
6377 (print_objfile_statistics): Update.
6378 * symfile.c (allocate_symtab): Update.
6379 * stabsread.c: Don't include bcache.h.
6380 * psymtab.h (struct psymbol_bcache): Don't declare.
6381 (class psymtab_storage) <psymbol_cache>: Now a bcache.
6382 (psymbol_bcache_init, psymbol_bcache_free)
6383 (psymbol_bcache_get_bcache): Don't declare.
6384 * psymtab.c (struct psymbol_bcache): Remove.
6385 (psymtab_storage::psymtab_storage): Update.
6386 (psymtab_storage::~psymtab_storage): Update.
6387 (psymbol_bcache_init, psymbol_bcache_free)
6388 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
6389 (add_psymbol_to_bcache): Update.
6390 (allocate_psymtab): Update.
6391 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
6392 macro_cache>: No longer pointers.
6393 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
6394 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
6395 * macrotab.c (macro_bcache): Update.
6396 * macroexp.c: Don't include bcache.h.
6397 * gdbtypes.c (check_types_worklist): Update.
6398 (types_deeply_equal): Remove TRY/CATCH. Update.
6399 * elfread.c (elf_symtab_read): Update.
6400 * dwarf2read.c: Don't include bcache.h.
6401 * buildsym.c (buildsym_compunit::get_macro_table): Update.
6402 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
6403 (print_bcache_statistics, bcache_memory_used): Don't declare.
6404 (struct bcache): Move from bcache.c. Add constructor, destructor,
6405 methods. Rename all data members.
6406 * bcache.c (struct bcache): Move to bcache.h.
6407 (bcache::expand_hash_table): Rename from expand_hash_table.
6409 (bcache::insert): Rename from bcache_full.
6410 (bcache::compare): Rename from bcache_compare.
6411 (bcache_xmalloc): Remove.
6412 (bcache::~bcache): Rename from bcache_xfree.
6413 (bcache::print_statistics): Rename from print_bcache_statistics.
6414 (bcache::memory_used): Rename from bcache_memory_used.
6416 2019-03-07 Pedro Alves <palves@redhat.com>
6418 * infrun.c (normal_stop): Also check for
6419 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
6421 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
6423 * f-lang.c (value_from_host_double): Moved to...
6424 * value.c (value_from_host_double): ...here.
6425 * value.h (value_from_host_double): Declare.
6426 * guile/scm-math.c (vlscm_convert_typed_number): Use
6427 value_from_host_double.
6428 (vlscm_convert_number): Likewise.
6429 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
6430 * python/py-value.c (convert_value_from_python): Likewise.
6432 2019-03-06 Tom Tromey <tom@tromey.com>
6434 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
6436 2019-03-06 Tom Tromey <tom@tromey.com>
6438 * utils.h (free_current_contents): Don't declare.
6439 * utils.c (free_current_contents): Remove.
6441 2019-03-06 Tom Tromey <tom@tromey.com>
6443 * top.c (quit_force): Update.
6444 * main.c (captured_command_loop): Update.
6445 * common/new-op.c (operator new): Update.
6446 * common/common-exceptions.c (struct catcher)
6447 <save_cleanup_chain>: Remove member.
6448 (exceptions_state_mc_init): Update.
6449 (exception_try_scope_entry): Return nullptr.
6450 (exception_try_scope_exit, exception_rethrow)
6451 (throw_exception_sjlj, throw_exception_cxx): Update.
6452 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
6453 (all_cleanups, do_cleanups, discard_cleanups)
6454 (discard_final_cleanups, save_cleanups, save_final_cleanups)
6455 (restore_cleanups, restore_final_cleanups): Don't declare.
6456 (do_final_cleanups): Remove parameter.
6457 * common/cleanups.c (cleanup_chain, make_cleanup)
6458 (make_cleanup_dtor, all_cleanups, do_cleanups)
6459 (discard_my_cleanups, discard_cleanups)
6460 (discard_final_cleanups, save_my_cleanups, save_cleanups)
6461 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
6462 (null_cleanup): Remove.
6463 (do_final_cleanups): Remove parameter.
6465 2019-03-06 Tom Tromey <tom@tromey.com>
6467 * remote.c (remote_target::remote_parse_stop_reply): Use
6470 2019-03-06 Tom Tromey <tom@tromey.com>
6472 * stabsread.c (struct stabs_field_info): Rename from field_info.
6473 <list, fnlist>: Add initializers.
6474 <obstack>: New member.
6475 (read_member_functions, read_struct_fields, read_baseclasses):
6476 Allocate on obstack. Don't use cleanups.
6477 (read_one_struct_field, read_member_functions, read_struct_fields)
6478 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
6479 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
6480 (read_struct_type): Update.
6482 2019-03-06 Tom Tromey <tom@tromey.com>
6484 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
6485 * common/filestuff.h (make_cleanup_close): Don't declare.
6486 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
6489 2019-03-06 Tom Tromey <tom@tromey.com>
6491 * solib-aix.c: Use make_scope_exit.
6493 2019-03-06 Tom Tromey <tom@tromey.com>
6495 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
6496 Use make_scope_exit.
6498 2019-03-06 Tom Tromey <tom@tromey.com>
6500 * solib-svr4.c (disable_probes_interface): Remove parameter.
6501 (svr4_handle_solib_event): Use make_scope_exit.
6503 2019-03-06 Tom Tromey <tom@tromey.com>
6505 * remote.c (struct stop_reply_deleter): Remove.
6506 (stop_reply_up): Update.
6507 (struct stop_reply): Derive from notif_event. Don't typedef.
6508 <regcache>: Now a std::vector.
6509 (stop_reply_xfree): Remove.
6510 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
6511 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
6512 (remote_target::discard_pending_stop_replies): Use delete.
6513 (remote_target::remote_parse_stop_reply): Update.
6514 (remote_target::process_stop_reply): Update.
6515 * remote-notif.h (struct notif_event): Add virtual destructor.
6516 Remove "dtr" member.
6517 (struct notif_client) <alloc_event>: Return a unique_ptr.
6518 (notif_event_xfree): Don't declare.
6519 (notif_event_up): New typedef.
6520 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
6521 (notif_event_xfree, do_notif_event_xfree): Remove.
6522 (remote_notif_state_xfree): Update.
6524 2019-03-06 Tom Tromey <tom@tromey.com>
6526 * infrun.c (displaced_step_clear_cleanup): Now a
6527 forward_scope_exit type.
6528 (displaced_step_prepare_throw): Update.
6529 (displaced_step_fixup): Update.
6531 2019-03-06 Tom Tromey <tom@tromey.com>
6533 * inferior.h (class inferior): Update comment.
6534 * gdbthread.h (class thread_info): Update comment.
6536 2019-03-06 Joel Brobecker <brobecker@adacore.com>
6537 Tom Tromey <tom@tromey.com>
6539 * stabsread.h (struct stab_section_list): Remove.
6540 (coffstab_build_psymtabs): Update.
6541 * dbxread.c (symbuf_sections): Now a std::vector.
6542 (sect_idx): New global.
6543 (fill_symbuf): Update.
6544 (coffstab_build_psymtabs): Change type of stabsects parameter.
6546 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
6548 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
6549 (coff_locate_sections): Update.
6550 (coff_symfile_read): Remove cleanups. Update.
6551 (init_stringtab): Add storage parameter.
6552 (free_stringtab, free_stringtab_cleanup): Remove.
6553 (init_lineno): Add storage parameter.
6554 (free_linetab, free_linetab_cleanup): Remove.
6556 2019-03-06 Pedro Alves <palves@redhat.com>
6558 * linux-fork.c (fork_info::clobber_regs): Delete.
6559 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
6560 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
6562 (scoped_switch_fork_info::scoped_switch_fork_info)
6563 (checkpoint_command, linux_fork_context): Adjust
6564 fork_save_infrun_state calls.
6566 2019-03-06 Pedro Alves <palves@redhat.com>
6568 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
6569 (inf_has_multiple_threads): Return 'bool' and rewrite using
6570 inferior_info::threads().
6572 2019-03-06 Pedro Alves <palves@redhat.com>
6574 * linux-fork.c: Include <list>.
6575 (fork_list): Now a std::list instance.
6576 (fork_info): Add ctor, dtor, and in-class initialize all fields.
6577 (forks_exist_p, find_last_fork): Adjust.
6581 (free_fork): Delete, folded into fork_info::~fork_info().
6582 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
6584 (init_fork_list): Delete.
6585 (linux_fork_killall, linux_fork_mourn_inferior)
6586 (linux_fork_detach, info_checkpoints_command): Adjust.
6587 (_initialize_linux_fork): No longer call init_fork_list.
6589 2019-03-06 Pedro Alves <palves@redhat.com>
6591 * linux-fork.c (new_fork): New, split out of ...
6592 (add_fork): ... this. Return void. Move "first fork" special
6593 case from here, to ...
6594 (checkpoint_command): ... here.
6595 * linux-linux.h (add_fork): Return void.
6597 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6599 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
6601 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6602 Chris January <chris.january@arm.com>
6603 David Lecomber <david.lecomber@arm.com>
6605 * f-exp.y: New token, UNOP_INTRINSIC.
6606 (exp): New pattern using UNOP_INTRINSIC token.
6607 (f77_keywords): Add 'abs' keyword.
6608 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
6609 (value_from_host_double): New function.
6610 (evaluate_subexp_f): Support UNOP_ABS.
6612 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6614 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
6617 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6619 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
6620 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
6621 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
6623 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6625 * f-exp.y (convert_to_kind_type): Handle more type kinds.
6627 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6628 Chris January <chris.january@arm.com>
6630 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
6631 * f-exp.y: Define 'KIND' token.
6632 (exp): New pattern for KIND expressions.
6633 (ptype): Handle types with a kind extension.
6634 (direct_abs_decl): Extend to spot kind extensions.
6635 (f77_keywords): Add 'kind' to the list.
6636 (push_kind_type): New function.
6637 (convert_to_kind_type): New function.
6638 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
6639 * parse.c (operator_length_standard): Likewise.
6640 * parser-defs.h (enum type_pieces): Add tp_kind.
6641 * std-operator.def: Add UNOP_KIND.
6643 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6645 * f-exp.y (f_parse): Set yydebug.
6647 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6649 * f-lang.c (evaluate_subexp_f): New function.
6650 (exp_descriptor_f): New global.
6651 (f_language_defn): Use exp_descriptor_f instead of
6652 exp_descriptor_standard.
6654 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6656 * f-exp.y (struct token): Add comments.
6657 (dot_ops): Remove uppercase versions and the end marker.
6658 (f77_keywords): Likewise.
6659 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
6660 entries in the dot_ops array are case insensitive, and use
6661 strncasecmp to compare strings. Also some whitespace cleanup in
6662 this area. Similar for the f77_keywords array, except entries in
6663 this list might be case sensitive.
6665 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6667 * f-exp.y (struct f77_boolean_val): Add comments.
6668 (boolean_values): Remove uppercase versions, and end marker.
6669 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
6670 and use strncasecmp to achieve case insensitivity. Additionally,
6671 perform whitespace cleanup around this code.
6673 2019-03-06 Tom Tromey <tromey@adacore.com>
6675 * remote-sim.c (gdbsim_target_open): Use result of
6678 2019-03-06 Richard Bunt <richard.bunt@arm.com>
6679 Dirk Schubert <dirk.schubert@arm.com>
6680 Chris January <chris.january@arm.com>
6682 * eval.c (evaluate_subexp_standard): Call Fortran argument
6684 * f-lang.c (struct value): A value which can be passed into a
6685 Fortran function call.
6686 (fortran_argument_convert): Wrap Fortran arguments in a pointer
6688 (struct type): Value ready for a Fortran function call.
6689 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
6691 * f-lang.h (fortran_argument_convert): Declaration.
6692 (fortran_preserve_arg_pointer): Declaration.
6693 * infcall.c (value_arg_coerce): Call Fortran argument logic.
6695 2019-03-05 Tom Tromey <tromey@adacore.com>
6697 * python/py-prettyprint.c (print_string_repr): Remove #if.
6698 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
6700 2019-03-05 Tom Tromey <tromey@adacore.com>
6702 * target.c (the_dummy_target): Move later. Change type to
6704 (initialize_targets): Don't initialize the_dummy_target.
6706 2019-03-05 Tom Tromey <tromey@adacore.com>
6708 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
6709 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
6711 2019-03-05 Tom Tromey <tromey@adacore.com>
6713 * windows-nat.c (windows_nat_target::attach)
6714 (windows_nat_target::detach): Don't call gdb_flush.
6715 * valprint.c (generic_val_print, val_print, val_print_string):
6716 Don't call gdb_flush.
6717 * utils.c (defaulted_query): Don't call gdb_flush.
6718 * typeprint.c (print_type_scalar): Don't call gdb_flush.
6719 * target.c (target_announce_detach): Don't call gdb_flush.
6720 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
6721 * remote.c (extended_remote_target::attach): Don't call
6723 * procfs.c (procfs_target::detach): Don't call gdb_flush.
6724 * printcmd.c (do_examine): Don't call gdb_flush.
6725 (info_display_command): Don't call gdb_flush.
6726 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
6727 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
6728 * memattr.c (info_mem_command): Don't call gdb_flush.
6729 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
6730 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
6731 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
6732 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
6733 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
6734 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
6735 (gnu_nat_target::detach): Don't call gdb_flush.
6736 * f-valprint.c (f_val_print): Don't call gdb_flush.
6737 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
6738 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
6739 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
6741 * c-valprint.c (c_val_print): Don't call gdb_flush.
6742 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
6744 2019-03-05 Tom Tromey <tromey@adacore.com>
6746 * varobj.c (update_dynamic_varobj_children): Update.
6747 (install_default_visualizer): Use reset, not release.
6748 * value.c (set_internalvar): Update.
6749 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
6750 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
6751 ATTRIBUTE_UNUSED_RESULT.
6753 2019-03-05 Tom Tromey <tromey@adacore.com>
6755 * remote.c (class scoped_remote_fd) <release>: Add
6756 ATTRIBUTE_UNUSED_RESULT.
6758 2019-03-05 Tom Tromey <tromey@adacore.com>
6760 * macroexp.c (struct macro_buffer) <release>: Add
6761 ATTRIBUTE_UNUSED_RESULT.
6763 2019-03-05 Tom Tromey <tromey@adacore.com>
6765 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
6766 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
6767 ATTRIBUTE_UNUSED_RESULT.
6769 2019-03-05 Tom Tromey <tromey@adacore.com>
6771 * common/scoped_fd.h (class scoped_fd) <release>: Add
6772 ATTRIBUTE_UNUSED_RESULT.
6774 2019-03-05 Tom Tromey <tromey@adacore.com>
6776 * parser-defs.h (struct parser_state) <release>: Add
6777 ATTRIBUTE_UNUSED_RESULT.
6779 2019-03-05 Tom Tromey <tromey@adacore.com>
6781 * utils.h (class gdb_argv) <release>: Add
6782 ATTRIBUTE_UNUSED_RESULT.
6783 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
6785 2019-03-02 Eli Zaretskii <eliz@gnu.org>
6787 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
6788 for-loop range, to avoid compiler warnings.
6790 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
6791 avoid compiler warnings about unused variables.
6793 * NEWS: Mention end of support for native debugging on MS-Windows
6797 * common/netstuff.c:
6798 * gdbserver/gdbreplay.c
6799 * gdbserver/remote-utils.c:
6801 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
6802 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
6803 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
6804 'getaddrinfo' and 'freeaddrinfo' were not available before
6805 Windows XP, and mingw.org's MinGW headers by default define
6806 _WIN32_WINNT to 0x500.
6808 2019-03-01 Gary Benson <gbenson@redhat.com>
6810 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
6812 2019-02-28 Brian Vandenberg <phantall@gmail.com>
6813 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6816 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
6817 set_sigint_trap, clear_sigint_trap.
6819 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6821 * target.c (target_detach): Clear the regcache and the
6824 2019-02-27 Pedro Alves <palves@redhat.com>
6826 * utils.c (set_screen_size): When we cap the height/width sizes,
6827 tweak the corresponding command variable to show "unlimited":
6829 2019-02-27 Saagar Jha <saagar@saagarjha.com>
6830 Pedro Alves <palves@redhat.com>
6832 * utils.c (set_screen_size): Reduce "infinite" rows and columns
6833 before calling rl_set_screen_size.
6835 2019-02-27 Tom Tromey <tromey@adacore.com>
6837 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
6839 * python/py-value.c: Remove Python 2.4 workaround.
6840 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
6842 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
6843 Python 2.4 workaround.
6844 * python/python-internal.h: Remove Python 2.4 comment.
6845 (Py_ssize_t): Don't define.
6846 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
6847 (gdb_Py_DECREF): Remove Python 2.4 workaround.
6848 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
6849 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
6850 * python/python.c (do_start_initialization): Remove Python 2.4
6852 * python/py-prettyprint.c (class dummy_python_frame): Remove.
6853 (print_children): Remove Python 2.4 workaround.
6854 * python/py-inferior.c (buffer_procs): Remove Python 2.4
6856 (CHARBUFFERPROC_NAME): Remove.
6857 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
6858 Python 2.4 workaround.
6860 2019-02-27 Kevin Buettner <kevinb@redhat.com>
6862 * NEWS: Note minimum Python version.
6864 2019-02-27 Kevin Buettner <kevinb@redhat.com>
6866 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
6867 code from these functions. Remove corresponding ifdefs. Use
6868 Py_buffer_up instead of explicit calls to PyBuffer_Release.
6869 Remove gotos and target of gotos.
6870 (infpy_search_memory): Likewise.
6872 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6874 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
6875 (hppa_gdbarch_init): Don't register deleted functions with
6878 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6880 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
6881 (h8300_unwind_sp): Delete.
6882 (h8300_dummy_id): Delete.
6883 (h8300_gdbarch_init): Don't register deleted functions with
6886 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6888 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
6889 (ft32_unwind_pc): Delete.
6890 (ft32_unwind_sp): Delete.
6891 (ft32_gdbarch_init): Don't register deleted functions with
6894 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6896 * gdb/frv-tdep.c (frv_dummy_id): Delete.
6897 (frv_unwind_pc): Delete.
6898 (frv_unwind_sp): Delete.
6899 (frv_gdbarch_init): Don't register deleted functions with
6902 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6904 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
6905 (riscv_unwind_pc): Delete.
6906 (riscv_unwind_sp): Delete.
6907 (riscv_gdbarch_init): Don't register deleted functions with
6910 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6912 * gdb/csky-tdep.c (csky_dummy_id): Delete.
6913 (csky_unwind_pc): Delete.
6914 (csky_unwind_sp): Delete.
6915 (csky_gdbarch_init): Don't register deleted functions with
6918 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6920 * gdb/cris-tdep.c (cris_dummy_id): Delete.
6921 (cris_unwind_pc): Delete.
6922 (cris_unwind_sp): Delete.
6923 (cris_gdbarch_init): Don't register deleted functions with
6926 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6928 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
6929 (bfin_unwind_pc): Delete.
6930 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
6932 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6934 * gdb/arm-tdep.c (arm_dummy_id): Delete.
6935 (arm_unwind_pc): Delete.
6936 (arm_unwind_sp): Delete.
6937 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
6939 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6941 * gdb/arc-tdep.c (arc_dummy_id): Delete.
6942 (arc_unwind_pc): Delete.
6943 (arc_unwind_sp): Delete.
6944 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
6946 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6948 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
6949 (alpha_unwind_pc): Delete.
6950 (alpha_gdbarch_init): Don't register deleted functions with
6953 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6955 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
6956 (aarch64_unwind_pc): Delete.
6957 (aarch64_unwind_sp): Delete.
6958 (aarch64_gdbarch_init): Don't register deleted functions with
6961 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6963 * gdbtypes.c (type_align): Don't consider static members when
6964 computing structure alignment.
6966 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6968 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
6969 return 0 for other types.
6970 * arch-utils.c (default_type_align): Always return 0.
6971 * gdbarch.h: Regenerate.
6972 * gdbarch.sh (type_align): Extend comment.
6973 * gdbtypes.c (type_align): Add additional comments, always call
6974 gdbarch_type_align before applying the default rules.
6975 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
6976 generic code will then apply a suitable default.
6977 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
6978 types, return 0 for other types.
6980 2019-02-27 Joel Brobecker <brobecker@adacore.com>
6982 * NEWS: Create a new section for the next release branch.
6983 Rename the section of the current branch, now that it has
6986 2019-02-27 Joel Brobecker <brobecker@adacore.com>
6988 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
6989 * version.in: Bump version to 8.3.50.DATE-git.
6991 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
6993 * aix-thread.c (ptid_cmp): Remove unused variable.
6994 (get_signaled_thread): Likewise.
6995 (store_regs_user_thread): Likewise.
6996 (store_regs_kernel_thread): Likewise.
6997 (fetch_regs_kernel_thread): Remove shadowed variable.
6999 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
7001 * features/riscv/32bit-cpu.xml: Add register numbers.
7002 * features/riscv/32bit-fpu.c: Regenerate.
7003 * features/riscv/32bit-fpu.xml: Add register numbers.
7004 * features/riscv/64bit-cpu.xml: Add register numbers.
7005 * features/riscv/64bit-fpu.c: Regenerate.
7006 * features/riscv/64bit-fpu.xml: Add register numbers.
7008 2019-02-26 Kevin Buettner <kevinb@redhat.com>
7010 * NEWS: Mention two argument form of gdb.Value constructor.
7011 * python/py-value.c (convert_buffer_and_type_to_value): New
7013 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
7014 Add support for handling an optional second argument. Call
7015 convert_buffer_and_type_to_value as appropriate.
7016 * python/python-internal.h (Py_buffer_deleter): New struct.
7017 (Py_buffer_up): New typedef.
7019 2019-02-25 John Baldwin <jhb@FreeBSD.org>
7021 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
7022 instead of releasing ownership.
7024 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
7026 * dwarf2read.c (open_and_init_dwp_file): Call
7027 elf_numsections instead of bfd_count_sections to initialize
7028 dwp_file->num_sections.
7030 2019-02-25 Tom Tromey <tromey@adacore.com>
7032 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
7034 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
7036 * gcore.in: Add '--readnever' option when invoking GDB.
7038 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
7040 * MAINTAINERS: Update my email address.
7042 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
7044 * build-id.c (build_id_to_debug_bfd_1): New function.
7045 (build_id_to_debug_bfd): Look for separate debug file in
7048 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
7050 * gdbarch.sh: Update the copyright year range that is placed into
7053 2019-02-22 Keith Seitz <keiths@redhat.com>
7056 * linespec.c (create_sals_line_offset): Search for the default
7057 symtab's filename instead of its fullname.
7059 2019-02-21 Alan Hayward <alan.hayward@arm.com>
7061 * NEWS: Update style defaults.
7063 2019-02-21 Alan Hayward <alan.hayward@arm.com>
7065 * main.c (captured_main_1): Disable styling in batch mode.
7067 2019-02-20 Tom Tromey <tom@tromey.com>
7069 * symtab.c (symtab_symbol_info): Fix typos.
7071 2019-02-20 Tom Tromey <tromey@adacore.com>
7073 * findcmd.c (_initialize_mem_search): Use upper case for
7074 metasyntactic variables.
7076 2019-02-20 Alan Hayward <alan.hayward@arm.com>
7078 * aarch64-tdep.c (aarch64_add_reggroups): New function.
7079 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
7081 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
7083 * top.h (source_file_name): Change to std::string.
7084 * top.c (source_file_name): Likewise.
7085 (command_line_input): Adjust.
7086 * cli/cli-script.c (script_from_file): Adjust.
7088 2019-02-19 Tom Tromey <tromey@adacore.com>
7090 * ravenscar-thread.c
7091 (ravenscar_thread_target::update_thread_list): Don't call
7092 ada_build_task_list.
7093 * ada-lang.h (ada_build_task_list): Don't declare.
7094 * ada-tasks.c (struct ada_tasks_inferior_data)
7095 <task_list_valid_p>: Now bool.
7096 (read_known_tasks, ada_task_list_changed)
7097 (ada_tasks_invalidate_inferior_data): Update.
7098 (read_known_tasks_array): Return bool.
7099 (read_known_tasks_list): Likewise.
7100 (read_known_tasks): Return void.
7101 (ada_build_task_list): Now static.
7103 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
7105 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
7106 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
7108 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7110 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
7111 variant for ada_tasks_pspace_data_handle and
7112 ada_tasks_inferior_data_handle.
7113 (ada_tasks_pspace_data_cleanup): New function.
7114 (ada_tasks_inferior_data_cleanup): New function.
7116 2019-02-17 Tom Tromey <tom@tromey.com>
7118 * macrotab.h (macro_source_fullname): Return a std::string.
7119 * macrotab.c (macro_include, check_for_redefinition)
7120 (macro_undef, macro_lookup_definition, foreach_macro)
7121 (foreach_macro_in_scope): Update.
7122 (macro_source_fullname): Return a std::string.
7123 * macrocmd.c (show_pp_source_pos): Update.
7125 2019-02-17 Tom Tromey <tom@tromey.com>
7127 * macrocmd.c (show_pp_source_pos): Style the file names.
7129 2019-02-17 Tom Tromey <tom@tromey.com>
7132 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
7134 2019-02-17 Tom Tromey <tom@tromey.com>
7136 * ada-lang.c (user_select_syms): Use filtered printing.
7137 * utils.c (wrap_style): New global.
7138 (desired_style): Remove.
7139 (emit_style_escape): Add stream parameter.
7140 (set_output_style, reset_terminal_style, prompt_for_continue):
7142 (flush_wrap_buffer): Only flush gdb_stdout.
7143 (wrap_here): Set wrap_style.
7144 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
7145 treat escape sequences as a character. Change when wrap buffer is
7147 (fputs_styled): Do not set the output style when the default is
7149 * ui-style.h (struct ui_file_style) <is_default>: New method.
7150 * source.c (print_source_lines_base): Emit escape sequences in one
7153 2019-02-17 Joel Brobecker <brobecker@adacore.com>
7155 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
7156 integers and enumeration types.
7158 2019-02-17 Joel Brobecker <brobecker@adacore.com>
7160 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
7161 instead of lookup_symbol_in_language
7162 (do_exact_match): New function.
7163 (ada_get_symbol_name_matcher): Return do_exact_match when
7164 doing a verbatim match.
7166 2019-02-15 Tom Tromey <tromey@adacore.com>
7168 * ravenscar-thread.c (ravenscar_thread_target::resume)
7169 (ravenscar_thread_target::wait): Special case wildcard requests.
7171 2019-02-15 Tom Tromey <tromey@adacore.com>
7173 * ravenscar-thread.c (base_ptid): Remove.
7174 (struct ravenscar_thread_target) <close>: New method.
7175 <m_base_ptid>: New member.
7176 <update_inferior_ptid, active_task, task_is_currently_active,
7177 runtime_initialized>: Declare methods.
7178 <ravenscar_thread_target>: Add constructor.
7179 (ravenscar_thread_target::task_is_currently_active)
7180 (ravenscar_thread_target::update_inferior_ptid)
7181 (ravenscar_runtime_initialized): Rename. Now methods.
7182 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
7183 (ravenscar_thread_target::update_thread_list): Update.
7184 (ravenscar_thread_target::active_task): Now method.
7185 (ravenscar_thread_target::store_registers)
7186 (ravenscar_thread_target::prepare_to_store)
7187 (ravenscar_thread_target::prepare_to_store)
7188 (ravenscar_thread_target::mourn_inferior): Update.
7189 (ravenscar_inferior_created): Use "new" to create target.
7190 (ravenscar_thread_target::get_ada_task_ptid): Update.
7191 (_initialize_ravenscar): Don't initialize base_ptid.
7192 (ravenscar_ops): Remove global.
7194 2019-02-15 Tom Tromey <tromey@adacore.com>
7196 * target.h (push_target): Declare new overload.
7197 * target.c (push_target): New overload, taking an rvalue reference.
7198 * remote.c (remote_target::open_1): Use push_target overload.
7199 * corelow.c (core_target_open): Use push_target overload.
7201 2019-02-15 Tom Tromey <tromey@adacore.com>
7203 * ravenscar-thread.c (is_ravenscar_task)
7204 (ravenscar_task_is_currently_active): Return bool.
7205 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
7206 (_initialize_ravenscar): Remove "(void)".
7207 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
7210 2019-02-15 Tom Tromey <tromey@adacore.com>
7212 * ravenscar-thread.c (ravenscar_runtime_initializer)
7213 (has_ravenscar_runtime, get_running_thread_id)
7214 (ravenscar_thread_target::resume): Fix indentation.
7216 2019-02-15 Tom Tromey <tromey@adacore.com>
7218 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
7219 from ravenscar_arch_ops.
7220 (sparc_ravenscar_ops::fetch_registers)
7221 (sparc_ravenscar_ops::store_registers): Now methods.
7222 (sparc_ravenscar_prepare_to_store): Remove.
7223 (sparc_ravenscar_ops): Redefine.
7224 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
7225 methods and destructor. Remove members.
7226 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
7227 (ravenscar_thread_target::store_registers)
7228 (ravenscar_thread_target::prepare_to_store): Update.
7229 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
7231 (struct ppc_ravenscar_powerpc_ops): Derive from
7233 (ppc_ravenscar_powerpc_ops::fetch_registers)
7234 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
7235 (ppc_ravenscar_powerpc_ops): Redefine.
7236 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
7237 (ppc_ravenscar_e500_ops::fetch_registers)
7238 (ppc_ravenscar_e500_ops::store_registers): Now methods.
7239 (ppc_ravenscar_e500_ops): Redefine.
7240 * aarch64-ravenscar-thread.c
7241 (aarch64_ravenscar_generic_prepare_to_store): Remove.
7242 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
7243 (aarch64_ravenscar_fetch_registers)
7244 (aarch64_ravenscar_store_registers): Now methods.
7245 (aarch64_ravenscar_ops): Redefine.
7247 2019-02-15 Tom Tromey <tromey@adacore.com>
7249 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
7250 (ravenscar_thread_target::stopped_by_hw_breakpoint)
7251 (ravenscar_thread_target::stopped_by_watchpoint)
7252 (ravenscar_thread_target::stopped_data_address)
7253 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
7255 2019-02-15 Tom Tromey <tromey@adacore.com>
7257 * ravenscar-thread.c: Fix some typos.
7259 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7260 Tom Tromey <tromey@adacore.com>
7262 * ada-lang.c (ada_exception_sal): Change addr_string to a
7264 (create_ada_exception_catchpoint): Update.
7266 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7267 Tom Tromey <tromey@adacore.com>
7269 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
7270 (bp_location_ops): Remove.
7271 (base_breakpoint_allocate_location): Update.
7272 (free_bp_location): Update.
7273 * ada-lang.c (class ada_catchpoint_location)
7274 <ada_catchpoint_location>: Remove ops parameter.
7275 (ada_catchpoint_location_dtor): Remove.
7276 (ada_catchpoint_location_ops): Remove.
7277 (allocate_location_exception): Update.
7278 * breakpoint.h (struct bp_location_ops): Remove.
7279 (class bp_location) <bp_location>: Remove bp_location_ops
7281 <~bp_location>: Add destructor.
7284 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
7285 Pedro Alves <palves@redhat.com>
7287 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
7290 2019-02-14 David Michael <fedora.dm0@gmail.com>
7291 Samuel Thibault <samuel.thibault@gnu.org>
7292 Thomas Schwinge <thomas@codesourcery.com>
7294 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
7295 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
7297 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
7299 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
7300 (check_empty): Use "const char *".
7302 * gnu-nat.c (gnu_nat_target::detach): Instead of
7303 'detach_inferior (pid)' call
7304 'detach_inferior (find_inferior_pid (pid))'.
7306 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
7307 'nat/fork-inferior.o'.
7308 * gnu-nat.c: #include "nat/fork-inferior.h".
7310 * gnu-nat.c (gnu_nat_target::detach): Instead of
7311 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
7312 * gnu-nat.h: #include "inf-child.h".
7313 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
7314 'i386_gnu_nat_target::fetch_registers'.
7315 (gnu_store_registers): Rename/move to
7316 'i386_gnu_nat_target::store_registers'.
7318 * config/i386/nm-i386gnu.h: Don't "#include" any files.
7319 * gnu-nat.h (mach_thread_info): New function.
7320 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
7322 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
7324 2019-02-14 Frederic Konrad <konrad@adacore.com>
7326 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
7328 2019-02-14 Joel Brobecker <brobecker@adacore.com>
7330 * windows-nat.c (windows_add_thread): Add new parameter
7331 "main_thread_p" with default value set to false. Update
7332 function documentation as well as all callers.
7333 (windows_delete_thread): Likewise.
7334 (fake_create_process): Update call to windows_add_thread.
7335 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
7336 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
7337 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
7338 call to windows_delete_thread.
7340 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
7342 * MAINTAINERS: Add Andrew Burgess as global maintainer.
7344 2019-02-12 John Baldwin <jhb@FreeBSD.org>
7346 * symfile.c (find_separate_debug_file): Use canonical path of
7347 sysroot with child_path instead of gdb_sysroot if it is valid.
7349 2019-02-12 John Baldwin <jhb@FreeBSD.org>
7351 * symfile.c (find_separate_debug_file): Use child_path to
7352 determine if an object file is under a sysroot.
7354 2019-02-12 John Baldwin <jhb@FreeBSD.org>
7356 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7357 unittests/child-path-selftests.c.
7358 * common/pathstuff.c (child_path): New function.
7359 * common/pathstuff.h (child_path): New prototype.
7360 * unittests/child-path-selftests.c: New file.
7362 2019-02-12 John Baldwin <jhb@FreeBSD.org>
7364 * symfile.c (find_separate_debug_file): Look for separate debug
7365 files in debug directories under the sysroot.
7367 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7369 * symtab.h (struct minimal_symbol data_p): New const method.
7370 (struct minimal_symbol text_p): Likewise.
7371 * symtab.c (output_source_filename): Use file name style
7373 (print_symbol_info): Likewise.
7374 (print_msymbol_info): Use address style to print addresses.
7375 Use function name style to print executable text symbols.
7376 (expand_symtab_containing_pc): Use data_p.
7377 (find_pc_sect_compunit_symtab): Likewise.
7379 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7381 * breakpoint.c (describe_other_breakpoints): Use address style
7383 (say_where): Likewise.
7385 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7387 * ada-typeprint.c (print_func_type): Print function name
7388 style to print function name.
7389 * c-typeprint.c (c_print_type_1): Likewise.
7391 2019-02-11 Alan Hayward <alan.hayward@arm.com>
7393 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
7396 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7398 * c-exp.y (direct_abs_decl): Use emplace_back to record the
7401 2019-02-10 Joel Brobecker <brobecker@adacore.com>
7403 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
7404 TYPE_CODE_REF types.
7406 2019-02-08 Jim Wilson <jimw@sifive.com>
7408 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
7409 (riscv_linux_fregset): New.
7410 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
7412 2019-02-07 Tom Tromey <tom@tromey.com>
7414 * thread.c (thread_cancel_execution_command): Update.
7415 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
7417 (struct thread_fsm_ops): Remove.
7418 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
7419 (thread_fsm_should_stop, thread_fsm_return_value)
7420 (thread_fsm_set_finished, thread_fsm_finished_p)
7421 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
7423 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
7424 * infrun.c (clear_proceed_status_thread)
7425 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
7426 (print_stop_event): Update.
7427 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
7429 (step_command_fsm_ops): Remove.
7430 (new_step_command_fsm): Remove.
7432 (step_command_fsm::should_stop): Rename from
7433 step_command_fsm_should_stop.
7434 (step_command_fsm::clean_up): Rename from
7435 step_command_fsm_clean_up.
7436 (step_command_fsm::do_async_reply_reason): Rename from
7437 step_command_fsm_async_reply_reason.
7438 (struct until_next_fsm): Inherit from thread_fsm. Add
7440 (until_next_fsm_ops): Remove.
7441 (new_until_next_fsm): Remove.
7442 (until_next_fsm::should_stop): Rename from
7443 until_next_fsm_should_stop.
7444 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
7445 (until_next_fsm::do_async_reply_reason): Rename from
7446 until_next_fsm_async_reply_reason.
7447 (struct finish_command_fsm): Inherit from thread_fsm. Add
7448 constructor. Change type of breakpoint.
7449 (finish_command_fsm_ops): Remove.
7450 (new_finish_command_fsm): Remove.
7451 (finish_command_fsm::should_stop): Rename from
7452 finish_command_fsm_should_stop.
7453 (finish_command_fsm::clean_up): Rename from
7454 finish_command_fsm_clean_up.
7455 (finish_command_fsm::return_value): Rename from
7456 finish_command_fsm_return_value.
7457 (finish_command_fsm::do_async_reply_reason): Rename from
7458 finish_command_fsm_async_reply_reason.
7459 (finish_command): Update.
7460 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
7462 (call_thread_fsm_ops): Remove.
7463 (call_thread_fsm::call_thread_fsm): Rename from
7464 new_call_thread_fsm.
7465 (call_thread_fsm::should_stop): Rename from
7466 call_thread_fsm_should_stop.
7467 (call_thread_fsm::should_notify_stop): Rename from
7468 call_thread_fsm_should_notify_stop.
7469 (run_inferior_call, call_function_by_hand_dummy): Update.
7470 * cli/cli-interp.c (should_print_stop_to_console): Update.
7471 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
7472 Add constructor. Change type of location_breakpoint,
7474 (until_break_fsm_ops): Remove.
7475 (new_until_break_fsm): Remove.
7476 (until_break_fsm::should_stop): Rename from
7477 until_break_fsm_should_stop.
7478 (until_break_fsm::clean_up): Rename from
7479 until_break_fsm_clean_up.
7480 (until_break_fsm::do_async_reply_reason): Rename from
7481 until_break_fsm_async_reply_reason.
7482 (until_break_command): Update.
7483 * thread-fsm.c: Remove.
7484 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
7486 2019-02-07 Tom Tromey <tom@tromey.com>
7488 * yy-remap.h: Add include guard.
7489 * xtensa-tdep.h: Add include guard.
7490 * xcoffread.h: Rename include guard.
7491 * varobj-iter.h: Add include guard.
7492 * tui/tui.h: Rename include guard.
7493 * tui/tui-winsource.h: Rename include guard.
7494 * tui/tui-wingeneral.h: Rename include guard.
7495 * tui/tui-windata.h: Rename include guard.
7496 * tui/tui-win.h: Rename include guard.
7497 * tui/tui-stack.h: Rename include guard.
7498 * tui/tui-source.h: Rename include guard.
7499 * tui/tui-regs.h: Rename include guard.
7500 * tui/tui-out.h: Rename include guard.
7501 * tui/tui-layout.h: Rename include guard.
7502 * tui/tui-io.h: Rename include guard.
7503 * tui/tui-hooks.h: Rename include guard.
7504 * tui/tui-file.h: Rename include guard.
7505 * tui/tui-disasm.h: Rename include guard.
7506 * tui/tui-data.h: Rename include guard.
7507 * tui/tui-command.h: Rename include guard.
7508 * tic6x-tdep.h: Add include guard.
7509 * target/waitstatus.h: Rename include guard.
7510 * target/wait.h: Rename include guard.
7511 * target/target.h: Rename include guard.
7512 * target/resume.h: Rename include guard.
7513 * target-float.h: Rename include guard.
7514 * stabsread.h: Add include guard.
7515 * rs6000-tdep.h: Add include guard.
7516 * riscv-fbsd-tdep.h: Add include guard.
7517 * regformats/regdef.h: Rename include guard.
7518 * record.h: Rename include guard.
7519 * python/python.h: Rename include guard.
7520 * python/python-internal.h: Rename include guard.
7521 * python/py-stopevent.h: Rename include guard.
7522 * python/py-ref.h: Rename include guard.
7523 * python/py-record.h: Rename include guard.
7524 * python/py-record-full.h: Rename include guard.
7525 * python/py-record-btrace.h: Rename include guard.
7526 * python/py-instruction.h: Rename include guard.
7527 * python/py-events.h: Rename include guard.
7528 * python/py-event.h: Rename include guard.
7529 * procfs.h: Add include guard.
7530 * proc-utils.h: Add include guard.
7531 * p-lang.h: Add include guard.
7532 * or1k-tdep.h: Rename include guard.
7533 * observable.h: Rename include guard.
7534 * nto-tdep.h: Rename include guard.
7535 * nat/x86-linux.h: Rename include guard.
7536 * nat/x86-linux-dregs.h: Rename include guard.
7537 * nat/x86-gcc-cpuid.h: Add include guard.
7538 * nat/x86-dregs.h: Rename include guard.
7539 * nat/x86-cpuid.h: Rename include guard.
7540 * nat/ppc-linux.h: Rename include guard.
7541 * nat/mips-linux-watch.h: Rename include guard.
7542 * nat/linux-waitpid.h: Rename include guard.
7543 * nat/linux-ptrace.h: Rename include guard.
7544 * nat/linux-procfs.h: Rename include guard.
7545 * nat/linux-osdata.h: Rename include guard.
7546 * nat/linux-nat.h: Rename include guard.
7547 * nat/linux-namespaces.h: Rename include guard.
7548 * nat/linux-btrace.h: Rename include guard.
7549 * nat/glibc_thread_db.h: Rename include guard.
7550 * nat/gdb_thread_db.h: Rename include guard.
7551 * nat/gdb_ptrace.h: Rename include guard.
7552 * nat/fork-inferior.h: Rename include guard.
7553 * nat/amd64-linux-siginfo.h: Rename include guard.
7554 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
7555 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
7556 * nat/aarch64-linux.h: Rename include guard.
7557 * nat/aarch64-linux-hw-point.h: Rename include guard.
7558 * mn10300-tdep.h: Add include guard.
7559 * mips-linux-tdep.h: Add include guard.
7560 * mi/mi-parse.h: Rename include guard.
7561 * mi/mi-out.h: Rename include guard.
7562 * mi/mi-main.h: Rename include guard.
7563 * mi/mi-interp.h: Rename include guard.
7564 * mi/mi-getopt.h: Rename include guard.
7565 * mi/mi-console.h: Rename include guard.
7566 * mi/mi-common.h: Rename include guard.
7567 * mi/mi-cmds.h: Rename include guard.
7568 * mi/mi-cmd-break.h: Rename include guard.
7569 * m2-lang.h: Add include guard.
7570 * location.h: Rename include guard.
7571 * linux-record.h: Rename include guard.
7572 * linux-nat.h: Add include guard.
7573 * linux-fork.h: Add include guard.
7574 * i386-darwin-tdep.h: Rename include guard.
7575 * hppa-linux-offsets.h: Add include guard.
7576 * guile/guile.h: Rename include guard.
7577 * guile/guile-internal.h: Rename include guard.
7578 * gnu-nat.h: Rename include guard.
7579 * gdb-stabs.h: Rename include guard.
7580 * frv-tdep.h: Add include guard.
7581 * f-lang.h: Add include guard.
7582 * event-loop.h: Add include guard.
7583 * darwin-nat.h: Rename include guard.
7584 * cp-abi.h: Rename include guard.
7585 * config/sparc/nm-sol2.h: Rename include guard.
7586 * config/nm-nto.h: Rename include guard.
7587 * config/nm-linux.h: Add include guard.
7588 * config/i386/nm-i386gnu.h: Rename include guard.
7589 * config/djgpp/nl_types.h: Rename include guard.
7590 * config/djgpp/langinfo.h: Rename include guard.
7591 * compile/gcc-cp-plugin.h: Add include guard.
7592 * compile/gcc-c-plugin.h: Add include guard.
7593 * compile/compile.h: Rename include guard.
7594 * compile/compile-object-run.h: Rename include guard.
7595 * compile/compile-object-load.h: Rename include guard.
7596 * compile/compile-internal.h: Rename include guard.
7597 * compile/compile-cplus.h: Rename include guard.
7598 * compile/compile-c.h: Rename include guard.
7599 * common/xml-utils.h: Rename include guard.
7600 * common/x86-xstate.h: Rename include guard.
7601 * common/version.h: Rename include guard.
7602 * common/vec.h: Rename include guard.
7603 * common/tdesc.h: Rename include guard.
7604 * common/selftest.h: Rename include guard.
7605 * common/scoped_restore.h: Rename include guard.
7606 * common/scoped_mmap.h: Rename include guard.
7607 * common/scoped_fd.h: Rename include guard.
7608 * common/safe-iterator.h: Rename include guard.
7609 * common/run-time-clock.h: Rename include guard.
7610 * common/refcounted-object.h: Rename include guard.
7611 * common/queue.h: Rename include guard.
7612 * common/ptid.h: Rename include guard.
7613 * common/print-utils.h: Rename include guard.
7614 * common/preprocessor.h: Rename include guard.
7615 * common/pathstuff.h: Rename include guard.
7616 * common/observable.h: Rename include guard.
7617 * common/netstuff.h: Rename include guard.
7618 * common/job-control.h: Rename include guard.
7619 * common/host-defs.h: Rename include guard.
7620 * common/gdb_wait.h: Rename include guard.
7621 * common/gdb_vecs.h: Rename include guard.
7622 * common/gdb_unlinker.h: Rename include guard.
7623 * common/gdb_unique_ptr.h: Rename include guard.
7624 * common/gdb_tilde_expand.h: Rename include guard.
7625 * common/gdb_sys_time.h: Rename include guard.
7626 * common/gdb_string_view.h: Rename include guard.
7627 * common/gdb_splay_tree.h: Rename include guard.
7628 * common/gdb_setjmp.h: Rename include guard.
7629 * common/gdb_ref_ptr.h: Rename include guard.
7630 * common/gdb_optional.h: Rename include guard.
7631 * common/gdb_locale.h: Rename include guard.
7632 * common/gdb_assert.h: Rename include guard.
7633 * common/filtered-iterator.h: Rename include guard.
7634 * common/filestuff.h: Rename include guard.
7635 * common/fileio.h: Rename include guard.
7636 * common/environ.h: Rename include guard.
7637 * common/common-utils.h: Rename include guard.
7638 * common/common-types.h: Rename include guard.
7639 * common/common-regcache.h: Rename include guard.
7640 * common/common-inferior.h: Rename include guard.
7641 * common/common-gdbthread.h: Rename include guard.
7642 * common/common-exceptions.h: Rename include guard.
7643 * common/common-defs.h: Rename include guard.
7644 * common/common-debug.h: Rename include guard.
7645 * common/cleanups.h: Rename include guard.
7646 * common/buffer.h: Rename include guard.
7647 * common/btrace-common.h: Rename include guard.
7648 * common/break-common.h: Rename include guard.
7649 * cli/cli-utils.h: Rename include guard.
7650 * cli/cli-style.h: Rename include guard.
7651 * cli/cli-setshow.h: Rename include guard.
7652 * cli/cli-script.h: Rename include guard.
7653 * cli/cli-interp.h: Rename include guard.
7654 * cli/cli-decode.h: Rename include guard.
7655 * cli/cli-cmds.h: Rename include guard.
7656 * charset-list.h: Add include guard.
7657 * buildsym-legacy.h: Rename include guard.
7658 * bfin-tdep.h: Add include guard.
7659 * ax.h: Rename include guard.
7660 * arm-linux-tdep.h: Add include guard.
7661 * arm-fbsd-tdep.h: Add include guard.
7662 * arch/xtensa.h: Rename include guard.
7663 * arch/tic6x.h: Add include guard.
7664 * arch/i386.h: Add include guard.
7665 * arch/arm.h: Rename include guard.
7666 * arch/arm-linux.h: Rename include guard.
7667 * arch/arm-get-next-pcs.h: Rename include guard.
7668 * arch/amd64.h: Add include guard.
7669 * arch/aarch64-insn.h: Rename include guard.
7670 * arch-utils.h: Rename include guard.
7671 * annotate.h: Add include guard.
7672 * amd64-darwin-tdep.h: Rename include guard.
7673 * aarch64-linux-tdep.h: Add include guard.
7674 * aarch64-fbsd-tdep.h: Add include guard.
7675 * aarch32-linux-nat.h: Add include guard.
7677 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7679 * macrotab.c (macro_define_internal): New function that
7680 factorizes macro_define_object_internal and macro_define_function
7682 (macro_define_object_internal): Use macro_define_internal.
7683 (macro_define_function): Likewise.
7685 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7687 * macrocmd.c (extract_identifier): Return
7688 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
7691 2019-02-06 John Baldwin <jhb@FreeBSD.org>
7693 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
7695 2019-02-05 Tom Tromey <tom@tromey.com>
7697 * target.c (target_stack::unpush): Move assertion earlier.
7699 2019-01-30 Tom Tromey <tom@tromey.com>
7702 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
7703 (gdbpy_parse_and_eval): Likewise.
7704 * python/python-internal.h (gdbpy_allow_threads): New class.
7706 2019-01-28 John Baldwin <jhb@FreeBSD.org>
7708 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
7709 (aarch64_fbsd_fpregmap): Move earlier.
7710 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
7711 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
7712 instead of individual calls to trad_frame_set_reg_addr.
7713 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
7715 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
7716 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
7717 instead of individual calls to trad_frame_set_reg_addr.
7719 2019-01-28 Alan Hayward <alan.hayward@arm.com>
7721 * CONTRIBUTE: Replace contribution list with wiki link.
7723 2019-01-25 Tom Tromey <tom@tromey.com>
7725 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
7727 2019-01-25 Tom Tromey <tom@tromey.com>
7729 * xtensa-linux-nat.c: Fix common/ includes.
7730 * xml-support.h: Fix common/ includes.
7731 * xml-support.c: Fix common/ includes.
7732 * x86-linux-nat.c: Fix common/ includes.
7733 * windows-nat.c: Fix common/ includes.
7734 * varobj.h: Fix common/ includes.
7735 * varobj.c: Fix common/ includes.
7736 * value.c: Fix common/ includes.
7737 * valops.c: Fix common/ includes.
7738 * utils.c: Fix common/ includes.
7739 * unittests/xml-utils-selftests.c: Fix common/ includes.
7740 * unittests/utils-selftests.c: Fix common/ includes.
7741 * unittests/unpack-selftests.c: Fix common/ includes.
7742 * unittests/tracepoint-selftests.c: Fix common/ includes.
7743 * unittests/style-selftests.c: Fix common/ includes.
7744 * unittests/string_view-selftests.c: Fix common/ includes.
7745 * unittests/scoped_restore-selftests.c: Fix common/ includes.
7746 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
7747 * unittests/scoped_fd-selftests.c: Fix common/ includes.
7748 * unittests/rsp-low-selftests.c: Fix common/ includes.
7749 * unittests/parse-connection-spec-selftests.c: Fix common/
7751 * unittests/optional-selftests.c: Fix common/ includes.
7752 * unittests/offset-type-selftests.c: Fix common/ includes.
7753 * unittests/observable-selftests.c: Fix common/ includes.
7754 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
7755 * unittests/memrange-selftests.c: Fix common/ includes.
7756 * unittests/memory-map-selftests.c: Fix common/ includes.
7757 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
7758 * unittests/function-view-selftests.c: Fix common/ includes.
7759 * unittests/environ-selftests.c: Fix common/ includes.
7760 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
7761 * unittests/common-utils-selftests.c: Fix common/ includes.
7762 * unittests/cli-utils-selftests.c: Fix common/ includes.
7763 * unittests/array-view-selftests.c: Fix common/ includes.
7764 * ui-file.c: Fix common/ includes.
7765 * tui/tui-io.c: Fix common/ includes.
7766 * tracepoint.h: Fix common/ includes.
7767 * tracepoint.c: Fix common/ includes.
7768 * tracefile-tfile.c: Fix common/ includes.
7769 * top.h: Fix common/ includes.
7770 * top.c: Fix common/ includes.
7771 * thread.c: Fix common/ includes.
7772 * target/waitstatus.h: Fix common/ includes.
7773 * target/waitstatus.c: Fix common/ includes.
7774 * target.h: Fix common/ includes.
7775 * target.c: Fix common/ includes.
7776 * target-memory.c: Fix common/ includes.
7777 * target-descriptions.c: Fix common/ includes.
7778 * symtab.h: Fix common/ includes.
7779 * symfile.c: Fix common/ includes.
7780 * stap-probe.c: Fix common/ includes.
7781 * spu-linux-nat.c: Fix common/ includes.
7782 * sparc-nat.c: Fix common/ includes.
7783 * source.c: Fix common/ includes.
7784 * solib.c: Fix common/ includes.
7785 * solib-target.c: Fix common/ includes.
7786 * ser-unix.c: Fix common/ includes.
7787 * ser-tcp.c: Fix common/ includes.
7788 * ser-pipe.c: Fix common/ includes.
7789 * ser-base.c: Fix common/ includes.
7790 * selftest-arch.c: Fix common/ includes.
7791 * s12z-tdep.c: Fix common/ includes.
7792 * rust-exp.y: Fix common/ includes.
7793 * rs6000-aix-tdep.c: Fix common/ includes.
7794 * riscv-tdep.c: Fix common/ includes.
7795 * remote.c: Fix common/ includes.
7796 * remote-notif.h: Fix common/ includes.
7797 * remote-fileio.h: Fix common/ includes.
7798 * remote-fileio.c: Fix common/ includes.
7799 * regcache.h: Fix common/ includes.
7800 * regcache.c: Fix common/ includes.
7801 * record-btrace.c: Fix common/ includes.
7802 * python/python.c: Fix common/ includes.
7803 * python/py-type.c: Fix common/ includes.
7804 * python/py-inferior.c: Fix common/ includes.
7805 * progspace.h: Fix common/ includes.
7806 * producer.c: Fix common/ includes.
7807 * procfs.c: Fix common/ includes.
7808 * proc-api.c: Fix common/ includes.
7809 * printcmd.c: Fix common/ includes.
7810 * ppc-linux-nat.c: Fix common/ includes.
7811 * parser-defs.h: Fix common/ includes.
7812 * osdata.c: Fix common/ includes.
7813 * obsd-nat.c: Fix common/ includes.
7814 * nat/x86-linux.c: Fix common/ includes.
7815 * nat/x86-linux-dregs.c: Fix common/ includes.
7816 * nat/x86-dregs.h: Fix common/ includes.
7817 * nat/x86-dregs.c: Fix common/ includes.
7818 * nat/ppc-linux.c: Fix common/ includes.
7819 * nat/mips-linux-watch.h: Fix common/ includes.
7820 * nat/mips-linux-watch.c: Fix common/ includes.
7821 * nat/linux-waitpid.c: Fix common/ includes.
7822 * nat/linux-ptrace.h: Fix common/ includes.
7823 * nat/linux-ptrace.c: Fix common/ includes.
7824 * nat/linux-procfs.c: Fix common/ includes.
7825 * nat/linux-personality.c: Fix common/ includes.
7826 * nat/linux-osdata.c: Fix common/ includes.
7827 * nat/linux-namespaces.c: Fix common/ includes.
7828 * nat/linux-btrace.h: Fix common/ includes.
7829 * nat/linux-btrace.c: Fix common/ includes.
7830 * nat/fork-inferior.c: Fix common/ includes.
7831 * nat/amd64-linux-siginfo.c: Fix common/ includes.
7832 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
7833 * nat/aarch64-linux.c: Fix common/ includes.
7834 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
7835 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
7836 * namespace.h: Fix common/ includes.
7837 * mips-linux-tdep.c: Fix common/ includes.
7838 * minsyms.c: Fix common/ includes.
7839 * mi/mi-parse.h: Fix common/ includes.
7840 * mi/mi-main.c: Fix common/ includes.
7841 * mi/mi-cmd-env.c: Fix common/ includes.
7842 * memrange.h: Fix common/ includes.
7843 * memattr.c: Fix common/ includes.
7844 * maint.h: Fix common/ includes.
7845 * maint.c: Fix common/ includes.
7846 * main.c: Fix common/ includes.
7847 * machoread.c: Fix common/ includes.
7848 * location.c: Fix common/ includes.
7849 * linux-thread-db.c: Fix common/ includes.
7850 * linux-nat.c: Fix common/ includes.
7851 * linux-fork.c: Fix common/ includes.
7852 * inline-frame.c: Fix common/ includes.
7853 * infrun.c: Fix common/ includes.
7854 * inflow.c: Fix common/ includes.
7855 * inferior.h: Fix common/ includes.
7856 * inferior.c: Fix common/ includes.
7857 * infcmd.c: Fix common/ includes.
7858 * inf-ptrace.c: Fix common/ includes.
7859 * inf-child.c: Fix common/ includes.
7860 * ia64-linux-nat.c: Fix common/ includes.
7861 * i387-tdep.c: Fix common/ includes.
7862 * i386-tdep.c: Fix common/ includes.
7863 * i386-linux-tdep.c: Fix common/ includes.
7864 * i386-linux-nat.c: Fix common/ includes.
7865 * i386-go32-tdep.c: Fix common/ includes.
7866 * i386-fbsd-tdep.c: Fix common/ includes.
7867 * i386-fbsd-nat.c: Fix common/ includes.
7868 * guile/scm-type.c: Fix common/ includes.
7869 * guile/guile.c: Fix common/ includes.
7870 * go32-nat.c: Fix common/ includes.
7871 * gnu-nat.c: Fix common/ includes.
7872 * gdbthread.h: Fix common/ includes.
7873 * gdbarch-selftests.c: Fix common/ includes.
7874 * gdb_usleep.c: Fix common/ includes.
7875 * gdb_select.h: Fix common/ includes.
7876 * gdb_bfd.c: Fix common/ includes.
7877 * gcore.c: Fix common/ includes.
7878 * fork-child.c: Fix common/ includes.
7879 * findvar.c: Fix common/ includes.
7880 * fbsd-nat.c: Fix common/ includes.
7881 * event-top.c: Fix common/ includes.
7882 * event-loop.c: Fix common/ includes.
7883 * dwarf2read.c: Fix common/ includes.
7884 * dwarf2loc.c: Fix common/ includes.
7885 * dwarf2-frame.c: Fix common/ includes.
7886 * dwarf-index-cache.c: Fix common/ includes.
7887 * dtrace-probe.c: Fix common/ includes.
7888 * disasm-selftests.c: Fix common/ includes.
7889 * defs.h: Fix common/ includes.
7890 * csky-tdep.c: Fix common/ includes.
7891 * cp-valprint.c: Fix common/ includes.
7892 * cp-support.h: Fix common/ includes.
7893 * cp-support.c: Fix common/ includes.
7894 * corelow.c: Fix common/ includes.
7895 * completer.h: Fix common/ includes.
7896 * completer.c: Fix common/ includes.
7897 * compile/compile.c: Fix common/ includes.
7898 * compile/compile-loc2c.c: Fix common/ includes.
7899 * compile/compile-cplus-types.c: Fix common/ includes.
7900 * compile/compile-cplus-symbols.c: Fix common/ includes.
7901 * command.h: Fix common/ includes.
7902 * cli/cli-dump.c: Fix common/ includes.
7903 * cli/cli-cmds.c: Fix common/ includes.
7904 * charset.c: Fix common/ includes.
7905 * build-id.c: Fix common/ includes.
7906 * btrace.h: Fix common/ includes.
7907 * btrace.c: Fix common/ includes.
7908 * breakpoint.h: Fix common/ includes.
7909 * breakpoint.c: Fix common/ includes.
7911 (enum agent_op): Fix common/ includes.
7912 * ax-general.c (struct aop_map): Fix common/ includes.
7913 * ax-gdb.c: Fix common/ includes.
7914 * auxv.c: Fix common/ includes.
7915 * auto-load.c: Fix common/ includes.
7916 * arm-tdep.c: Fix common/ includes.
7917 * arch/riscv.c: Fix common/ includes.
7918 * arch/ppc-linux-common.c: Fix common/ includes.
7919 * arch/i386.c: Fix common/ includes.
7920 * arch/arm.c: Fix common/ includes.
7921 * arch/arm-linux.c: Fix common/ includes.
7922 * arch/arm-get-next-pcs.c: Fix common/ includes.
7923 * arch/amd64.c: Fix common/ includes.
7924 * arch/aarch64.c: Fix common/ includes.
7925 * arch/aarch64-insn.c: Fix common/ includes.
7926 * arch-utils.c: Fix common/ includes.
7927 * amd64-windows-tdep.c: Fix common/ includes.
7928 * amd64-tdep.c: Fix common/ includes.
7929 * amd64-sol2-tdep.c: Fix common/ includes.
7930 * amd64-obsd-tdep.c: Fix common/ includes.
7931 * amd64-nbsd-tdep.c: Fix common/ includes.
7932 * amd64-linux-tdep.c: Fix common/ includes.
7933 * amd64-linux-nat.c: Fix common/ includes.
7934 * amd64-fbsd-tdep.c: Fix common/ includes.
7935 * amd64-fbsd-nat.c: Fix common/ includes.
7936 * amd64-dicos-tdep.c: Fix common/ includes.
7937 * amd64-darwin-tdep.c: Fix common/ includes.
7938 * agent.c: Fix common/ includes.
7939 * ada-lang.h: Fix common/ includes.
7940 * ada-lang.c: Fix common/ includes.
7941 * aarch64-tdep.c: Fix common/ includes.
7943 2019-01-25 Tom Tromey <tom@tromey.com>
7945 * common/create-version.sh: Use common/version.h.
7947 2019-01-24 Pedro Alves <palves@redhat.com>
7949 * infrun.c (signal_stop, signal_print, signal_program)
7950 (signal_catch, signal_pass): Now arrays instead of pointers.
7951 (update_signals_program_target, do_target_resume)
7952 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
7953 * linux-nat.c (linux_nat_target::pass_signals)
7954 (linux_nat_target::create_inferior, linux_nat_target::attach):
7956 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
7957 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
7958 * procfs.c (procfs_target::pass_signals): Adjust.
7959 * record-full.c (record_full_target::resume): Adjust.
7960 * remote.c (remote_target::pass_signals)
7961 (remote_target::program_signals): Adjust.
7962 * target-debug.h (target_debug_print_signals): Now takes a
7963 gdb::array_view as parameter. Adjust.
7964 * target.h (target_ops) <pass_signals, program_signals>: Replace
7965 pointer and length parameters with gdb::array_view.
7966 (target_pass_signals, target_program_signals): Likewise.
7967 * target-delegates.c: Regenerate.
7969 2019-01-24 Pedro Alves <palves@redhat.com>
7971 * common/forward-scope-exit.h
7972 (forward_scope_exit::forward_scope_exit): Pass arguments to
7973 m_bind_function directly, instead of creating a std::bind and
7976 2019-01-24 Alan Hayward <alan.hayward@arm.com>
7978 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
7980 (pass_in_v_vfp_candidate): Likewise.
7982 2019-01-23 Tom Tromey <tom@tromey.com>
7983 Pedro Alves <palves@redhat.com>
7985 * regcache.c (class regcache_invalidator): Remove.
7986 (regcache::raw_write): Use make_scope_exit.
7988 2019-01-23 Tom Tromey <tom@tromey.com>
7990 * ui-out.h (class ui_out_emit_type): Update comment.
7992 2019-01-23 Tom Tromey <tom@tromey.com>
7994 * infrun.c (fetch_inferior_event): Update comment.
7996 2019-01-23 Tom Tromey <tom@tromey.com>
7997 Pedro Alves <palves@redhat.com>
7999 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
8001 (fetch_inferior_event): Use SCOPE_EXIT.
8004 2019-01-23 Tom Tromey <tom@tromey.com>
8005 Pedro Alves <palves@redhat.com>
8007 * infrun.c (disable_thread_events): Delete.
8008 (stop_all_threads): Use SCOPE_EXIT.
8010 2019-01-23 Tom Tromey <tom@tromey.com>
8011 Pedro Alves <palves@redhat.com>
8013 * symfile.c: Include forward-scope-exit.h.
8014 (clear_symtab_users_cleanup): Replace forward declaration with
8015 a FORWARD_SCOPE_EXIT.
8016 (syms_from_objfile_1): Use the forward_scope_exit and
8017 gdb::optional instead of cleanup_function.
8018 (reread_symbols): Use the forward_scope_exit instead of
8020 (clear_symtab_users_cleanup): Remove function.
8022 2019-01-23 Tom Tromey <tom@tromey.com>
8023 Pedro Alves <palves@redhat.com>
8025 * linux-nat.c: Include scope-exit.h.
8026 (cleanup_target_stop): Remove.
8027 (linux_nat_target::static_tracepoint_markers_by_strid): Use
8030 2019-01-23 Tom Tromey <tom@tromey.com>
8031 Pedro Alves <palves@redhat.com>
8033 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
8034 (call_function_by_hand_dummy): Use SCOPE_EXIT.
8036 2019-01-23 Tom Tromey <tom@tromey.com>
8037 Andrew Burgess <andrew.burgess@embecosm.com>
8038 Pedro Alves <palves@redhat.com>
8040 * infrun.c (fetch_inferior_event): Use scope_exit.
8041 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
8042 * top.c (execute_command): Use scope_exit.
8043 * breakpoint.c (bpstat_do_actions): Use scope_exit.
8044 * utils.c (do_bpstat_clear_actions_cleanup)
8045 (make_bpstat_clear_actions_cleanup): Remove.
8047 2019-01-23 Tom Tromey <tom@tromey.com>
8048 Pedro Alves <palves@redhat.com>
8050 * infrun.c: Include "common/scope-exit.h"
8051 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
8052 (wait_for_inferior): Use SCOPE_EXIT.
8053 (fetch_inferior_event): Use scope_exit.
8055 2019-01-23 Tom Tromey <tom@tromey.com>
8056 Pedro Alves <palves@redhat.com>
8058 * breakpoint.c (create_breakpoint): Remove cleanup.
8060 2019-01-23 Tom Tromey <tom@tromey.com>
8061 Andrew Burgess <andrew.burgess@embecosm.com>
8062 Pedro Alves <palves@redhat.com>
8064 2019-01-23 Pedro Alves <palves@redhat.com>
8066 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
8068 2019-01-23 Pedro Alves <palves@redhat.com>
8069 Andrew Burgess <andrew.burgess@embecosm.com>
8071 * gdbthread.h: Include "common/forward-scope-exit.h".
8072 (scoped_finish_thread_state): Redefine custom class in terms of
8075 2019-01-23 Pedro Alves <palves@redhat.com>
8076 Andrew Burgess <andrew.burgess@embecosm.com>
8078 * common/forward-scope-exit.h: New file.
8080 2019-01-23 Pedro Alves <palves@redhat.com>
8081 Andrew Burgess <andrew.burgess@embecosm.com>
8082 Tom Tromey <tom@tromey.com>
8084 * common/scope-exit.h: New file.
8086 2019-01-23 Pedro Alves <palves@redhat.com>
8088 * common/preprocessor.h (ESC): Rename to ...
8089 (ESC_PARENS): ... this.
8090 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
8091 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
8093 2019-01-23 Tom Tromey <tom@tromey.com>
8095 * language.h (class scoped_switch_to_sym_language_if_auto):
8096 Initialize m_lang in both cases.
8098 2019-01-23 Alan Hayward <alan.hayward@arm.com>
8100 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
8103 2019-01-22 Tom Tromey <tom@tromey.com>
8105 * corelow.c: Do not include sys/file.h.
8107 2019-01-22 Tom Tromey <tom@tromey.com>
8109 * tui/tui-wingeneral.h: Include gdb_curses.h.
8111 2019-01-22 Tom Tromey <tom@tromey.com>
8113 * source-cache.h (class source_cache) <get_source_lines,
8114 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
8116 2019-01-22 Tom Tromey <tom@tromey.com>
8118 * remote-fileio.h (struct remote_target): Declare.
8120 2019-01-22 Tom Tromey <tom@tromey.com>
8122 * python/py-arch.c: Do not include py-ref.h.
8123 * python/py-bpevent.c: Do not include py-ref.h.
8124 * python/py-cmd.c: Do not include py-ref.h.
8125 * python/py-continueevent.c: Do not include py-ref.h.
8126 * python/py-event.h: Do not include py-ref.h.
8127 * python/py-evtregistry.c: Do not include py-ref.h.
8128 * python/py-finishbreakpoint.c: Do not include py-ref.h.
8129 * python/py-frame.c: Do not include py-ref.h.
8130 * python/py-framefilter.c: Do not include py-ref.h.
8131 * python/py-function.c: Do not include py-ref.h.
8132 * python/py-infevents.c: Do not include py-ref.h.
8133 * python/py-linetable.c: Do not include py-ref.h.
8134 * python/py-objfile.c: Do not include py-ref.h.
8135 * python/py-param.c: Do not include py-ref.h.
8136 * python/py-prettyprint.c: Do not include py-ref.h.
8137 * python/py-progspace.c: Do not include py-ref.h.
8138 * python/py-symbol.c: Do not include py-ref.h.
8139 * python/py-symtab.c: Do not include py-ref.h.
8140 * python/py-type.c: Do not include py-ref.h.
8141 * python/py-unwind.c: Do not include py-ref.h.
8142 * python/py-utils.c: Do not include py-ref.h.
8143 * python/py-value.c: Do not include py-ref.h.
8144 * python/py-varobj.c: Do not include py-ref.h.
8145 * python/py-xmethods.c: Do not include py-ref.h.
8146 * python/python.c: Do not include py-ref.h.
8147 * varobj.c: Do not include py-ref.h.
8149 2019-01-22 Tom Tromey <tom@tromey.com>
8151 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
8154 2019-01-22 Tom Tromey <tom@tromey.com>
8156 * compile/compile-cplus-types.c: Remove a comment by #include.
8158 2019-01-22 Tom Tromey <tom@tromey.com>
8160 * compile/gcc-c-plugin.h: Include compile-internal.h.
8162 2019-01-22 Tom Tromey <tom@tromey.com>
8164 * stabsread.c (EXTERN): Do not define.
8165 (symnum, next_symbol_text_func, processing_gcc_compilation)
8166 (within_function, global_sym_chain, global_stabs)
8167 (previous_stab_code, this_object_header_files)
8168 (n_this_object_header_files)
8169 (n_allocated_this_object_header_files): Define.
8170 * stabsread.h (EXTERN): Never define. Use "extern".
8172 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8174 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
8177 2019-01-21 Tom Tromey <tom@tromey.com>
8179 * ui-out.c: Fix includes.
8180 * tui/tui-source.c: Fix includes.
8181 * target.c: Fix includes.
8182 * remote.c: Fix includes.
8183 * regcache.c: Fix includes.
8184 * python/py-block.c: Fix includes.
8185 * printcmd.c: Fix includes.
8186 * or1k-tdep.c: Fix includes.
8187 * mi/mi-main.c: Fix includes.
8188 * m32r-tdep.c: Fix includes.
8189 * csky-tdep.c: Fix includes.
8190 * compile/compile-cplus-types.c: Fix includes.
8191 * cli/cli-interp.c: Fix includes.
8193 2019-01-21 Alan Hayward <alan.hayward@arm.com>
8195 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
8198 2019-01-16 Tom Tromey <tom@tromey.com>
8200 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
8202 (struct objfile) <msymbols_range>: Move from top level.
8203 <msymbols>: New method.
8204 (class objfile_msymbols): Remove.
8205 * symtab.c (default_collect_symbol_completion_matches_break_on):
8207 * symmisc.c (dump_msymbols): Update.
8208 * stabsread.c (scan_file_globals): Update.
8209 * objc-lang.c (info_selectors_command, info_classes_command)
8210 (find_methods): Update.
8211 * minsyms.c (find_solib_trampoline_target): Update.
8212 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
8213 * coffread.c (coff_symfile_read): Update.
8214 * ada-lang.c (ada_lookup_simple_minsym)
8215 (ada_collect_symbol_completion_matches): Update.
8217 2019-01-16 Tom Tromey <tom@tromey.com>
8219 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
8220 type. Remove no-argument constructor.
8221 <iterator::operator++>: Simplify.
8223 <end>: Use minimal_symbol_count.
8225 2019-01-16 Tom Tromey <tom@tromey.com>
8227 * objfiles.h (struct objfile) <psymtabs>: New method.
8228 (class objfile_psymtabs): Remove.
8229 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
8231 <range>: New method.
8232 (require_partial_symbols): Change return type.
8233 * psymtab.c (require_partial_symbols)
8234 (psym_expand_symtabs_matching): Update.
8235 * mdebugread.c (parse_partial_symbols): Update.
8236 * dbxread.c (dbx_end_psymtab): Update.
8238 2019-01-15 Tom Tromey <tom@tromey.com>
8240 * symtab.c (lookup_objfile_from_block)
8241 (lookup_symbol_in_objfile_symtabs)
8242 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
8243 (find_line_symtab, info_sources_command)
8244 (default_collect_symbol_completion_matches_break_on)
8245 (make_source_files_completion_list): Update.
8246 * symmisc.c (print_objfile_statistics, dump_objfile)
8247 (maintenance_print_symbols, maintenance_info_symtabs)
8248 (maintenance_check_symtabs, maintenance_info_line_tables):
8250 * source.c (select_source_symtab)
8251 (forget_cached_source_info_for_objfile): Update.
8252 * objfiles.h (class objfile_compunits): Remove.
8253 (struct objfile) <compunits_range>: New typedef.
8254 (compunits): New method.
8255 * objfiles.c (objfile_relocate1): Update.
8256 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
8257 * maint.c (count_symtabs_and_blocks): Update.
8258 * linespec.c (iterate_over_all_matching_symtabs): Update.
8259 * cp-support.c (add_symbol_overload_list_qualified): Update.
8260 * coffread.c (coff_symtab_read): Update.
8261 * ada-lang.c (add_nonlocal_symbols)
8262 (ada_collect_symbol_completion_matches)
8263 (ada_add_global_exceptions): Update.
8265 2019-01-15 Tom Tromey <tom@tromey.com>
8267 * progspace.h (program_space) <objfiles_safe_range>: New
8269 <objfiles_safe>: New method.
8270 * objfiles.h (class all_objfiles_safe): Remove.
8271 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
8272 * jit.c (jit_inferior_exit_hook): Update.
8274 2019-01-17 Tom Tromey <tom@tromey.com>
8276 * progspace.h (program_space) <objfiles_range>: New typedef.
8277 <objfiles>: New method.
8278 <objfiles_head>: Rename from objfiles.
8279 (object_files): Update.
8280 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
8281 * guile/scm-pretty-print.c
8282 (ppscm_find_pretty_printer_from_objfiles): Update.
8283 * guile/scm-objfile.c (gdbscm_objfiles): Update.
8284 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
8286 * python/py-progspace.c (pspy_get_objfiles): Update.
8287 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
8289 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
8290 (objfpy_lookup_objfile_by_build_id): Update.
8291 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
8292 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
8294 * symtab.c (iterate_over_symtabs, matching_obj_sections)
8295 (expand_symtab_containing_pc, lookup_objfile_from_block)
8296 (lookup_static_symbol, basic_lookup_transparent_type)
8297 (find_pc_sect_compunit_symtab, find_symbol_at_address)
8298 (find_line_symtab, info_sources_command)
8299 (default_collect_symbol_completion_matches_break_on)
8300 (make_source_files_completion_list, find_main_name): Update.
8301 * symmisc.c (print_symbol_bcache_statistics)
8302 (print_objfile_statistics, maintenance_print_symbols)
8303 (maintenance_print_msymbols, maintenance_print_objfiles)
8304 (maintenance_info_symtabs, maintenance_check_symtabs)
8305 (maintenance_expand_symtabs, maintenance_info_line_tables):
8307 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
8308 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
8309 (map_overlay_command, unmap_overlay_command)
8310 (simple_overlay_update, expand_symtabs_matching)
8311 (map_symbol_filenames): Update.
8312 * symfile-debug.c (set_debug_symfile): Update.
8313 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
8315 * source.c (select_source_symtab, forget_cached_source_info):
8317 * solib.c (solib_read_symbols): Update.
8318 * solib-spu.c (append_ocl_sos): Update.
8319 * psymtab.c (maintenance_print_psymbols)
8320 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
8321 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
8322 * printcmd.c (info_symbol_command): Update.
8323 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
8325 * objfiles.h (class all_objfiles): Remove.
8326 * objfiles.c (have_partial_symbols, have_full_symbols)
8327 (have_minimal_symbols, qsort_cmp, update_section_map)
8328 (shared_objfile_contains_address_p)
8329 (default_iterate_over_objfiles_in_search_order): Update.
8330 * objc-lang.c (info_selectors_command, info_classes_command)
8331 (find_methods): Update.
8332 * minsyms.c (find_solib_trampoline_target): Update.
8333 * maint.c (maintenance_info_sections)
8334 (maintenance_translate_address, count_symtabs_and_blocks):
8336 * main.c (captured_main_1): Update.
8337 * linux-thread-db.c (try_thread_db_load_from_pdir)
8338 (has_libpthread): Update.
8339 * linespec.c (iterate_over_all_matching_symtabs)
8340 (search_minsyms_for_name): Update.
8341 * jit.c (jit_find_objf_with_entry_addr): Update.
8342 * hppa-tdep.c (find_unwind_entry)
8343 (hppa_lookup_stub_minimal_symbol): Update.
8344 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
8346 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
8347 (elf_gnu_ifunc_resolve_by_got): Update.
8348 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
8349 * dwarf-index-write.c (save_gdb_index_command): Update.
8350 * cp-support.c (add_symbol_overload_list_qualified): Update.
8351 * breakpoint.c (create_overlay_event_breakpoint)
8352 (create_longjmp_master_breakpoint)
8353 (create_std_terminate_master_breakpoint)
8354 (create_exception_master_breakpoint): Update.
8355 * blockframe.c (find_pc_partial_function): Update.
8356 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
8357 (ada_collect_symbol_completion_matches)
8358 (ada_add_global_exceptions): Update.
8360 2019-01-17 Tom Tromey <tom@tromey.com>
8362 * solib-target.c (lm_info_target_p): Remove typedef. Don't
8364 (solib_target_parse_libraries): Change return type.
8365 (library_list_start_segment, library_list_start_section)
8366 (library_list_end_library, library_list_start_library); Update.
8367 (solib_target_free_library_list): Remove.
8368 (solib_target_parse_libraries): Remove cleanup. Change return
8370 (solib_target_current_sos): Update.
8372 2019-01-17 Tom Tromey <tromey@bapiya>
8374 * valprint.c: Replace "the the" with "the".
8375 * symtab.c: Replace "the the" with "the".
8376 * solib.c: Replace "the the" with "the".
8377 * solib-dsbt.c: Replace "the the" with "the".
8378 * linespec.c: Replace "the the" with "the".
8379 * dwarf2loc.h: Replace "the the" with "the".
8380 * amd64-windows-tdep.c: Replace "the the" with "the".
8381 * aarch64-tdep.c: Replace "the the" with "the".
8383 2019-01-16 Keith Seitz <keiths@redhat.com>
8386 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
8387 <builder>: Rename to ..
8388 <m_builder>: ... this and make private.
8389 (dwarf2_cu::get_builder): New method. Change all users of
8390 `builder' to use this method.
8391 (dwarf2_start_symtab): Move to ...
8392 (dwarf2_cu::start_symtab): ... here. Update all callers
8393 (setup_type_unit_groups): Move to ...
8394 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
8396 (dwarf2_cu::reset_builder): New method.
8397 (process_full_compunit, process_full_type_unit): Use
8398 dwarf2_cu::reset_builder.
8399 (follow_die_offset): Record the ancestor CU if it is different
8400 from the followed DIE's CU.
8401 (follow_die_sig_1): Likewise.
8403 2019-01-15 Tom Tromey <tom@tromey.com>
8405 * remote.c (class remote_state) <buf>: Now a char_vector.
8407 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
8409 (remote_target::getpkt_or_notif_sane_1)
8410 (remote_target::getpkt_sane)
8411 (remote_target::getpkt_or_notif_sane): Likewise.
8412 (class remote_target) <putpkt>: New overload.
8413 (remote_target::read_frame): Change type of "buf_p". Remove
8415 (packet_ok): New overload.
8416 (packet_check_result): New overload.
8419 2019-01-14 Tom Tromey <tom@tromey.com>
8421 * remote-notif.c (handle_notification, remote_notif_ack)
8422 (remote_notif_parse): Make "buf" const.
8423 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
8425 (remote_notif_parse, remote_notif_ack, handle_notification):
8427 * remote.c (remote_notif_stop_parse): Make "buf" const.
8428 (remote_target::remote_parse_stop_reply): Make "buf" const.
8429 (remote_notif_stop_ack): Make "buf" const.
8431 2019-01-14 Tom Tromey <tom@tromey.com>
8433 * remote.c (remote_console_output): Make parameter const.
8435 2019-01-14 Tom Tromey <tom@tromey.com>
8437 * target-debug.h (target_debug_print_signals): Constify.
8438 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
8439 * procfs.c (procfs_target::pass_signals): Update.
8440 * linux-nat.c (linux_nat_target::pass_signals): Update.
8441 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
8442 * target-delegates.c: Rebuild.
8443 * remote.c (remote_target::program_signals): Update.
8444 (remote_target::pass_signals): Update.
8445 * target.c (target_pass_signals): Constify argument.
8446 (target_program_signals): Likewise.
8447 * target.h (struct target_ops) <pass_signals, program_signals>:
8449 (target_pass_signals, target_program_signals): Constify argument.
8451 2019-01-14 Tom Tromey <tom@tromey.com>
8454 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
8456 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8458 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
8460 * rs6000-tdep.c: Include reggroups.h.
8461 (IS_V_ALIAS_PSEUDOREG): Define.
8462 (rs6000_register_name): Return names for the "vX" aliases.
8463 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
8464 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
8465 aliases. Call default_register_reggroup_p for all other
8467 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
8469 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
8470 Handle "vX" aliases.
8471 (v_alias_pseudo_register_collect): New function.
8472 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
8473 (rs6000_gdbarch_init): Initialize "vX" aliases as
8474 pseudo-registers. Restore registration of
8475 rs6000_pseudo_register_reggroup_p with
8476 set_tdesc_pseudo_register_reggroup_p.
8478 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
8480 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
8481 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
8482 set_gdbarch_num_pseudo_regs.
8484 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8486 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
8487 Remove arg prefixname, add do_set and do_show.
8488 Add member functions set_list and show_list.
8489 * cli/cli-style.c (class cli_style_option): Update accordingly.
8490 (style_set_list): Move to file scope.
8491 (style_show_list): Likewise.
8492 (set_style): Call help_list.
8493 (show_style): Call cmd_show_list.
8494 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
8495 Update to use the new macro.
8497 2019-10-12 Joel Brobecker <brobecker@adacore.com>
8499 * ada-lang.c (_initialize_ada_language): Expand the help text
8500 for the "catch exception" command.
8502 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8504 * symtab.c (matching_obj_sections): Initialize obj,
8505 declare it closer to its usage.
8507 2019-01-10 Tom Tromey <tom@tromey.com>
8509 * thread-iter.h (inf_threads_iterator): Use next_iterator.
8510 (basic_inf_threads_range): Remove.
8511 (inf_threads_range, inf_non_exited_threads_range)
8512 (safe_inf_threads_range): Use next_adapter.
8514 2019-01-10 Keith Seitz <keiths@redhat.com>
8518 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
8519 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
8521 2019-01-10 Keith Seitz <keiths@redhat.com>
8525 * dictionary.c (pending_to_vector): Remove.
8526 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
8527 Remove _1 suffix, replacing functions of the same name. Update
8529 (dict_create_hashed, dict_create_hashed_expandable)
8530 (dict_create_linear, dict_create_linear_expandable, dict_free)
8531 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
8532 Make functions static.
8534 2019-01-10 Keith Seitz <keiths@redhat.com>
8538 * dictionary.h (struct dictionary): Replace declaration with
8540 (dict_create_hashed, dict_create_hashed_expandable)
8541 (dict_create_linear, dict_create_linear_expandable)
8542 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
8543 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
8544 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
8545 taking multidictionary argument.
8546 [ALL_DICT_SYMBOLS]: Update for multidictionary.
8547 * block.h (struct block) <dict>: Change to multidictionary
8548 and rename `multidict'.
8549 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
8550 symmisc.c: Update all dictionary references to multidictionary.
8552 2019-01-10 Keith Seitz <keiths@redhat.com>
8556 * dictionary.c: Include unordered_map.
8557 (pending_to_vector): New function.
8558 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
8559 Rewrite the non-"_1" functions to take vector instead
8561 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
8562 "new" _1 versions of the same name.
8563 (multidictionary): Define.
8564 (std::hash<enum language): New definition.
8565 (collate_pending_symbols_by_language, mdict_create_hashed)
8566 (mdict_create_hashed_expandable, mdict_create_linear)
8567 (mdict_create_linear_expandable, mdict_free)
8568 (find_language_dictionary, create_new_language_dictionary)
8569 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
8570 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
8571 (mdict_size, mdict_empty): New functions.
8572 * dictionary.h (mdict_iterator): Define.
8574 2019-01-10 Pedro Alves <palves@redhat.com>
8576 * breakpoint.c (read_uploaded_action)
8577 (create_tracepoint_from_upload): Adjust to use
8578 gdb::unique_xmalloc_ptr.
8579 * ctf.c (ctf_write_uploaded_tp):
8580 (SET_ARRAY_FIELD): Use emplace_back.
8581 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
8582 * tracefile-tfile.c (tfile_write_uploaded_tp):
8583 * tracepoint.c (parse_tracepoint_definition): Adjust to use
8584 gdb::unique_xmalloc_ptr.
8585 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
8586 at_string, cond_string, cmd_strings>: Replace char pointers
8587 with gdb::unique_xmalloc_ptr.
8589 2019-01-10 Pedro Alves <palves@redhat.com>
8591 * solib-target.c (library_list_start_library): Don't xstrdup name.
8593 2019-01-10 Pedro Alves <palves@redhat.com>
8595 * mdebugread.c (parse_partial_symbols): Use
8596 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
8598 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
8600 * linux-fork.c (scoped_switch_fork_info)
8601 <~scoped_switch_fork_info>: Fix incorrect variable name.
8603 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
8605 * linux-fork.c (scoped_switch_fork_info)
8606 <scoped_switch_fork_info>: Make explicit.
8607 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
8609 2019-01-10 Tom Tromey <tom@tromey.com>
8611 * objfiles.h (objfile::reset_psymtabs): Update.
8612 * objfiles.c (objfile::objfile): Update.
8613 * psymtab.h (psymtab_storage::obstack): Update.
8614 (psymtab_storage::m_obstack): Use gdb::optional.
8615 (class psymtab_storage): Update comment. Remove objfile
8617 * psymtab.c (psymtab_storage::psymtab_storage): Update.
8619 2019-01-10 Tom Tromey <tom@tromey.com>
8621 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
8622 <free_psymtabs>: Now private.
8623 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
8624 (allocate_psymtab): Use new method.
8626 2019-01-10 Tom Tromey <tom@tromey.com>
8628 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
8629 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
8630 * mdebugread.c (parse_partial_symbols): Use
8631 allocate_dependencies.
8632 * dwarf2read.c (dwarf2_create_include_psymtab): Use
8633 allocate_dependencies.
8634 (process_psymtab_comp_unit_reader)
8635 (build_type_psymtab_dependencies): Likewise.
8636 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
8638 2019-01-10 Tom Tromey <tom@tromey.com>
8640 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
8641 PSYMBOL_SET_LANGUAGE.
8642 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
8644 2019-01-10 Tom Tromey <tom@tromey.com>
8646 * psymtab.h (psymtab_storage::obstack): New method.
8647 <m_obstack>: Rename from obstack; now private.
8648 * psymtab.c (psymtab_storage): Update.
8649 * dwarf2read.c (create_addrmap_from_index)
8650 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
8653 2019-01-10 Tom Tromey <tom@tromey.com>
8655 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
8656 * objfiles.h (objfile::reset_psymtabs): New method.
8658 2019-01-10 Tom Tromey <tom@tromey.com>
8660 * symmisc.c (print_symbol_bcache_statistics): Update.
8661 (print_objfile_statistics): Update.
8662 * symfile.c (reread_symbols): Update.
8663 * psymtab.h (class psymtab_storage): New.
8664 * psymtab.c (psymtab_storage): New constructor.
8665 (~psymtab_storage): New destructor.
8666 (require_partial_symbols): Update.
8667 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
8668 (find_pc_sect_psymtab, find_pc_sect_psymbol)
8669 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
8670 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
8671 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
8672 (start_psymtab_common, end_psymtab_common)
8673 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
8674 (allocate_psymtab): Update.
8675 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
8677 (dump_psymtab_addrmap, maintenance_print_psymbols)
8678 (maintenance_check_psymtabs): Update.
8679 (class objfile_psymtabs): Move to objfiles.h.
8680 * psympriv.h (discard_psymtab): Now inline.
8681 (psymtab_discarder::psymtab_discarder): Update.
8682 (psymtab_discarder::~psymtab_discarder): Update.
8683 (ALL_OBJFILE_PSYMTABS): Rewrite.
8684 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
8685 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
8687 <partial_symtabs>: New field.
8688 (class objfile_psymtabs): Move from psymtab.h. Update.
8689 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
8691 (objfile::~objfile): Don't destroy psymbol_cache.
8692 * mdebugread.c (parse_partial_symbols): Update.
8693 * dwarf2read.c (create_addrmap_from_index)
8694 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8695 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
8696 (add_partial_subprogram, dwarf2_ranges_read): Update.
8697 * dwarf-index-write.c (write_address_map)
8698 (write_one_signatured_type, recursively_write_psymbols)
8699 (class debug_names, class debug_names, write_psymtabs_to_index):
8702 2019-01-10 Tom Tromey <tom@tromey.com>
8704 * symtab.h (SYMBOL_SET_NAMES): Update.
8705 (symbol_set_names): Update.
8706 (MSYMBOL_SET_NAMES): Update.
8707 * symtab.c (symbol_set_names): Change argument to be an
8708 objfile_per_bfd_storage.
8709 * psymtab.c (add_psymbol_to_bcache): Update.
8710 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
8712 2019-01-10 Tom Tromey <tom@tromey.com>
8714 * symtab.c (create_demangled_names_hash): Change argument to be an
8715 objfile_per_bfd_storage.
8716 (symbol_set_names): Update.
8718 2019-01-10 Tom Tromey <tom@tromey.com>
8720 * xcoffread.c (xcoff_initial_scan): Unconditionally call
8722 * psymtab.c (init_psymbol_list): Do nothing if already called.
8723 * psympriv.h (init_psymbol_list): Add comment.
8724 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
8726 * dbxread.c (dbx_symfile_read): Unconditionally call
8729 2019-01-10 Tom Tromey <tom@tromey.com>
8731 * xcoffread.c (scan_xcoff_symtab): Update.
8732 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
8734 * mdebugread.c (parse_partial_symbols)
8735 (handle_psymbol_enumerators): Update.
8736 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
8737 * dbxread.c (read_dbx_symtab): Update.
8738 * psympriv.h (psymbol_placement): New enum.
8739 (add_psymbol_to_list): Update.
8741 2019-01-10 Tom Tromey <tom@tromey.com>
8743 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
8744 static_psymbols parameters.
8745 (scan_xcoff_symtab): Update.
8746 * psymtab.c (start_psymtab_common): Remove global_psymbols and
8747 static_psymbols parameters.
8748 * psympriv.h (start_psymtab_common): Update.
8749 * mdebugread.c (parse_partial_symbols): Update.
8750 * dwarf2read.c (create_partial_symtab): Update.
8751 * dbxread.c (read_dbx_symtab): Update.
8752 (start_psymtab): Remove global_psymbols and static_psymbols
8755 2019-01-10 Tom Tromey <tom@tromey.com>
8757 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
8758 * psymtab.c (allocate_psymtab): Add comment.
8759 * psympriv.h (allocate_psymtab): Add comment.
8760 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
8762 * dbxread.c (dbx_end_psymtab): Remove some initializations.
8764 2019-01-10 Tom Tromey <tom@tromey.com>
8766 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
8768 * mipsread.c: Include mdebugread.h.
8769 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
8771 * elfread.c: Include mdebugread.h.
8773 2019-01-09 Tom Tromey <tom@tromey.com>
8775 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
8776 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
8777 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
8778 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
8779 (psym_lookup_symbol, psym_find_last_source_symtab)
8780 (psym_forget_cached_source_info, psym_print_stats)
8781 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
8782 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
8783 (psym_map_matching_symbols, psym_expand_symtabs_matching)
8784 (psym_find_compunit_symtab_by_address)
8785 (maintenance_print_psymbols, maintenance_info_psymtabs)
8786 (maintenance_check_psymtabs): Use ranged for.
8787 * psymtab.h (class objfile_psymtabs): New.
8788 (require_partial_symbols): Return objfile_psymtabs.
8789 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
8791 2019-01-09 Tom Tromey <tom@tromey.com>
8793 * symfile.c (overlay_invalidate_all, find_pc_overlay)
8794 (find_pc_mapped_section, list_overlays_command)
8795 (map_overlay_command, unmap_overlay_command)
8796 (simple_overlay_update): Use all_objfiles.
8797 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
8798 * printcmd.c (info_symbol_command): Use all_objfiles.
8799 * objfiles.h (ALL_OBJSECTIONS): Remove.
8800 * maint.c (maintenance_translate_address): Use all_objfiles.
8801 * gcore.c (gcore_create_callback): Use all_objfiles.
8802 (objfile_find_memory_regions): Likewise.
8804 2019-01-09 Tom Tromey <tom@tromey.com>
8806 * symtab.c (find_line_symtab, info_sources_command)
8807 (make_source_files_completion_list): Use objfile_compunits.
8808 * source.c (select_source_symtab): Use objfile_compunits.
8809 * objfiles.h (struct objfile): Update comment.
8810 (ALL_OBJFILES): Remove.
8811 (ALL_FILETABS): Remove.
8812 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
8815 2019-01-09 Tom Tromey <tom@tromey.com>
8817 * symmisc.c (print_objfile_statistics, dump_objfile)
8818 (maintenance_print_symbols): Use compunit_filetabs.
8819 * source.c (forget_cached_source_info_for_objfile): Use
8821 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
8822 (ALL_FILETABS): Use compunit_filetabs.
8823 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
8824 * coffread.c (coff_symtab_read): Use compunit_filetabs.
8826 2019-01-09 Tom Tromey <tom@tromey.com>
8828 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
8829 (compunit_filetabs): New.
8830 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
8832 (info_sources_command, make_source_files_completion_list): Remove
8834 * symmisc.c (print_objfile_statistics, dump_objfile)
8835 (maintenance_print_symbols): Remove declaration.
8836 (maintenance_info_symtabs): Use compunit_filetabs.
8837 (maintenance_info_line_tables): Likewise.
8838 * source.c (select_source_symtab): Change local variable name.
8839 (forget_cached_source_info_for_objfile): Remove declaration.
8840 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
8841 * objfiles.c (objfile_relocate1): Remove declaration.
8842 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
8844 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
8845 * coffread.c (coff_symtab_read): Remove declaration.
8846 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
8849 2019-01-09 Tom Tromey <tom@tromey.com>
8851 * symtab.c (lookup_objfile_from_block)
8852 (find_pc_sect_compunit_symtab, search_symbols)
8853 (default_collect_symbol_completion_matches_break_on): Use
8855 * objfiles.h (ALL_COMPUNITS): Remove.
8856 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
8857 * cp-support.c (add_symbol_overload_list_qualified): Use
8859 * ada-lang.c (ada_collect_symbol_completion_matches)
8860 (ada_add_global_exceptions): Use objfile_compunits.
8862 2019-01-09 Tom Tromey <tom@tromey.com>
8864 * source.c (select_source_symtab)
8865 (forget_cached_source_info_for_objfile): Remove declaration.
8866 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
8868 * maint.c (count_symtabs_and_blocks): Remove declaration.
8869 * cp-support.c (add_symbol_overload_list_qualified): Remove
8871 * coffread.c (coff_symtab_read): Remove declaration.
8872 * symtab.c (lookup_symbol_in_objfile_symtabs)
8873 (basic_lookup_transparent_type_1): Use objfile_compunits.
8874 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
8875 (info_sources_command, search_symbols)
8876 (default_collect_symbol_completion_matches_break_on)
8877 (make_source_files_completion_list): Remove declaration.
8878 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
8879 (ada_collect_symbol_completion_matches)
8880 (ada_add_global_exceptions): Remove declaration.
8881 * linespec.c (iterate_over_all_matching_symtabs): Use
8883 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
8884 (class objfile_compunits): New.
8885 (ALL_COMPUNITS): Use objfile_compunits.
8886 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
8887 (maintenance_check_symtabs, maintenance_info_line_tables): Use
8889 * objfiles.c (objfile_relocate1): Use objfile_compunits.
8891 2019-01-09 Tom Tromey <tom@tromey.com>
8893 * symtab.c (search_symbols)
8894 (default_collect_symbol_completion_matches_break_on): Use
8896 * ada-lang.c (ada_lookup_simple_minsym)
8897 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
8898 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
8899 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
8901 * coffread.c (coff_symfile_read): Use objfile_msymbols.
8902 * symmisc.c (dump_msymbols): Use objfile_msymbols.
8903 * objc-lang.c (find_methods): Use objfile_msymbols.
8904 (info_selectors_command, info_classes_command): Likewise.
8905 * stabsread.c (scan_file_globals): Use objfile_msymbols.
8906 * objfiles.h (class objfile_msymbols): New.
8907 (ALL_OBJFILE_MSYMBOLS): Remove.
8908 (ALL_MSYMBOLS): Remove.
8910 2019-01-09 Tom Tromey <tom@tromey.com>
8912 * common/next-iterator.h (next_adapter): Add Iterator template
8914 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
8915 (class all_objfiles_safe): New.
8916 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
8917 * objfiles.c (put_objfile_before): Update comment.
8918 (add_separate_debug_objfile): Likewise.
8919 (free_all_objfiles): Use all_objfiles_safe.
8920 (objfile_purge_solibs): Likewise.
8922 2019-01-09 Tom Tromey <tom@tromey.com>
8924 * symtab.c (iterate_over_symtabs, matching_obj_sections)
8925 (expand_symtab_containing_pc, lookup_static_symbol)
8926 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
8927 (find_symbol_at_address, find_line_symtab, find_main_name): Use
8929 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
8930 * breakpoint.c (create_overlay_event_breakpoint)
8931 (create_longjmp_master_breakpoint)
8932 (create_std_terminate_master_breakpoint)
8933 (create_exception_master_breakpoint): Use all_objfiles.
8934 * linux-thread-db.c (try_thread_db_load_from_pdir)
8935 (has_libpthread): Use all_objfiles.
8936 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
8937 * linespec.c (iterate_over_all_matching_symtabs)
8938 (search_minsyms_for_name): Use all_objfiles.
8939 * maint.c (maintenance_info_sections): Use all_objfiles.
8940 * main.c (captured_main_1): Use all_objfiles.
8941 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
8942 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
8943 * guile/scm-pretty-print.c
8944 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
8945 * solib-spu.c (append_ocl_sos): Use all_objfiles.
8946 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
8947 (maintenance_print_msymbols): Use all_objfiles.
8948 * source.c (select_source_symtab): Use all_objfiles.
8949 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
8950 * symfile.c (remove_symbol_file_command)
8951 (expand_symtabs_matching, map_symbol_filenames): Use
8953 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
8955 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
8956 * objc-lang.c (find_methods): Use all_objfiles.
8957 * objfiles.c (have_partial_symbols, have_full_symbols)
8958 (have_minimal_symbols, qsort_cmp)
8959 (default_iterate_over_objfiles_in_search_order): Use
8961 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
8962 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
8963 (maintenance_check_psymtabs): Use all_objfiles.
8964 (ALL_PSYMTABS): Remove.
8965 * compile/compile-object-run.c (do_module_cleanup): Use
8967 * blockframe.c (find_pc_partial_function): Use all_objfiles.
8968 * cp-support.c (add_symbol_overload_list_qualified): Use
8970 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
8972 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
8973 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
8975 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
8976 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
8977 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
8979 * solib.c (solib_read_symbols): Use all_objfiles
8981 2019-01-09 Tom Tromey <tom@tromey.com>
8983 * probe.c (parse_probes_in_pspace): Use all_objfiles.
8984 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
8986 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
8987 * symmisc.c (print_symbol_bcache_statistics)
8988 (print_objfile_statistics, maintenance_print_objfiles)
8989 (maintenance_info_symtabs, maintenance_check_symtabs)
8990 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
8992 * source.c (forget_cached_source_info): Use all_objfiles.
8993 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
8994 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
8995 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
8996 * objfiles.c (update_section_map): Use all_objfiles.
8997 (shared_objfile_contains_address_p): Likewise.
8998 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
8999 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
9001 2019-01-09 Tom Tromey <tom@tromey.com>
9003 * common/next-iterator.h: New file.
9004 * objfiles.h (class all_objfiles): New.
9005 (struct objfile_iterator): New.
9007 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9009 * NEWS: Move the description of the changed "frame", "select-frame",
9010 and "info frame" commands to the Changed commands section.
9012 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
9014 * gdbtypes.c (check_stub_method_group): Remove handling of old
9016 * linespec.c (find_methods): Likewise.
9017 * stabsread.c (read_member_functions): Likewise.
9018 * valops.c (search_struct_method): Likewise.
9019 (value_struct_elt_for_reference): Likewise.
9020 * NEWS: Mention this change.
9022 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
9024 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
9026 * source.c (print_source_lines_base): Update line number check.
9027 (print_source_lines): New function.
9028 (source_lines_range::source_lines_range): New function.
9029 * source.h (class source_lines_range): New class.
9030 (print_source_lines): New declaration.
9032 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9034 * linespec.c (linespec_state_destructor): Free self->canonical_names.
9036 2019-01-08 Tom Tromey <tom@tromey.com>
9037 Simon Marchi <simon.marchi@ericsson.com>
9040 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
9041 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
9042 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
9043 * f-exp.y (DOLLAR_VARIABLE): Likewise.
9044 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
9045 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
9047 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
9049 * source.c (select_source_symtab): Move header comment to
9050 declaration in source.h.
9051 (forget_cached_source_info_for_objfile): Likewise.
9052 (forget_cached_source_info): Likewise.
9053 (identify_source_line): Likewise.
9054 * source.h (identify_source_line): Move declaration from symtab.h
9055 and add comment from source.c
9056 (print_source_lines): Likewise.
9057 (forget_cached_source_info_for_objfile): Likewise.
9058 (forget_cached_source_info): Likewise.
9059 (select_source_symtab): Likewise.
9060 (enum print_source_lines_flag): Move definition from symtab.h.
9061 * symtab.h (identify_source_line): Move declaration to source.h.
9062 (print_source_lines): Likewise.
9063 (forget_cached_source_info_for_objfile): Likewise.
9064 (forget_cached_source_info): Likewise.
9065 (select_source_symtab): Likewise.
9066 (enum print_source_lines_flag): Move definition to source.h.
9067 * tui/tui-hooks.c: Add 'source.h' include.
9069 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
9071 * source.c (print_source_lines_base): Handle requests to print
9072 reverse line number sequences, and guard against empty lines
9075 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
9077 * source.c (print_source_lines_base): Fix skip of '\r' if next
9080 2019-01-06 Tom Tromey <tom@tromey.com>
9082 * c-exp.y (struct c_parse_state) <macro_original_text,
9083 expansion_obstack>: New member.
9084 (macro_original_text, expansion_obstack): Remove globals.
9085 (scan_macro_expansion, scanning_macro_expansion)
9086 (finished_macro_expansion): Update.
9087 (scan_macro_cleanup): Remove.
9088 (yylex, c_parse): Update.
9090 2019-01-06 Tom Tromey <tom@tromey.com>
9092 * c-exp.y (struct c_parse_state) <strings>: New member.
9093 (operator_stoken): Update.
9095 2019-01-06 Tom Tromey <tom@tromey.com>
9097 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
9098 (union type_stack_elt) <typelist_val>: Now a pointer to
9100 (type_stack_cleanup): Don't declare.
9101 (push_typelist): Update.
9102 * parse.c (pop_typelist): Return a std::vector.
9103 (push_typelist): Take a std::vector.
9104 (follow_types): Update. Do not free args.
9105 (type_stack_cleanup): Remove.
9106 * c-exp.y (struct c_parse_state): New.
9107 (cpstate): New global.
9108 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
9109 (nonempty_typelist): Update.
9110 (func_mod): Create a new vector.
9111 (c_parse): Create a c_parse_state.
9112 (check_parameter_typelist): Do not delete params.
9113 (function_method): Update. Do not delete type_list.
9115 2019-01-06 Tom Tromey <tom@tromey.com>
9118 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
9120 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
9121 (print_return_value): Likewise.
9123 2019-01-05 Tom Tromey <tom@tromey.com>
9125 * contrib/cleanup_check.py: Remove.
9126 * contrib/gcc-with-excheck: Remove.
9127 * contrib/exsummary.py: Remove.
9128 * contrib/excheck.py: Remove.
9130 2019-01-05 Joel Brobecker <brobecker@adacore.com>
9132 * thread.c (delete_thread_1): Add gdb_assert that THR is not
9133 NULL. Initialize tpprev to NULL instead of assigning it
9134 to NULL on the next statement.
9135 * windows-nat.c (windows_delete_thread): Remove check for
9136 main_thread_id before printing thread exit notifications.
9137 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
9138 Remove thread ID check against main_thread_id.
9139 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
9140 windows_delete_thread.
9141 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
9143 2019-01-04 Tom Tromey <tom@tromey.com>
9145 * compile/compile.c (_initialize_compile): Use upper case for
9146 metasyntactic variables.
9147 * symmisc.c (_initialize_symmisc): Use upper case for
9148 metasyntactic variables.
9149 * psymtab.c (_initialize_psymtab): Use upper case for
9150 metasyntactic variables.
9151 * demangle.c (demangle_command): Use upper case for metasyntactic
9153 (_initialize_demangler): Likewise.
9154 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
9157 2019-01-03 Tom Tromey <tom@tromey.com>
9159 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
9161 2019-01-03 Tom Tromey <tom@tromey.com>
9163 * python/py-symtab.c (salpy_str): Update.
9164 (struct salpy_sal_object) <symtab>: Now a PyObject.
9165 (salpy_dealloc): Update.
9166 (del_objfile_sal): Use gdbpy_ref.
9168 2019-01-03 Tom Tromey <tom@tromey.com>
9170 * python/py-type.c (convert_field): Use new_reference. Return
9172 (make_fielditem): Return gdbpy_ref.
9173 (typy_fields): Update.
9174 (typy_getitem): Update.
9175 (field_name): Return gdbpy_ref. Use new_reference.
9176 (typy_iterator_iternext): Update.
9178 2019-01-03 Tom Tromey <tom@tromey.com>
9180 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
9182 2019-01-03 Tom Tromey <tom@tromey.com>
9184 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
9185 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
9186 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
9187 (pspy_set_frame_filters, pspy_set_frame_unwinders)
9188 (pspy_set_type_printers): Likewise.
9189 * python/py-function.c (fnpy_init): Use gdbpy_ref.
9190 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
9191 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
9192 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
9193 (objfpy_set_type_printers): Likewise.
9195 2019-01-03 Tom Tromey <tom@tromey.com>
9197 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
9198 (gdbpy_print_stack): Use gdbpy_err_fetch.
9199 * python/python-internal.h (class gdbpy_err_fetch): New class.
9200 (class gdbpy_enter) <m_error_type, m_error_value,
9201 m_error_traceback>: Remove.
9202 <m_error>: New member.
9203 (gdbpy_exception_to_string): Don't declare.
9204 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
9205 * python/py-value.c (convert_value_from_python): Use
9207 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
9208 gdbpy_exception_to_string.
9209 (gdbpy_handle_exception): Use gdbpy_err_fetch.
9210 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
9213 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
9215 * linux-nat.c (delete_lwp_cleanup): Delete.
9216 (struct lwp_deleter): New struct.
9217 (lwp_info_up): New typedef.
9218 (linux_nat_target::follow_fork): Delete cleanup, and make use of
9221 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
9223 * linux-fork.c (class scoped_switch_fork_info): New class.
9224 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
9226 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
9228 * valops.c (find_overload_match): Remove use of null_cleanup, and
9229 calls to do_cleanups.
9231 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
9233 * compile/compile-cplus-types.c
9234 (compile_cplus_instance::decl_name): Handle changes to
9236 * cp-support.c (cp_func_name): Update header comment, update
9238 * cp-support.h (cp_func_name): Update return type in declaration.
9239 * valops.c (find_overload_match): Move temp_func local to top
9240 level of function and change its type. Use temp_func to hold and
9241 delete temporary string obtained from cp_func_name.
9243 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
9245 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
9246 gdb::char_vector, remove cleanup, and update uses of `msg`.
9248 2019-01-03 Jim Wilson <jimw@sifive.com>
9250 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
9252 2019-01-02 Tom Tromey <tom@tromey.com>
9254 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
9255 (tdesc_parse_xml): Remove cleanups.
9256 * target-descriptions.h (make_cleanup_free_target_description):
9258 (target_desc_deleter): New struct.
9259 (target_desc_up): New typedef.
9260 * target-descriptions.c (target_desc_deleter::operator()): Rename
9261 from free_target_description.
9262 (make_cleanup_free_target_description): Remove.
9264 2019-01-02 Tom Tromey <tom@tromey.com>
9266 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
9267 constructor, destructor.
9268 (linespec_parser): Remove typedef.
9269 (~linespec_parser): Rename from linespec_parser_delete.
9270 (linespec_lex_to_end, linespec_complete_label)
9271 (linespec_complete): Update.
9272 (decode_line_full): Remove cleanups.
9273 (decode_line_1): Update.
9275 2019-01-02 Tom Tromey <tom@tromey.com>
9277 * python/python-internal.h (inferior_to_inferior_object): Change
9279 * python/py-exitedevent.c (create_exited_event_object): Update.
9280 * python/py-inferior.c (inferior_to_inferior_object): Return
9282 (python_new_inferior, python_inferior_deleted)
9283 (thread_to_thread_object, delete_thread_object)
9284 (build_inferior_list, gdbpy_selected_inferior): Update.
9285 * python/py-infthread.c (create_thread_object): Update. Also fail
9286 if inferior_to_inferior_object fails.
9288 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
9290 * inferior.h (class inferior) <displaced_step_state>: New field.
9291 * infrun.h (struct displaced_step_state): Move here from
9292 infrun.c. Initialize fields, add constructor.
9293 <inf>: Remove field.
9294 <reset>: New method.
9295 * infrun.c (struct displaced_step_inferior_state): Move to
9297 (displaced_step_inferior_states): Remove.
9298 (get_displaced_stepping_state): Adust.
9299 (displaced_step_in_progress_any_inferior): Adjust.
9300 (displaced_step_in_progress_thread): Adjust.
9301 (displaced_step_in_progress): Adjust.
9302 (add_displaced_stepping_state): Remove.
9303 (get_displaced_step_closure_by_addr): Adjust.
9304 (remove_displaced_stepping_state): Remove.
9305 (infrun_inferior_exit): Call displaced_step_state.reset.
9306 (use_displaced_stepping): Don't check for NULL.
9307 (displaced_step_prepare_throw): Call
9308 get_displaced_stepping_state.
9309 (displaced_step_fixup): Don't check for NULL.
9310 (prepare_for_detach): Don't check for NULL.
9312 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9314 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
9315 in case of call that did not complete.
9317 2019-01-02 Andrey Utkin <autkin@undo.io>
9319 * symfile.c (find_separate_debug_file): Fix search of debug files for
9322 2019-01-02 Tom Tromey <tom@tromey.com>
9324 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
9326 * python/py-frame.c (frapy_older): Remove cast.
9327 (frapy_newer): Likewise.
9328 * python/py-breakpoint.c (local_setattro): Remove cast.
9329 * python/py-arch.c (archpy_name): Remove local variable.
9330 * python/py-type.c (gdbpy_lookup_type): Remove cast.
9332 2019-01-02 Joel Brobecker <brobecker@adacore.com>
9334 * unittests/basic_string_view/element_access/char/empty.cc:
9335 Fix year range in copyright header.
9337 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
9339 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
9341 <operator==>: Update with for removed field.
9343 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
9344 <isa_features>: ...this.
9345 <abi_features>: New field.
9346 (riscv_isa_flen): Update comment.
9347 (riscv_abi_xlen): New declaration.
9348 (riscv_abi_flen): New declaration.
9349 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
9351 (riscv_abi_xlen): New function.
9352 (riscv_isa_flen): Update to get answer from isa_features.
9353 (riscv_abi_flen): New function.
9354 (riscv_has_fp_abi): Update to get answer from abi_features.
9355 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
9357 (riscv_call_info) <xlen, flen>: Update comment.
9358 (riscv_call_arg_struct): Remove invalid assertions
9359 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
9361 (riscv_gdbarch_init): Gather isa features and abi features
9362 separately, ensure both match on the gdbarch when reusing an old
9363 gdbarch. Relax an error check to allow 32-bit abi float to run on
9364 a target with 64-bit float hardware.
9366 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9368 * source.c (search_command_helper): Stop reverse search
9369 when line 1 has been searched.
9371 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9373 * record-full.c (record_full_base_target::close): Rewrite
9374 record_full_core_buf_list free logic.
9376 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9378 * break-catch-syscall.c (print_one_catch_syscall): xfree
9381 2019-01-01 Joel Brobecker <brobecker@adacore.com>
9383 * top.c (print_gdb_version): Update Copyright year in version
9386 2019-01-01 Joel Brobecker <brobecker@adacore.com>
9388 Update copyright year range in all GDB files.
9390 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
9392 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
9394 For older changes see ChangeLog-2018.
9400 version-control: never