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