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