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