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