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