Use function_name_style to print Ada and C function names
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ac8c53cc
PW
12019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2
3 * ada-typeprint.c (print_func_type): Print function name
4 style to print function name.
5 * c-typeprint.c (c_print_type_1): Likewise.
6
ea638c43
AH
72019-02-11 Alan Hayward <alan.hayward@arm.com>
8
9 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10 for execve.
11
ab759ca8
PW
122019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13
14 * c-exp.y (direct_abs_decl): Use emplace_back to record the
15 type_stack.
16
aff29d1c
JB
172019-02-10 Joel Brobecker <brobecker@adacore.com>
18
19 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
20 TYPE_CODE_REF types.
21
617126bc
JW
222019-02-08 Jim Wilson <jimw@sifive.com>
23
24 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
25 (riscv_linux_fregset): New.
26 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
27
46e3ed7f
TT
282019-02-07 Tom Tromey <tom@tromey.com>
29
30 * thread.c (thread_cancel_execution_command): Update.
31 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
32 methods.
33 (struct thread_fsm_ops): Remove.
34 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
35 (thread_fsm_should_stop, thread_fsm_return_value)
36 (thread_fsm_set_finished, thread_fsm_finished_p)
37 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
38 Don't declare.
39 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
40 * infrun.c (clear_proceed_status_thread)
41 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
42 (print_stop_event): Update.
43 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
44 Add constructor.
45 (step_command_fsm_ops): Remove.
46 (new_step_command_fsm): Remove.
47 (step_1): Update.
48 (step_command_fsm::should_stop): Rename from
49 step_command_fsm_should_stop.
50 (step_command_fsm::clean_up): Rename from
51 step_command_fsm_clean_up.
52 (step_command_fsm::do_async_reply_reason): Rename from
53 step_command_fsm_async_reply_reason.
54 (struct until_next_fsm): Inherit from thread_fsm. Add
55 constructor.
56 (until_next_fsm_ops): Remove.
57 (new_until_next_fsm): Remove.
58 (until_next_fsm::should_stop): Rename from
59 until_next_fsm_should_stop.
60 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
61 (until_next_fsm::do_async_reply_reason): Rename from
62 until_next_fsm_async_reply_reason.
63 (struct finish_command_fsm): Inherit from thread_fsm. Add
64 constructor. Change type of breakpoint.
65 (finish_command_fsm_ops): Remove.
66 (new_finish_command_fsm): Remove.
67 (finish_command_fsm::should_stop): Rename from
68 finish_command_fsm_should_stop.
69 (finish_command_fsm::clean_up): Rename from
70 finish_command_fsm_clean_up.
71 (finish_command_fsm::return_value): Rename from
72 finish_command_fsm_return_value.
73 (finish_command_fsm::do_async_reply_reason): Rename from
74 finish_command_fsm_async_reply_reason.
75 (finish_command): Update.
76 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
77 Add constructor.
78 (call_thread_fsm_ops): Remove.
79 (call_thread_fsm::call_thread_fsm): Rename from
80 new_call_thread_fsm.
81 (call_thread_fsm::should_stop): Rename from
82 call_thread_fsm_should_stop.
83 (call_thread_fsm::should_notify_stop): Rename from
84 call_thread_fsm_should_notify_stop.
85 (run_inferior_call, call_function_by_hand_dummy): Update.
86 * cli/cli-interp.c (should_print_stop_to_console): Update.
87 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
88 Add constructor. Change type of location_breakpoint,
89 caller_breakpoint.
90 (until_break_fsm_ops): Remove.
91 (new_until_break_fsm): Remove.
92 (until_break_fsm::should_stop): Rename from
93 until_break_fsm_should_stop.
94 (until_break_fsm::clean_up): Rename from
95 until_break_fsm_clean_up.
96 (until_break_fsm::do_async_reply_reason): Rename from
97 until_break_fsm_async_reply_reason.
98 (until_break_command): Update.
99 * thread-fsm.c: Remove.
100 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
101
1a5c2598
TT
1022019-02-07 Tom Tromey <tom@tromey.com>
103
104 * yy-remap.h: Add include guard.
105 * xtensa-tdep.h: Add include guard.
106 * xcoffread.h: Rename include guard.
107 * varobj-iter.h: Add include guard.
108 * tui/tui.h: Rename include guard.
109 * tui/tui-winsource.h: Rename include guard.
110 * tui/tui-wingeneral.h: Rename include guard.
111 * tui/tui-windata.h: Rename include guard.
112 * tui/tui-win.h: Rename include guard.
113 * tui/tui-stack.h: Rename include guard.
114 * tui/tui-source.h: Rename include guard.
115 * tui/tui-regs.h: Rename include guard.
116 * tui/tui-out.h: Rename include guard.
117 * tui/tui-layout.h: Rename include guard.
118 * tui/tui-io.h: Rename include guard.
119 * tui/tui-hooks.h: Rename include guard.
120 * tui/tui-file.h: Rename include guard.
121 * tui/tui-disasm.h: Rename include guard.
122 * tui/tui-data.h: Rename include guard.
123 * tui/tui-command.h: Rename include guard.
124 * tic6x-tdep.h: Add include guard.
125 * target/waitstatus.h: Rename include guard.
126 * target/wait.h: Rename include guard.
127 * target/target.h: Rename include guard.
128 * target/resume.h: Rename include guard.
129 * target-float.h: Rename include guard.
130 * stabsread.h: Add include guard.
131 * rs6000-tdep.h: Add include guard.
132 * riscv-fbsd-tdep.h: Add include guard.
133 * regformats/regdef.h: Rename include guard.
134 * record.h: Rename include guard.
135 * python/python.h: Rename include guard.
136 * python/python-internal.h: Rename include guard.
137 * python/py-stopevent.h: Rename include guard.
138 * python/py-ref.h: Rename include guard.
139 * python/py-record.h: Rename include guard.
140 * python/py-record-full.h: Rename include guard.
141 * python/py-record-btrace.h: Rename include guard.
142 * python/py-instruction.h: Rename include guard.
143 * python/py-events.h: Rename include guard.
144 * python/py-event.h: Rename include guard.
145 * procfs.h: Add include guard.
146 * proc-utils.h: Add include guard.
147 * p-lang.h: Add include guard.
148 * or1k-tdep.h: Rename include guard.
149 * observable.h: Rename include guard.
150 * nto-tdep.h: Rename include guard.
151 * nat/x86-linux.h: Rename include guard.
152 * nat/x86-linux-dregs.h: Rename include guard.
153 * nat/x86-gcc-cpuid.h: Add include guard.
154 * nat/x86-dregs.h: Rename include guard.
155 * nat/x86-cpuid.h: Rename include guard.
156 * nat/ppc-linux.h: Rename include guard.
157 * nat/mips-linux-watch.h: Rename include guard.
158 * nat/linux-waitpid.h: Rename include guard.
159 * nat/linux-ptrace.h: Rename include guard.
160 * nat/linux-procfs.h: Rename include guard.
161 * nat/linux-osdata.h: Rename include guard.
162 * nat/linux-nat.h: Rename include guard.
163 * nat/linux-namespaces.h: Rename include guard.
164 * nat/linux-btrace.h: Rename include guard.
165 * nat/glibc_thread_db.h: Rename include guard.
166 * nat/gdb_thread_db.h: Rename include guard.
167 * nat/gdb_ptrace.h: Rename include guard.
168 * nat/fork-inferior.h: Rename include guard.
169 * nat/amd64-linux-siginfo.h: Rename include guard.
170 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
171 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
172 * nat/aarch64-linux.h: Rename include guard.
173 * nat/aarch64-linux-hw-point.h: Rename include guard.
174 * mn10300-tdep.h: Add include guard.
175 * mips-linux-tdep.h: Add include guard.
176 * mi/mi-parse.h: Rename include guard.
177 * mi/mi-out.h: Rename include guard.
178 * mi/mi-main.h: Rename include guard.
179 * mi/mi-interp.h: Rename include guard.
180 * mi/mi-getopt.h: Rename include guard.
181 * mi/mi-console.h: Rename include guard.
182 * mi/mi-common.h: Rename include guard.
183 * mi/mi-cmds.h: Rename include guard.
184 * mi/mi-cmd-break.h: Rename include guard.
185 * m2-lang.h: Add include guard.
186 * location.h: Rename include guard.
187 * linux-record.h: Rename include guard.
188 * linux-nat.h: Add include guard.
189 * linux-fork.h: Add include guard.
190 * i386-darwin-tdep.h: Rename include guard.
191 * hppa-linux-offsets.h: Add include guard.
192 * guile/guile.h: Rename include guard.
193 * guile/guile-internal.h: Rename include guard.
194 * gnu-nat.h: Rename include guard.
195 * gdb-stabs.h: Rename include guard.
196 * frv-tdep.h: Add include guard.
197 * f-lang.h: Add include guard.
198 * event-loop.h: Add include guard.
199 * darwin-nat.h: Rename include guard.
200 * cp-abi.h: Rename include guard.
201 * config/sparc/nm-sol2.h: Rename include guard.
202 * config/nm-nto.h: Rename include guard.
203 * config/nm-linux.h: Add include guard.
204 * config/i386/nm-i386gnu.h: Rename include guard.
205 * config/djgpp/nl_types.h: Rename include guard.
206 * config/djgpp/langinfo.h: Rename include guard.
207 * compile/gcc-cp-plugin.h: Add include guard.
208 * compile/gcc-c-plugin.h: Add include guard.
209 * compile/compile.h: Rename include guard.
210 * compile/compile-object-run.h: Rename include guard.
211 * compile/compile-object-load.h: Rename include guard.
212 * compile/compile-internal.h: Rename include guard.
213 * compile/compile-cplus.h: Rename include guard.
214 * compile/compile-c.h: Rename include guard.
215 * common/xml-utils.h: Rename include guard.
216 * common/x86-xstate.h: Rename include guard.
217 * common/version.h: Rename include guard.
218 * common/vec.h: Rename include guard.
219 * common/tdesc.h: Rename include guard.
220 * common/selftest.h: Rename include guard.
221 * common/scoped_restore.h: Rename include guard.
222 * common/scoped_mmap.h: Rename include guard.
223 * common/scoped_fd.h: Rename include guard.
224 * common/safe-iterator.h: Rename include guard.
225 * common/run-time-clock.h: Rename include guard.
226 * common/refcounted-object.h: Rename include guard.
227 * common/queue.h: Rename include guard.
228 * common/ptid.h: Rename include guard.
229 * common/print-utils.h: Rename include guard.
230 * common/preprocessor.h: Rename include guard.
231 * common/pathstuff.h: Rename include guard.
232 * common/observable.h: Rename include guard.
233 * common/netstuff.h: Rename include guard.
234 * common/job-control.h: Rename include guard.
235 * common/host-defs.h: Rename include guard.
236 * common/gdb_wait.h: Rename include guard.
237 * common/gdb_vecs.h: Rename include guard.
238 * common/gdb_unlinker.h: Rename include guard.
239 * common/gdb_unique_ptr.h: Rename include guard.
240 * common/gdb_tilde_expand.h: Rename include guard.
241 * common/gdb_sys_time.h: Rename include guard.
242 * common/gdb_string_view.h: Rename include guard.
243 * common/gdb_splay_tree.h: Rename include guard.
244 * common/gdb_setjmp.h: Rename include guard.
245 * common/gdb_ref_ptr.h: Rename include guard.
246 * common/gdb_optional.h: Rename include guard.
247 * common/gdb_locale.h: Rename include guard.
248 * common/gdb_assert.h: Rename include guard.
249 * common/filtered-iterator.h: Rename include guard.
250 * common/filestuff.h: Rename include guard.
251 * common/fileio.h: Rename include guard.
252 * common/environ.h: Rename include guard.
253 * common/common-utils.h: Rename include guard.
254 * common/common-types.h: Rename include guard.
255 * common/common-regcache.h: Rename include guard.
256 * common/common-inferior.h: Rename include guard.
257 * common/common-gdbthread.h: Rename include guard.
258 * common/common-exceptions.h: Rename include guard.
259 * common/common-defs.h: Rename include guard.
260 * common/common-debug.h: Rename include guard.
261 * common/cleanups.h: Rename include guard.
262 * common/buffer.h: Rename include guard.
263 * common/btrace-common.h: Rename include guard.
264 * common/break-common.h: Rename include guard.
265 * cli/cli-utils.h: Rename include guard.
266 * cli/cli-style.h: Rename include guard.
267 * cli/cli-setshow.h: Rename include guard.
268 * cli/cli-script.h: Rename include guard.
269 * cli/cli-interp.h: Rename include guard.
270 * cli/cli-decode.h: Rename include guard.
271 * cli/cli-cmds.h: Rename include guard.
272 * charset-list.h: Add include guard.
273 * buildsym-legacy.h: Rename include guard.
274 * bfin-tdep.h: Add include guard.
275 * ax.h: Rename include guard.
276 * arm-linux-tdep.h: Add include guard.
277 * arm-fbsd-tdep.h: Add include guard.
278 * arch/xtensa.h: Rename include guard.
279 * arch/tic6x.h: Add include guard.
280 * arch/i386.h: Add include guard.
281 * arch/arm.h: Rename include guard.
282 * arch/arm-linux.h: Rename include guard.
283 * arch/arm-get-next-pcs.h: Rename include guard.
284 * arch/amd64.h: Add include guard.
285 * arch/aarch64-insn.h: Rename include guard.
286 * arch-utils.h: Rename include guard.
287 * annotate.h: Add include guard.
288 * amd64-darwin-tdep.h: Rename include guard.
289 * aarch64-linux-tdep.h: Add include guard.
290 * aarch64-fbsd-tdep.h: Add include guard.
291 * aarch32-linux-nat.h: Add include guard.
292
ab9268d2
PW
2932019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
294
295 * macrotab.c (macro_define_internal): New function that
296 factorizes macro_define_object_internal and macro_define_function
297 code.
298 (macro_define_object_internal): Use macro_define_internal.
299 (macro_define_function): Likewise.
300
bb0da2b4
PW
3012019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
302
303 * macrocmd.c (extract_identifier): Return
304 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
305 callers.
306
424eb552
JB
3072019-02-06 John Baldwin <jhb@FreeBSD.org>
308
309 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
310
1688cb29
TT
3112019-02-05 Tom Tromey <tom@tromey.com>
312
313 * target.c (target_stack::unpush): Move assertion earlier.
314
b5eba2d8
TT
3152019-01-30 Tom Tromey <tom@tromey.com>
316
317 PR python/23615:
318 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
319 (gdbpy_parse_and_eval): Likewise.
320 * python/python-internal.h (gdbpy_allow_threads): New class.
321
7054e2ff
JB
3222019-01-28 John Baldwin <jhb@FreeBSD.org>
323
324 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
325 (aarch64_fbsd_fpregmap): Move earlier.
326 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
327 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
328 instead of individual calls to trad_frame_set_reg_addr.
329 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
330 earlier.
331 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
332 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
333 instead of individual calls to trad_frame_set_reg_addr.
334
36c25ffa
AH
3352019-01-28 Alan Hayward <alan.hayward@arm.com>
336
337 * CONTRIBUTE: Replace contribution list with wiki link.
338
a0707f3c
TT
3392019-01-25 Tom Tromey <tom@tromey.com>
340
341 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
342
0747795c
TT
3432019-01-25 Tom Tromey <tom@tromey.com>
344
345 * xtensa-linux-nat.c: Fix common/ includes.
346 * xml-support.h: Fix common/ includes.
347 * xml-support.c: Fix common/ includes.
348 * x86-linux-nat.c: Fix common/ includes.
349 * windows-nat.c: Fix common/ includes.
350 * varobj.h: Fix common/ includes.
351 * varobj.c: Fix common/ includes.
352 * value.c: Fix common/ includes.
353 * valops.c: Fix common/ includes.
354 * utils.c: Fix common/ includes.
355 * unittests/xml-utils-selftests.c: Fix common/ includes.
356 * unittests/utils-selftests.c: Fix common/ includes.
357 * unittests/unpack-selftests.c: Fix common/ includes.
358 * unittests/tracepoint-selftests.c: Fix common/ includes.
359 * unittests/style-selftests.c: Fix common/ includes.
360 * unittests/string_view-selftests.c: Fix common/ includes.
361 * unittests/scoped_restore-selftests.c: Fix common/ includes.
362 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
363 * unittests/scoped_fd-selftests.c: Fix common/ includes.
364 * unittests/rsp-low-selftests.c: Fix common/ includes.
365 * unittests/parse-connection-spec-selftests.c: Fix common/
366 includes.
367 * unittests/optional-selftests.c: Fix common/ includes.
368 * unittests/offset-type-selftests.c: Fix common/ includes.
369 * unittests/observable-selftests.c: Fix common/ includes.
370 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
371 * unittests/memrange-selftests.c: Fix common/ includes.
372 * unittests/memory-map-selftests.c: Fix common/ includes.
373 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
374 * unittests/function-view-selftests.c: Fix common/ includes.
375 * unittests/environ-selftests.c: Fix common/ includes.
376 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
377 * unittests/common-utils-selftests.c: Fix common/ includes.
378 * unittests/cli-utils-selftests.c: Fix common/ includes.
379 * unittests/array-view-selftests.c: Fix common/ includes.
380 * ui-file.c: Fix common/ includes.
381 * tui/tui-io.c: Fix common/ includes.
382 * tracepoint.h: Fix common/ includes.
383 * tracepoint.c: Fix common/ includes.
384 * tracefile-tfile.c: Fix common/ includes.
385 * top.h: Fix common/ includes.
386 * top.c: Fix common/ includes.
387 * thread.c: Fix common/ includes.
388 * target/waitstatus.h: Fix common/ includes.
389 * target/waitstatus.c: Fix common/ includes.
390 * target.h: Fix common/ includes.
391 * target.c: Fix common/ includes.
392 * target-memory.c: Fix common/ includes.
393 * target-descriptions.c: Fix common/ includes.
394 * symtab.h: Fix common/ includes.
395 * symfile.c: Fix common/ includes.
396 * stap-probe.c: Fix common/ includes.
397 * spu-linux-nat.c: Fix common/ includes.
398 * sparc-nat.c: Fix common/ includes.
399 * source.c: Fix common/ includes.
400 * solib.c: Fix common/ includes.
401 * solib-target.c: Fix common/ includes.
402 * ser-unix.c: Fix common/ includes.
403 * ser-tcp.c: Fix common/ includes.
404 * ser-pipe.c: Fix common/ includes.
405 * ser-base.c: Fix common/ includes.
406 * selftest-arch.c: Fix common/ includes.
407 * s12z-tdep.c: Fix common/ includes.
408 * rust-exp.y: Fix common/ includes.
409 * rs6000-aix-tdep.c: Fix common/ includes.
410 * riscv-tdep.c: Fix common/ includes.
411 * remote.c: Fix common/ includes.
412 * remote-notif.h: Fix common/ includes.
413 * remote-fileio.h: Fix common/ includes.
414 * remote-fileio.c: Fix common/ includes.
415 * regcache.h: Fix common/ includes.
416 * regcache.c: Fix common/ includes.
417 * record-btrace.c: Fix common/ includes.
418 * python/python.c: Fix common/ includes.
419 * python/py-type.c: Fix common/ includes.
420 * python/py-inferior.c: Fix common/ includes.
421 * progspace.h: Fix common/ includes.
422 * producer.c: Fix common/ includes.
423 * procfs.c: Fix common/ includes.
424 * proc-api.c: Fix common/ includes.
425 * printcmd.c: Fix common/ includes.
426 * ppc-linux-nat.c: Fix common/ includes.
427 * parser-defs.h: Fix common/ includes.
428 * osdata.c: Fix common/ includes.
429 * obsd-nat.c: Fix common/ includes.
430 * nat/x86-linux.c: Fix common/ includes.
431 * nat/x86-linux-dregs.c: Fix common/ includes.
432 * nat/x86-dregs.h: Fix common/ includes.
433 * nat/x86-dregs.c: Fix common/ includes.
434 * nat/ppc-linux.c: Fix common/ includes.
435 * nat/mips-linux-watch.h: Fix common/ includes.
436 * nat/mips-linux-watch.c: Fix common/ includes.
437 * nat/linux-waitpid.c: Fix common/ includes.
438 * nat/linux-ptrace.h: Fix common/ includes.
439 * nat/linux-ptrace.c: Fix common/ includes.
440 * nat/linux-procfs.c: Fix common/ includes.
441 * nat/linux-personality.c: Fix common/ includes.
442 * nat/linux-osdata.c: Fix common/ includes.
443 * nat/linux-namespaces.c: Fix common/ includes.
444 * nat/linux-btrace.h: Fix common/ includes.
445 * nat/linux-btrace.c: Fix common/ includes.
446 * nat/fork-inferior.c: Fix common/ includes.
447 * nat/amd64-linux-siginfo.c: Fix common/ includes.
448 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
449 * nat/aarch64-linux.c: Fix common/ includes.
450 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
451 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
452 * namespace.h: Fix common/ includes.
453 * mips-linux-tdep.c: Fix common/ includes.
454 * minsyms.c: Fix common/ includes.
455 * mi/mi-parse.h: Fix common/ includes.
456 * mi/mi-main.c: Fix common/ includes.
457 * mi/mi-cmd-env.c: Fix common/ includes.
458 * memrange.h: Fix common/ includes.
459 * memattr.c: Fix common/ includes.
460 * maint.h: Fix common/ includes.
461 * maint.c: Fix common/ includes.
462 * main.c: Fix common/ includes.
463 * machoread.c: Fix common/ includes.
464 * location.c: Fix common/ includes.
465 * linux-thread-db.c: Fix common/ includes.
466 * linux-nat.c: Fix common/ includes.
467 * linux-fork.c: Fix common/ includes.
468 * inline-frame.c: Fix common/ includes.
469 * infrun.c: Fix common/ includes.
470 * inflow.c: Fix common/ includes.
471 * inferior.h: Fix common/ includes.
472 * inferior.c: Fix common/ includes.
473 * infcmd.c: Fix common/ includes.
474 * inf-ptrace.c: Fix common/ includes.
475 * inf-child.c: Fix common/ includes.
476 * ia64-linux-nat.c: Fix common/ includes.
477 * i387-tdep.c: Fix common/ includes.
478 * i386-tdep.c: Fix common/ includes.
479 * i386-linux-tdep.c: Fix common/ includes.
480 * i386-linux-nat.c: Fix common/ includes.
481 * i386-go32-tdep.c: Fix common/ includes.
482 * i386-fbsd-tdep.c: Fix common/ includes.
483 * i386-fbsd-nat.c: Fix common/ includes.
484 * guile/scm-type.c: Fix common/ includes.
485 * guile/guile.c: Fix common/ includes.
486 * go32-nat.c: Fix common/ includes.
487 * gnu-nat.c: Fix common/ includes.
488 * gdbthread.h: Fix common/ includes.
489 * gdbarch-selftests.c: Fix common/ includes.
490 * gdb_usleep.c: Fix common/ includes.
491 * gdb_select.h: Fix common/ includes.
492 * gdb_bfd.c: Fix common/ includes.
493 * gcore.c: Fix common/ includes.
494 * fork-child.c: Fix common/ includes.
495 * findvar.c: Fix common/ includes.
496 * fbsd-nat.c: Fix common/ includes.
497 * event-top.c: Fix common/ includes.
498 * event-loop.c: Fix common/ includes.
499 * dwarf2read.c: Fix common/ includes.
500 * dwarf2loc.c: Fix common/ includes.
501 * dwarf2-frame.c: Fix common/ includes.
502 * dwarf-index-cache.c: Fix common/ includes.
503 * dtrace-probe.c: Fix common/ includes.
504 * disasm-selftests.c: Fix common/ includes.
505 * defs.h: Fix common/ includes.
506 * csky-tdep.c: Fix common/ includes.
507 * cp-valprint.c: Fix common/ includes.
508 * cp-support.h: Fix common/ includes.
509 * cp-support.c: Fix common/ includes.
510 * corelow.c: Fix common/ includes.
511 * completer.h: Fix common/ includes.
512 * completer.c: Fix common/ includes.
513 * compile/compile.c: Fix common/ includes.
514 * compile/compile-loc2c.c: Fix common/ includes.
515 * compile/compile-cplus-types.c: Fix common/ includes.
516 * compile/compile-cplus-symbols.c: Fix common/ includes.
517 * command.h: Fix common/ includes.
518 * cli/cli-dump.c: Fix common/ includes.
519 * cli/cli-cmds.c: Fix common/ includes.
520 * charset.c: Fix common/ includes.
521 * build-id.c: Fix common/ includes.
522 * btrace.h: Fix common/ includes.
523 * btrace.c: Fix common/ includes.
524 * breakpoint.h: Fix common/ includes.
525 * breakpoint.c: Fix common/ includes.
526 * ax.h:
527 (enum agent_op): Fix common/ includes.
528 * ax-general.c (struct aop_map): Fix common/ includes.
529 * ax-gdb.c: Fix common/ includes.
530 * auxv.c: Fix common/ includes.
531 * auto-load.c: Fix common/ includes.
532 * arm-tdep.c: Fix common/ includes.
533 * arch/riscv.c: Fix common/ includes.
534 * arch/ppc-linux-common.c: Fix common/ includes.
535 * arch/i386.c: Fix common/ includes.
536 * arch/arm.c: Fix common/ includes.
537 * arch/arm-linux.c: Fix common/ includes.
538 * arch/arm-get-next-pcs.c: Fix common/ includes.
539 * arch/amd64.c: Fix common/ includes.
540 * arch/aarch64.c: Fix common/ includes.
541 * arch/aarch64-insn.c: Fix common/ includes.
542 * arch-utils.c: Fix common/ includes.
543 * amd64-windows-tdep.c: Fix common/ includes.
544 * amd64-tdep.c: Fix common/ includes.
545 * amd64-sol2-tdep.c: Fix common/ includes.
546 * amd64-obsd-tdep.c: Fix common/ includes.
547 * amd64-nbsd-tdep.c: Fix common/ includes.
548 * amd64-linux-tdep.c: Fix common/ includes.
549 * amd64-linux-nat.c: Fix common/ includes.
550 * amd64-fbsd-tdep.c: Fix common/ includes.
551 * amd64-fbsd-nat.c: Fix common/ includes.
552 * amd64-dicos-tdep.c: Fix common/ includes.
553 * amd64-darwin-tdep.c: Fix common/ includes.
554 * agent.c: Fix common/ includes.
555 * ada-lang.h: Fix common/ includes.
556 * ada-lang.c: Fix common/ includes.
557 * aarch64-tdep.c: Fix common/ includes.
558
2f5c153e
TT
5592019-01-25 Tom Tromey <tom@tromey.com>
560
561 * common/create-version.sh: Use common/version.h.
562
adc6a863
PA
5632019-01-24 Pedro Alves <palves@redhat.com>
564
565 * infrun.c (signal_stop, signal_print, signal_program)
566 (signal_catch, signal_pass): Now arrays instead of pointers.
567 (update_signals_program_target, do_target_resume)
568 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
569 * linux-nat.c (linux_nat_target::pass_signals)
570 (linux_nat_target::create_inferior, linux_nat_target::attach):
571 Adjust.
572 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
573 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
574 * procfs.c (procfs_target::pass_signals): Adjust.
575 * record-full.c (record_full_target::resume): Adjust.
576 * remote.c (remote_target::pass_signals)
577 (remote_target::program_signals): Adjust.
578 * target-debug.h (target_debug_print_signals): Now takes a
579 gdb::array_view as parameter. Adjust.
580 * target.h (target_ops) <pass_signals, program_signals>: Replace
581 pointer and length parameters with gdb::array_view.
582 (target_pass_signals, target_program_signals): Likewise.
583 * target-delegates.c: Regenerate.
584
3046d67a
PA
5852019-01-24 Pedro Alves <palves@redhat.com>
586
587 * common/forward-scope-exit.h
588 (forward_scope_exit::forward_scope_exit): Pass arguments to
589 m_bind_function directly, instead of creating a std::bind and
590 copying that.
591
353229bf
AH
5922019-01-24 Alan Hayward <alan.hayward@arm.com>
593
594 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
595 for static members.
596 (pass_in_v_vfp_candidate): Likewise.
597
311dc83a
TT
5982019-01-23 Tom Tromey <tom@tromey.com>
599 Pedro Alves <palves@redhat.com>
600
601 * regcache.c (class regcache_invalidator): Remove.
602 (regcache::raw_write): Use make_scope_exit.
603
296bd123
TT
6042019-01-23 Tom Tromey <tom@tromey.com>
605
606 * ui-out.h (class ui_out_emit_type): Update comment.
607
979a0d13
TT
6082019-01-23 Tom Tromey <tom@tromey.com>
609
610 * infrun.c (fetch_inferior_event): Update comment.
611
d238133d
TT
6122019-01-23 Tom Tromey <tom@tromey.com>
613 Pedro Alves <palves@redhat.com>
614
615 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
616 parameter.
617 (fetch_inferior_event): Use SCOPE_EXIT.
618
619
9885e6bb
TT
6202019-01-23 Tom Tromey <tom@tromey.com>
621 Pedro Alves <palves@redhat.com>
622
623 * infrun.c (disable_thread_events): Delete.
624 (stop_all_threads): Use SCOPE_EXIT.
625
286526c1
TT
6262019-01-23 Tom Tromey <tom@tromey.com>
627 Pedro Alves <palves@redhat.com>
628
629 * symfile.c: Include forward-scope-exit.h.
630 (clear_symtab_users_cleanup): Replace forward declaration with
631 a FORWARD_SCOPE_EXIT.
632 (syms_from_objfile_1): Use the forward_scope_exit and
633 gdb::optional instead of cleanup_function.
634 (reread_symbols): Use the forward_scope_exit instead of
635 cleanup_function.
636 (clear_symtab_users_cleanup): Remove function.
637
1db93f14
TT
6382019-01-23 Tom Tromey <tom@tromey.com>
639 Pedro Alves <palves@redhat.com>
640
641 * linux-nat.c: Include scope-exit.h.
642 (cleanup_target_stop): Remove.
643 (linux_nat_target::static_tracepoint_markers_by_strid): Use
644 SCOPE_EXIT.
645
2cc83d1e
TT
6462019-01-23 Tom Tromey <tom@tromey.com>
647 Pedro Alves <palves@redhat.com>
648
649 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
650 (call_function_by_hand_dummy): Use SCOPE_EXIT.
651
694c6bf5
TT
6522019-01-23 Tom Tromey <tom@tromey.com>
653 Andrew Burgess <andrew.burgess@embecosm.com>
654 Pedro Alves <palves@redhat.com>
655
656 * infrun.c (fetch_inferior_event): Use scope_exit.
657 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
658 * top.c (execute_command): Use scope_exit.
659 * breakpoint.c (bpstat_do_actions): Use scope_exit.
660 * utils.c (do_bpstat_clear_actions_cleanup)
661 (make_bpstat_clear_actions_cleanup): Remove.
662
4c41382a
TT
6632019-01-23 Tom Tromey <tom@tromey.com>
664 Pedro Alves <palves@redhat.com>
665
666 * infrun.c: Include "common/scope-exit.h"
667 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
668 (wait_for_inferior): Use SCOPE_EXIT.
669 (fetch_inferior_event): Use scope_exit.
670
89f8fb50
TT
6712019-01-23 Tom Tromey <tom@tromey.com>
672 Pedro Alves <palves@redhat.com>
673
674 * breakpoint.c (create_breakpoint): Remove cleanup.
675
5419bdae
TT
6762019-01-23 Tom Tromey <tom@tromey.com>
677 Andrew Burgess <andrew.burgess@embecosm.com>
678 Pedro Alves <palves@redhat.com>
679
e587ef42
PA
6802019-01-23 Pedro Alves <palves@redhat.com>
681
682 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
683
77f0e74c
PA
6842019-01-23 Pedro Alves <palves@redhat.com>
685 Andrew Burgess <andrew.burgess@embecosm.com>
686
687 * gdbthread.h: Include "common/forward-scope-exit.h".
688 (scoped_finish_thread_state): Redefine custom class in terms of
689 forward_scope_exit.
690
5b9b3e53
PA
6912019-01-23 Pedro Alves <palves@redhat.com>
692 Andrew Burgess <andrew.burgess@embecosm.com>
693
694 * common/forward-scope-exit.h: New file.
695
54b65c9b
PA
6962019-01-23 Pedro Alves <palves@redhat.com>
697 Andrew Burgess <andrew.burgess@embecosm.com>
698 Tom Tromey <tom@tromey.com>
699
700 * common/scope-exit.h: New file.
701
cf08fb29
PA
7022019-01-23 Pedro Alves <palves@redhat.com>
703
704 * common/preprocessor.h (ESC): Rename to ...
705 (ESC_PARENS): ... this.
706 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
707 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
708
ae73e2e2
TT
7092019-01-23 Tom Tromey <tom@tromey.com>
710
711 * language.h (class scoped_switch_to_sym_language_if_auto):
712 Initialize m_lang in both cases.
713
6594e122
AH
7142019-01-23 Alan Hayward <alan.hayward@arm.com>
715
716 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
717 with XCNEW.
718
a7c9855d
TT
7192019-01-22 Tom Tromey <tom@tromey.com>
720
721 * corelow.c: Do not include sys/file.h.
722
93cc1d53
TT
7232019-01-22 Tom Tromey <tom@tromey.com>
724
725 * tui/tui-wingeneral.h: Include gdb_curses.h.
726
38561778
TT
7272019-01-22 Tom Tromey <tom@tromey.com>
728
729 * source-cache.h (class source_cache) <get_source_lines,
730 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
731
37b3ab5b
TT
7322019-01-22 Tom Tromey <tom@tromey.com>
733
734 * remote-fileio.h (struct remote_target): Declare.
735
3fabc016
TT
7362019-01-22 Tom Tromey <tom@tromey.com>
737
738 * python/py-arch.c: Do not include py-ref.h.
739 * python/py-bpevent.c: Do not include py-ref.h.
740 * python/py-cmd.c: Do not include py-ref.h.
741 * python/py-continueevent.c: Do not include py-ref.h.
742 * python/py-event.h: Do not include py-ref.h.
743 * python/py-evtregistry.c: Do not include py-ref.h.
744 * python/py-finishbreakpoint.c: Do not include py-ref.h.
745 * python/py-frame.c: Do not include py-ref.h.
746 * python/py-framefilter.c: Do not include py-ref.h.
747 * python/py-function.c: Do not include py-ref.h.
748 * python/py-infevents.c: Do not include py-ref.h.
749 * python/py-linetable.c: Do not include py-ref.h.
750 * python/py-objfile.c: Do not include py-ref.h.
751 * python/py-param.c: Do not include py-ref.h.
752 * python/py-prettyprint.c: Do not include py-ref.h.
753 * python/py-progspace.c: Do not include py-ref.h.
754 * python/py-symbol.c: Do not include py-ref.h.
755 * python/py-symtab.c: Do not include py-ref.h.
756 * python/py-type.c: Do not include py-ref.h.
757 * python/py-unwind.c: Do not include py-ref.h.
758 * python/py-utils.c: Do not include py-ref.h.
759 * python/py-value.c: Do not include py-ref.h.
760 * python/py-varobj.c: Do not include py-ref.h.
761 * python/py-xmethods.c: Do not include py-ref.h.
762 * python/python.c: Do not include py-ref.h.
763 * varobj.c: Do not include py-ref.h.
764
6b4d7774
TT
7652019-01-22 Tom Tromey <tom@tromey.com>
766
767 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
768 keyword for bcache.
769
7af7e9b5
TT
7702019-01-22 Tom Tromey <tom@tromey.com>
771
772 * compile/compile-cplus-types.c: Remove a comment by #include.
773
951d1049
TT
7742019-01-22 Tom Tromey <tom@tromey.com>
775
776 * compile/gcc-c-plugin.h: Include compile-internal.h.
777
d65d5705
TT
7782019-01-22 Tom Tromey <tom@tromey.com>
779
780 * stabsread.c (EXTERN): Do not define.
781 (symnum, next_symbol_text_func, processing_gcc_compilation)
782 (within_function, global_sym_chain, global_stabs)
783 (previous_stab_code, this_object_header_files)
784 (n_this_object_header_files)
785 (n_allocated_this_object_header_files): Define.
786 * stabsread.h (EXTERN): Never define. Use "extern".
787
b6fb1ee5
PW
7882019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
789
790 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
791 history_value.
792
be6d4f74
TT
7932019-01-21 Tom Tromey <tom@tromey.com>
794
795 * ui-out.c: Fix includes.
796 * tui/tui-source.c: Fix includes.
797 * target.c: Fix includes.
798 * remote.c: Fix includes.
799 * regcache.c: Fix includes.
800 * python/py-block.c: Fix includes.
801 * printcmd.c: Fix includes.
802 * or1k-tdep.c: Fix includes.
803 * mi/mi-main.c: Fix includes.
804 * m32r-tdep.c: Fix includes.
805 * csky-tdep.c: Fix includes.
806 * compile/compile-cplus-types.c: Fix includes.
807 * cli/cli-interp.c: Fix includes.
808
73021deb
AH
8092019-01-21 Alan Hayward <alan.hayward@arm.com>
810
811 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
812 for padding.
813
7932255d
TT
8142019-01-16 Tom Tromey <tom@tromey.com>
815
816 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
817 earlier.
818 (struct objfile) <msymbols_range>: Move from top level.
819 <msymbols>: New method.
820 (class objfile_msymbols): Remove.
821 * symtab.c (default_collect_symbol_completion_matches_break_on):
822 Update.
823 * symmisc.c (dump_msymbols): Update.
824 * stabsread.c (scan_file_globals): Update.
825 * objc-lang.c (info_selectors_command, info_classes_command)
826 (find_methods): Update.
827 * minsyms.c (find_solib_trampoline_target): Update.
828 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
829 * coffread.c (coff_symfile_read): Update.
830 * ada-lang.c (ada_lookup_simple_minsym)
831 (ada_collect_symbol_completion_matches): Update.
832
604b1bfb
TT
8332019-01-16 Tom Tromey <tom@tromey.com>
834
835 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
836 type. Remove no-argument constructor.
837 <iterator::operator++>: Simplify.
838 <begin>: Update.
839 <end>: Use minimal_symbol_count.
840
f252c6d5
TT
8412019-01-16 Tom Tromey <tom@tromey.com>
842
843 * objfiles.h (struct objfile) <psymtabs>: New method.
844 (class objfile_psymtabs): Remove.
845 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
846 typedef.
847 <range>: New method.
848 (require_partial_symbols): Change return type.
849 * psymtab.c (require_partial_symbols)
850 (psym_expand_symtabs_matching): Update.
851 * mdebugread.c (parse_partial_symbols): Update.
852 * dbxread.c (dbx_end_psymtab): Update.
853
b669c953
TT
8542019-01-15 Tom Tromey <tom@tromey.com>
855
856 * symtab.c (lookup_objfile_from_block)
857 (lookup_symbol_in_objfile_symtabs)
858 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
859 (find_line_symtab, info_sources_command)
860 (default_collect_symbol_completion_matches_break_on)
861 (make_source_files_completion_list): Update.
862 * symmisc.c (print_objfile_statistics, dump_objfile)
863 (maintenance_print_symbols, maintenance_info_symtabs)
864 (maintenance_check_symtabs, maintenance_info_line_tables):
865 Update.
866 * source.c (select_source_symtab)
867 (forget_cached_source_info_for_objfile): Update.
868 * objfiles.h (class objfile_compunits): Remove.
869 (struct objfile) <compunits_range>: New typedef.
870 (compunits): New method.
871 * objfiles.c (objfile_relocate1): Update.
872 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
873 * maint.c (count_symtabs_and_blocks): Update.
874 * linespec.c (iterate_over_all_matching_symtabs): Update.
875 * cp-support.c (add_symbol_overload_list_qualified): Update.
876 * coffread.c (coff_symtab_read): Update.
877 * ada-lang.c (add_nonlocal_symbols)
878 (ada_collect_symbol_completion_matches)
879 (ada_add_global_exceptions): Update.
880
7e955d83
TT
8812019-01-15 Tom Tromey <tom@tromey.com>
882
883 * progspace.h (program_space) <objfiles_safe_range>: New
884 typedef.
885 <objfiles_safe>: New method.
886 * objfiles.h (class all_objfiles_safe): Remove.
887 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
888 * jit.c (jit_inferior_exit_hook): Update.
889
2030c079
TT
8902019-01-17 Tom Tromey <tom@tromey.com>
891
892 * progspace.h (program_space) <objfiles_range>: New typedef.
893 <objfiles>: New method.
894 <objfiles_head>: Rename from objfiles.
895 (object_files): Update.
896 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
897 * guile/scm-pretty-print.c
898 (ppscm_find_pretty_printer_from_objfiles): Update.
899 * guile/scm-objfile.c (gdbscm_objfiles): Update.
900 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
901 Update.
902 * python/py-progspace.c (pspy_get_objfiles): Update.
903 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
904 Update.
905 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
906 (objfpy_lookup_objfile_by_build_id): Update.
907 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
908 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
909 Update.
910 * symtab.c (iterate_over_symtabs, matching_obj_sections)
911 (expand_symtab_containing_pc, lookup_objfile_from_block)
912 (lookup_static_symbol, basic_lookup_transparent_type)
913 (find_pc_sect_compunit_symtab, find_symbol_at_address)
914 (find_line_symtab, info_sources_command)
915 (default_collect_symbol_completion_matches_break_on)
916 (make_source_files_completion_list, find_main_name): Update.
917 * symmisc.c (print_symbol_bcache_statistics)
918 (print_objfile_statistics, maintenance_print_symbols)
919 (maintenance_print_msymbols, maintenance_print_objfiles)
920 (maintenance_info_symtabs, maintenance_check_symtabs)
921 (maintenance_expand_symtabs, maintenance_info_line_tables):
922 Update.
923 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
924 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
925 (map_overlay_command, unmap_overlay_command)
926 (simple_overlay_update, expand_symtabs_matching)
927 (map_symbol_filenames): Update.
928 * symfile-debug.c (set_debug_symfile): Update.
929 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
930 Update.
931 * source.c (select_source_symtab, forget_cached_source_info):
932 Update.
933 * solib.c (solib_read_symbols): Update.
934 * solib-spu.c (append_ocl_sos): Update.
935 * psymtab.c (maintenance_print_psymbols)
936 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
937 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
938 * printcmd.c (info_symbol_command): Update.
939 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
940 Update.
941 * objfiles.h (class all_objfiles): Remove.
942 * objfiles.c (have_partial_symbols, have_full_symbols)
943 (have_minimal_symbols, qsort_cmp, update_section_map)
944 (shared_objfile_contains_address_p)
945 (default_iterate_over_objfiles_in_search_order): Update.
946 * objc-lang.c (info_selectors_command, info_classes_command)
947 (find_methods): Update.
948 * minsyms.c (find_solib_trampoline_target): Update.
949 * maint.c (maintenance_info_sections)
950 (maintenance_translate_address, count_symtabs_and_blocks):
951 Update.
952 * main.c (captured_main_1): Update.
953 * linux-thread-db.c (try_thread_db_load_from_pdir)
954 (has_libpthread): Update.
955 * linespec.c (iterate_over_all_matching_symtabs)
956 (search_minsyms_for_name): Update.
957 * jit.c (jit_find_objf_with_entry_addr): Update.
958 * hppa-tdep.c (find_unwind_entry)
959 (hppa_lookup_stub_minimal_symbol): Update.
960 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
961 Update.
962 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
963 (elf_gnu_ifunc_resolve_by_got): Update.
964 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
965 * dwarf-index-write.c (save_gdb_index_command): Update.
966 * cp-support.c (add_symbol_overload_list_qualified): Update.
967 * breakpoint.c (create_overlay_event_breakpoint)
968 (create_longjmp_master_breakpoint)
969 (create_std_terminate_master_breakpoint)
970 (create_exception_master_breakpoint): Update.
971 * blockframe.c (find_pc_partial_function): Update.
972 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
973 (ada_collect_symbol_completion_matches)
974 (ada_add_global_exceptions): Update.
975
776489e0
TT
9762019-01-17 Tom Tromey <tom@tromey.com>
977
978 * solib-target.c (lm_info_target_p): Remove typedef. Don't
979 declare VEC.
980 (solib_target_parse_libraries): Change return type.
981 (library_list_start_segment, library_list_start_section)
982 (library_list_end_library, library_list_start_library); Update.
983 (solib_target_free_library_list): Remove.
984 (solib_target_parse_libraries): Remove cleanup. Change return
985 type.
986 (solib_target_current_sos): Update.
987
6471e7d2
TT
9882019-01-17 Tom Tromey <tromey@bapiya>
989
990 * valprint.c: Replace "the the" with "the".
991 * symtab.c: Replace "the the" with "the".
992 * solib.c: Replace "the the" with "the".
993 * solib-dsbt.c: Replace "the the" with "the".
994 * linespec.c: Replace "the the" with "the".
995 * dwarf2loc.h: Replace "the the" with "the".
996 * amd64-windows-tdep.c: Replace "the the" with "the".
997 * aarch64-tdep.c: Replace "the the" with "the".
998
c24bdb02
KS
9992019-01-16 Keith Seitz <keiths@redhat.com>
1000
1001 PR gdb/23773
1002 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
1003 <builder>: Rename to ..
1004 <m_builder>: ... this and make private.
1005 (dwarf2_cu::get_builder): New method. Change all users of
1006 `builder' to use this method.
1007 (dwarf2_start_symtab): Move to ...
1008 (dwarf2_cu::start_symtab): ... here. Update all callers
1009 (setup_type_unit_groups): Move to ...
1010 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
1011 callers.
1012 (dwarf2_cu::reset_builder): New method.
1013 (process_full_compunit, process_full_type_unit): Use
1014 dwarf2_cu::reset_builder.
1015 (follow_die_offset): Record the ancestor CU if it is different
1016 from the followed DIE's CU.
1017 (follow_die_sig_1): Likewise.
1018
8d64371b
TT
10192019-01-15 Tom Tromey <tom@tromey.com>
1020
1021 * remote.c (class remote_state) <buf>: Now a char_vector.
1022 <buf_size>: Remove.
1023 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
1024 parameter.
1025 (remote_target::getpkt_or_notif_sane_1)
1026 (remote_target::getpkt_sane)
1027 (remote_target::getpkt_or_notif_sane): Likewise.
1028 (class remote_target) <putpkt>: New overload.
1029 (remote_target::read_frame): Change type of "buf_p". Remove
1030 sizeof_p parameter.
1031 (packet_ok): New overload.
1032 (packet_check_result): New overload.
1033 Update all uses.
1034
bb277751
TT
10352019-01-14 Tom Tromey <tom@tromey.com>
1036
1037 * remote-notif.c (handle_notification, remote_notif_ack)
1038 (remote_notif_parse): Make "buf" const.
1039 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
1040 const.
1041 (remote_notif_parse, remote_notif_ack, handle_notification):
1042 Likewise.
1043 * remote.c (remote_notif_stop_parse): Make "buf" const.
1044 (remote_target::remote_parse_stop_reply): Make "buf" const.
1045 (remote_notif_stop_ack): Make "buf" const.
1046
05be00a8
TT
10472019-01-14 Tom Tromey <tom@tromey.com>
1048
1049 * remote.c (remote_console_output): Make parameter const.
1050
491adeca
TT
10512019-01-14 Tom Tromey <tom@tromey.com>
1052
1053 * target-debug.h (target_debug_print_signals): Constify.
1054 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
1055 * procfs.c (procfs_target::pass_signals): Update.
1056 * linux-nat.c (linux_nat_target::pass_signals): Update.
1057 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
1058 * target-delegates.c: Rebuild.
1059 * remote.c (remote_target::program_signals): Update.
1060 (remote_target::pass_signals): Update.
1061 * target.c (target_pass_signals): Constify argument.
1062 (target_program_signals): Likewise.
1063 * target.h (struct target_ops) <pass_signals, program_signals>:
1064 Constify argument.
1065 (target_pass_signals, target_program_signals): Constify argument.
1066
bbd94648
TT
10672019-01-14 Tom Tromey <tom@tromey.com>
1068
1069 PR tui/28819:
1070 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
1071
6f072a10
PFC
10722019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1073
1074 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
1075 field.
1076 * rs6000-tdep.c: Include reggroups.h.
1077 (IS_V_ALIAS_PSEUDOREG): Define.
1078 (rs6000_register_name): Return names for the "vX" aliases.
1079 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
1080 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
1081 aliases. Call default_register_reggroup_p for all other
1082 pseudo-registers.
1083 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
1084 New functions.
1085 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
1086 Handle "vX" aliases.
1087 (v_alias_pseudo_register_collect): New function.
1088 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
1089 (rs6000_gdbarch_init): Initialize "vX" aliases as
1090 pseudo-registers. Restore registration of
1091 rs6000_pseudo_register_reggroup_p with
1092 set_tdesc_pseudo_register_reggroup_p.
1093
1a782351
MF
10942019-01-13 Max Filippov <jcmvbkbc@gmail.com>
1095
1096 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
1097 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
1098 set_gdbarch_num_pseudo_regs.
1099
d73cff18
PW
11002019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1101
1102 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
1103 Remove arg prefixname, add do_set and do_show.
1104 Add member functions set_list and show_list.
1105 * cli/cli-style.c (class cli_style_option): Update accordingly.
1106 (style_set_list): Move to file scope.
1107 (style_show_list): Likewise.
1108 (set_style): Call help_list.
1109 (show_style): Call cmd_show_list.
1110 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
1111 Update to use the new macro.
1112
60a90376
JB
11132019-10-12 Joel Brobecker <brobecker@adacore.com>
1114
1115 * ada-lang.c (_initialize_ada_language): Expand the help text
1116 for the "catch exception" command.
1117
9d7c67bf
PW
11182019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1119
1120 * symtab.c (matching_obj_sections): Initialize obj,
1121 declare it closer to its usage.
1122
7cf47dc4
TT
11232019-01-10 Tom Tromey <tom@tromey.com>
1124
1125 * thread-iter.h (inf_threads_iterator): Use next_iterator.
1126 (basic_inf_threads_range): Remove.
1127 (inf_threads_range, inf_non_exited_threads_range)
1128 (safe_inf_threads_range): Use next_adapter.
1129
d3cb6808
KS
11302019-01-10 Keith Seitz <keiths@redhat.com>
1131
1132 PR gdb/23712
1133 PR symtab/23010
1134 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
1135 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
1136
63a20375
KS
11372019-01-10 Keith Seitz <keiths@redhat.com>
1138
1139 PR gdb/23712
1140 PR symtab/23010
1141 * dictionary.c (pending_to_vector): Remove.
1142 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
1143 Remove _1 suffix, replacing functions of the same name. Update
1144 all callers.
1145 (dict_create_hashed, dict_create_hashed_expandable)
1146 (dict_create_linear, dict_create_linear_expandable, dict_free)
1147 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
1148 Make functions static.
1149
b026f593
KS
11502019-01-10 Keith Seitz <keiths@redhat.com>
1151
1152 PR gdb/23712
1153 PR symtab/23010
1154 * dictionary.h (struct dictionary): Replace declaration with
1155 multidictionary.
1156 (dict_create_hashed, dict_create_hashed_expandable)
1157 (dict_create_linear, dict_create_linear_expandable)
1158 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
1159 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
1160 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
1161 taking multidictionary argument.
1162 [ALL_DICT_SYMBOLS]: Update for multidictionary.
1163 * block.h (struct block) <dict>: Change to multidictionary
1164 and rename `multidict'.
1165 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
1166 symmisc.c: Update all dictionary references to multidictionary.
1167
c7748ee9
KS
11682019-01-10 Keith Seitz <keiths@redhat.com>
1169
1170 PR gdb/23712
1171 PR symtab/23010
1172 * dictionary.c: Include unordered_map.
1173 (pending_to_vector): New function.
1174 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
1175 Rewrite the non-"_1" functions to take vector instead
1176 of linked list.
1177 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
1178 "new" _1 versions of the same name.
1179 (multidictionary): Define.
1180 (std::hash<enum language): New definition.
1181 (collate_pending_symbols_by_language, mdict_create_hashed)
1182 (mdict_create_hashed_expandable, mdict_create_linear)
1183 (mdict_create_linear_expandable, mdict_free)
1184 (find_language_dictionary, create_new_language_dictionary)
1185 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
1186 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
1187 (mdict_size, mdict_empty): New functions.
1188 * dictionary.h (mdict_iterator): Define.
1189
67aa1f3c
PA
11902019-01-10 Pedro Alves <palves@redhat.com>
1191
1192 * breakpoint.c (read_uploaded_action)
1193 (create_tracepoint_from_upload): Adjust to use
1194 gdb::unique_xmalloc_ptr.
1195 * ctf.c (ctf_write_uploaded_tp):
1196 (SET_ARRAY_FIELD): Use emplace_back.
1197 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
1198 * tracefile-tfile.c (tfile_write_uploaded_tp):
1199 * tracepoint.c (parse_tracepoint_definition): Adjust to use
1200 gdb::unique_xmalloc_ptr.
1201 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
1202 at_string, cond_string, cmd_strings>: Replace char pointers
1203 with gdb::unique_xmalloc_ptr.
1204
2f667667
PA
12052019-01-10 Pedro Alves <palves@redhat.com>
1206
1207 * solib-target.c (library_list_start_library): Don't xstrdup name.
1208
36cb7237
PA
12092019-01-10 Pedro Alves <palves@redhat.com>
1210
1211 * mdebugread.c (parse_partial_symbols): Use
1212 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
1213
da584958
AB
12142019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
1215
1216 * linux-fork.c (scoped_switch_fork_info)
1217 <~scoped_switch_fork_info>: Fix incorrect variable name.
1218
1ef8573c
AB
12192019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
1220
1221 * linux-fork.c (scoped_switch_fork_info)
1222 <scoped_switch_fork_info>: Make explicit.
1223 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
1224
8d7bcccb
TT
12252019-01-10 Tom Tromey <tom@tromey.com>
1226
1227 * objfiles.h (objfile::reset_psymtabs): Update.
1228 * objfiles.c (objfile::objfile): Update.
1229 * psymtab.h (psymtab_storage::obstack): Update.
1230 (psymtab_storage::m_obstack): Use gdb::optional.
1231 (class psymtab_storage): Update comment. Remove objfile
1232 parameter.
1233 * psymtab.c (psymtab_storage::psymtab_storage): Update.
1234
b596a3c7
TT
12352019-01-10 Tom Tromey <tom@tromey.com>
1236
1237 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
1238 <free_psymtabs>: Now private.
1239 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
1240 (allocate_psymtab): Use new method.
1241
a9342b62
TT
12422019-01-10 Tom Tromey <tom@tromey.com>
1243
1244 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
1245 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
1246 * mdebugread.c (parse_partial_symbols): Use
1247 allocate_dependencies.
1248 * dwarf2read.c (dwarf2_create_include_psymtab): Use
1249 allocate_dependencies.
1250 (process_psymtab_comp_unit_reader)
1251 (build_type_psymtab_dependencies): Likewise.
1252 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
1253
5af70966
TT
12542019-01-10 Tom Tromey <tom@tromey.com>
1255
1256 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
1257 PSYMBOL_SET_LANGUAGE.
1258 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
1259
5923a04c
TT
12602019-01-10 Tom Tromey <tom@tromey.com>
1261
1262 * psymtab.h (psymtab_storage::obstack): New method.
1263 <m_obstack>: Rename from obstack; now private.
1264 * psymtab.c (psymtab_storage): Update.
1265 * dwarf2read.c (create_addrmap_from_index)
1266 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
1267 Update.
1268
6d6a12bf
TT
12692019-01-10 Tom Tromey <tom@tromey.com>
1270
1271 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
1272 * objfiles.h (objfile::reset_psymtabs): New method.
1273
d320c2b5
TT
12742019-01-10 Tom Tromey <tom@tromey.com>
1275
1276 * symmisc.c (print_symbol_bcache_statistics): Update.
1277 (print_objfile_statistics): Update.
1278 * symfile.c (reread_symbols): Update.
1279 * psymtab.h (class psymtab_storage): New.
1280 * psymtab.c (psymtab_storage): New constructor.
1281 (~psymtab_storage): New destructor.
1282 (require_partial_symbols): Update.
1283 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
1284 (find_pc_sect_psymtab, find_pc_sect_psymbol)
1285 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
1286 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
1287 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
1288 (start_psymtab_common, end_psymtab_common)
1289 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
1290 (allocate_psymtab): Update.
1291 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
1292 Update.
1293 (dump_psymtab_addrmap, maintenance_print_psymbols)
1294 (maintenance_check_psymtabs): Update.
1295 (class objfile_psymtabs): Move to objfiles.h.
1296 * psympriv.h (discard_psymtab): Now inline.
1297 (psymtab_discarder::psymtab_discarder): Update.
1298 (psymtab_discarder::~psymtab_discarder): Update.
1299 (ALL_OBJFILE_PSYMTABS): Rewrite.
1300 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
1301 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
1302 Remove fields.
1303 <partial_symtabs>: New field.
1304 (class objfile_psymtabs): Move from psymtab.h. Update.
1305 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
1306 psymbol_cache.
1307 (objfile::~objfile): Don't destroy psymbol_cache.
1308 * mdebugread.c (parse_partial_symbols): Update.
1309 * dwarf2read.c (create_addrmap_from_index)
1310 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
1311 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
1312 (add_partial_subprogram, dwarf2_ranges_read): Update.
1313 * dwarf-index-write.c (write_address_map)
1314 (write_one_signatured_type, recursively_write_psymbols)
1315 (class debug_names, class debug_names, write_psymtabs_to_index):
1316 Update.
1317
1d94a5a3
TT
13182019-01-10 Tom Tromey <tom@tromey.com>
1319
1320 * symtab.h (SYMBOL_SET_NAMES): Update.
1321 (symbol_set_names): Update.
1322 (MSYMBOL_SET_NAMES): Update.
1323 * symtab.c (symbol_set_names): Change argument to be an
1324 objfile_per_bfd_storage.
1325 * psymtab.c (add_psymbol_to_bcache): Update.
1326 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
1327
0f14768a
TT
13282019-01-10 Tom Tromey <tom@tromey.com>
1329
1330 * symtab.c (create_demangled_names_hash): Change argument to be an
1331 objfile_per_bfd_storage.
1332 (symbol_set_names): Update.
1333
6eee24ce
TT
13342019-01-10 Tom Tromey <tom@tromey.com>
1335
1336 * xcoffread.c (xcoff_initial_scan): Unconditionally call
1337 init_psymbol_list.
1338 * psymtab.c (init_psymbol_list): Do nothing if already called.
1339 * psympriv.h (init_psymbol_list): Add comment.
1340 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
1341 init_psymbol_list.
1342 * dbxread.c (dbx_symfile_read): Unconditionally call
1343 init_psymbol_list.
1344
75aedd27
TT
13452019-01-10 Tom Tromey <tom@tromey.com>
1346
1347 * xcoffread.c (scan_xcoff_symtab): Update.
1348 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
1349 "where".
1350 * mdebugread.c (parse_partial_symbols)
1351 (handle_psymbol_enumerators): Update.
1352 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
1353 * dbxread.c (read_dbx_symtab): Update.
1354 * psympriv.h (psymbol_placement): New enum.
1355 (add_psymbol_to_list): Update.
1356
939652a5
TT
13572019-01-10 Tom Tromey <tom@tromey.com>
1358
1359 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
1360 static_psymbols parameters.
1361 (scan_xcoff_symtab): Update.
1362 * psymtab.c (start_psymtab_common): Remove global_psymbols and
1363 static_psymbols parameters.
1364 * psympriv.h (start_psymtab_common): Update.
1365 * mdebugread.c (parse_partial_symbols): Update.
1366 * dwarf2read.c (create_partial_symtab): Update.
1367 * dbxread.c (read_dbx_symtab): Update.
1368 (start_psymtab): Remove global_psymbols and static_psymbols
1369 parameters.
1370
baa62830
TT
13712019-01-10 Tom Tromey <tom@tromey.com>
1372
1373 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
1374 * psymtab.c (allocate_psymtab): Add comment.
1375 * psympriv.h (allocate_psymtab): Add comment.
1376 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
1377 initializations.
1378 * dbxread.c (dbx_end_psymtab): Remove some initializations.
1379
0e8f53ba
TT
13802019-01-10 Tom Tromey <tom@tromey.com>
1381
1382 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
1383 Don't declare.
1384 * mipsread.c: Include mdebugread.h.
1385 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
1386 Declare.
1387 * elfread.c: Include mdebugread.h.
1388
b22a7c6a
TT
13892019-01-09 Tom Tromey <tom@tromey.com>
1390
1391 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
1392 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
1393 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
1394 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1395 (psym_lookup_symbol, psym_find_last_source_symtab)
1396 (psym_forget_cached_source_info, psym_print_stats)
1397 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1398 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1399 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1400 (psym_find_compunit_symtab_by_address)
1401 (maintenance_print_psymbols, maintenance_info_psymtabs)
1402 (maintenance_check_psymtabs): Use ranged for.
1403 * psymtab.h (class objfile_psymtabs): New.
1404 (require_partial_symbols): Return objfile_psymtabs.
1405 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
1406
3b9d3ac2
TT
14072019-01-09 Tom Tromey <tom@tromey.com>
1408
1409 * symfile.c (overlay_invalidate_all, find_pc_overlay)
1410 (find_pc_mapped_section, list_overlays_command)
1411 (map_overlay_command, unmap_overlay_command)
1412 (simple_overlay_update): Use all_objfiles.
1413 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
1414 * printcmd.c (info_symbol_command): Use all_objfiles.
1415 * objfiles.h (ALL_OBJSECTIONS): Remove.
1416 * maint.c (maintenance_translate_address): Use all_objfiles.
1417 * gcore.c (gcore_create_callback): Use all_objfiles.
1418 (objfile_find_memory_regions): Likewise.
1419
8b31193a
TT
14202019-01-09 Tom Tromey <tom@tromey.com>
1421
1422 * symtab.c (find_line_symtab, info_sources_command)
1423 (make_source_files_completion_list): Use objfile_compunits.
1424 * source.c (select_source_symtab): Use objfile_compunits.
1425 * objfiles.h (struct objfile): Update comment.
1426 (ALL_OBJFILES): Remove.
1427 (ALL_FILETABS): Remove.
1428 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
1429 objfile_compunits.
1430
d5da8b3c
TT
14312019-01-09 Tom Tromey <tom@tromey.com>
1432
1433 * symmisc.c (print_objfile_statistics, dump_objfile)
1434 (maintenance_print_symbols): Use compunit_filetabs.
1435 * source.c (forget_cached_source_info_for_objfile): Use
1436 compunit_filetabs.
1437 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
1438 (ALL_FILETABS): Use compunit_filetabs.
1439 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
1440 * coffread.c (coff_symtab_read): Use compunit_filetabs.
1441
5accd1a0
TT
14422019-01-09 Tom Tromey <tom@tromey.com>
1443
1444 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
1445 (compunit_filetabs): New.
1446 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
1447 compunit_filetabs.
1448 (info_sources_command, make_source_files_completion_list): Remove
1449 declaration.
1450 * symmisc.c (print_objfile_statistics, dump_objfile)
1451 (maintenance_print_symbols): Remove declaration.
1452 (maintenance_info_symtabs): Use compunit_filetabs.
1453 (maintenance_info_line_tables): Likewise.
1454 * source.c (select_source_symtab): Change local variable name.
1455 (forget_cached_source_info_for_objfile): Remove declaration.
1456 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
1457 * objfiles.c (objfile_relocate1): Remove declaration.
1458 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
1459 declaration.
1460 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
1461 * coffread.c (coff_symtab_read): Remove declaration.
1462 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1463 compunit_filetabs.
1464
d8aeb77f
TT
14652019-01-09 Tom Tromey <tom@tromey.com>
1466
1467 * symtab.c (lookup_objfile_from_block)
1468 (find_pc_sect_compunit_symtab, search_symbols)
1469 (default_collect_symbol_completion_matches_break_on): Use
1470 objfile_compunits.
1471 * objfiles.h (ALL_COMPUNITS): Remove.
1472 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
1473 * cp-support.c (add_symbol_overload_list_qualified): Use
1474 objfile_compunits.
1475 * ada-lang.c (ada_collect_symbol_completion_matches)
1476 (ada_add_global_exceptions): Use objfile_compunits.
1477
592553c4
TT
14782019-01-09 Tom Tromey <tom@tromey.com>
1479
1480 * source.c (select_source_symtab)
1481 (forget_cached_source_info_for_objfile): Remove declaration.
1482 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
1483 declaration.
1484 * maint.c (count_symtabs_and_blocks): Remove declaration.
1485 * cp-support.c (add_symbol_overload_list_qualified): Remove
1486 declaration.
1487 * coffread.c (coff_symtab_read): Remove declaration.
1488 * symtab.c (lookup_symbol_in_objfile_symtabs)
1489 (basic_lookup_transparent_type_1): Use objfile_compunits.
1490 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
1491 (info_sources_command, search_symbols)
1492 (default_collect_symbol_completion_matches_break_on)
1493 (make_source_files_completion_list): Remove declaration.
1494 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
1495 (ada_collect_symbol_completion_matches)
1496 (ada_add_global_exceptions): Remove declaration.
1497 * linespec.c (iterate_over_all_matching_symtabs): Use
1498 objfile_compunits.
1499 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
1500 (class objfile_compunits): New.
1501 (ALL_COMPUNITS): Use objfile_compunits.
1502 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
1503 (maintenance_check_symtabs, maintenance_info_line_tables): Use
1504 objfile_compunits.
1505 * objfiles.c (objfile_relocate1): Use objfile_compunits.
1506
5325b9bf
TT
15072019-01-09 Tom Tromey <tom@tromey.com>
1508
1509 * symtab.c (search_symbols)
1510 (default_collect_symbol_completion_matches_break_on): Use
1511 objfile_msymbols.
1512 * ada-lang.c (ada_lookup_simple_minsym)
1513 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
1514 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
1515 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
1516 objfile_msymbols.
1517 * coffread.c (coff_symfile_read): Use objfile_msymbols.
1518 * symmisc.c (dump_msymbols): Use objfile_msymbols.
1519 * objc-lang.c (find_methods): Use objfile_msymbols.
1520 (info_selectors_command, info_classes_command): Likewise.
1521 * stabsread.c (scan_file_globals): Use objfile_msymbols.
1522 * objfiles.h (class objfile_msymbols): New.
1523 (ALL_OBJFILE_MSYMBOLS): Remove.
1524 (ALL_MSYMBOLS): Remove.
1525
cac85af2
TT
15262019-01-09 Tom Tromey <tom@tromey.com>
1527
1528 * common/next-iterator.h (next_adapter): Add Iterator template
1529 parameter.
1530 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
1531 (class all_objfiles_safe): New.
1532 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
1533 * objfiles.c (put_objfile_before): Update comment.
1534 (add_separate_debug_objfile): Likewise.
1535 (free_all_objfiles): Use all_objfiles_safe.
1536 (objfile_purge_solibs): Likewise.
1537
aed57c53
TT
15382019-01-09 Tom Tromey <tom@tromey.com>
1539
1540 * symtab.c (iterate_over_symtabs, matching_obj_sections)
1541 (expand_symtab_containing_pc, lookup_static_symbol)
1542 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
1543 (find_symbol_at_address, find_line_symtab, find_main_name): Use
1544 all_objfiles.
1545 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
1546 * breakpoint.c (create_overlay_event_breakpoint)
1547 (create_longjmp_master_breakpoint)
1548 (create_std_terminate_master_breakpoint)
1549 (create_exception_master_breakpoint): Use all_objfiles.
1550 * linux-thread-db.c (try_thread_db_load_from_pdir)
1551 (has_libpthread): Use all_objfiles.
1552 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
1553 * linespec.c (iterate_over_all_matching_symtabs)
1554 (search_minsyms_for_name): Use all_objfiles.
1555 * maint.c (maintenance_info_sections): Use all_objfiles.
1556 * main.c (captured_main_1): Use all_objfiles.
1557 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
1558 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
1559 * guile/scm-pretty-print.c
1560 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
1561 * solib-spu.c (append_ocl_sos): Use all_objfiles.
1562 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
1563 (maintenance_print_msymbols): Use all_objfiles.
1564 * source.c (select_source_symtab): Use all_objfiles.
1565 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
1566 * symfile.c (remove_symbol_file_command)
1567 (expand_symtabs_matching, map_symbol_filenames): Use
1568 all_objfiles.
1569 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
1570 all_objfiles.
1571 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
1572 * objc-lang.c (find_methods): Use all_objfiles.
1573 * objfiles.c (have_partial_symbols, have_full_symbols)
1574 (have_minimal_symbols, qsort_cmp)
1575 (default_iterate_over_objfiles_in_search_order): Use
1576 all_objfiles.
1577 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
1578 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
1579 (maintenance_check_psymtabs): Use all_objfiles.
1580 (ALL_PSYMTABS): Remove.
1581 * compile/compile-object-run.c (do_module_cleanup): Use
1582 all_objfiles.
1583 * blockframe.c (find_pc_partial_function): Use all_objfiles.
1584 * cp-support.c (add_symbol_overload_list_qualified): Use
1585 all_objfiles.
1586 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
1587 Use all_objfiles.
1588 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
1589 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
1590 all_objfiles.
1591 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
1592 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
1593 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
1594 Uses all_objfiles.
1595 * solib.c (solib_read_symbols): Use all_objfiles
1596
99d89cde
TT
15972019-01-09 Tom Tromey <tom@tromey.com>
1598
1599 * probe.c (parse_probes_in_pspace): Use all_objfiles.
1600 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
1601 all_objfiles.
1602 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
1603 * symmisc.c (print_symbol_bcache_statistics)
1604 (print_objfile_statistics, maintenance_print_objfiles)
1605 (maintenance_info_symtabs, maintenance_check_symtabs)
1606 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
1607 all_objfiles.
1608 * source.c (forget_cached_source_info): Use all_objfiles.
1609 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
1610 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
1611 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
1612 * objfiles.c (update_section_map): Use all_objfiles.
1613 (shared_objfile_contains_address_p): Likewise.
1614 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
1615 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
1616
21708325
TT
16172019-01-09 Tom Tromey <tom@tromey.com>
1618
1619 * common/next-iterator.h: New file.
1620 * objfiles.h (class all_objfiles): New.
1621 (struct objfile_iterator): New.
1622
669e09f6
PW
16232019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1624
1625 * NEWS: Move the description of the changed "frame", "select-frame",
1626 and "info frame" commands to the Changed commands section.
1627
041be526
SM
16282019-01-09 Simon Marchi <simon.marchi@ericsson.com>
1629
1630 * gdbtypes.c (check_stub_method_group): Remove handling of old
1631 mangling schemes.
1632 * linespec.c (find_methods): Likewise.
1633 * stabsread.c (read_member_functions): Likewise.
1634 * valops.c (search_struct_method): Likewise.
1635 (value_struct_elt_for_reference): Likewise.
1636 * NEWS: Mention this change.
1637
0e2a2133
AB
16382019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
1639
1640 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
1641 print_source_lines.
1642 * source.c (print_source_lines_base): Update line number check.
1643 (print_source_lines): New function.
1644 (source_lines_range::source_lines_range): New function.
1645 * source.h (class source_lines_range): New class.
1646 (print_source_lines): New declaration.
1647
1055a3b4
PW
16482019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1649
1650 * linespec.c (linespec_state_destructor): Free self->canonical_names.
1651
cfeadda5
TT
16522019-01-08 Tom Tromey <tom@tromey.com>
1653 Simon Marchi <simon.marchi@ericsson.com>
1654
1655 PR gdb/24060
1656 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
1657 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
1658 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
1659 * f-exp.y (DOLLAR_VARIABLE): Likewise.
1660 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
1661 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
1662
583068ca
AB
16632019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
1664
1665 * source.c (select_source_symtab): Move header comment to
1666 declaration in source.h.
1667 (forget_cached_source_info_for_objfile): Likewise.
1668 (forget_cached_source_info): Likewise.
1669 (identify_source_line): Likewise.
1670 * source.h (identify_source_line): Move declaration from symtab.h
1671 and add comment from source.c
1672 (print_source_lines): Likewise.
1673 (forget_cached_source_info_for_objfile): Likewise.
1674 (forget_cached_source_info): Likewise.
1675 (select_source_symtab): Likewise.
1676 (enum print_source_lines_flag): Move definition from symtab.h.
1677 * symtab.h (identify_source_line): Move declaration to source.h.
1678 (print_source_lines): Likewise.
1679 (forget_cached_source_info_for_objfile): Likewise.
1680 (forget_cached_source_info): Likewise.
1681 (select_source_symtab): Likewise.
1682 (enum print_source_lines_flag): Move definition to source.h.
1683 * tui/tui-hooks.c: Add 'source.h' include.
1684
ec98a4ad
AB
16852019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
1686
1687 * source.c (print_source_lines_base): Handle requests to print
1688 reverse line number sequences, and guard against empty lines
1689 string.
1690
62ea19c1
AB
16912019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
1692
1693 * source.c (print_source_lines_base): Fix skip of '\r' if next
1694 character is '\n'.
1695
9d30e1fd
TT
16962019-01-06 Tom Tromey <tom@tromey.com>
1697
1698 * c-exp.y (struct c_parse_state) <macro_original_text,
1699 expansion_obstack>: New member.
1700 (macro_original_text, expansion_obstack): Remove globals.
1701 (scan_macro_expansion, scanning_macro_expansion)
1702 (finished_macro_expansion): Update.
1703 (scan_macro_cleanup): Remove.
1704 (yylex, c_parse): Update.
1705
c65bac38
TT
17062019-01-06 Tom Tromey <tom@tromey.com>
1707
1708 * c-exp.y (struct c_parse_state) <strings>: New member.
1709 (operator_stoken): Update.
1710
02e12e38
TT
17112019-01-06 Tom Tromey <tom@tromey.com>
1712
1713 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
1714 (union type_stack_elt) <typelist_val>: Now a pointer to
1715 std::vector.
1716 (type_stack_cleanup): Don't declare.
1717 (push_typelist): Update.
1718 * parse.c (pop_typelist): Return a std::vector.
1719 (push_typelist): Take a std::vector.
1720 (follow_types): Update. Do not free args.
1721 (type_stack_cleanup): Remove.
1722 * c-exp.y (struct c_parse_state): New.
1723 (cpstate): New global.
1724 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
1725 (nonempty_typelist): Update.
1726 (func_mod): Create a new vector.
1727 (c_parse): Create a c_parse_state.
1728 (check_parameter_typelist): Do not delete params.
1729 (function_method): Update. Do not delete type_list.
1730
f097f5ad
TT
17312019-01-06 Tom Tromey <tom@tromey.com>
1732
1733 PR gdb/28155:
1734 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
1735 check_typedef.
1736 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
1737 (print_return_value): Likewise.
1738
d2adf9f1
TT
17392019-01-05 Tom Tromey <tom@tromey.com>
1740
1741 * contrib/cleanup_check.py: Remove.
1742 * contrib/gcc-with-excheck: Remove.
1743 * contrib/exsummary.py: Remove.
1744 * contrib/excheck.py: Remove.
1745
2eab46b1
JB
17462019-01-05 Joel Brobecker <brobecker@adacore.com>
1747
1748 * thread.c (delete_thread_1): Add gdb_assert that THR is not
1749 NULL. Initialize tpprev to NULL instead of assigning it
1750 to NULL on the next statement.
1751 * windows-nat.c (windows_delete_thread): Remove check for
1752 main_thread_id before printing thread exit notifications.
1753 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
1754 Remove thread ID check against main_thread_id.
1755 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
1756 windows_delete_thread.
1757 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
1758
48c5e7e2
TT
17592019-01-04 Tom Tromey <tom@tromey.com>
1760
1761 * compile/compile.c (_initialize_compile): Use upper case for
1762 metasyntactic variables.
1763 * symmisc.c (_initialize_symmisc): Use upper case for
1764 metasyntactic variables.
1765 * psymtab.c (_initialize_psymtab): Use upper case for
1766 metasyntactic variables.
1767 * demangle.c (demangle_command): Use upper case for metasyntactic
1768 variables.
1769 (_initialize_demangler): Likewise.
1770 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
1771 variables.
1772
986041cd
TT
17732019-01-03 Tom Tromey <tom@tromey.com>
1774
1775 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
1776
7c711119
TT
17772019-01-03 Tom Tromey <tom@tromey.com>
1778
1779 * python/py-symtab.c (salpy_str): Update.
1780 (struct salpy_sal_object) <symtab>: Now a PyObject.
1781 (salpy_dealloc): Update.
1782 (del_objfile_sal): Use gdbpy_ref.
1783
1b20edf0
TT
17842019-01-03 Tom Tromey <tom@tromey.com>
1785
1786 * python/py-type.c (convert_field): Use new_reference. Return
1787 gdbpy_ref.
1788 (make_fielditem): Return gdbpy_ref.
1789 (typy_fields): Update.
1790 (typy_getitem): Update.
1791 (field_name): Return gdbpy_ref. Use new_reference.
1792 (typy_iterator_iternext): Update.
1793
ea41325b
TT
17942019-01-03 Tom Tromey <tom@tromey.com>
1795
1796 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
1797
2a3c71d6
TT
17982019-01-03 Tom Tromey <tom@tromey.com>
1799
1800 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
1801 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
1802 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
1803 (pspy_set_frame_filters, pspy_set_frame_unwinders)
1804 (pspy_set_type_printers): Likewise.
1805 * python/py-function.c (fnpy_init): Use gdbpy_ref.
1806 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
1807 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
1808 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
1809 (objfpy_set_type_printers): Likewise.
1810
5c329e6a
TT
18112019-01-03 Tom Tromey <tom@tromey.com>
1812
1813 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
1814 (gdbpy_print_stack): Use gdbpy_err_fetch.
1815 * python/python-internal.h (class gdbpy_err_fetch): New class.
1816 (class gdbpy_enter) <m_error_type, m_error_value,
1817 m_error_traceback>: Remove.
1818 <m_error>: New member.
1819 (gdbpy_exception_to_string): Don't declare.
1820 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
1821 * python/py-value.c (convert_value_from_python): Use
1822 gdbpy_err_fetch.
1823 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
1824 gdbpy_exception_to_string.
1825 (gdbpy_handle_exception): Use gdbpy_err_fetch.
1826 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1827 gdbpy_err_fetch.
1828
169bb27b
AB
18292019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
1830
1831 * linux-nat.c (delete_lwp_cleanup): Delete.
1832 (struct lwp_deleter): New struct.
1833 (lwp_info_up): New typedef.
1834 (linux_nat_target::follow_fork): Delete cleanup, and make use of
1835 lwp_info_up.
1836
a07c8880
AB
18372019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
1838
1839 * linux-fork.c (class scoped_switch_fork_info): New class.
1840 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
1841
26089c49
AB
18422019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
1843
1844 * valops.c (find_overload_match): Remove use of null_cleanup, and
1845 calls to do_cleanups.
1846
06d3e5b0
AB
18472019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
1848
1849 * compile/compile-cplus-types.c
1850 (compile_cplus_instance::decl_name): Handle changes to
1851 cp_func_name.
1852 * cp-support.c (cp_func_name): Update header comment, update
1853 return type.
1854 * cp-support.h (cp_func_name): Update return type in declaration.
1855 * valops.c (find_overload_match): Move temp_func local to top
1856 level of function and change its type. Use temp_func to hold and
1857 delete temporary string obtained from cp_func_name.
1858
66644cd3
AB
18592019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
1860
1861 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
1862 gdb::char_vector, remove cleanup, and update uses of `msg`.
1863
592d8c0a
JW
18642019-01-03 Jim Wilson <jimw@sifive.com>
1865
1866 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
1867
c55d06ec
TT
18682019-01-02 Tom Tromey <tom@tromey.com>
1869
1870 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
1871 (tdesc_parse_xml): Remove cleanups.
1872 * target-descriptions.h (make_cleanup_free_target_description):
1873 Don't declare.
1874 (target_desc_deleter): New struct.
1875 (target_desc_up): New typedef.
1876 * target-descriptions.c (target_desc_deleter::operator()): Rename
1877 from free_target_description.
1878 (make_cleanup_free_target_description): Remove.
1879
3a6ae42d
TT
18802019-01-02 Tom Tromey <tom@tromey.com>
1881
1882 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
1883 constructor, destructor.
1884 (linespec_parser): Remove typedef.
1885 (~linespec_parser): Rename from linespec_parser_delete.
1886 (linespec_lex_to_end, linespec_complete_label)
1887 (linespec_complete): Update.
1888 (decode_line_full): Remove cleanups.
1889 (decode_line_1): Update.
1890
61fd3e73
TT
18912019-01-02 Tom Tromey <tom@tromey.com>
1892
1893 * python/python-internal.h (inferior_to_inferior_object): Change
1894 return type.
1895 * python/py-exitedevent.c (create_exited_event_object): Update.
1896 * python/py-inferior.c (inferior_to_inferior_object): Return
1897 gdbpy_ref.
1898 (python_new_inferior, python_inferior_deleted)
1899 (thread_to_thread_object, delete_thread_object)
1900 (build_inferior_list, gdbpy_selected_inferior): Update.
1901 * python/py-infthread.c (create_thread_object): Update. Also fail
1902 if inferior_to_inferior_object fails.
1903
d20172fc
SM
19042019-01-02 Simon Marchi <simon.marchi@ericsson.com>
1905
1906 * inferior.h (class inferior) <displaced_step_state>: New field.
1907 * infrun.h (struct displaced_step_state): Move here from
1908 infrun.c. Initialize fields, add constructor.
1909 <inf>: Remove field.
1910 <reset>: New method.
1911 * infrun.c (struct displaced_step_inferior_state): Move to
1912 infrun.h.
1913 (displaced_step_inferior_states): Remove.
1914 (get_displaced_stepping_state): Adust.
1915 (displaced_step_in_progress_any_inferior): Adjust.
1916 (displaced_step_in_progress_thread): Adjust.
1917 (displaced_step_in_progress): Adjust.
1918 (add_displaced_stepping_state): Remove.
1919 (get_displaced_step_closure_by_addr): Adjust.
1920 (remove_displaced_stepping_state): Remove.
1921 (infrun_inferior_exit): Call displaced_step_state.reset.
1922 (use_displaced_stepping): Don't check for NULL.
1923 (displaced_step_prepare_throw): Call
1924 get_displaced_stepping_state.
1925 (displaced_step_fixup): Don't check for NULL.
1926 (prepare_for_detach): Don't check for NULL.
1927
e3319240
PW
19282019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1929
1930 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
1931 in case of call that did not complete.
1932
5d36dfb9
AU
19332019-01-02 Andrey Utkin <autkin@undo.io>
1934
1935 * symfile.c (find_separate_debug_file): Fix search of debug files for
1936 remote debuggee.
1937
8833fbf0
TT
19382019-01-02 Tom Tromey <tom@tromey.com>
1939
1940 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
1941 indentation.
1942 * python/py-frame.c (frapy_older): Remove cast.
1943 (frapy_newer): Likewise.
1944 * python/py-breakpoint.c (local_setattro): Remove cast.
1945 * python/py-arch.c (archpy_name): Remove local variable.
1946 * python/py-type.c (gdbpy_lookup_type): Remove cast.
1947
4ada3dfd
JB
19482019-01-02 Joel Brobecker <brobecker@adacore.com>
1949
1950 * unittests/basic_string_view/element_access/char/empty.cc:
1951 Fix year range in copyright header.
1952
113b7b81
AB
19532019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
1954
1955 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
1956 Delete.
1957 <operator==>: Update with for removed field.
1958 <hash>: Likewise.
1959 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
1960 <isa_features>: ...this.
1961 <abi_features>: New field.
1962 (riscv_isa_flen): Update comment.
1963 (riscv_abi_xlen): New declaration.
1964 (riscv_abi_flen): New declaration.
1965 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
1966 isa_features.
1967 (riscv_abi_xlen): New function.
1968 (riscv_isa_flen): Update to get answer from isa_features.
1969 (riscv_abi_flen): New function.
1970 (riscv_has_fp_abi): Update to get answer from abi_features.
1971 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
1972 xlen and flen.
1973 (riscv_call_info) <xlen, flen>: Update comment.
1974 (riscv_call_arg_struct): Remove invalid assertions
1975 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
1976 is removed.
1977 (riscv_gdbarch_init): Gather isa features and abi features
1978 separately, ensure both match on the gdbarch when reusing an old
1979 gdbarch. Relax an error check to allow 32-bit abi float to run on
1980 a target with 64-bit float hardware.
1981
b18ca514
PW
19822019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1983
1984 * source.c (search_command_helper): Stop reverse search
1985 when line 1 has been searched.
1986
ec70d8db
PW
19872019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1988
1989 * record-full.c (record_full_base_target::close): Rewrite
1990 record_full_core_buf_list free logic.
1991
5b38f9c1
PW
19922019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1993
1994 * break-catch-syscall.c (print_one_catch_syscall): xfree
1995 the last text.
1996
66d91b39
JB
19972019-01-01 Joel Brobecker <brobecker@adacore.com>
1998
1999 * top.c (print_gdb_version): Update Copyright year in version
2000 message.
2001
42a4f53d
JB
20022019-01-01 Joel Brobecker <brobecker@adacore.com>
2003
2004 Update copyright year range in all GDB files.
2005
7e955d83 20062019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 2007
5bbd631d 2008 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 2009
5bbd631d 2010For older changes see ChangeLog-2018.
c906108c
SS
2011\f
2012Local Variables:
2013mode: change-log
2014left-margin: 8
2015fill-column: 74
2016version-control: never
57da7796 2017coding: utf-8
c906108c 2018End:
5bbd631d 2019
This page took 2.995102 seconds and 4 git commands to generate.