Commit | Line | Data |
---|---|---|
bc7b042b PW |
1 | 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2 | ||
3 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
4 | unittests/cli-utils-selftests.c | |
5 | * unittests/cli-utils-selftests.c: New file. | |
6 | ||
a14c4daa PW |
7 | 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
8 | ||
9 | * NEWS: Mention new commands. Mention change to 'thread apply'. | |
10 | ||
1fe75df7 PW |
11 | 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
12 | ||
13 | * thread.c (thr_try_catch_cmd): New function. | |
14 | (thread_apply_all_command): Handle qcs flags. | |
15 | (thread_apply_command): Handle qcs flags. | |
16 | (taas_command): New function. | |
17 | (tfaas_command): New function. | |
18 | (_initialize_thread): Update to setup the new commands 'taas | |
19 | and 'tfaas'. Change doc string for 'thread apply'. | |
20 | ||
6a70eb7d PW |
21 | 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
22 | ||
23 | * stack.c: (trailing_outermost_frame): New function, mostly | |
24 | extracted from backtrace_command_1. | |
25 | (leading_innermost_frame): New function. | |
26 | (backtrace_command_1): Update to call trailing_outermost_frame. | |
27 | (frame_apply_command_count): New function. | |
28 | (frame_apply_level_command): New function. | |
29 | (frame_apply_all_command): New function. | |
30 | (frame_apply_command): New function. | |
31 | (faas_command): New function. | |
32 | (frame_cmd_list): New variable. | |
33 | (_initialize_stack): Update to setup the new commands 'frame apply' | |
34 | and 'faas'. | |
35 | ||
529c08b2 PW |
36 | 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
37 | ||
38 | * cli-utils.c (number_or_range_parser::get_number): Only handle | |
39 | numbers or convenience var as numbers. | |
40 | (parse_flags): New function. | |
41 | (parse_flags_qcs): New function. | |
42 | (number_or_range_parser::finished): Ensure parsing end is detected | |
43 | before end of string. | |
44 | * cli-utils.h (parse_flags): New function. | |
45 | (parse_flags_qcs): New function. | |
46 | (number_or_range_parser): Remove m_finished bool. | |
47 | (number_or_range_parser::skip_range): Set m_in_range to false. | |
48 | ||
64b58472 SDJ |
49 | 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com> |
50 | ||
51 | * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building | |
52 | on Windows. | |
53 | ||
c7ab0aef SDJ |
54 | 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com> |
55 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
56 | Paul Fertser <fercerpav@gmail.com> | |
57 | Tsutomu Seki <sekiriki@gmail.com> | |
58 | Pedro Alves <palves@redhat.com> | |
59 | ||
60 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
61 | 'unittests/parse-connection-spec-selftests.c'. | |
62 | (COMMON_SFILES): Add 'common/netstuff.c'. | |
63 | (HFILES_NO_SRCDIR): Add 'common/netstuff.h'. | |
64 | * NEWS (Changes since GDB 8.2): Mention IPv6 support. | |
65 | * common/netstuff.c: New file. | |
66 | * common/netstuff.h: New file. | |
67 | * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'. | |
68 | (wait_for_connect): Update comment. New parameter | |
69 | 'gdb::optional<int> sock' instead of 'struct serial *scb'. | |
70 | Use 'sock' directly instead of 'scb->fd'. | |
71 | (try_connect): New function, with code from 'net_open'. | |
72 | (net_open): Rewrite main loop to deal with multiple | |
73 | sockets/addresses. Handle IPv6-style hostnames; implement | |
74 | support for IPv6 connections. | |
75 | * unittests/parse-connection-spec-selftests.c: New file. | |
76 | ||
4c7333b3 PA |
77 | 2018-07-11 Pedro Alves <palves@redhat.com> |
78 | ||
79 | PR gdb/23377 | |
80 | * remote.c (remote_target::remote_detach_pid): Call | |
81 | set_current_process. | |
82 | ||
a6f88f6e PA |
83 | 2018-07-11 Pedro Alves <palves@redhat.com> |
84 | ||
85 | * h8300-tdep.c (h8300_gdbarch_init): Remove | |
86 | set_gdbarch_ecoff_reg_to_regnum calls. | |
87 | ||
16ff70dd SDJ |
88 | 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com> |
89 | ||
90 | PR c++/23373 | |
91 | * c-typeprint.c (c_type_print_base_struct_union): Don't print | |
92 | offsets/sizes for static members of a class/struct. | |
93 | ||
12863263 AH |
94 | 2018-07-11 Alan Hayward <alan.hayward@arm.com> |
95 | ||
96 | * target-descriptions.c (tdesc_register_bitsize): Rename. | |
97 | * target-descriptions.h (tdesc_register_bitsize): Likewise. | |
98 | * rs6000-tdep.c (rs6000_gdbarch_init): Use new name. | |
99 | * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size. | |
100 | ||
1123588c TT |
101 | 2018-07-10 Tom Tromey <tom@tromey.com> |
102 | ||
103 | * breakpoint.c (moribund_locations): Now static and a | |
104 | std::vector. | |
105 | (breakpoint_init_inferior, moribund_breakpoint_here_p) | |
106 | (build_bpstat_chain, update_global_location_list) | |
107 | (breakpoint_retire_moribund): Update. | |
108 | * breakpoint.h (bp_location_p): Remove typedef. Don't declare | |
109 | VEC. | |
110 | ||
8c49aa89 AB |
111 | 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com> |
112 | ||
113 | * riscv-tdep.c (riscv_is_fp_regno_p): New function. | |
114 | (riscv_register_reggroup_p): Use new function, remove unneeded | |
115 | parenthesis. | |
116 | (riscv_push_dummy_call): Extend assert to compare against xlen or | |
117 | flen based on register type. | |
118 | ||
42ecac17 AB |
119 | 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com> |
120 | ||
121 | * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME. | |
122 | ||
055303e2 AB |
123 | 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com> |
124 | ||
125 | * remote.c (show_hardware_watchpoint_limit): New function. | |
126 | (show_hardware_watchpoint_length_limit): New function. | |
127 | (show_hardware_breakpoint_limit): New function. | |
128 | (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd | |
129 | where appropriate, update help text. | |
130 | ||
8fd32c1c TT |
131 | 2018-07-09 Tom Tromey <tom@tromey.com> |
132 | ||
133 | * Makefile.in (CDEPS): Don't mention XM_CDEPS. | |
134 | (CLIBS): Don't mention NAT_CLIBS. | |
135 | ||
31278b51 TT |
136 | 2018-07-09 Tom Tromey <tom@tromey.com> |
137 | ||
138 | * Makefile.in (ADD_FILES, ADD_DEPS): Remove. | |
139 | (LIBGDB_OBS, clean mostlyclean): Update. | |
140 | (gdb$(EXEEXT), insight$(EXEEXT)): Update. | |
141 | ||
e5fd1493 TT |
142 | 2018-07-09 Tom Tromey <tom@tromey.com> |
143 | ||
144 | * Makefile.in (%.c: %.y): Use ECHO_YACC. | |
145 | (%.c: %.l): Use ECHO_LEX. Just fail if flex not available. | |
146 | * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables. | |
147 | ||
981e0c0c TT |
148 | 2018-07-09 Tom Tromey <tom@tromey.com> |
149 | ||
150 | * Makefile.in (ALLDEPFILES): Remove exec.c. | |
151 | (COMMON_OBS): Remove exec.o. | |
152 | (COMMON_SFILES): Add exec.c. | |
153 | ||
14ccceb2 TT |
154 | 2018-07-09 Tom Tromey <tom@tromey.com> |
155 | ||
156 | * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove. | |
157 | ||
5d3c3a68 TT |
158 | 2018-07-09 Tom Tromey <tom@tromey.com> |
159 | ||
160 | * Makefile.in (clean mostlyclean): Remove stamp-version. | |
161 | (version.c): Depend on stamp-version. | |
162 | (stamp-version): New rule, from version.c rule. | |
163 | ||
1998086d TT |
164 | 2018-07-09 Tom Tromey <tom@tromey.com> |
165 | ||
166 | * Makefile.in (init.c): Depend on stamp-init. | |
167 | (stamp-init): New rule, from init.c rule. | |
168 | (clean mostlyclean): Remove stamp-init. | |
169 | ||
4c754949 TT |
170 | 2018-07-09 Tom Tromey <tom@tromey.com> |
171 | ||
172 | * Makefile.in (INIT_FILES): Remove CONFIG_SRCS, | |
173 | SUBDIR_GCC_COMPILE_SRCS. | |
174 | ||
6497f1dd TT |
175 | 2018-07-09 Tom Tromey <tom@tromey.com> |
176 | ||
177 | * Makefile.in (init.c): Remove some unused sed rules. | |
178 | ||
97a34db9 TT |
179 | 2018-07-09 Tom Tromey <tom@tromey.com> |
180 | ||
181 | * Makefile.in (TSOBS): Remove. | |
182 | (INIT_FILES): Update. | |
183 | (LIBGDB_OBS): Update. | |
184 | (COMMON_SFILES): Add inflow.c. | |
185 | (SFILES): Remove inflow.c. | |
186 | ||
25289ac1 JK |
187 | 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
188 | ||
189 | * contrib/gdb-add-index.sh ($dwarf5): New, use it. | |
190 | ||
e83f4d97 SM |
191 | 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca> |
192 | ||
193 | * ia64-tdep.c (get_reg_name, get_fpreg_name, get_saveloc_name, | |
194 | is_signal_frame_name, step_name, init_remote_name, | |
195 | create_addr_space_name, destroy_addr_space_name, | |
196 | search_unwind_table_name, find_dyn_list_name): Constify. | |
197 | ||
6821842f SM |
198 | 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca> |
199 | ||
200 | * darwin-nat.c (darwin_pthread_kill): New function. | |
201 | (darwin_resume_thread): Use darwin_pthread_kill. | |
202 | ||
c530603c TV |
203 | 2018-07-05 Tom de Vries <tdevries@suse.de> |
204 | ||
205 | * macroexp.c (macro_buffer) <operator=>: New member function. | |
206 | ||
a7d0f0f0 TT |
207 | 2018-07-04 Tom Tromey <tom@tromey.com> |
208 | ||
209 | * darwin-nat.c (darwin_attach_pid): Use exit_inferior. | |
210 | ||
6242c6a6 SM |
211 | 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca> |
212 | ||
213 | * common/common-defs.h (HAVE_USEFUL_SBRK): Define. | |
214 | * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK. | |
215 | * maint.c: Likewise. | |
216 | * top.c: Likewise. | |
217 | ||
4e5b2f89 JB |
218 | 2018-07-04 Joel Brobecker <brobecker@adacore.com> |
219 | ||
220 | * NEWS: Create a new section for the next release branch. | |
221 | Rename the section of the current branch, now that it has | |
222 | been cut. | |
223 | ||
538ccc4a JB |
224 | 2018-07-04 Joel Brobecker <brobecker@adacore.com> |
225 | ||
226 | GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e): | |
227 | * version.in: Bump version to 8.2.50.DATE-git. | |
228 | ||
1b919490 VB |
229 | 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com> |
230 | Pedro Alves <palves@redhat.com> | |
231 | ||
232 | * linux-nat.c (linux_init_ptrace): Rename to ... | |
233 | (linux_init_ptrace_procfs): ... this. Call | |
234 | linux_proc_init_warnings. | |
235 | (linux_nat_target::post_attach) | |
236 | (linux_nat_target::post_startup_inferior): Adjust. | |
237 | * nat/linux-procfs.c (linux_proc_init_warnings): Define function. | |
238 | * nat/linux-procfs.h (linux_proc_init_warnings): Declare function. | |
239 | ||
1ea5da02 TV |
240 | 2018-07-04 Tom de Vries <tdevries@suse.de> |
241 | ||
242 | * dwarf2read.c (error_check_comp_unit_head): Move dwarf version | |
243 | check ... | |
244 | (read_comp_unit_head): ... here. | |
245 | ||
f51e0e20 TT |
246 | 2018-07-03 Tom Tromey <tom@tromey.com> |
247 | ||
248 | * tracepoint.c (process_tracepoint_on_disconnect, start_tracing) | |
249 | (stop_tracing, tstatus_command) | |
250 | (find_matching_tracepoint_location, merge_uploaded_tracepoints) | |
251 | (print_one_static_tracepoint_marker): Update. | |
252 | * breakpoint.c (static_tracepoints_here, all_tracepoints): Return | |
253 | std::vector. | |
254 | * breakpoint.h (breakpoint_p): Remove typedef. Don't declare | |
255 | VEC. | |
256 | (all_tracepoints, static_tracepoints_here): Return std::vector. | |
257 | ||
d7e15655 TT |
258 | 2018-07-03 Tom Tromey <tom@tromey.com> |
259 | ||
260 | * common/ptid.c (ptid_equal): Remove. | |
261 | * common/ptid.h (ptid_equal): Don't declare. | |
262 | * ada-tasks.c: Update. | |
263 | * breakpoint.c: Update. | |
264 | * common/agent.c: Update. | |
265 | * corelow.c: Update. | |
266 | * darwin-nat-info.c: Update. | |
267 | * darwin-nat.c: Update. | |
268 | * dcache.c: Update. | |
269 | * dtrace-probe.c: Update. | |
270 | * dummy-frame.c: Update. | |
271 | * fbsd-nat.c: Update. | |
272 | * frame.c: Update. | |
273 | * gdbthread.h: Update. | |
274 | * gnu-nat.c: Update. | |
275 | * go32-nat.c: Update. | |
276 | * inf-loop.c: Update. | |
277 | * inf-ptrace.c: Update. | |
278 | * infcall.c: Update. | |
279 | * infcmd.c: Update. | |
280 | * inflow.c: Update. | |
281 | * infrun.c: Update. | |
282 | * linux-fork.c: Update. | |
283 | * linux-nat.c: Update. | |
284 | * linux-thread-db.c: Update. | |
285 | * mi/mi-cmd-var.c: Update. | |
286 | * mi/mi-interp.c: Update. | |
287 | * mi/mi-main.c: Update. | |
288 | * nto-procfs.c: Update. | |
289 | * ppc-linux-tdep.c: Update. | |
290 | * procfs.c: Update. | |
291 | * python/py-inferior.c: Update. | |
292 | * python/py-record-btrace.c: Update. | |
293 | * python/py-record.c: Update. | |
294 | * ravenscar-thread.c: Update. | |
295 | * regcache.c: Update. | |
296 | * remote-sim.c: Update. | |
297 | * remote.c: Update. | |
298 | * sol-thread.c: Update. | |
299 | * solib.c: Update. | |
300 | * target.c: Update. | |
301 | * tui/tui-stack.c: Update. | |
302 | * varobj.c: Update. | |
303 | * windows-nat.c: Update. | |
304 | * windows-tdep.c: Update. | |
305 | ||
26a57c92 TT |
306 | 2018-07-03 Tom Tromey <tom@tromey.com> |
307 | ||
308 | * common/ptid.c (ptid_match): Remove. | |
309 | * common/ptid.h (ptid_match): Don't declare. | |
310 | * fbsd-nat.c: Update. | |
311 | * infcmd.c: Update. | |
312 | * infrun.c: Update. | |
313 | * linux-nat.c: Update. | |
314 | * record-btrace.c: Update. | |
315 | * regcache.c: Update. | |
316 | * remote.c: Update. | |
317 | ||
d2a107e3 TT |
318 | 2018-07-03 Tom Tromey <tom@tromey.com> |
319 | ||
320 | * common/ptid.c (ptid_tid_p): Remove. | |
321 | * common/ptid.h (ptid_tid_p): Don't declare. | |
322 | * sol-thread.c: Update. | |
323 | ||
15a9e13e TT |
324 | 2018-07-03 Tom Tromey <tom@tromey.com> |
325 | ||
326 | * common/ptid.c (ptid_lwp_p): Remove. | |
327 | * common/ptid.h (ptid_lwp_p): Don't declare. | |
328 | * fbsd-nat.c: Update. | |
329 | * linux-nat.c: Update. | |
330 | * nat/linux-procfs.c: Update. | |
331 | * nat/x86-linux-dregs.c: Update. | |
332 | * sol-thread.c: Update. | |
333 | ||
0e998d96 TT |
334 | 2018-07-03 Tom Tromey <tom@tromey.com> |
335 | ||
336 | * common/ptid.c (ptid_is_pid): Remove. | |
337 | * common/ptid.h (ptid_is_pid): Don't declare. | |
338 | * infrun.c: Update. | |
339 | * linux-nat.c: Update. | |
340 | * mi/mi-interp.c: Update. | |
341 | * remote.c: Update. | |
342 | * thread.c: Update. | |
343 | ||
cc6bcb54 TT |
344 | 2018-07-03 Tom Tromey <tom@tromey.com> |
345 | ||
346 | * common/ptid.c (ptid_get_tid): Remove. | |
347 | * common/ptid.h (ptid_get_tid): Don't declare. | |
348 | * ada-tasks.c: Update. | |
349 | * aix-thread.c: Update. | |
350 | * bsd-uthread.c: Update. | |
351 | * darwin-nat.c: Update. | |
352 | * fbsd-nat.c: Update. | |
353 | * i386-darwin-nat.c: Update. | |
354 | * infrun.c: Update. | |
355 | * linux-tdep.c: Update. | |
356 | * nto-procfs.c: Update. | |
357 | * ppc-ravenscar-thread.c: Update. | |
358 | * python/py-infthread.c: Update. | |
359 | * ravenscar-thread.c: Update. | |
360 | * sol-thread.c: Update. | |
361 | * sparc-ravenscar-thread.c: Update. | |
362 | * windows-nat.c: Update. | |
363 | ||
e38504b3 TT |
364 | 2018-07-03 Tom Tromey <tom@tromey.com> |
365 | ||
366 | * common/ptid.c (ptid_get_lwp): Remove. | |
367 | * common/ptid.h (ptid_get_lwp): Don't declare. | |
368 | * aarch64-linux-nat.c: Update. | |
369 | * ada-tasks.c: Update. | |
370 | * aix-thread.c: Update. | |
371 | * amd64-linux-nat.c: Update. | |
372 | * arm-linux-nat.c: Update. | |
373 | * corelow.c: Update. | |
374 | * fbsd-nat.c: Update. | |
375 | * fbsd-tdep.c: Update. | |
376 | * gnu-nat.c: Update. | |
377 | * i386-cygwin-tdep.c: Update. | |
378 | * i386-gnu-nat.c: Update. | |
379 | * i386-linux-nat.c: Update. | |
380 | * ia64-linux-nat.c: Update. | |
381 | * inf-ptrace.c: Update. | |
382 | * infrun.c: Update. | |
383 | * linux-fork.c: Update. | |
384 | * linux-nat.c: Update. | |
385 | * linux-tdep.c: Update. | |
386 | * linux-thread-db.c: Update. | |
387 | * mips-linux-nat.c: Update. | |
388 | * nat/aarch64-linux-hw-point.c: Update. | |
389 | * nat/aarch64-linux.c: Update. | |
390 | * nat/linux-btrace.c: Update. | |
391 | * nat/linux-osdata.c: Update. | |
392 | * nat/linux-procfs.c: Update. | |
393 | * nat/x86-linux-dregs.c: Update. | |
394 | * obsd-nat.c: Update. | |
395 | * ppc-fbsd-nat.c: Update. | |
396 | * ppc-linux-nat.c: Update. | |
397 | * procfs.c: Update. | |
398 | * python/py-infthread.c: Update. | |
399 | * ravenscar-thread.c: Update. | |
400 | * remote.c: Update. | |
401 | * s390-linux-nat.c: Update. | |
402 | * sol-thread.c: Update. | |
403 | * sol2-tdep.c: Update. | |
404 | * spu-linux-nat.c: Update. | |
405 | * x86-linux-nat.c: Update. | |
406 | * xtensa-linux-nat.c: Update. | |
407 | ||
e99b03dc TT |
408 | 2018-07-03 Tom Tromey <tom@tromey.com> |
409 | ||
410 | * common/ptid.c (ptid_get_pid): Remove. | |
411 | * common/ptid.h (ptid_get_pid): Don't declare. | |
412 | * aarch64-linux-nat.c: Update. | |
413 | * ada-lang.c: Update. | |
414 | * aix-thread.c: Update. | |
415 | * alpha-bsd-nat.c: Update. | |
416 | * amd64-fbsd-nat.c: Update. | |
417 | * amd64-linux-nat.c: Update. | |
418 | * arm-linux-nat.c: Update. | |
419 | * arm-nbsd-nat.c: Update. | |
420 | * auxv.c: Update. | |
421 | * break-catch-syscall.c: Update. | |
422 | * breakpoint.c: Update. | |
423 | * bsd-uthread.c: Update. | |
424 | * corelow.c: Update. | |
425 | * ctf.c: Update. | |
426 | * darwin-nat.c: Update. | |
427 | * fbsd-nat.c: Update. | |
428 | * fbsd-tdep.c: Update. | |
429 | * gcore.c: Update. | |
430 | * gnu-nat.c: Update. | |
431 | * hppa-nbsd-nat.c: Update. | |
432 | * hppa-obsd-nat.c: Update. | |
433 | * i386-fbsd-nat.c: Update. | |
434 | * ia64-linux-nat.c: Update. | |
435 | * inf-ptrace.c: Update. | |
436 | * infcmd.c: Update. | |
437 | * inferior.c: Update. | |
438 | * inferior.h: Update. | |
439 | * inflow.c: Update. | |
440 | * infrun.c: Update. | |
441 | * linux-fork.c: Update. | |
442 | * linux-nat.c: Update. | |
443 | * linux-tdep.c: Update. | |
444 | * linux-thread-db.c: Update. | |
445 | * m68k-bsd-nat.c: Update. | |
446 | * mi/mi-interp.c: Update. | |
447 | * mi/mi-main.c: Update. | |
448 | * mips-linux-nat.c: Update. | |
449 | * mips-nbsd-nat.c: Update. | |
450 | * mips64-obsd-nat.c: Update. | |
451 | * nat/aarch64-linux-hw-point.c: Update. | |
452 | * nat/aarch64-linux.c: Update. | |
453 | * nat/linux-btrace.c: Update. | |
454 | * nat/linux-osdata.c: Update. | |
455 | * nat/linux-procfs.c: Update. | |
456 | * nat/x86-linux-dregs.c: Update. | |
457 | * nto-procfs.c: Update. | |
458 | * obsd-nat.c: Update. | |
459 | * ppc-linux-nat.c: Update. | |
460 | * ppc-nbsd-nat.c: Update. | |
461 | * ppc-obsd-nat.c: Update. | |
462 | * proc-service.c: Update. | |
463 | * procfs.c: Update. | |
464 | * python/py-inferior.c: Update. | |
465 | * python/py-infthread.c: Update. | |
466 | * ravenscar-thread.c: Update. | |
467 | * record.c: Update. | |
468 | * remote-sim.c: Update. | |
469 | * remote.c: Update. | |
470 | * rs6000-nat.c: Update. | |
471 | * s390-linux-nat.c: Update. | |
472 | * sh-nbsd-nat.c: Update. | |
473 | * sol-thread.c: Update. | |
474 | * sparc-nat.c: Update. | |
475 | * sparc64-tdep.c: Update. | |
476 | * spu-linux-nat.c: Update. | |
477 | * spu-tdep.c: Update. | |
478 | * target-debug.h: Update. | |
479 | * target.c: Update. | |
480 | * thread.c: Update. | |
481 | * tid-parse.c: Update. | |
482 | * tracefile-tfile.c: Update. | |
483 | * vax-bsd-nat.c: Update. | |
484 | * windows-nat.c: Update. | |
485 | * x86-linux-nat.c: Update. | |
486 | * x86-nat.c: Update. | |
487 | ||
f2907e49 TT |
488 | 2018-07-03 Tom Tromey <tom@tromey.com> |
489 | ||
490 | * common/ptid.c (pid_to_ptid): Remove. | |
491 | * common/ptid.h (pid_to_ptid): Don't declare. | |
492 | * aix-thread.c: Update. | |
493 | * arm-linux-nat.c: Update. | |
494 | * common/ptid.c: Update. | |
495 | * common/ptid.h: Update. | |
496 | * corelow.c: Update. | |
497 | * ctf.c: Update. | |
498 | * darwin-nat.c: Update. | |
499 | * fbsd-nat.c: Update. | |
500 | * fork-child.c: Update. | |
501 | * gnu-nat.c: Update. | |
502 | * go32-nat.c: Update. | |
503 | * inf-ptrace.c: Update. | |
504 | * infcmd.c: Update. | |
505 | * inferior.c: Update. | |
506 | * infrun.c: Update. | |
507 | * linux-fork.c: Update. | |
508 | * linux-nat.c: Update. | |
509 | * nat/aarch64-linux-hw-point.c: Update. | |
510 | * nat/fork-inferior.c: Update. | |
511 | * nat/x86-linux-dregs.c: Update. | |
512 | * nto-procfs.c: Update. | |
513 | * obsd-nat.c: Update. | |
514 | * procfs.c: Update. | |
515 | * progspace.c: Update. | |
516 | * remote.c: Update. | |
517 | * rs6000-nat.c: Update. | |
518 | * s390-linux-nat.c: Update. | |
519 | * sol-thread.c: Update. | |
520 | * spu-linux-nat.c: Update. | |
521 | * target.c: Update. | |
522 | * top.c: Update. | |
523 | * tracefile-tfile.c: Update. | |
524 | * windows-nat.c: Update. | |
525 | ||
fd79271b TT |
526 | 2018-07-03 Tom Tromey <tom@tromey.com> |
527 | ||
528 | * common/ptid.h (ptid_build): Don't declare. | |
529 | * common/ptid.c (ptid_build): Remove. | |
530 | * aix-thread.c: Update. | |
531 | * bsd-kvm.c: Update. | |
532 | * bsd-uthread.c: Update. | |
533 | * common/agent.c: Update. | |
534 | * common/ptid.c: Update. | |
535 | * common/ptid.h: Update. | |
536 | * corelow.c: Update. | |
537 | * darwin-nat.c: Update. | |
538 | * fbsd-nat.c: Update. | |
539 | * gnu-nat.c: Update. | |
540 | * linux-fork.c: Update. | |
541 | * linux-nat.c: Update. | |
542 | * linux-thread-db.c: Update. | |
543 | * nat/linux-osdata.c: Update. | |
544 | * nat/linux-procfs.c: Update. | |
545 | * nto-procfs.c: Update. | |
546 | * obsd-nat.c: Update. | |
547 | * proc-service.c: Update. | |
548 | * procfs.c: Update. | |
549 | * ravenscar-thread.c: Update. | |
550 | * remote-sim.c: Update. | |
551 | * remote.c: Update. | |
552 | * sol-thread.c: Update. | |
553 | * target.c: Update. | |
554 | * windows-nat.c: Update. | |
555 | ||
057302ce TT |
556 | 2018-07-03 Tom Tromey <tom@tromey.com> |
557 | ||
558 | * infrun.c (follow_exec): Use exit_inferior_silent. | |
559 | * inferior.c (exit_inferior_num_silent): Remove. | |
560 | * inferior.h (exit_inferior_num_silent): Don't declare. | |
561 | ||
a50c11c6 TT |
562 | 2018-07-03 Tom Tromey <tom@tromey.com> |
563 | ||
564 | PR cli/23340: | |
565 | * darwin-nat.c (darwin_attach_pid): Reset inferior and | |
566 | inferior_ptid on error. | |
567 | ||
471b9d15 MR |
568 | 2018-07-02 Maciej W. Rozycki <macro@mips.com> |
569 | Simon Marchi <simon.marchi@polymtl.ca> | |
570 | ||
571 | PR tdep/8282 | |
572 | * disasm.h (gdb_disassembler): Add | |
573 | `m_disassembler_options_holder'. member | |
574 | * disasm.c (get_all_disassembler_options): New function. | |
575 | (gdb_disassembler::gdb_disassembler): Use it. | |
576 | (gdb_buffered_insn_length_init_dis): Likewise. | |
577 | (gdb_buffered_insn_length): Adjust accordingly. | |
578 | (set_disassembler_options): Handle options with arguments. | |
579 | (show_disassembler_options_sfunc): Likewise. Add a leading new | |
580 | line if showing options with descriptions. | |
581 | (disassembler_options_completer): Adapt to using the | |
582 | `disasm_options_and_args_t' structure. | |
583 | * mips-tdep.c (mips_disassembler_options): New variable. | |
584 | (mips_disassembler_options_o32): Likewise. | |
585 | (mips_disassembler_options_n32): Likewise. | |
586 | (mips_disassembler_options_n64): Likewise. | |
587 | (gdb_print_insn_mips): Don't set `disassembler_options'. | |
588 | (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove | |
589 | functions. | |
590 | (mips_gdbarch_init): Always set `gdbarch_print_insn' to | |
591 | `gdb_print_insn_mips'. Set `gdbarch_disassembler_options', | |
592 | `gdbarch_disassembler_options_implicit' and | |
593 | `gdbarch_valid_disassembler_options'. | |
594 | * arm-tdep.c (_initialize_arm_tdep): Adapt to using the | |
595 | `disasm_options_and_args_t' structure. | |
596 | * gdbarch.sh (disassembler_options_implicit): New `gdbarch' | |
597 | method. | |
598 | (valid_disassembler_options): Switch from `disasm_options_t' to | |
599 | the `disasm_options_and_args_t' structure. | |
600 | * NEWS: Document `set disassembler-options' support for the MIPS | |
601 | target. | |
602 | * gdbarch.h: Regenerate. | |
603 | * gdbarch.c: Regenerate. | |
604 | ||
41823f29 SH |
605 | 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de> |
606 | ||
607 | * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries. | |
608 | ||
41206e32 JB |
609 | 2018-06-29 Joel Brobecker <brobecker@adacore.com> |
610 | ||
611 | * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing | |
612 | parameter in call to amd64_target_description. | |
613 | * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise. | |
614 | * amd64-fbsd-tdep.c (amd64fbsd_core_read_description) | |
615 | (amd64fbsd_init_abi): Likewise. | |
616 | * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise. | |
617 | * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise. | |
618 | * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise. | |
619 | * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise. | |
620 | ||
de52b960 PA |
621 | 2018-06-29 Pedro Alves <palves@redhat.com> |
622 | ||
623 | * gdb/amd64-tdep.h (amd64_create_target_description): Add | |
624 | "segments" parameter. | |
625 | * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi) | |
626 | (_initialize_amd64_tdep): Update call to | |
627 | amd64_create_target_description. | |
628 | (amd64_target_description): Add "segments" parameter. Adjust | |
629 | the implementation to use it. | |
630 | * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update | |
631 | call to amd64_create_target_description. | |
632 | * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise. | |
633 | * gdb/arch/amd64.h (amd64_create_target_description): Add | |
634 | "segments" register. | |
635 | * gdb/arch/amd64.c (amd64_create_target_description): Add | |
636 | "segments" parameter. Call create_feature_i386_64bit_segments | |
637 | only if SEGMENTS is true. | |
638 | * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update | |
639 | call to amd64_create_target_description. | |
640 | ||
75acb486 PA |
641 | 2018-06-29 Pedro Alves <palves@redhat.com> |
642 | ||
643 | * thread.c (thread_target_id_str): New, factored out from ... | |
644 | (print_thread_info_1): ... here. Use it to compute the max | |
645 | "Target Id" column width. | |
646 | ||
c76a8ea3 PA |
647 | 2018-06-29 Pedro Alves <palves@redhat.com> |
648 | ||
649 | * remote.c (remote_target::extra_thread_info): Delete | |
650 | 'display_buf' and 'n' locals. from the cache, regardless of | |
651 | packet mechanims is in use. Use cache for qThreadExtra and qP | |
652 | methods too. | |
653 | ||
cd2bb709 PA |
654 | 2018-06-29 Pedro Alves <palves@redhat.com> |
655 | ||
656 | * blockframe.c (find_pc_sect_containing_function): New function. | |
657 | * breakpoint.c (print_breakpoint_location): Don't call | |
658 | find_pc_sect_function. | |
659 | * linespec.c (create_sals_line_offset): Record the location's | |
660 | symbol in the sal. | |
661 | * linespec.c (convert_address_location_to_sals): Fill in sal's | |
662 | symbol with find_pc_sect_containing_function. | |
663 | * symtab.c (find_function_start_sal): Rename to ... | |
664 | (find_function_start_sal_1): ... this. | |
665 | (find_function_start_sal): Reimplement as wrapper around | |
666 | find_function_start_sal_1, and use | |
667 | find_pc_sect_containing_function to fill in the sal's symbol. | |
668 | (find_function_start_sal(symbol*, bool)): Adjust. | |
669 | * symtab.h (find_pc_function, find_pc_sect_function): Adjust | |
670 | comments. | |
671 | (find_pc_sect_containing_function): Declare. | |
672 | ||
991ff292 PA |
673 | 2018-06-29 Pedro Alves <palves@redhat.com> |
674 | ||
675 | * inline-frame.c (stopped_by_user_bp_inline_frame): Return | |
676 | true if the the location has no symbol. | |
677 | ||
44cee4fd TT |
678 | 2018-06-28 Tom Tromey <tom@tromey.com> |
679 | ||
680 | * NEWS: Mention --enable-codesign. | |
681 | * silent-rules.mk (ECHO_SIGN): New variable. | |
682 | * configure.ac: Add --enable-codesign. | |
683 | * configure: Rebuild. | |
684 | * Makefile.in (CODESIGN, CODESIGN_CERT): New variables. | |
685 | (gdb$(EXEEXT)): Optionally invoke codesign. | |
686 | ||
f2ffa92b PA |
687 | 2018-06-28 Pedro Alves <palves@redhat.com> |
688 | ||
689 | * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend | |
690 | comments. | |
691 | (switch_to_thread_no_regs): Adjust comment. | |
692 | * infcmd.c (stop_pc): Delete. | |
693 | (post_create_inferior, info_program_command): Replace references | |
694 | to stop_pc with references to thread_info->suspend.stop_pc. | |
695 | * inferior.h (stop_pc): Delete declaration. | |
696 | * infrun.c (proceed, handle_syscall_event, fill_in_stop_func) | |
697 | (handle_inferior_event_1, handle_signal_stop) | |
698 | (process_event_stop_test, keep_going_stepped_thread) | |
699 | (handle_step_into_function, handle_step_into_function_backward) | |
700 | (print_stop_location): Replace references to stop_pc with | |
701 | references to thread_info->suspend.stop_pc. | |
702 | (struct infcall_suspend_state) <stop_pc>: Delete field. | |
703 | (save_infcall_suspend_state, restore_infcall_suspend_state): | |
704 | Remove references to inf_stat->stop_pc. | |
705 | * linux-fork.c (fork_load_infrun_state): Likewise. | |
706 | * record-btrace.c (record_btrace_set_replay): Likewise. | |
707 | * record-full.c (record_full_goto_entry): Likewise. | |
708 | * remote.c (print_one_stopped_thread): Likewise. | |
709 | * target.c (target_resume): Extend comment. | |
710 | * thread.c (set_executing_thread): New. | |
711 | (set_executing): Use it. | |
712 | (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread): | |
713 | Remove references to stop_pc. | |
714 | ||
ecdc3a72 PA |
715 | 2018-06-28 Pedro Alves <palves@redhat.com> |
716 | ||
717 | * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: | |
718 | Moving fetching stop_pc until after ecs->event_thread is refreshed. | |
719 | ||
d95d3aef TT |
720 | 2018-06-28 Tom Tromey <tom@tromey.com> |
721 | ||
722 | * coffread.c (coff_symfile_finish): Update. | |
723 | * xcoffread.c (xcoff_symfile_finish): Update. | |
724 | * elfread.c (elf_symfile_finish): Update. | |
725 | * symfile.h (dwarf2_free_objfile): Don't declare. | |
726 | * dwarf2read.c (_initialize_dwarf2_read): Use | |
727 | register_objfile_data_with_cleanup. | |
728 | (dwarf2_free_objfile): Now static. Change signature. | |
729 | ||
291f9a96 PT |
730 | 2018-06-28 Petr Tesarik <ptesarik@suse.cz> |
731 | ||
732 | * symfile.c (add_symbol_file_command, _initialize_symfile): Add | |
733 | option "-o" to add-symbol-file-load to add an offset to each | |
734 | section's load address. | |
735 | * symfile.c (set_objfile_default_section_offset): New function. | |
736 | ||
d81a3eaf PT |
737 | 2018-06-28 Petr Tesarik <ptesarik@suse.cz> |
738 | ||
739 | * symfile.c (add_symbol_file_command): Make sure that sections | |
740 | with the same name are sorted in the same order. | |
741 | ||
ed6dfe51 PT |
742 | 2018-06-28 Petr Tesarik <ptesarik@suse.cz> |
743 | ||
744 | * symfile.c (add_symbol_file_command, _initialize_symfile): Do not | |
745 | require the second argument. If omitted, load sections at the | |
746 | addresses specified in the file. | |
747 | ||
d4d429d5 PT |
748 | 2018-06-28 Petr Tesarik <ptesarik@suse.cz> |
749 | ||
750 | * symfile.c (symbol_file_command, symbol_file_add_main_1) | |
751 | (_initialize_symfile): Add option "-o" to symbol-file to add an | |
752 | offset to each section of the symbol file. | |
753 | ||
39b27ab6 PT |
754 | 2018-06-28 Petr Tesarik <ptesarik@suse.cz> |
755 | ||
756 | * MAINTAINERS (Write After Approval): Add Petr Tesarik. | |
757 | ||
41827fc3 TT |
758 | 2018-06-27 Tom Tromey <tom@tromey.com> |
759 | ||
760 | * stack.c (_initialize_stack): Update "func" help text. | |
761 | ||
0c6aef22 TT |
762 | 2018-06-27 Tom Tromey <tom@tromey.com> |
763 | ||
764 | * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a | |
765 | std::vector. | |
766 | (unwind_infopy_str, pyuw_create_unwind_info) | |
767 | (unwind_infopy_add_saved_register, pyuw_sniffer) | |
768 | (unwind_infopy_dealloc, unwind_infopy_add_saved_register): | |
769 | Update. | |
770 | (struct saved_reg): Add constructor. | |
771 | <value>: Now a gdbpy_ref<>. | |
772 | ||
63177289 TT |
773 | 2018-06-27 Tom Tromey <tom@tromey.com> |
774 | ||
775 | * machoread.c (macho_symfile_read): Define "symbol_table" earlier. | |
776 | ||
e76f78a0 SM |
777 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
778 | ||
779 | * gdb-gdb.py.in: Format using autopep8. | |
780 | ||
9a14af7b SM |
781 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
782 | ||
783 | * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class. | |
784 | (type_lookup_function): Recognize CORE_ADDR values. | |
785 | ||
189366cd SM |
786 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
787 | ||
788 | * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't | |
789 | print tag_name. | |
790 | ||
68ad5fb9 SM |
791 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
792 | ||
793 | * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove. | |
794 | <__lt__>: Add. | |
795 | ||
141ec9f6 SM |
796 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
797 | ||
798 | * gdb-gdb.py: Move to... | |
799 | * gdb-gdb.py.in: ... here. | |
800 | * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py. | |
801 | * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as | |
802 | dependencies. | |
803 | (distclean): Remove gdb-gdb.py when cleaning. | |
804 | (gdb-gdb.py, gdb-gdb.gdb): New rules. | |
805 | * configure: Re-generate. | |
806 | ||
4c4e7ad4 PA |
807 | 2018-06-27 Pedro Alves <palves@redhat.com> |
808 | ||
809 | * proc-service.c (get_ps_regcache): New. | |
810 | (ps_lgetregs, ps_lsetregs, ps_lgetfpregs) | |
811 | (ps_lsetfpregs): Use it. | |
812 | ||
7ab6656f OJ |
813 | 2018-06-27 Omair Javaid <omair.javaid@linaro.org> |
814 | ||
815 | PR gdb/21695 | |
816 | * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration. | |
817 | (dwarf_decode_lines_1): Adjust. | |
818 | ||
bd583225 SM |
819 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
820 | ||
821 | * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add | |
822 | override. | |
823 | <info_proc>: Likewise. | |
824 | ||
9a325b7b JB |
825 | 2018-06-26 Joel Brobecker <brobecker@adacore.com> |
826 | ||
827 | * windows-nat.c (do_windows_fetch_inferior_registers): Rename | |
828 | to windows_fetch_one_register, and only handle the case of | |
829 | fetching one register. Move the code that reloads the context | |
830 | and iterates over all registers if R is negative to... | |
831 | (windows_nat_target::fetch_registers): ... here. | |
832 | (do_windows_store_inferior_registers): Rename to | |
833 | windows_store_one_register, and only handle the case of storing | |
834 | one register. Move the code that handles the case where r is | |
835 | negative to... | |
836 | (windows_nat_target::store_registers) ... here. | |
837 | ||
a33ccfc7 TT |
838 | 2018-06-26 Tom Tromey <tom@tromey.com> |
839 | ||
840 | PR rust/22574: | |
841 | * typeprint.c (whatis_exp): Allow ptype/o for Rust. | |
842 | * rust-lang.c (rust_print_struct_def): Add podata parameter. | |
843 | Update. | |
844 | (rust_internal_print_type): Add podata parameter. | |
845 | (rust_print_type): Update. | |
846 | ||
e0c547d1 TT |
847 | 2018-06-26 Tom Tromey <tom@tromey.com> |
848 | ||
849 | * typeprint.h (struct print_offset_data) <update, finish, | |
850 | maybe_print_hole>: New methods. | |
851 | <indentation>: New constant. | |
852 | * typeprint.c (print_offset_data::indentation): Define. | |
853 | (print_offset_data::maybe_print_hole, print_offset_data::update) | |
854 | (print_offset_data::finish): Move from c-typeprint.c and rename. | |
855 | * c-typeprint.c (OFFSET_SPC_LEN): Remove. | |
856 | (print_spaces_filtered_with_print_options): Update. | |
857 | (c_print_type_union_field_offset, maybe_print_hole) | |
858 | (c_print_type_struct_field_offset): Move to typeprint.c and | |
859 | rename. | |
860 | (c_type_print_base_struct_union): Update. | |
861 | ||
75cbc781 PA |
862 | 2018-06-25 Pedro Alves <palves@redhat.com> |
863 | ||
864 | * gdbthread.h (thread_info_ref, delete_thread) | |
865 | (delete_thread_silent, first_thread_of_inferior) | |
866 | (any_thread_of_inferior, switch_to_thread) | |
867 | (enable_thread_stack_temporaries) | |
868 | (thread_stack_temporaries_enabled_p, push_thread_stack_temporary) | |
869 | (get_last_thread_stack_temporary) | |
870 | (value_in_thread_stack_temporaries, can_access_registers_thread): | |
871 | Spell out "struct thread_info" instead of just "thread_info". | |
872 | * inferior.h (notice_new_inferior): Likewise. | |
873 | ||
b7a08269 PA |
874 | 2018-06-25 Pedro Alves <palves@redhat.com> |
875 | ||
876 | * windows-nat.c (windows_delete_thread): Use find_thread_ptid and | |
877 | pass thread_info pointer to delete_thread. | |
878 | (windows_nat_target::detach): Pass inferior pointer to | |
879 | detach_inferior. | |
880 | * aix-thread.c (sync_threadlists): Pass thread_info pointer to | |
881 | delete_thread. | |
882 | * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors. | |
883 | * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid | |
884 | and pass a thread_info pointer to delete_thread. | |
885 | * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and | |
886 | pass thread_info pointer to delete_thread. | |
887 | * go32-nat.c (go32_nat_target::mourn_inferior): Remove | |
888 | delete_thread_silent call. | |
889 | * procfs.c (procfs_target::detach): Pass inferior pointer to | |
890 | detach_inferior. | |
891 | (procfs_target::wait): Pass thread_info pointer to delete_thread. | |
892 | * remote-sim.c (gdbsim_target::mourn_inferior): Remove | |
893 | delete_thread_silent call. | |
894 | * windows-nat.c (windows_delete_thread): Use find_thread_ptid and | |
895 | pass thread_info pointer to delete_thread. | |
896 | (windows_nat_target::detach): Pass inferior pointer to | |
897 | delete_inferior. | |
898 | ||
8e7767e3 AH |
899 | 2018-06-22 Alan Hayward <alan.hayward@arm.com> |
900 | ||
901 | * regcache.c (readable_regcache::read_part): Fix asserts. | |
902 | (reg_buffer::raw_collect_part): New function. | |
903 | (regcache::write_part): Fix asserts. | |
904 | (reg_buffer::raw_supply_part): New function. | |
905 | (regcache::transfer_regset_register): New helper function. | |
906 | (regcache::transfer_regset): Call new functions. | |
907 | (regcache_supply_regset): Use gdb_byte*. | |
908 | (regcache::supply_regset): Likewise. | |
909 | (regcache_collect_regset): Likewise. | |
910 | (regcache::collect_regset): Likewise. | |
911 | * regcache.h (reg_buffer::raw_collect_part): New declaration. | |
912 | (reg_buffer::raw_supply_part): Likewise. | |
913 | (regcache::transfer_regset_register): Likewise. | |
914 | (regcache::transfer_regset): Use gdb_byte*. | |
915 | ||
bfd60e34 AH |
916 | 2018-06-22 Alan Hayward <alan.hayward@arm.com> |
917 | ||
918 | * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &. | |
919 | ||
00431a78 PA |
920 | 2018-06-21 Pedro Alves <palves@redhat.com> |
921 | ||
922 | * ada-lang.h (ada_get_task_number): Take a thread_info pointer | |
923 | instead of a ptid_t. All callers adjusted. | |
924 | * ada-tasks.c (ada_get_task_number): Likewise. All callers | |
925 | adjusted. | |
926 | (print_ada_task_info, display_current_task_id, task_command_1): | |
927 | Adjust. | |
928 | * breakpoint.c (watchpoint_in_thread_scope): Adjust to use | |
929 | inferior_thread. | |
930 | (breakpoint_kind): Adjust. | |
931 | (remove_breakpoints_pid): Rename to ... | |
932 | (remove_breakpoints_inf): ... this. Adjust to take an inferior | |
933 | pointer. All callers adjusted. | |
934 | (bpstat_clear_actions): Use inferior_thread. | |
935 | (get_bpstat_thread): New. | |
936 | (bpstat_do_actions): Use it. | |
937 | (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust | |
938 | to take a thread_info pointer. All callers adjusted. | |
939 | (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint) | |
940 | (breakpoint_re_set_thread): Use inferior_thread. | |
941 | * breakpoint.h (struct inferior): Forward declare. | |
942 | (bpstat_stop_status): Update. | |
943 | (remove_breakpoints_pid): Delete. | |
944 | (remove_breakpoints_inf): New. | |
945 | * bsd-uthread.c (bsd_uthread_target::wait) | |
946 | (bsd_uthread_target::update_thread_list): Use find_thread_ptid. | |
947 | * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch) | |
948 | (maint_btrace_packet_history_cmd) | |
949 | (maint_btrace_clear_packet_history_cmd): Adjust. | |
950 | (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use | |
951 | inferior_thread. | |
952 | * cli/cli-interp.c: Include "inferior.h". | |
953 | * common/refcounted-object.h (struct | |
954 | refcounted_object_ref_policy): New. | |
955 | * compile/compile-object-load.c: Include gdbthread.h. | |
956 | (store_regs): Use inferior_thread. | |
957 | * corelow.c (core_target::close): Use current_inferior. | |
958 | (core_target_open): Adjust to use first_thread_of_inferior and use | |
959 | the current inferior. | |
960 | * ctf.c (ctf_target::close): Adjust to use current_inferior. | |
961 | * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ... | |
962 | <thread>: ... this new field. All references adjusted. | |
963 | (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor): | |
964 | Take a thread_info pointer instead of a ptid_t. | |
965 | * dummy-frame.h (dummy_frame_push, dummy_frame_pop) | |
966 | (dummy_frame_discard, register_dummy_frame_dtor): Take a | |
967 | thread_info pointer instead of a ptid_t. | |
968 | * elfread.c: Include "inferior.h". | |
969 | (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): | |
970 | Use inferior_thread. | |
971 | * eval.c (evaluate_subexp): Likewise. | |
972 | * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use | |
973 | inferior_thread. | |
974 | * gdb_proc_service.h (struct thread_info): Forward declare. | |
975 | (struct ps_prochandle) <ptid>: Delete, replaced by ... | |
976 | <thread>: ... this new field. All references adjusted. | |
977 | * gdbarch.h, gdbarch.c: Regenerate. | |
978 | * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a | |
979 | 'thread' parameter. All implementations and callers adjusted. | |
980 | * gdbthread.h (thread_info) <set_running>: New method. | |
981 | (delete_thread, delete_thread_silent): Take a thread_info pointer | |
982 | instead of a ptid. | |
983 | (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete. | |
984 | (first_thread_of_process): Delete, replaced by ... | |
985 | (first_thread_of_inferior): ... this new function. All callers | |
986 | adjusted. | |
987 | (any_live_thread_of_process): Delete, replaced by ... | |
988 | (any_live_thread_of_inferior): ... this new function. All callers | |
989 | adjusted. | |
990 | (switch_to_thread, switch_to_no_thread): Declare. | |
991 | (is_executing): Delete. | |
992 | (enable_thread_stack_temporaries): Update comment. | |
993 | <enable_thread_stack_temporaries>: Take a thread_info pointer | |
994 | instead of a ptid_t. Incref the thread. | |
995 | <~enable_thread_stack_temporaries>: Decref the thread. | |
996 | <m_ptid>: Delete | |
997 | <m_thr>: New. | |
998 | (thread_stack_temporaries_enabled_p, push_thread_stack_temporary) | |
999 | (get_last_thread_stack_temporary) | |
1000 | (value_in_thread_stack_temporaries, can_access_registers_thread): | |
1001 | Take a thread_info pointer instead of a ptid_t. All callers | |
1002 | adjusted. | |
1003 | * infcall.c (get_call_return_value): Use inferior_thread. | |
1004 | (run_inferior_call): Work with thread pointers instead of ptid_t. | |
1005 | (call_function_by_hand_dummy): Work with thread pointers instead | |
1006 | of ptid_t. Use thread_info_ref. | |
1007 | * infcmd.c (proceed_thread_callback): Access thread's state | |
1008 | directly. | |
1009 | (ensure_valid_thread, ensure_not_running): Use inferior_thread, | |
1010 | access thread's state directly. | |
1011 | (continue_command): Use inferior_thread. | |
1012 | (info_program_command): Use find_thread_ptid and access thread | |
1013 | state directly. | |
1014 | (proceed_after_attach_callback): Use thread state directly. | |
1015 | (notice_new_inferior): Take a thread_info pointer instead of a | |
1016 | ptid_t. All callers adjusted. | |
1017 | (exit_inferior): Take an inferior pointer instead of a pid. All | |
1018 | callers adjusted. | |
1019 | (exit_inferior_silent): New. | |
1020 | (detach_inferior): Delete. | |
1021 | (valid_gdb_inferior_id, pid_to_gdb_inferior_id) | |
1022 | (gdb_inferior_id_to_pid, in_inferior_list): Delete. | |
1023 | (detach_inferior_command, kill_inferior_command): Use | |
1024 | find_inferior_id instead of valid_gdb_inferior_id and | |
1025 | gdb_inferior_id_to_pid. | |
1026 | (inferior_command): Use inferior and thread pointers. | |
1027 | * inferior.h (struct thread_info): Forward declare. | |
1028 | (notice_new_inferior): Take a thread_info pointer instead of a | |
1029 | ptid_t. All callers adjusted. | |
1030 | (detach_inferior): Delete declaration. | |
1031 | (exit_inferior, exit_inferior_silent): Take an inferior pointer | |
1032 | instead of a pid. All callers adjusted. | |
1033 | (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list) | |
1034 | (valid_gdb_inferior_id): Delete. | |
1035 | * infrun.c (follow_fork_inferior, proceed_after_vfork_done) | |
1036 | (handle_vfork_child_exec_or_exit, follow_exec): Adjust. | |
1037 | (struct displaced_step_inferior_state) <pid>: Delete, replaced by | |
1038 | ... | |
1039 | <inf>: ... this new field. | |
1040 | <step_ptid>: Delete, replaced by ... | |
1041 | <step_thread>: ... this new field. | |
1042 | (get_displaced_stepping_state): Take an inferior pointer instead | |
1043 | of a pid. All callers adjusted. | |
1044 | (displaced_step_in_progress_any_inferior): Adjust. | |
1045 | (displaced_step_in_progress_thread): Take a thread pointer instead | |
1046 | of a ptid_t. All callers adjusted. | |
1047 | (displaced_step_in_progress, add_displaced_stepping_state): Take | |
1048 | an inferior pointer instead of a pid. All callers adjusted. | |
1049 | (get_displaced_step_closure_by_addr): Adjust. | |
1050 | (remove_displaced_stepping_state): Take an inferior pointer | |
1051 | instead of a pid. All callers adjusted. | |
1052 | (displaced_step_prepare_throw, displaced_step_prepare) | |
1053 | (displaced_step_fixup): Take a thread pointer instead of a ptid_t. | |
1054 | All callers adjusted. | |
1055 | (start_step_over): Adjust. | |
1056 | (infrun_thread_ptid_changed): Remove bit updating ptids in the | |
1057 | displaced step queue. | |
1058 | (do_target_resume): Adjust. | |
1059 | (fetch_inferior_event): Use inferior_thread. | |
1060 | (context_switch, get_inferior_stop_soon): Take an | |
1061 | execution_control_state pointer instead of a ptid_t. All callers | |
1062 | adjusted. | |
1063 | (switch_to_thread_cleanup): Delete. | |
1064 | (stop_all_threads): Use scoped_restore_current_thread. | |
1065 | * inline-frame.c: Include "gdbthread.h". | |
1066 | (inline_state) <inline_state>: Take a thread pointer instead of a | |
1067 | ptid_t. All callers adjusted. | |
1068 | <ptid>: Delete, replaced by ... | |
1069 | <thread>: ... this new field. | |
1070 | (find_inline_frame_state): Take a thread pointer instead of a | |
1071 | ptid_t. All callers adjusted. | |
1072 | (skip_inline_frames, step_into_inline_frame) | |
1073 | (inline_skipped_frames, inline_skipped_symbol): Take a thread | |
1074 | pointer instead of a ptid_t. All callers adjusted. | |
1075 | * inline-frame.h (skip_inline_frames, step_into_inline_frame) | |
1076 | (inline_skipped_frames, inline_skipped_symbol): Likewise. | |
1077 | * linux-fork.c (delete_checkpoint_command): Adjust to use thread | |
1078 | pointers directly. | |
1079 | * linux-nat.c (get_detach_signal): Likewise. | |
1080 | * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter. | |
1081 | (thread_db_notice_clone): Adjust. | |
1082 | (thread_db_find_new_threads_silently) | |
1083 | (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take | |
1084 | a thread pointer instead of a ptid_t. All callers adjusted. | |
1085 | * mi/mi-cmd-var.c: Include "inferior.h". | |
1086 | (mi_cmd_var_update_iter): Update to use thread pointers. | |
1087 | * mi/mi-interp.c (mi_new_thread): Update to use the thread's | |
1088 | inferior directly. | |
1089 | (mi_output_running_pid, mi_inferior_count): Delete, bits factored | |
1090 | out to ... | |
1091 | (mi_output_running): ... this new function. | |
1092 | (mi_on_resume_1): Adjust to use it. | |
1093 | (mi_user_selected_context_changed): Adjust to use inferior_thread. | |
1094 | * mi/mi-main.c (proceed_thread): Adjust to use thread pointers | |
1095 | directly. | |
1096 | (interrupt_thread_callback): : Adjust to use thread and inferior | |
1097 | pointers. | |
1098 | * proc-service.c: Include "gdbthread.h". | |
1099 | (ps_pglobal_lookup): Adjust to use the thread's inferior directly. | |
1100 | * progspace-and-thread.c: Include "inferior.h". | |
1101 | * progspace.c: Include "inferior.h". | |
1102 | * python/py-exitedevent.c (create_exited_event_object): Adjust to | |
1103 | hold a reference to an inferior_object. | |
1104 | * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use | |
1105 | inferior_thread. | |
1106 | * python/py-inferior.c (struct inferior_object): Give the type a | |
1107 | tag name instead of a typedef. | |
1108 | (python_on_normal_stop): No need to check if the current thread is | |
1109 | listed. | |
1110 | (inferior_to_inferior_object): Change return type to | |
1111 | inferior_object. All callers adjusted. | |
1112 | (find_thread_object): Delete, bits factored out to ... | |
1113 | (thread_to_thread_object): ... this new function. | |
1114 | * python/py-infthread.c (create_thread_object): Use | |
1115 | inferior_to_inferior_object. | |
1116 | (thpy_is_stopped): Use thread pointer directly. | |
1117 | (gdbpy_selected_thread): Use inferior_thread. | |
1118 | * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete | |
1119 | field, replaced with ... | |
1120 | <thread>: ... this new field. All users adjusted. | |
1121 | (btpy_insn_or_gap_new): Drop const. | |
1122 | (btpy_list_new): Take a thread pointer instead of a ptid_t. All | |
1123 | callers adjusted. | |
1124 | * python/py-record.c: Include "gdbthread.h". | |
1125 | (recpy_insn_new, recpy_func_new): Take a thread pointer instead of | |
1126 | a ptid_t. All callers adjusted. | |
1127 | (gdbpy_current_recording): Use inferior_thread. | |
1128 | * python/py-record.h (recpy_record_object) <ptid>: Delete | |
1129 | field, replaced with ... | |
1130 | <thread>: ... this new field. All users adjusted. | |
1131 | (recpy_element_object) <ptid>: Delete | |
1132 | field, replaced with ... | |
1133 | <thread>: ... this new field. All users adjusted. | |
1134 | (recpy_insn_new, recpy_func_new): Take a thread pointer instead of | |
1135 | a ptid_t. All callers adjusted. | |
1136 | * python/py-threadevent.c: Include "gdbthread.h". | |
1137 | (get_event_thread): Use thread_to_thread_object. | |
1138 | * python/python-internal.h (struct inferior_object): Forward | |
1139 | declare. | |
1140 | (find_thread_object, find_inferior_object): Delete declarations. | |
1141 | (thread_to_thread_object, inferior_to_inferior_object): New | |
1142 | declarations. | |
1143 | * record-btrace.c: Include "inferior.h". | |
1144 | (require_btrace_thread): Use inferior_thread. | |
1145 | (record_btrace_frame_sniffer) | |
1146 | (record_btrace_tailcall_frame_sniffer): Use inferior_thread. | |
1147 | (get_thread_current_frame): Use scoped_restore_current_thread and | |
1148 | switch_to_thread. | |
1149 | (get_thread_current_frame): Use thread pointer directly. | |
1150 | (record_btrace_replay_at_breakpoint): Use thread's inferior | |
1151 | pointer directly. | |
1152 | * record-full.c: Include "inferior.h". | |
1153 | * regcache.c: Include "gdbthread.h". | |
1154 | (get_thread_arch_regcache): Use the inferior's address space | |
1155 | directly. | |
1156 | (get_thread_regcache, registers_changed_thread): New. | |
1157 | * regcache.h (get_thread_regcache(thread_info *thread)): New | |
1158 | overload. | |
1159 | (registers_changed_thread): New. | |
1160 | (remote_target) <remote_detach_1>: Swap order of parameters. | |
1161 | (remote_add_thread): <remote_add_thread>: Return the new thread. | |
1162 | (get_remote_thread_info(ptid_t)): New overload. | |
1163 | (remote_target::remote_notice_new_inferior): Use thread pointers | |
1164 | directly. | |
1165 | (remote_target::process_initial_stop_replies): Use | |
1166 | thread_info::set_running. | |
1167 | (remote_target::remote_detach_1, remote_target::detach) | |
1168 | (extended_remote_target::detach): Adjust. | |
1169 | * stack.c (frame_show_address): Use inferior_thread. | |
1170 | * target-debug.h (target_debug_print_thread_info_pp): New. | |
1171 | * target-delegates.c: Regenerate. | |
1172 | * target.c (default_thread_address_space): Delete. | |
1173 | (memory_xfer_partial_1): Use current_inferior. | |
1174 | (target_detach): Use current_inferior. | |
1175 | (target_thread_address_space): Delete. | |
1176 | (generic_mourn_inferior): Use current_inferior. | |
1177 | * target.h (struct target_ops) <thread_address_space>: Delete. | |
1178 | (target_thread_address_space): Delete. | |
1179 | * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread | |
1180 | pointers directly. | |
1181 | (delete_thread_1, delete_thread, delete_thread_silent): Take a | |
1182 | thread pointer instead of a ptid_t. Adjust all callers. | |
1183 | (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete. | |
1184 | (first_thread_of_process): Delete, replaced by ... | |
1185 | (first_thread_of_inferior): ... this new function. All callers | |
1186 | adjusted. | |
1187 | (any_thread_of_process): Rename to ... | |
1188 | (any_thread_of_inferior): ... this, and take an inferior pointer. | |
1189 | (any_live_thread_of_process): Rename to ... | |
1190 | (any_live_thread_of_inferior): ... this, and take an inferior | |
1191 | pointer. | |
1192 | (thread_stack_temporaries_enabled_p, push_thread_stack_temporary) | |
1193 | (value_in_thread_stack_temporaries) | |
1194 | (get_last_thread_stack_temporary): Take a thread pointer instead | |
1195 | of a ptid_t. Adjust all callers. | |
1196 | (thread_info::set_running): New. | |
1197 | (validate_registers_access): Use inferior_thread. | |
1198 | (can_access_registers_ptid): Rename to ... | |
1199 | (can_access_registers_thread): ... this, and take a thread | |
1200 | pointer. | |
1201 | (print_thread_info_1): Adjust to compare thread pointers instead | |
1202 | of ptids. | |
1203 | (switch_to_no_thread, switch_to_thread): Make extern. | |
1204 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
1205 | Use m_thread pointer directly. | |
1206 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
1207 | Use inferior_thread. | |
1208 | (thread_command): Use thread pointer directly. | |
1209 | (thread_num_make_value_helper): Use inferior_thread. | |
1210 | * top.c (execute_command): Use inferior_thread. | |
1211 | * tui/tui-interp.c: Include "inferior.h". | |
1212 | * varobj.c (varobj_create): Use inferior_thread. | |
1213 | (value_of_root_1): Use find_thread_global_id instead of | |
1214 | global_thread_id_to_ptid. | |
1215 | ||
33bab475 AH |
1216 | 2018-06-21 Alan Hayward <alan.hayward@arm.com> |
1217 | ||
1218 | * regcache.c (readable_regcache::read_part): Avoid memcpy when | |
1219 | possible. | |
1220 | (regcache::write_part): Likewise. | |
1221 | (readable_regcache::cooked_read_part): Update comment. | |
1222 | (readable_regcache::cooked_write_part): Likewise. | |
1223 | * regcache.h: (readable_regcache::read_part): Likewise. | |
1224 | (regcache::write_part): Likewise. | |
1225 | ||
8363f9d5 RB |
1226 | 2018-06-21 Richard Bunt <richard.bunt@arm.com> |
1227 | Dirk Schubert <dirk.schubert@arm.com> | |
1228 | ||
1229 | * aarch64-linux-nat.c (post_attach): New. | |
1230 | (aarch64_linux_nat_target::post_attach): Override post_attach to | |
1231 | record the number of hardware debug registers. | |
1232 | ||
0d0b0ea2 TT |
1233 | 2018-06-20 Tom Tromey <tom@tromey.com> |
1234 | ||
1235 | * python/py-param.c (add_setshow_generic): Make parameters const. | |
1236 | (parmpy_init): Update. | |
1237 | ||
302abd6e SM |
1238 | 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca> |
1239 | ||
1240 | * regcache.h (regcache_cooked_read_ftype): Rename to... | |
1241 | (register_read_ftype): ...this, change type to function_view. | |
1242 | (class reg_buffer) <save>: Remove src parameter. | |
1243 | (readonly_detached_regcache) <readonly_detached_regcache>: Make | |
1244 | parameter non-const in first overload. Remove src parameter in | |
1245 | second overload. | |
1246 | * regcache.c (do_cooked_read): Remove. | |
1247 | (readonly_detached_regcache::readonly_detached_regcache): Make | |
1248 | parameter non-const, adjust call to other constructor. | |
1249 | (reg_buffer::save): Remove src parameter. | |
1250 | * frame.c (do_frame_register_read): Remove. | |
1251 | (frame_save_as_regcache): Use lambda function. | |
1252 | * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src | |
1253 | parameter to ppu2spu_data *. | |
1254 | (ppu2spu_sniffer): Use lambda function. | |
1255 | ||
19f3f25f SM |
1256 | 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca> |
1257 | ||
1258 | * record-full.c (record_full_target::insert_breakpoint): Remove | |
1259 | "struct" keyword, add const. | |
1260 | ||
d0ac1c44 SM |
1261 | 2018-06-19 Simon Marchi <simon.marchi@ericsson.com> |
1262 | ||
1263 | * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION, | |
1264 | PACKAGE_STRING, PACKAGE_TARNAME): Undefine. | |
1265 | * configure.ac: Remove AC_PREREQ, add missing quoting. | |
1266 | * gnulib/configure.ac: Modernize usage of | |
1267 | AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ. | |
1268 | * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69. | |
1269 | (AUTOMAKE_VERSION): Bump to 1.15.1. | |
1270 | * configure: Re-generate. | |
1271 | * config.in: Re-generate. | |
1272 | * aclocal.m4: Re-generate. | |
1273 | * gnulib/aclocal.m4: Re-generate. | |
1274 | * gnulib/config.in: Re-generate. | |
1275 | * gnulib/configure: Re-generate. | |
1276 | * gnulib/import/Makefile.in: Re-generate. | |
1277 | ||
6ae50267 PA |
1278 | 2018-06-19 Pedro Alves <palves@redhat.com> |
1279 | ||
1280 | * minsyms.c (msym_prefer_to_msym_type): New, factored out from ... | |
1281 | (lookup_minimal_symbol_by_pc_section): ... here with | |
1282 | gdb_assert_not_reached added. | |
1283 | ||
61b04dd0 PA |
1284 | 2018-06-19 Pedro Alves <palves@redhat.com> |
1285 | ||
1286 | * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC | |
1287 | parameter with a block parameter. Compare location's block symbol | |
1288 | with the frame's block instead of addresses. | |
1289 | (skip_inline_frames): Pass the current block instead of the | |
1290 | frame's address. Break out as soon as we determine the frame | |
1291 | should not be skipped. | |
1292 | ||
f709fabb TT |
1293 | 2018-06-18 Tom Tromey <tom@tromey.com> |
1294 | ||
1295 | * solib-aix.c (solib_aix_get_section_offsets): Return | |
1296 | unique_xmalloc_ptr. | |
1297 | (solib_aix_solib_create_inferior_hook): Update. | |
1298 | ||
668eb2f0 TT |
1299 | 2018-06-18 Tom Tromey <tom@tromey.com> |
1300 | ||
1301 | * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr. | |
1302 | ||
309822ca TT |
1303 | 2018-06-18 Tom Tromey <tom@tromey.com> |
1304 | ||
1305 | * solib-frv.c (frv_relocate_main_executable): Use | |
1306 | unique_xmalloc_ptr. | |
1307 | * solib-dsbt.c (dsbt_relocate_main_executable): Use | |
1308 | unique_xmalloc_ptr. | |
1309 | ||
06424eac TT |
1310 | 2018-06-18 Tom Tromey <tom@tromey.com> |
1311 | ||
1312 | * objfiles.h (inhibit_section_map_updates): Update. | |
1313 | (resume_section_map_updates, resume_section_map_updates_cleanup): | |
1314 | Remove. | |
1315 | * solib-svr4.c (svr4_handle_solib_event): Update. | |
1316 | * objfiles.c (inhibit_section_map_updates): Return | |
1317 | scoped_restore_tmpl<int>. | |
1318 | (resume_section_map_updates, resume_section_map_updates_cleanup): | |
1319 | Remove. | |
1320 | ||
b4be9fad TT |
1321 | 2018-06-18 Tom Tromey <tom@tromey.com> |
1322 | ||
1323 | * valprint.h (read_string): Update. | |
1324 | * valprint.c (read_string): Change type of "buffer". | |
1325 | (val_print_string): Update. | |
1326 | * python/py-value.c (valpy_string): Update. | |
1327 | * language.h (struct language_defn) <la_get_string>: Change | |
1328 | type of "buffer". | |
1329 | (default_get_string, c_get_string): Update. | |
1330 | * language.c (default_get_string): Change type of "buffer". | |
1331 | * guile/scm-value.c (gdbscm_value_to_string): Update. | |
1332 | * c-lang.c (c_get_string): Change type of "buffer". | |
1333 | ||
3f0dbd67 TT |
1334 | 2018-06-18 Tom Tromey <tom@tromey.com> |
1335 | ||
1336 | * ser-mingw.c (struct pipe_state_destroyer): New. | |
1337 | (pipe_state_up): New typedef. | |
1338 | (cleanup_pipe_state): Remove. | |
1339 | (pipe_windows_open): Use pipe_state_up. Don't release argv. | |
1340 | ||
69d340c6 TT |
1341 | 2018-06-18 Tom Tromey <tom@tromey.com> |
1342 | ||
1343 | * rust-lang.h (rust_yyerror): Don't declare. | |
1344 | * rust-lang.c (rust_language_defn): Update. | |
1345 | * rust-exp.y (yyerror): Now static. | |
1346 | * parse.c (parse_exp_in_context_1): Update. | |
1347 | * p-lang.h (p_yyerror): Don't declare. | |
1348 | * p-lang.c (p_language_defn): Update. | |
1349 | * p-exp.y (yyerror): Now static. | |
1350 | * opencl-lang.c (opencl_language_defn): Update. | |
1351 | * objc-lang.c (objc_language_defn): Update. | |
1352 | * m2-lang.h (m2_yyerror): Don't declare. | |
1353 | * m2-lang.c (m2_language_defn): Update. | |
1354 | * m2-exp.y (yyerror): Now static. | |
1355 | * language.h (struct language_defn) <la_error>: Remove. | |
1356 | * language.c (unk_lang_error): Remove. | |
1357 | (unknown_language_defn, auto_language_defn): Remove. | |
1358 | * go-lang.h (go_yyerror): Don't declare. | |
1359 | * go-lang.c (go_language_defn): Update. | |
1360 | * go-exp.y (yyerror): Now static. | |
1361 | * f-lang.h (f_yyerror): Don't declare. | |
1362 | * f-lang.c (f_language_defn): Update. | |
1363 | * f-exp.y (yyerror): Now static. | |
1364 | * d-lang.h (d_yyerror): Don't declare. | |
1365 | * d-lang.c (d_language_defn): Update. | |
1366 | * d-exp.y (yyerror): Now static. | |
1367 | * c-lang.h (c_yyerror): Don't declare. | |
1368 | * c-lang.c (c_language_defn, cplus_language_defn) | |
1369 | (asm_language_defn, minimal_language_defn): Update. | |
1370 | * c-exp.y (yyerror): Now static. | |
1371 | * ada-lang.h (ada_yyerror): Don't declare. | |
1372 | * ada-lang.c (ada_language_defn): Update. | |
1373 | * ada-exp.y (yyerror): Now static. | |
1374 | ||
e9902bfc AH |
1375 | 2018-06-18 Alan Hayward <alan.hayward@arm.com> |
1376 | ||
1377 | * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function. | |
1378 | (store_sveregs_to_thread): Likewise. | |
1379 | (aarch64_linux_fetch_inferior_registers): Check for SVE. | |
1380 | (aarch64_linux_store_inferior_registers): Likewise. | |
1381 | * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New | |
1382 | function. | |
1383 | (aarch64_sve_regs_copy_to_regcache): Likewise. | |
1384 | (aarch64_sve_regs_copy_from_regcache): Likewise. | |
1385 | * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New | |
1386 | declaration. | |
1387 | (aarch64_sve_regs_copy_to_regcache): Likewise. | |
1388 | (aarch64_sve_regs_copy_from_regcache): Likewise. | |
1389 | (sve_context): Structure from Linux headers. | |
1390 | (SVE_SIG_ZREGS_SIZE): Define from Linux headers. | |
1391 | (SVE_SIG_ZREG_SIZE): Likewise. | |
1392 | (SVE_SIG_PREG_SIZE): Likewise. | |
1393 | (SVE_SIG_FFR_SIZE): Likewise. | |
1394 | (SVE_SIG_REGS_OFFSET): Likewise. | |
1395 | (SVE_SIG_ZREGS_OFFSET): Likewise. | |
1396 | (SVE_SIG_ZREG_OFFSET): Likewise. | |
1397 | (SVE_SIG_ZREGS_SIZE): Likewise. | |
1398 | (SVE_SIG_PREGS_OFFSET): Likewise. | |
1399 | (SVE_SIG_PREG_OFFSET): Likewise. | |
1400 | (SVE_SIG_PREGS_SIZE): Likewise. | |
1401 | (SVE_SIG_FFR_OFFSET): Likewise. | |
1402 | (SVE_SIG_REGS_SIZE): Likewise. | |
1403 | (SVE_SIG_CONTEXT_SIZE): Likewise. | |
1404 | (SVE_PT_REGS_MASK): Likewise. | |
1405 | (SVE_PT_REGS_FPSIMD): Likewise. | |
1406 | (SVE_PT_REGS_SVE): Likewise. | |
1407 | (SVE_PT_VL_INHERIT): Likewise. | |
1408 | (SVE_PT_VL_ONEXEC): Likewise. | |
1409 | (SVE_PT_REGS_OFFSET): Likewise. | |
1410 | (SVE_PT_FPSIMD_OFFSET): Likewise. | |
1411 | (SVE_PT_FPSIMD_SIZE): Likewise. | |
1412 | (SVE_PT_SVE_ZREG_SIZE): Likewise. | |
1413 | (SVE_PT_SVE_PREG_SIZE): Likewise. | |
1414 | (SVE_PT_SVE_FFR_SIZE): Likewise. | |
1415 | (SVE_PT_SVE_FPSR_SIZE): Likewise. | |
1416 | (SVE_PT_SVE_FPCR_SIZE): Likewise. | |
1417 | (__SVE_SIG_TO_PT): Likewise. | |
1418 | (SVE_PT_SVE_OFFSET): Likewise. | |
1419 | (SVE_PT_SVE_ZREGS_OFFSET): Likewise. | |
1420 | (SVE_PT_SVE_ZREG_OFFSET): Likewise. | |
1421 | (SVE_PT_SVE_ZREGS_SIZE): Likewise. | |
1422 | (SVE_PT_SVE_PREGS_OFFSET): Likewise. | |
1423 | (SVE_PT_SVE_PREG_OFFSET): Likewise. | |
1424 | (SVE_PT_SVE_PREGS_SIZE): Likewise. | |
1425 | (SVE_PT_SVE_FFR_OFFSET): Likewise. | |
1426 | (SVE_PT_SVE_FPSR_OFFSET): Likewise. | |
1427 | (SVE_PT_SVE_FPCR_OFFSET): Likewise. | |
1428 | (SVE_PT_SVE_SIZE): Likewise. | |
1429 | (SVE_PT_SIZE): Likewise. | |
1430 | (HAS_SVE_STATE): New define. | |
1431 | ||
17a1cc89 AH |
1432 | 2018-06-18 Alan Hayward <alan.hayward@arm.com> |
1433 | ||
1434 | * nat/aarch64-sve-linux-sigcontext.h: New file. | |
1435 | * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to | |
1436 | new files. | |
1437 | (SVE_VQ_MIN): Likewise. | |
1438 | (SVE_VQ_MAX): Likewise. | |
1439 | (SVE_VL_MIN): Likewise. | |
1440 | (SVE_VL_MAX): Likewise. | |
1441 | (SVE_NUM_ZREGS): Likewise. | |
1442 | (SVE_NUM_PREGS): Likewise. | |
1443 | (sve_vl_valid): Likewise. | |
1444 | (struct user_sve_header): Likewise. | |
1445 | ||
7010835a AB |
1446 | 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com> |
1447 | Richard Bunt <Richard.Bunt@arm.com> | |
1448 | ||
1449 | * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it | |
1450 | was requested by GDB. | |
1451 | ||
479b3ef4 TV |
1452 | 2018-06-15 Tom de Vries <tdevries@suse.de> |
1453 | ||
1454 | * MAINTAINERS (Write After Approval): Add Tom de Vries. | |
1455 | ||
8199b8f4 SM |
1456 | 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca> |
1457 | ||
1458 | * gnulib/update-gnulib.sh: Print expected versions of | |
1459 | autoconf/aclocal. | |
1460 | ||
55c748a1 SM |
1461 | 2018-06-14 Simon Marchi <simon.marchi@ericsson.com> |
1462 | ||
1463 | * arch-utils.c (default_type_align): Use type_length_units. | |
1464 | * gdbtypes.c (type_align): Use type_length_units. | |
1465 | ||
87a8eca7 PW |
1466 | 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1467 | ||
1468 | * cli/cli-script.c (_initialize_cli_script): Fix online documentation | |
1469 | of 'define' command. | |
1470 | ||
5d9a0608 TV |
1471 | 2018-06-14 Tom de Vries <tdevries@suse.de> |
1472 | ||
1473 | PR cli/22573 | |
1474 | * infcmd.c (print_return_value_1): Use get_user_print_options instead of | |
1475 | get_no_prettyformat_print_options. | |
1476 | ||
ab89b5a5 SM |
1477 | 2018-06-13 Simon Marchi <simon.marchi@ericsson.com> |
1478 | ||
1479 | * sparc-nat.h: Include target.h. | |
1480 | * sparc64-linux-nat.c (class sparc64_linux_nat_target) | |
1481 | <fetch_registers>: Remove this argument in function call. | |
1482 | <store_registers>: Remove this argument in function call, remove | |
1483 | extra semicolon. | |
1484 | <low_forget_process>: Call sparc64_forget_process instead of | |
1485 | sparc_forget_process. | |
1486 | ||
62c808ae RO |
1487 | 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1488 | ||
1489 | * procfs.c (_initialize_procfs): Use add_inf_child_target. | |
1490 | (procfs_target::make_corefile_notes): Adjust to new | |
1491 | target_read_alloc return type. | |
1492 | ||
1840d81a AB |
1493 | 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com> |
1494 | Stephen Roberts <stephen.roberts@arm.com> | |
1495 | ||
1496 | PR gdb/22882 | |
1497 | * infrun.c (fetch_inferior_event): If GDB is not proceeding then | |
1498 | run INF_EXEC_COMPLETE handler, even when not calling normal_stop. | |
1499 | Move should_notify_stop local into more inner scope. | |
1500 | ||
9516f85a AB |
1501 | 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com> |
1502 | Stephen Roberts <stephen.roberts@arm.com> | |
1503 | ||
1504 | PR gdb/22882 | |
1505 | * infrun.c (resume_1): Add call to mark_async_event_handler. | |
1506 | ||
defd2172 AB |
1507 | 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com> |
1508 | ||
1509 | * infrun.c (do_target_wait): Change old version of $pc printed. | |
1510 | ||
7b23e087 SM |
1511 | 2018-06-11 Simon Marchi <simon.marchi@ericsson.com> |
1512 | ||
1513 | * dwarf2read.c (read_index_from_section): Rename to... | |
1514 | (read_gdb_index_from_section): ... this, update all callers. | |
1515 | (dwarf2_read_index): Rename to... | |
1516 | (dwarf2_read_gdb_index): ... this, update all callers. | |
1517 | ||
69c67a0b JDA |
1518 | 2018-06-11 John David Anglin <danglin@gcc.gnu.org> |
1519 | ||
1520 | * gdb/hppa-linux-nat.c | |
1521 | (hppa_linux_nat_target::fetch_inferior_registers): Rename to | |
1522 | hppa_linux_nat_target::fetch_registers. | |
1523 | ||
65d4cada AH |
1524 | 2018-06-11 Alan Hayward <alan.hayward@arm.com> |
1525 | ||
1526 | * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings. | |
1527 | * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define. | |
1528 | (AARCH64_DWARF_SVE_FFR): Likewise. | |
1529 | (AARCH64_DWARF_SVE_P0): Likewise. | |
1530 | (AARCH64_DWARF_SVE_Z0): Likewise. | |
1531 | ||
f868386e AH |
1532 | 2018-06-11 Alan Hayward <alan.hayward@arm.com> |
1533 | ||
1534 | * common/common-regcache.h (raw_compare): New function. | |
1535 | * regcache.c (regcache::raw_compare): Likewise. | |
1536 | * regcache.h (regcache::raw_compare): New declaration. | |
1537 | ||
9c861883 AH |
1538 | 2018-06-11 Alan Hayward <alan.hayward@arm.com> |
1539 | ||
1540 | * common/common-regcache.h (reg_buffer_common): New structure. | |
1541 | * regcache.c (reg_buffer::invalidate): Move from detached_regcache. | |
1542 | (reg_buffer::raw_supply): Likewise. | |
1543 | (reg_buffer::raw_supply_integer): Likewise. | |
1544 | (reg_buffer::raw_supply_zeroed): Likewise. | |
1545 | (reg_buffer::raw_collect): Likewise. | |
1546 | (reg_buffer::raw_collect_integer): Likewise. | |
1547 | * regcache.h (reg_buffer::invalidate): Move from detached_regcache. | |
1548 | (reg_buffer::raw_supply): Likewise. | |
1549 | (reg_buffer::raw_supply_integer): Likewise. | |
1550 | (reg_buffer::raw_supply_zeroed): Likewise. | |
1551 | (reg_buffer::raw_collect): Likewise. | |
1552 | (reg_buffer::raw_collect_integer): Likewise. | |
1553 | ||
953edf2b TT |
1554 | 2018-06-10 Tom Tromey <tom@tromey.com> |
1555 | ||
1556 | * remote.c (stop_reply_p): Remove typedef. Don't declare queue. | |
1557 | (class remote_state) <stop_reply_queue>: Now std::vector. | |
1558 | (remote_state::~remote_state) | |
1559 | (remote_target::stop_reply_queue_length): Update. | |
1560 | (struct queue_iter_param, remove_child_of_pending_fork) | |
1561 | (struct check_pending_event_prevents_wildcard_vcont_callback_data) | |
1562 | (check_pending_event_prevents_wildcard_vcont_callback) | |
1563 | (remove_stop_reply_for_inferior) | |
1564 | (remove_stop_reply_of_remote_state) | |
1565 | (remote_notif_remove_once_on_match) | |
1566 | (stop_reply_match_ptid_and_ws) | |
1567 | (remote_kill_child_of_pending_fork): Remove. | |
1568 | (remote_target::remove_new_fork_children) | |
1569 | (remote_target::check_pending_events_prevent_wildcard_vcont) | |
1570 | (remote_target::discard_pending_stop_replies) | |
1571 | (remote_target::discard_pending_stop_replies_in_queue) | |
1572 | (remote_target::remote_notif_remove_queued_reply) | |
1573 | (remote_target::queued_stop_reply) | |
1574 | (remote_target::push_stop_reply, remote_target::peek_stop_reply) | |
1575 | (remote_target::wait, remote_target::kill_new_fork_children) | |
1576 | (remote_target::async): Update. | |
1577 | ||
1ddbba9d TT |
1578 | 2018-06-10 Tom Tromey <tom@tromey.com> |
1579 | ||
1580 | * record-full.c (record_full_arch_list_cleanups): Remove. | |
1581 | (record_full_message): Use try/catch. | |
1582 | (record_full_wait_cleanups): Remove. | |
1583 | (record_full_wait_1): Use try/catch. | |
1584 | (record_full_restore): Likewise. | |
1585 | ||
219605fd TT |
1586 | 2018-06-10 Tom Tromey <tom@tromey.com> |
1587 | ||
1588 | * record-full.c (record_full_breakpoint_p): Remove typedef. Don't | |
1589 | declare VEC. Add constructor. | |
1590 | <in_target_beneath>: Now bool. | |
1591 | (record_full_breakpoints): Now a std::vector, static. | |
1592 | (record_full_sync_record_breakpoints) | |
1593 | (record_full_init_record_breakpoints) | |
1594 | (record_full_target::insert_breakpoint) | |
1595 | (record_full_target::remove_breakpoint): Update. Don't use XNEW. | |
1596 | ||
71b73764 SM |
1597 | 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca> |
1598 | ||
1599 | * dwarf2read.c (process_cu_includes): Remove struct keyword. | |
1600 | * serial.c (serial_interface_lookup): Remove struct keyword. | |
1601 | ||
4360561f TT |
1602 | 2018-06-10 Tom Tromey <tom@tromey.com> |
1603 | ||
1604 | * procfs.c (procfs_target::xfer_partial): Use "beneath" as a | |
1605 | method. | |
1606 | * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as | |
1607 | a method. | |
1608 | * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a | |
1609 | method. | |
1610 | * arm-linux-nat.c (arm_linux_nat_target::read_description): Use | |
1611 | "beneath" as a method. | |
1612 | * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description): | |
1613 | Use "beneath" as a method. | |
1614 | ||
d14b92bf TT |
1615 | 2018-06-10 Tom Tromey <tom@tromey.com> |
1616 | ||
1617 | * tracefile.c (struct trace_file_writer_deleter): New. | |
1618 | <operator()>: Rename from trace_file_writer_xfree. | |
1619 | (trace_file_writer_up): New typedef. | |
1620 | (tsave_command, trace_save_tfile, trace_save_ctf): Update. | |
1621 | ||
835dcf92 SM |
1622 | 2018-06-09 Simon Marchi <simon.marchi@ericsson.com> |
1623 | ||
1624 | * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor. | |
1625 | <m_registers, m_register_status>: Change type to | |
1626 | std::unique_ptr. | |
1627 | * regcache.c (reg_buffer::reg_buffer): Use new instead of | |
1628 | XCNEWVEC. | |
1629 | ||
aac0d564 SM |
1630 | 2018-06-09 Simon Marchi <simon.marchi@ericsson.com> |
1631 | ||
1632 | * common/common-regcache.h (enum register_status): Add | |
1633 | underlying type "signed char". | |
1634 | * regcache.h (reg_buffer) <m_register_status>: Change type to | |
1635 | register_status *. | |
1636 | * regcache.c (reg_buffer::reg_buffer): Alocate arrays of | |
1637 | register_status instead of signed char. | |
1638 | (reg_buffer::save): Use REG_UNKNOWN instead of 0. | |
1639 | (reg_buffer::get_register_status): Remove cast. | |
1640 | (readable_regcache::raw_read): Remove cast. | |
1641 | (readable_regcache::cooked_read): Remove cast. | |
1642 | ||
77ad7394 TT |
1643 | 2018-06-09 Tom Tromey <tom@tromey.com> |
1644 | ||
1645 | * source.c (reverse_search_command, forward_search_command): Use | |
1646 | scoped_fd. | |
1647 | ||
191cca63 TT |
1648 | 2018-06-09 Tom Tromey <tom@tromey.com> |
1649 | ||
1650 | * serial.c (serial_ops_p): Remove typedef. Don't declare VEC. | |
1651 | (serial_ops_list): Now static, std::vector. | |
1652 | (serial_interface_lookup, serial_add_interface): Update. | |
1653 | ||
c5d0225d TT |
1654 | 2018-06-09 Tom Tromey <tom@tromey.com> |
1655 | ||
1656 | * dwarf2read.c (process_cu_includes): Update. | |
1657 | (process_full_comp_unit): Update. | |
1658 | * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a | |
1659 | std::vector. | |
1660 | ||
aeab5128 PK |
1661 | 2018-06-08 Paul Koning <paul_koning@dell.com> |
1662 | ||
1663 | PR gdb/23252 | |
1664 | ||
1665 | * python/python.c (do_start_initialization): | |
1666 | Avoid call to internal Python API. | |
1667 | (init__gdb_module): New function. | |
1668 | ||
5045b3d7 GB |
1669 | 2018-06-08 Gary Benson <gbenson@redhat.com> |
1670 | ||
1671 | * linux-thread-db.c (valprint.h): New include. | |
1672 | (struct check_thread_db_info): New structure. | |
1673 | (check_thread_db_on_load, tdb_testinfo): New static globals. | |
1674 | (check_thread_db, check_thread_db_callback): New functions. | |
1675 | (try_thread_db_load_1): Run integrity checks if requested. | |
1676 | (maintenance_check_libthread_db): New function. | |
1677 | (_initialize_thread_db): Register "maint check libthread-db" | |
1678 | and "maint set/show check-libthread-db". | |
1679 | * NEWS: Mention the above new commands. | |
1680 | ||
2f4f025f TT |
1681 | 2018-06-08 Tom Tromey <tom@tromey.com> |
1682 | ||
1683 | * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is | |
1684 | now a method. | |
1685 | ||
343b0027 TT |
1686 | 2018-06-08 Tom Tromey <tom@tromey.com> |
1687 | ||
1688 | * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr. | |
1689 | ||
8dcc53b3 TT |
1690 | 2018-06-08 Tom Tromey <tom@tromey.com> |
1691 | ||
1692 | * common/btrace-common.h (struct btrace_data): Add constructor, | |
1693 | destructor, move assignment operator. | |
1694 | <empty, clear, fini>: New methods. | |
1695 | <format>: Initialize. | |
1696 | (btrace_data_init, btrace_data_fini, btrace_data_clear) | |
1697 | (btrace_data_empty): Don't declare. | |
1698 | * common/btrace-common.c (btrace_data_init): Remove. | |
1699 | (btrace_data::fini): Rename from btrace_data_fini. | |
1700 | (btrace_data::empty): Rename from btrace_data_empty. | |
1701 | (btrace_data::clear): Rename from btrace_data_clear. Return | |
1702 | bool. | |
1703 | * btrace.h (make_cleanup_btrace_data): Don't declare. | |
1704 | * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear) | |
1705 | (parse_xml_btrace): Update. | |
1706 | (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove. | |
1707 | (maint_btrace_clear_packet_history_cmd): Update. | |
1708 | ||
a1740ee1 PA |
1709 | 2018-06-07 Pedro Alves <palves@redhat.com> |
1710 | ||
1711 | * target.h (target_ops) <beneath>: Now a method. All references | |
1712 | updated. | |
1713 | (class target_stack): New. | |
1714 | * target.c (g_target_stack): New. | |
1715 | (g_current_top_target): Delete. | |
1716 | (current_top_target): Get the top target out of g_target_stack. | |
1717 | (target_stack::push, target_stack::unpush): New. | |
1718 | (push_target, unpush_target): Reimplement. | |
1719 | (target_is_pushed): Reimplement in terms of g_target_stack. | |
1720 | (target_ops::beneath, target_stack::find_beneath): New. | |
1721 | ||
d6ca69cd PA |
1722 | 2018-06-07 Pedro Alves <palves@redhat.com> |
1723 | ||
1724 | * target.h (find_target_beneath): Delete declaration. | |
1725 | * target.c (find_target_beneath): Delete definition. | |
1726 | * aix-thread.c: All callers of find_target_beneath adjusted to | |
1727 | call target_ops::beneath instead. | |
1728 | * bsd-uthread.c: Likewise. | |
1729 | * linux-thread-db.c: Likewise. | |
1730 | * ravenscar-thread.c: Likewise. | |
1731 | * sol-thread.c: Likewise. | |
1732 | * spu-multiarch.c: Likewise. | |
1733 | ||
b6a8c27b PA |
1734 | 2018-06-07 Pedro Alves <palves@redhat.com> |
1735 | ||
1736 | * target.h (target_ops) <beneath>: Now a method. All references | |
1737 | updated. | |
1738 | (target_ops) <m_beneath>: New. | |
1739 | * target.c (target_ops::beneath): New. | |
1740 | * corelow.c: Adjust all references to target_ops::beneath. | |
1741 | * linux-thread-db.c: Likewise. | |
1742 | * make-target-delegates: Likewise. | |
1743 | * record-btrace.c: Likewise. | |
1744 | * record-full.c: Likewise. | |
1745 | * remote.c: Likewise. | |
1746 | * target.c: Likewise. | |
1747 | * target-delegates.c: Regenerate. | |
1748 | ||
8b88a78e PA |
1749 | 2018-06-07 Pedro Alves <palves@redhat.com> |
1750 | ||
1751 | * target.h (target_stack): Delete. | |
1752 | (current_top_target): Declare function. | |
1753 | * target.c (target_stack): Delete. | |
1754 | (g_current_top_target): New. | |
1755 | (current_top_target): New function. | |
1756 | * auxv.c: Use current_top_target instead of target_stack | |
1757 | throughout. | |
1758 | * avr-tdep.c: Likewise. | |
1759 | * breakpoint.c: Likewise. | |
1760 | * corefile.c: Likewise. | |
1761 | * elfread.c: Likewise. | |
1762 | * eval.c: Likewise. | |
1763 | * exceptions.c: Likewise. | |
1764 | * frame.c: Likewise. | |
1765 | * gdbarch-selftests.c: Likewise. | |
1766 | * gnu-v3-abi.c: Likewise. | |
1767 | * ia64-tdep.c: Likewise. | |
1768 | * ia64-vms-tdep.c: Likewise. | |
1769 | * infcall.c: Likewise. | |
1770 | * infcmd.c: Likewise. | |
1771 | * infrun.c: Likewise. | |
1772 | * linespec.c: Likewise. | |
1773 | * linux-tdep.c: Likewise. | |
1774 | * minsyms.c: Likewise. | |
1775 | * ppc-linux-nat.c: Likewise. | |
1776 | * ppc-linux-tdep.c: Likewise. | |
1777 | * procfs.c: Likewise. | |
1778 | * regcache.c: Likewise. | |
1779 | * remote.c: Likewise. | |
1780 | * rs6000-tdep.c: Likewise. | |
1781 | * s390-linux-nat.c: Likewise. | |
1782 | * s390-tdep.c: Likewise. | |
1783 | * solib-aix.c: Likewise. | |
1784 | * solib-darwin.c: Likewise. | |
1785 | * solib-dsbt.c: Likewise. | |
1786 | * solib-spu.c: Likewise. | |
1787 | * solib-svr4.c: Likewise. | |
1788 | * solib-target.c: Likewise. | |
1789 | * sparc-tdep.c: Likewise. | |
1790 | * sparc64-tdep.c: Likewise. | |
1791 | * spu-tdep.c: Likewise. | |
1792 | * symfile.c: Likewise. | |
1793 | * symtab.c: Likewise. | |
1794 | * target-descriptions.c: Likewise. | |
1795 | * target-memory.c: Likewise. | |
1796 | * target.c: Likewise. | |
1797 | * target.h: Likewise. | |
1798 | * tracefile-tfile.c: Likewise. | |
1799 | * tracepoint.c: Likewise. | |
1800 | * valops.c: Likewise. | |
1801 | * valprint.c: Likewise. | |
1802 | * value.c: Likewise. | |
1803 | * windows-tdep.c: Likewise. | |
1804 | * mi/mi-main.c: Likewise. | |
1805 | ||
c7110220 TT |
1806 | 2018-06-07 Tom Tromey <tom@tromey.com> |
1807 | ||
1808 | * valprint.h (build_address_symbolic): Declare. | |
1809 | * printcmd.c (print_address_symbolic): Update. | |
1810 | (build_address_symbolic): Change "name" and "filename" to | |
1811 | std::string. | |
1812 | * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): | |
1813 | Update. | |
1814 | * defs.h (build_address_symbolic): Remove declaration. | |
1815 | ||
63bad7b6 AH |
1816 | 2018-06-07 Alan Hayward <alan.hayward@arm.com> |
1817 | ||
1818 | * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define. | |
1819 | (aarch64_vnv_type): Add function. | |
1820 | (aarch64_pseudo_register_name): Add V regs for SVE. | |
1821 | (aarch64_pseudo_register_type): Likewise. | |
1822 | (aarch64_pseudo_register_reggroup_p): Likewise. | |
1823 | (aarch64_pseudo_read_value_2): Use V0 offset for SVE | |
1824 | (aarch64_pseudo_read_value): Add V regs for SVE. | |
1825 | (aarch64_pseudo_write_2): Use V0 offset for SVE | |
1826 | (aarch64_pseudo_write): Add V regs for SVE. | |
1827 | * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type. | |
1828 | ||
13e3c608 SDJ |
1829 | 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com> |
1830 | ||
1831 | * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef. | |
1832 | (sve_vl_from_vq): Likewise. | |
1833 | ||
c61b06a1 TT |
1834 | 2018-06-05 Tom Tromey <tom@tromey.com> |
1835 | ||
1836 | * cli/cli-cmds.c (show_version): Update. | |
1837 | * top.c (print_gdb_version): Add "interactive" parameter. | |
1838 | Update. | |
1839 | * main.c (captured_main_1): Update. | |
1840 | * top.h (print_gdb_version): Add "interactive" parameter and a | |
1841 | comment. | |
1842 | ||
115f7325 DM |
1843 | 2018-06-05 David Malcolm <dmalcolm@redhat.com> |
1844 | ||
1845 | * common/enum-flags.h: Add trailing semicolon to example in | |
1846 | comment. | |
1847 | ||
eb6af809 TT |
1848 | 2018-06-05 Tom Tromey <tom@tromey.com> |
1849 | ||
1850 | PR cli/12326: | |
1851 | * NEWS: Add entry about pager. | |
1852 | * utils.c (pagination_disabled_for_command): New global. | |
1853 | (prompt_for_continue): Allow "c" response to prompt. | |
1854 | (reinitialize_more_filter): Clear | |
1855 | pagination_disabled_for_command. | |
1856 | (fputs_maybe_filtered): Check pagination_disabled_for_command. | |
1857 | ||
54d343a2 TT |
1858 | 2018-06-04 Tom Tromey <tom@tromey.com> |
1859 | ||
1860 | * ada-lang.h (ada_lookup_symbol_list): Update. | |
1861 | * ada-lang.c (resolve_subexp): Update. | |
1862 | (symbols_are_identical_enums): Change type of syms. Remove nsyms | |
1863 | parameter. | |
1864 | (remove_extra_symbols, remove_irrelevant_renamings): Likewise. | |
1865 | (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change | |
1866 | results parameter to std::vector. | |
1867 | (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value): | |
1868 | Update. | |
1869 | * ada-exp.y (block_lookup): Update. | |
1870 | (select_possible_type_sym): Change type of syms. Remove nsyms | |
1871 | parameter. | |
1872 | (write_var_or_type, write_name_assoc): Update. | |
1873 | ||
178d6a63 JB |
1874 | 2018-06-04 Joel Brobecker <brobecker@adacore.com> |
1875 | ||
1876 | * windows-nat.c (windows_nat_target::xfer_partial): Return | |
1877 | TARGET_XFER_E_IO if we need to delegate to the target beneath | |
1878 | but BENEATH is NULL. | |
1879 | ||
baf00c2d SM |
1880 | 2018-06-04 Simon Marchi <simon.marchi@ericsson.com> |
1881 | ||
1882 | * Makefile.in (config.status): Add configure.nat as a | |
1883 | dependency. | |
1884 | ||
214b073c TT |
1885 | 2018-06-04 Tom Tromey <tom@tromey.com> |
1886 | ||
1887 | * cp-name-parser.y (cpname_state): Add method declarations. | |
1888 | (HANDLE_QUAL): Update. | |
1889 | (cpname_state::d_grab, cpname_state::fill_comp) | |
1890 | (cpname_state::make_operator, cpname_state::make_dtor) | |
1891 | (cpname_state::make_builtin_type, cpname_state::make_name) | |
1892 | (cpname_state::d_qualify, cpname_state::d_int_type) | |
1893 | (cpname_state::d_unary, cpname_state::d_binary): Now methods. | |
1894 | (%union): Move earlier. | |
1895 | ||
62b74cb8 AH |
1896 | 2018-06-04 Alan Hayward <alan.hayward@arm.com> |
1897 | ||
1898 | * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT. | |
1899 | ||
3c5cd5c3 AH |
1900 | 2018-06-04 Alan Hayward <alan.hayward@arm.com> |
1901 | ||
1902 | * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func. | |
1903 | (aarch64_pseudo_write_1): Likewise. | |
1904 | (aarch64_pseudo_read_value): Use helper. | |
1905 | (aarch64_pseudo_write): Likewise. | |
1906 | ||
59f413d5 PA |
1907 | 2018-06-04 Pedro Alves <palves@redhat.com> |
1908 | ||
1909 | * darwin-nat.c (darwin_ops): Delete. | |
1910 | (darwin_attach_pid): Use get_native_target. | |
1911 | ||
1332a140 AH |
1912 | 2018-06-04 Alan Hayward <alan.hayward@arm.com> |
1913 | ||
1914 | * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ. | |
1915 | * aarch64-tdep.h (struct gdbarch_tdep): Likewise. | |
1916 | ||
ba2d2bb2 AH |
1917 | 2018-06-04 Alan Hayward <alan.hayward@arm.com> |
1918 | ||
1919 | * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE. | |
1920 | * aarch64-tdep.c (aarch64_get_tdesc_vq): New function. | |
1921 | (aarch64_gdbarch_init): Check for SVE. | |
1922 | * aarch64-tdep.h (gdbarch_tdep::has_sve): New function. | |
1923 | ||
1924 | 2018-06-04 Alan Hayward <alan.hayward@arm.com> | |
39bfb937 AH |
1925 | |
1926 | * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ. | |
1927 | * aarch64-tdep.h (aarch64_read_description): Likewise. | |
1928 | * arch/aarch64.c (aarch64_create_target_description): Likewise. | |
1929 | * arch/aarch64.h (aarch64_create_target_description): Likewise. | |
1930 | * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise. | |
1931 | * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise. | |
1932 | * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise. | |
1933 | ||
41c60b4b SM |
1934 | 2018-06-02 Simon Marchi <simon.marchi@ericsson.com> |
1935 | ||
1936 | * value.c (value_fetch_lazy_bitfield): New. | |
1937 | (value_fetch_lazy_memory): New. | |
1938 | (value_fetch_lazy_register): New. | |
1939 | (value_fetch_lazy): Factor out to smaller functions. | |
1940 | ||
7b640f72 TT |
1941 | 2018-06-01 Tom Tromey <tom@tromey.com> |
1942 | ||
1943 | * cp-name-parser.y (backslashable, represented): Now const. | |
1944 | ||
98e69eb3 TT |
1945 | 2018-06-01 Tom Tromey <tom@tromey.com> |
1946 | ||
1947 | * cp-name-parser.y: Include parser-defs.h. | |
1948 | (parser_fprintf): Remove declaration. | |
1949 | ||
49265499 TT |
1950 | 2018-06-01 Tom Tromey <tom@tromey.com> |
1951 | ||
1952 | * cp-name-parser.y: Use %pure-parser, %lex-param, and | |
1953 | %parse-param. | |
1954 | (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info) | |
1955 | (global_result): Remove globals. | |
1956 | (struct cpname_state): New. | |
1957 | (yyparse): Don't declare. | |
1958 | (yylex, yyerror): Move declarations after %union. | |
1959 | (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type) | |
1960 | (make_name): Add state parameter. | |
1961 | Update all callers. | |
1962 | (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state | |
1963 | parameter. | |
1964 | (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3): | |
1965 | Update. | |
1966 | (yylex): Add lvalp, state parameters. | |
1967 | (yyerror): Add state parameter. | |
1968 | (cp_demangled_name_to_comp): Update. | |
1969 | ||
55b6c984 TT |
1970 | 2018-06-01 Tom Tromey <tom@tromey.com> |
1971 | ||
1972 | * cp-name-parser.y (parser_fprintf): Declare. | |
1973 | (GDB_YY_REMAP_PREFIX): Define. | |
1974 | Include yy-remap.h. Don't redefine yy* identifiers. | |
1975 | ||
3513a6bb TT |
1976 | 2018-06-01 Tom Tromey <tom@tromey.com> |
1977 | ||
1978 | * python/py-type.c (typy_legacy_template_argument): Update. | |
1979 | * cp-support.h (cp_demangled_name_to_comp): Update. | |
1980 | * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg | |
1981 | parameter to be a "std::string *". | |
1982 | (main): Update. | |
1983 | ||
e9cb46ab L |
1984 | 2018-06-01 H.J. Lu <hongjiu.lu@intel.com> |
1985 | ||
1986 | * ada-lex.l: Include "diagnostics.h" instead of | |
1987 | "common/diagnostics.h". | |
1988 | * unittests/environ-selftests.c: Likewise. | |
1989 | * common/diagnostics.h: Moved to ../include. | |
1990 | ||
8e817061 JB |
1991 | 2018-06-01 Joel Brobecker <brobecker@adacore.com> |
1992 | ||
1993 | * breakpoint.c (breakpoint_re_set): Temporarily force language_mode | |
1994 | to language_mode_manual while calling breakpoint_re_set_one. | |
1995 | ||
a737d952 TT |
1996 | 2018-06-01 Tom Tromey <tom@tromey.com> |
1997 | ||
1998 | * valops.c (value_cast_structs, destructor_name_p): Update. | |
1999 | * symtab.c (gdb_mangle_name): Update. | |
2000 | * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses): | |
2001 | Update. | |
2002 | * p-valprint.c (pascal_object_is_vtbl_ptr_type) | |
2003 | (pascal_object_print_value_fields, pascal_object_print_value): | |
2004 | Update. | |
2005 | * p-typeprint.c (pascal_type_print_derivation_info): Update. | |
2006 | * linespec.c (find_methods): Update. | |
2007 | * gdbtypes.h (type_name_no_tag): Remove. | |
2008 | (type_name_or_error): Rename from type_name_no_tag_or_error. | |
2009 | * gdbtypes.c (type_name_no_tag): Remove. | |
2010 | (type_name_or_error): Rename from type_name_no_tag_or_error. | |
2011 | (lookup_struct_elt_type, check_typedef): Update. | |
2012 | * expprint.c (print_subexp_standard): Update. | |
2013 | * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update. | |
2014 | * d-namespace.c (d_lookup_nested_symbol): Update. | |
2015 | * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields) | |
2016 | (cp_print_class_member): Update. | |
2017 | * cp-namespace.c (cp_lookup_nested_symbol): Update. | |
2018 | * completer.c (add_struct_fields): Update. | |
2019 | * c-typeprint.c (cp_type_print_derivation_info) | |
2020 | (c_type_print_varspec_prefix, c_type_print_base_struct_union): | |
2021 | Update. | |
2022 | * ada-lang.c (parse_old_style_renaming, xget_renaming_scope) | |
2023 | (ada_prefer_type, ada_is_exception_sym): Update. | |
2024 | ||
e86ca25f TT |
2025 | 2018-06-01 Tom Tromey <tom@tromey.com> |
2026 | ||
2027 | * valops.c (enum_constant_from_type, value_namespace_elt) | |
2028 | (value_maybe_namespace_elt): Update. | |
2029 | * valarith.c (find_size_for_pointer_math): Update. | |
2030 | * target-descriptions.c (make_gdb_type): Update. | |
2031 | * symmisc.c (print_symbol): Update. | |
2032 | * stabsread.c (define_symbol, read_type) | |
2033 | (complain_about_struct_wipeout, add_undefined_type) | |
2034 | (cleanup_undefined_types_1): Update. | |
2035 | * rust-lang.c (rust_tuple_type_p, rust_slice_type_p) | |
2036 | (rust_range_type_p, val_print_struct, rust_print_struct_def) | |
2037 | (rust_internal_print_type, rust_composite_type) | |
2038 | (rust_evaluate_funcall, rust_evaluate_subexp) | |
2039 | (rust_inclusive_range_type_p): Update. | |
2040 | * python/py-type.c (typy_get_tag): Update. | |
2041 | * p-typeprint.c (pascal_type_print_base): Update. | |
2042 | * mdebugread.c (parse_symbol, parse_type): Update. | |
2043 | * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum): | |
2044 | Update. | |
2045 | * guile/scm-type.c (gdbscm_type_tag): Update. | |
2046 | * go-lang.c (sixg_string_p): Update. | |
2047 | * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type): | |
2048 | Update. | |
2049 | * gdbtypes.h (struct main_type) <tag_name>: Remove. | |
2050 | (TYPE_TAG_NAME): Remove. | |
2051 | * gdbtypes.c (type_name_no_tag): Simplify. | |
2052 | (check_typedef, check_types_equal, recursive_dump_type) | |
2053 | (copy_type_recursive, arch_composite_type): Update. | |
2054 | * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix | |
2055 | in summary mode when needed. | |
2056 | * eval.c (evaluate_funcall): Update. | |
2057 | * dwarf2read.c (fixup_go_packaging, read_structure_type) | |
2058 | (process_structure_scope, read_enumeration_type) | |
2059 | (read_namespace_type, read_module_type, determine_prefix): Update. | |
2060 | * cp-support.c (inspect_type): Update. | |
2061 | * coffread.c (process_coff_symbol, decode_base_type): Update. | |
2062 | * c-varobj.c (c_is_path_expr_parent): Update. | |
2063 | * c-typeprint.c (c_type_print_base_struct_union): Update. | |
2064 | (c_type_print_base_1): Update. Print struct/class/union/enum in | |
2065 | summary when using C language. | |
2066 | * ax-gdb.c (gen_struct_ref, gen_namespace_elt) | |
2067 | (gen_maybe_namespace_elt): Update. | |
2068 | * ada-lang.c (ada_type_name): Simplify. | |
2069 | (empty_record, ada_template_to_fixed_record_type_1) | |
2070 | (template_to_static_fixed_type) | |
2071 | (to_record_with_fixed_variant_part, ada_check_typedef): Update. | |
2072 | ||
c1ec8cea TT |
2073 | 2018-06-01 Tom Tromey <tom@tromey.com> |
2074 | ||
2075 | * dwarf2read.c (dwarf2_compute_name): Pass CU's language to | |
2076 | c_print_type. | |
2077 | * c-typeprint.c (c_print_type_1): Add "language" parameter. | |
2078 | (c_print_type): Update. | |
2079 | (c_print_type): New overload. | |
2080 | (c_type_print_varspec_prefix, c_type_print_args) | |
2081 | (c_type_print_varspec_suffix, c_print_type_no_offsets) | |
2082 | (c_type_print_base_struct_union, c_type_print_base_1) | |
2083 | (cp_type_print_method_args): Add "language" parameter. | |
2084 | (c_type_print_base): Update. | |
2085 | * c-lang.h (c_print_type): Add new overload. | |
2086 | ||
bc8453a7 TT |
2087 | 2018-06-01 Tom Tromey <tom@tromey.com> |
2088 | ||
2089 | * typeprint.h (c_type_print_varspec_suffix): Don't declare. | |
2090 | * c-typeprint.c (c_type_print_varspec_suffix): Now static. | |
2091 | ||
739e8682 AH |
2092 | 2018-06-01 Alan Hayward <alan.hayward@arm.com> |
2093 | ||
2094 | * aarch64-tdep.c (aarch64_sve_register_names): New const | |
2095 | var. | |
2096 | * arch/aarch64.h (enum aarch64_regnum): Add SVE entries. | |
2097 | (AARCH64_SVE_Z_REGS_NUM): New define. | |
2098 | (AARCH64_SVE_P_REGS_NUM): Likewise. | |
2099 | (AARCH64_SVE_NUM_REGS): Likewise. | |
2100 | ||
8a60efe7 UB |
2101 | 2018-05-31 Uros Bizjak <ubizjak@gmail.com> |
2102 | ||
2103 | * nat/linux-ptrace.h [__alpha__] | |
2104 | (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove | |
2105 | definitions. | |
2106 | ||
4b2dfa9d MR |
2107 | 2018-05-31 Maciej W. Rozycki <macro@mips.com> |
2108 | ||
2109 | * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to | |
2110 | the endianness selected. | |
2111 | * NEWS: Document `set endian auto' mode operation update. | |
2112 | ||
122394f1 AH |
2113 | 2018-05-31 Alan Hayward <alan.hayward@arm.com> |
2114 | ||
2115 | * Makefile.in: Add new header. | |
2116 | * gdb/arch/aarch64.h (sve_vg_from_vl): New macro. | |
2117 | (sve_vl_from_vg): Likewise. | |
2118 | (sve_vq_from_vl): Likewise. | |
2119 | (sve_vl_from_vq): Likewise. | |
2120 | (sve_vq_from_vg): Likewise. | |
2121 | (sve_vg_from_vq): Likewise. | |
2122 | * configure.nat: Add new c file. | |
2123 | * nat/aarch64-sve-linux-ptrace.c: New file. | |
2124 | * nat/aarch64-sve-linux-ptrace.h: New file. | |
2125 | ||
95228a0d AH |
2126 | 2018-05-31 Alan Hayward <alan.hayward@arm.com> |
2127 | ||
2128 | * aarch64-linux-nat.c (aarch64_linux_read_description): | |
2129 | Add parmeter zero. | |
2130 | * aarch64-linux-tdep.c (aarch64_linux_core_read_description): | |
2131 | Likewise. | |
2132 | * aarch64-tdep.c (tdesc_aarch64_list): Add. | |
2133 | (aarch64_read_description): Use VQ to index tdesc_aarch64_list. | |
2134 | (aarch64_gdbarch_init): Add parmeter zero. | |
2135 | * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter. | |
2136 | * arch/aarch64.c (aarch64_create_target_description): Check VQ. | |
2137 | * arch/aarch64.h (aarch64_create_target_description): Add VQ. | |
2138 | parmeter. | |
2139 | * doc/gdb.texinfo: Describe SVE feature | |
2140 | * features/aarch64-sve.c: New file. | |
2141 | ||
5969f0db OJ |
2142 | 2018-05-31 Omair Javaid <omair.javaid@linaro.org> |
2143 | ||
2144 | PR gdb/23210 | |
2145 | * gdbarch.sh (significant_addr_bit): Default to zero when | |
2146 | not set by target architecture. | |
2147 | * gdbarch.c: Re-generated. | |
2148 | * utils.c (address_significant): Update. | |
2149 | ||
61367c61 JB |
2150 | 2018-05-30 Joel Brobecker <brobecker@adacore.com> |
2151 | ||
2152 | * stack.c (func_command): Remove trailing newline in call to error. | |
2153 | ||
34a79281 SM |
2154 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
2155 | ||
2156 | * regcache.h (regcache_raw_collect): Remove, update callers to | |
2157 | use regcache::raw_collect. | |
2158 | * regcache.c (regcache_raw_collect): Remove. | |
2159 | ||
73e1c03f SM |
2160 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
2161 | ||
2162 | * regcache.h (regcache_raw_supply): Remove, update callers to | |
2163 | use detached_regcache::raw_supply. | |
2164 | * regcache.c (regcache_raw_supply): Remove. | |
2165 | ||
e4c4a59b SM |
2166 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
2167 | ||
2168 | * regcache.h (regcache_cooked_write_part): Remove, update | |
2169 | callers to use regcache::cooked_write_part. | |
2170 | * regcache.c (regcache_cooked_write_part): Remove. | |
2171 | ||
73bb0000 SM |
2172 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
2173 | ||
2174 | * regcache.h (regcache_cooked_read_part): Remove, update callers | |
2175 | to use readable_regcache::cooked_read_part. | |
2176 | * regcache.c (regcache_cooked_read_part): Remove. | |
2177 | ||
46a45e9d SM |
2178 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
2179 | ||
2180 | * regcache.h (regcache_cooked_read_value): Remove, update | |
2181 | callers to use readable_regcache::cooked_read_value. | |
2182 | * regcache.c (regcache_cooked_read_value): Remove. | |
2183 | ||
b66f5587 SM |
2184 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
2185 | ||
2186 | * regcache.h (regcache_cooked_write): Remove, update callers to | |
2187 | use regcache::cooked_write. | |
2188 | * regcache.c (regcache_cooked_write): Remove. | |
2189 | ||
6aa7d724 SM |
2190 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
2191 | ||
2192 | * regcache.h (regcache_invalidate): Remove, update callers to | |
2193 | use detached_regcache::invalidate instead. | |
2194 | * regcache.c (regcache_invalidate): Remove. | |
2195 | ||
4f0420fd SM |
2196 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
2197 | ||
2198 | * regcache.h (regcache_raw_write_part): Remove, update callers | |
2199 | to use regcache::raw_write_part instead. | |
2200 | * regcache.c (regcache_raw_write_part): Remove. | |
2201 | ||
502fe83e SM |
2202 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
2203 | ||
2204 | * regcache.h (regcache_raw_read_part): Remove, update callers to | |
2205 | use readable_regcache::raw_read_part instead. | |
2206 | * regcache.c (regcache_raw_read_part): Remove. | |
2207 | ||
dca08e1f SM |
2208 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
2209 | ||
2210 | * regcache.h (regcache_cooked_read): Remove, update callers to | |
2211 | use readable_regcache::cooked_read instead. | |
2212 | * regcache.c (regcache_cooked_read): Remove. | |
2213 | ||
10eaee5f SM |
2214 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
2215 | ||
2216 | * regcache.h (regcache_raw_write): Remove, update callers to use | |
2217 | regcache::raw_write instead. | |
2218 | * regcache.c (regcache_raw_write): Remove. | |
2219 | ||
0b883586 SM |
2220 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
2221 | ||
2222 | * regcache.h (regcache_raw_read): Remove, update callers to use | |
2223 | readable_regcache::raw_read instead. | |
2224 | * regcache.c (regcache_raw_read): Remove. | |
2225 | ||
0b47d985 SM |
2226 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
2227 | ||
2228 | * regcache.h (regcache_raw_update): Remove, update callers to | |
2229 | use readable_regcache::raw_update instead. | |
2230 | * regcache.c (regcache_raw_update): Remove. | |
2231 | ||
0ec9f114 SM |
2232 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
2233 | ||
2234 | * regcache.h (regcache_register_status): Remove, update callers | |
2235 | to use reg_buffer::get_register_status directly instead. | |
2236 | * regcache.c (regcache_register_status): Remove. | |
2237 | ||
222312d3 SM |
2238 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
2239 | ||
2240 | * regcache.h (regcache_get_ptid): Remove, update all callers to | |
2241 | call regcache::ptid instead. | |
2242 | * regcache.c (regcache_get_ptid): Remove. | |
2243 | ||
fdbe37e3 SM |
2244 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
2245 | ||
2246 | * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o. | |
2247 | ||
f7c6f423 PA |
2248 | 2018-05-30 Pedro Alves <palves@redhat.com> |
2249 | ||
2250 | * common/common-exceptions.h (exception_rethrow): Use | |
2251 | ATTRIBUTE_NORETURN. | |
2252 | ||
52941706 SM |
2253 | 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca> |
2254 | ||
2255 | * breakpoint.c (print_solib_event, check_status_catch_solib): | |
2256 | Remove struct keyword in range-based for loops. | |
2257 | * dbxread.c (find_corresponding_bincl_psymtab): Likewise. | |
2258 | * dwarf2read.c (compute_delayed_physnames, rust_union_quirks); | |
2259 | Likewise. | |
2260 | * linespec.c (find_superclass_methods, search_minsyms_for_name): | |
2261 | Likewise. | |
2262 | * symfile.c (addr_info_make_relative): Likewise. | |
2263 | * thread.c (value_in_thread_stack_temporaries): Likewise. | |
2264 | ||
bf2977b5 WP |
2265 | 2018-06-12 Weimin Pan <weimin.pan@oracle.com> |
2266 | ||
2267 | PR gdb/16841 | |
2268 | * valops.c (value_struct_elt_for_reference): Call check_typedef on | |
2269 | aggregate type to get its real type before accessing it. | |
2270 | ||
64cc34d8 WP |
2271 | 2018-05-29 Weimin Pan <weimin.pan@oracle.com> |
2272 | ||
2273 | * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration. | |
2274 | * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition. | |
2275 | * coff-pe-read.c (add_pe_forwarded_sym): Replace | |
2276 | lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol. | |
2277 | * glibc-tdep.c (glibc_skip_solib_resolver): Likewise. | |
2278 | * jit.c (jit_breakpoint_re_set_internal): Likewise. | |
2279 | * printcmd.c (info_address_command): Likewise. | |
2280 | ||
e7ec8713 TT |
2281 | 2018-05-29 Tom Tromey <tom@tromey.com> |
2282 | ||
2283 | * windows-nat.c (handle_exception): Update fall-through comment. | |
2284 | ||
bcb430e4 TT |
2285 | 2018-05-29 Tom Tromey <tom@tromey.com> |
2286 | ||
2287 | * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC. | |
2288 | (struct program_space) <added_solibs>: Now a std::vector. | |
2289 | * breakpoint.c (print_solib_event): Update. | |
2290 | (check_status_catch_solib): Update. | |
2291 | * progspace.c (clear_program_space_solib_cache): Update. | |
2292 | * solib.c (update_solib_list): Update. | |
2293 | ||
894882e3 TT |
2294 | 2018-05-29 Tom Tromey <tom@tromey.com> |
2295 | ||
2296 | * python/py-type.c (typy_richcompare): Update. | |
2297 | * guile/scm-type.c (tyscm_equal_p_type_smob): Update. | |
2298 | * gdbtypes.h (types_deeply_equal): Return bool. | |
2299 | (types_equal): Likewise. | |
2300 | * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't | |
2301 | declare VEC. | |
2302 | (check_types_equal): Change worklist to std::vector. Return | |
2303 | bool. | |
2304 | (struct type_equality_entry): Add constructor. | |
2305 | (compare_maybe_null_strings): Return bool. | |
2306 | (check_types_worklist): Return bool. Change worklist to | |
2307 | std::vector. | |
2308 | (types_deeply_equal): Use std::vector. | |
2309 | (types_equal): Return bool. | |
2310 | (compare_maybe_null_strings): Simplify. | |
2311 | ||
10b2ded4 TT |
2312 | 2018-05-29 Tom Tromey <tom@tromey.com> |
2313 | ||
2314 | * record-btrace.c (tp_t): Remove typedef. Don't declare VEC. | |
2315 | ||
4f7deebe TT |
2316 | 2018-05-29 Tom Tromey <tom@tromey.com> |
2317 | ||
2318 | * objc-lang.h: Don't include cp-support.h. | |
2319 | * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't | |
2320 | declare VEC. | |
2321 | ||
b8283aea TT |
2322 | 2018-05-27 Tom Tromey <tom@tromey.com> |
2323 | ||
2324 | * Makefile.in (DEPFILES): Don't reference REMOTE_OBS. | |
2325 | ||
41a883c8 TT |
2326 | 2018-05-25 Tom Tromey <tom@tromey.com> |
2327 | ||
2328 | * value.c (value::location): Initialize. | |
2329 | ||
bf259e25 TT |
2330 | 2018-05-25 Tom Tromey <tom@tromey.com> |
2331 | ||
2332 | * dbxread.c (init_bincl_list): Remove. | |
2333 | (bincl_list): Now a std::vector. | |
2334 | (bincls_allocated, next_bincl): Remove. | |
2335 | (free_bincl_list, do_free_bincl_list_cleanup) | |
2336 | (make_cleanup_free_bincl_list): Remove. | |
2337 | (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore, | |
2338 | unique_xmalloc_ptr. | |
2339 | (find_corresponding_bincl_psymtab, read_dbx_symtab): Update. | |
2340 | (struct header_file_location): Add constructor. | |
2341 | (add_bincl_to_list): Remove. | |
2342 | ||
d525a99b TT |
2343 | 2018-05-25 Tom Tromey <tom@tromey.com> |
2344 | ||
2345 | * tui/tui.c (tui_enable): Update. | |
2346 | * mi/mi-interp.c (mi_interp::init): Update. | |
2347 | * interps.h (class interp) <name>: New method. | |
2348 | <m_name>: Rename from name. | |
2349 | (~scoped_restore_interp): Update. | |
2350 | * interps.c (interp::interp): Update. | |
2351 | (interp_add, interp_set, interp_lookup_existing) | |
2352 | (current_interp_named_p): Update. | |
2353 | ||
da505cff TT |
2354 | 2018-05-25 Tom Tromey <tom@tromey.com> |
2355 | ||
2356 | * interps.c (interp_name): Remove. | |
2357 | * mi/mi-interp.c (mi_interp::init): Update. | |
2358 | * interps.h (interp_name): Remove. | |
2359 | (~scoped_restore_interp): Update. | |
2360 | * tui/tui.c (tui_enable): Update. | |
2361 | ||
29f94340 TT |
2362 | 2018-05-25 Tom Tromey <tom@tromey.com> |
2363 | ||
2364 | * utils.c (fputs_maybe_filtered): Update. | |
2365 | * linespec.c (decode_line_full): Update. | |
2366 | * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified) | |
2367 | (mi_print_breakpoint_for_event, mi_solib_loaded) | |
2368 | (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed) | |
2369 | (mi_user_selected_context_changed): Update. | |
2370 | * mi/mi-main.c (mi_execute_command): Update. | |
2371 | * cli/cli-script.c (execute_control_command): Update. | |
2372 | * python/python.c (execute_gdb_command): Update. | |
2373 | * solib.c (info_sharedlibrary_command): Update. | |
2374 | * interps.c (interp_ui_out): Remove. | |
2375 | * interps.h (interp_ui_out): Remove. | |
2376 | ||
716b8bc5 TT |
2377 | 2018-05-25 Tom Tromey <tom@tromey.com> |
2378 | ||
2379 | * tui/tui-interp.c (as_tui_interp): Use dynamic_cast. | |
2380 | * mi/mi-interp.c (as_mi_interp): Use dynamic_cast. | |
2381 | * cli/cli-interp.c (as_cli_interp): Use dynamic_cast. | |
2382 | ||
753ff9bd TT |
2383 | 2018-05-25 Tom Tromey <tom@tromey.com> |
2384 | ||
2385 | * cli/cli-interp.c (safe_execute_command): Use scoped_restore. | |
2386 | * interps.c (interp_exec): Use scoped_restore. | |
2387 | ||
5ca3b260 TT |
2388 | 2018-05-25 Tom Tromey <tom@tromey.com> |
2389 | ||
2390 | * remote.c (remote_target::remote_file_get): Use | |
2391 | gdb::byte_vector. | |
2392 | (remote_target::remote_file_put): Likewise. | |
2393 | ||
3173aa2f TT |
2394 | 2018-05-25 Tom Tromey <tom@tromey.com> |
2395 | ||
2396 | * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now | |
2397 | a std::string. | |
2398 | (get_pe_section_index, add_pe_exported_sym): Update. | |
2399 | (read_pe_exported_syms): Use gdb::def_vector. | |
2400 | ||
09a5e1b5 TT |
2401 | 2018-05-25 Tom Tromey <tom@tromey.com> |
2402 | ||
2403 | * frame.c (remove_prev_frame): Remove. | |
2404 | (get_prev_frame_if_no_cycle): Use TRY/CATCH. | |
2405 | ||
d8dab6c3 MR |
2406 | 2018-05-25 Maciej W. Rozycki <macro@mips.com> |
2407 | ||
2408 | * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset): | |
2409 | Remove prototypes. | |
2410 | * mips-linux-nat.c (supply_fpregset): Always call | |
2411 | `mips64_supply_fpregset' rather than `mips_supply_fpregset'. | |
2412 | (fill_fpregset): Always call `mips64_fill_fpregset' rather than | |
2413 | `mips_fill_fpregset'. | |
2414 | * mips-linux-tdep.c (mips_supply_fpregset) | |
2415 | (mips_supply_fpregset_wrapper, mips_fill_fpregset) | |
2416 | (mips_fill_fpregset_wrapper): Remove functions. | |
2417 | (mips64_supply_fpregset, mips64_fill_fpregset): Update comments. | |
2418 | (mips_linux_fpregset): Remove variable. | |
2419 | (mips_linux_iterate_over_regset_sections): Use | |
2420 | `mips64_linux_fpregset' in place of `mips_linux_fpregset'. | |
2421 | (mips_linux_o32_sigframe_init): Remove comment. | |
2422 | ||
3c69da40 PA |
2423 | 2018-05-25 Pedro Alves <palves@redhat.com> |
2424 | ||
2425 | * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS) | |
2426 | (struct readahead_cache, struct packet_reg, struct | |
2427 | remote_arch_state, class remote_state): Move higher up in the | |
2428 | file. | |
2429 | (remote_target::m_remote_state): Now an object instead of a pointer. | |
2430 | (remote_target::get_remote_state): Adjust. | |
2431 | ||
39f0c204 AB |
2432 | 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com> |
2433 | ||
2434 | * stack.c (select_and_print_frame): Delete. | |
2435 | (struct function_bounds): Move struct within function. | |
2436 | (func_command): Most content moved into new function | |
2437 | find_frame_for_function, use new function, print result, add | |
2438 | function comment. | |
2439 | (find_frame_for_function): New function, now returns a result. | |
2440 | ||
d392224a PW |
2441 | 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2442 | ||
2443 | * stack.c (iterate_over_block_arg_vars): Fix comment. | |
2444 | (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout. | |
2445 | ||
45f25d6c AB |
2446 | 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com> |
2447 | ||
2448 | PR gdb/23203 | |
2449 | * frame.c | |
2450 | (scoped_restore_selected_frame::scoped_restore_selected_frame): | |
2451 | Define. | |
2452 | (scoped_restore_selected_frame::~scoped_restore_selected_frame): | |
2453 | Define. | |
2454 | * frame.h (class scoped_restore_selected_frame): New class. | |
2455 | * stack.c (print_frame_local_vars): Remove catching and rethrowing | |
2456 | of any exception, use scoped_restore_selected_frame to restore the | |
2457 | frame instead. | |
2458 | ||
da05d921 PA |
2459 | 2018-05-24 Pedro Alves <palves@redhat.com> |
2460 | ||
2461 | * darwin-nat.h (darwin_nat_target::create_inferior): Mark with | |
2462 | override. | |
2463 | ||
a8be540e TT |
2464 | 2018-05-23 Tom Tromey <tom@tromey.com> |
2465 | ||
2466 | * complaints.c (struct complaints): Remove. | |
2467 | (symfile_complaint_book): Remove. | |
2468 | (series): New global. | |
2469 | (complaint_internal): Update. | |
2470 | (clear_complaints): Update. | |
2471 | ||
ff1cf532 TT |
2472 | 2018-05-23 Tom Tromey <tom@tromey.com> |
2473 | ||
2474 | * complaints.c (counters): New global. | |
2475 | (struct complain): Remove. | |
2476 | (struct complaints) <root>: Remove. | |
2477 | (complaint_sentinel): Remove. | |
2478 | (symfile_complaint_book): Update. | |
2479 | (find_complaint) Remove. | |
2480 | (complaint_internal, clear_complaints): Update. | |
2481 | ||
7ff88174 TT |
2482 | 2018-05-23 Tom Tromey <tom@tromey.com> |
2483 | ||
2484 | * complaints.c (struct complain) <file, line>: Remove. | |
2485 | (find_complaint): Remove file, line parameters. | |
2486 | (complaint_internal): Update. | |
2487 | ||
de54e1a5 TT |
2488 | 2018-05-23 Tom Tromey <tom@tromey.com> |
2489 | ||
2490 | * complaints.c (vcomplaint): Remove. | |
2491 | (complaint_internal) Merge in contents of vcomplaint. | |
2492 | ||
2ac237e5 TT |
2493 | 2018-05-23 Tom Tromey <tom@tromey.com> |
2494 | ||
2495 | * complaints.c (struct complaints) <explanation>: Remove. | |
2496 | (symfile_explanations): Remove. | |
2497 | (symfile_complaint_book): Update. | |
2498 | (vcomplaint): Update. | |
2499 | (struct explanation): Remove. | |
2500 | ||
b98664d3 TT |
2501 | 2018-05-23 Tom Tromey <tom@tromey.com> |
2502 | ||
2503 | * complaints.c (symfile_complaints): Remove. | |
2504 | (complaint_internal): Remove "complaints" parameter. | |
2505 | (clear_complaints, vcomplaint): Remove "c" parameter. | |
2506 | (get_complaints): Remove. | |
2507 | * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint) | |
2508 | (dwarf2_debug_line_missing_file_complaint) | |
2509 | (dwarf2_debug_line_missing_end_sequence_complaint) | |
2510 | (dwarf2_complex_location_expr_complaint) | |
2511 | (dwarf2_const_value_length_mismatch_complaint) | |
2512 | (dwarf2_section_buffer_overflow_complaint) | |
2513 | (dwarf2_macro_malformed_definition_complaint) | |
2514 | (dwarf2_invalid_attrib_class_complaint) | |
2515 | (create_addrmap_from_index, dw2_symtab_iter_next) | |
2516 | (dw2_expand_marked_cus) | |
2517 | (dw2_debug_names_iterator::find_vec_in_debug_names) | |
2518 | (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next) | |
2519 | (create_debug_type_hash_table, init_cutu_and_read_dies) | |
2520 | (partial_die_parent_scope, add_partial_enumeration) | |
2521 | (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die) | |
2522 | (dwarf2_compute_name, dwarf2_physname, read_namespace_alias) | |
2523 | (read_import_statement, read_file_scope, create_dwo_cu_reader) | |
2524 | (create_cus_hash_table, create_dwp_hash_table) | |
2525 | (inherit_abstract_dies, read_func_scope, read_call_site_scope) | |
2526 | (dwarf2_rnglists_process, dwarf2_ranges_process) | |
2527 | (dwarf2_add_type_defn, dwarf2_attach_fields_to_type) | |
2528 | (dwarf2_add_member_fn, get_alignment, maybe_set_alignment) | |
2529 | (handle_struct_member_die, process_structure_scope) | |
2530 | (read_array_type, read_common_block, read_module_type) | |
2531 | (read_tag_pointer_type, read_typedef, read_base_type) | |
2532 | (read_subrange_type, load_partial_dies, partial_die_info::read) | |
2533 | (partial_die_info::read, partial_die_info::read) | |
2534 | (partial_die_info::read, read_checked_initial_length_and_offset) | |
2535 | (dwarf2_string_attr, read_formatted_entries) | |
2536 | (dwarf_decode_line_header) | |
2537 | (lnp_state_machine::check_line_address, dwarf_decode_lines_1) | |
2538 | (new_symbol, dwarf2_const_value_attr, lookup_die_type) | |
2539 | (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset) | |
2540 | (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) | |
2541 | (get_signatured_type, get_DW_AT_signature_type) | |
2542 | (decode_locdesc, file_file_name, consume_improper_spaces) | |
2543 | (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header) | |
2544 | (dwarf_decode_macro_bytes, dwarf_decode_macros) | |
2545 | (dwarf2_symbol_mark_computed, set_die_type) | |
2546 | (read_attribute_value): Update. | |
2547 | * stap-probe.c (handle_stap_probe, get_stap_base_address): | |
2548 | Update. | |
2549 | * dbxread.c (unknown_symtype_complaint) | |
2550 | (lbrac_mismatch_complaint, repeated_header_complaint) | |
2551 | (set_namestring, function_outside_compilation_unit_complaint) | |
2552 | (read_dbx_symtab, process_one_symbol): Update. | |
2553 | * gdbtypes.c (stub_noname_complaint): Update. | |
2554 | * windows-nat.c (handle_unload_dll): Update. | |
2555 | * coffread.c (coff_symtab_read, enter_linenos, decode_type) | |
2556 | (decode_base_type): Update. | |
2557 | * xcoffread.c (bf_notfound_complaint, ef_complaint) | |
2558 | (eb_complaint, record_include_begin, record_include_end) | |
2559 | (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab) | |
2560 | (process_xcoff_symbol, read_symbol) | |
2561 | (function_outside_compilation_unit_complaint) | |
2562 | (scan_xcoff_symtab): Update. | |
2563 | * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update. | |
2564 | * buildsym.c (finish_block_internal, make_blockvector) | |
2565 | (end_symtab_get_static_block, augment_type_symtab): Update. | |
2566 | * dtrace-probe.c (dtrace_process_dof) | |
2567 | (dtrace_static_probe_ops::get_probes): Update. | |
2568 | * complaints.h (struct complaint): Don't declare. | |
2569 | (symfile_complaints): Remove. | |
2570 | (complaint_internal): Remove "complaints" parameter. | |
2571 | (complaint): Likewise. | |
2572 | (clear_complaints): Likewise. | |
2573 | * symfile.c (syms_from_objfile_1, finish_new_objfile) | |
2574 | (reread_symbols): Update. | |
2575 | * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program) | |
2576 | (dwarf2_frame_cache, decode_frame_entry): Update. | |
2577 | * dwarf2loc.c (dwarf_reg_to_regnum): Update. | |
2578 | * objc-lang.c (lookup_objc_class, lookup_child_selector) | |
2579 | (info_selectors_command): Update. | |
2580 | * macrotab.c (macro_include, check_for_redefinition) | |
2581 | (macro_undef): Update. | |
2582 | * objfiles.c (filter_overlapping_sections): Update. | |
2583 | * stabsread.c (invalid_cpp_abbrev_complaint) | |
2584 | (reg_value_complaint, stabs_general_complaint, dbx_lookup_type) | |
2585 | (define_symbol, error_type, read_type, rs6000_builtin_type) | |
2586 | (stabs_method_name_from_physname, read_member_functions) | |
2587 | (read_cpp_abbrev, read_baseclasses, read_tilde_fields) | |
2588 | (attach_fields_to_type, complain_about_struct_wipeout) | |
2589 | (read_range_type, read_args, common_block_start) | |
2590 | (common_block_end, cleanup_undefined_types_1, scan_file_globals): | |
2591 | Update. | |
2592 | * mdebugread.c (index_complaint, unknown_ext_complaint) | |
2593 | (basic_type_complaint, bad_tag_guess_complaint) | |
2594 | (bad_rfd_entry_complaint, unexpected_type_code_complaint) | |
2595 | (reg_value_complaint, parse_symbol, parse_type, upgrade_type) | |
2596 | (parse_procedure, parse_lines) | |
2597 | (function_outside_compilation_unit_complaint) | |
2598 | (parse_partial_symbols, psymtab_to_symtab_1, cross_ref) | |
2599 | (bad_tag_guess_complaint, reg_value_complaint): Update. | |
2600 | * cp-support.c (demangled_name_complaint): Update. | |
2601 | * macroscope.c (sal_macro_scope): Update. | |
2602 | * dwarf-index-write.c (class debug_names): Update. | |
2603 | ||
4e9668d0 TT |
2604 | 2018-05-23 Tom Tromey <tom@tromey.com> |
2605 | ||
2606 | * complaints.c (clear_complaints): Remove "noisy" parameter. | |
2607 | * complaints.h (clear_complaints): Update. | |
2608 | * symfile.c (syms_from_objfile_1, finish_new_objfile) | |
2609 | (reread_symbols): Update. | |
2610 | ||
43ba33c7 TT |
2611 | 2018-05-23 Tom Tromey <tom@tromey.com> |
2612 | ||
2613 | * complaints.c (enum complaint_series): Remove FIRST_MESSAGE, | |
2614 | SUBSEQUENT_MESSAGE. | |
2615 | (vcomplaint, clear_complaints): Update. | |
2616 | (symfile_explanations): Remove some messages. | |
2617 | ||
2b9496b2 TT |
2618 | 2018-05-23 Tom Tromey <tom@tromey.com> |
2619 | ||
2620 | * complaints.c (internal_complaint): Remove. | |
2621 | * complaints.h (internal_complaint): Remove. | |
2622 | ||
35f1fea3 MR |
2623 | 2018-05-22 Maciej W. Rozycki <macro@mips.com> |
2624 | ||
2625 | * i387-tdep.c (i387_collect_xsave): Make `i' unsigned. | |
2626 | ||
6b8edb51 PA |
2627 | 2018-05-22 Pedro Alves <palves@redhat.com> |
2628 | ||
2629 | * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror) | |
2630 | (remote_fileio_badfd, remote_fileio_return_errno) | |
2631 | (remote_fileio_return_success, remote_fileio_func_open) | |
2632 | (remote_fileio_func_open, remote_fileio_func_close) | |
2633 | (remote_fileio_func_read, remote_fileio_func_write) | |
2634 | (remote_fileio_func_lseek, remote_fileio_func_rename) | |
2635 | (remote_fileio_func_unlink, remote_fileio_func_stat) | |
2636 | (remote_fileio_func_fstat, remote_fileio_func_gettimeofday) | |
2637 | (remote_fileio_func_isatty, remote_fileio_func_system): Add | |
2638 | remote_target parameter. | |
2639 | (remote_fio_func_map) <func>: Add remote_target parameter. | |
2640 | (do_remote_fileio_request, remote_fileio_request): | |
2641 | * remote-fileio.h (remote_fileio_request): | |
2642 | * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add | |
2643 | remote_target parameter. | |
2644 | (remote_notif_process, handle_notification): Adjust to pass down | |
2645 | the remote. | |
2646 | (remote_notif_state_allocate): Add remote_target parameter. Save | |
2647 | it. | |
2648 | * remote-notif.h (struct remote_target): Forward declare. | |
2649 | (struct notif_client) <parse, ack, can_get_pending_events>: Add | |
2650 | remote_target parameter. | |
2651 | (struct remote_notif_state) <remote>: New field. | |
2652 | (remote_notif_ack, remote_notif_parse): Add remote_target | |
2653 | parameter. | |
2654 | (remote_notif_state_allocate, remote_notif_state_allocate): Add | |
2655 | remote_target parameter. | |
2656 | * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info) | |
2657 | (threads_listing_context, rmt_thread_action, protocol_feature) | |
2658 | (packet_reg, stop_reply, stop_reply_p, enum packet_support) | |
2659 | (packet_result, struct threads_listing_context, remote_state): | |
2660 | Move definitions and declarations higher up. | |
2661 | (remote_target) <~remote_target>: Declare. | |
2662 | (remote_download_command_source, remote_file_put, remote_file_get) | |
2663 | (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite) | |
2664 | (remote_hostio_pread_vFile, remote_hostio_send_command) | |
2665 | (remote_hostio_set_filesystem, remote_hostio_open) | |
2666 | (remote_hostio_close, remote_hostio_unlink, remote_state) | |
2667 | (get_remote_state, get_remote_packet_size, get_memory_packet_size) | |
2668 | (get_memory_write_packet_size, get_memory_read_packet_size) | |
2669 | (append_pending_thread_resumptions, remote_detach_1) | |
2670 | (append_resumption, remote_resume_with_vcont) | |
2671 | (add_current_inferior_and_thread, wait_ns, wait_as) | |
2672 | (process_stop_reply, remote_notice_new_inferior) | |
2673 | (process_initial_stop_replies, remote_add_thread) | |
2674 | (btrace_sync_conf, remote_btrace_maybe_reopen) | |
2675 | (remove_new_fork_children, kill_new_fork_children) | |
2676 | (discard_pending_stop_replies, stop_reply_queue_length) | |
2677 | (check_pending_events_prevent_wildcard_vcont) | |
2678 | (discard_pending_stop_replies_in_queue, stop_reply) | |
2679 | (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply) | |
2680 | (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns) | |
2681 | (remote_interrupt_as, remote_interrupt_ns) | |
2682 | (remote_get_noisy_reply, remote_query_attached) | |
2683 | (remote_add_inferior, remote_current_thread, get_current_thread) | |
2684 | (set_thread, set_general_thread, set_continue_thread) | |
2685 | (set_general_process, write_ptid) | |
2686 | (remote_unpack_thread_info_response, remote_get_threadinfo) | |
2687 | (parse_threadlist_response, remote_get_threadlist) | |
2688 | (remote_threadlist_iterator, remote_get_threads_with_ql) | |
2689 | (remote_get_threads_with_qxfer) | |
2690 | (remote_get_threads_with_qthreadinfo, extended_remote_restart) | |
2691 | (get_offsets, remote_check_symbols, remote_supported_packet) | |
2692 | (remote_query_supported, remote_packet_size) | |
2693 | (remote_serial_quit_handler, remote_detach_pid) | |
2694 | (remote_vcont_probe, remote_resume_with_hc) | |
2695 | (send_interrupt_sequence, interrupt_query) | |
2696 | (remote_notif_get_pending_events, fetch_register_using_p) | |
2697 | (send_g_packet, process_g_packet, fetch_registers_using_g) | |
2698 | (store_register_using_P, store_registers_using_G) | |
2699 | (set_remote_traceframe, check_binary_download) | |
2700 | (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1) | |
2701 | (remote_xfer_live_readonly_partial, remote_read_bytes) | |
2702 | (remote_send_printf, remote_flash_write, readchar) | |
2703 | (remote_serial_write, putpkt, putpkt_binary, skip_frame) | |
2704 | (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane) | |
2705 | (getpkt_or_notif_sane, remote_vkill, remote_kill_k) | |
2706 | (extended_remote_disable_randomization, extended_remote_run) | |
2707 | (send_environment_packet, extended_remote_environment_support) | |
2708 | (extended_remote_set_inferior_cwd, remote_write_qxfer) | |
2709 | (remote_read_qxfer, push_stop_reply, vcont_r_supported) | |
2710 | (packet_command): Now methods of ... | |
2711 | (remote_target): ... this class. | |
2712 | (m_remote_state) <remote_target>: New field. | |
2713 | (struct remote_state) <stop_reply_queue, | |
2714 | remote_async_inferior_event_token, wait_forever_enabled_p>: New | |
2715 | fields. | |
2716 | (remote_state::remote_state): Allocate stop_reply_queue. | |
2717 | (remote_state): Delete global. | |
2718 | (get_remote_state_raw): Delete. | |
2719 | (remote_target::get_remote_state): Allocate m_remote_state on | |
2720 | demand. | |
2721 | (get_current_remote_target): New. | |
2722 | (remote_ops, extended_remote_ops): Delete. | |
2723 | (wait_forever_enabled_p, remote_async_inferior_event_token): | |
2724 | Delete, moved to struct remote_state. | |
2725 | (remote_target::close): Delete self. Destruction bits split to | |
2726 | ... | |
2727 | (remote_target::~remote_target): ... this. | |
2728 | (show_memory_packet_size): Adjust to use | |
2729 | get_current_remote_target. | |
2730 | (struct protocol_feature) <func>: Add remote_target parameter. | |
2731 | All callers adjusted. | |
2732 | (curr_quit_handler_target): New. | |
2733 | (remote_serial_quit_handler): Reimplement. | |
2734 | (remote_target::open_1): Adjust to use get_current_remote_target. | |
2735 | Heap-allocate remote_target/extended_remote_target instances. | |
2736 | (vcont_builder::vcont_builder): Add remote_target parameter, and | |
2737 | save it in m_remote. All callers adjusted. | |
2738 | (vcont_builder::m_remote): New field. | |
2739 | (vcont_builder::restart, vcont_builder::flush) | |
2740 | (vcont_builder::push_action): Use it. | |
2741 | (remote_target::commit_resume): Use it. | |
2742 | (struct queue_iter_param) <remote>: New field. | |
2743 | (remote_target::remove_new_fork_children): Fill in 'remote' field. | |
2744 | (check_pending_event_prevents_wildcard_vcont_callback_data): New. | |
2745 | (check_pending_event_prevents_wildcard_vcont_callback) | |
2746 | (remote_target::check_pending_events_prevent_wildcard_vcont) | |
2747 | (remote_target::discard_pending_stop_replies) | |
2748 | (remote_target::discard_pending_stop_replies_in_queue) | |
2749 | (remote_target::remote_notif_remove_queued_reply): Fill in | |
2750 | 'remote' field. | |
2751 | (remote_notif_get_pending_events): New. | |
2752 | (remote_target::readchar, remote_target::remote_serial_write): | |
2753 | Save/restore curr_quit_handler_target. | |
2754 | (putpkt): New. | |
2755 | (kill_new_fork_children): Fill in 'remote' field. | |
2756 | (packet_command): Use get_current_remote_target, defer to | |
2757 | remote_target method of same name. | |
2758 | (scoped_remote_fd::scoped_remote_fd): Add 'remote_target' | |
2759 | parameter, and save it in m_remote. All callers adjusted. | |
2760 | (scoped_remote_fd::release): Use m_remote. | |
2761 | (scoped_remote_fd::m_remote): New field. | |
2762 | (remote_file_put, remote_file_get, remote_file_delete): Use | |
2763 | get_current_remote_target, defer to remote_target method of same | |
2764 | name. | |
2765 | (remote_btrace_reset): Add remote_state paremeter. Update all | |
2766 | callers. | |
2767 | (remote_async_inferior_event_handler). Pass down 'data'. | |
2768 | (remote_new_objfile): Use get_current_remote_target. | |
2769 | (remote_target::vcont_r_supported): New. | |
2770 | (set_range_stepping): Use get_current_remote_target and | |
2771 | remote_target::vcont_r_supported. | |
2772 | (_initialize_remote): Don't allocate 'remote_state' and | |
2773 | 'stop_reply_queue' globals. | |
2774 | * remote.h (struct remote_target): Forward declare. | |
2775 | (getpkt, putpkt, remote_notif_get_pending_events): Add | |
2776 | 'remote_target' parameter. | |
2777 | ||
f5db4863 PA |
2778 | 2018-05-22 Pedro Alves <palves@redhat.com> |
2779 | ||
2780 | * remote.c (vcont_builder): Now a class. Make all data members | |
2781 | private. | |
2782 | (vcont_builder) <vcont_builder, restart, flush, push_action>: | |
2783 | Declare methods. | |
2784 | (vcont_builder_restart): Rename to ... | |
2785 | (vcont_builder::restart): ... this. | |
2786 | (vcont_builder_flush): Rename to ... | |
2787 | (vcont_builder::flush): ... this. | |
2788 | (vcont_builder_push_action): Rename to ... | |
2789 | (vcont_builder::push_action): ... this. | |
2790 | (remote_target::commit_resume): Adjust. | |
2791 | ||
cc0be08f PA |
2792 | 2018-05-22 Pedro Alves <palves@redhat.com> |
2793 | ||
2794 | * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ... | |
2795 | (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this. | |
2796 | (get_fixed_memory_packet_size): New. | |
2797 | (get_memory_packet_size): Use it. | |
2798 | (set_memory_packet_size): Don't override the config size with | |
2799 | DEFAULT_MAX_MEMORY_PACKET_SIZE. | |
2800 | (show_memory_packet_size): Use get_fixed_memory_packet_size. | |
2801 | Don't refer to get_memory_packet_size if not connected to a remote | |
2802 | target. Show "(default)" if configured size is 0. | |
2803 | ||
9607784a PA |
2804 | 2018-05-22 Pedro Alves <palves@redhat.com> |
2805 | ||
2806 | * remote.c (remote_target::mourn_inferior): Move | |
2807 | discard_pending_stop_replies call here from ... | |
2808 | (_initialize_remote): ... here. | |
2809 | ||
0e9a6b2f PA |
2810 | 2018-05-22 Pedro Alves <palves@redhat.com> |
2811 | ||
2812 | * remote.c (compare_section_command): Remove set_general_process | |
2813 | call. | |
2814 | ||
43c3a0e4 PA |
2815 | 2018-05-22 Pedro Alves <palves@redhat.com> |
2816 | ||
2817 | * remote.c (struct packet_reg, struct remote_arch_state): | |
2818 | Move higher up in the file. | |
2819 | (remote_state) <m_arch_states>: Store remote_arch_state values | |
2820 | instead of remote_arch_state pointers. | |
2821 | (remote_state::get_remote_arch_state): Adjust. | |
2822 | ||
9d6eea31 PA |
2823 | 2018-05-22 Pedro Alves <palves@redhat.com> |
2824 | ||
2825 | * remote.c: Include <unordered_map>. | |
2826 | (remote_state): Now a class. | |
2827 | (remote_state) <get_remote_arch_state>: Declare method. | |
2828 | <get_remote_arch_state>: New field. | |
2829 | (remote_arch_state) <remote_arch_state>: Declare ctor. | |
2830 | <regs>: Now a unique_ptr. | |
2831 | (remote_gdbarch_data_handle): Delete. | |
2832 | (get_remote_arch_state): Delete. | |
2833 | (remote_state::get_remote_arch_state): New. | |
2834 | (get_remote_state): Adjust to call remote_state's | |
2835 | get_remote_arch_state method. | |
2836 | (init_remote_state): Delete, bits factored out to ... | |
2837 | (remote_arch_state::remote_arch_state): ... this new method. | |
2838 | (get_remote_packet_size, get_memory_packet_size) | |
2839 | (process_g_packet, remote_target::fetch_registers) | |
2840 | (remote_target::prepare_to_store, store_registers_using_G) | |
2841 | (remote_target::store_registers, remote_target::get_trace_status): | |
2842 | Adjust to call remote_state's method. | |
2843 | (_initialize_remote): Remove reference to | |
2844 | remote_gdbarch_data_handle. | |
2845 | ||
dd194f6b PA |
2846 | 2018-05-22 Pedro Alves <palves@redhat.com> |
2847 | ||
2848 | * remote.c (struct readahead_cache) <invalidate, invalidate_fd, | |
2849 | pread>: New method declarations. | |
2850 | (remote_target::open_1): Adjust. | |
2851 | (readahead_cache_invalidate): Rename to ... | |
2852 | (readahead_cache::invalidate): ... this, and adjust to be a class | |
2853 | method. | |
2854 | (readahead_cache_invalidate_fd): Rename to ... | |
2855 | (readahead_cache::invalidate_fd): ... this, and adjust to be a | |
2856 | class method. | |
2857 | (remote_hostio_pwrite): Adjust. | |
2858 | (remote_hostio_pread_from_cache): Rename to ... | |
2859 | (readahead_cache::pread): ... this, and adjust to be a class | |
2860 | method. | |
2861 | (remote_hostio_close): Adjust. | |
2862 | ||
440b7aec PA |
2863 | 2018-05-22 Pedro Alves <palves@redhat.com> |
2864 | ||
2865 | * remote.c (remote_hostio_close_cleanup): Delete. | |
2866 | (class scoped_remote_fd): New. | |
2867 | (remote_file_put, remote_file_get): Use it. | |
2868 | ||
de44f5a7 PA |
2869 | 2018-05-22 Pedro Alves <palves@redhat.com> |
2870 | ||
2871 | (struct vCont_action_support): Use bool and initialize all fields. | |
2872 | (struct readahead_cache): Initialize all fields. | |
2873 | (remote_state): Use bool and initialize all fields. | |
2874 | (remote_state::remote_state, remote_state::~remote_state): New. | |
2875 | (new_remote_state): Delete. | |
2876 | (_initialize_remote): Use new to allocate remote_state. | |
2877 | ||
b1b60145 PA |
2878 | 2018-05-22 Pedro Alves <palves@redhat.com> |
2879 | 張俊芝 <zjz@zjz.name> | |
2880 | ||
2881 | PR gdb/22973 | |
2882 | * c-exp.y: Include "c-support.h". | |
2883 | (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead | |
2884 | of tolower. Use c_ident_is_alpha to scan names. | |
2885 | * c-lang.c: Include "c-support.h". | |
2886 | (convert_ucn, convert_octal, convert_hex, convert_escape): Use | |
2887 | ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit. | |
2888 | * c-support.h: New file, with bits factored out from ... | |
2889 | * cp-name-parser.y: ... this file. | |
2890 | Include "c-support.h". | |
2891 | (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to | |
2892 | c-support.h and renamed. | |
2893 | (symbol_end, yylex): Adjust. | |
2894 | ||
0ec848ad PFC |
2895 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
2896 | ||
2897 | * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the | |
2898 | parameter type to CORE_ADDR. | |
2899 | * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the | |
2900 | parameter type in declaration to CORE_ADDR. | |
2901 | * ppc-linux-tdep.c (ppc_linux_core_read_description): Call | |
2902 | target_auxv_search to get AT_HWCAP and use the result to get the | |
2903 | target description. | |
2904 | * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type | |
2905 | to CORE_ADDR. Remove the cast of the return value to unsigned | |
2906 | long. Fix error predicate of target_auxv_search. | |
2907 | (ppc_linux_nat_target::read_description): Change the type of the | |
2908 | hwcap variable to CORE_ADDR. | |
2909 | ||
0fb2aaa1 PFC |
2910 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
2911 | ||
2912 | * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only | |
2913 | if the size of fpscr is larger than 32 bits. | |
2914 | ||
2c3305f6 PFC |
2915 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
2916 | ||
2917 | * ppc-linux-tdep.c (ppc_linux_vsxregset): New function. | |
2918 | (ppc32_linux_vsxregmap): New global. | |
2919 | (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap, | |
2920 | regcache_supply_regset, and regcache_collect_regset. | |
2921 | * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare. | |
2922 | * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove. | |
2923 | (fetch_vsx_register, store_vsx_register): Remove. | |
2924 | (fetch_vsx_registers): Add regno parameter. Get regset using | |
2925 | ppc_linux_vsxregset. Use regset to supply registers. | |
2926 | (store_vsx_registers): Add regno parameter. Get regset using | |
2927 | ppc_linux_vsxregset. Use regset to collect registers. | |
2928 | (fetch_register): Call fetch_vsx_registers instead of | |
2929 | fetch_vsx_register. | |
2930 | (store_register): Call store_vsx_registers instead of | |
2931 | store_vsx_register. | |
2932 | (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the | |
2933 | new regno parameter. | |
2934 | (store_ppc_registers): Call store_vsx_registers with -1 for the | |
2935 | new regno parameter. | |
2936 | * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget) | |
2937 | (ppc_collect_vsxregset): Remove. | |
2938 | ||
1d75a658 PFC |
2939 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
2940 | ||
2941 | * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register | |
2942 | offset fields. | |
2943 | * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers | |
2944 | for vector register offset fields. | |
2945 | (ppc64_fbsd_reg_offsets): Likewise. | |
2946 | * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment | |
2947 | to vector register offset fields. | |
2948 | * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment | |
2949 | to vector register offset fields. | |
2950 | * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to | |
2951 | vector register offset fields. | |
2952 | * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove | |
2953 | initializers for vector register offset fields. | |
2954 | (rs6000_aix64_reg_offsets): Likewise. | |
2955 | * rs6000-tdep.c (ppc_vrreg_offset): Remove. | |
2956 | (ppc_supply_vrregset): Remove. | |
2957 | (ppc_collect_vrregset): Remove. | |
2958 | * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function. | |
2959 | (ppc_linux_vrregset) : New function. | |
2960 | (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap) | |
2961 | (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals. | |
2962 | (ppc32_linux_vrregset): Remove. | |
2963 | (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset | |
2964 | and use result instead of ppc32_linux_vrregset. | |
2965 | (ppc32_linux_reg_offsets): Remove initializers for vector register | |
2966 | offset fields. | |
2967 | (ppc64_linux_reg_offsets): Likewise. | |
2968 | * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration. | |
2969 | * ppc-linux-nat.c: Include regset.h. | |
2970 | (gdb_vrregset_t): Adjust comment to account for little-endian | |
2971 | mode. | |
2972 | (supply_vrregset, fill_vrregset): Remove. | |
2973 | (fetch_altivec_register, store_altivec_register): Remove. | |
2974 | (fetch_altivec_registers): Add regno parameter. Get regset using | |
2975 | ppc_linux_vrregset. Use regset to supply registers. | |
2976 | (store_altivec_registers): Add regno parameter. Get regset using | |
2977 | ppc_linux_vrregset. Use regset to collect registers. | |
2978 | (fetch_register): Call fetch_altivec_registers instead of | |
2979 | fetch_altivec_register. | |
2980 | (store_register): Call store_altivec_registers instead of | |
2981 | store_altivec_register. | |
2982 | (fetch_ppc_registers): Call fetch_altivec_registers with -1 for | |
2983 | the new regno parameter. | |
2984 | (store_ppc_registers): Call store_altivec_registers with -1 for | |
2985 | the new regno parameter. | |
2986 | ||
d078308a PFC |
2987 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
2988 | ||
2989 | * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET) | |
2990 | (PPC_LINUX_SIZEOF_VSXREGSET): Define. | |
2991 | * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove. | |
2992 | (gdb_vrregset_t): Change array type size to | |
2993 | PPC_LINUX_SIZEOF_VRREGSET. | |
2994 | (gdb_vsxregset_t): Change array type size to | |
2995 | PPC_LINUX_SIZEOF_VSXREGSET. | |
2996 | * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): | |
2997 | Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and | |
2998 | PPC_LINUX_SIZEOF_VSXREGSET. | |
2999 | ||
2e077f5e PFC |
3000 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
3001 | ||
3002 | * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES. | |
3003 | * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to | |
3004 | nat/ppc-linux.c. | |
3005 | (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call | |
3006 | ppc_linux_target_wordsize with tid. | |
3007 | (ppc_linux_nat_target::read_description): Call ppc_linux_target | |
3008 | wordsize with tid. | |
3009 | * nat/ppc-linux.c: Include nat/gdb_ptrace.h. | |
3010 | (ppc64_64bit_inferior_p): Add static and inline specifiers. | |
3011 | (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add | |
3012 | tid parameter. Remove static specifier. | |
3013 | * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration. | |
3014 | (ppc_linux_target_wordsize): New declaration. | |
3015 | ||
bd64614e PFC |
3016 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
3017 | ||
3018 | * arch/ppc-linux-common.c: New file. | |
3019 | * arch/ppc-linux-common.h: New file. | |
3020 | * arch/ppc-linux-tdesc.h: New file. | |
3021 | * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o. | |
3022 | * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o. | |
3023 | (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and | |
3024 | arch/ppc-linux-tdesc.h. | |
3025 | * ppc-linux-nat.c: Include arch/ppc-linux-common.h and | |
3026 | arch/ppc-linux-tdesc.h. | |
3027 | (ppc_linux_nat_target::read_description): Remove target | |
3028 | description matching code. Fill a ppc_linux_features struct and | |
3029 | call ppc_linux_match_description with it. Move comment about ISA | |
3030 | 2.05 to ppc-linux-common.c. | |
3031 | * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and | |
3032 | arch/ppc-linux-tdesc.h. | |
3033 | (ppc_linux_core_read_description): Remove target description | |
3034 | matching code. Fill a ppc_linux_features struct and call | |
3035 | ppc_linux_match_description with it. | |
3036 | * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l) | |
3037 | (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l) | |
3038 | (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l) | |
3039 | (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l) | |
3040 | (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l) | |
3041 | (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l) | |
3042 | (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l) | |
3043 | (tdesc_powerpc_e500l): Remove. | |
3044 | ||
241db429 JB |
3045 | 2018-05-22 Joel Brobecker <brobecker@adacore.com> |
3046 | ||
3047 | * ada-lang.c (catch_assert_command): Pass empty string instead | |
3048 | of NULL for excep_string argument. | |
3049 | ||
75d74cca MR |
3050 | 2018-05-22 Maciej W. Rozycki <macro@mips.com> |
3051 | ||
3052 | * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if | |
3053 | the width of the requested register exceeds the width of the | |
3054 | `ptrace' data type. | |
3055 | ||
122b53ea TT |
3056 | 2018-05-21 Tom Tromey <tom@tromey.com> |
3057 | ||
3058 | * printcmd.c (output_command): Remove. | |
3059 | (output_command_const): Rename to output_command. | |
3060 | * valprint.h (output_command): Rename from output_command_const. | |
3061 | * tracepoint.c (trace_dump_actions): Call output_command. | |
3062 | ||
bc18fbb5 TT |
3063 | 2018-05-21 Tom Tromey <tom@tromey.com> |
3064 | ||
3065 | * mi/mi-cmd-catch.c (mi_cmd_catch_assert) | |
3066 | (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update. | |
3067 | * ada-lang.h (create_ada_exception_catchpoint): Update. | |
3068 | * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a | |
3069 | std::string. | |
3070 | (create_excep_cond_exprs, ~ada_catchpoint) | |
3071 | (should_stop_exception, print_one_exception) | |
3072 | (print_mention_exception, print_recreate_exception): Update. | |
3073 | (ada_get_next_arg): Remove. | |
3074 | (catch_ada_exception_command_split): Use std::string. Change type | |
3075 | of "excep_string", "cond_string". | |
3076 | (catch_ada_exception_command): Update. | |
3077 | (create_ada_exception_catchpoint): Change type of excep_string. | |
3078 | (ada_exception_sal): Remove excep_string parameter. | |
3079 | (~ada_catchpoint): Remove. | |
3080 | ||
790217f6 TT |
3081 | 2018-05-21 Tom Tromey <tom@tromey.com> |
3082 | ||
3083 | * ada-lang.c (ada_collect_symbol_completion_matches): Remove | |
3084 | cleanup. | |
3085 | ||
6f46ac85 TT |
3086 | 2018-05-21 Tom Tromey <tom@tromey.com> |
3087 | ||
3088 | * ada-lang.c (ada_exception_message_1, ada_exception_message): | |
3089 | Return unique_xmalloc_ptr. | |
3090 | (print_it_exception): Update. | |
3091 | ||
15b6611c TT |
3092 | 2018-05-21 Tom Tromey <tom@tromey.com> |
3093 | ||
3094 | * tracepoint.c (trace_dump_actions): Use std::string. | |
3095 | ||
c0c9f665 TT |
3096 | 2018-05-21 Tom Tromey <tom@tromey.com> |
3097 | ||
3098 | * symfile.c (reread_symbols): Use std::string for original_name. | |
3099 | ||
22ca247e TT |
3100 | 2018-05-21 Tom Tromey <tom@tromey.com> |
3101 | ||
3102 | * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr. | |
3103 | (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default | |
3104 | constructor. | |
3105 | ||
184cde75 SM |
3106 | 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca> |
3107 | ||
3108 | * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong | |
3109 | instance to... | |
3110 | (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this. | |
3111 | * objfiles.c (get_objfile_bfd_data): Allocate | |
3112 | objfile_per_bfd_storage with obstack_new when allocating on | |
3113 | obstack. | |
3114 | ||
e39db4db SM |
3115 | 2018-05-20 Simon Marchi <simon.marchi@ericsson.com> |
3116 | ||
3117 | * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or | |
3118 | OBSTACK_ZALLOC. | |
3119 | * dwarf2-frame.c (dwarf2_build_frame_info): Likewise. | |
3120 | * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise. | |
3121 | * mdebugread.c (mdebug_build_psymtabs): Likewise. | |
3122 | (add_pending): Likewise. | |
3123 | (parse_symbol): Likewise. | |
3124 | (parse_partial_symbols): Likewise. | |
3125 | (psymtab_to_symtab_1): Likewise. | |
3126 | (new_psymtab): Likewise. | |
3127 | (elfmdebug_build_psymtabs): Likewise. | |
3128 | * minsyms.c (terminate_minimal_symbol_table): Likewise. | |
3129 | * objfiles.c (get_objfile_bfd_data): Likewise. | |
3130 | (objfile_register_static_link): Likewise. | |
3131 | * psymtab.c (allocate_psymtab): Likewise. | |
3132 | * stabsread.c (read_member_functions): Likewise. | |
3133 | * xcoffread.c (xcoff_end_psymtab): Likewise. | |
3134 | ||
284a0e3c SM |
3135 | 2018-05-20 Simon Marchi <simon.marchi@ericsson.com> |
3136 | ||
3137 | * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if | |
3138 | compiler supports std::is_trivially_constructible. | |
3139 | * common/poison.h: Include obstack.h. | |
3140 | (IsMallocable): Define to is_trivially_constructible if the | |
3141 | compiler supports it, define to true_type otherwise. | |
3142 | (xobnew): New. | |
3143 | (XOBNEW): Redefine. | |
3144 | (xobnewvec): New. | |
3145 | (XOBNEWVEC): Redefine. | |
3146 | * gdb_obstack.h (obstack_zalloc): New. | |
3147 | (OBSTACK_ZALLOC): Redefine. | |
3148 | (obstack_calloc): New. | |
3149 | (OBSTACK_CALLOC): Redefine. | |
3150 | (obstack_new): New. | |
3151 | * gdbarch.sh: Include gdb_obstack in gdbarch.h. | |
3152 | (gdbarch_obstack): New declaration in gdbarch.h, definition in | |
3153 | gdbarch.c. | |
3154 | (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use | |
3155 | obstack_calloc/obstack_zalloc. | |
3156 | (gdbarch_obstack_zalloc): Remove. | |
3157 | * target-descriptions.c (tdesc_data_init): Use obstack_new. | |
3158 | ||
59f66be3 PW |
3159 | 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3160 | ||
3161 | * stack.c (backtrace_command_1): Remove useless variable int i. | |
3162 | ||
50c65c2d PW |
3163 | 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3164 | ||
3165 | * stack.c (print_frame_info): Fix comment. | |
3166 | ||
7ff8cb8c TT |
3167 | 2018-05-18 Tom Tromey <tom@tromey.com> |
3168 | ||
3169 | * dwarf2read.c (struct dwz_file): Add constructor, initializers. | |
3170 | <dwz_bfd>: Now a gdb_bfd_ref_ptr. | |
3171 | (~dwarf2_per_objfile): Update | |
3172 | (dwarf2_get_dwz_file): Use new. | |
3173 | * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a | |
3174 | unique_ptr. | |
3175 | ||
400174b1 TT |
3176 | 2018-05-18 Tom Tromey <tom@tromey.com> |
3177 | ||
3178 | * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a | |
3179 | unique_ptr. | |
3180 | * dwarf2read.c (struct dwp_file): Add constructor and | |
3181 | initializers. | |
3182 | (open_and_init_dwp_file): Return a unique_ptr. | |
3183 | (dwarf2_per_objfile, create_dwp_hash_table) | |
3184 | (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2) | |
3185 | (lookup_dwo_unit_in_dwp): Update. | |
3186 | (open_and_init_dwp_file, get_dwp_file): Update. | |
3187 | ||
3063847f TT |
3188 | 2018-05-18 Tom Tromey <tom@tromey.com> |
3189 | ||
3190 | * dwarf2read.c (dwarf2_per_objfile): Update. | |
3191 | (struct mapped_index): Add initializers. | |
3192 | (dwarf2_read_index): Use new. | |
3193 | (dw2_symtab_iter_init): Update. | |
3194 | * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a | |
3195 | unique_ptr. | |
3196 | ||
d3d02dee SM |
3197 | 2018-05-18 Simon Marchi <simon.marchi@ericsson.com> |
3198 | ||
3199 | * dwarf2read.c (mapped_index) <total_size>: Remove. | |
3200 | ||
1d143c36 SM |
3201 | 2018-05-18 Simon Marchi <simon.marchi@ericsson.com> |
3202 | ||
3203 | * unittests/format_pieces-selftests.c (test_format_specifier): | |
3204 | Add ARI comments. | |
3205 | ||
ce1e8424 TT |
3206 | 2018-05-18 Tom Tromey <tom@tromey.com> |
3207 | ||
3208 | * c-typeprint.c (maybe_print_hole): New function. | |
3209 | (c_print_type_struct_field_offset): Update. | |
3210 | (c_type_print_base_struct_union): Call maybe_print_hole. | |
3211 | ||
ddfe970e KS |
3212 | 2018-05-17 Keith Seitz <keiths@redhat.com> |
3213 | ||
3214 | * breakpoint.c (build_bpstat_chain): New function, moved from | |
3215 | bpstat_stop_status. | |
3216 | (bpstat_stop_status): Add optional parameter, `stop_chain'. | |
3217 | If no stop chain is passed, call build_bpstat_chain to build it. | |
3218 | * breakpoint.h (build_bpstat_chain): Declare. | |
3219 | (bpstat_stop_status): Move documentation here from breakpoint.c. | |
3220 | * infrun.c (handle_signal_stop): Before eliding inlined frames, | |
3221 | build the stop chain and pass it to skip_inline_frames. | |
3222 | Pass this stop chain to bpstat_stop_status. | |
3223 | * inline-frame.c: Include breakpoint.h. | |
3224 | (stopped_by_user_bp_inline_frame): New function. | |
3225 | (skip_inline_frames): Add parameter `stop_chain'. | |
3226 | Move documention to inline-frame.h. | |
3227 | If non-NULL, use stopped_by_user_bp_inline_frame to determine | |
3228 | whether the frame should be elided. | |
3229 | * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'. | |
3230 | Add moved documentation and update for new parameter. | |
3231 | ||
b17992c1 SM |
3232 | 2018-05-17 Simon Marchi <simon.marchi@ericsson.com> |
3233 | ||
3234 | PR cli/14975 | |
3235 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
3236 | unittests/format_pieces-selftests.c. | |
3237 | * common/format.h (format_piece) <operator==>: New. | |
3238 | (format_pieces) <operator[]>: Remove. | |
3239 | * common/format.c (format_pieces::format_pieces): Handle \e. | |
3240 | * unittests/format_pieces-selftests.c: New. | |
3241 | ||
58f0c718 TT |
3242 | 2018-05-17 Tom Tromey <tom@tromey.com> |
3243 | ||
3244 | PR symtab/23010: | |
3245 | * dwarf2read.c (load_cu, dw2_do_instantiate_symtab) | |
3246 | (dw2_instantiate_symtab): Add skip_partial parameter. | |
3247 | (dw2_find_last_source_symtab, dw2_map_expand_apply) | |
3248 | (dw2_lookup_symbol, dw2_expand_symtabs_for_function) | |
3249 | (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname) | |
3250 | (dw2_expand_symtabs_matching_one) | |
3251 | (dw2_find_pc_sect_compunit_symtab) | |
3252 | (dw2_debug_names_lookup_symbol) | |
3253 | (dw2_debug_names_expand_symtabs_for_function): Update. | |
3254 | (init_cutu_and_read_dies): Add skip_partial parameter. | |
3255 | (process_psymtab_comp_unit, build_type_psymtabs_1) | |
3256 | (process_skeletonless_type_unit, load_partial_comp_unit) | |
3257 | (psymtab_to_symtab_1): Update. | |
3258 | (load_full_comp_unit): Add skip_partial parameter. | |
3259 | (process_imported_unit_die, dwarf2_read_addr_index) | |
3260 | (follow_die_offset, dwarf2_fetch_die_loc_sect_off) | |
3261 | (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off) | |
3262 | (read_signatured_type): Update. | |
3263 | ||
3e618834 SM |
3264 | 2018-05-17 Simon Marchi <simon.marchi@ericsson.com> |
3265 | ||
3266 | * value.c (release_value): Remove unused variable. | |
3267 | (record_latest_value): Likewise. | |
3268 | (access_value_history): Likewise. | |
3269 | (preserve_values): Likewise. | |
3270 | ||
fe10fe31 TT |
3271 | 2018-05-17 Tom Tromey <tom@tromey.com> |
3272 | ||
3273 | * extension.h (struct ext_lang_type_printers) <py_type_printers>: | |
3274 | Initialize. | |
3275 | ||
1d761124 MR |
3276 | 2018-05-16 Maciej W. Rozycki <macro@mips.com> |
3277 | ||
3278 | PR gdb/22286 | |
3279 | * linux-nat-trad.c (linux_nat_trad_target::fetch_register): | |
3280 | Also handle registers whose width is not a multiple of | |
3281 | PTRACE_TYPE_RET. | |
3282 | (linux_nat_trad_target::store_register): Likewise. | |
3283 | ||
06333fea TT |
3284 | 2018-05-16 Tom Tromey <tom@tromey.com> |
3285 | ||
3286 | * gdbcore.h (core_bfd): Redefine. | |
3287 | * corelow.c (core_target::close): Update. | |
3288 | (core_target_open): Update. | |
3289 | * progspace.h (struct program_space) <cbfd>: Now a | |
3290 | gdb_bfd_ref_ptr. | |
3291 | ||
921222e2 TT |
3292 | 2018-05-16 Tom Tromey <tom@tromey.com> |
3293 | ||
3294 | PR cli/19551: | |
3295 | * symfile-add-flags.h (enum symfile_add_flags) | |
3296 | <SYMFILE_NOT_FILENAME>: New constant. | |
3297 | * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get | |
3298 | objfile name from BFD. | |
3299 | (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME. | |
3300 | * minidebug.c (find_separate_debug_file_in_section): Put | |
3301 | ".gnu_debugdata" into BFD's file name. | |
3302 | ||
3acb7083 SM |
3303 | 2018-05-16 Simon Marchi <simon.marchi@ericsson.com> |
3304 | ||
3305 | * regcache.c (regcache_read_ftype, regcache_write_ftype): | |
3306 | Remove. | |
3307 | ||
561a72d4 TC |
3308 | 2018-05-15 Tamar Christina <tamar.christina@arm.com> |
3309 | ||
3310 | PR binutils/21446 | |
3311 | * aarch64-tdep.c (aarch64_analyze_prologue, | |
3312 | aarch64_software_single_step, aarch64_displaced_step_copy_insn): | |
3313 | Indicate not interested in errors. | |
3314 | ||
4e6ff0e1 MR |
3315 | 2018-05-15 Maciej W. Rozycki <macro@mips.com> |
3316 | ||
3317 | * mips-linux-nat.c (mips_linux_nat_target::fetch_registers): | |
3318 | Supply the MIPS_ZERO_REGNUM register. | |
3319 | ||
ea33cd92 MR |
3320 | 2018-05-15 Maciej W. Rozycki <macro@mips.com> |
3321 | ||
3322 | * mips-tdep.c (mask_address_var): Make variable static. | |
3323 | ||
2d79090e TT |
3324 | 2018-05-14 Tom Tromey <tom@tromey.com> |
3325 | ||
3326 | * dwarf2read.c (rust_union_quirks): Clear rust_unions. | |
3327 | ||
cf4912ae AB |
3328 | 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com> |
3329 | ||
3330 | * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not | |
3331 | FXSAVE_ADDR for the mxcsr register. | |
3332 | ||
67e6f569 MF |
3333 | 2018-05-11 Max Filippov <jcmvbkbc@gmail.com> |
3334 | ||
3335 | * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition. | |
3336 | ||
15244507 PA |
3337 | 2018-05-11 Pedro Alves <palves@redhat.com> |
3338 | ||
3339 | * corelow.c (core_target) <core_target>: No longer inline. | |
3340 | Initialize m_core_gdbarch, m_core_vec and build the section table | |
3341 | here. | |
3342 | <~core_target>: New. | |
3343 | <core_gdbarch, get_core_register_section>: New methods. | |
3344 | <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields, | |
3345 | factored out from ... | |
3346 | <core_data, core_vec, core_gdbarch>: ... these deleted globals. | |
3347 | (core_ops): Delete. | |
3348 | (sniff_core_bfd): Add gdbarch parameter. | |
3349 | (core_close): Delete, merged into ... | |
3350 | (core_target::close): ... here. Delete self. | |
3351 | (core_close_cleanup): Delete. | |
3352 | (core_target_open): Allocate a core_target on the heap. Use a | |
3353 | unique_ptr instead of a cleanup. Bits moved into the core_target | |
3354 | ctor. Adjust to use core_target methods instead of globals. | |
3355 | (get_core_register_section): Rename to ... | |
3356 | (core_target::get_core_register_section): ... this and adjust. | |
3357 | (struct get_core_registers_cb_data): New. | |
3358 | (get_core_registers_cb): Use it. Use bool. | |
3359 | (core_target::fetch_registers, core_target::files_info) | |
3360 | (core_target::xfer_partial, core_target::read_description) | |
3361 | (core_target::pid_to, core_target::thread_name): Adjust to | |
3362 | reference class fields instead of globals. | |
3363 | * target.h (struct target_ops_deleter, target_ops_up): New. | |
3364 | ||
451953fa PA |
3365 | 2018-05-11 Pedro Alves <palves@redhat.com> |
3366 | ||
3367 | * corefile.c (core_file_command): Move to corelow.c. | |
3368 | * corelow.c (the_core_target): Delete. | |
3369 | (core_file_command): Moved from corefile.c. Check exec_bfd | |
3370 | instead of the_core_target. Use target_detach instead of calling | |
3371 | into the_core_target directly. | |
3372 | (maybe_say_no_core_file_now): New. | |
3373 | (core_target::detach): Use it. | |
3374 | (_initialize_corelow): Remove references to the_core_target. | |
3375 | * gdbcore.h (the_core_target): Delete. | |
3376 | ||
e540a5a2 | 3377 | 2018-05-11 Tom Tromey <tromey@redhat.com> |
3afc23a6 | 3378 | Pedro Alves <palves@redhat.com> |
e540a5a2 TT |
3379 | |
3380 | * corefile.c (core_bfd): Remove. | |
3381 | * gdbcore.h (core_bfd): Now a macro. | |
3382 | * progspace.h (struct program_space) <cbfd>: New field. | |
3383 | ||
633cf254 TT |
3384 | 2018-05-11 Tom Tromey <tom@tromey.com> |
3385 | ||
3386 | * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use | |
3387 | gdb::def_vector. | |
3388 | ||
1a34f210 TT |
3389 | 2018-05-10 Tom Tromey <tom@tromey.com> |
3390 | ||
3391 | * configure: Rebuild. | |
3392 | * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3. | |
3393 | ||
190852c8 JB |
3394 | 2018-05-10 Joel Brobecker <brobecker@adacore.com> |
3395 | ||
3396 | PR server/23158: | |
3397 | * regformats/regdat.sh: Adjust script, following the addition | |
3398 | of the new expedite_regs parameter to init_target_desc. | |
3399 | ||
8727de56 OJ |
3400 | 2018-05-10 Omair Javaid <omair.javaid@linaro.org> |
3401 | ||
3402 | PR gdb/23127 | |
3403 | * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to | |
3404 | set_gdbarch_significant_addr_bit. | |
3405 | * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to | |
3406 | set_gdbarch_significant_addr_bit. | |
3407 | * utils.c (address_significant): Update to sign extend addr. | |
3408 | ||
37d9e062 MF |
3409 | 2018-05-09 Max Filippov <jcmvbkbc@gmail.com> |
3410 | ||
3411 | * xtensa-linux-tdep.c (xtensa-tdep.h): New include. | |
3412 | (xtensa_linux_init_abi): Limit tdep->num_regs by | |
3413 | tdep->num_nopriv_regs. | |
3414 | * xtensa-tdep.c (xtensa_derive_tdep): Calculate | |
3415 | tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's | |
3416 | not initialized. | |
3417 | ||
7402fbca SM |
3418 | 2018-05-08 Simon Marchi <simon.marchi@ericsson.com> |
3419 | ||
3420 | * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE. | |
3421 | ||
8ee22052 AB |
3422 | 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com> |
3423 | ||
3424 | * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant. | |
3425 | (I387_MXCSR_INIT_VAL): New constant. | |
3426 | * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave | |
3427 | buffer if it was supplied by the inferior. | |
3428 | * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL. | |
3429 | (i387_xsave_get_clear_bv): New function. | |
3430 | (i387_supply_xsave): Only read x87 control registers from the | |
3431 | xsave buffer if the feature is enabled, and the state will have | |
3432 | been written, otherwise, provide a suitable default. | |
3433 | (i387_collect_xsave): Pre-clear all registers in xsave buffer, | |
3434 | including x87 control registers. Update control registers if they | |
3435 | have changed from the default value, and mark features as enabled | |
3436 | as required. | |
3437 | * i387-tdep.h (i387_xsave_get_clear_bv): Declare. | |
3438 | ||
968ae51b UW |
3439 | 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com> |
3440 | ||
3441 | * spu-tdep.c (info_spu_event_command): Fix output formatting. | |
3442 | ||
aff689d3 TT |
3443 | 2018-05-07 Tom Tromey <tom@tromey.com> |
3444 | ||
3445 | * configure: Rebuild. | |
3446 | * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond. | |
3447 | ||
ce887586 TT |
3448 | 2018-05-07 Tom Tromey <tom@tromey.com> |
3449 | ||
3450 | PR tdep/20362: | |
3451 | * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D | |
3452 | bit. Use correct value for VDIV. | |
3453 | ||
85e26832 TT |
3454 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3455 | ||
3456 | * configure: Rebuild. | |
3457 | * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough. | |
3458 | ||
449b1ac7 TT |
3459 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3460 | ||
3461 | * linux-record.c (record_linux_system_call) <case | |
3462 | RECORD_SYS_RECVFROM>: Add "break". | |
3463 | ||
15c9ffd6 TT |
3464 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3465 | ||
3466 | * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>: | |
3467 | Add missing "break". | |
3468 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>: | |
3469 | Add missing "break". | |
3470 | ||
e3829d13 TT |
3471 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3472 | ||
3473 | * rs6000-tdep.c (ppc_process_record_op4) | |
3474 | (ppc_process_record_op63): Add fall-through comment. | |
3475 | ||
da0e1563 TT |
3476 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3477 | ||
3478 | * i386-tdep.c (i386_process_record): Add fall-through comment. | |
3479 | ||
0019cd49 TT |
3480 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3481 | ||
3482 | * stabsread.c (define_symbol) <case 'p'>: Add fall-through | |
3483 | comment. | |
3484 | ||
565e0eda TT |
3485 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3486 | ||
3487 | * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment. | |
3488 | * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment. | |
3489 | * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through | |
3490 | comment. | |
3491 | * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through | |
3492 | comment. | |
3493 | * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through | |
3494 | comment. | |
3495 | ||
621846f4 TT |
3496 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3497 | ||
3498 | * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN. | |
3499 | ||
86a73007 TT |
3500 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3501 | ||
3502 | * s390-tdep.c (s390_process_record): Fix fall-through comments. | |
3503 | * xcoffread.c (scan_xcoff_symtab): Move comment later. | |
3504 | * symfile.c (section_is_mapped): Fix fall-through comment. | |
3505 | * stabsread.c (define_symbol, read_member_functions): Fix | |
3506 | fall-through comment. | |
3507 | * s390-linux-tdep.c (s390_process_record): Fix fall-through | |
3508 | comment. | |
3509 | * remote.c (remote_wait_as): Fix fall-through comment. | |
3510 | * p-exp.y (yylex): Fix fall-through comment. | |
3511 | * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through | |
3512 | comment. | |
3513 | * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment. | |
3514 | * mdebugread.c (parse_partial_symbols): Fix fall-through comment. | |
3515 | * jv-exp.y (yylex): Fix fall-through comment. | |
3516 | * go-exp.y (lex_one_token): Fix fall-through comment. | |
3517 | * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix | |
3518 | fall-through comment. | |
3519 | * f-exp.y (yylex): Fix fall-through comment. | |
3520 | * dwarf2read.c (process_die): Fix fall-through comments. | |
3521 | * dbxread.c (process_one_symbol): Fix fall-through comment. | |
3522 | * d-exp.y (lex_one_token): Fix fall-through comment. | |
3523 | * cp-name-parser.y (yylex): Fix fall-through comment. | |
3524 | * coffread.c (coff_symtab_read): Fix fall-through comment. | |
3525 | * c-exp.y (lex_one_token): Fix fall-through comment. | |
3526 | * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through | |
3527 | comment. | |
3528 | * arch/arm.c (arm_instruction_changes_pc): Fix fall-through | |
3529 | comment. | |
3530 | ||
56bcdbea TT |
3531 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3532 | ||
3533 | PR python/22730: | |
3534 | * NEWS: Mention gdb.execute change. | |
3535 | * gdbcmd.h (execute_control_command): Don't declare. | |
3536 | * python/python.c (execute_gdb_command): Use read_command_lines_1, | |
3537 | execute_control_commands, execute_control_commands_to_string. | |
3538 | * cli/cli-script.h (execute_control_commands) | |
3539 | (execute_control_commands_to_string): Declare. | |
3540 | (execute_control_command): Add from_tty parameter. | |
3541 | * cli/cli-script.c (execute_control_commands) | |
3542 | (execute_control_commands_to_string): New functions. | |
3543 | (execute_user_command): Use execute_control_commands. | |
3544 | (execute_control_command_1): Add "from_tty" parameter. Update. | |
3545 | (execute_control_command): Likewise. | |
3546 | ||
a913fffb TT |
3547 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3548 | ||
3549 | PR python/22731: | |
3550 | * NEWS: Mention that breakpoint commands are writable. | |
3551 | * python/py-breakpoint.c (bppy_set_commands): New function. | |
3552 | (breakpoint_object_getset) <"commands">: Use it. | |
3553 | ||
60b3cef2 TT |
3554 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3555 | ||
3556 | * tracepoint.c (actions_command): Update. | |
3557 | * mi/mi-cmd-break.c (mi_command_line_array) | |
3558 | (mi_command_line_array_cnt, mi_command_line_array_ptr) | |
3559 | (mi_read_next_line): Remove. | |
3560 | (mi_cmd_break_commands): Update. | |
3561 | * cli/cli-script.h (read_command_lines, read_command_lines_1): Use | |
3562 | function_view. | |
3563 | * cli/cli-script.c (get_command_line): Update. | |
3564 | (process_next_line): Use function_view. Constify. | |
3565 | (recurse_read_control_structure, read_command_lines) | |
3566 | (read_command_lines_1): Change argument types to function_view. | |
3567 | (do_define_command, document_command): Update. | |
3568 | * breakpoint.h (check_tracepoint_command): Don't declare. | |
3569 | * breakpoint.c (check_tracepoint_command): Remove. | |
3570 | (commands_command_1, create_tracepoint_from_upload): Update. | |
3571 | ||
7a2c85f2 TT |
3572 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3573 | ||
3574 | PR gdb/11750: | |
3575 | * cli/cli-script.h (enum command_control_type) <define_control>: | |
3576 | New constant. | |
3577 | * cli/cli-script.c (multi_line_command_p): Handle define_control. | |
3578 | (build_command_line, execute_control_command_1) | |
3579 | (process_next_line): Likewise. | |
3580 | (do_define_command): New function, extracted from define_command. | |
3581 | (define_command): Use it. | |
3582 | ||
295dc222 TT |
3583 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3584 | ||
3585 | * tracepoint.c (actions_command): Update. | |
3586 | * cli/cli-script.h (read_command_lines): Update. | |
3587 | * cli/cli-script.c (read_command_lines): Constify prompt_arg. | |
3588 | (MAX_TMPBUF): Remove define. | |
3589 | (define_command): Use string_printf. | |
3590 | (document_command): Likewise. | |
3591 | * breakpoint.c (commands_command_1): Update. | |
3592 | ||
1263a9d5 TT |
3593 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3594 | ||
3595 | * top.c (execute_command): Update. | |
3596 | * cli/cli-script.h (print_command_lines): Now varargs. | |
3597 | * cli/cli-script.c (print_command_lines): Now varargs. | |
3598 | (execute_control_command_1) <case while_control, case if_control>: | |
3599 | Update. | |
3600 | ||
12973681 TT |
3601 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3602 | ||
3603 | * tracepoint.c (all_tracepoint_actions): Rename from | |
3604 | all_tracepoint_actions_and_cleanup. Change return type. | |
3605 | (actions_command, encode_actions_1, encode_actions) | |
3606 | (trace_dump_actions, tdump_command): Update. | |
3607 | * remote.c (remote_download_command_source): Update. | |
3608 | * python/python.c (gdbpy_eval_from_control_command) | |
3609 | (python_command, python_interactive_command): Update. | |
3610 | * mi/mi-cmd-break.c (mi_cmd_break_commands): Update. | |
3611 | * guile/guile.c (guile_command) | |
3612 | (gdbscm_eval_from_control_command, guile_command): Update. | |
3613 | * compile/compile.c (compile_code_command) | |
3614 | (compile_print_command, compile_to_object): Update. | |
3615 | * cli/cli-script.h (struct command_lines_deleter): New. | |
3616 | (counted_command_line): New typedef. | |
3617 | (struct command_line): Add constructor, destructor. | |
3618 | <body_list>: Remove. | |
3619 | <body_list_0, body_list_1>: New members. | |
3620 | (command_line_up): Remove typedef. | |
3621 | (read_command_lines, read_command_lines_1, get_command_line): | |
3622 | Update. | |
3623 | (copy_command_lines): Don't declare. | |
3624 | * cli/cli-script.c (build_command_line): Use "new". | |
3625 | (get_command_line): Return counted_command_line. | |
3626 | (print_command_lines, execute_user_command) | |
3627 | (execute_control_command_1, while_command, if_command): Update. | |
3628 | (realloc_body_list): Remove. | |
3629 | (process_next_line, recurse_read_control_structure): Update. | |
3630 | (read_command_lines, read_command_lines_1): Return counted_command_line. | |
3631 | (free_command_lines): Use "delete". | |
3632 | (copy_command_lines): Remove. | |
3633 | (define_command, document_command, show_user_1): Update. | |
3634 | * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now | |
3635 | a counted_command_line. | |
3636 | * breakpoint.h (counted_command_line): Remove typedef. | |
3637 | (breakpoint_set_commands): Update. | |
3638 | * breakpoint.c (check_no_tracepoint_commands) | |
3639 | (validate_commands_for_breakpoint): Update. | |
3640 | (breakpoint_set_commands): Change commands to be a | |
3641 | counted_command_line. | |
3642 | (commands_command_1, update_dprintf_command_list) | |
3643 | (create_tracepoint_from_upload): Update. | |
3644 | ||
e2fc72e2 TT |
3645 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3646 | ||
3647 | * cli/cli-decode.h (cmd_list_element): New constructor. | |
3648 | (~cmd_list_element): New destructor. | |
3649 | (struct cmd_list_element): Add initializers. | |
3650 | * cli/cli-decode.c (do_add_cmd): Use "new". | |
3651 | (delete_cmd): Use "delete". | |
3652 | ||
a3b60e45 JK |
3653 | 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
3654 | Pedro Alves <palves@redhat.com> | |
3655 | ||
3656 | PR breakpoints/19806 and support for PR external/20207. | |
3657 | * NEWS: Mention Aarch64 watchpoint improvements. | |
3658 | * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed | |
3659 | watchpoints and PR external/20207 watchpoints. | |
3660 | * nat/aarch64-linux-hw-point.c | |
3661 | (kernel_supports_any_contiguous_range): New. | |
3662 | (aarch64_watchpoint_offset): New. | |
3663 | (aarch64_watchpoint_length): Support PR external/20207 watchpoints. | |
3664 | (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts. | |
3665 | (aarch64_point_is_aligned): Support PR external/20207 watchpoints. | |
3666 | (aarch64_align_watchpoint): New parameters aligned_offset_p and | |
3667 | next_addr_orig_p. Support PR external/20207 watchpoints. | |
3668 | (aarch64_downgrade_regs): New. | |
3669 | (aarch64_dr_state_insert_one_point): New parameters offset and | |
3670 | addr_orig. | |
3671 | (aarch64_dr_state_remove_one_point): Likewise. | |
3672 | (aarch64_handle_breakpoint): Update caller. | |
3673 | (aarch64_handle_aligned_watchpoint): Likewise. | |
3674 | (aarch64_handle_unaligned_watchpoint): Support addr_orig and | |
3675 | aligned_offset. | |
3676 | (aarch64_linux_set_debug_regs): Remove const from state. Call | |
3677 | aarch64_downgrade_regs. | |
3678 | (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp. | |
3679 | * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ... | |
3680 | (DR_CONTROL_MASK): ... this. | |
3681 | (struct aarch64_debug_reg_state): New field dr_addr_orig_wp. | |
3682 | (unsigned int aarch64_watchpoint_offset): New prototype. | |
3683 | (aarch64_linux_set_debug_regs): Remove const from state. | |
3684 | * utils.c (align_up, align_down): Move to ... | |
3685 | * common/common-utils.c (align_up, align_down): ... here. | |
3686 | * utils.h (align_up, align_down): Move to ... | |
3687 | * common/common-utils.h (align_up, align_down): ... here. | |
3688 | ||
05bc7456 JB |
3689 | 2018-05-04 Joel Brobecker <brobecker@adacore.com> |
3690 | ||
3691 | * sparc-tdep.c (sparc_structure_return_p): Re-implement to | |
3692 | match the ABI as summarized in GCC's gcc/config/sparc/sparc.c. | |
3693 | (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p. | |
3694 | Re-implement to match the ABI as summarized in GCC's | |
3695 | gcc/config/sparc/sparc.c. All callers updated. | |
3696 | (sparc32_store_arguments): Remove assertion. | |
3697 | ||
2f433492 TT |
3698 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3699 | ||
3700 | * printcmd.c: Don't include tui.h. | |
3701 | (decode_format): Use skip_spaces. | |
3702 | ||
9be2ae8f TT |
3703 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3704 | ||
3705 | PR gdb/22619: | |
3706 | * printcmd.c (last_count): New global. | |
3707 | (x_command): Use saved count when repeating. | |
3708 | ||
f0b3976b TT |
3709 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3710 | ||
3711 | * nto-procfs.c (do_closedir_cleanup): Remove. | |
3712 | (procfs_pidlist): Use gdb_dir_up. | |
3713 | * procfs.c (do_closedir_cleanup): Remove. | |
3714 | (proc_update_threads): Use gdb_dir_up. | |
3715 | * common/filestuff.h (struct gdb_dir_deleter): New. | |
3716 | (gdb_dir_up): New typedef. | |
3717 | ||
862d101a TT |
3718 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3719 | ||
3720 | * ada-lang.c (print_mention_exception): Use std::string. | |
3721 | ||
cb7de75e TT |
3722 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3723 | ||
3724 | * ada-lang.c (create_excep_cond_exprs): Update. | |
3725 | (ada_exception_catchpoint_cond_string): Use std::string. | |
3726 | ||
49d83361 TT |
3727 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3728 | ||
3729 | * ada-lang.c (xget_renaming_scope): Return std::string. | |
3730 | (old_renaming_is_invisible): Update. | |
3731 | ||
ade72a34 TT |
3732 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3733 | ||
3734 | * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr. | |
3735 | (target_bfd::target_bfd, target_bfd::~target_bfd): Update. | |
3736 | ||
2be4d7f0 UW |
3737 | 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com> |
3738 | ||
3739 | * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error. | |
3740 | ||
69b6ecb0 TT |
3741 | 2018-05-04 Tom Tromey <tom@tromey.com> |
3742 | ||
3743 | * remote.c (remote_query_supported_append): Change type. | |
3744 | (remote_check_symbols): Update. | |
3745 | ||
bf27f0e2 PP |
3746 | 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com> |
3747 | ||
3748 | PR gdb/11420 | |
3749 | * configure.ac: Prepend libpython. | |
3750 | * python/python-config.py: Likewise. | |
3751 | * configure: Regenerate. | |
3752 | ||
4ea17de8 SM |
3753 | 2018-05-03 Simon Marchi <simon.marchi@ericsson.com> |
3754 | ||
3755 | * Makefile.in (%.c: %.l): Use -t instead of --stdout. | |
3756 | ||
bd732259 PA |
3757 | 2018-05-03 Pedro Alves <palves@redhat.com> |
3758 | ||
3759 | * s390-linux-nat.c | |
3760 | (s390_linux_nat_target::have_continuable_watchpoint): Mark with | |
3761 | override. Write 'true' instead of '1'. | |
3762 | (s390_linux_nat_target::watchpoint_addr_within_range): Remove | |
3763 | declaration. | |
3764 | ||
d9f719f1 PA |
3765 | 2018-05-02 Pedro Alves <palves@redhat.com> |
3766 | ||
3767 | * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use | |
3768 | add_inf_child_target. | |
3769 | * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use | |
3770 | add_inf_child_target. | |
3771 | * aix-thread.c (aix_thread_target_info): New. | |
3772 | (aix_thread_target) <shortname, longname, doc>: Delete. | |
3773 | <info>: New. | |
3774 | * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use | |
3775 | add_inf_child_target. | |
3776 | * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use | |
3777 | add_inf_child_target. | |
3778 | * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use | |
3779 | add_inf_child_target. | |
3780 | * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use | |
3781 | add_inf_child_target. | |
3782 | * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use | |
3783 | add_inf_child_target. | |
3784 | * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use | |
3785 | add_inf_child_target. | |
3786 | * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use | |
3787 | add_inf_child_target. | |
3788 | * arm-linux-nat.c (_initialize_arm_linux_nat): Use | |
3789 | add_inf_child_target. | |
3790 | * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use | |
3791 | add_inf_child_target. | |
3792 | * bfd-target.c (target_bfd_target_info): New. | |
3793 | (target_bfd) <shortname, longname, doc>: Delete. | |
3794 | <info>: New. | |
3795 | * bsd-kvm.c (bsd_kvm_target_info): New. | |
3796 | (bsd_kvm_target) <shortname, longname, doc>: Delete. | |
3797 | <info>: New. | |
3798 | (bsd_kvm_target::open): Rename to ... | |
3799 | (bsd_kvm_target_open): ... this. Adjust. | |
3800 | * bsd-uthread.c (bsd_uthread_target_info): New. | |
3801 | (bsd_uthread_target) <shortname, longname, doc>: Delete. | |
3802 | <info>: New. | |
3803 | * corefile.c (core_file_command): Adjust. | |
3804 | * corelow.c (core_target_info): New. | |
3805 | (core_target) <shortname, longname, doc>: Delete. | |
3806 | <info>: New. | |
3807 | (core_target::open): Rename to ... | |
3808 | (core_target_open): ... this. Adjust. | |
3809 | * ctf.c (ctf_target_info): New. | |
3810 | (ctf_target) <shortname, longname, doc>: Delete. | |
3811 | <info>: New. | |
3812 | (ctf_target::open): Rename to ... | |
3813 | (ctf_target_open): ... this. | |
3814 | (_initialize_ctf): Adjust. | |
3815 | * exec.c (exec_target_info): New. | |
3816 | (exec_target) <shortname, longname, doc>: Delete. | |
3817 | <info>: New. | |
3818 | (exec_target::open): Rename to ... | |
3819 | (exec_target_open): ... this. | |
3820 | * gdbcore.h (core_target_open): Declare. | |
3821 | * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target. | |
3822 | * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use | |
3823 | add_inf_child_target. | |
3824 | * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use | |
3825 | add_inf_child_target. | |
3826 | * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use | |
3827 | add_inf_child_target. | |
3828 | * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use | |
3829 | add_inf_child_target. | |
3830 | * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use | |
3831 | add_inf_child_target. | |
3832 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Use | |
3833 | add_inf_child_target. | |
3834 | * i386-linux-nat.c (_initialize_i386_linux_nat): Use | |
3835 | add_inf_child_target. | |
3836 | * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use | |
3837 | add_inf_child_target. | |
3838 | * i386-obsd-nat.c (_initialize_i386obsd_nat): Use | |
3839 | add_inf_child_target. | |
3840 | * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use | |
3841 | add_inf_child_target. | |
3842 | * inf-child.c (inf_child_target_info): New. | |
3843 | (inf_child_target::info): New. | |
3844 | (inf_child_open_target): Remove 'target' parameter. Use | |
3845 | get_native_target instead. | |
3846 | (inf_child_target::open): Delete. | |
3847 | (add_inf_child_target): New. | |
3848 | * inf-child.h (inf_child_target) <shortname, longname, doc, open>: | |
3849 | Delete. | |
3850 | <info>: New. | |
3851 | (add_inf_child_target): Declare. | |
3852 | (inf_child_open_target): Declare. | |
3853 | * linux-thread-db.c (thread_db_target_info): New. | |
3854 | (thread_db_target) <shortname, longname, doc>: Delete. | |
3855 | <info>: New. | |
3856 | * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use | |
3857 | add_inf_child_target. | |
3858 | * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use | |
3859 | add_inf_child_target. | |
3860 | * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use | |
3861 | add_inf_child_target. | |
3862 | * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use | |
3863 | add_inf_child_target. | |
3864 | * make-target-delegates (print_class): Adjust. | |
3865 | * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use | |
3866 | add_inf_child_target. | |
3867 | * mips-linux-nat.c (_initialize_mips_linux_nat): Use | |
3868 | add_inf_child_target. | |
3869 | * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use | |
3870 | add_inf_child_target. | |
3871 | * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use | |
3872 | add_inf_child_target. | |
3873 | * nto-procfs.c (nto_native_target_info): New. | |
3874 | (nto_procfs_target_native) <shortname, longname, doc>: | |
3875 | Delete. | |
3876 | <info>: New. | |
3877 | (nto_procfs_target_info): New. | |
3878 | (nto_procfs_target_procfs) <shortname, longname, doc>: | |
3879 | Delete. | |
3880 | <info>: New. | |
3881 | (init_procfs_targets): Adjust. | |
3882 | * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use | |
3883 | add_inf_child_target. | |
3884 | * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use | |
3885 | add_inf_child_target. | |
3886 | * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use | |
3887 | add_inf_child_target. | |
3888 | * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use | |
3889 | add_inf_child_target. | |
3890 | * ravenscar-thread.c (ravenscar_target_info): New. | |
3891 | (ravenscar_thread_target) <shortname, longname, doc>: | |
3892 | Delete. | |
3893 | <info>: New. | |
3894 | * record-btrace.c (record_btrace_target_info): | |
3895 | (record_btrace_target) <shortname, longname, doc>: Delete. | |
3896 | <info>: New. | |
3897 | (record_btrace_target::open): Rename to ... | |
3898 | (record_btrace_target_open): ... this. Adjust. | |
3899 | * record-full.c (record_longname, record_doc): New. | |
3900 | (record_full_base_target) <shortname, longname, doc>: Delete. | |
3901 | <info>: New. | |
3902 | (record_full_target_info): New. | |
3903 | (record_full_target): <shortname>: Delete. | |
3904 | <info>: New. | |
3905 | (record_full_core_open_1, record_full_open_1): Update comments. | |
3906 | (record_full_base_target::open): Rename to ... | |
3907 | (record_full_open): ... this. | |
3908 | (cmd_record_full_restore): Update. | |
3909 | (_initialize_record_full): Update. | |
3910 | * remote-sim.c (remote_sim_target_info): New. | |
3911 | (gdbsim_target) <shortname, longname, doc>: Delete. | |
3912 | <info>: New. | |
3913 | (gdbsim_target::open): Rename to ... | |
3914 | (gdbsim_target_open): ... this. | |
3915 | (_initialize_remote_sim): Adjust. | |
3916 | * remote.c (remote_doc): New. | |
3917 | (remote_target_info): New. | |
3918 | (remote_target) <shortname, longname, doc>: Delete. | |
3919 | <info>: New. | |
3920 | (extended_remote_target_info): New. | |
3921 | (extended_remote_target) <shortname, longname, doc>: Delete. | |
3922 | <info>: New. | |
3923 | (remote_target::open_1): Make static. Adjust. | |
3924 | * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target. | |
3925 | * s390-linux-nat.c (_initialize_s390_nat): Use | |
3926 | add_inf_child_target. | |
3927 | * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use | |
3928 | add_inf_child_target. | |
3929 | * sol-thread.c (thread_db_target_info): New. | |
3930 | (sol_thread_target) <shortname, longname, doc>: Delete. | |
3931 | <info>: New. | |
3932 | * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use | |
3933 | add_inf_child_target. | |
3934 | * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use | |
3935 | add_inf_child_target. | |
3936 | * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use | |
3937 | add_inf_child_target. | |
3938 | * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use | |
3939 | add_inf_child_target. | |
3940 | * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use | |
3941 | add_inf_child_target. | |
3942 | * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use | |
3943 | add_inf_child_target. | |
3944 | * spu-linux-nat.c (_initialize_spu_nat): Use | |
3945 | add_inf_child_target. | |
3946 | * spu-multiarch.c (spu_multiarch_target_info): New. | |
3947 | (spu_multiarch_target) <shortname, longname, doc>: Delete. | |
3948 | <info>: New. | |
3949 | * target-delegates.c: Regenerate. | |
3950 | * target.c: Include <unordered_map>. | |
3951 | (target_ops_p): Delete. | |
3952 | (DEF_VEC_P(target_ops_p)): Delete. | |
3953 | (target_factories): New. | |
3954 | (test_target_info): New. | |
3955 | (test_target_ops::info): New. | |
3956 | (open_target): Adjust to use target_factories. | |
3957 | (add_target_with_completer): Rename to ... | |
3958 | (add_target): ... this. Change prototype. Register target_info | |
3959 | and open callback in target_factories. Register target_info in | |
3960 | command context instead of target_ops. | |
3961 | (add_target): Delete old implementation. | |
3962 | (add_deprecated_target_alias): Change prototype. Adjust. | |
3963 | (the_native_target): New. | |
3964 | (set_native_target, get_native_target): New. | |
3965 | (find_default_run_target): Use the_native_target. | |
3966 | (find_attach_target, find_run_target): Simplify. | |
3967 | (target_ops::open): Delete. | |
3968 | (dummy_target_info): New. | |
3969 | (dummy_target::shortname, dummy_target::longname) | |
3970 | (dummy_target::doc): Delete. | |
3971 | (dummy_target::info): New. | |
3972 | (debug_target::shortname, debug_target::longname) | |
3973 | (debug_target::doc): Delete. | |
3974 | (debug_target::info): New. | |
3975 | * target.h (struct target_info): New. | |
3976 | (target_ops::~target_ops): Add comment. | |
3977 | (target_ops::info): New. | |
3978 | (target_ops::shortname, target_ops::longname, target_ops::doc): No | |
3979 | longer virtual. Implement in terms of target_info. | |
3980 | (set_native_target, get_native_target): Declare. | |
3981 | (target_open_ftype): New. | |
3982 | (add_target, add_target_with_completer) | |
3983 | (add_deprecated_target_alias): Change prototype. | |
3984 | (test_target) <shortname, longname, doc>: Delete. | |
3985 | <info>: New. | |
3986 | * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use | |
3987 | add_inf_child_target. | |
3988 | * tracefile-tfile.c (tfile_target_info): New. | |
3989 | (tfile_target) <shortname, longname, doc>: Delete. | |
3990 | <info>: New. | |
3991 | (tfile_target::open): Rename to ... | |
3992 | (tfile_target_open): ... this. | |
3993 | (_initialize_tracefile_tfile): Adjust. | |
3994 | * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use | |
3995 | add_inf_child_target. | |
3996 | * windows-nat.c (_initialize_windows_nat): Use | |
3997 | add_inf_child_target. | |
3998 | * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use | |
3999 | add_inf_child_target. | |
4000 | ||
135340af PA |
4001 | 2018-05-02 Pedro Alves <palves@redhat.com> |
4002 | ||
4003 | * linux-nat.h (linux_nat_target) <low_new_thread, | |
4004 | low_delete_thread, low_new_fork, low_forget_process, | |
4005 | low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>: | |
4006 | New virtual methods. | |
4007 | (linux_nat_set_new_thread, linux_nat_set_delete_thread) | |
4008 | (linux_nat_new_fork_ftype, linux_nat_set_new_fork) | |
4009 | (linux_nat_forget_process_ftype, linux_nat_set_forget_process) | |
4010 | (linux_nat_forget_process, linux_nat_set_siginfo_fixup) | |
4011 | (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event): | |
4012 | Delete. | |
4013 | * linux-fork.c (delete_fork): Adjust to call low method. | |
4014 | * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread) | |
4015 | (linux_nat_new_fork, linux_nat_forget_process_hook) | |
4016 | (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup) | |
4017 | (linux_nat_status_is_event): | |
4018 | (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp) | |
4019 | (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust | |
4020 | to call low method. | |
4021 | (sigtrap_is_event): Rename to ... | |
4022 | (linux_nat_target::low_status_is_event): ... this. | |
4023 | (linux_nat_set_status_is_event): Delete. | |
4024 | (save_stop_reason, linux_nat_wait_1) | |
4025 | (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call | |
4026 | low methods. | |
4027 | (linux_nat_set_new_thread, linux_nat_set_delete_thread) | |
4028 | (linux_nat_set_new_fork, linux_nat_set_forget_process) | |
4029 | (linux_nat_forget_process, linux_nat_set_siginfo_fixup) | |
4030 | (linux_nat_set_prepare_to_resume): Delete. | |
4031 | * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to | |
4032 | low virtual methods. | |
4033 | * amd64-linux-nat.c: Likewise. | |
4034 | * arm-linux-nat.c: Likewise. | |
4035 | * i386-linux-nat.c: Likewise. | |
4036 | * ia64-linux-nat.c: Likewise. | |
4037 | * mips-linux-nat.c: Likewise. | |
4038 | * ppc-linux-nat.c: Likewise. | |
4039 | * s390-linux-nat.c: Likewise. | |
4040 | * sparc64-linux-nat.c: Likewise. | |
4041 | * x86-linux-nat.c: Likewise. | |
4042 | * x86-linux-nat.h: Include "nat/x86-linux.h". | |
4043 | (x86_linux_nat_target) <low_new_fork, low_forget_process, | |
4044 | low_prepare_to_resume, low_new_thread, low_delete_thread>: | |
4045 | Override methods. | |
4046 | ||
57810aa7 PA |
4047 | 2018-05-02 Pedro Alves <palves@redhat.com> |
4048 | ||
4049 | * target.h (target_ops) | |
4050 | <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint, | |
4051 | stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint, | |
4052 | stopped_by_watchpoint, have_continuable_watchpoint, | |
4053 | stopped_data_address, watchpoint_addr_within_range, | |
4054 | can_accel_watchpoint_condition, can_run, thread_alive, | |
4055 | has_all_memory, has_memory, has_stack, has_registers, | |
4056 | has_execution, can_async_p, is_async_p, supports_non_stop, | |
4057 | always_non_stop_p, can_execute_reverse, supports_multi_process, | |
4058 | supports_enable_disable_tracepoint, | |
4059 | supports_disable_randomization, supports_string_tracing, | |
4060 | supports_evaluation_of_breakpoint_conditions, | |
4061 | can_run_breakpoint_commands, filesystem_is_local, | |
4062 | can_download_tracepoint, get_trace_state_variable_value, | |
4063 | set_trace_notes, get_tib_address, use_agent, can_use_agent, | |
4064 | record_is_replaying, record_will_replay, | |
4065 | augmented_libraries_svr4_read>: Adjust to return bool. | |
4066 | * aarch64-linux-nat.c: All implementations adjusted. | |
4067 | * aix-thread.c: All implementations adjusted. | |
4068 | * arm-linux-nat.c: All implementations adjusted. | |
4069 | * breakpoint.c: All implementations adjusted. | |
4070 | * bsd-kvm.c: All implementations adjusted. | |
4071 | * bsd-uthread.c: All implementations adjusted. | |
4072 | * corelow.c: All implementations adjusted. | |
4073 | * ctf.c: All implementations adjusted. | |
4074 | * darwin-nat.c: All implementations adjusted. | |
4075 | * darwin-nat.h: All implementations adjusted. | |
4076 | * exec.c: All implementations adjusted. | |
4077 | * fbsd-nat.c: All implementations adjusted. | |
4078 | * fbsd-nat.h: All implementations adjusted. | |
4079 | * gnu-nat.c: All implementations adjusted. | |
4080 | * gnu-nat.h: All implementations adjusted. | |
4081 | * go32-nat.c: All implementations adjusted. | |
4082 | * ia64-linux-nat.c: All implementations adjusted. | |
4083 | * inf-child.c: All implementations adjusted. | |
4084 | * inf-child.h: All implementations adjusted. | |
4085 | * inf-ptrace.c: All implementations adjusted. | |
4086 | * inf-ptrace.h: All implementations adjusted. | |
4087 | * linux-nat.c: All implementations adjusted. | |
4088 | * linux-nat.h: All implementations adjusted. | |
4089 | * mips-linux-nat.c: All implementations adjusted. | |
4090 | * nto-procfs.c: All implementations adjusted. | |
4091 | * ppc-linux-nat.c: All implementations adjusted. | |
4092 | * procfs.c: All implementations adjusted. | |
4093 | * ravenscar-thread.c: All implementations adjusted. | |
4094 | * record-btrace.c: All implementations adjusted. | |
4095 | * record-full.c: All implementations adjusted. | |
4096 | * remote-sim.c: All implementations adjusted. | |
4097 | * remote.c: All implementations adjusted. | |
4098 | * s390-linux-nat.c: All implementations adjusted. | |
4099 | * sol-thread.c: All implementations adjusted. | |
4100 | * spu-multiarch.c: All implementations adjusted. | |
4101 | * target-delegates.c: All implementations adjusted. | |
4102 | * target.c: All implementations adjusted. | |
4103 | * target.h: All implementations adjusted. | |
4104 | * tracefile-tfile.c: All implementations adjusted. | |
4105 | * tracefile.c: All implementations adjusted. | |
4106 | * tracefile.h: All implementations adjusted. | |
4107 | * windows-nat.c: All implementations adjusted. | |
4108 | * x86-linux-nat.h: All implementations adjusted. | |
4109 | * x86-nat.h: All implementations adjusted. | |
4110 | ||
ad6a4e2d PA |
4111 | 2018-05-02 Pedro Alves <palves@redhat.com> |
4112 | ||
4113 | * make-target-delegates (scan_target_h): Don't trim lines here. | |
4114 | Replace sequences of tabs and/or whitespace with a single | |
4115 | whitespace. | |
4116 | (top level, parsing methods): Trim each line before processing it | |
4117 | here. | |
4118 | ||
f6ac5f3d PA |
4119 | 2018-05-02 Pedro Alves <palves@redhat.com> |
4120 | John Baldwin <jhb@freebsd.org> | |
4121 | ||
4122 | * target.h (enum strata) <debug_stratum>: New. | |
4123 | (struct target_ops) <all delegation methods>: Replace by C++ | |
4124 | virtual methods, and drop "to_" prefix. All references updated | |
4125 | throughout. | |
4126 | <to_shortname, to_longname, to_doc, to_data, | |
4127 | to_have_steppable_watchpoint, to_have_continuable_watchpoint, | |
4128 | to_has_thread_control, to_attach_no_wait>: Delete, replaced by | |
4129 | virtual methods. All references updated throughout. | |
4130 | <can_attach, supports_terminal_ours, can_create_inferior, | |
4131 | get_thread_control_capabilities, attach_no_wait>: New | |
4132 | virtual methods. | |
4133 | <insert_breakpoint, remove_breakpoint>: Now | |
4134 | TARGET_DEFAULT_NORETURN methods. | |
4135 | <info_proc>: Now returns bool. | |
4136 | <to_magic>: Delete. | |
4137 | (OPS_MAGIC): Delete. | |
4138 | (current_target): Delete. All references replaced by references | |
4139 | to ... | |
4140 | (target_stack): ... this. New. | |
4141 | (target_shortname, target_longname): Adjust. | |
4142 | (target_can_run): Now a function declaration. | |
4143 | (default_child_has_all_memory, default_child_has_memory) | |
4144 | (default_child_has_stack, default_child_has_registers) | |
4145 | (default_child_has_execution): Remove target_ops parameter. | |
4146 | (complete_target_initialization): Delete. | |
4147 | (memory_breakpoint_target): New template class. | |
4148 | (test_target_ops): Refactor as a C++ class with virtual methods. | |
4149 | * make-target-delegates (NAME_PART): Tighten. | |
4150 | (POINTER_PART, CP_SYMBOL): New. | |
4151 | (SIMPLE_RETURN_PART): Reimplement. | |
4152 | (VEC_RETURN_PART): Expect less. | |
4153 | (RETURN_PART, VIRTUAL_PART): New. | |
4154 | (METHOD): Adjust to C++ virtual methods. | |
4155 | (scan_target_h): Remove reference to C99. | |
4156 | (dname): Output "target_ops::" prefix. | |
4157 | (write_function_header): Adjust to output a C++ class method. | |
4158 | (write_declaration): New. | |
4159 | (write_delegator): Adjust to output a C++ class method. | |
4160 | (tdname): Output "dummy_target::" prefix. | |
4161 | (write_tdefault, write_debugmethod): Adjust to output a C++ class | |
4162 | method. | |
4163 | (tdefault_names, debug_names): Delete. | |
4164 | (return_types, tdefaults, styles, argtypes_array): New. | |
4165 | (top level): All methods are delegators. | |
4166 | (print_class): New. | |
4167 | (top level): Print dummy_target and debug_target classes. | |
4168 | * target-delegates.c: Regenerate. | |
4169 | * target-debug.h (target_debug_print_enum_info_proc_what) | |
4170 | (target_debug_print_thread_control_capabilities) | |
4171 | (target_debug_print_thread_info_p): New. | |
4172 | * target.c (dummy_target): Delete. | |
4173 | (the_dummy_target, the_debug_target): New. | |
4174 | (target_stack): Now extern. | |
4175 | (set_targetdebug): Push/unpush debug target. | |
4176 | (default_child_has_all_memory, default_child_has_memory) | |
4177 | (default_child_has_stack, default_child_has_registers) | |
4178 | (default_child_has_execution): Remove target_ops parameter. | |
4179 | (complete_target_initialization): Delete. | |
4180 | (add_target_with_completer): No longer call | |
4181 | complete_target_initialization. | |
4182 | (target_supports_terminal_ours): Use regular delegation. | |
4183 | (update_current_target): Delete. | |
4184 | (push_target): No longer check magic number. Don't call | |
4185 | update_current_target. | |
4186 | (unpush_target): Don't call update_current_target. | |
4187 | (target_is_pushed): No longer check magic number. | |
4188 | (target_require_runnable): Skip for all stratums over | |
4189 | process_stratum. | |
4190 | (target_ops::info_proc): New. | |
4191 | (target_info_proc): Use find_target_at and | |
4192 | find_default_run_target. | |
4193 | (target_supports_disable_randomization): Use regular delegation. | |
4194 | (target_get_osdata): Use find_target_at. | |
4195 | (target_ops::open, target_ops::close, target_ops::can_attach) | |
4196 | (target_ops::attach, target_ops::can_create_inferior) | |
4197 | (target_ops::create_inferior, target_ops::can_run) | |
4198 | (target_can_run): New. | |
4199 | (default_fileio_target): Use regular delegation. | |
4200 | (target_ops::fileio_open, target_ops::fileio_pwrite) | |
4201 | (target_ops::fileio_pread, target_ops::fileio_fstat) | |
4202 | (target_ops::fileio_close, target_ops::fileio_unlink) | |
4203 | (target_ops::fileio_readlink): New. | |
4204 | (target_fileio_open_1, target_fileio_unlink) | |
4205 | (target_fileio_readlink): Always call the target method. Handle | |
4206 | FILEIO_ENOSYS. | |
4207 | (return_zero, return_zero_has_execution): Delete. | |
4208 | (init_dummy_target): Delete. | |
4209 | (dummy_target::dummy_target, dummy_target::shortname) | |
4210 | (dummy_target::longname, dummy_target::doc) | |
4211 | (debug_target::debug_target, debug_target::shortname) | |
4212 | (debug_target::longname, debug_target::doc): New. | |
4213 | (target_supports_delete_record): Use regular delegation. | |
4214 | (setup_target_debug): Delete. | |
4215 | (maintenance_print_target_stack): Skip debug_stratum. | |
4216 | (initialize_targets): Instantiate the_dummy_target and | |
4217 | the_debug_target. | |
4218 | * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to | |
4219 | use target_stack. | |
4220 | (target_auxv_search, fprint_target_auxv): Adjust. | |
4221 | (info_auxv_command): Adjust to use target_stack. | |
4222 | * auxv.h (target_auxv_parse): Remove 'ops' parameter. | |
4223 | * exceptions.c (print_flush): Handle a NULL target_stack. | |
4224 | * regcache.c (target_ops_no_register): Refactor as class with | |
4225 | virtual methods. | |
4226 | ||
4227 | * exec.c (exec_target): New class. | |
4228 | (exec_ops): Now an exec_target. | |
4229 | (exec_open, exec_close_1, exec_get_section_table) | |
4230 | (exec_xfer_partial, exec_files_info, exec_has_memory) | |
4231 | (exec_make_note_section): Refactor as exec_target methods. | |
4232 | (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops): | |
4233 | Delete. | |
4234 | (exec_target::find_memory_regions): New. | |
4235 | (_initialize_exec): Don't call init_exec_ops. | |
4236 | * gdbcore.h (exec_file_clear): Delete. | |
4237 | ||
4238 | * corefile.c (core_target): Delete. | |
4239 | (core_file_command): Adjust. | |
4240 | * corelow.c (core_target): New class. | |
4241 | (the_core_target): New. | |
4242 | (core_close): Remove target_ops parameter. | |
4243 | (core_close_cleanup): Adjust. | |
4244 | (core_target::close): New. | |
4245 | (core_open, core_detach, get_core_registers, core_files_info) | |
4246 | (core_xfer_partial, core_thread_alive, core_read_description) | |
4247 | (core_pid_to_str, core_thread_name, core_has_memory) | |
4248 | (core_has_stack, core_has_registers, core_info_proc): Rework as | |
4249 | core_target methods. | |
4250 | (ignore, core_remove_breakpoint, init_core_ops): Delete. | |
4251 | (_initialize_corelow): Initialize the_core_target. | |
4252 | * gdbcore.h (core_target): Delete. | |
4253 | (the_core_target): New. | |
4254 | ||
4255 | * ctf.c: (ctf_target): New class. | |
4256 | (ctf_ops): Now a ctf_target. | |
4257 | (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers) | |
4258 | (ctf_xfer_partial, ctf_get_trace_state_variable_value) | |
4259 | (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target | |
4260 | methods. | |
4261 | (init_ctf_ops): Delete. | |
4262 | (_initialize_ctf): Don't call it. | |
4263 | * tracefile-tfile.c (tfile_target): New class. | |
4264 | (tfile_ops): Now a tfile_target. | |
4265 | (tfile_open, tfile_close, tfile_files_info) | |
4266 | (tfile_get_tracepoint_status, tfile_trace_find) | |
4267 | (tfile_fetch_registers, tfile_xfer_partial) | |
4268 | (tfile_get_trace_state_variable_value, tfile_traceframe_info): | |
4269 | Refactor as tfile_target methods. | |
4270 | (tfile_xfer_partial_features): Remove target_ops parameter. | |
4271 | (init_tfile_ops): Delete. | |
4272 | (_initialize_tracefile_tfile): Don't call it. | |
4273 | * tracefile.c (tracefile_has_all_memory, tracefile_has_memory) | |
4274 | (tracefile_has_stack, tracefile_has_registers) | |
4275 | (tracefile_thread_alive, tracefile_get_trace_status): Refactor as | |
4276 | tracefile_target methods. | |
4277 | (init_tracefile_ops): Delete. | |
4278 | (tracefile_target::tracefile_target): New. | |
4279 | * tracefile.h: Include "target.h". | |
4280 | (tracefile_target): New class. | |
4281 | (init_tracefile_ops): Delete. | |
4282 | ||
4283 | * spu-multiarch.c (spu_multiarch_target): New class. | |
4284 | (spu_ops): Now a spu_multiarch_target. | |
4285 | (spu_thread_architecture, spu_region_ok_for_hw_watchpoint) | |
4286 | (spu_fetch_registers, spu_store_registers, spu_xfer_partial) | |
4287 | (spu_search_memory, spu_mourn_inferior): Refactor as | |
4288 | spu_multiarch_target methods. | |
4289 | (init_spu_ops): Delete. | |
4290 | (_initialize_spu_multiarch): Remove references to init_spu_ops, | |
4291 | complete_target_initialization. | |
4292 | ||
4293 | * ravenscar-thread.c (ravenscar_thread_target): New class. | |
4294 | (ravenscar_ops): Now a ravenscar_thread_target. | |
4295 | (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list) | |
4296 | (ravenscar_thread_alive, ravenscar_pid_to_str) | |
4297 | (ravenscar_fetch_registers, ravenscar_store_registers) | |
4298 | (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint) | |
4299 | (ravenscar_stopped_by_hw_breakpoint) | |
4300 | (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address) | |
4301 | (ravenscar_mourn_inferior, ravenscar_core_of_thread) | |
4302 | (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target | |
4303 | methods. | |
4304 | (init_ravenscar_thread_ops): Delete. | |
4305 | (_initialize_ravenscar): Remove references to | |
4306 | init_ravenscar_thread_ops and complete_target_initialization. | |
4307 | ||
4308 | * bsd-uthread.c (bsd_uthread_ops_hack): Delete. | |
4309 | (bsd_uthread_target): New class. | |
4310 | (bsd_uthread_ops): Now a bsd_uthread_target. | |
4311 | (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops. | |
4312 | (bsd_uthread_close, bsd_uthread_mourn_inferior) | |
4313 | (bsd_uthread_fetch_registers, bsd_uthread_store_registers) | |
4314 | (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive) | |
4315 | (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info) | |
4316 | (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods. | |
4317 | (bsd_uthread_target): Delete function. | |
4318 | (_initialize_bsd_uthread): Remove reference to | |
4319 | complete_target_initialization. | |
4320 | ||
4321 | * bfd-target.c (target_bfd_data): Delete. Fields folded into ... | |
4322 | (target_bfd): ... this new class. | |
4323 | (target_bfd_xfer_partial, target_bfd_get_section_table) | |
4324 | (target_bfd_close): Refactor as target_bfd methods. | |
4325 | (target_bfd::~target_bfd): New. | |
4326 | (target_bfd_reopen): Adjust. | |
4327 | (target_bfd::close): New. | |
4328 | ||
4329 | * record-btrace.c (record_btrace_target): New class. | |
4330 | (record_btrace_ops): Now a record_btrace_target. | |
4331 | (record_btrace_open, record_btrace_stop_recording) | |
4332 | (record_btrace_disconnect, record_btrace_close) | |
4333 | (record_btrace_async, record_btrace_info) | |
4334 | (record_btrace_insn_history, record_btrace_insn_history_range) | |
4335 | (record_btrace_insn_history_from, record_btrace_call_history) | |
4336 | (record_btrace_call_history_range) | |
4337 | (record_btrace_call_history_from, record_btrace_record_method) | |
4338 | (record_btrace_is_replaying, record_btrace_will_replay) | |
4339 | (record_btrace_xfer_partial, record_btrace_insert_breakpoint) | |
4340 | (record_btrace_remove_breakpoint, record_btrace_fetch_registers) | |
4341 | (record_btrace_store_registers, record_btrace_prepare_to_store) | |
4342 | (record_btrace_to_get_unwinder) | |
4343 | (record_btrace_to_get_tailcall_unwinder, record_btrace_resume) | |
4344 | (record_btrace_commit_resume, record_btrace_wait) | |
4345 | (record_btrace_stop, record_btrace_can_execute_reverse) | |
4346 | (record_btrace_stopped_by_sw_breakpoint) | |
4347 | (record_btrace_supports_stopped_by_sw_breakpoint) | |
4348 | (record_btrace_stopped_by_hw_breakpoint) | |
4349 | (record_btrace_supports_stopped_by_hw_breakpoint) | |
4350 | (record_btrace_update_thread_list, record_btrace_thread_alive) | |
4351 | (record_btrace_goto_begin, record_btrace_goto_end) | |
4352 | (record_btrace_goto, record_btrace_stop_replaying_all) | |
4353 | (record_btrace_execution_direction) | |
4354 | (record_btrace_prepare_to_generate_core) | |
4355 | (record_btrace_done_generating_core): Refactor as | |
4356 | record_btrace_target methods. | |
4357 | (init_record_btrace_ops): Delete. | |
4358 | (_initialize_record_btrace): Remove reference to | |
4359 | init_record_btrace_ops. | |
4360 | * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to | |
4361 | the execution_direction global. | |
4362 | (record_full_base_target, record_full_target) | |
4363 | (record_full_core_target): New classes. | |
4364 | (record_full_ops): Now a record_full_target. | |
4365 | (record_full_core_ops): Now a record_full_core_target. | |
4366 | (record_full_target::detach, record_full_target::disconnect) | |
4367 | (record_full_core_target::disconnect) | |
4368 | (record_full_target::mourn_inferior, record_full_target::kill): | |
4369 | New. | |
4370 | (record_full_open, record_full_close, record_full_async): Refactor | |
4371 | as methods of the record_full_base_target class. | |
4372 | (record_full_resume, record_full_commit_resume): Refactor | |
4373 | as methods of the record_full_target class. | |
4374 | (record_full_wait, record_full_stopped_by_watchpoint) | |
4375 | (record_full_stopped_data_address) | |
4376 | (record_full_stopped_by_sw_breakpoint) | |
4377 | (record_full_supports_stopped_by_sw_breakpoint) | |
4378 | (record_full_stopped_by_hw_breakpoint) | |
4379 | (record_full_supports_stopped_by_hw_breakpoint): Refactor as | |
4380 | methods of the record_full_base_target class. | |
4381 | (record_full_store_registers, record_full_xfer_partial) | |
4382 | (record_full_insert_breakpoint, record_full_remove_breakpoint): | |
4383 | Refactor as methods of the record_full_target class. | |
4384 | (record_full_can_execute_reverse, record_full_get_bookmark) | |
4385 | (record_full_goto_bookmark, record_full_execution_direction) | |
4386 | (record_full_record_method, record_full_info, record_full_delete) | |
4387 | (record_full_is_replaying, record_full_will_replay) | |
4388 | (record_full_goto_begin, record_full_goto_end, record_full_goto) | |
4389 | (record_full_stop_replaying): Refactor as methods of the | |
4390 | record_full_base_target class. | |
4391 | (record_full_core_resume, record_full_core_kill) | |
4392 | (record_full_core_fetch_registers) | |
4393 | (record_full_core_prepare_to_store) | |
4394 | (record_full_core_store_registers, record_full_core_xfer_partial) | |
4395 | (record_full_core_insert_breakpoint) | |
4396 | (record_full_core_remove_breakpoint) | |
4397 | (record_full_core_has_execution): Refactor | |
4398 | as methods of the record_full_core_target class. | |
4399 | (record_full_base_target::supports_delete_record): New. | |
4400 | (init_record_full_ops): Delete. | |
4401 | (init_record_full_core_ops): Delete. | |
4402 | (record_full_save): Refactor as method of the | |
4403 | record_full_base_target class. | |
4404 | (_initialize_record_full): Remove references to | |
4405 | init_record_full_ops and init_record_full_core_ops. | |
4406 | ||
4407 | * remote.c (remote_target, extended_remote_target): New classes. | |
4408 | (remote_ops): Now a remote_target. | |
4409 | (extended_remote_ops): Now an extended_remote_target. | |
4410 | (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint) | |
4411 | (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint) | |
4412 | (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint) | |
4413 | (remote_pass_signals, remote_set_syscall_catchpoint) | |
4414 | (remote_program_signals, ) | |
4415 | (remote_thread_always_alive): Remove target_ops parameter. | |
4416 | (remote_thread_alive, remote_thread_name) | |
4417 | (remote_update_thread_list, remote_threads_extra_info) | |
4418 | (remote_static_tracepoint_marker_at) | |
4419 | (remote_static_tracepoint_markers_by_strid) | |
4420 | (remote_get_ada_task_ptid, remote_close, remote_start_remote) | |
4421 | (remote_open): Refactor as methods of remote_target. | |
4422 | (extended_remote_open, extended_remote_detach) | |
4423 | (extended_remote_attach, extended_remote_post_attach): | |
4424 | (extended_remote_supports_disable_randomization) | |
4425 | (extended_remote_create_inferior): : Refactor as method of | |
4426 | extended_remote_target. | |
4427 | (remote_set_permissions, remote_open_1, remote_detach) | |
4428 | (remote_follow_fork, remote_follow_exec, remote_disconnect) | |
4429 | (remote_resume, remote_commit_resume, remote_stop) | |
4430 | (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior) | |
4431 | (remote_terminal_ours, remote_wait, remote_fetch_registers) | |
4432 | (remote_prepare_to_store, remote_store_registers) | |
4433 | (remote_flash_erase, remote_flash_done, remote_files_info) | |
4434 | (remote_kill, remote_mourn, remote_insert_breakpoint) | |
4435 | (remote_remove_breakpoint, remote_insert_watchpoint) | |
4436 | (remote_watchpoint_addr_within_range) | |
4437 | (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint) | |
4438 | (remote_check_watch_resources, remote_stopped_by_sw_breakpoint) | |
4439 | (remote_supports_stopped_by_sw_breakpoint) | |
4440 | (remote_stopped_by_hw_breakpoint) | |
4441 | (remote_supports_stopped_by_hw_breakpoint) | |
4442 | (remote_stopped_by_watchpoint, remote_stopped_data_address) | |
4443 | (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint) | |
4444 | (remote_verify_memory): Refactor as methods of remote_target. | |
4445 | (remote_write_qxfer, remote_read_qxfer): Remove target_ops | |
4446 | parameter. | |
4447 | (remote_xfer_partial, remote_get_memory_xfer_limit) | |
4448 | (remote_search_memory, remote_rcmd, remote_memory_map) | |
4449 | (remote_pid_to_str, remote_get_thread_local_address) | |
4450 | (remote_get_tib_address, remote_read_description): Refactor as | |
4451 | methods of remote_target. | |
4452 | (remote_target::fileio_open, remote_target::fileio_pwrite) | |
4453 | (remote_target::fileio_pread, remote_target::fileio_close): New. | |
4454 | (remote_hostio_readlink, remote_hostio_fstat) | |
4455 | (remote_filesystem_is_local, remote_can_execute_reverse) | |
4456 | (remote_supports_non_stop, remote_supports_disable_randomization) | |
4457 | (remote_supports_multi_process, remote_supports_cond_breakpoints) | |
4458 | (remote_supports_enable_disable_tracepoint) | |
4459 | (remote_supports_string_tracing) | |
4460 | (remote_can_run_breakpoint_commands, remote_trace_init) | |
4461 | (remote_download_tracepoint, remote_can_download_tracepoint) | |
4462 | (remote_download_trace_state_variable, remote_enable_tracepoint) | |
4463 | (remote_disable_tracepoint, remote_trace_set_readonly_regions) | |
4464 | (remote_trace_start, remote_get_trace_status) | |
4465 | (remote_get_tracepoint_status, remote_trace_stop) | |
4466 | (remote_trace_find, remote_get_trace_state_variable_value) | |
4467 | (remote_save_trace_data, remote_get_raw_trace_data) | |
4468 | (remote_set_disconnected_tracing, remote_core_of_thread) | |
4469 | (remote_set_circular_trace_buffer, remote_traceframe_info) | |
4470 | (remote_get_min_fast_tracepoint_insn_len) | |
4471 | (remote_set_trace_buffer_size, remote_set_trace_notes) | |
4472 | (remote_use_agent, remote_can_use_agent, remote_enable_btrace) | |
4473 | (remote_disable_btrace, remote_teardown_btrace) | |
4474 | (remote_read_btrace, remote_btrace_conf) | |
4475 | (remote_augmented_libraries_svr4_read, remote_load) | |
4476 | (remote_pid_to_exec_file, remote_can_do_single_step) | |
4477 | (remote_execution_direction, remote_thread_handle_to_thread_info): | |
4478 | Refactor as methods of remote_target. | |
4479 | (init_remote_ops, init_extended_remote_ops): Delete. | |
4480 | (remote_can_async_p, remote_is_async_p, remote_async) | |
4481 | (remote_thread_events, remote_upload_tracepoints) | |
4482 | (remote_upload_trace_state_variables): Refactor as methods of | |
4483 | remote_target. | |
4484 | (_initialize_remote): Remove references to init_remote_ops and | |
4485 | init_extended_remote_ops. | |
4486 | ||
4487 | * remote-sim.c (gdbsim_target): New class. | |
4488 | (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill) | |
4489 | (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close) | |
4490 | (gdbsim_detach, gdbsim_resume, gdbsim_interrupt) | |
4491 | (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial) | |
4492 | (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive) | |
4493 | (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory): | |
4494 | Refactor as methods of gdbsim_target. | |
4495 | (gdbsim_ops): Now a gdbsim_target. | |
4496 | (init_gdbsim_ops): Delete. | |
4497 | (gdbsim_cntrl_c): Adjust. | |
4498 | (_initialize_remote_sim): Remove reference to init_gdbsim_ops. | |
4499 | ||
4500 | * amd64-linux-nat.c (amd64_linux_nat_target): New class. | |
4501 | (the_amd64_linux_nat_target): New. | |
4502 | (amd64_linux_fetch_inferior_registers) | |
4503 | (amd64_linux_store_inferior_registers): Refactor as methods of | |
4504 | amd64_linux_nat_target. | |
4505 | (_initialize_amd64_linux_nat): Adjust. Set linux_target. | |
4506 | * i386-linux-nat.c: Don't include "linux-nat.h". | |
4507 | (i386_linux_nat_target): New class. | |
4508 | (the_i386_linux_nat_target): New. | |
4509 | (i386_linux_fetch_inferior_registers) | |
4510 | (i386_linux_store_inferior_registers, i386_linux_resume): Refactor | |
4511 | as methods of i386_linux_nat_target. | |
4512 | (_initialize_i386_linux_nat): Adjust. Set linux_target. | |
4513 | * inf-child.c (inf_child_ops): Delete. | |
4514 | (inf_child_fetch_inferior_registers) | |
4515 | (inf_child_store_inferior_registers): Delete. | |
4516 | (inf_child_post_attach, inf_child_prepare_to_store): Refactor as | |
4517 | methods of inf_child_target. | |
4518 | (inf_child_target::supports_terminal_ours) | |
4519 | (inf_child_target::terminal_init) | |
4520 | (inf_child_target::terminal_inferior) | |
4521 | (inf_child_target::terminal_ours_for_output) | |
4522 | (inf_child_target::terminal_ours, inf_child_target::interrupt) | |
4523 | (inf_child_target::pass_ctrlc, inf_child_target::terminal_info): | |
4524 | New. | |
4525 | (inf_child_open, inf_child_disconnect, inf_child_close) | |
4526 | (inf_child_mourn_inferior, inf_child_maybe_unpush_target) | |
4527 | (inf_child_post_startup_inferior, inf_child_can_run) | |
4528 | (inf_child_pid_to_exec_file): Refactor as methods of | |
4529 | inf_child_target. | |
4530 | (inf_child_follow_fork): Delete. | |
4531 | (inf_child_target::can_create_inferior) | |
4532 | (inf_child_target::can_attach): New. | |
4533 | (inf_child_target::has_all_memory, inf_child_target::has_memory) | |
4534 | (inf_child_target::has_stack, inf_child_target::has_registers) | |
4535 | (inf_child_target::has_execution): New. | |
4536 | (inf_child_fileio_open, inf_child_fileio_pwrite) | |
4537 | (inf_child_fileio_pread, inf_child_fileio_fstat) | |
4538 | (inf_child_fileio_close, inf_child_fileio_unlink) | |
4539 | (inf_child_fileio_readlink, inf_child_use_agent) | |
4540 | (inf_child_can_use_agent): Refactor as methods of | |
4541 | inf_child_target. | |
4542 | (return_zero, inf_child_target): Delete. | |
4543 | (inf_child_target::inf_child_target): New. | |
4544 | * inf-child.h: Include "target.h". | |
4545 | (inf_child_target): Delete function prototype. | |
4546 | (inf_child_target): New class. | |
4547 | (inf_child_open_target, inf_child_mourn_inferior) | |
4548 | (inf_child_maybe_unpush_target): Delete. | |
4549 | * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New. | |
4550 | (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint) | |
4551 | (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior) | |
4552 | (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior) | |
4553 | (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach) | |
4554 | (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume) | |
4555 | (inf_ptrace_wait, inf_ptrace_xfer_partial) | |
4556 | (inf_ptrace_thread_alive, inf_ptrace_files_info) | |
4557 | (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as | |
4558 | methods of inf_ptrace_target. | |
4559 | (inf_ptrace_target): Delete function. | |
4560 | * inf-ptrace.h: Include "inf-child.h". | |
4561 | (inf_ptrace_target): Delete function declaration. | |
4562 | (inf_ptrace_target): New class. | |
4563 | (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete. | |
4564 | * linux-nat.c (linux_target): New. | |
4565 | (linux_ops, linux_ops_saved, super_xfer_partial): Delete. | |
4566 | (linux_nat_target::~linux_nat_target): New. | |
4567 | (linux_child_post_attach, linux_child_post_startup_inferior) | |
4568 | (linux_child_follow_fork, linux_child_insert_fork_catchpoint) | |
4569 | (linux_child_remove_fork_catchpoint) | |
4570 | (linux_child_insert_vfork_catchpoint) | |
4571 | (linux_child_remove_vfork_catchpoint) | |
4572 | (linux_child_insert_exec_catchpoint) | |
4573 | (linux_child_remove_exec_catchpoint) | |
4574 | (linux_child_set_syscall_catchpoint, linux_nat_pass_signals) | |
4575 | (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach) | |
4576 | (linux_nat_resume, linux_nat_stopped_by_watchpoint) | |
4577 | (linux_nat_stopped_data_address) | |
4578 | (linux_nat_stopped_by_sw_breakpoint) | |
4579 | (linux_nat_supports_stopped_by_sw_breakpoint) | |
4580 | (linux_nat_stopped_by_hw_breakpoint) | |
4581 | (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait) | |
4582 | (linux_nat_kill, linux_nat_mourn_inferior) | |
4583 | (linux_nat_xfer_partial, linux_nat_thread_alive) | |
4584 | (linux_nat_update_thread_list, linux_nat_pid_to_str) | |
4585 | (linux_nat_thread_name, linux_child_pid_to_exec_file) | |
4586 | (linux_child_static_tracepoint_markers_by_strid) | |
4587 | (linux_nat_is_async_p, linux_nat_can_async_p) | |
4588 | (linux_nat_supports_non_stop, linux_nat_always_non_stop_p) | |
4589 | (linux_nat_supports_multi_process) | |
4590 | (linux_nat_supports_disable_randomization, linux_nat_async) | |
4591 | (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space) | |
4592 | (linux_nat_core_of_thread, linux_nat_filesystem_is_local) | |
4593 | (linux_nat_fileio_open, linux_nat_fileio_readlink) | |
4594 | (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as | |
4595 | methods of linux_nat_target. | |
4596 | (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial) | |
4597 | (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops | |
4598 | parameter. | |
4599 | (check_stopped_by_watchpoint): Adjust. | |
4600 | (linux_xfer_partial): Delete. | |
4601 | (linux_target_install_ops, linux_target, linux_nat_add_target): | |
4602 | Delete. | |
4603 | (linux_nat_target::linux_nat_target): New. | |
4604 | * linux-nat.h: Include "inf-ptrace.h". | |
4605 | (linux_nat_target): New. | |
4606 | (linux_target, linux_target_install_ops, linux_nat_add_target): | |
4607 | Delete function declarations. | |
4608 | (linux_target): Declare global. | |
4609 | * linux-thread-db.c (thread_db_target): New. | |
4610 | (thread_db_target::thread_db_target): New. | |
4611 | (thread_db_ops): Delete. | |
4612 | (the_thread_db_target): New. | |
4613 | (thread_db_detach, thread_db_wait, thread_db_mourn_inferior) | |
4614 | (thread_db_update_thread_list, thread_db_pid_to_str) | |
4615 | (thread_db_extra_thread_info) | |
4616 | (thread_db_thread_handle_to_thread_info) | |
4617 | (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid) | |
4618 | (thread_db_resume): Refactor as methods of thread_db_target. | |
4619 | (init_thread_db_ops): Delete. | |
4620 | (_initialize_thread_db): Remove reference to init_thread_db_ops. | |
4621 | * x86-linux-nat.c: Don't include "linux-nat.h". | |
4622 | (super_post_startup_inferior): Delete. | |
4623 | (x86_linux_nat_target::~x86_linux_nat_target): New. | |
4624 | (x86_linux_child_post_startup_inferior) | |
4625 | (x86_linux_read_description, x86_linux_enable_btrace) | |
4626 | (x86_linux_disable_btrace, x86_linux_teardown_btrace) | |
4627 | (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as | |
4628 | methods of x86_linux_nat_target. | |
4629 | (x86_linux_create_target): Delete. Bits folded ... | |
4630 | (x86_linux_add_target): ... here. Now takes a linux_nat_target | |
4631 | pointer. | |
4632 | * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h". | |
4633 | (x86_linux_nat_target): New class. | |
4634 | (x86_linux_create_target): Delete. | |
4635 | (x86_linux_add_target): Now takes a linux_nat_target pointer. | |
4636 | * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint) | |
4637 | (x86_region_ok_for_watchpoint, x86_stopped_data_address) | |
4638 | (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint) | |
4639 | (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint) | |
4640 | (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and | |
4641 | make extern. | |
4642 | (x86_use_watchpoints): Delete. | |
4643 | * x86-nat.h: Include "breakpoint.h" and "target.h". | |
4644 | (x86_use_watchpoints): Delete. | |
4645 | (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint) | |
4646 | (x86_stopped_by_watchpoint, x86_stopped_data_address) | |
4647 | (x86_insert_watchpoint, x86_remove_watchpoint) | |
4648 | (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint) | |
4649 | (x86_stopped_by_hw_breakpoint): New declarations. | |
4650 | (x86_nat_target): New template class. | |
4651 | ||
4652 | * ppc-linux-nat.c (ppc_linux_nat_target): New class. | |
4653 | (the_ppc_linux_nat_target): New. | |
4654 | (ppc_linux_fetch_inferior_registers) | |
4655 | (ppc_linux_can_use_hw_breakpoint) | |
4656 | (ppc_linux_region_ok_for_hw_watchpoint) | |
4657 | (ppc_linux_ranged_break_num_registers) | |
4658 | (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint) | |
4659 | (ppc_linux_insert_mask_watchpoint) | |
4660 | (ppc_linux_remove_mask_watchpoint) | |
4661 | (ppc_linux_can_accel_watchpoint_condition) | |
4662 | (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint) | |
4663 | (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint) | |
4664 | (ppc_linux_watchpoint_addr_within_range) | |
4665 | (ppc_linux_masked_watch_num_registers) | |
4666 | (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse) | |
4667 | (ppc_linux_read_description): Refactor as methods of | |
4668 | ppc_linux_nat_target. | |
4669 | (_initialize_ppc_linux_nat): Adjust. Set linux_target. | |
4670 | ||
4671 | * procfs.c (procfs_xfer_partial): Delete forward declaration. | |
4672 | (procfs_target): New class. | |
4673 | (the_procfs_target): New. | |
4674 | (procfs_target): Delete function. | |
4675 | (procfs_auxv_parse, procfs_attach, procfs_detach) | |
4676 | (procfs_fetch_registers, procfs_store_registers, procfs_wait) | |
4677 | (procfs_xfer_partial, procfs_resume, procfs_pass_signals) | |
4678 | (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior) | |
4679 | (procfs_create_inferior, procfs_update_thread_list) | |
4680 | (procfs_thread_alive, procfs_pid_to_str) | |
4681 | (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint) | |
4682 | (procfs_stopped_data_address, procfs_insert_watchpoint) | |
4683 | (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint) | |
4684 | (proc_find_memory_regions, procfs_info_proc) | |
4685 | (procfs_make_note_section): Refactor as methods of procfs_target. | |
4686 | (_initialize_procfs): Adjust. | |
4687 | * sol-thread.c (sol_thread_target): New class. | |
4688 | (sol_thread_ops): Now a sol_thread_target. | |
4689 | (sol_thread_detach, sol_thread_resume, sol_thread_wait) | |
4690 | (sol_thread_fetch_registers, sol_thread_store_registers) | |
4691 | (sol_thread_xfer_partial, sol_thread_mourn_inferior) | |
4692 | (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list) | |
4693 | (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target. | |
4694 | (init_sol_thread_ops): Delete. | |
4695 | (_initialize_sol_thread): Adjust. Remove references to | |
4696 | init_sol_thread_ops and complete_target_initialization. | |
4697 | ||
4698 | * windows-nat.c (windows_nat_target): New class. | |
4699 | (windows_fetch_inferior_registers) | |
4700 | (windows_store_inferior_registers, windows_resume, windows_wait) | |
4701 | (windows_attach, windows_detach, windows_pid_to_exec_file) | |
4702 | (windows_files_info, windows_create_inferior) | |
4703 | (windows_mourn_inferior, windows_interrupt, windows_kill_inferior) | |
4704 | (windows_close, windows_pid_to_str, windows_xfer_partial) | |
4705 | (windows_get_tib_address, windows_get_ada_task_ptid) | |
4706 | (windows_thread_name, windows_thread_alive): Refactor as | |
4707 | windows_nat_target methods. | |
4708 | (do_initial_windows_stuff): Adjust. | |
4709 | (windows_target): Delete function. | |
4710 | (_initialize_windows_nat): Adjust. | |
4711 | ||
4712 | * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt) | |
4713 | (darwin_mourn_inferior, darwin_kill_inferior) | |
4714 | (darwin_create_inferior, darwin_attach, darwin_detach) | |
4715 | (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial) | |
4716 | (darwin_pid_to_exec_file, darwin_get_ada_task_ptid) | |
4717 | (darwin_supports_multi_process): Refactor as darwin_nat_target | |
4718 | methods. | |
4719 | (darwin_resume_to, darwin_files_info): Delete. | |
4720 | (_initialize_darwin_inferior): Rename to ... | |
4721 | (_initialize_darwin_nat): ... this. Adjust to C++ification. | |
4722 | * darwin-nat.h: Include "inf-child.h". | |
4723 | (darwin_nat_target): New class. | |
4724 | (darwin_complete_target): Delete. | |
4725 | * i386-darwin-nat.c (i386_darwin_nat_target): New class. | |
4726 | (darwin_target): New. | |
4727 | (i386_darwin_fetch_inferior_registers) | |
4728 | (i386_darwin_store_inferior_registers): Refactor as methods of | |
4729 | darwin_nat_target. | |
4730 | (darwin_complete_target): Delete, with ... | |
4731 | (_initialize_i386_darwin_nat): ... bits factored out here. | |
4732 | ||
4733 | * alpha-linux-nat.c (alpha_linux_nat_target): New class. | |
4734 | (the_alpha_linux_nat_target): New. | |
4735 | (alpha_linux_register_u_offset): Refactor as | |
4736 | alpha_linux_nat_target method. | |
4737 | (_initialize_alpha_linux_nat): Adjust. | |
4738 | * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete. | |
4739 | (inf_ptrace_fetch_register, inf_ptrace_fetch_registers) | |
4740 | (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as | |
4741 | methods of linux_nat_trad_target. | |
4742 | (linux_trad_target): Delete. | |
4743 | * linux-nat-trad.h (linux_trad_target): Delete function. | |
4744 | (linux_nat_trad_target): New class. | |
4745 | * mips-linux-nat.c (mips_linux_nat_target): New class. | |
4746 | (super_fetch_registers, super_store_registers, super_close): | |
4747 | Delete. | |
4748 | (the_mips_linux_nat_target): New. | |
4749 | (mips64_linux_regsets_fetch_registers) | |
4750 | (mips64_linux_regsets_store_registers) | |
4751 | (mips64_linux_fetch_registers, mips64_linux_store_registers) | |
4752 | (mips_linux_register_u_offset, mips_linux_read_description) | |
4753 | (mips_linux_can_use_hw_breakpoint) | |
4754 | (mips_linux_stopped_by_watchpoint) | |
4755 | (mips_linux_stopped_data_address) | |
4756 | (mips_linux_region_ok_for_hw_watchpoint) | |
4757 | (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint) | |
4758 | (mips_linux_close): Refactor as methods of mips_linux_nat. | |
4759 | (_initialize_mips_linux_nat): Adjust to C++ification. | |
4760 | ||
4761 | * aix-thread.c (aix_thread_target): New class. | |
4762 | (aix_thread_ops): Now an aix_thread_target. | |
4763 | (aix_thread_detach, aix_thread_resume, aix_thread_wait) | |
4764 | (aix_thread_fetch_registers, aix_thread_store_registers) | |
4765 | (aix_thread_xfer_partial, aix_thread_mourn_inferior) | |
4766 | (aix_thread_thread_alive, aix_thread_pid_to_str) | |
4767 | (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid): | |
4768 | Refactor as methods of aix_thread_target. | |
4769 | (init_aix_thread_ops): Delete. | |
4770 | (_initialize_aix_thread): Remove references to init_aix_thread_ops | |
4771 | and complete_target_initialization. | |
4772 | * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete. | |
4773 | (rs6000_nat_target): New class. | |
4774 | (the_rs6000_nat_target): New. | |
4775 | (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers) | |
4776 | (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior) | |
4777 | (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods. | |
4778 | (super_create_inferior): Delete. | |
4779 | (_initialize_rs6000_nat): Adjust to C++ification. | |
4780 | ||
4781 | * arm-linux-nat.c (arm_linux_nat_target): New class. | |
4782 | (the_arm_linux_nat_target): New. | |
4783 | (arm_linux_fetch_inferior_registers) | |
4784 | (arm_linux_store_inferior_registers, arm_linux_read_description) | |
4785 | (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint) | |
4786 | (arm_linux_remove_hw_breakpoint) | |
4787 | (arm_linux_region_ok_for_hw_watchpoint) | |
4788 | (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint) | |
4789 | (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint) | |
4790 | (arm_linux_watchpoint_addr_within_range): Refactor as methods of | |
4791 | arm_linux_nat_target. | |
4792 | (_initialize_arm_linux_nat): Adjust to C++ification. | |
4793 | ||
4794 | * aarch64-linux-nat.c (aarch64_linux_nat_target): New class. | |
4795 | (the_aarch64_linux_nat_target): New. | |
4796 | (aarch64_linux_fetch_inferior_registers) | |
4797 | (aarch64_linux_store_inferior_registers) | |
4798 | (aarch64_linux_child_post_startup_inferior) | |
4799 | (aarch64_linux_read_description) | |
4800 | (aarch64_linux_can_use_hw_breakpoint) | |
4801 | (aarch64_linux_insert_hw_breakpoint) | |
4802 | (aarch64_linux_remove_hw_breakpoint) | |
4803 | (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint) | |
4804 | (aarch64_linux_region_ok_for_hw_watchpoint) | |
4805 | (aarch64_linux_stopped_data_address) | |
4806 | (aarch64_linux_stopped_by_watchpoint) | |
4807 | (aarch64_linux_watchpoint_addr_within_range) | |
4808 | (aarch64_linux_can_do_single_step): Refactor as methods of | |
4809 | aarch64_linux_nat_target. | |
4810 | (super_post_startup_inferior): Delete. | |
4811 | (_initialize_aarch64_linux_nat): Adjust to C++ification. | |
4812 | ||
4813 | * hppa-linux-nat.c (hppa_linux_nat_target): New class. | |
4814 | (the_hppa_linux_nat_target): New. | |
4815 | (hppa_linux_fetch_inferior_registers) | |
4816 | (hppa_linux_store_inferior_registers): Refactor as methods of | |
4817 | hppa_linux_nat_target. | |
4818 | (_initialize_hppa_linux_nat): Adjust to C++ification. | |
4819 | ||
4820 | * ia64-linux-nat.c (ia64_linux_nat_target): New class. | |
4821 | (the_ia64_linux_nat_target): New. | |
4822 | (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint) | |
4823 | (ia64_linux_stopped_data_address) | |
4824 | (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers) | |
4825 | (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as | |
4826 | ia64_linux_nat_target methods. | |
4827 | (super_xfer_partial): Delete. | |
4828 | (_initialize_ia64_linux_nat): Adjust to C++ification. | |
4829 | ||
4830 | * m32r-linux-nat.c (m32r_linux_nat_target): New class. | |
4831 | (the_m32r_linux_nat_target): New. | |
4832 | (m32r_linux_fetch_inferior_registers) | |
4833 | (m32r_linux_store_inferior_registers): Refactor as | |
4834 | m32r_linux_nat_target methods. | |
4835 | (_initialize_m32r_linux_nat): Adjust to C++ification. | |
4836 | ||
4837 | * m68k-linux-nat.c (m68k_linux_nat_target): New class. | |
4838 | (the_m68k_linux_nat_target): New. | |
4839 | (m68k_linux_fetch_inferior_registers) | |
4840 | (m68k_linux_store_inferior_registers): Refactor as | |
4841 | m68k_linux_nat_target methods. | |
4842 | (_initialize_m68k_linux_nat): Adjust to C++ification. | |
4843 | ||
4844 | * s390-linux-nat.c (s390_linux_nat_target): New class. | |
4845 | (the_s390_linux_nat_target): New. | |
4846 | (s390_linux_fetch_inferior_registers) | |
4847 | (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint) | |
4848 | (s390_insert_watchpoint, s390_remove_watchpoint) | |
4849 | (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint) | |
4850 | (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint) | |
4851 | (s390_auxv_parse, s390_read_description): Refactor as methods of | |
4852 | s390_linux_nat_target. | |
4853 | (_initialize_s390_nat): Adjust to C++ification. | |
4854 | ||
4855 | * sparc-linux-nat.c (sparc_linux_nat_target): New class. | |
4856 | (the_sparc_linux_nat_target): New. | |
4857 | (_initialize_sparc_linux_nat): Adjust to C++ification. | |
4858 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
4859 | (sparc_store_inferior_registers): Remove target_ops parameter. | |
4860 | * sparc-nat.h (sparc_fetch_inferior_registers) | |
4861 | (sparc_store_inferior_registers): Remove target_ops parameter. | |
4862 | * sparc64-linux-nat.c (sparc64_linux_nat_target): New class. | |
4863 | (the_sparc64_linux_nat_target): New. | |
4864 | (_initialize_sparc64_linux_nat): Adjust to C++ification. | |
4865 | ||
4866 | * spu-linux-nat.c (spu_linux_nat_target): New class. | |
4867 | (the_spu_linux_nat_target): New. | |
4868 | (spu_child_post_startup_inferior, spu_child_post_attach) | |
4869 | (spu_child_wait, spu_fetch_inferior_registers) | |
4870 | (spu_store_inferior_registers, spu_xfer_partial) | |
4871 | (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target | |
4872 | methods. | |
4873 | (_initialize_spu_nat): Adjust to C++ification. | |
4874 | ||
4875 | * tilegx-linux-nat.c (tilegx_linux_nat_target): New class. | |
4876 | (the_tilegx_linux_nat_target): New. | |
4877 | (fetch_inferior_registers, store_inferior_registers): | |
4878 | Refactor as methods. | |
4879 | (_initialize_tile_linux_nat): Adjust to C++ification. | |
4880 | ||
4881 | * xtensa-linux-nat.c (xtensa_linux_nat_target): New class. | |
4882 | (the_xtensa_linux_nat_target): New. | |
4883 | (xtensa_linux_fetch_inferior_registers) | |
4884 | (xtensa_linux_store_inferior_registers): Refactor as | |
4885 | xtensa_linux_nat_target methods. | |
4886 | (_initialize_xtensa_linux_nat): Adjust to C++ification. | |
4887 | ||
4888 | * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete. | |
4889 | (fbsd_pid_to_exec_file, fbsd_find_memory_regions) | |
4890 | (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial) | |
4891 | (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name) | |
4892 | (fbsd_update_thread_list, fbsd_resume, fbsd_wait) | |
4893 | (fbsd_stopped_by_sw_breakpoint) | |
4894 | (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork) | |
4895 | (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint) | |
4896 | (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint) | |
4897 | (fbsd_post_startup_inferior, fbsd_post_attach) | |
4898 | (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint) | |
4899 | (fbsd_set_syscall_catchpoint) | |
4900 | (super_xfer_partial, super_resume, super_wait) | |
4901 | (fbsd_supports_stopped_by_hw_breakpoint): Delete. | |
4902 | (fbsd_handle_debug_trap): Remove target_ops parameter. | |
4903 | (fbsd_nat_add_target): Delete. | |
4904 | * fbsd-nat.h: Include "inf-ptrace.h". | |
4905 | (fbsd_nat_add_target): Delete. | |
4906 | (USE_SIGTRAP_SIGINFO): Define. | |
4907 | (fbsd_nat_target): New class. | |
4908 | ||
4909 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers) | |
4910 | (amd64bsd_store_inferior_registers): Remove target_ops parameter. | |
4911 | (amd64bsd_target): Delete. | |
4912 | * amd64-bsd-nat.h: New file. | |
4913 | * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of | |
4914 | "x86-bsd-nat.h". | |
4915 | (amd64_fbsd_nat_target): New class. | |
4916 | (the_amd64_fbsd_nat_target): New. | |
4917 | (amd64fbsd_read_description): Refactor as method of | |
4918 | amd64_fbsd_nat_target. | |
4919 | (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New. | |
4920 | (_initialize_amd64fbsd_nat): Adjust to C++ification. | |
4921 | * amd64-nat.h (amd64bsd_target): Delete function declaration. | |
4922 | * i386-bsd-nat.c (i386bsd_fetch_inferior_registers) | |
4923 | (i386bsd_store_inferior_registers): Remove target_ops parameter. | |
4924 | (i386bsd_target): Delete. | |
4925 | * i386-bsd-nat.h (i386bsd_target): Delete function declaration. | |
4926 | (i386bsd_fetch_inferior_registers) | |
4927 | (i386bsd_store_inferior_registers): Declare. | |
4928 | (i386_bsd_nat_target): New class. | |
4929 | * i386-fbsd-nat.c (i386_fbsd_nat_target): New class. | |
4930 | (the_i386_fbsd_nat_target): New. | |
4931 | (i386fbsd_resume, i386fbsd_read_description): Refactor as | |
4932 | i386_fbsd_nat_target methods. | |
4933 | (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New. | |
4934 | (_initialize_i386fbsd_nat): Adjust to C++ification. | |
4935 | * x86-bsd-nat.c (super_mourn_inferior): Delete. | |
4936 | (x86bsd_mourn_inferior, x86bsd_target): Delete. | |
4937 | (_initialize_x86_bsd_nat): Adjust to C++ification. | |
4938 | * x86-bsd-nat.h: Include "x86-nat.h". | |
4939 | (x86bsd_target): Delete declaration. | |
4940 | (x86bsd_nat_target): New class. | |
4941 | ||
4942 | * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class. | |
4943 | (the_aarch64_fbsd_nat_target): New. | |
4944 | (aarch64_fbsd_fetch_inferior_registers) | |
4945 | (aarch64_fbsd_store_inferior_registers): Refactor as methods of | |
4946 | aarch64_fbsd_nat_target. | |
4947 | (_initialize_aarch64_fbsd_nat): Adjust to C++ification. | |
4948 | * alpha-bsd-nat.c (alpha_bsd_nat_target): New class. | |
4949 | (the_alpha_bsd_nat_target): New. | |
4950 | (alphabsd_fetch_inferior_registers) | |
4951 | (alphabsd_store_inferior_registers): Refactor as | |
4952 | alpha_bsd_nat_target methods. | |
4953 | (_initialize_alphabsd_nat): Refactor as methods of | |
4954 | alpha_bsd_nat_target. | |
4955 | * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h". | |
4956 | (the_amd64_nbsd_nat_target): New. | |
4957 | (_initialize_amd64nbsd_nat): Adjust to C++ification. | |
4958 | * amd64-obsd-nat.c: Include "amd64-bsd-nat.h". | |
4959 | (the_amd64_obsd_nat_target): New. | |
4960 | (_initialize_amd64obsd_nat): Adjust to C++ification. | |
4961 | * arm-fbsd-nat.c (arm_fbsd_nat_target): New. | |
4962 | (the_arm_fbsd_nat_target): New. | |
4963 | (arm_fbsd_fetch_inferior_registers) | |
4964 | (arm_fbsd_store_inferior_registers, arm_fbsd_read_description): | |
4965 | (_initialize_arm_fbsd_nat): Refactor as methods of | |
4966 | arm_fbsd_nat_target. | |
4967 | (_initialize_arm_fbsd_nat): Adjust to C++ification. | |
4968 | * arm-nbsd-nat.c (arm_netbsd_nat_target): New class. | |
4969 | (the_arm_netbsd_nat_target): New. | |
4970 | (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as | |
4971 | arm_netbsd_nat_target. | |
4972 | (_initialize_arm_netbsd_nat): Adjust to C++ification. | |
4973 | * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class. | |
4974 | (the_hppa_nbsd_nat_target): New. | |
4975 | (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as | |
4976 | hppa_nbsd_nat_target methods. | |
4977 | (_initialize_hppanbsd_nat): Adjust to C++ification. | |
4978 | * hppa-obsd-nat.c (hppa_obsd_nat_target): New class. | |
4979 | (the_hppa_obsd_nat_target): New. | |
4980 | (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as | |
4981 | methods of hppa_obsd_nat_target. | |
4982 | (_initialize_hppaobsd_nat): Adjust to C++ification. Use | |
4983 | add_target. | |
4984 | * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New. | |
4985 | (_initialize_i386nbsd_nat): Adjust to C++ification. Use | |
4986 | add_target. | |
4987 | * i386-obsd-nat.c (the_i386_obsd_nat_target): New. | |
4988 | (_initialize_i386obsd_nat): Use add_target. | |
4989 | * m68k-bsd-nat.c (m68k_bsd_nat_target): New class. | |
4990 | (the_m68k_bsd_nat_target): New. | |
4991 | (m68kbsd_fetch_inferior_registers) | |
4992 | (m68kbsd_store_inferior_registers): Refactor as methods of | |
4993 | m68k_bsd_nat_target. | |
4994 | (_initialize_m68kbsd_nat): Adjust to C++ification. | |
4995 | * mips-fbsd-nat.c (mips_fbsd_nat_target): New class. | |
4996 | (the_mips_fbsd_nat_target): New. | |
4997 | (mips_fbsd_fetch_inferior_registers) | |
4998 | (mips_fbsd_store_inferior_registers): Refactor as methods of | |
4999 | mips_fbsd_nat_target. | |
5000 | (_initialize_mips_fbsd_nat): Adjust to C++ification. Use | |
5001 | add_target. | |
5002 | * mips-nbsd-nat.c (mips_nbsd_nat_target): New class. | |
5003 | (the_mips_nbsd_nat_target): New. | |
5004 | (mipsnbsd_fetch_inferior_registers) | |
5005 | (mipsnbsd_store_inferior_registers): Refactor as methods of | |
5006 | mips_nbsd_nat_target. | |
5007 | (_initialize_mipsnbsd_nat): Adjust to C++ification. | |
5008 | * mips64-obsd-nat.c (mips64_obsd_nat_target): New class. | |
5009 | (the_mips64_obsd_nat_target): New. | |
5010 | (mips64obsd_fetch_inferior_registers) | |
5011 | (mips64obsd_store_inferior_registers): Refactor as methods of | |
5012 | mips64_obsd_nat_target. | |
5013 | (_initialize_mips64obsd_nat): Adjust to C++ification. Use | |
5014 | add_target. | |
5015 | * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of | |
5016 | nbsd_nat_target. | |
5017 | * nbsd-nat.h: Include "inf-ptrace.h". | |
5018 | (nbsd_nat_target): New class. | |
5019 | * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list) | |
5020 | (obsd_wait): Refactor as methods of obsd_nat_target. | |
5021 | (obsd_add_target): Delete. | |
5022 | * obsd-nat.h: Include "inf-ptrace.h". | |
5023 | (obsd_nat_target): New class. | |
5024 | * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class. | |
5025 | (the_ppc_fbsd_nat_target): New. | |
5026 | (ppcfbsd_fetch_inferior_registers) | |
5027 | (ppcfbsd_store_inferior_registers): Refactor as methods of | |
5028 | ppc_fbsd_nat_target. | |
5029 | (_initialize_ppcfbsd_nat): Adjust to C++ification. Use | |
5030 | add_target. | |
5031 | * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class. | |
5032 | (the_ppc_nbsd_nat_target): New. | |
5033 | (ppcnbsd_fetch_inferior_registers) | |
5034 | (ppcnbsd_store_inferior_registers): Refactor as methods of | |
5035 | ppc_nbsd_nat_target. | |
5036 | (_initialize_ppcnbsd_nat): Adjust to C++ification. | |
5037 | * ppc-obsd-nat.c (ppc_obsd_nat_target): New class. | |
5038 | (the_ppc_obsd_nat_target): New. | |
5039 | (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as | |
5040 | methods of ppc_obsd_nat_target. | |
5041 | (_initialize_ppcobsd_nat): Adjust to C++ification. Use | |
5042 | add_target. | |
5043 | * sh-nbsd-nat.c (sh_nbsd_nat_target): New class. | |
5044 | (the_sh_nbsd_nat_target): New. | |
5045 | (shnbsd_fetch_inferior_registers) | |
5046 | (shnbsd_store_inferior_registers): Refactor as methods of | |
5047 | sh_nbsd_nat_target. | |
5048 | (_initialize_shnbsd_nat): Adjust to C++ification. | |
5049 | * sparc-nat.c (sparc_xfer_wcookie): Make extern. | |
5050 | (inf_ptrace_xfer_partial): Delete. | |
5051 | (sparc_xfer_partial, sparc_target): Delete. | |
5052 | * sparc-nat.h (sparc_fetch_inferior_registers) | |
5053 | (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare. | |
5054 | (sparc_target): Delete function declaration. | |
5055 | (sparc_target): New template class. | |
5056 | * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New. | |
5057 | (_initialize_sparcnbsd_nat): Adjust to C++ification. | |
5058 | * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New. | |
5059 | (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use | |
5060 | add_target. | |
5061 | * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New. | |
5062 | (_initialize_sparc64nbsd_nat): Adjust to C++ification. | |
5063 | * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New. | |
5064 | (_initialize_sparc64obsd_nat): Adjust to C++ification. Use | |
5065 | add_target. | |
5066 | * vax-bsd-nat.c (vax_bsd_nat_target): New class. | |
5067 | (the_vax_bsd_nat_target): New. | |
5068 | (vaxbsd_fetch_inferior_registers) | |
5069 | (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target | |
5070 | methods. | |
5071 | (_initialize_vaxbsd_nat): Adjust to C++ification. | |
5072 | ||
5073 | * bsd-kvm.c (bsd_kvm_target): New class. | |
5074 | (bsd_kvm_ops): Now a bsd_kvm_target. | |
5075 | (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial) | |
5076 | (bsd_kvm_files_info, bsd_kvm_fetch_registers) | |
5077 | (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of | |
5078 | bsd_kvm_target. | |
5079 | (bsd_kvm_return_one): Delete. | |
5080 | (bsd_kvm_add_target): Adjust to C++ification. | |
5081 | ||
5082 | * nto-procfs.c (nto_procfs_target, nto_procfs_target_native) | |
5083 | (nto_procfs_target_procfs): New classes. | |
5084 | (procfs_open_1, procfs_thread_alive, procfs_update_thread_list) | |
5085 | (procfs_files_info, procfs_pid_to_exec_file, procfs_attach) | |
5086 | (procfs_post_attach, procfs_wait, procfs_fetch_registers) | |
5087 | (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint) | |
5088 | (procfs_remove_breakpoint, procfs_insert_hw_breakpoint) | |
5089 | (procfs_remove_hw_breakpoint, procfs_resume) | |
5090 | (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt) | |
5091 | (procfs_kill_inferior, procfs_store_registers) | |
5092 | (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor | |
5093 | as methods of nto_procfs_target. | |
5094 | (nto_procfs_ops): Now an nto_procfs_target_procfs. | |
5095 | (nto_native_ops): Delete. | |
5096 | (procfs_open, procfs_native_open): Delete. | |
5097 | (nto_native_ops): Now an nto_procfs_target_native. | |
5098 | (init_procfs_targets): Adjust to C++ification. | |
5099 | (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint) | |
5100 | (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint): | |
5101 | Refactor as methods of nto_procfs_target. | |
5102 | ||
5103 | * go32-nat.c (go32_nat_target): New class. | |
5104 | (the_go32_nat_target): New. | |
5105 | (go32_attach, go32_resume, go32_wait, go32_fetch_registers) | |
5106 | (go32_store_registers, go32_xfer_partial, go32_files_info) | |
5107 | (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior) | |
5108 | (go32_terminal_init, go32_terminal_info, go32_terminal_inferior) | |
5109 | (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive) | |
5110 | (go32_pid_to_str): Refactor as methods of go32_nat_target. | |
5111 | (go32_target): Delete. | |
5112 | (_initialize_go32_nat): Adjust to C++ification. | |
5113 | ||
5114 | * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior) | |
5115 | (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach) | |
5116 | (gnu_stop, gnu_thread_alive, gnu_xfer_partial) | |
5117 | (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of | |
5118 | gnu_nat_target. | |
5119 | (gnu_target): Delete. | |
5120 | * gnu-nat.h (gnu_target): Delete. | |
5121 | (gnu_nat_target): New class. | |
5122 | * i386-gnu-nat.c (gnu_base_target): New. | |
5123 | (i386_gnu_nat_target): New class. | |
5124 | (the_i386_gnu_nat_target): New. | |
5125 | (_initialize_i386gnu_nat): Adjust to C++ification. | |
5126 | ||
3fffc070 PA |
5127 | 2018-05-02 Pedro Alves <palves@redhat.com> |
5128 | ||
5129 | * bfd-target.c (target_bfd_xclose): Rename to ... | |
5130 | (target_bfd_close): ... this. | |
5131 | (target_bfd_reopen): Adjust. | |
5132 | * target.c (target_close): Remove references to to_xclose. | |
5133 | * target.h (target_ops::to_xclose): Delete. | |
5134 | (target_ops::to_close): Update comments. | |
5135 | ||
6798487f PA |
5136 | 2018-05-02 Pedro Alves <palves@redhat.com> |
5137 | ||
5138 | * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of | |
5139 | "linux-nat.h". | |
5140 | * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o. | |
5141 | * inf-ptrace.c (inf_ptrace_register_u_offset) | |
5142 | (inf_ptrace_fetch_register, inf_ptrace_fetch_registers) | |
5143 | (inf_ptrace_store_register, inf_ptrace_store_registers) | |
5144 | (inf_ptrace_trad_target): Move to ... | |
5145 | * linux-nat-trad.c: ... this new file. | |
5146 | * linux-nat-trad.h: New file. | |
5147 | * linux-nat.c (linux_target_install_ops): Make extern. | |
5148 | (linux_trad_target): Delete. | |
5149 | * linux-nat.h (linux_trad_target): Delete declaration. | |
5150 | (linux_target_install_ops): Declare. | |
5151 | * mips-linux-nat.c: Include "linux-nat-trad.h" instead of | |
5152 | "linux-nat.h". | |
5153 | ||
c1955e17 PA |
5154 | 2018-05-02 Pedro Alves <palves@redhat.com> |
5155 | ||
5156 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call | |
5157 | procfs_target/add_target here. | |
5158 | * procfs.c (procfs_target): Make static. | |
5159 | (_initialize_procfs): Call add_target here. | |
5160 | * procfs.h (struct target_ops): Remove forward declaration. | |
5161 | (procfs_target): Remove declaration. | |
5162 | * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete. | |
5163 | ||
b5c8fcb1 PA |
5164 | 2018-05-02 Pedro Alves <palves@redhat.com> |
5165 | ||
5166 | * procfs.c (procfs_stopped_by_watchpoint) | |
5167 | (procfs_insert_watchpoint, procfs_remove_watchpoint) | |
5168 | (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address): | |
5169 | Forward declare. | |
5170 | (procfs_use_watchpoints): Delete, move contents... | |
5171 | (procfs_target): ... here. | |
5172 | * procfs.h (procfs_use_watchpoints): Delete declaration. | |
5173 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call | |
5174 | procfs_use_watchpoints. | |
5175 | * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call | |
5176 | procfs_use_watchpoints. | |
5177 | ||
0489430a TT |
5178 | 2018-05-02 Tom Tromey <tom@tromey.com> |
5179 | ||
5180 | PR python/20084: | |
5181 | * python/python.c (gdbpy_parameter_value): Handle var_zuinteger | |
5182 | and var_zuinteger_unlimited. | |
5183 | * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER | |
5184 | and PARAM_ZUINTEGER_UNLIMITED. | |
5185 | (set_parameter_value): Handle var_zuinteger and | |
5186 | var_zuinteger_unlimited. | |
5187 | (add_setshow_generic): Likewise. | |
5188 | (parmpy_init): Likewise. | |
5189 | ||
1632f8ba DR |
5190 | 2018-04-28 Dan Robertson <danlrobertson89@gmail.com> |
5191 | ||
5192 | PR rust/23124 | |
5193 | * gdb/rust-exp.y (convert_params_to_types): Ensure that the params | |
5194 | pointer is not null before dereferencing it. | |
5195 | ||
76761936 TT |
5196 | 2018-04-30 Tom Tromey <tom@tromey.com> |
5197 | ||
5198 | * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of | |
5199 | is_mi_like_p. | |
5200 | ||
2d33446d TT |
5201 | 2018-04-30 Tom Tromey <tom@tromey.com> |
5202 | ||
5203 | * breakpoint.c (mention): Remove use of is_mi_like_p. | |
5204 | (print_mention_ranged_breakpoint): Likewise. | |
5205 | * break-catch-throw.c (print_it_exception_catchpoint): Remove use | |
5206 | of is_mi_like_p. | |
5207 | ||
f3c6abab TT |
5208 | 2018-04-30 Tom Tromey <tom@tromey.com> |
5209 | ||
5210 | * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p. | |
5211 | ||
40c03530 TT |
5212 | 2018-04-30 Tom Tromey <tom@tromey.com> |
5213 | ||
5214 | * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist) | |
5215 | (info_spu_event_command): Remove some uses of is_mi_like_p. | |
5216 | ||
2038b7fd TT |
5217 | 2018-04-30 Tom Tromey <tom@tromey.com> |
5218 | ||
5219 | * python/py-framefilter.c (py_print_single_arg) | |
5220 | (enumerate_locals, py_print_args, py_print_frame): Remove some | |
5221 | uses of is_mi_like_p. | |
5222 | ||
4904c3c6 TT |
5223 | 2018-04-30 Tom Tromey <tom@tromey.com> |
5224 | ||
5225 | * ui-out.c: Update. | |
5226 | * cli-out.h (cli_ui_out::do_is_mi_like_p): Update. | |
5227 | * ui-out.h (ui_out::is_mi_like_p): Now const. | |
5228 | (ui_out::do_is_mi_like_p): Now const. | |
5229 | * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update. | |
5230 | ||
7c66fffc TT |
5231 | 2018-04-30 Tom Tromey <tom@tromey.com> |
5232 | ||
5233 | * varobj.c (varobj_set_visualizer): Use new_reference. | |
5234 | * python/python.c (gdbpy_decode_line): Use new_reference. | |
5235 | * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use | |
5236 | new_reference. | |
5237 | ||
bbfa6f00 TT |
5238 | 2018-04-30 Tom Tromey <tom@tromey.com> |
5239 | ||
5240 | * varobj.c (install_new_value): Use new_reference. | |
5241 | * value.h (value_incref): Return void. Swap intro comment with | |
5242 | value_decref. | |
5243 | * value.c (set_value_parent): Use new_reference. | |
5244 | (value_incref): Return void. Update intro comment. | |
5245 | (release_value): Use new_reference. | |
5246 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference. | |
5247 | ||
1831a9f9 TT |
5248 | 2018-04-30 Tom Tromey <tom@tromey.com> |
5249 | ||
5250 | * symfile-mem.c (symbol_file_add_from_memory): Use new_reference. | |
5251 | * gdb_bfd.h (new_bfd_ref): Remove. | |
5252 | (gdb_bfd_open): Update comment. | |
5253 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
5254 | (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion) | |
5255 | (gdb_bfd_fdopenr): Use new_reference. | |
5256 | * exec.c (exec_file_attach): Use new_reference. | |
5257 | ||
7c1b5f3d TT |
5258 | 2018-04-30 Tom Tromey <tom@tromey.com> |
5259 | ||
5260 | * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static | |
5261 | method. | |
5262 | ||
e11fb955 TT |
5263 | 2018-04-30 Tom Tromey <tom@tromey.com> |
5264 | ||
5265 | * jit.c (jit_read_code_entry): Use type_align. | |
5266 | * i386-tdep.c (i386_gdbarch_init): Don't call | |
5267 | set_gdbarch_long_long_align_bit. | |
5268 | * gdbarch.sh: Remove long_long_align_bit. | |
5269 | * gdbarch.c, gdbarch.h: Rebuild. | |
5270 | * arc-tdep.c (arc_type_align): New function. | |
5271 | (arc_gdbarch_init): Use arc_type_align. Don't call | |
5272 | set_gdbarch_long_long_align_bit. | |
5273 | ||
2fff16dd TT |
5274 | 2018-04-30 Tom Tromey <tom@tromey.com> |
5275 | ||
5276 | * rust-lang.c (rust_type_alignment): Remove. | |
5277 | (rust_composite_type): Use type_align. | |
5278 | ||
6d7bb824 TT |
5279 | 2018-04-30 Tom Tromey <tom@tromey.com> |
5280 | ||
5281 | * NEWS: Mention Type.align. | |
5282 | * python/py-type.c (typy_get_alignof): New function. | |
5283 | (type_object_getset): Add "alignof". | |
5284 | ||
007e1530 TT |
5285 | 2018-04-30 Tom Tromey <tom@tromey.com> |
5286 | ||
5287 | PR exp/17095: | |
5288 | * NEWS: Update. | |
5289 | * std-operator.def (UNOP_ALIGNOF): New operator. | |
5290 | * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>: | |
5291 | New. | |
5292 | * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New. | |
5293 | * c-lang.c (c_op_print_tab): Add alignof. | |
5294 | * c-exp.y (ALIGNOF): New token. | |
5295 | (exp): Add "ALIGNOF" production. | |
5296 | (ident_tokens): Add _Alignof and alignof. | |
5297 | ||
2b4424c3 TT |
5298 | 2018-04-30 Tom Tromey <tom@tromey.com> |
5299 | ||
5300 | * i386-tdep.c (i386_type_align): New function. | |
5301 | (i386_gdbarch_init): Update. | |
5302 | * gdbarch.sh (type_align): New method. | |
5303 | * gdbarch.c, gdbarch.h: Rebuild. | |
5304 | * arch-utils.h (default_type_align): Declare. | |
5305 | * arch-utils.c (default_type_align): New function. | |
5306 | * gdbtypes.h (TYPE_ALIGN_BITS): New define. | |
5307 | (struct type) <align_log2>: New field. | |
5308 | <instance_flags>: Now a bitfield. | |
5309 | (TYPE_RAW_ALIGN): New macro. | |
5310 | (type_align, type_raw_align, set_type_align): Declare. | |
5311 | * gdbtypes.c (type_align, type_raw_align, set_type_align): New | |
5312 | functions. | |
5313 | * dwarf2read.c (quirk_rust_enum): Set type alignment. | |
5314 | (get_alignment, maybe_set_alignment): New functions. | |
5315 | (read_structure_type, read_enumeration_type, read_array_type) | |
5316 | (read_set_type, read_tag_pointer_type, read_tag_reference_type) | |
5317 | (read_subrange_type, read_base_type): Set type alignment. | |
5318 | ||
d33bc52e SM |
5319 | 2018-04-30 Simon Marchi <simon.marchi@ericsson.com> |
5320 | ||
5321 | * dwarf2read.c (read_index_from_section): Use bool. | |
5322 | ||
e28b63a9 FG |
5323 | 2018-04-29 Fabian Groffen <grobian@gentoo.org> |
5324 | ||
5325 | PR gdb/22950 | |
5326 | * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys | |
5327 | with #ifdef. | |
5328 | ||
cd8c76e4 JR |
5329 | 2018-04-29 John Reiser <jreiser@BitWagon.com> |
5330 | ||
5331 | PR build/22873 | |
5332 | * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the | |
5333 | last step, and do it atomically. | |
5334 | ||
476d250e AO |
5335 | 2018-04-27 Alexandre Oliva <aoliva@redhat.com> |
5336 | ||
5337 | * compile/compile-c-types.c (convert_int, convert_float): | |
5338 | Update for C FE v1. | |
5339 | ||
6873858b TT |
5340 | 2018-04-27 Tom Tromey <tom@tromey.com> |
5341 | ||
5342 | PR rust/22545: | |
5343 | * rust-lang.c (rust_inclusive_range_type_p): New function. | |
5344 | (rust_range): Handle inclusive ranges. | |
5345 | (rust_compute_range): Likewise. | |
5346 | * rust-exp.y (struct rust_op) <inclusive>: New field. | |
5347 | (DOTDOTEQ): New constant. | |
5348 | (range_expr): Add "..=" productions. | |
5349 | (operator_tokens): Add "..=" token. | |
5350 | (ast_range): Add "inclusive" parameter. | |
5351 | (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive | |
5352 | ranges. | |
5353 | * parse.c (operator_length_standard) <case OP_RANGE>: Handle new | |
5354 | bounds values. | |
5355 | * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE, | |
5356 | LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants. | |
5357 | Update comments. | |
5358 | * expprint.c (print_subexp_standard): Handle new bounds values. | |
5359 | (dump_subexp_body_standard): Likewise. | |
5360 | ||
632e107b TT |
5361 | 2018-04-27 Tom Tromey <tom@tromey.com> |
5362 | ||
5363 | * configure: Rebuild. | |
5364 | * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override. | |
5365 | * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not | |
5366 | "OVERRIDE". | |
5367 | (class symbol_needs_eval_context): Likewise. | |
5368 | * dwarf2read.c (mock_mapped_index::symbol_name_count) | |
5369 | (mock_mapped_index::symbol_name_at): Use "override". Remove | |
5370 | "virtual". | |
5371 | * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use | |
5372 | "override". | |
5373 | (class dwarf_expr_executor): Use "override", not "OVERRIDE". | |
5374 | * aarch64-tdep.c (instruction_reader::read): Use "override". | |
5375 | (instruction_reader_test::read): Likewise. | |
5376 | * arm-tdep.c (instruction_reader::read): Use "override". | |
5377 | (instruction_reader_thumb::read): Likewise. | |
5378 | ||
b75abf5b AK |
5379 | 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl> |
5380 | ||
5381 | PR remote/9665 | |
5382 | * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result | |
5383 | instead of remote_send. | |
5384 | (remote_send): Remove. | |
5385 | ||
79188d8d PA |
5386 | 2018-04-26 Pedro Alves <palves@redhat.com> |
5387 | ||
5388 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use | |
5389 | find_function_start_sal instead of find_pc_line. | |
5390 | ||
f50776aa PA |
5391 | 2018-04-26 Pedro Alves <palves@redhat.com> |
5392 | ||
5393 | * breakpoint.c (set_breakpoint_location_function): Handle | |
5394 | mst_data_gnu_ifunc. | |
5395 | * c-exp.y (variable production): Handle mst_data_gnu_ifunc. | |
5396 | * elfread.c (elf_symtab_read): Give data symbols with | |
5397 | BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type. | |
5398 | (elf_rel_plt_read): Update comment. | |
5399 | * linespec.c (convert_linespec_to_sals): Handle | |
5400 | mst_data_gnu_ifunc. | |
5401 | (minsym_found): Handle mst_data_gnu_ifunc. | |
5402 | * minsyms.c (msymbol_is_function, minimal_symbol_reader::record) | |
5403 | (find_solib_trampoline_target): Handle mst_data_gnu_ifunc. | |
5404 | * parse.c (find_minsym_type_and_address): Handle | |
5405 | mst_data_gnu_ifunc. | |
5406 | * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc. | |
5407 | * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc. | |
5408 | * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update | |
5409 | comment. | |
5410 | <mst_data_gnu_ifunc>: New enumerator. | |
5411 | ||
20944a6e PA |
5412 | 2018-04-26 Pedro Alves <palves@redhat.com> |
5413 | ||
5414 | * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ... | |
5415 | (lookup_minimal_symbol_by_pc_section): ... this. Replace | |
5416 | 'want_trampoline' parameter by a lookup_msym_prefer parameter. | |
5417 | Handle it. | |
5418 | (lookup_minimal_symbol_by_pc_section): Delete old implementation. | |
5419 | (lookup_minimal_symbol_by_pc): Adjust. | |
5420 | (in_gnu_ifunc_stub): Prefer GNU ifunc symbols. | |
5421 | (lookup_solib_trampoline_symbol_by_pc): Adjust. | |
5422 | * minsyms.h (lookup_msym_prefer): New enum. | |
5423 | (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline' | |
5424 | parameter by a lookup_msym_prefer parameter. | |
5425 | ||
1adeb822 PA |
5426 | 2018-04-26 Pedro Alves <palves@redhat.com> |
5427 | ||
5428 | * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name | |
5429 | ends in "@plt" instead of looking at the symbol's section. | |
5430 | ||
a0aca7b0 PA |
5431 | 2018-04-26 Pedro Alves <palves@redhat.com> |
5432 | ||
5433 | * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove | |
5434 | all references. | |
5435 | (find_pc_partial_function_gnu_ifunc): Rename to ... | |
5436 | (find_pc_partial_function): ... this, and remove references to | |
5437 | 'is_gnu_ifunc_p'. | |
5438 | (find_pc_partial_function): Delete old implementation. | |
5439 | * symtab.h (find_pc_partial_function_gnu_ifunc): Delete. | |
5440 | ||
76af0f26 PA |
5441 | 2018-04-26 Pedro Alves <palves@redhat.com> |
5442 | ||
5443 | * linespec.c (struct bound_minimal_symbol_search_key): New. | |
5444 | (convert_linespec_to_sals): Sort minimal symbols earlier. Don't | |
5445 | skip first line if we found a GNU ifunc minimal symbol by name. | |
5446 | (compare_msymbols): Change parameters to work with a destructured | |
5447 | lhs minsym. | |
5448 | (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New | |
5449 | functions. | |
5450 | ||
3467ec66 PA |
5451 | 2018-04-26 Pedro Alves <palves@redhat.com> |
5452 | ||
5453 | * breakpoint.c (set_breakpoint_location_function): Don't resolve | |
5454 | ifunc targets here. Instead, if we have an ifunc minsym, use its | |
5455 | address/name. | |
5456 | (add_location_to_breakpoint): Store the minsym and the objfile in | |
5457 | the breakpoint location. | |
5458 | * breakpoint.h (bp_location) <msymbol, objfile>: New fields. | |
5459 | * linespec.c (minsym_found): Resolve GNU ifunc targets here. | |
5460 | Record the minsym in the sal. | |
5461 | * symtab.h (symtab_and_line) <msymbol>: New field. | |
5462 | ||
28f4fa4d PA |
5463 | 2018-04-26 Pedro Alves <palves@redhat.com> |
5464 | ||
5465 | * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P | |
5466 | unless we actually resolved the ifunc. | |
5467 | ||
ca31ab1d PA |
5468 | 2018-04-26 Pedro Alves <palves@redhat.com> |
5469 | ||
5470 | * c-exp.y (variable production): Prefer ifunc minsyms over | |
5471 | regular function symbols. | |
5472 | * symtab.c (find_gnu_ifunc): New function. | |
5473 | * minsyms.h (lookup_msym_prefer): New enum. | |
5474 | (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline' | |
5475 | parameter by a lookup_msym_prefer parameter. | |
5476 | * symtab.h (find_gnu_ifunc): New declaration. | |
5477 | ||
8388016d PA |
5478 | 2018-04-26 Pedro Alves <palves@redhat.com> |
5479 | ||
5480 | * blockframe.c (find_gnu_ifunc_target_type): New function. | |
5481 | (find_function_type): New. | |
5482 | * eval.c (evaluate_var_msym_value): For GNU ifunc types, always | |
5483 | return a value with a memory address. | |
5484 | (eval_call): For calls to GNU ifunc functions, try to find the | |
5485 | type of the target function from the type that the resolver | |
5486 | returns. | |
5487 | * gdbtypes.c (objfile_type): Don't install a return type for ifunc | |
5488 | symbols. | |
5489 | * infcall.c (find_function_return_type): Delete. | |
5490 | (find_function_addr): Add 'function_type' parameter. For calls to | |
5491 | GNU ifunc functions, try to find the type of the target function | |
5492 | from the type that the resolver returns, and return it via | |
5493 | FUNCTION_TYPE. | |
5494 | (call_function_by_hand_dummy): Adjust to use the function type | |
5495 | returned by find_function_addr. | |
5496 | (find_function_addr): Add 'function_type' parameter and move | |
5497 | description here. | |
5498 | * symtab.h (find_function_type, find_gnu_ifunc_target_type): New | |
5499 | declarations. | |
5500 | ||
a376e11d PA |
5501 | 2018-04-26 Pedro Alves <palves@redhat.com> |
5502 | ||
5503 | * c-exp.y (variable production): Skip finding an alias for ifunc | |
5504 | symbols. | |
5505 | ||
02e169e2 PA |
5506 | 2018-04-26 Pedro Alves <palves@redhat.com> |
5507 | ||
5508 | * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too. | |
5509 | ||
249b5733 PA |
5510 | 2018-04-25 Pedro Alves <palves@redhat.com> |
5511 | ||
5512 | * infcmd.c (kill_command): Print the pid as string, not the whole | |
5513 | thread's ptid. Add comment. s/has been killed/killed/ in output | |
5514 | message. | |
5515 | * remote.c (remote_detach_1): Print the pid as string, not the | |
5516 | whole thread's ptid. | |
5517 | ||
f67c0c91 SDJ |
5518 | 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
5519 | Sergio Durigan Junior <sergiodj@redhat.com> | |
5520 | Pedro Alves <palves@redhat.com> | |
5521 | ||
5522 | * infcmd.c (kill_command): Print message when inferior has | |
5523 | been killed. | |
5524 | * inferior.c (print_inferior_events): Remove 'static'. Set as | |
5525 | '1'. | |
5526 | (add_inferior): Improve message printed when | |
5527 | 'print_inferior_events' is on. | |
5528 | (exit_inferior): Remove message printed when | |
5529 | 'print_inferior_events' is on. | |
5530 | (detach_inferior): Improve message printed when | |
5531 | 'print_inferior_events' is on. | |
5532 | (initialize_inferiors): Use 'add_inferior_silent' to set | |
5533 | 'current_inferior_'. | |
5534 | * inferior.h (print_inferior_events): Declare here as | |
5535 | 'extern'. | |
5536 | * infrun.c (follow_fork_inferior): Print '[Attaching...]' or | |
5537 | '[Detaching...]' messages when 'print_inferior_events' is on. | |
5538 | Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']' | |
5539 | as prefix/suffix for messages. Remove periods. Fix erroneous | |
5540 | 'Detaching after fork from child...', replace it by '... from | |
5541 | parent...'. | |
5542 | (handle_vfork_child_exec_or_exit): Add '[' and ']' as | |
5543 | prefix/suffix when printing 'Detaching...' messages. Print | |
5544 | them when 'print_inferior_events' is on. | |
5545 | * remote.c (remote_detach_1): Print message when detaching | |
5546 | from inferior and '!is_fork_parent'. | |
5547 | ||
e427af18 TT |
5548 | 2018-04-24 Tom Tromey <tom@tromey.com> |
5549 | ||
5550 | * cli-out.h: Reindent. | |
5551 | ||
05b1d8d6 TT |
5552 | 2018-04-24 Tom Tromey <tom@tromey.com> |
5553 | ||
5554 | * cli-out.c (cli_ui_out::out_field_fmt): Remove. | |
5555 | (cli_ui_out::do_field_string): Use fputs_filtered. | |
5556 | * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove. | |
5557 | ||
a95c7dab TT |
5558 | 2018-04-23 Tom Tromey <tom@tromey.com> |
5559 | ||
5560 | * guile/scm-frame.c (gdbscm_frame_read_var): Use | |
5561 | gdb::unique_xmalloc_ptr. | |
5562 | ||
458412c3 TT |
5563 | 2018-04-23 Tom Tromey <tom@tromey.com> |
5564 | ||
5565 | * configure: Rebuild. | |
5566 | ||
db86b02b RS |
5567 | 2018-04-22 Rajendra SY <rajendra.sy@gmail.com> |
5568 | ||
5569 | PR gdb/23095 | |
5570 | * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to | |
5571 | prepare_for_testing. Set normal_bp to r_debug_state if target | |
5572 | is bsd. | |
5573 | ||
00aecdcf PA |
5574 | 2018-04-21 Pedro Alves <palves@redhat.com> |
5575 | Rajendra SY <rajendra.sy@gmail.com> | |
5576 | ||
5577 | * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing. | |
5578 | * remote.c (extended_remote_attach): In all-stop mode, mark the | |
5579 | thread as executing. | |
5580 | ||
224608c3 PW |
5581 | 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5582 | ||
5583 | * thread.c (thread_apply_all_command): Fix comment. | |
5584 | (thread_command): Fix comment. | |
5585 | ||
3b74854b AH |
5586 | 2018-04-10 Alan Hayward <alan.hayward@arm.com> |
5587 | ||
5588 | * common/tdesc.h (tdesc_create_feature): Remove xml filename | |
5589 | parameter. | |
5590 | * features/aarch64-core.c (create_feature_aarch64_core): | |
5591 | Regenerate. | |
5592 | * features/aarch64-fpu.c (create_feature_aarch64_fpu): | |
5593 | Likewise. | |
5594 | * features/i386/32bit-avx.c (create_feature_i386_32bit_avx): | |
5595 | Likewise. | |
5596 | * features/i386/32bit-avx512.c | |
5597 | (create_feature_i386_32bit_avx512): Likewise. | |
5598 | * features/i386/32bit-core.c (create_feature_i386_32bit_core): | |
5599 | Likewise. | |
5600 | * features/i386/32bit-linux.c (create_feature_i386_32bit_linux): | |
5601 | Likewise. | |
5602 | * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx): | |
5603 | Likewise. | |
5604 | * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys): | |
5605 | Likewise. | |
5606 | * features/i386/32bit-sse.c (create_feature_i386_32bit_sse): | |
5607 | Likewise. | |
5608 | * features/i386/64bit-avx.c (create_feature_i386_64bit_avx): | |
5609 | Likewise. | |
5610 | * features/i386/64bit-avx512.c | |
5611 | (create_feature_i386_64bit_avx512): Likewise. | |
5612 | * features/i386/64bit-core.c (create_feature_i386_64bit_core): | |
5613 | Likewise. | |
5614 | * features/i386/64bit-linux.c (create_feature_i386_64bit_linux): | |
5615 | Likewise. | |
5616 | * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx): | |
5617 | Likewise. | |
5618 | * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys): | |
5619 | Likewise. | |
5620 | * features/i386/64bit-segments.c | |
5621 | (create_feature_i386_64bit_segments): Likewise. | |
5622 | * features/i386/64bit-sse.c (create_feature_i386_64bit_sse): | |
5623 | Likewise. | |
5624 | * features/i386/x32-core.c | |
5625 | (create_feature_i386_x32_core): Likewise. | |
5626 | * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise. | |
5627 | * features/tic6x-core.c (create_feature_tic6x_core): Likewise. | |
5628 | * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise. | |
5629 | * target-descriptions.c: In generated code, don't pass xml | |
5630 | filename. | |
5631 | ||
e98577a9 AH |
5632 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
5633 | ||
5634 | * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing. | |
5635 | (print_xml_feature::visit_post): Likewise. | |
5636 | (print_xml_feature::visit): Likewise. | |
5637 | * common/tdesc.h (tdesc_get_features_xml): Use const tdesc. | |
5638 | (print_xml_feature): Add new class. | |
5639 | * regformats/regdat.sh: Null xmltarget on feature targets. | |
5640 | * target-descriptions.c (struct target_desc): Add xmltarget. | |
5641 | (maintenance_check_tdesc_xml_convert): Add unittest function. | |
5642 | (tdesc_get_features_xml): Add function to get xml. | |
5643 | (maintenance_check_xml_descriptions): Test xml generation. | |
5644 | * xml-tdesc.c (string_read_description_xml): Add function. | |
5645 | * xml-tdesc.h (string_read_description_xml): Add declaration. | |
5646 | ||
ad7fc756 AH |
5647 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
5648 | ||
5649 | * features/Makefile: Add feature marker to targets with new style | |
5650 | target descriptions. | |
5651 | * regformats/aarch64.dat: Regenerate. | |
5652 | * regformats/i386/amd64-avx-avx512-linux.dat: Likewise. | |
5653 | * regformats/i386/amd64-avx-linux.dat: Likewise. | |
5654 | * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise. | |
5655 | * regformats/i386/amd64-avx-mpx-linux.dat: Likewise. | |
5656 | * regformats/i386/amd64-linux.dat: Likewise. | |
5657 | * regformats/i386/amd64-mpx-linux.dat: Likewise. | |
5658 | * regformats/i386/amd64.dat: Likewise. | |
5659 | * regformats/i386/i386-avx-avx512-linux.dat: Likewise. | |
5660 | * regformats/i386/i386-avx-linux.dat: Likewise. | |
5661 | * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise. | |
5662 | * regformats/i386/i386-avx-mpx-linux.dat: Likewise. | |
5663 | * regformats/i386/i386-linux.dat: Likewise. | |
5664 | * regformats/i386/i386-mmx-linux.dat: Likewise. | |
5665 | * regformats/i386/i386-mpx-linux.dat: Likewise. | |
5666 | * regformats/i386/i386.dat: Likewise. | |
5667 | * regformats/i386/x32-avx-avx512-linux.dat: Likewise. | |
5668 | * regformats/i386/x32-avx-linux.dat: Likewise. | |
5669 | * regformats/i386/x32-linux.dat: Likewise. | |
5670 | * regformats/tic6x-c62x-linux.dat: Likewise. | |
5671 | * regformats/tic6x-c64x-linux.dat: Likewise. | |
5672 | * regformats/tic6x-c64xp-linux.dat: Likewise. | |
5673 | * regformats/regdat.sh: Parse feature marker. | |
5674 | ||
d278f585 AH |
5675 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
5676 | ||
5677 | * common/tdesc.h (tdesc_architecture_name): Add new declaration. | |
5678 | (tdesc_osabi_name): Likewise. | |
5679 | * target-descriptions.c (tdesc_architecture_name): Add new | |
5680 | function. | |
5681 | (tdesc_osabi_name): Likewise. | |
5682 | ||
eee8a18d AH |
5683 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
5684 | ||
5685 | * common/tdesc.c (tdesc_predefined_type): Move to here. | |
5686 | (tdesc_named_type): Likewise. | |
5687 | (tdesc_create_vector): Likewise. | |
5688 | (tdesc_create_struct): Likewise. | |
5689 | (tdesc_set_struct_size): Likewise. | |
5690 | (tdesc_create_union): Likewise. | |
5691 | (tdesc_create_flags): Likewise. | |
5692 | (tdesc_create_enum): Likewise. | |
5693 | (tdesc_add_field): Likewise. | |
5694 | (tdesc_add_typed_bitfield): Likewise. | |
5695 | (tdesc_add_bitfield): Likewise. | |
5696 | (tdesc_add_flag): Likewise. | |
5697 | (tdesc_add_enum_value): Likewise. | |
5698 | * common/tdesc.h (struct tdesc_type_builtin): Likewise. | |
5699 | (struct tdesc_type_vector): Likewise. | |
5700 | (struct tdesc_type_field): Likewise. | |
5701 | (struct tdesc_type_with_fields): Likewise. | |
5702 | (tdesc_create_enum): Add declaration. | |
5703 | (tdesc_add_typed_bitfield): Likewise. | |
5704 | (tdesc_add_enum_value): Likewise. | |
5705 | * target-descriptions.c (tdesc_type_field): Move from here. | |
5706 | (tdesc_type_builtin): Likewise. | |
5707 | (tdesc_type_vector): Likewise. | |
5708 | (tdesc_type_with_fields): Likewise. | |
5709 | (tdesc_predefined_types): Likewise. | |
5710 | (tdesc_named_type): Likewise. | |
5711 | (tdesc_create_vector): Likewise. | |
5712 | (tdesc_create_struct): Likewise. | |
5713 | (tdesc_set_struct_size): Likewise. | |
5714 | (tdesc_create_union): Likewise. | |
5715 | (tdesc_create_flags): Likewise. | |
5716 | (tdesc_create_enum): Likewise. | |
5717 | (tdesc_add_field): Likewise. | |
5718 | (tdesc_add_typed_bitfield): Likewise. | |
5719 | (tdesc_add_bitfield): Likewise. | |
5720 | (tdesc_add_flag): Likewise. | |
5721 | (tdesc_add_enum_value): Likewise. | |
5722 | * gdb/target-descriptions.h (tdesc_create_enum): Likewise. | |
5723 | (tdesc_add_typed_bitfield): Likewise. | |
5724 | (tdesc_add_enum_value): Likewise. | |
5725 | ||
82ec9bc7 AH |
5726 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
5727 | ||
5728 | * common/tdesc.c (tdesc_feature::accept): Move to here. | |
5729 | (tdesc_feature::operator==): Likewise. | |
5730 | (tdesc_create_reg): Likewise. | |
5731 | * common/tdesc.h (tdesc_type_kind): Likewise. | |
5732 | (struct tdesc_type): Likewise. | |
5733 | (struct tdesc_feature): Likewise. | |
5734 | * regformats/regdat.sh: Create a feature. | |
5735 | * target-descriptions.c (tdesc_type_kind): Move from here. | |
5736 | (tdesc_type): Likewise. | |
5737 | (tdesc_type_up): Likewise. | |
5738 | (tdesc_feature): Likewise. | |
5739 | (tdesc_create_reg): Likewise. | |
5740 | ||
ea3e7d71 AH |
5741 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
5742 | ||
5743 | * Makefile.in: Add arch/tdesc.c | |
5744 | * common/tdesc.c: New file. | |
5745 | * common/tdesc.h (tdesc_element_visitor): Move to here. | |
5746 | (tdesc_element): Likewise. | |
5747 | (tdesc_reg): Likewise. | |
5748 | (tdesc_reg_up): Likewise. | |
5749 | * regformats/regdef.h (reg): Add offset to constructors. | |
5750 | * target-descriptions.c (tdesc_element_visitor): Move from here. | |
5751 | (tdesc_element): Likewise. | |
5752 | (tdesc_reg): Likewise. | |
5753 | (tdesc_reg_up): Likewise. | |
5754 | ||
bedda9ac TT |
5755 | 2018-04-17 Tom Tromey <tom@tromey.com> |
5756 | ||
5757 | * dwarf2read.c (quirk_rust_enum): Conditionally drop the | |
5758 | discriminant field. | |
5759 | ||
a037790e TT |
5760 | 2018-04-17 Tom Tromey <tom@tromey.com> |
5761 | ||
5762 | * dwarf2read.c (quirk_rust_enum): Handle unions correctly. | |
5763 | ||
c7dcbf88 AA |
5764 | 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5765 | ||
5766 | * symtab.c (print_symbol_info): Skip printing filename and line | |
5767 | number when `last' is NULL. | |
5768 | (symtab_symbol_info): Use empty string instead of NULL for first | |
5769 | invocation of print_symbol_info. | |
5770 | (rbreak_command): Pass NULL to `last' parameter of | |
5771 | print_symbol_info. | |
5772 | ||
07d28c77 SM |
5773 | 2018-04-16 Simon Marchi <simon.marchi@ericsson.com> |
5774 | ||
5775 | * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data | |
5776 | instead of nullptr. | |
5777 | ||
8a3de5e1 PA |
5778 | 2018-04-16 Pedro Alves <palves@redhat.com> |
5779 | ||
5780 | * MAINTAINERS (sh): Remove. | |
5781 | * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o. | |
5782 | (HFILES_NO_SRCDIR): Remove sh64-tdep.h. | |
5783 | (ALLDEPFILES): Remove sh64-tdep.c. | |
5784 | * NEWS: Mentions that support for SH-5/SH64 is removed. | |
5785 | * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o. | |
5786 | (sh*-*-openbsd*): Ditto. | |
5787 | (sh64-*-elf*): Remove. | |
5788 | (sh*): Remove. | |
5789 | * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case. | |
5790 | * sh-linux-tdep.c: Remove reference to bfd_mach_sh5. | |
5791 | * sh-tdep.c: No longer include "sh64-tdep.h". | |
5792 | (sh_gdbarch_init): Remove reference to bfd_mach_sh5. | |
5793 | * sh64-tdep.c, sh64-tdep.h: Remove files. | |
5794 | ||
a2a79012 PA |
5795 | 2018-04-16 Pedro Alves <palves@redhat.com> |
5796 | ||
5797 | * MAINTAINERS: Remove m88k. | |
5798 | * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o. | |
5799 | (HFILES_NO_SRCDIR): Remove m88k-tdep.h. | |
5800 | (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c. | |
5801 | * NEWS: Mention that support for m88k was removed. | |
5802 | * configure.host (m88*-*-*): Remove support. | |
5803 | * configure.nat (m88k-*-*): Remove support. | |
5804 | * configure.tgt (m88*-*-openbsd*): Remove. | |
5805 | * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete. | |
5806 | ||
eda4efb1 SM |
5807 | 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca> |
5808 | ||
5809 | * configure.tgt (x86_tobjs): New variable. | |
5810 | (amd64_tobjs, i386_tobjs): Use it. | |
5811 | ||
b744723f AA |
5812 | 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5813 | ||
5814 | * symtab.c (print_symbol_info): Precede the symbol definition by | |
5815 | the line number when available. | |
5816 | * NEWS: Advertise this enhancement. | |
5817 | ||
4a4495d6 MM |
5818 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
5819 | ||
5820 | * NEWS (New options): announce set/show record btrace cpu. | |
5821 | * btrace.c: Include record-btrace.h. | |
5822 | (btrace_compute_ftrace_pt): Skip enabling errata workarounds if | |
5823 | the vendor is unknown. | |
5824 | (btrace_compute_ftrace_1): Add cpu parameter. Update callers. | |
5825 | Maybe overwrite the btrace configuration's cpu. | |
5826 | (btrace_compute_ftrace): Add cpu parameter. Update callers. | |
5827 | (btrace_fetch): Add cpu parameter. Update callers. | |
5828 | (btrace_maint_update_pt_packets): Call record_btrace_get_cpu. | |
5829 | Maybe overwrite the btrace configuration's cpu. Skip enabling | |
5830 | errata workarounds if the vendor is unknown. | |
5831 | * python/py-record-btrace.c: Include record-btrace.h. | |
5832 | (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history) | |
5833 | (recpy_bt_function_call_history): Call record_btrace_get_cpu. | |
5834 | * record-btrace.c (record_btrace_cpu_state_kind): New. | |
5835 | (record_btrace_cpu): New. | |
5836 | (set_record_btrace_cpu_cmdlist): New. | |
5837 | (record_btrace_get_cpu): New. | |
5838 | (require_btrace_thread, record_btrace_info) | |
5839 | (record_btrace_resume_thread): Call record_btrace_get_cpu. | |
5840 | (cmd_set_record_btrace_cpu_none): New. | |
5841 | (cmd_set_record_btrace_cpu_auto): New. | |
5842 | (cmd_set_record_btrace_cpu): New. | |
5843 | (cmd_show_record_btrace_cpu): New. | |
5844 | (_initialize_record_btrace): Initialize set/show record btrace cpu | |
5845 | commands. | |
5846 | * record-btrace.h (record_btrace_get_cpu): New. | |
5847 | ||
69f90c75 MM |
5848 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
5849 | ||
5850 | * record.c (set_record_command): Fix typo in message. | |
5851 | ||
b85310e1 MM |
5852 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
5853 | ||
5854 | * record-btrace.c (cmd_set_record_btrace): Print sub-commands. | |
5855 | ||
1d509aa6 MM |
5856 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
5857 | ||
5858 | * infrun.c (process_event_stop_test): Call | |
5859 | gdbarch_in_indirect_branch_thunk. | |
5860 | * gdbarch.sh (in_indirect_branch_thunk): New. | |
5861 | * gdbarch.c: Regenerated. | |
5862 | * gdbarch.h: Regenerated. | |
5863 | * x86-tdep.h: New. | |
5864 | * x86-tdep.c: New. | |
5865 | * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o. | |
5866 | (HFILES_NO_SRCDIR): Add x86-tdep.h. | |
5867 | (ALLDEPFILES): Add x86-tdep.c. | |
5868 | * arch-utils.h (default_in_indirect_branch_thunk): New. | |
5869 | * arch-utils.c (default_in_indirect_branch_thunk): New. | |
5870 | * i386-tdep: Include x86-tdep.h. | |
5871 | (i386_in_indirect_branch_thunk): New. | |
5872 | (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch | |
5873 | function. | |
5874 | * amd64-tdep: Include x86-tdep.h. | |
5875 | (amd64_in_indirect_branch_thunk): New. | |
5876 | (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function. | |
5877 | ||
b4be9bfd JK |
5878 | 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
5879 | ||
5880 | PR gdb/23053 | |
5881 | * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type) | |
5882 | (recursively_write_psymbols) (debug_names::recursively_write_psymbols) | |
5883 | (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG | |
5884 | regression. | |
5885 | ||
53d7df28 TT |
5886 | 2018-04-12 Tom Tromey <tom@tromey.com> |
5887 | ||
5888 | * rust-lang.c (rust_print_struct_def): Remove univariant code. | |
5889 | (rust_evaluate_subexp): Likewise. | |
5890 | ||
70b33f19 PA |
5891 | 2018-04-12 Pedro Alves <palves@redhat.com> |
5892 | ||
5893 | * procfs.c (procfs_detach): Make forward declaration's prototype | |
5894 | match definition's protototype. | |
5895 | (proc_get_LDT_entry): Remove stale do_cleanups call. | |
5896 | ||
436411b1 PA |
5897 | 2018-04-12 Pedro Alves <palves@redhat.com> |
5898 | ||
5899 | * target.h (target_ops::to_has_exited): Delete. | |
5900 | (target_has_exited): Delete. | |
5901 | * target-delegates.c: Regenerate. | |
5902 | ||
20db9c52 PA |
5903 | 2018-04-11 Pedro Alves <palves@redhat.com> |
5904 | ||
5905 | * target.c (fileio_fh_t::t): Add comment. | |
5906 | (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat) | |
5907 | (target_fileio_close): Handle a NULL target. | |
5908 | (invalidate_fileio_fh): New. | |
5909 | (target_close): Call it. | |
5910 | * remote.c (remote_hostio_send_command): No longer check whether | |
5911 | remote_desc is open. | |
5912 | ||
5ff79300 PA |
5913 | 2018-04-11 Pedro Alves <palves@redhat.com> |
5914 | ||
5915 | * target.c (fileio_fh_t): Make it a named struct instead of a | |
5916 | typedef. | |
5917 | (fileio_fh_t::is_closed): New method. | |
5918 | (DEF_VEC_O (fileio_fh_t)): Remove. | |
5919 | (fileio_fhandles): Now a std::vector. | |
5920 | (is_closed_fileio_fh): Delete. | |
5921 | (acquire_fileio_fd): Adjust. Rename parameters. | |
5922 | (release_fileio_fd): Adjust. | |
5923 | (fileio_fd_to_fh): Reimplement as a function instead of a macro. | |
5924 | (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat) | |
5925 | (target_fileio_close): Adjust. | |
5926 | ||
6e22e10d SM |
5927 | 2018-04-10 Simon Marchi <simon.marchi@ericsson.com> |
5928 | ||
5929 | * auto-load.c (auto_load_safe_path_vec_update): Iterate by | |
5930 | index. | |
5931 | ||
731f534f PA |
5932 | 2018-04-10 Pedro Alves <palves@redhat.com> |
5933 | ||
5934 | * gdbthread.h (finish_thread_state_cleanup): Delete declaration. | |
5935 | (scoped_finish_thread_state): New class. | |
5936 | * infcmd.c (run_command_1): Use it instead of finish_thread_state | |
5937 | cleanup. | |
5938 | * infrun.c (proceed, prepare_for_detach, wait_for_inferior) | |
5939 | (fetch_inferior_event, normal_stop): Likewise. | |
5940 | * thread.c (finish_thread_state_cleanup): Delete. | |
5941 | ||
d5f4488f SM |
5942 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
5943 | Pedro Alves <palves@redhat.com> | |
5944 | ||
5945 | * value.c: Include "selftest.h" and "common/array-view.h". | |
5946 | (struct range) <operator ==>: New. | |
5947 | (test_ranges_contain): New. | |
5948 | (check_ranges_vector): New. | |
5949 | (test_insert_into_bit_range_vector): New. | |
5950 | (_initialize_values): Register selftests. | |
5951 | * common/array-view.h (operator==, operator!=): New. | |
5952 | ||
b24531ed SM |
5953 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
5954 | ||
5955 | * common/gdb_vecs.h (unordered_remove): Add overload that takes | |
5956 | an iterator. | |
5957 | * inline-frame.c: Include <algorithm>. | |
5958 | (struct inline_state): Add constructor. | |
5959 | (inline_state_s): Remove. | |
5960 | (DEF_VEC_O(inline_state_s)): Remove. | |
5961 | (inline_states): Change type to std::vector. | |
5962 | (find_inline_frame_state): Adjust to std::vector. | |
5963 | (allocate_inline_frame_state): Remove. | |
5964 | (clear_inline_frame_state): Adjust to std::vector. | |
5965 | (skip_inline_frames): Adjust to std::vector. | |
5966 | ||
c252925c SM |
5967 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
5968 | ||
5969 | * tracepoint.h (struct trace_state_variable): Add constructor. | |
5970 | <name>: Change type to std::string. | |
5971 | * tracepoint.c (tsv_s): Remove. | |
5972 | (DEF_VEC_O(tsv_s)): Remove. | |
5973 | (tvariables): Change to std::vector. | |
5974 | (create_trace_state_variable): Adjust to std::vector. | |
5975 | (find_trace_state_variable): Likewise. | |
5976 | (find_trace_state_variable_by_number): Likewise. | |
5977 | (delete_trace_state_variable): Likewise. | |
5978 | (trace_variable_command): Adjust to std::string. | |
5979 | (delete_trace_variable_command): Likewise. | |
5980 | (tvariables_info_1): Adjust to std::vector. | |
5981 | (save_trace_state_variables): Likewise. | |
5982 | (start_tracing): Likewise. | |
5983 | (merge_uploaded_trace_state_variables): Adjust to std::vector | |
5984 | and std::string. | |
5985 | * target.h (struct target_ops) | |
5986 | <to_download_trace_state_variable>: Pass reference to | |
5987 | trace_state_variable. | |
5988 | * target-debug.h (target_debug_print_const_trace_state_variable_r): New. | |
5989 | * target-delegates.c: Re-generate. | |
5990 | * mi/mi-interp.c (mi_tsv_created): Adjust to std::string. | |
5991 | (mi_tsv_deleted): Likewise. | |
5992 | * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise. | |
5993 | * remote.c (remote_download_trace_state_variable): Change | |
5994 | pointer to reference and adjust. | |
5995 | * make-target-delegates (parse_argtypes): Handle references. | |
5996 | (write_function_header): Likewise. | |
5997 | (munge_type): Likewise. | |
5998 | ||
c9638d26 SM |
5999 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
6000 | ||
6001 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
6002 | string_view-selftests.c. | |
6003 | * unittests/basic_string_view/capacity/1.cc: Adapt to GDB | |
6004 | testsuite. | |
6005 | * unittests/basic_string_view/cons/char/1.cc: Likewise. | |
6006 | * unittests/basic_string_view/cons/char/2.cc: Likewise. | |
6007 | * unittests/basic_string_view/cons/char/3.cc: Likewise. | |
6008 | * unittests/basic_string_view/element_access/char/1.cc: | |
6009 | Likewise. | |
6010 | * unittests/basic_string_view/element_access/char/empty.cc: | |
6011 | Likewise. | |
6012 | * unittests/basic_string_view/element_access/char/front_back.cc: | |
6013 | Likewise. | |
6014 | * unittests/basic_string_view/inserters/char/2.cc: Likewise. | |
6015 | * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: | |
6016 | Likewise. | |
6017 | * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: | |
6018 | Likewise. | |
6019 | * unittests/basic_string_view/modifiers/swap/char/1.cc: | |
6020 | Likewise. | |
6021 | * unittests/basic_string_view/operations/compare/char/1.cc: | |
6022 | Likewise. | |
6023 | * unittests/basic_string_view/operations/compare/char/13650.cc: | |
6024 | Likewise. | |
6025 | * unittests/basic_string_view/operations/copy/char/1.cc: | |
6026 | Likewise. | |
6027 | * unittests/basic_string_view/operations/data/char/1.cc: | |
6028 | Likewise. | |
6029 | * unittests/basic_string_view/operations/find/char/1.cc: | |
6030 | Likewise. | |
6031 | * unittests/basic_string_view/operations/find/char/2.cc: | |
6032 | Likewise. | |
6033 | * unittests/basic_string_view/operations/find/char/3.cc: | |
6034 | Likewise. | |
6035 | * unittests/basic_string_view/operations/find/char/4.cc: | |
6036 | Likewise. | |
6037 | * unittests/basic_string_view/operations/rfind/char/1.cc: | |
6038 | Likewise. | |
6039 | * unittests/basic_string_view/operations/rfind/char/2.cc: | |
6040 | Likewise. | |
6041 | * unittests/basic_string_view/operations/rfind/char/3.cc: | |
6042 | Likewise. | |
6043 | * unittests/basic_string_view/operations/substr/char/1.cc: | |
6044 | Likewise. | |
6045 | * unittests/basic_string_view/operators/char/2.cc: Likewise. | |
6046 | * unittests/string_view-selftests.c: New file. | |
6047 | ||
fdc11678 SM |
6048 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
6049 | ||
6050 | * unittests/basic_string_view/capacity/1.cc: New file. | |
6051 | * unittests/basic_string_view/capacity/empty_neg.cc: New file. | |
6052 | * unittests/basic_string_view/cons/char/1.cc: New file. | |
6053 | * unittests/basic_string_view/cons/char/2.cc: New file. | |
6054 | * unittests/basic_string_view/cons/char/3.cc: New file. | |
6055 | * unittests/basic_string_view/cons/wchar_t/1.cc: New file. | |
6056 | * unittests/basic_string_view/cons/wchar_t/2.cc: New file. | |
6057 | * unittests/basic_string_view/cons/wchar_t/3.cc: New file. | |
6058 | * unittests/basic_string_view/element_access/char/1.cc: New file. | |
6059 | * unittests/basic_string_view/element_access/char/2.cc: New file. | |
6060 | * unittests/basic_string_view/element_access/char/empty.cc: New file. | |
6061 | * unittests/basic_string_view/element_access/char/front_back.cc: New file. | |
6062 | * unittests/basic_string_view/element_access/wchar_t/1.cc: New file. | |
6063 | * unittests/basic_string_view/element_access/wchar_t/2.cc: New file. | |
6064 | * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file. | |
6065 | * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file. | |
6066 | * unittests/basic_string_view/include.cc: New file. | |
6067 | * unittests/basic_string_view/inserters/char/1.cc: New file. | |
6068 | * unittests/basic_string_view/inserters/char/2.cc: New file. | |
6069 | * unittests/basic_string_view/inserters/char/3.cc: New file. | |
6070 | * unittests/basic_string_view/inserters/pod/10081-out.cc: New file. | |
6071 | * unittests/basic_string_view/inserters/wchar_t/1.cc: New file. | |
6072 | * unittests/basic_string_view/inserters/wchar_t/2.cc: New file. | |
6073 | * unittests/basic_string_view/inserters/wchar_t/3.cc: New file. | |
6074 | * unittests/basic_string_view/literals/types.cc: New file. | |
6075 | * unittests/basic_string_view/literals/values.cc: New file. | |
6076 | * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file. | |
6077 | * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file. | |
6078 | * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file. | |
6079 | * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file. | |
6080 | * unittests/basic_string_view/modifiers/swap/char/1.cc: New file. | |
6081 | * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file. | |
6082 | * unittests/basic_string_view/operations/compare/char/1.cc: New file. | |
6083 | * unittests/basic_string_view/operations/compare/char/13650.cc: New file. | |
6084 | * unittests/basic_string_view/operations/compare/char/2.cc: New file. | |
6085 | * unittests/basic_string_view/operations/compare/char/70483.cc: New file. | |
6086 | * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file. | |
6087 | * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file. | |
6088 | * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file. | |
6089 | * unittests/basic_string_view/operations/copy/char/1.cc: New file. | |
6090 | * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file. | |
6091 | * unittests/basic_string_view/operations/data/char/1.cc: New file. | |
6092 | * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file. | |
6093 | * unittests/basic_string_view/operations/find/char/1.cc: New file. | |
6094 | * unittests/basic_string_view/operations/find/char/2.cc: New file. | |
6095 | * unittests/basic_string_view/operations/find/char/3.cc: New file. | |
6096 | * unittests/basic_string_view/operations/find/char/4.cc: New file. | |
6097 | * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file. | |
6098 | * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file. | |
6099 | * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file. | |
6100 | * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file. | |
6101 | * unittests/basic_string_view/operations/rfind/char/1.cc: New file. | |
6102 | * unittests/basic_string_view/operations/rfind/char/2.cc: New file. | |
6103 | * unittests/basic_string_view/operations/rfind/char/3.cc: New file. | |
6104 | * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file. | |
6105 | * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file. | |
6106 | * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file. | |
6107 | * unittests/basic_string_view/operations/string_conversion/1.cc: New file. | |
6108 | * unittests/basic_string_view/operations/substr/char/1.cc: New file. | |
6109 | * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file. | |
6110 | * unittests/basic_string_view/operators/char/2.cc: New file. | |
6111 | * unittests/basic_string_view/operators/wchar_t/2.cc: New file. | |
6112 | * unittests/basic_string_view/range_access/char/1.cc: New file. | |
6113 | * unittests/basic_string_view/range_access/wchar_t/1.cc: New file. | |
6114 | * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file. | |
6115 | * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file. | |
6116 | * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file. | |
6117 | * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file. | |
6118 | * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file. | |
6119 | * unittests/basic_string_view/requirements/typedefs.cc: New file. | |
6120 | * unittests/basic_string_view/typedefs.cc: New file. | |
6121 | * unittests/basic_string_view/types/1.cc: New file. | |
6122 | ||
8345c4a2 SM |
6123 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
6124 | ||
6125 | * common/gdb_string_view.h: Remove libstdc++ implementation | |
6126 | details, adjust to gdb reality. | |
6127 | * common/gdb_string_view.tcc: Likewise. | |
6128 | * cli/cli-script.c (struct string_view): Remove. | |
6129 | (user_args) <m_args>: Change element type to gdb::string_view. | |
6130 | (user_args::insert_args): Adjust. | |
6131 | ||
7adcdf08 SM |
6132 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
6133 | ||
6134 | * common/gdb_string_view.h: New file. | |
6135 | * common/gdb_string_view.tcc: New file. | |
6136 | ||
41260ac2 SM |
6137 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
6138 | ||
6139 | * ax_cxx_compile_stdcxx.m4: Sync with upstream. | |
6140 | * configure: Re-generate. | |
6141 | ||
0bee6dd4 PA |
6142 | 2018-04-09 Pedro Alves <palves@redhat.com> |
6143 | ||
6144 | * gdbarch.sh: Include "observable.h" instead of "observer.h". | |
6145 | (set_target_gdbarch): Call | |
6146 | gdb::observers::architecture_changed.notify instead of | |
6147 | observer_notify_architecture_changed. | |
6148 | ||
6f14adc5 SM |
6149 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
6150 | ||
6151 | * tracepoint.c (struct current_traceframe_cleanup): Remove. | |
6152 | (do_restore_current_traceframe_cleanup): Remove. | |
6153 | (restore_current_traceframe_cleanup_dtor): Remove. | |
6154 | (make_cleanup_restore_current_traceframe): Remove. | |
6155 | (scoped_restore_current_traceframe::scoped_restore_current_traceframe): | |
6156 | New. | |
6157 | * tracepoint.h (struct scoped_restore_current_traceframe): New. | |
6158 | * infrun.c (fetch_inferior_event): Use | |
6159 | scoped_restore_current_traceframe. | |
6160 | ||
b2bdb8cf SM |
6161 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
6162 | ||
6163 | * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>: | |
6164 | Remove. | |
6165 | <n_allocated_type_units>: Remove. | |
6166 | <all_type_units>: Change to std::vector. | |
6167 | * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust | |
6168 | to std::vector change. | |
6169 | (dwarf2_per_objfile::get_cutu): Likewise. | |
6170 | (dwarf2_per_objfile::get_tu): Likewise. | |
6171 | (create_signatured_type_table_from_index): Likewise. | |
6172 | (create_signatured_type_table_from_debug_names): Likewise. | |
6173 | (dw2_symtab_iter_next): Likewise. | |
6174 | (dw2_print_stats): Likewise. | |
6175 | (dw2_expand_all_symtabs): Likewise. | |
6176 | (dw2_expand_marked_cus): Likewise. | |
6177 | (dw2_debug_names_iterator::next): Likewise. | |
6178 | (dwarf2_initialize_objfile): Likewise. | |
6179 | (add_signatured_type_cu_to_table): Likewise. | |
6180 | (create_all_type_units): Likewise. | |
6181 | (add_type_unit): Likewise. | |
6182 | (struct tu_abbrev_offset): Add constructor. | |
6183 | (build_type_psymtabs_1): Adjust to std::vector change. | |
6184 | (print_tu_stats): Likewise. | |
6185 | * dwarf-index-write.c (check_dwarf64_offsets): Likewise. | |
6186 | (write_debug_names): Likewise. | |
6187 | ||
b76e467d SM |
6188 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
6189 | ||
6190 | * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise. | |
6191 | Make an std::vector. | |
6192 | <n_comp_units>: Remove. | |
6193 | * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust | |
6194 | to std::vector change. | |
6195 | (dwarf2_per_objfile::get_cutu): Likewise. | |
6196 | (dwarf2_per_objfile::get_cu): Likewise. | |
6197 | (create_cus_from_index): Likewise. | |
6198 | (create_addrmap_from_index): Likewise. | |
6199 | (create_addrmap_from_aranges): Likewise. | |
6200 | (dwarf2_read_index): Likewise. | |
6201 | (dw2_find_last_source_symtab): Likewise. | |
6202 | (dw2_map_symtabs_matching_filename): Likewise. | |
6203 | (dw2_symtab_iter_next): Likewise. | |
6204 | (dw2_print_stats): Likewise. | |
6205 | (dw2_expand_all_symtabs): Likewise. | |
6206 | (dw2_expand_symtabs_with_fullname): Likewise. | |
6207 | (dw2_expand_marked_cus): Likewise. | |
6208 | (dw2_map_symbol_filenames): Likewise. | |
6209 | (create_cus_from_debug_names): Likewise. | |
6210 | (dwarf2_read_debug_names): Likewise. | |
6211 | (dw2_debug_names_iterator::next): Likewise. | |
6212 | (dwarf2_initialize_objfile): Likewise. | |
6213 | (set_partial_user): Likewise. | |
6214 | (dwarf2_build_psymtabs_hard): Likewise. | |
6215 | (read_comp_units_from_section): Remove arguments, adjust to | |
6216 | std::vector change. | |
6217 | (create_all_comp_units): Adjust to std::vector and | |
6218 | read_comp_units_from_section changes. | |
6219 | (dwarf2_find_containing_comp_unit): Adjust to std::vector | |
6220 | change. | |
6221 | * dwarf-index-write.c (check_dwarf64_offsets): Likewise. | |
6222 | (psyms_seen_size): Likewise. | |
6223 | (write_gdbindex): Likewise. | |
6224 | (write_debug_names): Likewise. | |
6225 | ||
12359b5e SM |
6226 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
6227 | ||
6228 | * dwarf2read.c (create_cus_from_index_list): Replace objfile arg | |
6229 | with dwarf2_per_objfile. | |
6230 | (create_cus_from_index): Likewise. | |
6231 | (create_signatured_type_table_from_index): Likewise. | |
6232 | (dwarf2_read_index): Likewise. | |
6233 | (dwarf2_initialize_objfile): Likewise. | |
6234 | (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from | |
6235 | per_cu rather than get_dwarf2_per_objfile. | |
6236 | ||
ff4c9fec SM |
6237 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
6238 | ||
6239 | * dwarf2read.h (struct signatured_type): Forward declare. | |
6240 | (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>: | |
6241 | New methods. | |
6242 | * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from... | |
6243 | (dw2_get_cutu): ...this. | |
6244 | (dwarf2_per_objfile::get_cu): Rename from... | |
6245 | (dw2_get_cu): ...this. | |
6246 | (dwarf2_per_objfile::get_tu): New. | |
6247 | (create_addrmap_from_index): Adjust. | |
6248 | (create_addrmap_from_aranges): Adjust. | |
6249 | (dw2_find_last_source_symtab): Adjust. | |
6250 | (dw2_map_symtabs_matching_filename): Adjust. | |
6251 | (dw2_symtab_iter_next): Adjust. | |
6252 | (dw2_print_stats): Adjust. | |
6253 | (dw2_expand_all_symtabs): Adjust. | |
6254 | (dw2_expand_symtabs_with_fullname): Adjust. | |
6255 | (dw2_expand_marked_cus): Adjust. | |
6256 | (dw_expand_symtabs_matching_file_matcher): Adjust. | |
6257 | (dw2_map_symbol_filenames): Adjust. | |
6258 | (dw2_debug_names_iterator::next): Adjust. | |
6259 | (dwarf2_initialize_objfile): Adjust. | |
6260 | (set_partial_user): Adjust. | |
6261 | (dwarf2_build_psymtabs_hard): Adjust. | |
6262 | ||
5ca3fcb6 SM |
6263 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
6264 | ||
6265 | * dwarf2read.c (create_signatured_type_table_from_debug_names): | |
6266 | Remove unused variables. | |
6267 | (dw2_map_symtabs_matching_filename): Likewise. | |
6268 | (dwarf2_record_block_ranges): Likewise. | |
6269 | (dwarf2_read_addr_index): Likewise. | |
6270 | (follow_die_offset): Likewise. | |
6271 | ||
b2e586e8 SM |
6272 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
6273 | ||
6274 | * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET | |
6275 | to symbol_file_add_main. | |
6276 | ||
7c4e78cf SM |
6277 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
6278 | ||
6279 | PR mi/22299 | |
6280 | * mi/mi-console.c (do_fputc_async_safe): New. | |
6281 | (mi_console_file::write_async_safe): New. | |
6282 | (mi_console_file::flush): Adjust calls to fputstrn_unfiltered. | |
6283 | * mi/mi-console.h (class mi_console_file) <write_async_safe>: | |
6284 | New. | |
6285 | * ui-file.c (ui_file::putstrn): Adjust call to | |
6286 | fputstrn_unfiltered. | |
6287 | * utils.c (printchar): Replace do_fputs and do_fprintf | |
6288 | parameters by do_fputc. | |
6289 | (fputstr_filtered): Adjust call to printchar. | |
6290 | (fputstr_unfiltered): Likewise. | |
6291 | (fputstrn_filtered): Likewise. | |
6292 | (fputstrn_unfiltered): Add do_fputc parameter, pass to | |
6293 | printchar. | |
6294 | * utils.h (do_fputc_ftype): New typedef. | |
6295 | (fputstrn_unfiltered): Add do_fputc parameter. | |
6296 | ||
5dc026d3 SM |
6297 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
6298 | ||
6299 | * regformats/i386/i386-avx.dat: Remove. | |
6300 | ||
c912f608 SM |
6301 | 2018-04-07 Simon Marchi <simon.marchi@ericsson.com> |
6302 | ||
6303 | PR gdb/22979 | |
6304 | * amd64-tdep.c (amd64_none_init_abi): New function. | |
6305 | (amd64_x32_none_init_abi): New function. | |
6306 | (_initialize_amd64_tdep): Register handlers for x86-64 and | |
6307 | x64_32 with GDB_OSABI_NONE. | |
6308 | * osabi.c (gdbarch_init_osabi): Allow running handlers for the | |
6309 | GDB_OSABI_NONE osabi. | |
6310 | ||
26540402 SM |
6311 | 2018-04-07 Simon Marchi <simon.marchi@ericsson.com> |
6312 | ||
6313 | PR gdb/22980 | |
6314 | * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add | |
6315 | GDB_OSABI_NONE. | |
6316 | * arch-utils.c (gdbarch_info_init): Don't set info->osabi. | |
6317 | * osabi.c (gdb_osabi_names): Add "unknown" entry. | |
6318 | ||
9018be22 SM |
6319 | 2018-04-07 Simon Marchi <simon.marchi@ericsson.com> |
6320 | ||
6321 | * common/byte-vector.h (char_vector): New type. | |
6322 | * target.h (target_read_alloc): Return | |
6323 | gdb::optional<byte_vector>. | |
6324 | (target_read_stralloc): Return gdb::optional<char_vector>. | |
6325 | (target_get_osdata): Return gdb::optional<char_vector>. | |
6326 | * target.c (target_read_alloc_1): Templatize. Replacement | |
6327 | manual memory management with vector. | |
6328 | (target_read_alloc): Change return type, adjust. | |
6329 | (target_read_stralloc): Change return type, adjust. | |
6330 | (target_get_osdata): Change return type, adjust. | |
6331 | * auxv.c (struct auxv_info) <length>: Remove. | |
6332 | <data>: Change type to gdb::optional<byte_vector>. | |
6333 | (auxv_inferior_data_cleanup): Free auxv_info with delete. | |
6334 | (get_auxv_inferior_data): Allocate auxv_info with new, adjust. | |
6335 | (target_auxv_search): Adjust. | |
6336 | (fprint_target_auxv): Adjust. | |
6337 | * avr-tdep.c (avr_io_reg_read_command): Adjust. | |
6338 | * linux-tdep.c (linux_spu_make_corefile_notes): Adjust. | |
6339 | (linux_make_corefile_notes): Adjust. | |
6340 | * osdata.c (get_osdata): Adjust. | |
6341 | * remote.c (remote_get_threads_with_qxfer): Adjust. | |
6342 | (remote_memory_map): Adjust. | |
6343 | (remote_traceframe_info): Adjust. | |
6344 | (btrace_read_config): Adjust. | |
6345 | (remote_read_btrace): Adjust. | |
6346 | (remote_pid_to_exec_file): Adjust. | |
6347 | * solib-aix.c (solib_aix_get_library_list): Adjust. | |
6348 | * solib-dsbt.c (decode_loadmap): Don't free buf. | |
6349 | (dsbt_get_initial_loadmaps): Adjust. | |
6350 | * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust. | |
6351 | * solib-target.c (solib_target_current_sos): Adjust. | |
6352 | * tracepoint.c (sdata_make_value): Adjust. | |
6353 | * xml-support.c (xinclude_start_include): Adjust. | |
6354 | (xml_fetch_content_from_file): Adjust. | |
6355 | * xml-support.h (xml_fetch_another): Change return type. | |
6356 | (xml_fetch_content_from_file): Change return type. | |
6357 | * xml-syscall.c (xml_init_syscalls_info): Adjust. | |
6358 | * xml-tdesc.c (file_read_description_xml): Adjust. | |
6359 | (fetch_available_features_from_target): Change return type. | |
6360 | (target_fetch_description_xml): Adjust. | |
6361 | (target_read_description_xml): Adjust. | |
6362 | ||
14c88955 TT |
6363 | 2018-04-06 Tom Tromey <tom@tromey.com> |
6364 | ||
6365 | * value.c (~value): Update. | |
6366 | (struct value) <contents>: Now unique_xmalloc_ptr. | |
6367 | (value_contents_bits_eq, allocate_value_contents) | |
6368 | (value_contents_raw, value_contents_all_raw) | |
6369 | (value_contents_for_printing, value_contents_for_printing_const) | |
6370 | (set_value_enclosing_type): Update. | |
6371 | ||
0c7e6dd8 TT |
6372 | 2018-04-06 Tom Tromey <tom@tromey.com> |
6373 | ||
6374 | * value.c (range_s): Remove typedef, VEC. | |
6375 | (struct range): Add operator<. | |
6376 | (range_lessthan): Remove. | |
6377 | (ranges_contain): Change type. | |
6378 | (~value): Update. | |
6379 | (struct value) <unavailable, optimized_out>: Now std::vector. | |
6380 | (value_entirely_available) | |
6381 | (value_entirely_covered_by_range_vector) | |
6382 | (value_entirely_unavailable, value_entirely_optimized_out): | |
6383 | Update. | |
6384 | (insert_into_bit_range_vector): Change argument type. | |
6385 | (find_first_range_overlap): Likewise. | |
6386 | (struct ranges_and_idx, value_contents_bits_eq) | |
6387 | (require_not_optimized_out, require_available): Update. | |
6388 | (ranges_copy_adjusted): Change argument types. | |
6389 | (value_optimized_out, value_copy, value_fetch_lazy): Update. | |
6390 | ||
2c8331b9 TT |
6391 | 2018-04-06 Tom Tromey <tom@tromey.com> |
6392 | ||
6393 | * value.c (~value): Update. | |
6394 | (struct value) <parent>: Now a value_ref_ptr. | |
6395 | (value_parent, set_value_parent, value_address, value_copy): | |
6396 | Update. | |
6397 | ||
466ce3ae TT |
6398 | 2018-04-06 Tom Tromey <tom@tromey.com> |
6399 | ||
6400 | * value.c (struct value): Add constructor, destructor, and member | |
6401 | initializers. | |
6402 | (allocate_value_lazy, value_decref): Update. | |
6403 | ||
062d818d TT |
6404 | 2018-04-06 Tom Tromey <tom@tromey.com> |
6405 | ||
6406 | * value.c (struct value) <released, next>: Remove. | |
6407 | (all_values): Now a std::vector. | |
6408 | (allocate_value_lazy): Update. | |
6409 | (value_next): Remove. | |
6410 | (value_mark, value_free_to_mark, release_value) | |
6411 | (value_release_to_mark): Update. | |
6412 | ||
a6535de1 TT |
6413 | 2018-04-06 Tom Tromey <tom@tromey.com> |
6414 | ||
6415 | * value.h (fetch_subexp_value, value_release_to_mark): Update. | |
6416 | (free_value_chain): Remove. | |
6417 | * value.c (free_value_chain): Remove. | |
6418 | (value_release_to_mark): Return a std::vector. | |
6419 | * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a | |
6420 | std::vector. | |
6421 | (check_condition): Update. | |
6422 | * eval.c (fetch_subexp_value): Change "val_chain" to a | |
6423 | std::vector. | |
6424 | * breakpoint.c (update_watchpoint): Update. | |
6425 | (can_use_hardware_watchpoint): Change "vals" to a std::vector. | |
6426 | ||
b5621201 TT |
6427 | 2018-04-06 Tom Tromey <tom@tromey.com> |
6428 | ||
6429 | * value.h (free_all_values): Remove. | |
6430 | * value.c (free_all_values): Remove. | |
6431 | ||
4d0266a0 TT |
6432 | 2018-04-06 Tom Tromey <tom@tromey.com> |
6433 | ||
6434 | * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk) | |
6435 | (value_history_chain, value_history_count): Remove. | |
6436 | (value_history): New global. | |
6437 | (record_latest_value, access_value_history, show_values) | |
6438 | (preserve_values): Update. | |
6439 | ||
b4d61099 TT |
6440 | 2018-04-06 Tom Tromey <tom@tromey.com> |
6441 | ||
6442 | * varobj.h (struct varobj) <value>: Now a value_ref_ptr. | |
6443 | * varobj.c (varobj_set_display_format, varobj_set_value) | |
6444 | (install_default_visualizer, construct_visualizer) | |
6445 | (install_new_value, ~varobj, varobj_get_value_type) | |
6446 | (my_value_of_variable, varobj_editable_p): Update. | |
6447 | * c-varobj.c (c_describe_child, c_value_of_variable) | |
6448 | (cplus_number_of_children, cplus_describe_child): Update. | |
6449 | * ada-varobj.c (ada_number_of_children, ada_name_of_child) | |
6450 | (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child) | |
6451 | (ada_value_of_variable, ada_value_is_changeable_p): Update. | |
6452 | ||
9b558729 TT |
6453 | 2018-04-06 Tom Tromey <tom@tromey.com> |
6454 | ||
6455 | * printcmd.c (last_examine_address): Change type to | |
6456 | value_ref_ptr. | |
6457 | (do_examine, x_command): Update. | |
6458 | ||
850645cf TT |
6459 | 2018-04-06 Tom Tromey <tom@tromey.com> |
6460 | ||
6461 | * value.c (release_value): Update. | |
6462 | * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr. | |
6463 | (struct bpstats) <val>: Now a value_ref_ptr. | |
6464 | * breakpoint.c (update_watchpoint, breakpoint_init_inferior) | |
6465 | (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check) | |
6466 | (~watchpoint, print_it_watchpoint, watch_command_1) | |
6467 | (invalidate_bp_value_on_memory_change): Update. | |
6468 | ||
22bc8444 TT |
6469 | 2018-04-06 Tom Tromey <tom@tromey.com> |
6470 | ||
6471 | * varobj.c (varobj_clear_saved_item) | |
6472 | (update_dynamic_varobj_children, install_new_value, ~varobj): | |
6473 | Update. | |
6474 | * value.h (value_incref): Move declaration earlier. | |
6475 | (value_decref): Rename from value_free. | |
6476 | (struct value_ref_policy): New. | |
6477 | (value_ref_ptr): New typedef. | |
6478 | (struct value_deleter): Remove. | |
6479 | (gdb_value_up): Remove typedef. | |
6480 | (release_value): Change return type. | |
6481 | (release_value_or_incref): Remove. | |
6482 | * value.c (set_value_parent): Update. | |
6483 | (value_incref): Change return type. | |
6484 | (value_decref): Rename from value_free. | |
6485 | (value_free_to_mark, free_all_values, free_value_chain): Update. | |
6486 | (release_value): Return value_ref_ptr. | |
6487 | (release_value_or_incref): Remove. | |
6488 | (record_latest_value, set_internalvar, clear_internalvar): | |
6489 | Update. | |
6490 | * stack.c (info_frame_command): Don't call value_free. | |
6491 | * python/py-value.c (valpy_dealloc, valpy_new) | |
6492 | (value_to_value_object): Update. | |
6493 | * printcmd.c (do_examine): Update. | |
6494 | * opencl-lang.c (lval_func_free_closure): Update. | |
6495 | * mi/mi-main.c (register_changed_p): Don't call value_free. | |
6496 | * mep-tdep.c (mep_frame_prev_register): Don't call value_free. | |
6497 | * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free. | |
6498 | * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call | |
6499 | value_free. | |
6500 | * guile/scm-value.c (vlscm_free_value_smob) | |
6501 | (vlscm_scm_from_value): Update. | |
6502 | * frame.c (frame_register_unwind, frame_unwind_register_signed) | |
6503 | (frame_unwind_register_unsigned, get_frame_register_bytes) | |
6504 | (put_frame_register_bytes): Don't call value_free. | |
6505 | * findvar.c (address_from_register): Don't call value_free. | |
6506 | * dwarf2read.c (dwarf2_compute_name): Don't call value_free. | |
6507 | * dwarf2loc.c (entry_data_value_free_closure) | |
6508 | (value_of_dwarf_reg_entry, free_pieced_value_closure) | |
6509 | (dwarf2_evaluate_loc_desc_full): Update. | |
6510 | * breakpoint.c (update_watchpoint, breakpoint_init_inferior) | |
6511 | (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check) | |
6512 | (~watchpoint, watch_command_1) | |
6513 | (invalidate_bp_value_on_memory_change): Update. | |
6514 | * alpha-tdep.c (alpha_register_to_value): Don't call value_free. | |
6515 | ||
7f8a5d38 SM |
6516 | 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca> |
6517 | ||
6518 | PR gdb/23022 | |
6519 | * warning.m4: Add -Wno-error=deprecated-register. | |
6520 | * configure: Re-generate. | |
6521 | ||
8a76bd3b TT |
6522 | 2018-04-05 Tom Tromey <tom@tromey.com> |
6523 | ||
6524 | * linespec.h: Remove include of "vec.h". | |
6525 | ||
8e8d776e TT |
6526 | 2018-04-05 Tom Tromey <tom@tromey.com> |
6527 | ||
6528 | * linespec.c (typep): Remove typedef. | |
6529 | (find_methods, find_superclass_methods): Take a std::vector. | |
6530 | (find_method): Use std::vector. | |
6531 | ||
9b2f8581 TT |
6532 | 2018-04-05 Tom Tromey <tom@tromey.com> |
6533 | ||
6534 | * utils.c (compare_strings): Remove. | |
6535 | * utils.h (compare_strings): Remove. | |
6536 | * objc-lang.h (find_imps): Update. | |
6537 | * objc-lang.c (find_methods): Take a std::vector. | |
6538 | (uniquify_strings, find_imps): Likewise. | |
6539 | * linespec.c (find_methods): Take a std::vector. | |
6540 | (decode_objc): Use std::vector. | |
6541 | (add_all_symbol_names_from_pspace, find_superclass_methods): Take | |
6542 | a std::vector. | |
6543 | (find_method, find_function_symbols): Use std::vector. | |
6544 | ||
459a2e4c TT |
6545 | 2018-04-05 Tom Tromey <tom@tromey.com> |
6546 | ||
6547 | * completer.c (completion_tracker::completion_tracker): Remove | |
6548 | cast. | |
6549 | (completion_tracker::discard_completions): Likewise. | |
6550 | * breakpoint.c (ambiguous_names_p): Remove cast. | |
6551 | * ada-lang.c (_initialize_ada_language): Remove cast. | |
6552 | * utils.h (streq): Update. | |
6553 | (streq_hash): Add new declaration. | |
6554 | * utils.c (streq): Return bool. | |
6555 | (streq_hash): New function. | |
6556 | ||
9be2c17a TT |
6557 | 2018-04-05 Tom Tromey <tom@tromey.com> |
6558 | ||
6559 | * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>: | |
6560 | Remove a string copy. | |
6561 | ||
f73c6ece TT |
6562 | 2018-04-05 Tom Tromey <tom@tromey.com> |
6563 | ||
6564 | * linespec.c (filter_results): Use std::vector. | |
6565 | (decode_line_2, decode_line_full): Update. | |
6566 | ||
53a0f8a2 TT |
6567 | 2018-04-05 Tom Tromey <tom@tromey.com> |
6568 | ||
6569 | * linespec.c (canonical_to_fullform): Return std::string. | |
6570 | (filter_results): Update. | |
6571 | (struct decode_line_2_item): Add constructor. | |
6572 | <fullform, displayform>: Now std::string. | |
6573 | (decode_line_2_compare_items): Now a std::sort comparator. | |
6574 | (decode_line_2): Update. | |
6575 | ||
a5b5adf5 TT |
6576 | 2018-04-05 Tom Tromey <tom@tromey.com> |
6577 | ||
6578 | * linespec.c (copy_token_string): Return a unique_xmalloc_ptr. | |
6579 | (unexpected_linespec_error): Update. | |
6580 | (linespec_parse_basic, parse_linespec): Update. | |
6581 | ||
6a307fc5 TT |
6582 | 2018-04-05 Tom Tromey <tom@tromey.com> |
6583 | ||
6584 | * linespec.c (linespec_parse_basic): Reindent. | |
6585 | ||
41c1efc6 TT |
6586 | 2018-04-05 Tom Tromey <tom@tromey.com> |
6587 | ||
6588 | * minsyms.h (iterate_over_minimal_symbols): Update. | |
6589 | * minsyms.c (iterate_over_minimal_symbols): Take a | |
6590 | gdb::function_view. | |
6591 | * linespec.c (struct collect_minsyms): Remove. | |
6592 | (compare_msyms): Now a std::sort comparator. | |
6593 | (add_minsym): Add parameters. | |
6594 | (search_minsyms_for_name): Update. Use std::vector. | |
6595 | ||
c5edbf3d TT |
6596 | 2018-04-03 Tom Tromey <tom@tromey.com> |
6597 | ||
6598 | * mipsread.c (read_alphacoff_dynamic_symtab): Use | |
6599 | gdb::byte_vector. | |
6600 | ||
b39efc48 WP |
6601 | 2018-04-02 Weimin Pan <weimin.pan@oracle.com> |
6602 | ||
6603 | * MAINTAINERS (Write After Approval): Add Weimin Pan. | |
6604 | ||
121ad66c | 6605 | 2018-04-02 Weimin Pan <weimin.pan@oracle.com> |
79f18731 WP |
6606 | |
6607 | PR gdb/16959 | |
6608 | * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when | |
6609 | printing static type. | |
6610 | ||
09473be8 TT |
6611 | 2018-04-01 Tom Tromey <tom@tromey.com> |
6612 | ||
6613 | * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector. | |
6614 | (rs6000_xfer_shared_libraries): Update. | |
6615 | ||
ec1f2d91 SM |
6616 | 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca> |
6617 | ||
6618 | * common/gdb_vecs.h (char_ptr): Remove. | |
6619 | * tracepoint.c (encode_actions_1): Remove usage of char_ptr. | |
6620 | ||
d8611974 SM |
6621 | 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca> |
6622 | ||
6623 | * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC | |
6624 | with std::vector. | |
6625 | * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove. | |
6626 | ||
a18ba4e4 SM |
6627 | 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca> |
6628 | ||
6629 | * tracepoint.h (struct uploaded_tp): Initialize fields. | |
6630 | <actions, step_actions, cmd_strings>: Change type to | |
6631 | std::vector<char *>. | |
6632 | * tracepoint.c (get_uploaded_tp): Allocate with new. | |
6633 | (free_uploaded_tps): Free with delete. | |
6634 | (parse_tracepoint_definition): Adjust to std::vector change. | |
6635 | * breakpoint.c (read_uploaded_action): Likewise. | |
6636 | (create_tracepoint_from_upload): Likewise. | |
6637 | * ctf.c (ctf_write_uploaded_tp): Likewise. | |
6638 | (SET_ARRAY_FIELD): Likewise. | |
6639 | * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise. | |
6640 | ||
a7961323 TT |
6641 | 2018-03-30 Tom Tromey <tom@tromey.com> |
6642 | ||
6643 | * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return | |
6644 | std::unique_ptr. | |
6645 | (svr4_keep_data_in_core): Update. | |
6646 | (svr4_read_so_list): Update. | |
6647 | ||
e83e4e24 TT |
6648 | 2018-03-30 Tom Tromey <tom@tromey.com> |
6649 | ||
6650 | * windows-nat.c (handle_output_debug_string, handle_exception): | |
6651 | Update. | |
6652 | * target.h (target_read_string): Update. | |
6653 | * target.c (target_read_string): Change "string" to | |
6654 | unique_xmalloc_ptr. | |
6655 | * solib-svr4.c (open_symbol_file_object, svr4_read_so_list): | |
6656 | Update. | |
6657 | * solib-frv.c (frv_current_sos): Update. | |
6658 | * solib-dsbt.c (dsbt_current_sos): Update. | |
6659 | * solib-darwin.c (darwin_current_sos): Update. | |
6660 | * linux-thread-db.c (inferior_has_bug): Update. | |
6661 | * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>: | |
6662 | Update. Remove alloca. | |
6663 | * ada-lang.c (ada_main_name): Update. | |
6664 | ||
263db9a1 TT |
6665 | 2018-03-30 Tom Tromey <tom@tromey.com> |
6666 | ||
6667 | * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove. | |
6668 | (struct dwo_file_deleter): New. | |
6669 | (dwo_file_up): New typedef. | |
6670 | (open_and_init_dwo_file): Use dwo_file_up. | |
6671 | (free_dwo_file_cleanup): Remove. | |
6672 | ||
5dafb3d1 TT |
6673 | 2018-03-30 Tom Tromey <tom@tromey.com> |
6674 | ||
6675 | * dwarf2read.c (free_dwo_file): Remove "objfile" parameter. | |
6676 | (free_dwo_file_cleanup, free_dwo_file_from_slot): Update. | |
6677 | ||
11ed8cad TT |
6678 | 2018-03-30 Tom Tromey <tom@tromey.com> |
6679 | ||
6680 | * dwarf2read.c (class free_cached_comp_units): New class. | |
6681 | (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it. | |
6682 | (free_cached_comp_units): Remove function. | |
6683 | ||
9ae79dac TT |
6684 | 2018-03-30 Tom Tromey <tom@tromey.com> |
6685 | ||
6686 | * utils.h (make_cleanup_unpush_target): Remove. | |
6687 | * inf-ptrace.c (struct target_unpusher): New. | |
6688 | (target_unpush_up) New typedef. | |
6689 | (inf_ptrace_create_inferior, inf_ptrace_attach): Use | |
6690 | target_unpush_up. | |
6691 | * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove. | |
6692 | ||
5aa89276 TT |
6693 | 2018-03-27 Tom Tromey <tom@tromey.com> |
6694 | ||
6695 | * utils.c (prompt_for_continue): Use unique_xmalloc_ptr. | |
6696 | ||
1dbeed45 TT |
6697 | 2018-03-27 Pedro Alves <palves@redhat.com> |
6698 | Tom Tromey <tom@tromey.com> | |
6699 | ||
6700 | * top.c (class gdb_readline_wrapper_cleanup): Add constructor, | |
6701 | destructor. Now a class. | |
6702 | (gdb_readline_wrapper_cleanup): Remove function. | |
6703 | (gdb_readline_wrapper): Remove cleanups. | |
6704 | ||
c819b2c0 TT |
6705 | 2018-03-27 Tom Tromey <tom@tromey.com> |
6706 | ||
6707 | * typeprint.h (struct type_print_options) <local_typedefs, | |
6708 | global_typedefs>: Remove "struct" keyword. | |
6709 | (class typedef_hash_table): New class. | |
6710 | (recursively_update_typedef_hash, add_template_parameters) | |
6711 | (create_typedef_hash, free_typedef_hash, copy_typedef_hash) | |
6712 | (find_typedef_in_hash): Don't declare. | |
6713 | * typeprint.c (struct typedef_hash_table): Move to typeprint.h. | |
6714 | (typedef_hash_table::recursively_update): Rename from | |
6715 | recursively_update_typedef_hash. Now a member. | |
6716 | (typedef_hash_table::add_template_parameters): Rename from | |
6717 | add_template_parameters. Now a member. | |
6718 | (typedef_hash_table::typedef_hash_table): Now a constructor; | |
6719 | rename from create_typedef_hash. | |
6720 | (typedef_hash_table::~typedef_hash_table): Now a destructor; | |
6721 | rename from free_typedef_hash. | |
6722 | (do_free_typedef_hash, make_cleanup_free_typedef_hash) | |
6723 | (do_free_global_table): Remove. | |
6724 | (typedef_hash_table::typedef_hash_table): New constructor; renamed | |
6725 | from copy_type_recursive. | |
6726 | (create_global_typedef_table): Remove. | |
6727 | (typedef_hash_table::find_global_typedef): Now a member of | |
6728 | typedef_hash_table. | |
6729 | (typedef_hash_table::find_typedef): Rename from | |
6730 | find_typedef_in_hash; now a member. | |
6731 | (whatis_exp): Update. | |
6732 | * extension.h (struct ext_lang_type_printers): Add constructor and | |
6733 | destructor. | |
6734 | (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't | |
6735 | declare. | |
6736 | * extension.c (ext_lang_type_printers::ext_lang_type_printers): | |
6737 | Now a constructor; rename from start_ext_lang_type_printers. | |
6738 | (ext_lang_type_printers): Now a destructor; rename from | |
6739 | free_ext_lang_type_printers. | |
6740 | * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1): | |
6741 | Update. | |
6742 | (c_type_print_base_struct_union): Update. Remove cleanups. | |
6743 | ||
608219fb TT |
6744 | 2018-03-27 Tom Tromey <tom@tromey.com> |
6745 | ||
6746 | * dwarf-index-write.c: Include <cmath>. | |
6747 | ||
3fcded8f JB |
6748 | 2018-03-27 Joel Brobecker <brobecker@adacore.com> |
6749 | ||
6750 | * NEWS: Add entry describing new "set|show varsize-limit" command. | |
6751 | * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit" | |
6752 | command. | |
6753 | * printcmd.c (_initialize_printcmd): Add "set var" alias of | |
6754 | "set variable". | |
6755 | ||
cd4fb1b2 SM |
6756 | 2018-03-27 Simon Marchi <simon.marchi@ericsson.com> |
6757 | ||
6758 | * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and | |
6759 | dwarf-index-write.c | |
6760 | (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h. | |
6761 | * dwarf-index-common.c: New file. | |
6762 | * dwarf-index-common.h: New file. | |
6763 | * dwarf-index-write.c: New file. | |
6764 | * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h. | |
6765 | (struct dwarf2_section_info): Move from here. | |
6766 | (dwarf2_section_info_def): Likewise. | |
6767 | (DEF_VEC_O (dwarf2_section_info_def)): Likewise. | |
6768 | (offset_type): Likewise. | |
6769 | (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise. | |
6770 | (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise. | |
6771 | (DW2_GDB_INDEX_CU_SET_VALUE): Likewise. | |
6772 | (byte_swap): Likewise. | |
6773 | (MAYBE_SWAP): Likewise. | |
6774 | (dwarf2_per_cu_ptr): Likewise. | |
6775 | (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise. | |
6776 | (struct tu_stats): Likewise. | |
6777 | (struct dwarf2_per_objfile): Likewise. | |
6778 | (struct dwarf2_per_cu_data): Likewise. | |
6779 | (struct signatured_type): Likewise. | |
6780 | (sig_type_ptr): Likewise. | |
6781 | (DEF_VEC_P (sig_type_ptr)): Likewise. | |
6782 | (INDEX4_SUFFIX): Likewise. | |
6783 | (INDEX5_SUFFIX): Likewise. | |
6784 | (DEBUG_STR_SUFFIX): Likewise. | |
6785 | (dwarf2_read_section): Make non-static. | |
6786 | (mapped_index_string_hash): Move from here. | |
6787 | (dwarf5_djb_hash): Likewise. | |
6788 | (file_write): Likewise. | |
6789 | (class data_buf): Likewise. | |
6790 | (struct symtab_index_entry): Likewise. | |
6791 | (struct mapped_symtab): Likewise. | |
6792 | (find_slot): Likewise. | |
6793 | (hash_expand): Likewise. | |
6794 | (add_index_entry): Likewise. | |
6795 | (uniquify_cu_indices): Likewise. | |
6796 | (class c_str_view): Likewise. | |
6797 | (class c_str_view_hasher): Likewise. | |
6798 | (class vector_hasher): Likewise. | |
6799 | (write_hash_table): Likewise. | |
6800 | (psym_index_map): Likewise. | |
6801 | (struct addrmap_index_data): Likewise. | |
6802 | (add_address_entry): Likewise. | |
6803 | (add_address_entry_worker): Likewise. | |
6804 | (write_address_map): Likewise. | |
6805 | (symbol_kind): Likewise. | |
6806 | (write_psymbols): Likewise. | |
6807 | (struct signatured_type_index_data): Likewise. | |
6808 | (write_one_signatured_type): Likewise. | |
6809 | (recursively_count_psymbols): Likewise. | |
6810 | (recursively_write_psymbols): Likewise. | |
6811 | (class debug_names): Likewise. | |
6812 | (check_dwarf64_offsets): Likewise. | |
6813 | (psyms_seen_size): Likewise. | |
6814 | (write_gdbindex): Likewise. | |
6815 | (write_debug_names): Likewise. | |
6816 | (assert_file_size): Likewise. | |
6817 | (write_psymtabs_to_index): Likewise. | |
6818 | (save_gdb_index_command): Likewise. | |
6819 | (_initialize_dwarf2_read): Don't register the "save gdb-index" | |
6820 | command. | |
6821 | * dwarf2read.h: New file. | |
6822 | ||
59cc4834 JB |
6823 | 2018-03-27 Joel Brobecker <brobecker@adacore.com> |
6824 | ||
6825 | PR gdb/22670 | |
6826 | * dwarf2read.c (dwarf2_physname): Do not return the demangled | |
6827 | symbol name if the CU's language stores symbol names in linkage | |
6828 | format. | |
6829 | * language.h (struct language_defn) | |
6830 | <la_store_sym_names_in_linkage_form_p>: New field. Adjust | |
6831 | all instances of this struct. | |
6832 | ||
67501539 TT |
6833 | 2018-03-26 Tom Tromey <tom@tromey.com> |
6834 | ||
6835 | * stack.c (backtrace_command_1): Remove verbose code. | |
6836 | ||
76c939ac TT |
6837 | 2018-03-26 Tom Tromey <tom@tromey.com> |
6838 | ||
6839 | * python/py-framefilter.c (py_print_type): Don't catch | |
6840 | exceptions. Return void. | |
6841 | (py_print_value): Likewise. | |
6842 | (py_print_single_arg): Likewise. | |
6843 | (enumerate_args): Don't catch exceptions. | |
6844 | (py_print_args): Likewise. | |
6845 | (py_print_frame): Likewise. | |
6846 | (gdbpy_apply_frame_filter): Catch exceptions here. | |
6847 | ||
9507b29c TT |
6848 | 2018-03-26 Tom Tromey <tom@tromey.com> |
6849 | ||
6850 | * stack.c (_initialize_stack): Remove trailing newlines from help | |
6851 | text. Add "Usage" line to "backtrace" help. | |
6852 | ||
eb68e487 TT |
6853 | 2018-03-26 Tom Tromey <tom@tromey.com> |
6854 | ||
6855 | PR python/16486: | |
6856 | * python/py-framefilter.c (py_print_args): Call wrap_hint. | |
6857 | ||
1f111921 TT |
6858 | 2018-03-26 Tom Tromey <tom@tromey.com> |
6859 | ||
6860 | * python/py-framefilter.c (py_print_single_arg): Return | |
6861 | EXT_LANG_BT_ERROR from catch. | |
6862 | ||
fb7eb8b5 TT |
6863 | 2018-03-26 Tom Tromey <tom@tromey.com> |
6864 | ||
6865 | PR backtrace/15584: | |
6866 | * stack.c (backtrace_command_1): Move some code into no-filters | |
6867 | "if". | |
6868 | ||
4ca59a9f TT |
6869 | 2018-03-26 Tom Tromey <tom@tromey.com> |
6870 | ||
6871 | * python/py-framefilter.c (throw_quit_or_print_exception): New | |
6872 | function. | |
6873 | (gdbpy_apply_frame_filter): Use it. | |
6874 | ||
92256134 TT |
6875 | 2018-03-26 Tom Tromey <tom@tromey.com> |
6876 | ||
6877 | PR cli/17716: | |
6878 | * python/py-framefilter.c (py_print_type, py_print_value) | |
6879 | (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use | |
6880 | RETURN_MASK_ERROR. | |
6881 | ||
7a630bc2 TT |
6882 | 2018-03-26 Tom Tromey <tom@tromey.com> |
6883 | ||
6884 | * python/py-framefilter.c (enumerate_args): Use | |
6885 | gdb::unique_xmalloc_ptr. | |
6886 | ||
63283d4a TT |
6887 | 2018-03-26 Tom Tromey <tom@tromey.com> |
6888 | ||
6889 | * python/py-framefilter.c (py_print_frame): Return | |
6890 | EXT_LANG_BT_OK. | |
6891 | (gdbpy_apply_frame_filter): Update comment. | |
6892 | * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>: | |
6893 | Remove. | |
6894 | <EXT_LANG_BT_NO_FILTERS>: Change value. | |
6895 | ||
978d6c75 TT |
6896 | 2018-03-26 Tom Tromey <tom@tromey.com> |
6897 | ||
6898 | PR backtrace/15582: | |
6899 | * stack.c (backtrace_command): Parse "hide" argument. | |
6900 | * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE. | |
6901 | * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New | |
6902 | constant. | |
6903 | ||
1cf7e640 TT |
6904 | 2018-03-26 Tom Tromey <tom@tromey.com> |
6905 | ||
6906 | * stack.c (backtrace_command_1): Remove "show_locals" parameter, | |
6907 | add "flags". | |
6908 | (backtrace_command): Remove "fulltrace", add "flags". | |
6909 | ||
ea3b0687 TT |
6910 | 2018-03-26 Tom Tromey <tom@tromey.com> |
6911 | ||
6912 | * stack.c (backtrace_command): Rewrite command line parsing. | |
6913 | ||
9f034d75 SM |
6914 | 2018-03-26 Simon Marchi <simon.marchi@ericsson.com> |
6915 | ||
6916 | * dwarf2read.c (DEF_VEC_I(offset_type)): Remove. | |
6917 | ||
ce1459e5 SM |
6918 | 2018-03-26 Simon Marchi <simon.marchi@ericsson.com> |
6919 | ||
6920 | * filename-seen-cache.h: Add include guard. | |
6921 | ||
4f7ae6f5 KS |
6922 | 2018-03-26 Keith Seitz <keiths@redhat.com> |
6923 | ||
6924 | * symfile.c (place_section): Remove "struct" from section_addr_info | |
6925 | in comment. | |
6926 | * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove | |
6927 | "struct" keyword from section_addr_info. | |
6928 | ||
5cd3e386 AH |
6929 | 2018-03-26 Alan Hayward <alan.hayward@arm.com> |
6930 | ||
6931 | * regformats/regdef.h (reg): Add constructors. | |
6932 | ||
3e5ef9a4 PA |
6933 | 2018-03-25 Pedro Alves <palves@redhat.com> |
6934 | ||
6935 | * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE | |
6936 | if then/else bodies in var_func_name extraction. | |
6937 | ||
c88d2fcc | 6938 | 2018-03-23 Weimin Pan <weimin.pan@oracle.com> |
bce02d88 WP |
6939 | |
6940 | * minsyms.c (lookup_minimal_symbol_and_objfile): Use | |
6941 | lookup_minimal_symbol() to find symbol entry. | |
6942 | * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment. | |
6943 | ||
b7fee5a3 KS |
6944 | 2018-03-23 Keith Seitz <keiths@redhat.com> |
6945 | ||
6946 | PR c++/22968 | |
6947 | * dwarf2read.c (scan_partial_symbols): Scan structs/classes for | |
6948 | nested type definitions for C++, too. | |
6949 | ||
2cc9b304 TT |
6950 | 2018-03-23 Tom Tromey <tom@tromey.com> |
6951 | ||
6952 | * machoread.c (struct oso_el): Add a constructor. Don't define as | |
6953 | a typedef. | |
6954 | (macho_register_oso): Remove. | |
6955 | (macho_symtab_read): Take a std::vector. | |
6956 | (oso_el_compare_name): Now a std::sort comparator. | |
6957 | (macho_symfile_read_all_oso): Take a std::vector. | |
6958 | (macho_symfile_read): Use std::vector. Remove cleanups. | |
6959 | ||
a2b2bc12 TT |
6960 | 2018-03-22 Tom Tromey <tom@tromey.com> |
6961 | ||
6962 | * record-full.c (record_full_exec_insn): Use gdb::byte_vector. | |
6963 | (record_full_goto_bookmark): Use std::string. | |
6964 | ||
7a8f494c PFC |
6965 | 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
6966 | ||
6967 | PR tdep/18295 | |
6968 | * rs6000-tdep.c (skip_prologue): Match both stwux and stdux | |
6969 | a single mask. | |
6970 | ||
dd6d677f PFC |
6971 | 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
6972 | ||
6973 | * rs6000-tdep.c (store_insn_p): New function. | |
6974 | (skip_prologue): New variable alloca_reg_offset. Set lr_reg | |
6975 | and cr_reg to their unshifted values. Use store_insn_p to | |
6976 | match LR saves using either R1 or fdata->alloca_reg. Use | |
6977 | store_insn_p to match CR saves. Set alloca_reg_offset | |
6978 | when alloca_reg and framep are set. Remove lr_reg shift | |
6979 | when assigning to fdata->lr_register. | |
6980 | ||
26d6cec4 AA |
6981 | 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com> |
6982 | ||
6983 | * linux-tdep.c (linux_info_proc): For "info proc cmdline", print | |
6984 | command line args instead of emitting a warning. | |
6985 | ||
5d9310c4 SM |
6986 | 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca> |
6987 | ||
6988 | * tracepoint.h (struct static_tracepoint_marker): Initialize | |
6989 | fields, define default constructor, move constructor and move | |
6990 | assignment, disable the rest. | |
6991 | <str_id, extra>: Make std::string. | |
6992 | (release_static_tracepoint_marker): Remove. | |
6993 | (free_current_marker): Remove. | |
6994 | * tracepoint.c (free_current_marker): Remove. | |
6995 | (parse_static_tracepoint_marker_definition): Adjust to | |
6996 | std::string, use new hex2str overload. | |
6997 | (release_static_tracepoint_marker): Remove. | |
6998 | (print_one_static_tracepoint_marker): Get marker by reference | |
6999 | and adjust to std::string. | |
7000 | (info_static_tracepoint_markers_command): Adjust to std::vector | |
7001 | changes | |
7002 | * target.h (static_tracepoint_marker_p): Remove typedef. | |
7003 | (DEF_VEC_P(static_tracepoint_marker_p)): Remove. | |
7004 | (struct target_ops) <to_static_tracepoint_marker_at>: Return | |
7005 | bool. | |
7006 | <to_static_tracepoint_markers_by_strid>: Return std::vector. | |
7007 | * target-debug.h | |
7008 | (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove. | |
7009 | (target_debug_print_std_vector_static_tracepoint_marker): New. | |
7010 | (target_debug_print_struct_static_tracepoint_marker_p): Rename | |
7011 | to... | |
7012 | (target_debug_print_static_tracepoint_marker_p): ... this. | |
7013 | * target-delegates.c: Re-generate. | |
7014 | * breakpoint.h (struct tracepoint) <static_trace_marker_id>: | |
7015 | Make std::string. | |
7016 | * breakpoint.c (init_breakpoint_sal): Adjust to std::string. | |
7017 | (decode_static_tracepoint_spec): Adjust to std::vector. | |
7018 | (tracepoint_print_one_detail): Adjust to std::string. | |
7019 | (strace_marker_decode_location): Adjust to std::string. | |
7020 | (update_static_tracepoint): Adjust to std::string, remove call | |
7021 | to release_static_tracepoint_marker. | |
7022 | * linux-nat.c (linux_child_static_tracepoint_markers_by_strid): | |
7023 | Adjust to std::vector. | |
7024 | * remote.c (remote_static_tracepoint_marker_at): Return bool. | |
7025 | (remote_static_tracepoint_markers_by_strid): Adjust to | |
7026 | std::vector. | |
7027 | * common/rsp-low.h (hex2str): New overload with explicit count | |
7028 | of bytes. | |
7029 | * common/rsp-low.c (hex2str): New overload with explicit count | |
7030 | of bytes. | |
7031 | * unittests/rsp-low-selftests.c (test_hex2str): New function. | |
7032 | (_initialize_rsp_low_selftests): Add test_hex2str test. | |
7033 | * unittests/tracepoint-selftests.c | |
7034 | (test_parse_static_tracepoint_marker_definition): Adjust to | |
7035 | std::string. | |
7036 | ||
62c222b6 SM |
7037 | 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca> |
7038 | ||
7039 | * tracepoint.c (parse_static_tracepoint_marker_definition): | |
7040 | Consider case where the definition is followed by more | |
7041 | definitions. | |
7042 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
7043 | tracepoint-selftests.c. | |
7044 | * unittests/tracepoint-selftests.c: New. | |
7045 | ||
7eb2418f PFC |
7046 | 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
7047 | ||
7048 | * MAINTAINERS (Write After Approval): Add Pedro Franco de | |
7049 | Carvalho. | |
7050 | ||
7cbe16e9 SR |
7051 | 2018-03-20 Stephen Roberts <stephen.roberts@arm.com> |
7052 | ||
3d6b3b82 | 7053 | * symtab.c (find_pc_sect_line): fixed indentation. |
7cbe16e9 | 7054 | |
4ee89e90 SR |
7055 | 2018-03-20 Stephen Roberts <stephen.roberts@arm.com> |
7056 | ||
3d6b3b82 | 7057 | * symtab.c (find_pc_sect_line): now uses binary search. |
4ee89e90 | 7058 | |
92630041 TT |
7059 | 2018-03-19 Tom Tromey <tom@tromey.com> |
7060 | ||
7061 | * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain | |
7062 | "IDENT" production. | |
7063 | ||
76727919 TT |
7064 | 2018-03-19 Pedro Alves <palves@redhat.com> |
7065 | Tom Tromey <tom@tromey.com> | |
7066 | ||
7067 | * unittests/observable-selftests.c: New file. | |
7068 | * common/observable.h: New file. | |
7069 | * observable.h: New file. | |
7070 | * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c, | |
7071 | arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c, | |
7072 | breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c, | |
7073 | corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c, | |
7074 | extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c, | |
7075 | infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c, | |
7076 | linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c, | |
7077 | mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c, | |
7078 | ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c, | |
7079 | python/py-breakpoint.c, python/py-finishbreakpoint.c, | |
7080 | python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c, | |
7081 | record-btrace.c, record-full.c, record.c, regcache.c, remote.c, | |
7082 | riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c, | |
7083 | spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c, | |
7084 | symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c, | |
7085 | tui/tui-interp.c, valops.c: Update all users. | |
7086 | * tui/tui-hooks.c (tui_bp_created_observer) | |
7087 | (tui_bp_deleted_observer, tui_bp_modified_observer) | |
7088 | (tui_inferior_exit_observer, tui_before_prompt_observer) | |
7089 | (tui_normal_stop_observer, tui_register_changed_observer): | |
7090 | Remove. | |
7091 | (tui_observers_token): New global. | |
7092 | (attach_or_detach, tui_attach_detach_observers): New functions. | |
7093 | (tui_install_hooks, tui_remove_hooks): Use | |
7094 | tui_attach_detach_observers. | |
7095 | * record-btrace.c (record_btrace_thread_observer): Remove. | |
7096 | (record_btrace_thread_observer_token): New global. | |
7097 | * observer.sh: Remove. | |
7098 | * observer.c: Rename to observable.c. | |
7099 | * observable.c (namespace gdb_observers): Define new objects. | |
7100 | (observer_debug): Move into gdb_observers namespace. | |
7101 | (struct observer, struct observer_list, xalloc_observer_list_node) | |
7102 | (xfree_observer_list_node, generic_observer_attach) | |
7103 | (generic_observer_detach, generic_observer_notify): Remove. | |
7104 | (_initialize_observer): Update. | |
7105 | Don't include observer.inc. | |
7106 | * Makefile.in (generated_files): Remove observer.h, observer.inc. | |
7107 | (clean mostlyclean): Likewise. | |
7108 | (observer.h, observer.inc): Remove targets. | |
7109 | (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c. | |
7110 | (COMMON_SFILES): Use observable.c, not observer.c. | |
7111 | * .gitignore: Remove observer.h. | |
7112 | ||
1cb1f3da TT |
7113 | 2018-03-18 Tom Tromey <tom@tromey.com> |
7114 | ||
7115 | * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use | |
7116 | gdb::def_vector. | |
7117 | (bfd_lookup_symbol_from_dyn_symtab): Likewise. | |
7118 | ||
a06ab151 TT |
7119 | 2018-03-17 Tom Tromey <tom@tromey.com> |
7120 | ||
7121 | * auto-load.c (auto_load_objfile_script_1): Use std::string. | |
7122 | ||
770623f7 TT |
7123 | 2018-03-17 Tom Tromey <tom@tromey.com> |
7124 | ||
7125 | * target.c (class scoped_target_fd): New. | |
7126 | (target_fileio_close_cleanup): Remove. | |
7127 | (target_fileio_read_alloc_1): Use scoped_target_fd. | |
7128 | ||
39be3c7e SM |
7129 | 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca> |
7130 | ||
7131 | * silent-rules.mk: New. | |
7132 | * Makefile.in: Include silent-rules.mk | |
7133 | (srcdir, VPATH, top_srcdir): Move up. | |
7134 | (COMPILE): Add ECHO_CXX. | |
7135 | (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD. | |
7136 | (init.c): Add ECHO_INIT_C. | |
7137 | (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD. | |
7138 | (version.c): Add ECHO_GEN. | |
7139 | (printcmd.o): Add ECHO_CXX. | |
7140 | (target-float.o): Add ECHO_CXX. | |
7141 | (ada-exp.o): Add ECHO_CXX. | |
7142 | (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN. | |
7143 | (insight$(EXEEXT)): Add ECHO_CXXLD. | |
7144 | * gnulib/configure.ac: Add AM_SILENT_RULES. | |
7145 | * gnulib/aclocal.m4: Re-generate. | |
7146 | * gnulib/configure: Re-generate. | |
7147 | * gnulib/import/Makefile.in: Re-generate. | |
7148 | ||
37e136b1 TT |
7149 | 2018-03-16 Tom Tromey <tom@tromey.com> |
7150 | ||
7151 | * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs". | |
7152 | * utils.h (make_cleanup_free_section_addr_info): Don't declare. | |
7153 | * utils.c (do_free_section_addr_info) | |
7154 | (make_cleanup_free_section_addr_info): Remove. | |
7155 | * symfile.h (struct other_sections): Add constructor. | |
7156 | (struct section_addr_info): Remove. | |
7157 | (section_addr_info): New typedef. | |
7158 | (struct sym_fns) <sym_offsets>: Change type of parameter. | |
7159 | (build_section_addr_info_from_objfile) | |
7160 | (relative_addr_info_to_section_offsets, addr_info_make_relative) | |
7161 | (default_symfile_offsets, symbol_file_add) | |
7162 | (symbol_file_add_from_bfd) | |
7163 | (build_section_addr_info_from_section_table): Update. | |
7164 | (alloc_section_addr_info, free_section_addr_info): Don't declare. | |
7165 | * symfile.c (alloc_section_addr_info): Remove. | |
7166 | (build_section_addr_info_from_section_table): Change return type. | |
7167 | Update. | |
7168 | (build_section_addr_info_from_bfd) | |
7169 | (build_section_addr_info_from_objfile): Likewise. | |
7170 | (free_section_addr_info): Remove. | |
7171 | (relative_addr_info_to_section_offsets): Change type of "addrs". | |
7172 | (addrs_section_compar): Now a std::sort comparator. | |
7173 | (addrs_section_sort): Change return type. | |
7174 | (addr_info_make_relative): Change type of "addrs". Update. | |
7175 | (default_symfile_offsets, syms_from_objfile_1) | |
7176 | (syms_from_objfile, symbol_file_add_with_addrs): Likewise. | |
7177 | (symbol_file_add_separate): Update. | |
7178 | (symbol_file_add): Change type of "addrs". Update. | |
7179 | (add_symbol_file_command): Update. Remove cleanups. | |
7180 | * symfile-mem.c (symbol_file_add_from_memory): Update. Remove | |
7181 | cleanups. | |
7182 | * symfile-debug.c (debug_sym_offsets): Change type of "info". | |
7183 | * solib.c (solib_read_symbols): Update. | |
7184 | * objfiles.c (objfile_relocate): Update. Remove cleanups. | |
7185 | * machoread.c (macho_symfile_offsets): Update. | |
7186 | * jit.c (jit_bfd_try_read_symtab): Update. | |
7187 | ||
03afa6ef SM |
7188 | 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca> |
7189 | ||
7190 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
7191 | unittests/utils-selftests.c. | |
7192 | * unittests/utils-selftests.c: New file. | |
7193 | ||
3ae9ce5d TT |
7194 | 2018-03-14 Tom Tromey <tom@tromey.com> |
7195 | ||
7196 | PR cli/14977: | |
7197 | * printcmd.c (printf_c_string, printf_wide_c_string): Special case | |
7198 | for NULL. | |
7199 | ||
b8c2339b TT |
7200 | 2018-03-14 Tom Tromey <tom@tromey.com> |
7201 | ||
7202 | PR cli/19918: | |
7203 | * printcmd.c (printf_pointer): Allow "-" in format. | |
7204 | ||
80ae639d TT |
7205 | 2018-03-14 Tom Tromey <tom@tromey.com> |
7206 | ||
7207 | * printcmd.c (_initialize_printcmd): Add usage to printf. | |
7208 | ||
0d671d99 YQ |
7209 | 2018-03-14 Yao Qi <qiyao@sourceware.org> |
7210 | ||
7211 | * MAINTAINERS: Update my email address. | |
7212 | ||
b577b6af TT |
7213 | 2018-03-13 Tom Tromey <tom@tromey.com> |
7214 | ||
7215 | * machoread.c (macho_check_dsym): Change filenamep to a | |
7216 | std::string*. | |
7217 | (macho_symfile_read): Update. | |
7218 | * symfile.c (load_command): Use std::string. | |
7219 | ||
89a3b63e AB |
7220 | 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com> |
7221 | ||
7222 | * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization | |
7223 | to error message string. | |
7224 | (riscv_register_name): Use xsnprintf instead of sprintf. | |
7225 | (riscv_insn::fetch_instruction): Use gdb_assert instead of | |
7226 | internal_error. | |
7227 | (riscv_print_arg_location): Use gdb_assert_not_reached instead of | |
7228 | error. | |
7229 | (riscv_push_dummy_call): Likewise. | |
7230 | ||
984c7238 TT |
7231 | 2018-03-12 Tom Tromey <tom@tromey.com> |
7232 | ||
7233 | * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix): | |
7234 | Use gdb::byte_vector. | |
7235 | * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector. | |
7236 | ||
933522d1 YQ |
7237 | 2018-03-12 Yao Qi <yao.qi@linaro.org> |
7238 | ||
7239 | * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change | |
7240 | parameter type to readable_regcache. | |
7241 | * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update | |
7242 | the declaration. | |
7243 | ||
be2daae6 TT |
7244 | 2018-03-11 Tom Tromey <tom@tromey.com> |
7245 | ||
7246 | * dwarf2read.c (struct nextfield): Add initializers. | |
7247 | (struct nextfnfield): Remove. | |
7248 | (struct fnfieldlist): Add initializers. Remove "length" and | |
7249 | "head", use std::vector. | |
7250 | (struct decl_field_list): Remove. | |
7251 | (struct field_info): Add initializers. | |
7252 | <fields, baseclasses>: Now std::vector. | |
7253 | <nbaseclasses, nfnfields, typedef_field_list_count, | |
7254 | nested_types_list_count>: Remove. | |
7255 | (dwarf2_add_field, dwarf2_add_type_defn) | |
7256 | (dwarf2_attach_fields_to_type, dwarf2_add_member_fn) | |
7257 | (dwarf2_attach_fn_fields_to_type, handle_struct_member_die) | |
7258 | (process_structure_scope): Update. | |
7259 | ||
484cf504 TT |
7260 | 2018-03-11 Tom Tromey <tom@tromey.com> |
7261 | ||
7262 | * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable | |
7263 | for use by std::sort. | |
7264 | (build_type_psymtabs_1): Use std::vector. | |
7265 | ||
9bd8e0b0 EZ |
7266 | 2018-03-09 Eli Zaretskii <eliz@gnu.org> |
7267 | ||
7268 | * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK, | |
7269 | and LIBMPFR in the printed configuration. | |
7270 | ||
5dc1a704 TT |
7271 | 2018-03-08 Tom Tromey <tom@tromey.com> |
7272 | ||
7273 | * source.c (get_filename_and_charpos): Use scoped_fd. | |
7274 | * nto-procfs.c (procfs_open_1): Use scoped_fd. | |
7275 | (procfs_pidlist): Likewise. | |
7276 | * procfs.c (proc_get_LDT_entry): Use scoped_fd. | |
7277 | (iterate_over_mappings): Likewise. | |
7278 | ||
fdf07f3a TT |
7279 | 2018-03-08 Tom Tromey <tom@tromey.com> |
7280 | ||
7281 | * infcall.c (struct call_return_meta_info) | |
7282 | <stack_temporaries_enabled>: Remove. | |
7283 | (get_call_return_value, call_function_by_hand_dummy): Update. | |
7284 | * thread.c (disable_thread_stack_temporaries): Remove. | |
7285 | (enable_thread_stack_temporaries): Remove. | |
7286 | (thread_stack_temporaries_enabled_p): Return bool. | |
7287 | (push_thread_stack_temporary, value_in_thread_stack_temporaries) | |
7288 | (get_last_thread_stack_temporary): Update. | |
7289 | * eval.c (evaluate_subexp): Update. | |
7290 | * gdbthread.h (class enable_thread_stack_temporaries): Now a | |
7291 | class, not a function. | |
7292 | (value_ptr, value_vec): Remove typedefs. | |
7293 | (class thread_info) <stack_temporaries_enabled>: Now bool. | |
7294 | <stack_temporaries>: Now a std::vector. | |
7295 | (thread_stack_temporaries_enabled_p) | |
7296 | (value_in_thread_stack_temporaries): Return bool. | |
7297 | ||
567a3e54 SM |
7298 | 2018-03-08 Simon Marchi <simon.marchi@ericsson.com> |
7299 | ||
7300 | * remote.c (putpkt_binary): Fix omitted bytes reporting. | |
7301 | (getpkt_or_notif_sane_1): Likewise. | |
7302 | ||
00b40057 SM |
7303 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
7304 | ||
7305 | * build-id.c (build_id_to_debug_bfd): Use std::string. | |
7306 | ||
a8dbfd58 SM |
7307 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
7308 | ||
7309 | * build-id.c (find_separate_debug_file_by_buildid): Return | |
7310 | std::string. | |
7311 | * build-id.h (find_separate_debug_file_by_buildid): Return | |
7312 | std::string. | |
7313 | * coffread.c (coff_symfile_read): Adjust to std::string. | |
7314 | * elfread.c (elf_symfile_read): Adjust to std::string. | |
7315 | * symfile.c (separate_debug_file_exists): Change parameter to | |
7316 | std::string. | |
7317 | (find_separate_debug_file): Return std::string. | |
7318 | (find_separate_debug_file_by_debuglink): Return std::string. | |
7319 | * symfile.h (find_separate_debug_file_by_debuglink): Return | |
7320 | std::string. | |
7321 | ||
e6a58aa8 SM |
7322 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
7323 | ||
7324 | * common/xml-utils.c (xml_escape_text): Move code to... | |
7325 | (xml_escape_text_append): ... this new function. | |
7326 | * common/xml-utils.h (xml_escape_text_append): New declaration. | |
7327 | * unittests/xml-utils-selftests.c (test_xml_escape_text_append): | |
7328 | New function. | |
7329 | (_initialize_xml_utils): register test_xml_escape_text_append as | |
7330 | a selftest. | |
7331 | ||
4ef0bef6 AH |
7332 | 2018-03-07 Alan Hayward <alan.hayward@arm.com> |
7333 | ||
7334 | * defs.h: Remove MAX_REGISTER_SIZE. | |
7335 | * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE | |
7336 | asserts. | |
7337 | * python/py-unwind.c (pyuw_sniffer): Likewise. | |
7338 | ||
e0d3522b TT |
7339 | 2018-03-07 Tom Tromey <tom@tromey.com> |
7340 | ||
7341 | * linux-tdep.c (linux_info_proc): Update. | |
7342 | * target.h (struct target_ops) <to_fileio_readlink>: Return | |
7343 | optional<string>. | |
7344 | (target_fileio_readlink): Return optional<string>. | |
7345 | * remote.c (remote_hostio_readlink): Return optional<string>. | |
7346 | * inf-child.c (inf_child_fileio_readlink): Return | |
7347 | optional<string>. | |
7348 | * target.c (target_fileio_readlink): Return optional<string>. | |
7349 | ||
ea005f31 AB |
7350 | 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com> |
7351 | ||
7352 | * regcache.c (cooked_read_test): Add riscv to the list of | |
7353 | architectures that have a save_reggroup. | |
7354 | ||
e95a97d4 AA |
7355 | 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com> |
7356 | ||
7357 | * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given | |
7358 | value is not a dynamic class object. | |
7359 | ||
d8344f3d TT |
7360 | 2018-03-06 Tom Tromey <tom@tromey.com> |
7361 | ||
7362 | * rust-exp.y: Formatting fixes. | |
7363 | ||
9add17f2 AB |
7364 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
7365 | ||
7366 | * riscv-tdep.c (riscv_register_name): Remove target description | |
7367 | support. | |
7368 | (riscv_gdbarch_init): Remove target description check. | |
7369 | ||
c9486dfe AB |
7370 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
7371 | ||
7372 | * riscv-tdep.c: Remove 'Contributed by ...' lines from header | |
7373 | comment. | |
7374 | * riscv-tdep.h: Likewise. | |
7375 | ||
d74aff3d AB |
7376 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
7377 | ||
7378 | * riscv-tdep.c (riscv_pseudo_register_read): Delete. | |
7379 | (riscv_pseudo_register_write): Delete. | |
7380 | (riscv_gdbarch_init): Remove all use of pseudo registers. | |
7381 | ||
7ea78b59 SM |
7382 | 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
7383 | ||
7384 | * record-btrace.c (btrace_print_lines): Replace cleanup | |
7385 | parameter with RAII equivalents. | |
7386 | (btrace_insn_history): Replace cleanup with RAII equivalents. | |
7387 | * ui-out.h (make_cleanup_ui_out_list_begin_end, | |
7388 | make_cleanup_ui_out_tuple_begin_end): Remove. | |
7389 | * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end, | |
7390 | make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end, | |
7391 | make_cleanup_ui_out_list_begin_end): Remove. | |
7392 | ||
53127008 SM |
7393 | 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
7394 | ||
7395 | * record-btrace.c (record_btrace_maybe_mark_async_event): Change | |
7396 | parameter types to std::vector. Use bool. | |
7397 | (record_btrace_wait): Replace VEC(tp_t) with | |
7398 | std::vector<thread_info *>. | |
7399 | * common/gdb_vecs.h (unordered_remove, ordered_remove): New. | |
7400 | ||
228f1508 SM |
7401 | 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
7402 | ||
7403 | * record-btrace.c (record_btrace_disable_callback): Remove. | |
7404 | (struct scoped_btrace_disable): New. | |
7405 | (record_btrace_open): Use scoped_btrace_disable. | |
7406 | ||
b2970c23 AB |
7407 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
7408 | ||
7409 | * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for | |
7410 | reading values from registers. | |
7411 | ||
fb294655 AB |
7412 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
7413 | ||
7414 | * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz | |
7415 | where appropriate. | |
7416 | ||
cab5bb9d AB |
7417 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
7418 | ||
7419 | * riscv-tdep.c (riscv_print_arg_location): Add header comment, | |
7420 | change parameter type. Use GDB's print functions, and use | |
7421 | core_addr_to_string where appropriate. | |
7422 | (riscv_push_dummy_call): Use core_addr_to_string where | |
7423 | appropriate, update call to riscv_print_arg_location, and reindent | |
7424 | a few lines. | |
7425 | (riscv_return_value): Update call to riscv_print_arg_location. | |
7426 | ||
dbbb1059 AB |
7427 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
7428 | Tim Newsome <tim@sifive.com> | |
7429 | Albert Ou <a0u@eecs.berkeley.edu> | |
7430 | Darius Rad <darius@bluespec.com> | |
7431 | ||
7432 | * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o | |
7433 | (HFILES_NO_SRCDIR): Add riscv-tdep.h. | |
7434 | (ALLDEPFILES): Add riscv-tdep.c | |
7435 | * configure.tgt: Add riscv support. | |
7436 | * riscv-tdep.c: New file. | |
7437 | * riscv-tdep.h: New file. | |
7438 | * NEWS: Mention new target. | |
7439 | * MAINTAINERS: Add entry for riscv. | |
7440 | ||
5dc43913 AB |
7441 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
7442 | ||
7443 | * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized | |
7444 | fields within aggregates. | |
7445 | ||
3dea1ef7 SM |
7446 | 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca> |
7447 | ||
7448 | * record-btrace.c (btrace_print_lines): Change type of flags to | |
7449 | gdb_disassembly_flags. | |
7450 | ||
7efba073 JB |
7451 | 2018-03-04 John Baldwin <jhb@FreeBSD.org> |
7452 | ||
7453 | * fbsd-nat.c: Include "inf-ptrace.h". | |
7454 | (USE_SIGTRAP_SIGINFO): Conditionally define. | |
7455 | [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function. | |
7456 | (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap". | |
7457 | [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New | |
7458 | function. | |
7459 | [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint): | |
7460 | Likewise. | |
7461 | [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint): | |
7462 | Likewise. | |
7463 | (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set | |
7464 | "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint", | |
7465 | "supports_stopped_by_hw_breakpoint" target methods. | |
7466 | ||
386a8676 JB |
7467 | 2018-03-04 John Baldwin <jhb@FreeBSD.org> |
7468 | ||
7469 | * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat". | |
7470 | * fbsd-nat.c (debug_fbsd_nat): New variable. | |
7471 | (show_fbsd_nat_debug): New function. | |
7472 | (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled. | |
7473 | (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command. | |
7474 | ||
12279366 JB |
7475 | 2018-03-04 John Baldwin <jhb@FreeBSD.org> |
7476 | ||
7477 | * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function. | |
7478 | * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New | |
7479 | prototype. | |
7480 | * x86-nat.c (x86_stopped_by_hw_breakpoint): New function. | |
7481 | (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target | |
7482 | method. | |
7483 | ||
54693cf5 SM |
7484 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
7485 | ||
7486 | * common/gdb_vecs.c (free_char_ptr_vec): Remove. | |
7487 | * common/gdb_vecs.h (free_char_ptr_vec): Remove. | |
7488 | ||
ccb2231c SM |
7489 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
7490 | ||
7491 | * charset.c (struct charset_vector): New. | |
7492 | (charsets): Change type to charset_vector. | |
7493 | (find_charset_names): Adjust. | |
7494 | (add_one): Adjust. | |
7495 | (_initialize_charset): Adjust. | |
7496 | ||
6fb16ce6 SM |
7497 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
7498 | ||
7499 | * progspace.h (struct program_space) <deleted_solibs>: Change | |
7500 | type to std::vector<std::string>. | |
7501 | * progspace.c (clear_program_space_solib_cache): Adjust. | |
7502 | * breakpoint.c (print_solib_event): Adjust. | |
7503 | (check_status_catch_solib): Adjust. | |
7504 | * solib.c (update_solib_list): Adjust. | |
7505 | * ui-out.h (class ui_out) <field_string>: New overload. | |
7506 | * ui-out.c (ui_out::field_string): New overload. | |
7507 | ||
564b1e3f SM |
7508 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
7509 | ||
7510 | * progspace.h (struct program_space): Add constructor and | |
7511 | destructor, initialize fields. | |
7512 | (add_program_space): Remove. | |
7513 | * progspace.c (add_program_space): Rename to... | |
7514 | (program_space::program_space): ... this. | |
7515 | (release_program_space): Rename to... | |
7516 | (program_space::~program_space): ... this. | |
7517 | (delete_program_space): Use delete to delete program_space. | |
7518 | (initialize_progspace): Use new to allocate program_space. | |
7519 | * inferior.c (add_inferior_with_spaces): Likewise. | |
7520 | (clone_inferior_command): Likewise. | |
7521 | * infrun.c (follow_fork_inferior): Likewise. | |
7522 | (handle_vfork_child_exec_or_exit): Likewise. | |
7523 | ||
e80aaf61 SM |
7524 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
7525 | ||
7526 | * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove. | |
7527 | (delim_string_to_char_ptr_vec): Return std::vector of | |
7528 | gdb::unique_xmalloc_ptr. | |
7529 | (dirnames_to_char_ptr_vec_append): Take std::vector of | |
7530 | gdb::unique_xmalloc_ptr. | |
7531 | (dirnames_to_char_ptr_vec): Return std::vector of | |
7532 | gdb::unique_xmalloc_ptr. | |
7533 | * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): | |
7534 | Take std::vector of gdb::unique_xmalloc_ptr, adjust the code. | |
7535 | (delim_string_to_char_ptr_vec): Return an std::vector of | |
7536 | gdb::unique_xmalloc_ptr, adjust the code. | |
7537 | (dirnames_to_char_ptr_vec_append): Take an std::vector of | |
7538 | gdb::unique_xmalloc_ptr, adjust the code. | |
7539 | (dirnames_to_char_ptr_vec): Return an std::vector of | |
7540 | gdb::unique_xmalloc_ptr, adjust the code. | |
7541 | * auto-load.c (auto_load_safe_path_vec): Change type to | |
7542 | std::vector of gdb::unique_xmalloc_ptr. | |
7543 | (auto_load_expand_dir_vars): Return an std::vector of | |
7544 | gdb::unique_xmalloc_ptr, adjust the code. | |
7545 | (auto_load_safe_path_vec_update): Adjust. | |
7546 | (filename_is_in_auto_load_safe_path_vec): Adjust. | |
7547 | (auto_load_objfile_script_1): Adjust. | |
7548 | * build-id.c (build_id_to_debug_bfd): Adjust. | |
7549 | * linux-thread-db.c (thread_db_load_search): Adjust. | |
7550 | * source.c (add_path): Adjust. | |
7551 | (openp): Adjust. | |
7552 | * symfile.c (find_separate_debug_file): Adjust. | |
7553 | * utils.c (do_free_char_ptr_vec): Remove. | |
7554 | (make_cleanup_free_char_ptr_vec): Remove. | |
7555 | ||
ab818ade SDJ |
7556 | 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com> |
7557 | ||
7558 | PR gdb/22907 | |
7559 | * common/pathstuff.c: Conditionally include "<windows.h>". | |
7560 | ||
e1e6f073 GS |
7561 | 2018-03-01 Georg Sauthoff <mail@georg.so> |
7562 | ||
7563 | PR gdb/22888 | |
7564 | * gcore.in: Quote variables and switch interpreter to bash. | |
7565 | ||
c7b15a66 TT |
7566 | 2018-03-01 Tom Tromey <tom@tromey.com> |
7567 | ||
7568 | * dwarf2read.c (alloc_discriminant_info): Fix default_index | |
7569 | assertion. Add assertion for discriminant_index. | |
7570 | (quirk_rust_enum): Use correct base type name in univariant case. | |
7571 | ||
0cb7c7b0 SM |
7572 | 2018-03-01 Simon Marchi <simon.marchi@ericsson.com> |
7573 | ||
7574 | * record.c (get_call_history_modifiers): Return a | |
7575 | record_print_flags. | |
7576 | (cmd_record_call_history): Adjust. | |
7577 | * record-btrace.c (record_btrace_call_history): Adjust. | |
7578 | (record_btrace_call_history_range): Adjust. | |
7579 | (record_btrace_call_history_from): Adjust. | |
7580 | * target-debug.h (target_debug_print_record_print_flags): New. | |
7581 | * target-delegates.c: Re-generate. | |
7582 | * target.c (target_call_history): Change flags type. | |
7583 | (target_call_history_from): Likewise. | |
7584 | (target_call_history_range): Likewise. | |
7585 | * target.h (struct target_ops) <target_call_history>: Likewise. | |
7586 | (target_call_history_from): Likewise. | |
7587 | (target_call_history_range): Likewise. | |
7588 | ||
25e3c82c SDJ |
7589 | 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> |
7590 | Simon Marchi <simon.marchi@polymtl.ca> | |
7591 | ||
7592 | * common/common-utils.c: Include "sys/stat.h". | |
7593 | (is_regular_file): Move here from "source.c"; change return | |
7594 | type to "bool". | |
7595 | * common/common-utils.h (is_regular_file): New prototype. | |
7596 | * common/pathstuff.c (contains_dir_separator): New function. | |
7597 | * common/pathstuff.h (contains_dir_separator): New prototype. | |
7598 | * source.c: Don't include "sys/stat.h". | |
7599 | (is_regular_file): Move to "common/common-utils.c". | |
7600 | ||
b4987c95 SDJ |
7601 | 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> |
7602 | ||
7603 | * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c". | |
7604 | (HFILES_NO_SRCDIR): Add "common/pathstuff.h". | |
7605 | * auto-load.c: Include "common/pathstuff.h". | |
7606 | * common/common-def.h (current_directory): Move here. | |
7607 | * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New | |
7608 | function. | |
7609 | * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New | |
7610 | prototype. | |
7611 | * common/pathstuff.c: New file. | |
7612 | * common/pathstuff.h: New file. | |
7613 | * compile/compile.c: Include "common/pathstuff.h". | |
7614 | * defs.h (current_directory): Move to "common/common-defs.h". | |
7615 | * dwarf2read.c: Include "common/pathstuff.h". | |
7616 | * exec.c: Likewise. | |
7617 | * guile/scm-safe-call.c: Likewise. | |
7618 | * linux-thread-db.c: Likewise. | |
7619 | * main.c: Likewise. | |
7620 | * nto-tdep.c: Likewise. | |
7621 | * objfiles.c: Likewise. | |
7622 | * source.c: Likewise. | |
7623 | * symtab.c: Likewise. | |
7624 | * utils.c: Include "common/pathstuff.h". | |
7625 | (gdb_realpath): Move to "common/pathstuff.c". | |
7626 | (gdb_realpath_keepfile): Likewise. | |
7627 | (gdb_abspath): Likewise. | |
7628 | * utils.h (gdb_realpath): Move to "common/pathstuff.h". | |
7629 | (gdb_realpath_keepfile): Likewise. | |
7630 | (gdb_abspath): Likewise. | |
7631 | ||
f169cfdc JB |
7632 | 2018-02-28 John Baldwin <jhb@FreeBSD.org> |
7633 | ||
7634 | * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a | |
7635 | wildcard process pid for super_resume for kernels with a | |
7636 | specific bug. | |
7637 | ||
e05cac70 PM |
7638 | 2018-02-27 Phil Muldoon <pmuldoon@redhat.com> |
7639 | ||
7640 | * compile/compile.c (get_args): Add additional comments | |
7641 | explaining function. | |
7642 | ||
55089490 TT |
7643 | 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca> |
7644 | Tom Tromey <tom@tromey.com> | |
7645 | ||
7646 | * target.h (memory_write_request_s): Remove typedef. Don't define | |
7647 | VEC. | |
7648 | (target_write_memory_blocks): Change argument to std::vector. | |
7649 | (struct memory_write_request): Add constructor. | |
7650 | * target-memory.c (compare_block_starting_address): Return bool. | |
7651 | Change argument types. | |
7652 | (claim_memory): Change arguments to use std::vector. | |
7653 | (split_regular_and_flash_blocks, blocks_to_erase) | |
7654 | (compute_garbled_blocks): Likewise. | |
7655 | (cleanup_request_data, cleanup_write_requests_vector): Remove. | |
7656 | (target_write_memory_blocks): Change argument to std::vector. | |
7657 | * symfile.c (struct load_section_data): Add constructor and | |
7658 | destructor. Use std::vector for "requests". | |
7659 | (struct load_progress_data): Add initializers. | |
7660 | (load_section_callback): Update. Use "new". | |
7661 | (clear_memory_write_data): Remove. | |
7662 | (generic_load): Update. | |
7663 | ||
0c305b61 AH |
7664 | 2018-02-27 Alan Hayward <alan.hayward@arm.com> |
7665 | ||
7666 | * arch/aarch64.h: Use common/tdesc.h. | |
7667 | ||
c5196c92 MR |
7668 | 2018-02-26 Maciej W. Rozycki <macro@mips.com> |
7669 | ||
7670 | * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD | |
7671 | architecture with a 64-bit ABI. | |
7672 | ||
37c33887 MR |
7673 | 2018-02-26 Maciej W. Rozycki <macro@mips.com> |
7674 | ||
7675 | * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination | |
7676 | ahead of target description loading. | |
7677 | ||
d4dd3282 TT |
7678 | 2018-02-26 Tom Tromey <tom@tromey.com> |
7679 | ||
7680 | * stack.c (backtrace_command_1): Update. | |
7681 | * python/python-internal.h (gdbpy_apply_frame_filter): Change type | |
7682 | of "flags". | |
7683 | * python/py-framefilter.c (py_print_frame) | |
7684 | (gdbpy_apply_frame_filter): Change type of "flags". | |
7685 | * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type | |
7686 | of "flags". | |
7687 | (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals) | |
7688 | (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update. | |
7689 | * extension.h (enum frame_filter_flag): Rename from | |
7690 | frame_filter_flags. | |
7691 | (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE. | |
7692 | (apply_ext_lang_frame_filter): Change type of "flags". | |
7693 | * extension.c (apply_ext_lang_frame_filter): Change type of | |
7694 | "flags". | |
7695 | * extension-priv.h (struct extension_language_ops) | |
7696 | <apply_frame_filter>: Change type of "flags". | |
7697 | ||
6893c19a TT |
7698 | 2018-02-26 Tom Tromey <tom@tromey.com> |
7699 | ||
7700 | PR python/16497: | |
7701 | * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix | |
7702 | off-by-one in py_end computation. | |
7703 | * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle | |
7704 | PRINT_MORE_FRAMES. | |
7705 | * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New | |
7706 | constant. | |
7707 | ||
2ddeaf8a TT |
7708 | 2018-02-26 Tom Tromey <tom@tromey.com> |
7709 | ||
7710 | * dwarf2read.c (struct variant_field): New. | |
7711 | (struct nextfield) <variant>: New field. | |
7712 | (dwarf2_add_field): Handle DW_TAG_variant_part. | |
7713 | (dwarf2_attach_fields_to_type): Attach a discriminant_info to a | |
7714 | discriminated union. | |
7715 | (read_structure_type): Handle DW_TAG_variant_part. | |
7716 | (handle_struct_member_die): New function, extracted from | |
7717 | process_structure_scope. Handle DW_TAG_variant. | |
7718 | (process_structure_scope): Handle discriminated unions. Call | |
7719 | handle_struct_member_die. | |
7720 | ||
c9317f21 TT |
7721 | 2018-02-26 Tom Tromey <tom@tromey.com> |
7722 | ||
7723 | * rust-lang.h (rust_last_path_segment): Declare. | |
7724 | * rust-lang.c (rust_last_path_segment): Now public. Change | |
7725 | contract. | |
7726 | (struct disr_info): Remove. | |
7727 | (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL) | |
7728 | (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged) | |
7729 | (rust_get_disr_info, rust_tuple_variant_type_p): Remove. | |
7730 | (rust_enum_p, rust_enum_variant): New function. | |
7731 | (rust_underscore_fields): Remove "offset" parameter. | |
7732 | (rust_print_enum): New function. | |
7733 | (rust_val_print) <TYPE_CODE_UNION>: Remove enum code. | |
7734 | <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate. | |
7735 | (rust_print_struct_def): Add "for_rust_enum" parameter. Handle | |
7736 | enums. | |
7737 | (rust_internal_print_type): New function, from rust_print_type. | |
7738 | Remove enum code. | |
7739 | (rust_print_type): Call rust_internal_print_type. | |
7740 | (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>: | |
7741 | Update enum handling. | |
7742 | * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field. | |
7743 | (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum) | |
7744 | (rust_union_quirks): New functions. | |
7745 | (process_full_comp_unit, process_full_type_unit): Call | |
7746 | rust_union_quirks. | |
7747 | (process_structure_scope): Update rust_unions if necessary. | |
7748 | ||
7c22600a TT |
7749 | 2018-02-26 Tom Tromey <tom@tromey.com> |
7750 | ||
7751 | * value.h (value_union_variant): Declare. | |
7752 | * valops.c (value_union_variant): New function. | |
7753 | * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro. | |
7754 | (struct discriminant_info): New. | |
7755 | (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New | |
7756 | enumerator. | |
7757 | (struct main_type) <flag_discriminated_union>: New field. | |
7758 | ||
15ce8941 TT |
7759 | 2018-02-26 Tom Tromey <tom@tromey.com> |
7760 | ||
7761 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
7762 | unittests/unpack-selftests.c. | |
7763 | * unittests/unpack-selftests.c: New file. | |
7764 | * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases. | |
7765 | ||
48fbe735 YQ |
7766 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
7767 | ||
7768 | * dwarf2read.c (struct partial_die_info) <read>: New method. | |
7769 | (read_partial_die): Remove the declaration. | |
7770 | (load_partial_dies): Update. | |
7771 | (partial_die_info::partial_die_info): | |
7772 | (read_partial_die): Change it to partial_die_info::read. | |
7773 | ||
52356b79 YQ |
7774 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
7775 | ||
7776 | * dwarf2read.c (struct partial_die_info) <fixup>: New method. | |
7777 | (fixup_partial_die): Remove declaration. | |
7778 | (scan_partial_symbols): Update. | |
7779 | (partial_die_parent_scope): Likewise. | |
7780 | (partial_die_full_name): Likewise. | |
7781 | (fixup_partial_die): Change it to partial_die_info::fixup. | |
7782 | ||
35cc7ed7 YQ |
7783 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
7784 | ||
7785 | * dwarf2read.c (read_partial_die): Update the declaration. | |
7786 | (load_partial_dies): Caller update. | |
7787 | (read_partial_die): Remove one argument abbrev_len. | |
7788 | ||
6f06d47b YQ |
7789 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
7790 | ||
7791 | * dwarf2read.c (struct partial_die_info): Add ctor, delete | |
7792 | assignment operator. | |
7793 | (load_partial_dies): Use ctor and copy ctor. | |
7794 | (read_partial_die): Update. | |
7795 | (dwarf2_cu::find_partial_die): Use ctor. | |
7796 | ||
d590ff25 YQ |
7797 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
7798 | ||
7799 | * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method. | |
7800 | (find_partial_die_in_comp_unit): Change it to | |
7801 | dwarf2_cu::find_partial_die. | |
7802 | (find_partial_die): Update. | |
7803 | ||
fd0a254f YQ |
7804 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
7805 | ||
7806 | * dwarf2read.c (read_partial_die): Remove the code checking abbrev | |
7807 | is NULL. | |
7808 | ||
cd9983dd YQ |
7809 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
7810 | ||
7811 | * dwarf2read.c (load_partial_dies): Move the location of XOBNEW. | |
7812 | ||
f46cd62a AH |
7813 | 2018-02-26 Alan Hayward <alan.hayward@arm.com> |
7814 | ||
7815 | * arch/amd64.h: Use common/tdesc.h. | |
7816 | * arch/i386.c: Likewise. | |
7817 | * arch/i386.h: Likewise. | |
7818 | * arch/tic6x.c: Likewise. | |
7819 | * arch/tdesc.h: Move file from here... | |
7820 | * common/tdesc.h: ...to here. | |
7821 | * features/aarch64-core.c: Regenerate. | |
7822 | * features/aarch64-fpu.c: Regenerate. | |
7823 | * features/i386/32bit-avx.c: Regenerate. | |
7824 | * features/i386/32bit-avx512.c: Regenerate. | |
7825 | * features/i386/32bit-core.c: Regenerate. | |
7826 | * features/i386/32bit-linux.c: Regenerate. | |
7827 | * features/i386/32bit-mpx.c: Regenerate. | |
7828 | * features/i386/32bit-pkeys.c: Regenerate. | |
7829 | * features/i386/32bit-sse.c: Regenerate. | |
7830 | * features/i386/64bit-avx.c: Regenerate. | |
7831 | * features/i386/64bit-avx512.c: Regenerate. | |
7832 | * features/i386/64bit-core.c: Regenerate. | |
7833 | * features/i386/64bit-linux.c: Regenerate. | |
7834 | * features/i386/64bit-mpx.c: Regenerate. | |
7835 | * features/i386/64bit-pkeys.c: Regenerate. | |
7836 | * features/i386/64bit-segments.c: Regenerate. | |
7837 | * features/i386/64bit-sse.c: Regenerate. | |
7838 | * features/i386/x32-core.c: Regenerate. | |
7839 | * features/tic6x-c6xp.c: Regenerate. | |
7840 | * features/tic6x-core.c: Regenerate. | |
7841 | * features/tic6x-gp.c: Regenerate. | |
7842 | * target-descriptions.c: Use common/tdesc.h. | |
7843 | * target-descriptions.h: Likewise. | |
7844 | ||
9b292f68 TT |
7845 | 2018-02-24 Tom Tromey <tom@tromey.com> |
7846 | ||
7847 | * linux-thread-db.c (try_thread_db_load_from_pdir_1) | |
7848 | (try_thread_db_load_from_dir, thread_db_load_search): Use | |
7849 | std::string. | |
7850 | (info_auto_load_libthread_db_compare): Return bool. Change | |
7851 | argument types. | |
7852 | (info_auto_load_libthread_db): Use std::vector, std::string. | |
7853 | Remove cleanups. | |
7854 | ||
281d762b TT |
7855 | 2018-02-24 Tom Tromey <tom@tromey.com> |
7856 | ||
7857 | * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a | |
7858 | std::string. | |
7859 | * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a | |
7860 | std::string*. | |
7861 | * gdbarch.c: Rebuild. | |
7862 | * gdbarch.h: Rebuild. | |
7863 | * breakpoint.c (check_fast_tracepoint_sals): Use std::string. | |
7864 | * arch-utils.h (default_fast_tracepoint_valid_at): Update. | |
7865 | * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a | |
7866 | std::string*. | |
7867 | ||
9d8780f0 SM |
7868 | 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca> |
7869 | ||
7870 | * gdbtypes.h (sect_offset): Change type to uint64_t. | |
7871 | (sect_offset_str): New function. | |
7872 | * dwarf2read.c (create_addrmap_from_aranges): Use | |
7873 | sect_offset_str. | |
7874 | (error_check_comp_unit_head): Likewise. | |
7875 | (create_debug_type_hash_table): Likewise. | |
7876 | (read_cutu_die_from_dwo): Likewise. | |
7877 | (init_cutu_and_read_dies): Likewise. | |
7878 | (init_cutu_and_read_dies_no_follow): Likewise. | |
7879 | (process_psymtab_comp_unit_reader): Likewise. | |
7880 | (partial_die_parent_scope): Likewise. | |
7881 | (peek_die_abbrev): Likewise. | |
7882 | (process_queue): Likewise. | |
7883 | (dwarf2_physname): Likewise. | |
7884 | (read_namespace_alias): Likewise. | |
7885 | (read_import_statement): Likewise. | |
7886 | (create_dwo_cu_reader): Likewise. | |
7887 | (create_cus_hash_table): Likewise. | |
7888 | (lookup_dwo_cutu): Likewise. | |
7889 | (inherit_abstract_dies): Likewise. | |
7890 | (read_func_scope): Likewise. | |
7891 | (read_call_site_scope): Likewise. | |
7892 | (dwarf2_add_member_fn): Likewise. | |
7893 | (read_common_block): Likewise. | |
7894 | (read_module_type): Likewise. | |
7895 | (read_typedef): Likewise. | |
7896 | (read_subrange_type): Likewise. | |
7897 | (load_partial_dies): Likewise. | |
7898 | (read_partial_die): Likewise. | |
7899 | (find_partial_die): Likewise. | |
7900 | (read_str_index): Likewise. | |
7901 | (dwarf2_string_attr): Likewise. | |
7902 | (build_error_marker_type): Likewise. | |
7903 | (lookup_die_type): Likewise. | |
7904 | (dump_die_shallow): Likewise. | |
7905 | (follow_die_ref): Likewise. | |
7906 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
7907 | (dwarf2_fetch_constant_bytes): Likewise. | |
7908 | (follow_die_sig): Likewise. | |
7909 | (get_signatured_type): Likewise. | |
7910 | (get_DW_AT_signature_type): Likewise. | |
7911 | (dwarf2_find_containing_comp_unit): Likewise. | |
7912 | (set_die_type): Likewise. | |
7913 | ||
8ec57239 JB |
7914 | 2018-02-21 John Baldwin <jhb@FreeBSD.org> |
7915 | ||
7916 | * arch/aarch64.c: Include "common-defs.h". | |
7917 | * arch/amd64.c: Likewise. | |
7918 | * arch/i386.c: Likewise. | |
7919 | ||
3eac2b65 TT |
7920 | 2018-02-21 Tom Tromey <tom@tromey.com> |
7921 | ||
7922 | * value.h: (extract_field_op): Update. | |
7923 | * eval.c (extract_field_op): Return a const char *. | |
7924 | * expression.h (parse_expression_for_completion): Update. | |
7925 | * completer.c (complete_expression): Update. | |
7926 | (add_struct_fields): Make fieldname const. | |
7927 | * parse.c (expout_completion_name): Now a unique_xmalloc_ptr. | |
7928 | (mark_completion_tag, parse_exp_in_context_1): Update. | |
7929 | (parse_expression_for_completion): Change "name" to | |
7930 | unique_xmalloc_ptr*. | |
7931 | ||
6ccb583f TT |
7932 | 2018-02-21 Tom Tromey <tom@tromey.com> |
7933 | ||
7934 | * infcall.c (call_function_by_hand_dummy): Use std::vector. | |
7935 | ||
c113ed0c YQ |
7936 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
7937 | ||
7938 | * avr-tdep.c (avr_read_pc): Change parameter type to | |
7939 | readable_regcache. | |
7940 | * gdbarch.sh (read_pc): Likewise. | |
7941 | * gdbarch.c: Re-generated. | |
7942 | * gdbarch.h: Re-generated. | |
7943 | * hppa-tdep.c (hppa_read_pc): Change parameter type to | |
7944 | readable_regcache. | |
7945 | * ia64-tdep.c (ia64_read_pc): Likewise. | |
7946 | * mips-tdep.c (mips_read_pc): Likewise. | |
7947 | * spu-tdep.c (spu_read_pc): Likewise. | |
7948 | ||
4c74fe6b YQ |
7949 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
7950 | ||
7951 | * Makefile.in (COMMON_SFILES): Add regcache-dump.c | |
7952 | * regcache-dump.c: New file. | |
7953 | * regcache.c: Move register_dump to regcache-dump.c. | |
7954 | (maintenance_print_registers): Likewise. | |
7955 | (maintenance_print_raw_registers): Likewise. | |
7956 | (maintenance_print_cooked_registers): Likewise. | |
7957 | (maintenance_print_register_groups): Likewise. | |
7958 | (maintenance_print_remote_registers): Likewise. | |
7959 | (_initialize_regcache): Likewise. | |
7960 | * regcache.h (register_dump): Moved from regcache.c. | |
7961 | ||
796bb026 YQ |
7962 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
7963 | ||
7964 | * regcache.c (regcache::regcache): Update. | |
7965 | (regcache::invalidate): Move it to detached_regcache::invalidate. | |
7966 | (get_thread_arch_aspace_regcache): Update. | |
7967 | (regcache::raw_update): Update. | |
7968 | (regcache::cooked_read): Remove some code. | |
7969 | (regcache::cooked_read_value): Likewise. | |
7970 | (regcache::raw_write): Remove assert on m_readonly_p. | |
7971 | (regcache::raw_supply_integer): Move it to | |
7972 | detached_regcache::raw_supply_integer. | |
7973 | (regcache::raw_supply_zeroed): Likewise. | |
7974 | * regcache.h (detached_regcache) <raw_supply_integer>: New | |
7975 | declaration. | |
7976 | <raw_supply_zeroed, invalidate>: Likewise. | |
7977 | (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed. | |
7978 | <invalidate>: Likewise. | |
7979 | <m_readonly_p>: Removed. | |
7980 | ||
215c69dc YQ |
7981 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
7982 | ||
7983 | * infcmd.c (get_return_value): Let stop_regs point to | |
7984 | get_current_regcache. | |
7985 | * regcache.c (regcache::regcache): Remove. | |
7986 | (register_dump_reg_buffer): New class. | |
7987 | (regcache_print): Adjust. | |
7988 | * regcache.h (regcache): Remove constructors. | |
7989 | ||
f3384e66 YQ |
7990 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
7991 | ||
7992 | * regcache.c (class register_dump): New class. | |
7993 | (register_dump_regcache, register_dump_none): New class. | |
7994 | (register_dump_remote, register_dump_groups): New class. | |
7995 | (regcache_print): Update. | |
7996 | * regcache.h (regcache_dump_what): Move it to regcache.c. | |
7997 | (regcache) <dump>: Remove. | |
7998 | ||
c8ec2f33 YQ |
7999 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
8000 | ||
8001 | * jit.c (struct jit_unwind_private) <regcache>: Change its type to | |
8002 | reg_buffer_rw *. | |
8003 | (jit_unwind_reg_set_impl): Call raw_supply. | |
8004 | (jit_frame_sniffer): Use reg_buffer_rw. | |
8005 | * record-full.c (record_full_core_regbuf): Change its type. | |
8006 | (record_full_core_open_1): Use reg_buffer_rw. | |
8007 | (record_full_close): Likewise. | |
8008 | (record_full_core_fetch_registers): Use regcache->raw_supply. | |
8009 | (record_full_core_store_registers): Likewise. | |
8010 | * regcache.c (regcache::get_register_status): Move it to | |
8011 | reg_buffer. | |
8012 | (regcache_raw_set_cached_value): Remove. | |
8013 | (regcache::raw_set_cached_value): Remove. | |
8014 | (regcache::raw_write): Call raw_supply. | |
8015 | (regcache::raw_supply): Move it to reg_buffer_rw. | |
8016 | * regcache.h (regcache_raw_set_cached_value): Remove. | |
8017 | (reg_buffer_rw): New class. | |
8018 | ||
daf6667d YQ |
8019 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
8020 | ||
8021 | * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use | |
8022 | readonly_detached_regcache. | |
8023 | (dummy_frame_prev_register): Use regcache->cooked_read. | |
8024 | * frame.c (frame_save_as_regcache): Change return type. | |
8025 | (frame_pop): Update. | |
8026 | * frame.h (frame_save_as_regcache): Update declaration. | |
8027 | * inferior.h (get_infcall_suspend_state_regcache): Update | |
8028 | declaration. | |
8029 | * infrun.c (infcall_suspend_state) <registers>: use | |
8030 | readonly_detached_regcache. | |
8031 | (save_infcall_suspend_state): Don't use regcache_dup. | |
8032 | (get_infcall_suspend_state_regcache): Change return type. | |
8033 | * linux-fork.c (struct fork_info) <savedregs>: Change to | |
8034 | readonly_detached_regcache. | |
8035 | <pc>: New field. | |
8036 | (fork_save_infrun_state): Don't use regcache_dup. | |
8037 | (info_checkpoints_command): Adjust. | |
8038 | * mi/mi-main.c (register_changed_p): Update declaration. | |
8039 | (mi_cmd_data_list_changed_registers): Use | |
8040 | readonly_detached_regcache. | |
8041 | (register_changed_p): Change parameter type to | |
8042 | readonly_detached_regcache. | |
8043 | * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use | |
8044 | readonly_detached_regcache. | |
8045 | (ppu2spu_sniffer): Construct a new readonly_detached_regcache. | |
8046 | * regcache.c (readonly_detached_regcache::readonly_detached_regcache): | |
8047 | New. | |
8048 | (regcache::save): Move it to reg_buffer. | |
8049 | (regcache::restore): Change parameter type. | |
8050 | (regcache_dup): Remove. | |
8051 | * regcache.h (reg_buffer) <save>: New method. | |
8052 | (readonly_detached_regcache): New class. | |
8053 | * spu-tdep.c (spu2ppu_cache) <regcache>: Use | |
8054 | readonly_detached_regcache. | |
8055 | (spu2ppu_sniffer): Construct a new readonly_detached_regcache. | |
8056 | ||
fc5b8736 YQ |
8057 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
8058 | ||
8059 | * frame.c (frame_save_as_regcache): Use regcache method save. | |
8060 | (frame_pop): Use regcache method restore. | |
8061 | * infrun.c (restore_infcall_suspend_state): Likewise. | |
8062 | * linux-fork.c (fork_load_infrun_state): Likewise. | |
8063 | * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method | |
8064 | save. | |
8065 | * regcache.c (regcache_save): Remove. | |
8066 | (regcache::restore): More asserts. | |
8067 | (regcache_cpy): Remove. | |
8068 | * regcache.h (regcache_save): Remove the declaration. | |
8069 | (regcache::restore): Move from private to public. | |
8070 | Remove the friend declaration of regcache_cpy. | |
8071 | (regcache_cpy): Remove declaration. | |
8072 | ||
849d0ba8 YQ |
8073 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
8074 | ||
8075 | * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change | |
8076 | parameter type to 'readable_regcache *'. | |
8077 | * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise. | |
8078 | * arm-tdep.c (arm_neon_quad_read): Likewise. | |
8079 | (arm_pseudo_read): Likewise. | |
8080 | * avr-tdep.c (avr_pseudo_register_read): Likewise. | |
8081 | * bfin-tdep.c (bfin_pseudo_register_read): Likewise. | |
8082 | * frv-tdep.c (frv_pseudo_register_read): Likewise. | |
8083 | * gdbarch.c: Re-generated. | |
8084 | * gdbarch.h: Re-generated. | |
8085 | * gdbarch.sh (pseudo_register_read): Change parameter type to | |
8086 | 'readable_regcache *'. | |
8087 | (pseudo_register_read_value): Likewise. | |
8088 | * h8300-tdep.c (pseudo_from_raw_register): Likewise. | |
8089 | (h8300_pseudo_register_read): Likewise. | |
8090 | * hppa-tdep.c (hppa_pseudo_register_read): Likewise. | |
8091 | * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. | |
8092 | (i386_pseudo_register_read_into_value): Likewise. | |
8093 | (i386_pseudo_register_read_value): Likewise. | |
8094 | * i386-tdep.h (i386_pseudo_register_read_into_value): Update | |
8095 | declaration. | |
8096 | * ia64-tdep.c (ia64_pseudo_register_read): Likewise. | |
8097 | * m32c-tdep.c (m32c_raw_read): Likewise. | |
8098 | (m32c_read_flg): Likewise. | |
8099 | (m32c_banked_register): Likewise. | |
8100 | (m32c_banked_read): Likewise. | |
8101 | (m32c_sb_read): Likewise. | |
8102 | (m32c_part_read): Likewise. | |
8103 | (m32c_cat_read): Likewise. | |
8104 | (m32c_r3r2r1r0_read): Likewise. | |
8105 | (m32c_pseudo_register_read): Likewise. | |
8106 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise. | |
8107 | * mep-tdep.c (mep_pseudo_cr32_read): Likewise. | |
8108 | (mep_pseudo_cr64_read): Likewise. | |
8109 | (mep_pseudo_register_read): Likewise. | |
8110 | * mips-tdep.c (mips_pseudo_register_read): Likewise. | |
8111 | * msp430-tdep.c (msp430_pseudo_register_read): Likewise. | |
8112 | * nds32-tdep.c (nds32_pseudo_register_read): Likewise. | |
8113 | * regcache.c (regcache::raw_read): Move it to readable_regcache. | |
8114 | (regcache::cooked_read): Likewise. | |
8115 | (regcache::cooked_read_value): Likewise. | |
8116 | (regcache_cooked_read_signed): | |
8117 | (regcache::cooked_read): Likewise. | |
8118 | * regcache.h (readable_regcache): New class. | |
8119 | (regcache): Inherit readable_regcache. Move some methods to | |
8120 | readable_regcache. | |
8121 | * rl78-tdep.c (rl78_pseudo_register_read): Change | |
8122 | parameter type to 'readable_regcache *'. | |
8123 | * rs6000-tdep.c (do_regcache_raw_read): Remove. | |
8124 | (e500_pseudo_register_read): Change parameter type to | |
8125 | 'readable_regcache *'. | |
8126 | (dfp_pseudo_register_read): Likewise. | |
8127 | (vsx_pseudo_register_read): Likewise. | |
8128 | (efpr_pseudo_register_read): Likewise. | |
8129 | * s390-tdep.c (s390_pseudo_register_read): Likewise. | |
8130 | * sh-tdep.c (sh_pseudo_register_read): Likewise. | |
8131 | * sh64-tdep.c (pseudo_register_read_portions): Likewise. | |
8132 | (sh64_pseudo_register_read): Likewise. | |
8133 | * sparc-tdep.c (sparc32_pseudo_register_read): Likewise. | |
8134 | * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise. | |
8135 | * spu-tdep.c (spu_pseudo_register_read_spu): Likewise. | |
8136 | (spu_pseudo_register_read): Likewise. | |
8137 | * xtensa-tdep.c (xtensa_register_read_masked): Likewise. | |
8138 | (xtensa_pseudo_register_read): Likewise. | |
8139 | ||
31716595 YQ |
8140 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
8141 | ||
8142 | * regcache.c (regcache::regcache): Call reg_buffer ctor. | |
8143 | (regcache::arch): Move it to reg_buffer::arch. | |
8144 | (regcache::register_buffer): Likewise. | |
8145 | (regcache::assert_regnum): Likewise. | |
8146 | (regcache::num_raw_registers): Likewise. | |
8147 | * regcache.h (reg_buffer): New class. | |
8148 | (regcache): Inherit reg_buffer. | |
8149 | ||
7104e59b SM |
8150 | 2018-02-20 Simon Marchi <simon.marchi@ericsson.com> |
8151 | ||
8152 | * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered, | |
8153 | gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF. | |
8154 | ||
2d8adcbd MM |
8155 | 2018-02-20 Markus Metzger <markus.t.metzger@intel.com> |
8156 | ||
8157 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp. | |
8158 | ||
b5884fa7 AH |
8159 | 2018-02-19 Alan Hayward <alan.hayward@arm.com> |
8160 | ||
8161 | * Makefile.in: (COMMON_SFILES): Add common/*.c files. | |
8162 | (SFILES): Remove common/*.c files. | |
8163 | (COMMON_OBS): Remove some *.o files built from common/*.c files. | |
8164 | * common/common.host: Add common reference. | |
8165 | * configure.ac: Likewise. | |
8166 | * configure: Regenerate. | |
8167 | ||
fd90ace4 YQ |
8168 | 2018-02-16 Yao Qi <yao.qi@linaro.org> |
8169 | ||
8170 | * block.c (block_namespace_info): Inherit allocate_on_obstack. | |
8171 | (block_initialize_namespace): Use new. | |
8172 | * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack. | |
8173 | (dwarf2_free_objfile): Use delete. | |
8174 | * gdbtypes.c (type_pair): Inherit allocate_on_obstack. | |
8175 | (copy_type_recursive): Use new. | |
8176 | * gdb_obstack.h (allocate_on_obstack): New. | |
8177 | ||
85046ae2 YQ |
8178 | 2018-02-15 Yao Qi <yao.qi@linaro.org> |
8179 | ||
8180 | PR gdb/22849 | |
8181 | * inferior.c (exit_inferior_1): Reset inf->control. | |
8182 | ||
355c559b JB |
8183 | 2018-02-15 Joel Brobecker <brobecker@adacore.com> |
8184 | ||
8185 | * ada-lang.c (ada_to_fixed_value_create): Delete advance | |
8186 | declaration. | |
8187 | ||
980548fd PA |
8188 | 2018-02-14 Pedro Alves <palves@redhat.com> |
8189 | ||
8190 | * frame-unwind.c (frame_unwind_try_unwinder): Always call | |
8191 | frame_cleanup_after_sniffer on exception. | |
8192 | ||
692d6f97 TT |
8193 | 2018-02-14 Tom Tromey <tom@tromey.com> |
8194 | ||
8195 | * solist.h (struct target_so_ops) <bfd_open>: Make pathname | |
8196 | const. | |
8197 | (solib_bfd_open): Make pathname const. | |
8198 | * solib.c (solib_bfd_open): Make pathname const. | |
8199 | * solib-spu.c (spu_bfd_fopen): Make name const. | |
8200 | (spu_bfd_open): Make pathname const. | |
8201 | * solib-darwin.c (darwin_bfd_open): Make pathname const. | |
8202 | * solib-aix.c (solib_aix_bfd_open): Make pathname const. | |
8203 | ||
e0cc99a6 TT |
8204 | 2018-02-14 Tom Tromey <tom@tromey.com> |
8205 | ||
8206 | * symfile.c (symfile_bfd_open): Update. | |
8207 | * source.h (openp, source_full_path_of, find_and_open_source): | |
8208 | Change argument type to unique_xmalloc_ptr. | |
8209 | * source.c (openp): Take a unique_xmalloc_ptr. | |
8210 | (source_full_path_of, find_and_open_source): Likewise. | |
8211 | (open_source_file, symtab_to_fullname): Update. | |
8212 | * solist.h (struct target_so_ops) <find_and_open_solib>: Take a | |
8213 | unique_xmalloc_ptr. | |
8214 | * solib.c (solib_find_1): Use unique_xmalloc_ptr. | |
8215 | (exec_file_find): Update. | |
8216 | * psymtab.c (psymtab_to_fullname): Update. | |
8217 | * nto-tdep.h (nto_find_and_open_solib): Update. | |
8218 | * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a | |
8219 | unique_xmalloc_ptr. | |
8220 | * exec.c (exec_file_attach): Update. | |
8221 | * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr. | |
8222 | * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr. | |
8223 | ||
b46a8d7c TT |
8224 | 2018-02-14 Tom Tromey <tom@tromey.com> |
8225 | ||
8226 | * solib.c: Include source.h. | |
8227 | * nto-tdep.c: Include source.h. | |
8228 | * mi/mi-cmd-env.c: Include source.h. | |
8229 | * infcmd.c: Include source.h. | |
8230 | * exec.c: Include source.h. | |
8231 | * defs.h (enum openp_flag, openp, source_full_path_of, mod_path) | |
8232 | (add_path, directory_switch, source_path, init_source_path): Move | |
8233 | declarations... | |
8234 | * source.h (enum openp_flag, openp, source_full_path_of, mod_path) | |
8235 | (add_path, directory_switch, source_path, init_source_path): | |
8236 | ...here. | |
8237 | ||
797bc1cb TT |
8238 | 2018-02-14 Tom Tromey <tom@tromey.com> |
8239 | ||
8240 | * solist.h (exec_file_find, solib_find): Return | |
8241 | unique_xmalloc_ptr. | |
8242 | (solib_bfd_fopen): Take a const char *. | |
8243 | * solib.c (solib_find_1): Return unique_xmalloc_ptr. | |
8244 | (exec_file_find, solib_find): Likewise. | |
8245 | (solib_bfd_fopen): Do not take ownership of "pathname". | |
8246 | (solib_bfd_open): Use unique_xmalloc_ptr. | |
8247 | * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr. | |
8248 | * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr. | |
8249 | * infrun.c (follow_exec): Use unique_xmalloc_ptr. | |
8250 | * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr. | |
8251 | ||
f98b2e33 JB |
8252 | 2018-02-14 Joel Brobecker <brobecker@adacore.com> |
8253 | ||
8254 | * ada-lang.c (name_match_type_from_name): Remove reference to | |
8255 | ada_name_for_lookup in function's documentation. | |
8256 | * ada-lang.h (ada_name_for_lookup): Delete declaration. | |
8257 | ||
24b9144d SM |
8258 | 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca> |
8259 | ||
8260 | * defs.h (enum openp_flags): New enum. | |
8261 | (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH): | |
8262 | Move to enum openp_flags. | |
8263 | (openp_flags): New enum flags. | |
8264 | (openp): Change parameter type to openp_flags. | |
8265 | * source.c (openp): Change parameter type to openp_flags. | |
8266 | * cli/cli-cmds.c (find_and_open_script): Use openp_flags. | |
8267 | * dwarf2read.c (try_open_dwop_file): Use openp_flags. | |
8268 | ||
387cd15b SM |
8269 | 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca> |
8270 | ||
8271 | * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show | |
8272 | per-command. | |
8273 | ||
b303c6f6 AB |
8274 | 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com> |
8275 | ||
8276 | * dwarf2read.c (dwarf2_release_queue): Delete function, move body | |
8277 | into... | |
8278 | (class dwarf2_queue_guard): ...the destructor of this new class. | |
8279 | (dw2_do_instantiate_symtab): Create instance of the new class | |
8280 | dwarf2_queue_guard, remove cleanup. | |
8281 | ||
9c3630e9 TT |
8282 | 2018-02-09 Tom Tromey <tom@tromey.com> |
8283 | ||
8284 | * source.c (find_source_lines): Don't reference past the end of | |
8285 | the vector. | |
8286 | ||
c4e12631 MM |
8287 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
8288 | ||
8289 | * remote.c (remote_btrace_maybe_reopen): Change error message. | |
8290 | * btrace.c (btrace_enable): Likewise. | |
8291 | (parse_xml_btrace): Likewise. | |
8292 | (parse_xml_btrace_conf): Likewise. | |
8293 | ||
88711fbf MM |
8294 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
8295 | ||
8296 | * nat/linux-btrace.c (diagnose_perf_event_open_fail): New. | |
8297 | (linux_enable_pt, linux_enable_bts): Call | |
8298 | diagnose_perf_event_open_fail. | |
8299 | ||
17ad2a4f MM |
8300 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
8301 | ||
8302 | * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message. | |
8303 | Remove parameter and change return type. Update callers. Move it. | |
8304 | (linux_enable_bts, linux_enable_pt): Improve error message. | |
8305 | (linux_enable_pt): Remove zero buffer size check. | |
8306 | (linux_enable_btrace): Improve error messages. Remove NULL return | |
8307 | check. | |
8308 | ||
de6242d3 MM |
8309 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
8310 | ||
8311 | * btrace.c (btrace_enable): Remove target_supports_btrace call. | |
8312 | * nat/linux-btrace.c (perf_event_pt_event_type): Move. | |
8313 | (kernel_supports_bts, kernel_supports_pt, linux_supports_bts) | |
8314 | (linux_supports_pt, linux_supports_btrace): Remove. | |
8315 | (linux_enable_bts): Call cpu_supports_bts. | |
8316 | * nat/linux-btrace.h (linux_supports_btrace): Remove. | |
8317 | * remote.c (remote_supports_btrace): Remove. | |
8318 | (init_remote_ops): Remove remote_supports_btrace. | |
8319 | * target-delegates.c: Regenerated. | |
8320 | * target.c (target_supports_btrace): Remove. | |
8321 | * target.h (target_ops) <to_supports_btrace>: Remove | |
8322 | (target_supports_btrace): Remove. | |
8323 | * x86-linux-nat.c (x86_linux_create_target): Remove | |
8324 | linux_supports_btrace. | |
8325 | ||
9ee23a85 MM |
8326 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
8327 | ||
8328 | * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling | |
8329 | btrace failed. | |
8330 | * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling | |
8331 | exception and use message in own exception. | |
8332 | ||
5c3284c1 MM |
8333 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
8334 | ||
8335 | * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h. | |
8336 | (perf_event_pt_event_type): Use gdb_file_up. | |
8337 | (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr, | |
8338 | scoped_fd, and scoped_mmap. | |
8339 | ||
84696f37 MM |
8340 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
8341 | ||
8342 | * common/scoped_mmap.h: New. | |
8343 | * unittests/scoped_mmap-selftest.c: New. | |
8344 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
8345 | unittests/scoped_mmap-selftest.c. | |
8346 | ||
ea4a0888 MM |
8347 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
8348 | ||
8349 | * common/scoped_fd.h: New. | |
8350 | * unittests/scoped_fd-selftest.c: New. | |
8351 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
8352 | unittests/scoped_fd-selftest.c. | |
8353 | ||
869e8290 TT |
8354 | 2018-02-09 Tom Tromey <tom@tromey.com> |
8355 | ||
8356 | * auto-load.c (auto_load_section_scripts): Use | |
8357 | gdb::unique_xmalloc_ptr. | |
8358 | ||
a37a2ae7 TT |
8359 | 2018-02-09 Tom Tromey <tom@tromey.com> |
8360 | ||
8361 | * auto-load.c (execute_script_contents): Use std::string. | |
8362 | ||
4e725347 JB |
8363 | 2018-02-09 Joel Brobecker <brobecker@adacore.com> |
8364 | ||
8365 | * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new | |
8366 | Python function, rather than a new command. | |
8367 | ||
9a897d43 TT |
8368 | 2018-02-08 Tom Tromey <tom@tromey.com> |
8369 | ||
8370 | * solib.c (solib_find_1): Use std::string. | |
8371 | (solib_bfd_fopen): Use unique_xmalloc_ptr. | |
8372 | ||
58ef3771 TT |
8373 | 2018-02-08 Tom Tromey <tom@tromey.com> |
8374 | ||
8375 | * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr. | |
8376 | ||
a9abc434 TT |
8377 | 2018-02-08 Tom Tromey <tom@tromey.com> |
8378 | ||
8379 | * source.c (find_source_lines): Use gdb::def_vector. | |
8380 | ||
84f27c6f TT |
8381 | 2018-02-08 Tom Tromey <tom@tromey.com> |
8382 | ||
8383 | * macrocmd.c (struct temporary_macro_definition): New. | |
8384 | (macro_define_command): Use temporary_macro_definition. Remove | |
8385 | cleanups. | |
8386 | (free_macro_definition_ptr): Remove. | |
8387 | ||
0354904b TT |
8388 | 2018-02-08 Tom Tromey <tom@tromey.com> |
8389 | ||
8390 | * macroexp.c (maybe_expand): Use std::string. | |
8391 | ||
1739cf24 TT |
8392 | 2018-02-08 Tom Tromey <tom@tromey.com> |
8393 | ||
8394 | * macroexp.c (struct macro_buffer): Add initializers for some | |
8395 | members. | |
8396 | (init_buffer, init_shared_buffer, free_buffer) | |
8397 | (free_buffer_return_text): Remove. | |
8398 | (macro_buffer): New constructors. | |
8399 | (~macro_buffer): New destructor. | |
8400 | (macro_buffer::set_shared): New method. | |
8401 | (macro_buffer::resize_buffer, macro_buffer::appendc) | |
8402 | (macro_buffer::appendmem): Now methods, not free functions. | |
8403 | (set_token, append_tokens_without_splicing, stringify) | |
8404 | (macro_stringify): Update. | |
8405 | (gather_arguments): Change return type. Remove argc_p argument, | |
8406 | add args_ptr argument. Use std::vector. | |
8407 | (substitute_args): Remove argc argument. Accept std::vector. | |
8408 | (expand): Update. Use std::vector. | |
8409 | (scan, macro_expand, macro_expand_next): Update. | |
8410 | ||
f6c2623e TT |
8411 | 2018-02-08 Tom Tromey <tom@tromey.com> |
8412 | ||
8413 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
8414 | Use unique_xmalloc_ptr. | |
8415 | * macroscope.h: (sal_macro_scope, user_macro_scope) | |
8416 | (default_macro_scope): Return unique_xmalloc_ptr. | |
8417 | * macroscope.c (sal_macro_scope, user_macro_scope) | |
8418 | (default_macro_scope): Return unique_xmalloc_ptr. | |
8419 | * macroexp.h (macro_expand, macro_expand_once): Return | |
8420 | unique_xmalloc_ptr. | |
8421 | * macroexp.c (macro_expand, macro_expand_once): Return | |
8422 | unique_xmalloc_ptr. | |
8423 | * macrocmd.c (macro_expand_command, macro_expand_once_command) | |
8424 | (info_macro_command, info_macros_command): Use | |
8425 | unique_xmalloc_ptr. | |
8426 | * compile/compile-c-support.c (write_macro_definitions): Use | |
8427 | unique_xmalloc_ptr. | |
8428 | * c-exp.y (c_parse): Use unique_xmalloc_ptr. | |
8429 | ||
c2e0e465 SM |
8430 | 2018-02-07 Simon Marchi <simon.marchi@ericsson.com> |
8431 | ||
8432 | * value.c (value_static_field): Assign field type instead of | |
8433 | containing type when returning an optimized out value. | |
8434 | ||
3f8c94b4 YQ |
8435 | 2018-02-06 Yao Qi <yao.qi@linaro.org> |
8436 | ||
8437 | * ft32-tdep.c (ft32_read_pc): Remove. | |
8438 | (ft32_write_pc): Remove. | |
8439 | (ft32_gdbarch_init): Update. | |
8440 | * m32r-tdep.c (m32r_read_pc): Remove. | |
8441 | (m32r_gdbarch_init): Update. | |
8442 | * mep-tdep.c (mep_read_pc): Remove. | |
8443 | (mep_gdbarch_init): Update. | |
8444 | * microblaze-tdep.c (microblaze_write_pc): Remove. | |
8445 | (microblaze_gdbarch_init): Update. | |
8446 | * mn10300-tdep.c (mn10300_read_pc): Remove. | |
8447 | (mn10300_write_pc): Remove. | |
8448 | (mn10300_gdbarch_init): Update. | |
8449 | * moxie-tdep.c (moxie_read_pc): Remove. | |
8450 | (moxie_write_pc): Remove. | |
8451 | (moxie_gdbarch_init): Update. | |
8452 | ||
bca65a23 YQ |
8453 | 2018-02-06 Yao Qi <yao.qi@linaro.org> |
8454 | ||
8455 | * expprint.c (print_subexp_standard): Handle | |
8456 | OP_F77_UNDETERMINED_ARGLIST. | |
8457 | (dump_subexp_body_standard): Likewise. | |
8458 | ||
583e3f90 | 8459 | 2018-02-05 Alan Hayward <alan.hayward@arm.com> |
b8df6ca7 | 8460 | |
583e3f90 YQ |
8461 | * target-descriptions.c (tdesc_element_visitor) Add empty |
8462 | implementations. | |
b8df6ca7 AH |
8463 | (tdesc_type): Move make_gdb_type from here. |
8464 | (tdesc_type_builtin): Likewise. | |
8465 | (tdesc_type_vector): Likewise. | |
8466 | (tdesc_type_with_fields): Move make_gdb_type_ functions from here. | |
8467 | (make_gdb_type_struct): Move from tdesc_type_with_fields. | |
8468 | (make_gdb_type_union): Likewise. | |
8469 | (make_gdb_type_flags): Likewise. | |
8470 | (make_gdb_type_enum): Likewise. | |
8471 | (make_gdb_type): New function. | |
8472 | (tdesc_register_type): Use static make_gdb_type. | |
8473 | ||
e813d34a RK |
8474 | 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com> |
8475 | ||
8476 | * infcmd.c (default_print_one_register_info): Align natural-format | |
8477 | column values consistently one under another. | |
8478 | (pad_to_column): New function. | |
8479 | ||
0eb876f5 JB |
8480 | 2018-02-05 Joel Brobecker <brobecker@adacore.com> |
8481 | ||
8482 | * dwarf2read.c (dwarf2_physname): Move commment. | |
8483 | ||
0625771b LS |
8484 | 2018-02-01 Leszek Swirski <leszeks@google.com> |
8485 | ||
8486 | * varobj.c (varobj_formatted_print_options): Allow recursive | |
8487 | pretty printing if pretty printing is enabled. | |
8488 | ||
59498c30 LS |
8489 | 2018-02-01 Leszek Swirski <leszeks@google.com> |
8490 | ||
8491 | * c-exp.y (lex_one_token, classify_name, yylex): Don't classify | |
8492 | names after a structop as a filename. | |
8493 | ||
2d9e6acb YQ |
8494 | 2018-02-01 Yao Qi <yao.qi@linaro.org> |
8495 | ||
8496 | * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it. | |
8497 | (arm_record_coproc_data_proc): Likewise. | |
8498 | ||
df95a9cf YQ |
8499 | 2018-02-01 Yao Qi <yao.qi@linaro.org> |
8500 | ||
8501 | * arm-tdep.c (arm_record_extension_space): Change ret to signed. | |
8502 | ||
07e5f5cf NP |
8503 | 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com> |
8504 | ||
8505 | * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and | |
8506 | assign shifted lr_reg to fdata->lr_register when lr_reg is set. | |
8507 | ||
3045b475 PA |
8508 | 2018-01-31 Pedro Alves <palves@redhat.com> |
8509 | ||
8510 | * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter. | |
8511 | * inflow.c (child_terminal_save_inferior): Wrap reference to | |
8512 | tcgetpgrp in HAVE_TERMIOS_H. | |
8513 | (child_interrupt, child_pass_ctrlc): Wrap references to signal in | |
8514 | _WIN32. | |
8515 | * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and | |
8516 | always iterate over all inferiors. | |
8517 | (gdbsim_cntrl_c): Adjust. | |
8518 | * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter. | |
8519 | ||
929b5ad4 JB |
8520 | 2018-01-31 Joel Brobecker <brobecker@adacore.com> |
8521 | ||
8522 | * gdbtypes.c (lookup_array_range_type): Make sure the array's | |
8523 | index type is objfile-owned if the element type is as well. | |
8524 | ||
29236ca2 JB |
8525 | 2018-01-31 Joel Brobecker <brobecker@adacore.com> |
8526 | ||
8527 | GDB 8.1 released. | |
8528 | ||
c81e8879 PR |
8529 | 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com> |
8530 | ||
8531 | * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and | |
8532 | "features/s390x-linux64.c". | |
8533 | (_initialize_s390_linux_tdep): Remove initialization of tdescs | |
8534 | s390_linux32 and s390x_linux64. | |
8535 | (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set | |
8536 | default tdesc. | |
8537 | * s390-tdep.c: Include "features/s390-linux32.c" and | |
8538 | "features/s390x-linux64.c". | |
8539 | (s390_tdesc_valid): Add check for tdesc_has_registers. | |
8540 | (s390_gdbarch_init): Make sure there is always a valid tdesc. | |
8541 | (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and | |
8542 | tdesc_s390x_linux64. | |
8543 | * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and | |
8544 | tdesc_s390x_linux64 to... | |
8545 | * s390-tdep.h: ...here. | |
8546 | ||
e671cd59 PA |
8547 | 2018-01-30 Pedro Alves <palves@redhat.com> |
8548 | ||
8549 | PR gdb/13211 | |
8550 | * config.in, configure: Regenerate. | |
8551 | * configure.ac: Check for getpgid. | |
8552 | * go32-nat.c (go32_pass_ctrlc): New. | |
8553 | (go32_target): Install it. | |
8554 | * inf-child.c (inf_child_target): Install | |
8555 | child_terminal_save_inferior, child_pass_ctrlc and | |
8556 | child_interrupt. | |
8557 | * inf-ptrace.c (inf_ptrace_interrupt): Delete. | |
8558 | (inf_ptrace_target): No longer install it. | |
8559 | * infcmd.c (interrupt_target_1): Adjust. | |
8560 | * inferior.h (child_terminal_save_inferior, child_pass_ctrlc) | |
8561 | (child_interrupt): Declare. | |
8562 | (inferior::terminal_state): New. | |
8563 | * inflow.c (struct terminal_info): Update comments. | |
8564 | (inferior_process_group): Delete. | |
8565 | (terminal_is_ours): Delete. | |
8566 | (gdb_tty_state): New. | |
8567 | (child_terminal_init): Adjust. | |
8568 | (is_gdb_terminal, sharing_input_terminal_1) | |
8569 | (sharing_input_terminal): New functions. | |
8570 | (child_terminal_inferior): Adjust. Use sharing_input_terminal. | |
8571 | Set the process's actual process group in the foreground if | |
8572 | possible. Handle is_ours_for_output/is_ours distinction. Don't | |
8573 | mark terminal as the inferior's if not sharing GDB's terminal. | |
8574 | Don't check attach_flag. | |
8575 | (child_terminal_ours_for_output, child_terminal_ours): Adjust to | |
8576 | pass down a target_terminal_state. | |
8577 | (child_terminal_save_inferior): New, factored out from ... | |
8578 | (child_terminal_ours_1): ... this. Handle | |
8579 | target_terminal_state::is_ours_for_output. | |
8580 | (child_interrupt, child_pass_ctrlc): New. | |
8581 | (inflow_inferior_exit): Clear the inferior's terminal_state. | |
8582 | (copy_terminal_info): Copy the inferior's terminal state. | |
8583 | (_initialize_inflow): Remove reference to terminal_is_ours. | |
8584 | * inflow.h (inferior_process_group): Delete. | |
8585 | * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust. | |
8586 | * procfs.c (procfs_target): Don't install procfs_interrupt. | |
8587 | (procfs_interrupt): Delete. | |
8588 | * remote.c (remote_serial_quit_handler): Adjust. | |
8589 | (remote_interrupt): Remove ptid parameter. Adjust. | |
8590 | * target-delegates.c: Regenerate. | |
8591 | * target.c: Include "terminal.h". | |
8592 | (target_terminal::terminal_state): Rename to ... | |
8593 | (target_terminal::m_terminal_state): ... this. | |
8594 | (target_terminal::init): Adjust. | |
8595 | (target_terminal::inferior): Adjust to per-inferior | |
8596 | terminal_state. | |
8597 | (target_terminal::restore_inferior, target_terminal_is_ours_kind): New. | |
8598 | (target_terminal::ours, target_terminal::ours_for_output): Use | |
8599 | target_terminal_is_ours_kind. | |
8600 | (target_interrupt): Remove ptid parameter. Adjust. | |
8601 | (default_target_pass_ctrlc): Adjust. | |
8602 | * target.h (target_ops::to_terminal_save_inferior): New field. | |
8603 | (target_ops::to_interrupt): Remove ptid_t parameter. | |
8604 | (target_interrupt): Remove ptid_t parameter. Update comment. | |
8605 | (target_pass_ctrlc): Update comment. | |
8606 | * target/target.h (target_terminal_state): New scoped enum, | |
8607 | factored out of ... | |
8608 | (target_terminal::terminal_state): ... here. | |
8609 | (target_terminal::inferior): Update comments. | |
8610 | (target_terminal::restore_inferior): New. | |
8611 | (target_terminal::is_inferior, target_terminal::is_ours) | |
8612 | (target_terminal::is_ours_for_output): Adjust. | |
8613 | (target_terminal::scoped_restore_terminal_state): Adjust to | |
8614 | rename, and call restore_inferior() instead of inferior(). | |
8615 | (target_terminal::scoped_restore_terminal_state::m_state): Change | |
8616 | type. | |
8617 | (target_terminal::terminal_state): Rename to ... | |
8618 | (target_terminal::m_terminal_state): ... this and change type. | |
8619 | ||
9c3a5d93 PA |
8620 | 2018-01-30 Pedro Alves <palves@redhat.com> |
8621 | ||
8622 | * linux-nat.c (wait_for_signal): New function. | |
8623 | (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend | |
8624 | directly. | |
8625 | (async_terminal_is_ours) | |
8626 | (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete. | |
8627 | (linux_nat_add_target): Don't override | |
8628 | to_terminal_inferior/to_terminal_ours. | |
8629 | ||
69ab5edb SDJ |
8630 | 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com> |
8631 | ||
8632 | * remote.c (remote_follow_fork): Don't call "detach_inferior". | |
8633 | ||
fc8e7e75 SM |
8634 | 2018-01-28 Simon Marchi <simon.marchi@ericsson.com> |
8635 | ||
8636 | * dwarf2read.c (free_dwo_files): Add forward-declaration. | |
8637 | (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from | |
8638 | dwarf2_per_objfile_free here. | |
8639 | (dwarf2_per_objfile_free): Remove. | |
8640 | (_initialize_dwarf2_read): Don't register | |
8641 | dwarf2_per_objfile_free as a registry cleanup. | |
8642 | ||
b2a426e2 EZ |
8643 | 2018-01-27 Eli Zaretskii <eliz@gnu.org> |
8644 | ||
8645 | Avoid compilation errors in MinGW native builds | |
8646 | ||
8647 | The error is triggered by including python-internal.h, and the | |
8648 | error message is: | |
8649 | ||
8650 | In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0, | |
8651 | from build-gnulib/import/math.h:27, | |
8652 | from d:/usr/Python26/include/pyport.h:235, | |
8653 | from d:/usr/Python26/include/Python.h:58, | |
8654 | from python/python-internal.h:94, | |
8655 | from python/py-arch.c:24: | |
8656 | d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared | |
8657 | using ::hypot; | |
8658 | ^~~~~ | |
8659 | ||
8660 | This happens because Python headers define 'hypot' to expand t | |
8661 | '_hypot' in the Windows builds. | |
8662 | * python/python-internal.h (_hypot) [__MINGW32__]: Define back to | |
8663 | 'hypoth'. This avoids a compilation error. | |
8664 | ||
0bdd8eac AH |
8665 | 2018-01-26 Alan Hayward <alan.hayward@arm.com> |
8666 | ||
8667 | * MAINTAINERS (Write After Approval): Fix ordering. | |
8668 | ||
56ae9dc3 AH |
8669 | 2018-01-26 Alan Hayward <alan.hayward@arm.com> |
8670 | ||
8671 | * MAINTAINERS (Write After Approval): Add Alan Hayward. | |
8672 | ||
7433498b AM |
8673 | 2018-01-26 Alan Modra <amodra@gmail.com> |
8674 | ||
8675 | * ppc-linux-tdep.c (powerpc32_plt_stub): Make const. | |
8676 | (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so. | |
8677 | Remove nop. Make const. Comment. | |
8678 | (powerpc32_plt_stub_so_2): New. | |
8679 | (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN. | |
8680 | Correct count. Update uses. | |
8681 | (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too. | |
8682 | Move common code reading PLT entry word. Correct | |
8683 | powerpc32_plt_stub PLT address calculation. | |
8684 | * ppc64-tdep.c (ppc64_standard_linkage1): Make const. | |
8685 | (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise. | |
8686 | (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise. | |
8687 | (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise. | |
8688 | (ppc64_standard_linkage8): Likewise. | |
8689 | * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const. | |
8690 | Correct insns description. | |
8691 | * ppc-tdep.h (ppc_insns_match_pattern): Update prototype. | |
8692 | ||
0f59d5fc PA |
8693 | 2018-01-24 Pedro Alves <palves@redhat.com> |
8694 | ||
8695 | GCC PR libstdc++/83906 | |
8696 | * gdbtypes.c (operator==(const dynamic_prop &, | |
8697 | const dynamic_prop &)): New. | |
8698 | (operator==(const range_bounds &, const range_bounds &)): New. | |
8699 | (check_types_equal): Use them instead of memcmp. | |
8700 | * gdbtypes.h (operator==(const dynamic_prop &, | |
8701 | const dynamic_prop &)): Declare. | |
8702 | (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare. | |
8703 | (operator==(const range_bounds &, const range_bounds &)): Declare. | |
8704 | (operator!=(const range_bounds &, const range_bounds &)): Declare. | |
8705 | ||
ef8914a4 PR |
8706 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
8707 | ||
8708 | * s390-linux-tdep.c (s390_record_address_mask) | |
8709 | (s390_record_calc_disp_common, s390_record_calc_disp) | |
8710 | (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt) | |
8711 | (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr) | |
8712 | (s390_process_record): Move to s390-tdep.c. | |
8713 | (s390_linux_init_abi_any): Adjust. | |
8714 | * s390-tdep.c (s390_record_address_mask) | |
8715 | (s390_record_calc_disp_common, s390_record_calc_disp) | |
8716 | (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt) | |
8717 | (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr) | |
8718 | (s390_process_record): Moved from s390-linux-tdep.c | |
8719 | (s390_gdbarch_init): Adjust. | |
8720 | ||
d6e58945 PR |
8721 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
8722 | ||
8723 | * s390-linux-nat.c (s390-tdep.h): New include. | |
8724 | * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o. | |
8725 | (HFILES_NO_SRCDIR): Add s390-tdep.h. | |
8726 | (ALLDEPFILES): Add s390-tdep.c. | |
8727 | * configure.tgt (s390*-*-linux*): Add s390-tdep.o. | |
8728 | * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to... | |
8729 | * s390-tdep.h: ...this. New file. | |
8730 | * s390-linux-tdep.c (s390-tdep.h): New include. | |
8731 | (_initialize_s390_tdep): Rename to... | |
8732 | (_initialize_s390_linux_tdep): ...this and adjust. | |
8733 | (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep) | |
8734 | (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to | |
8735 | s390-tdep.h. | |
8736 | (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri) | |
8737 | (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy) | |
8738 | (s390_is_partial_instruction, s390_software_single_step) | |
8739 | (is_non_branch_ril, s390_displaced_step_copy_insn) | |
8740 | (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep) | |
8741 | (s390_prologue_data, s390_addr, s390_store, s390_load) | |
8742 | (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue) | |
8743 | (s390_register_call_saved, s390_guess_tracepoint_registers) | |
8744 | (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum) | |
8745 | (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register) | |
8746 | (s390_pseudo_register_name, s390_pseudo_register_type) | |
8747 | (s390_pseudo_register_read, s390_pseudo_register_write) | |
8748 | (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect) | |
8749 | (s390_ax_pseudo_register_push_stack, s390_gen_return_address) | |
8750 | (s390_addr_bits_remove, s390_address_class_type_flags) | |
8751 | (s390_address_class_type_flags_to_name) | |
8752 | (s390_address_class_name_to_type_flags, s390_effective_inner_type) | |
8753 | (s390_function_arg_float, s390_function_arg_vector) | |
8754 | (is_power_of_two, s390_function_arg_integer, s390_arg_state) | |
8755 | (s390_handle_arg, s390_push_dummy_call, s390_dummy_id) | |
8756 | (s390_frame_align, s390_register_return_value, s390_return_value) | |
8757 | (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp) | |
8758 | (s390_unwind_pseudo_register, s390_adjust_frame_regnum) | |
8759 | (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg) | |
8760 | (s390_trad_frame_prev_register, s390_unwind_cache) | |
8761 | (s390_prologue_frame_unwind_cache) | |
8762 | (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache) | |
8763 | (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind) | |
8764 | (s390_stub_unwind_cache, s390_stub_frame_unwind_cache) | |
8765 | (s390_stub_frame_this_id, s390_stub_frame_prev_register) | |
8766 | (s390_stub_frame_sniffer, s390_stub_frame_unwind) | |
8767 | (s390_frame_base_address, s390_local_base_address) | |
8768 | (s390_frame_base, s390_gcc_target_options) | |
8769 | (s390_gnu_triplet_regexp, s390_stap_is_single_operand) | |
8770 | (s390_validate_reg_range, s390_tdesc_valid) | |
8771 | (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to... | |
8772 | * s390-tdep.c: ...this. New file. | |
8773 | ||
9c0b896e PR |
8774 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
8775 | ||
8776 | * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook. | |
8777 | (s390_process_record, s390_gdbarch_tdep_alloc) | |
8778 | (s390_linux_init_abi_any): Use/set new hook. | |
8779 | ||
7042632b PR |
8780 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
8781 | ||
8782 | * s390-linux-tdep.c (osabi.h): New include. | |
8783 | (s390_linux_init_abi_31, s390_linux_init_abi_64) | |
8784 | (s390_linux_init_abi_any): New functions. | |
8785 | (s390_gdbarch_init, _initialize_s390_tdep): Adjust. | |
8786 | ||
650f5e13 PR |
8787 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
8788 | ||
8789 | * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for | |
8790 | tdesc_has_registers check | |
8791 | ||
47c9317e PR |
8792 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
8793 | ||
8794 | * s390-linux-tdep.c (s390_tdesc_valid): New function. | |
8795 | (s390_validate_reg_range): New macro. | |
8796 | (s390_gdbarch_init): Adjust. | |
8797 | ||
095085d8 PR |
8798 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
8799 | ||
8800 | * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field. | |
8801 | (s390_gdbarch_tdep_alloc): Adjust. | |
8802 | (s390_gdbarch_init): Adjust. | |
8803 | ||
ab9bcc67 PR |
8804 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
8805 | ||
8806 | * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2> | |
8807 | <have_tdb>: Change type to bool. | |
8808 | (s390_gdbarch_tdep_alloc): Adjust. | |
8809 | (s390_gdbarch_init): Adjust. | |
8810 | ||
21f6f5ff PR |
8811 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
8812 | ||
8813 | * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field. | |
8814 | (gdbarch_tdep) <have_upper, have_vx>: New fields. | |
8815 | (s390_gdbarch_tdep_alloc): New function. | |
8816 | (s390_gdbarch_init): Allocate tdep at start and use its fields | |
8817 | instead of separate variables. | |
8818 | ||
0eb97953 PR |
8819 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
8820 | ||
8821 | * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks | |
8822 | when looking for cached gdbarch and add comment for remaining. | |
8823 | ||
5c319bb2 PA |
8824 | 2018-01-22 Pedro Alves <palves@redhat.com> |
8825 | Sergio Durigan Junior <sergiodj@redhat.com> | |
8826 | ||
8827 | * typeprint.c (whatis_exp): Initialize "val" in the "whatis type" | |
8828 | case. | |
8829 | ||
d65ce302 MR |
8830 | 2018-01-22 Maciej W. Rozycki <macro@mips.com> |
8831 | ||
8832 | * MAINTAINERS: Update my company e-mail address. | |
8833 | ||
ec7a5fcb YQ |
8834 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
8835 | ||
8836 | * regcache.c (cooked_write_test): New function. | |
8837 | (_initialize_regcache): Register the test. | |
8838 | ||
11f57cb6 YQ |
8839 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
8840 | ||
8841 | * ia64-tdep.c (ia64_pseudo_register_read): Call | |
8842 | regcache->cooked_read instead of regcache_cooked_read_unsigned. | |
8843 | * m32c-tdep.c (m32c_cat_read): Likewise. | |
8844 | (m32c_r3r2r1r0_read): Likewise. | |
8845 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise. | |
8846 | * xtensa-tdep.c (xtensa_register_read_masked): Likewise. | |
8847 | ||
03f50fc8 YQ |
8848 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
8849 | ||
8850 | * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache | |
8851 | method raw_read instead of regcache_raw_read. | |
8852 | * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise. | |
8853 | * arm-tdep.c (arm_neon_quad_read): Likewise. | |
8854 | * avr-tdep.c (avr_pseudo_register_read): Likewise. | |
8855 | * bfin-tdep.c (bfin_pseudo_register_read): Likewise. | |
8856 | * frv-tdep.c (frv_pseudo_register_read): Likewise. | |
8857 | * h8300-tdep.c (h8300_pseudo_register_read): Likewise. | |
8858 | * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. | |
8859 | (i386_pseudo_register_read_into_value): Likewise. | |
8860 | * mep-tdep.c (mep_pseudo_cr32_read): Likewise. | |
8861 | * msp430-tdep.c (msp430_pseudo_register_read): Likewise. | |
8862 | * nds32-tdep.c (nds32_pseudo_register_read): Likewise. | |
8863 | * rl78-tdep.c (rl78_pseudo_register_read): Likewise. | |
8864 | * s390-linux-tdep.c (s390_pseudo_register_read): Likewise. | |
8865 | * sparc-tdep.c (sparc32_pseudo_register_read): Likewise. | |
8866 | * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise. | |
8867 | * spu-tdep.c (spu_pseudo_register_read_spu): Likewise. | |
8868 | * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise. | |
8869 | ||
dc711524 YQ |
8870 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
8871 | ||
8872 | * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o. | |
8873 | * configure.tgt: Remove target mt. | |
8874 | * mt-tdep.c: Remove. | |
8875 | * regcache.c (cooked_read_test): Remove the check for mt. | |
8876 | ||
3f5a868b YQ |
8877 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
8878 | ||
8879 | * jit.c (jit_frame_prev_register): Call regcache::cooked_read | |
8880 | instead of gdbarch_pseudo_register_read_value. | |
8881 | ||
de4cb04a JB |
8882 | 2018-01-22 Joel Brobecker <brobecker@adacore.com> |
8883 | ||
8884 | * dwarf2read.c (need_gnat_info): Return nonzero if the cu's | |
8885 | language is Ada. | |
8886 | ||
a9e40818 JB |
8887 | 2018-01-22 Joel Brobecker <brobecker@adacore.com> |
8888 | ||
8889 | * linespec.c (create_sals_line_offset): Remove code that preserved | |
8890 | the symtab_and_line's line number. | |
8891 | ||
e707fc44 AB |
8892 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
8893 | ||
8894 | * varobj.c (varobj_create): Don't set valid_block when creating a | |
8895 | floating varobj. | |
8896 | ||
03d0bf7b AB |
8897 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
8898 | ||
8899 | * varobj.c (varobj_create): Remove out of date comment. | |
8900 | ||
ae451627 AB |
8901 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
8902 | ||
8903 | PR mi/20395 | |
8904 | * ada-exp.y (write_var_from_sym): Pass extra parameter when | |
8905 | updating innermost block. | |
8906 | * parse.c (innermost_block_tracker::update): Take extra type | |
8907 | parameter, and check types match before updating innermost block. | |
8908 | (write_dollar_variable): Update innermost block for registers. | |
8909 | * parser-defs.h (enum innermost_block_tracker_type): New enum. | |
8910 | (innermost_block_tracker::innermost_block_tracker): Initialise | |
8911 | m_types member. | |
8912 | (innermost_block_tracker::reset): Take type parameter. | |
8913 | (innermost_block_tracker::update): Take type parameter, and pass | |
8914 | type through as needed. | |
8915 | (innermost_block_tracker::m_types): New member. | |
8916 | * varobj.c (varobj_create): Pass type when reseting innermost | |
8917 | block. | |
8918 | ||
aee1fcdf AB |
8919 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
8920 | ||
8921 | * ada-exp.y (write_var_from_sym): Switch to innermost_block API. | |
8922 | * ada-lang.c (resolve_subexp): Likewise. | |
8923 | * breakpoint.c (set_breakpoint_condition) Likewise. | |
8924 | (watch_command_1) Likewise. | |
8925 | * c-exp.y (variable): Likewise. | |
8926 | * d-exp.y (PrimaryExpression): Likewise. | |
8927 | * f-exp.y (variable): Likewise. | |
8928 | * go-exp.y (variable): Likewise. | |
8929 | * m2-exp.y (variable): Likewise. | |
8930 | * objfiles.c (objfile::~objfile): Likewise. | |
8931 | * p-exp.y (variable): Likewise. | |
8932 | * parse.c (innermost_block): Change type. | |
8933 | * parser-defs.h (class innermost_block_tracker): New. | |
8934 | (innermost_block): Change to innermost_block_tracker. | |
8935 | * printcmd.c (display_command): Switch to innermost_block API. | |
8936 | (do_one_display): Likewise. | |
8937 | * rust-exp.y (do_one_display): Likewise. | |
8938 | * symfile.c (clear_symtab_users): Likewise. | |
8939 | * varobj.c (varobj_create): Switch to innermost_block API, replace | |
8940 | use of innermost_block with block stored on varobj object. | |
8941 | ||
396af9a1 AB |
8942 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
8943 | ||
8944 | * expression.h (innermost_block): Remove declaration. | |
8945 | * varobj.c: Add 'parser-defs.h' include. | |
8946 | ||
fcfcc376 TT |
8947 | 2018-01-19 Tom Tromey <tom@tromey.com> |
8948 | ||
8949 | * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified | |
8950 | symbols in the static and global blocks. | |
8951 | ||
5a6c3296 JC |
8952 | 2018-01-19 James Clarke <jrtc27@jrtc27.com> |
8953 | ||
8954 | * nat/linux-ptrace.c: Remove unnecessary reinclusion of | |
8955 | gdb_ptrace.h, and move including gdb_wait.h ... | |
8956 | * nat/linux-ptrace.h: ... to here. | |
8957 | ||
bc09b0c1 SM |
8958 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
8959 | ||
8960 | * inf-ptrace.c (inf_ptrace_detach): Adjust call to | |
8961 | inf_ptrace_detach_success. | |
8962 | (inf_ptrace_detach_success): Add inferior parameter, use it | |
8963 | instead of inferior_ptid, pass it to detach_inferior. | |
8964 | * inf-ptrace.h (inf_ptrace_detach_success): Add inferior | |
8965 | parameter. | |
8966 | * inferior.c (detach_inferior): Add overload that takes an | |
8967 | inferior object. | |
8968 | * inferior.h (detach_inferior): Likewise. | |
8969 | * linux-nat.c (linux_nat_detach): Use the inf parameter, don't | |
8970 | use inferior_ptid, adjust call to inf_ptrace_detach_success. | |
8971 | * linux-thread-db.c (thread_db_detach): Use inf parameter. | |
8972 | ||
6e1e1966 SM |
8973 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
8974 | ||
8975 | * target.h (struct target_ops) <to_detach>: Add inferior | |
8976 | parameter. | |
8977 | (target_detach): Likewise. | |
8978 | * target.c (dispose_inferior): Pass inferior down. | |
8979 | (target_detach): Pass inferior down. Assert that it is equal to | |
8980 | the current inferior. | |
8981 | * aix-thread.c (aix_thread_detach): Pass inferior down. | |
8982 | * corefile.c (core_file_command): Pass current_inferior() down. | |
8983 | * corelow.c (core_detach): Add inferior parameter. | |
8984 | * darwin-nat.c (darwin_detach): Likewise. | |
8985 | * gnu-nat.c (gnu_detach): Likewise. | |
8986 | * inf-ptrace.c (inf_ptrace_detach): Likewise. | |
8987 | * infcmd.c (detach_command): Pass current_inferior() down to | |
8988 | target_detach. | |
8989 | * infrun.c (follow_fork_inferior): Pass parent_inf to | |
8990 | target_detach. | |
8991 | (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to | |
8992 | target_detach. | |
8993 | * linux-nat.c (linux_nat_detach): Add inferior parameter. | |
8994 | * linux-thread-db.c (thread_db_detach): Likewise. | |
8995 | * nto-procfs.c (procfs_detach): Likewise. | |
8996 | * procfs.c (procfs_detach): Likewise. | |
8997 | * record.c (record_detach): Likewise. | |
8998 | * record.h (struct inferior): Forward-declare. | |
8999 | (record_detach): Add inferior parameter. | |
9000 | * remote-sim.c (gdbsim_detach): Likewise. | |
9001 | * remote.c (remote_detach_1): Likewise. | |
9002 | (remote_detach): Likewise. | |
9003 | (extended_remote_detach): Likewise. | |
9004 | * sol-thread.c (sol_thread_detach): Likewise. | |
9005 | * target-debug.h (target_debug_print_inferior_p): New macro. | |
9006 | * target-delegates.c: Re-generate. | |
9007 | * top.c (kill_or_detach): Pass inferior down to target_detach. | |
9008 | * windows-nat.c (windows_detach): Add inferior parameter. | |
9009 | ||
6bd6f3b6 SM |
9010 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
9011 | ||
9012 | * target.h (struct target_ops) <to_detach>: Remove args | |
9013 | parameter. | |
9014 | (target_detach): Likewise. | |
9015 | * target.c (dispose_inferior): Adjust. | |
9016 | (target_detach): Remove args parameter, adjust. | |
9017 | * aix-thread.c (aix_thread_detach): Adjust. | |
9018 | * corefile.c (core_file_command): Adjust. | |
9019 | * corelow.c (core_detach): Adjust. | |
9020 | * darwin-nat.c (darwin_detach): Adjust. | |
9021 | * gnu-nat.c (gnu_detach): Adjust. | |
9022 | * inf-ptrace.c (inf_ptrace_detach): Adjust. | |
9023 | * infcmd.c (detach_command): Adjust | |
9024 | * infrun.c (follow_fork_inferior): Adjust. | |
9025 | (handle_vfork_child_exec_or_exit): Adjust. | |
9026 | * linux-fork.c (linux_fork_detach): Remove args parameter. | |
9027 | * linux-fork.h (linux_fork_detach): Likewise. | |
9028 | * linux-nat.c (linux_nat_detach): Likewise, and adjust. | |
9029 | * linux-thread-db.c (thread_db_detach): Likewise. | |
9030 | * nto-procfs.c (procfs_detach): Likewise. | |
9031 | * procfs.c (procfs_detach): Likewise. | |
9032 | (do_detach): Remove signo parameter. | |
9033 | * record.c (record_detach): Remove args parameter. | |
9034 | * record.h (record_detach): Likewise. | |
9035 | * remote-sim.c (gdbsim_detach): Likewise. | |
9036 | * remote.c (remote_detach_1): Likewise. | |
9037 | (remote_detach): Likewise. | |
9038 | (extended_remote_detach): Likewise. | |
9039 | * sol-thread.c (sol_thread_detach): Likewise. | |
9040 | * target-delegates.c: Re-generate. | |
9041 | * top.c (struct qt_args) <args>: Remove field. | |
9042 | (kill_or_detach): Don't pass args. | |
9043 | (quit_force): Don't set args. | |
9044 | * windows-nat.c (windows_detach): Remove args parameter. | |
9045 | ||
88af8ea8 YQ |
9046 | 2018-01-19 Yao Qi <yao.qi@linaro.org> |
9047 | ||
9048 | * arm-linux-tdep.c (arm_linux_gcc_target_options): New function. | |
9049 | (arm_linux_init_abi): Install it. | |
9050 | ||
dea445b9 YQ |
9051 | 2018-01-19 Yao Qi <yao.qi@linaro.org> |
9052 | ||
9053 | * osabi.c (gdb_osabi_names): Extend the regexp for | |
9054 | arm-linux-gnueabihf. | |
9055 | ||
4a17f768 YQ |
9056 | 2018-01-18 Yao Qi <yao.qi@linaro.org> |
9057 | ||
9058 | * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to | |
9059 | m_abbrevs. | |
9060 | (abbrev_table::add_abbrev): Update. | |
9061 | (abbrev_table::lookup_abbrev): Update. | |
9062 | ||
d679c21a YQ |
9063 | 2018-01-18 Yao Qi <yao.qi@linaro.org> |
9064 | ||
9065 | * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read. | |
9066 | ||
7d937cad SDJ |
9067 | 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com> |
9068 | ||
9069 | * compile/compile.c (compile_to_object): Convert "triplet_rx" | |
9070 | to "std::string". | |
9071 | ||
9e14690d TT |
9072 | 2018-01-17 Tom Tromey <tom@tromey.com> |
9073 | ||
9074 | * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC. | |
9075 | ||
50a82047 TT |
9076 | 2018-01-17 Tom Tromey <tom@tromey.com> |
9077 | ||
9078 | * gdbtypes.h (add_dyn_prop): Remove objfile parameter. | |
9079 | * gdbtypes.c (add_dyn_prop): Remove objfile parameter. | |
9080 | (create_array_type_with_stride): Update. | |
9081 | * dwarf2read.c (set_die_type): Update. | |
9082 | ||
c89b44cd TT |
9083 | 2018-01-17 Tom Tromey <tom@tromey.com> |
9084 | ||
9085 | * dwarf2read.c (delayed_method_info): Remove typedef. | |
9086 | (dwarf2_cu::method_info): Now a std::vector. | |
9087 | (add_to_method_list): Update. | |
9088 | (free_delayed_list): Remove. | |
9089 | (compute_delayed_physnames): Update. | |
9090 | (process_full_comp_unit, process_full_type_unit): Clear the method | |
9091 | list. Remove cleanups. | |
9092 | (psymtab_include_file_name): Add name_holder parameter. Use | |
9093 | unique_xmalloc_ptr. | |
9094 | (dwarf_decode_lines): Update. | |
9095 | ||
fcd3b13d SM |
9096 | 2018-01-17 Tom Tromey <tom@tromey.com> |
9097 | Simon Marchi <simon.marchi@ericsson.com> | |
9098 | ||
9099 | * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor. | |
9100 | (dwarf2_per_objfile::free_cached_comp_units) | |
9101 | (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) | |
9102 | (init_cutu_and_read_dies_no_follow): Update. | |
9103 | (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit. | |
9104 | (dwarf2_cu::~dwarf2_cu): New. | |
9105 | (free_heap_comp_unit, free_stack_comp_unit): Remove. | |
9106 | (age_cached_comp_units, free_one_cached_comp_unit): Update. | |
9107 | ||
685af9cd TT |
9108 | 2018-01-17 Tom Tromey <tom@tromey.com> |
9109 | Simon Marchi <simon.marchi@ericsson.com> | |
9110 | ||
9111 | * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove. | |
9112 | (struct die_reader_specs) <abbrev_table>: New member. | |
9113 | (struct abbrev_table): Add constructor. | |
9114 | <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare. | |
9115 | <abbrev_obstack>: Now an auto_obstack. | |
9116 | (abbrev_table_up): New typedef. | |
9117 | (init_cu_die_reader): Add abbrev_table parameter. | |
9118 | (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter. | |
9119 | Add result_dwo_abbrev_table. | |
9120 | (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) | |
9121 | (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1): | |
9122 | Update. | |
9123 | (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as | |
9124 | parameter. | |
9125 | (skip_children): Update. | |
9126 | (abbrev_table::alloc_abbrev): Rename from | |
9127 | abbrev_table_alloc_abbrev. | |
9128 | (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev. | |
9129 | (abbrev_table::lookup_abbrev): Rename from | |
9130 | abbrev_table_lookup_abbrev. | |
9131 | (abbrev_table_read_table): Return abbrev_table_up. | |
9132 | (abbrev_table_free, abbrev_table_free_cleanup) | |
9133 | (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove. | |
9134 | (load_partial_dies): Update. | |
9135 | ||
5e2db402 TT |
9136 | 2018-01-17 Tom Tromey <tom@tromey.com> |
9137 | ||
9138 | * dwarf2read.c (dwarf2_compute_name): Update comment. | |
9139 | (read_func_scope, read_variable): Update. | |
9140 | (new_symbol): Remove. | |
9141 | (new_symbol_full): Rename to new_symbol. | |
9142 | ||
ee7f689e | 9143 | 2018-01-17 Mike Gulick <mgulick@mathworks.com> |
41667530 MG |
9144 | |
9145 | PR gdb/16577 | |
9146 | * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue | |
9147 | a warning instead of throwing an error, set section size to 0 and return | |
9148 | NULL. | |
9149 | * gdb_bfd.h (gdb_bfd_map_section): Update description. | |
9150 | ||
4d9b86e1 SM |
9151 | 2018-01-17 Simon Marchi <simon.marchi@ericsson.com> |
9152 | ||
9153 | * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return | |
9154 | std::string. | |
9155 | (linux_ptrace_attach_fail_reason_string): Likewise. | |
9156 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): | |
9157 | Likewise. | |
9158 | (linux_ptrace_attach_fail_reason_string): Likewise. | |
9159 | * linux-nat.c (attach_proc_task_lwp_callback): Adjust. | |
9160 | ||
a7b2d0fb SM |
9161 | 2018-01-17 Simon Marchi <simon.marchi@ericsson.com> |
9162 | ||
9163 | * linux-nat.c (linux_nat_attach): Remove xstrdup. | |
9164 | ||
f517c180 EA |
9165 | 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com> |
9166 | ||
9167 | PR gdb/21559 | |
9168 | * configure.ac: Include <sys/types.h> prior to <sys/user.h> when | |
9169 | checking for fs_base/gs_base fields in struct user_regs_struct. | |
9170 | * configure: Regenerate. | |
9171 | ||
7045b1ca YQ |
9172 | 2018-01-17 Yao Qi <yao.qi@linaro.org> |
9173 | ||
9174 | * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New | |
9175 | function. | |
9176 | (aarch64_linux_init_abi): Install it to gdbarch hook | |
9177 | gcc_target_options. | |
9178 | ||
db422fb2 PA |
9179 | 2018-01-15 Pedro Alves <palves@redhat.com> |
9180 | ||
9181 | * common/signals-state-save-restore.c | |
9182 | (save_original_signals_state): Fix typos. | |
9183 | ||
ba643918 SDJ |
9184 | 2017-01-12 Tom Tromey <tom@tromey.com> |
9185 | Sergio Durigan Junior <sergiodj@redhat.com> | |
9186 | ||
9187 | * Makefile.in (install-only): Install gdb-add-index. | |
9188 | ||
906b4aac JB |
9189 | 2018-01-12 John Baldwin <jhb@FreeBSD.org> |
9190 | ||
9191 | * fbsd-tdep.c (KVE_PROTECTION): Correct value. | |
9192 | ||
bdf2a94a AA |
9193 | 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
9194 | ||
9195 | * infrun.c (keep_going_pass_signal): Clear step-over info when | |
9196 | insert_breakpoints fails. | |
9197 | ||
71d378ae PA |
9198 | 2018-01-11 Pedro Alves <palves@redhat.com> |
9199 | ||
9200 | PR gdb/22583 | |
9201 | * infrun.c (resume): Rename to ... | |
9202 | (resume_1): ... this. | |
9203 | (resume): Reimplement as wrapper around resume_1. | |
9204 | ||
3cada740 PA |
9205 | 2018-01-11 Pedro Alves <palves@redhat.com> |
9206 | ||
9207 | PR remote/22597 | |
9208 | * remote.c (remote_parse_stop_reply): Default to the last-set | |
9209 | general thread instead of to 'magic_null_ptid'. | |
9210 | ||
618daa93 PA |
9211 | 2018-01-10 Pedro Alves <palves@redhat.com> |
9212 | ||
9213 | * language.h (language_get_symbol_name_matcher): Rename ... | |
9214 | (get_symbol_name_matcher): ... this. | |
9215 | * language.c (language_get_symbol_name_matcher): Ditto. | |
9216 | * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All | |
9217 | callers adjusted. | |
9218 | ||
c63d3e8d PA |
9219 | 2018-01-10 Pedro Alves <palves@redhat.com> |
9220 | ||
9221 | PR gdb/22670 | |
9222 | * dwarf2read.c | |
9223 | (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher): | |
9224 | Adjust to use language_get_symbol_name_matcher instead of | |
9225 | language_defn::la_get_symbol_name_matcher. | |
9226 | * language.c (language_get_symbol_name_matcher): If in Ada mode | |
9227 | and the lookup name is a verbatim match, return Ada's matcher. | |
9228 | * language.h (language_get_symbol_name_matcher): Adjust comment. | |
9229 | (ada_lookup_name_info::verbatim_p):: New method. | |
9230 | ||
d4c2a405 PA |
9231 | 2018-01-10 Pedro Alves <palves@redhat.com> |
9232 | ||
9233 | PR gdb/22670 | |
9234 | * ada-lang.c (ada_collect_symbol_completion_matches): If the | |
9235 | minsym's language is language_auto or language_cplus, pass down | |
9236 | language_ada instead. | |
9237 | * symtab.c (compare_symbol_name): Don't frob symbol language here. | |
9238 | ||
8825213e PA |
9239 | 2018-01-10 Pedro Alves <palves@redhat.com> |
9240 | ||
9241 | PR gdb/22670 | |
9242 | * minsyms.c (linkage_name_str): New function. | |
9243 | (iterate_over_minimal_symbols): Use it. | |
9244 | ||
2d97a5d9 JB |
9245 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
9246 | ||
9247 | * NEWS: Document that 'info proc' now works on FreeBSD. | |
9248 | ||
92fce24d JB |
9249 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
9250 | ||
9251 | * configure.ac: Check for kinfo_getfile in libutil. | |
9252 | * configure: Regenerate. | |
9253 | * config.in: Regenerate. | |
9254 | * fbsd-nat.c: Include "fbsd-tdep.h". | |
9255 | (fbsd_fetch_cmdline): New. | |
9256 | (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool | |
9257 | rather than calling error. | |
9258 | (fbsd_info_proc): New. | |
9259 | (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails. | |
9260 | (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails. | |
9261 | (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc". | |
9262 | ||
262f62f5 JB |
9263 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
9264 | ||
9265 | * fbsd-nat.c (struct free_deleter): Remove. | |
9266 | (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>. | |
9267 | ||
b999e203 JB |
9268 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
9269 | ||
9270 | * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return | |
9271 | NULL for an empty pathname. | |
9272 | ||
d2176225 JB |
9273 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
9274 | ||
9275 | * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET) | |
9276 | (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ) | |
9277 | (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW) | |
9278 | (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP) | |
9279 | (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP) | |
9280 | (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD) | |
9281 | (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD) | |
9282 | (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout) | |
9283 | (kinfo_proc_layout_32, kinfo_proc_layout_i386) | |
9284 | (kinfo_proc_layout_64, fbsd_vm_map_entry_flags) | |
9285 | (fbsd_core_info_proc_mappings, fbsd_core_vnode_path) | |
9286 | (fbsd_core_fetch_timeval, fbsd_print_sigset) | |
9287 | (fbsd_core_info_proc_status, fbsd_core_info_proc): New. | |
9288 | (fbsd_init_abi): Install gdbarch "core_info_proc" method. | |
9289 | * fbsd-tdep.h (fbsd_vm_map_entry_flags): New. | |
9290 | ||
9c4ac400 ST |
9291 | 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org> |
9292 | ||
9293 | * gdb/gnu-nat.c: Include <elf.h> and <link.h>. | |
9294 | (gnu_xfer_auxv): New function. | |
9295 | (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is | |
9296 | TARGET_OBJECT_AUXV. | |
9297 | ||
1e5ded6c YQ |
9298 | 2018-01-08 Yao Qi <yao.qi@linaro.org> |
9299 | Simon Marchi <simon.marchi@ericsson.com> | |
9300 | ||
9301 | * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and | |
9302 | common/selftest.c. | |
9303 | (COMMON_OBS): Remove selftest.o. | |
9304 | * configure.ac: Append selftest-arch.c and common/selftest.c to | |
9305 | CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS. | |
9306 | * configure: Re-generated. | |
9307 | * maint.c (maintenance_selftest): Wrap selftests::run_tests with | |
9308 | GDB_SELF_TEST. | |
9309 | (maintenance_info_selftests): Likewise. | |
9310 | ||
04bafb1e XR |
9311 | 2018-01-08 Xavier Roirand <roirand@adacore.com> |
9312 | ||
9313 | * ada-valprint.c (val_print_packed_array_elements): Use | |
9314 | proper number of elements when printing an array indexed | |
9315 | by an enumeration type. | |
9316 | ||
518817b3 SM |
9317 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
9318 | ||
9319 | * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove. | |
9320 | (dw2_get_file_names_reader): Adjust. | |
9321 | (lookup_dwo_signatured_type): Adjust. | |
9322 | (lookup_dwp_signatured_type): Adjust. | |
9323 | (lookup_signatured_type): Adjust. | |
9324 | (create_type_unit_group): Adjust. | |
9325 | (get_type_unit_group): Adjust. | |
9326 | (process_psymtab_comp_unit_reader): Adjust. | |
9327 | (build_type_psymtabs_reader): Adjust. | |
9328 | (scan_partial_symbols): Adjust. | |
9329 | (add_partial_symbol): Adjust. | |
9330 | (add_partial_subprogram): Adjust. | |
9331 | (peek_die_abbrev): Adjust. | |
9332 | (fixup_go_packaging): Adjust. | |
9333 | (process_imported_unit_die): Adjust. | |
9334 | (dwarf2_compute_name): Adjust. | |
9335 | (dwarf2_physname): Adjust. | |
9336 | (read_import_statement): Adjust. | |
9337 | (handle_DW_AT_stmt_list): Adjust. | |
9338 | (read_file_scope): Adjust. | |
9339 | (read_func_scope): Adjust. | |
9340 | (read_lexical_block_scope): Adjust. | |
9341 | (read_call_site_scope): Adjust. | |
9342 | (read_variable): Adjust. | |
9343 | (dwarf2_rnglists_process): Adjust. | |
9344 | (dwarf2_ranges_process): Adjust. | |
9345 | (dwarf2_ranges_read): Adjust. | |
9346 | (dwarf2_get_pc_bounds): Adjust. | |
9347 | (dwarf2_record_block_ranges): Adjust. | |
9348 | (dwarf2_add_field): Adjust. | |
9349 | (dwarf2_add_member_fn): Adjust. | |
9350 | (read_structure_type): Adjust. | |
9351 | (process_structure_scope): Adjust. | |
9352 | (read_enumeration_type): Adjust. | |
9353 | (read_array_type): Adjust. | |
9354 | (mark_common_block_symbol_computed): Adjust. | |
9355 | (read_common_block): Adjust. | |
9356 | (read_namespace_type): Adjust. | |
9357 | (read_namespace): Adjust. | |
9358 | (read_module_type): Adjust. | |
9359 | (read_tag_pointer_type): Adjust. | |
9360 | (read_tag_ptr_to_member_type): Adjust. | |
9361 | (read_tag_string_type): Adjust. | |
9362 | (read_subroutine_type): Adjust. | |
9363 | (read_typedef): Adjust. | |
9364 | (read_base_type): Adjust. | |
9365 | (attr_to_dynamic_prop): Adjust. | |
9366 | (read_subrange_type): Adjust. | |
9367 | (read_unspecified_type): Adjust. | |
9368 | (dwarf2_read_abbrevs): Adjust. | |
9369 | (load_partial_dies): Adjust. | |
9370 | (read_partial_die): Adjust. | |
9371 | (find_partial_die): Adjust. | |
9372 | (guess_partial_die_structure_name): Adjust. | |
9373 | (fixup_partial_die): Adjust. | |
9374 | (read_attribute_value): Adjust. | |
9375 | (read_addr_index): Adjust. | |
9376 | (read_addr_index_from_leb128): Adjust. | |
9377 | (read_str_index): Adjust. | |
9378 | (dwarf2_string_attr): Adjust. | |
9379 | (get_debug_line_section): Adjust. | |
9380 | (dwarf_decode_line_header): Adjust. | |
9381 | (lnp_state_machine::check_line_address): Adjust. | |
9382 | (dwarf_decode_lines_1): Adjust. | |
9383 | (dwarf_decode_lines): Adjust. | |
9384 | (dwarf2_start_symtab): Adjust. | |
9385 | (var_decode_location): Adjust. | |
9386 | (new_symbol_full): Adjust. | |
9387 | (dwarf2_const_value_data): Adjust. | |
9388 | (dwarf2_const_value_attr): Adjust. | |
9389 | (dwarf2_const_value): Adjust. | |
9390 | (die_type): Adjust. | |
9391 | (die_containing_type): Adjust. | |
9392 | (build_error_marker_type): Adjust. | |
9393 | (lookup_die_type): Adjust. | |
9394 | (guess_full_die_structure_name): Adjust. | |
9395 | (anonymous_struct_prefix): Adjust. | |
9396 | (determine_prefix): Adjust. | |
9397 | (dwarf2_name): Adjust. | |
9398 | (follow_die_ref_or_sig): Adjust. | |
9399 | (follow_die_offset): Adjust. | |
9400 | (follow_die_ref): Adjust. | |
9401 | (follow_die_sig_1): Adjust. | |
9402 | (follow_die_sig): Adjust. | |
9403 | (get_signatured_type): Adjust. | |
9404 | (get_DW_AT_signature_type): Adjust. | |
9405 | (decode_locdesc): Adjust. | |
9406 | (dwarf_decode_macros): Adjust. | |
9407 | (cu_debug_loc_section): Adjust. | |
9408 | (fill_in_loclist_baton): Adjust. | |
9409 | (dwarf2_symbol_mark_computed): Adjust. | |
9410 | (init_one_comp_unit): Don't assign | |
9411 | dwarf2_cu::dwarf2_per_objfile. | |
9412 | (set_die_type): Adjust. | |
9413 | ||
ed2dc618 SM |
9414 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
9415 | ||
9416 | * dwarf2read.c (struct mapped_debug_names): Add constructor. | |
9417 | <dwarf2_per_objfile>: New field. | |
9418 | (dwarf2_per_objfile): Remove global. | |
9419 | (get_dwarf2_per_objfile): New function. | |
9420 | (set_dwarf2_per_objfile): New function. | |
9421 | (dwarf2_build_psymtabs_hard): Change objfile parameter to | |
9422 | dwarf2_per_objfile. | |
9423 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
9424 | (read_abbrev_offset): Likewise. | |
9425 | (read_indirect_string): Likewise. | |
9426 | (read_indirect_line_string): Likewise. | |
9427 | (read_indirect_string_at_offset): Likewise. | |
9428 | (read_indirect_string_from_dwz): Likewise. | |
9429 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
9430 | dwarf2_per_objfile. | |
9431 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
9432 | (create_all_comp_units): Change objfile parameter to | |
9433 | dwarf2_per_objfile. | |
9434 | (create_all_type_units): Likewise. | |
9435 | (process_queue): Add dwarf2_per_objfile parameter. | |
9436 | (read_and_check_comp_unit_head): Likewise. | |
9437 | (lookup_dwo_unit_in_dwp): Likewise. | |
9438 | (get_dwp_file): Likewise. | |
9439 | (process_cu_includes): Likewise. | |
9440 | (struct free_dwo_file_cleanup_data): New struct. | |
9441 | (dwarf2_has_info): Use get_dwarf2_per_objfile and | |
9442 | set_dwarf2_per_objfile. | |
9443 | (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter. | |
9444 | (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from | |
9445 | context, adjust calls. | |
9446 | (dw2_instantiate_symtab): Likewise. | |
9447 | (dw2_get_cutu): Add dwarf2_per_objfile parameter. | |
9448 | (dw2_get_cu): Likewise. | |
9449 | (create_cu_from_index_list): Change objfile parameter to | |
9450 | dwarf2_per_objfile. | |
9451 | (create_cus_from_index_list): Get dwarf2_per_objfile from | |
9452 | context, adjust calls. | |
9453 | (create_cus_from_index): Likewise. | |
9454 | (create_signatured_type_table_from_index): Change objfile | |
9455 | parameter to dwarf2_per_objfile. | |
9456 | (create_signatured_type_table_from_debug_names): Change objfile | |
9457 | parameter to dwarf2_per_objfile. | |
9458 | (create_addrmap_from_index): Likewise. | |
9459 | (create_addrmap_from_aranges): Likewise. | |
9460 | (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls. | |
9461 | (dw2_setup): Remove. | |
9462 | (dw2_get_file_names_reader): Get dwarf2_per_objfile from | |
9463 | context. | |
9464 | (dw2_find_last_source_symtab): Get dwarf2_per_objfile using | |
9465 | get_dwarf2_per_objfile. | |
9466 | (dw2_forget_cached_source_info): Likewise. | |
9467 | (dw2_map_symtabs_matching_filename): Likewise. | |
9468 | (struct dw2_symtab_iterator) <index>: Remove. | |
9469 | <dwarf2_per_objfile>: New field. | |
9470 | (dw2_symtab_iter_init): Replace index parameter with | |
9471 | dwarf2_per_objfile. | |
9472 | (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter. | |
9473 | (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust. | |
9474 | (dw2_print_stats): Likewise. | |
9475 | (dw2_dump): Likewise. | |
9476 | (dw2_expand_symtabs_for_function): Likewise. | |
9477 | (dw2_expand_all_symtabs): Likewise. | |
9478 | (dw2_expand_symtabs_with_fullname): Likewise. | |
9479 | (dw2_expand_marked_cus): Replace index and objfile parameters | |
9480 | with dwarf2_per_objfile. | |
9481 | (dw_expand_symtabs_matching_file_matcher): Add | |
9482 | dwarf2_per_objfile parameter and adjust calls. | |
9483 | (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and | |
9484 | adjust calls. | |
9485 | (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup. | |
9486 | (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and | |
9487 | adjust calls. | |
9488 | (create_cus_from_debug_names_list): Replace objfile parameter | |
9489 | with dwarf2_per_objfile and adjust calls. | |
9490 | (create_cus_from_debug_names): Likewise. | |
9491 | (dwarf2_read_debug_names): Likewise. | |
9492 | (mapped_debug_names::namei_to_name): Adjust call. | |
9493 | (dw2_debug_names_iterator::next): Likewise. | |
9494 | (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise. | |
9495 | (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile. | |
9496 | (dw2_debug_names_dump): Likewise. | |
9497 | (dw2_debug_names_expand_symtabs_for_function): Likewise. | |
9498 | (dw2_debug_names_expand_symtabs_matching): Likewise. | |
9499 | (dwarf2_initialize_objfile): Likewise. | |
9500 | (dwarf2_build_psymtabs): Likewise. | |
9501 | (get_abbrev_section_for_cu): Get dwarf2_per_objfile from | |
9502 | this_cu. | |
9503 | (error_check_comp_unit_head): Add dwarf2_per_objfile parameter. | |
9504 | (read_and_check_comp_unit_head): Likewise. | |
9505 | (read_abbrev_offset): Likewise. | |
9506 | (create_debug_type_hash_table): Likewise. | |
9507 | (create_debug_types_hash_table): Likewise. | |
9508 | (create_all_type_units): Replace objfile parameter with | |
9509 | dwarf2_per_objfile. | |
9510 | (add_type_unit): Add dwarf2_per_objfile parameter. | |
9511 | (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter | |
9512 | with dwarf2_per_objfile. | |
9513 | (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu. | |
9514 | (lookup_dwp_signatured_type): Likewise. | |
9515 | (lookup_signatured_type): Likewise. | |
9516 | (read_cutu_die_from_dwo): Likewise. | |
9517 | (init_tu_and_read_dwo_dies): Likewise. | |
9518 | (init_cutu_and_read_dies): Likewise. | |
9519 | (init_cutu_and_read_dies_no_follow): Likewise. | |
9520 | (allocate_type_unit_groups_table): Add objfile parameter. | |
9521 | (create_type_unit_group): Use dwarf2_per_objfile from cu. | |
9522 | (get_type_unit_group): Likewise. | |
9523 | (process_psymtab_comp_unit): Update call. | |
9524 | (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu. | |
9525 | (build_type_psymtabs_1): Add dwarf2_per_objfile parameter. | |
9526 | (print_tu_stats): Likewise. | |
9527 | (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed | |
9528 | in void* parameter. | |
9529 | (build_type_psymtabs): Change objfile parameter to | |
9530 | dwarf2_per_objfile. | |
9531 | (process_skeletonless_type_unit): Use dwarf2_per_objfile | |
9532 | passed in void* parameter. | |
9533 | (process_skeletonless_type_units): Change objfile parameter to | |
9534 | dwarf2_per_objfile. | |
9535 | (set_partial_user): Likewise. | |
9536 | (dwarf2_build_psymtabs_hard): Likewise. | |
9537 | (read_comp_units_from_section): Likewise. | |
9538 | (create_all_comp_units): Likewise. | |
9539 | (scan_partial_symbols): Update calls. | |
9540 | (add_partial_symbol): Likewise. | |
9541 | (dwarf2_read_symtab): Use get_dwarf2_per_objfile. | |
9542 | (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu. | |
9543 | (process_queue): Add dwarf2_per_objfile parameter. | |
9544 | (get_compunit_symtab): Use dwarf2_per_objfile from cu. | |
9545 | (compute_compunit_symtab_includes): Likewise. | |
9546 | (process_cu_includes): Add dwarf2_per_objfile parameter. | |
9547 | (process_full_comp_unit): Use dwarf2_per_objfile from cu. | |
9548 | (process_full_type_unit): Likewise. | |
9549 | (process_imported_unit_die): Update call. | |
9550 | (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu. | |
9551 | (read_file_scope): Likewise. | |
9552 | (allocate_dwo_file_hash_table): Add objfile parameter. | |
9553 | (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter. | |
9554 | (create_cus_hash_table): Likewise. | |
9555 | (create_dwp_hash_table): Likewise. | |
9556 | (create_dwo_unit_in_dwp_v1): Likewise. | |
9557 | (create_dwp_v2_section): Likewise. | |
9558 | (create_dwo_unit_in_dwp_v2): Likewise. | |
9559 | (lookup_dwo_unit_in_dwp): Likewise. | |
9560 | (try_open_dwop_file): Likewise. | |
9561 | (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu. | |
9562 | (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update | |
9563 | cleanup to include a reference to dwarf2_per_objfile. | |
9564 | (open_dwp_file): Add dwarf2_per_objfile parameter. | |
9565 | (open_and_init_dwp_file): Likewise. | |
9566 | (get_dwp_file): Likewise. | |
9567 | (lookup_dwo_cutu): Use dwarf2_per_objfile from cu. | |
9568 | (queue_and_load_all_dwo_tus): Update call. | |
9569 | (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup | |
9570 | data. | |
9571 | (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu. | |
9572 | (dwarf2_ranges_process): Likewise. | |
9573 | (dwarf2_get_pc_bounds): Likewise. | |
9574 | (mark_common_block_symbol_computed): Likewise. | |
9575 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
9576 | (dwarf2_read_abbrevs): Update call. | |
9577 | (read_partial_die): Use dwarf2_per_objfile from cu. | |
9578 | (find_partial_die): Likewise. | |
9579 | (fixup_partial_die): Likewise. | |
9580 | (read_attribute_value): Likewise. | |
9581 | (read_indirect_string_at_offset_from): Add objfile parameter. | |
9582 | (read_indirect_string_at_offset): Add dwarf2_per_objfile | |
9583 | parameter. | |
9584 | (read_indirect_string_from_dwz): Add objfile parameter. | |
9585 | (read_indirect_string): Add objfile parameter. | |
9586 | (read_addr_index_1): Add dwarf2_per_objfile parameter. | |
9587 | (read_addr_index): Use dwarf2_per_objfile from cu. | |
9588 | (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't | |
9589 | call dw2_setup. | |
9590 | (read_str_index): Use dwarf2_per_objfile from cu. | |
9591 | (get_debug_line_section): Likewise. | |
9592 | (read_formatted_entries): Add dwarf2_per_objfile parameter. | |
9593 | (dwarf_decode_line_header): Use dwarf2_per_objfile from cu. | |
9594 | (new_symbol_full): Use dwarf2_per_objfile from cu. | |
9595 | (build_error_marker_type): Likewise. | |
9596 | (lookup_die_type): Likewise. | |
9597 | (determine_prefix): Likewise. | |
9598 | (follow_die_offset): Likewise. | |
9599 | (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile. | |
9600 | (dwarf2_fetch_constant_bytes): Don't call dw2_setup. | |
9601 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
9602 | (dwarf2_get_die_type): Likewise. | |
9603 | (follow_die_sig_1): Use dwarf2_per_objfile from cu. | |
9604 | (get_signatured_type): Likewise. | |
9605 | (get_DW_AT_signature_type): Likewise. | |
9606 | (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter. | |
9607 | (dwarf_decode_macros): Use dwarf2_per_objfile from cu. | |
9608 | (cu_debug_loc_section): Likewise. | |
9609 | (fill_in_loclist_baton): Likewise. | |
9610 | (dwarf2_symbol_mark_computed): Likewise. | |
9611 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
9612 | dwarf2_per_objfile. | |
9613 | (free_cached_comp_units): Use dwarf2_per_objfile passed in void* | |
9614 | parameter. | |
9615 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
9616 | (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu. | |
9617 | (dwarf2_free_objfile): Use get_dwarf2_per_objfile. | |
9618 | (set_die_type): Use dwarf2_free_objfile from cu. | |
9619 | (get_die_type_at_offset): Likewise. | |
9620 | (dwarf2_per_objfile_free): Don't assign global variable. | |
9621 | (debug_names) <constructor>: Add dwarf2_per_objfile | |
9622 | parameter, update m_debugstrlookup construction. | |
9623 | (debug_names::debug_str_lookup): Add dwarf2_per_objfile | |
9624 | parameter. | |
9625 | <m_dwarf2_per_objfile>: New field. | |
9626 | <lookup>: Use m_dwarf2_per_objfile. | |
9627 | (check_dwarf64_offsets): Add dwarf2_per_objfile parameter. | |
9628 | (psyms_seen_size): Likewise. | |
9629 | (write_gdbindex): Replace objfile parameter with | |
9630 | dwarf2_per_objfile. | |
9631 | (write_debug_names): Likewise. | |
9632 | (write_psymtabs_to_index): Likewise. | |
9633 | (save_gdb_index_command): Use get_dwarf2_per_objfile, update | |
9634 | calls. | |
9635 | ||
e3b94546 SM |
9636 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
9637 | ||
9638 | * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove. | |
9639 | <dwarf2_per_objfile>: New field. | |
9640 | (struct dwarf2_per_cu_data) <objfile>: Remove. | |
9641 | <dwarf2_per_objfile>: New field. | |
9642 | (create_cu_from_index_list): Assign dwarf2_per_objfile instead | |
9643 | of objfile. | |
9644 | (create_signatured_type_table_from_index): Likewise. | |
9645 | (create_debug_type_hash_table): Likewise. | |
9646 | (fill_in_sig_entry_from_dwo_entry): Likewise. | |
9647 | (lookup_dwo_unit): Access objfile through dwarf2_per_objfile. | |
9648 | (create_type_unit_group): Assign dwarf2_per_objfile instead of | |
9649 | objfile. | |
9650 | (create_partial_symtab): Access objfile through | |
9651 | dwarf2_per_objfile. | |
9652 | (process_psymtab_comp_unit_reader): Likewise. | |
9653 | (read_comp_units_from_section): Likewise. | |
9654 | (scan_partial_symbols): Likewise. | |
9655 | (add_partial_symbol): Likewise. | |
9656 | (add_partial_subprogram): Likewise. | |
9657 | (peek_die_abbrev): Likewise. | |
9658 | (fixup_go_packaging): Likewise. | |
9659 | (process_full_comp_unit): Likewise. | |
9660 | (process_full_type_unit): Likewise. | |
9661 | (process_imported_unit_die): Likewise. | |
9662 | (dwarf2_compute_name): Likewise. | |
9663 | (dwarf2_physname): Likewise. | |
9664 | (read_import_statement): Likewise. | |
9665 | (create_cus_hash_table): Assign dwarf2_physname instead of | |
9666 | objfile. | |
9667 | (read_func_scope): Access objfile through dwarf2_per_objfile. | |
9668 | (read_lexical_block_scope): Likewise. | |
9669 | (read_call_site_scope): Likewise. | |
9670 | (read_variable): Likewise. | |
9671 | (dwarf2_rnglists_process): Likewise. | |
9672 | (dwarf2_ranges_process): Likewise. | |
9673 | (dwarf2_ranges_read): Likewise. | |
9674 | (dwarf2_record_block_ranges): Likewise. | |
9675 | (dwarf2_add_field): Likewise. | |
9676 | (dwarf2_add_member_fn): Likewise. | |
9677 | (read_structure_type): Likewise. | |
9678 | (process_structure_scope): Likewise. | |
9679 | (read_enumeration_type): Likewise. | |
9680 | (read_array_type): Likewise. | |
9681 | (read_common_block): Likewise. | |
9682 | (read_namespace_type): Likewise. | |
9683 | (read_namespace): Likewise. | |
9684 | (read_module_type): Likewise. | |
9685 | (read_tag_pointer_type): Likewise. | |
9686 | (read_tag_ptr_to_member_type): Likewise. | |
9687 | (read_tag_string_type): Likewise. | |
9688 | (read_subroutine_type): Likewise. | |
9689 | (read_typedef): Likewise. | |
9690 | (read_base_type): Likewise. | |
9691 | (attr_to_dynamic_prop): Likewise. | |
9692 | (read_subrange_type): Likewise. | |
9693 | (read_unspecified_type): Likewise. | |
9694 | (load_partial_dies): Likewise. | |
9695 | (read_partial_die): Likewise. | |
9696 | (find_partial_die): Likewise. | |
9697 | (guess_partial_die_structure_name): Likewise. | |
9698 | (fixup_partial_die): Likewise. | |
9699 | (read_attribute_value): Likewise. | |
9700 | (read_addr_index_from_leb128): Likewise. | |
9701 | (dwarf2_read_addr_index): Likewise. | |
9702 | (dwarf2_string_attr): Likewise. | |
9703 | (lnp_state_machine::check_line_address): Likewise. | |
9704 | (dwarf_decode_lines_1): Likewise. | |
9705 | (dwarf_decode_lines): Likewise. | |
9706 | (dwarf2_start_symtab): Likewise. | |
9707 | (var_decode_location): Likewise. | |
9708 | (new_symbol_full): Likewise. | |
9709 | (dwarf2_const_value_data): Likewise. | |
9710 | (dwarf2_const_value_attr): Likewise. | |
9711 | (dwarf2_const_value): Likewise. | |
9712 | (die_type): Likewise. | |
9713 | (die_containing_type): Likewise. | |
9714 | (lookup_die_type): Likewise. | |
9715 | (guess_full_die_structure_name): Likewise. | |
9716 | (anonymous_struct_prefix): Likewise. | |
9717 | (dwarf2_name): Likewise. | |
9718 | (follow_die_ref_or_sig): Likewise. | |
9719 | (follow_die_offset): Likewise. | |
9720 | (follow_die_ref): Likewise. | |
9721 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
9722 | (dwarf2_fetch_constant_bytes): Likewise. | |
9723 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
9724 | (dwarf2_get_die_type): Likewise. | |
9725 | (follow_die_sig): Likewise. | |
9726 | (decode_locdesc): Likewise. | |
9727 | (dwarf2_per_cu_objfile): Likewise. | |
9728 | (dwarf2_per_cu_text_offset): Likewise. | |
9729 | (init_one_comp_unit): Assign dwarf2_per_objfile instead of | |
9730 | objfile. | |
9731 | (set_die_type): Access objfile through | |
9732 | dwarf2_per_objfile. | |
9733 | ||
b01ba14d SM |
9734 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
9735 | ||
9736 | * valprint.c (converted_character_d): Remove typedef. | |
9737 | (DEF_VEC_O (converted_character_d)): Remove. | |
9738 | (count_next_character): Use std::vector. | |
9739 | (print_converted_chars_to_obstack): Likewise. | |
9740 | (generic_printstr): Likewise. | |
9741 | ||
4d0fdd9b SM |
9742 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
9743 | ||
9744 | * xml-support.h (struct gdb_xml_value): Add constructor. | |
9745 | <value>: Change type to unique_xmalloc_ptr. | |
9746 | (gdb_xml_value_s): Remove typedef. | |
9747 | (DEF_VEC_O (gdb_xml_value_s)): Remove. | |
9748 | (gdb_xml_element_start_handler): Change parameter type to | |
9749 | std::vector. | |
9750 | (xml_find_attribute): Likewise. | |
9751 | * xml-support.c (xml_find_attribute): Change parameter type to | |
9752 | std::vector and adjust. | |
9753 | (gdb_xml_values_cleanup): Remove. | |
9754 | (gdb_xml_parser::start_element): Adjust to std::vector. | |
9755 | (xinclude_start_include): Change paraeter type to std::vector | |
9756 | and adjust. | |
9757 | * btrace.c (check_xml_btrace_version): Likewise. | |
9758 | (parse_xml_btrace_block): Likewise. | |
9759 | (parse_xml_btrace_pt_config_cpu): Likewise. | |
9760 | (parse_xml_btrace_pt): Likewise. | |
9761 | (parse_xml_btrace_conf_bts): Likewise. | |
9762 | (parse_xml_btrace_conf_pt): Likewise. | |
9763 | * memory-map.c (memory_map_start_memory): Likewise. | |
9764 | (memory_map_start_property): Likewise. | |
9765 | * osdata.c (osdata_start_osdata): Likewise. | |
9766 | (osdata_start_item): Likewise. | |
9767 | (osdata_start_column): Likewise. | |
9768 | * remote.c (start_thread): Likewise. | |
9769 | * solib-aix.c (library_list_start_library): Likewise. | |
9770 | (library_list_start_list): Likewise. | |
9771 | * solib-svr4.c (library_list_start_library): Likewise. | |
9772 | (svr4_library_list_start_list): Likewise. | |
9773 | * solib-target.c (library_list_start_segment): Likewise. | |
9774 | (library_list_start_section): Likewise. | |
9775 | (library_list_start_library): Likewise. | |
9776 | (library_list_start_list): Likewise. | |
9777 | * tracepoint.c (traceframe_info_start_memory): Likewise. | |
9778 | (traceframe_info_start_tvar): Likewise. | |
9779 | * xml-syscall.c (syscall_start_syscall): Likewise. | |
9780 | * xml-tdesc.c (tdesc_start_target): Likewise. | |
9781 | (tdesc_start_feature): Likewise. | |
9782 | (tdesc_start_reg): Likewise. | |
9783 | (tdesc_start_union): Likewise. | |
9784 | (tdesc_start_struct): Likewise. | |
9785 | (tdesc_start_flags): Likewise. | |
9786 | (tdesc_start_enum): Likewise. | |
9787 | (tdesc_start_field): Likewise. | |
9788 | (tdesc_start_enum_value): Likewise. | |
9789 | (tdesc_start_vector): Likewise. | |
9790 | ||
f979c73f SM |
9791 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
9792 | ||
9793 | * extension.h (struct xmethod_worker) <clone>: Remove. | |
9794 | * python/py-xmethods.c (struct python_xmethod_worker) <clone>: | |
9795 | Remove. | |
9796 | (python_xmethod_worker::clone): Remove. | |
9797 | * valops.c (find_overload_match): Use std::move instead of | |
9798 | clone. | |
9799 | ||
ba18742c SM |
9800 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
9801 | ||
9802 | * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h. | |
9803 | (struct extension_language_ops) <clone_xmethod_worker_data>: Remove. | |
9804 | <free_xmethod_worker_data>: Remove. | |
9805 | <get_matching_xmethod_workers>: Chance VEC to std::vector. | |
9806 | <get_xmethod_arg_types>: Remove. | |
9807 | <get_xmethod_result_type>: Remove. | |
9808 | <invoke_xmethod>: Remove. | |
9809 | * extension.c (new_xmethod_worker): Remove. | |
9810 | (clone_xmethod_worker): Remove. | |
9811 | (get_matching_xmethod_workers): Return void, pass std::vector by | |
9812 | pointer. | |
9813 | (get_xmethod_arg_types): Rename to... | |
9814 | (xmethod_worker::get_arg_types): ... this, and adjust. | |
9815 | (get_xmethod_result_type): Rename to... | |
9816 | (xmethod_worker::get_result_type): ... this, and adjust. | |
9817 | (invoke_xmethod): Remove. | |
9818 | (free_xmethod_worker): Remove. | |
9819 | (free_xmethod_worker_vec): Remove. | |
9820 | * extension.h (enum ext_lang_rc): Move here from | |
9821 | extension-priv.h. | |
9822 | (struct xmethod_worker): Add constructor and destructor. | |
9823 | <data>: Remove. | |
9824 | <value>: Remove. | |
9825 | <invoke, clone, do_get_result_type, do_get_arg_types>: New | |
9826 | virtual pure methods. | |
9827 | <get_arg_types, get_result_type>: New methods. | |
9828 | (xmethod_worker_ptr): Remove typedef. | |
9829 | (DEF_VEC_P (xmethod_worker_ptr)): Remove. | |
9830 | (xmethod_worker_vec): Remove typedef. | |
9831 | (xmethod_worker_up): New typedef. | |
9832 | (invoke_xmethod): Remove. | |
9833 | (clone_xmethod_worker): Remove. | |
9834 | (free_xmethod_worker): Remove. | |
9835 | (free_xmethod_worker_vec): Remove. | |
9836 | (get_xmethod_arg_types): Remove. | |
9837 | (get_xmethod_result_type): Remove. | |
9838 | * valops.c (find_method_list): Use std::vector, don't use | |
9839 | intermediate vector. | |
9840 | (value_find_oload_method_list): Use std::vector. | |
9841 | (find_overload_match): Use std::vector. | |
9842 | (find_oload_champ): Use std::vector. | |
9843 | * value.c (value_free): Use operator delete. | |
9844 | (value_of_xmethod): Rename to... | |
9845 | (value_from_xmethod): ... this. Don't assign | |
9846 | xmethod_worker::value, take rvalue-reference. | |
9847 | (result_type_of_xmethod): Adjust. | |
9848 | (call_xmethod): Adjust. | |
9849 | * value.h: Include extension.h. | |
9850 | (struct xmethod_worker): Don't forward-declare. | |
9851 | (value_of_xmethod): Rename to... | |
9852 | (value_from_xmethod): ... this, take rvalue-reference. | |
9853 | * python/py-xmethods.c (struct gdbpy_worker_data): Rename to... | |
9854 | (struct python_xmethod_worker): ... this, add constructor and | |
9855 | destructor. | |
9856 | <invoke, clone, do_get_arg_types, do_get_result_type>: Implement. | |
9857 | (gdbpy_free_xmethod_worker_data): Rename to... | |
9858 | (python_xmethod_worker::~python_xmethod_worker): ... this and | |
9859 | adjust. | |
9860 | (gdbpy_clone_xmethod_worker_data): Rename to... | |
9861 | (python_xmethod_worker::clone): ... this and adjust. | |
9862 | (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use | |
9863 | temporary vector. | |
9864 | (gdbpy_get_xmethod_arg_types): Rename to... | |
9865 | (python_xmethod_worker::do_get_arg_types): ... this and adjust. | |
9866 | (gdbpy_get_xmethod_result_type): Rename to... | |
9867 | (python_xmethod_worker::do_get_result_type): ... this and | |
9868 | adjust. | |
9869 | (gdbpy_invoke_xmethod): Rename to... | |
9870 | (python_xmethod_worker::invoke): ... this and adjust. | |
9871 | (new_python_xmethod_worker): Rename to... | |
9872 | (python_xmethod_worker::python_xmethod_worker): ... this and | |
9873 | adjust. | |
9874 | * python/python-internal.h (gdbpy_clone_xmethod_worker_data): | |
9875 | Remove. | |
9876 | (gdbpy_free_xmethod_worker_data): Remove. | |
9877 | (gdbpy_get_matching_xmethod_workers): Use std::vector. | |
9878 | (gdbpy_get_xmethod_arg_types): Remove. | |
9879 | (gdbpy_get_xmethod_result_type): Remove. | |
9880 | (gdbpy_invoke_xmethod): Remove. | |
9881 | * python/python.c (python_extension_ops): Remove obsolete | |
9882 | callbacks. | |
9883 | ||
e379cee6 PA |
9884 | 2018-01-05 Pedro Alves <palves@redhat.com> |
9885 | ||
9886 | PR gdb/18653 | |
9887 | * common/signals-state-save-restore.c | |
9888 | (save_original_signals_state): New parameter 'quiet'. Warn if we | |
9889 | find a custom handler preinstalled, instead of internal erroring. | |
9890 | But only warn if !quiet. | |
9891 | * common/signals-state-save-restore.h | |
9892 | (save_original_signals_state): New parameter 'quiet'. | |
9893 | * main.c (captured_main_1): Move save_original_signals_state call | |
9894 | after option handling, and pass QUIET. | |
9895 | ||
a655456c PA |
9896 | 2018-01-05 Pedro Alves <palves@redhat.com> |
9897 | ||
9898 | * spu-tdep.c (spu_catch_start): Pass | |
9899 | symbol_name_match_type::SEARCH_NAME to block_lookup_symbol. | |
9900 | ||
de63c46b PA |
9901 | 2018-01-05 Pedro Alves <palves@redhat.com> |
9902 | ||
9903 | PR gdb/22670 | |
9904 | * ada-lang.c (literal_symbol_name_matcher): New function. | |
9905 | (ada_get_symbol_name_matcher): Use it for | |
9906 | symbol_name_match_type::SEARCH_NAME. | |
9907 | * block.c (block_lookup_symbol): New parameter 'match_type'. Pass | |
9908 | it down instead of assuming symbol_name_match_type::FULL. | |
9909 | * block.h (block_lookup_symbol): New parameter 'match_type'. | |
9910 | * c-valprint.c (print_unpacked_pointer): Use | |
9911 | lookup_symbol_search_name instead of lookup_symbol. | |
9912 | * compile/compile-object-load.c (get_out_value_type): Pass down | |
9913 | symbol_name_match_type::SEARCH_NAME. | |
9914 | * cp-namespace.c (cp_basic_lookup_symbol): Pass down | |
9915 | symbol_name_match_type::FULL. | |
9916 | * cp-support.c (cp_get_symbol_name_matcher): Handle | |
9917 | symbol_name_match_type::SEARCH_NAME. | |
9918 | * infrun.c (insert_exception_resume_breakpoint): Use | |
9919 | lookup_symbol_search_name. | |
9920 | * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name. | |
9921 | * psymtab.c (maintenance_check_psymtabs): Use | |
9922 | symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME. | |
9923 | * stack.c (print_frame_args): Use lookup_symbol_search_name and | |
9924 | SYMBOL_SEARCH_NAME. | |
9925 | * symtab.c (lookup_local_symbol): Don't demangle the lookup name | |
9926 | if symbol_name_match_type::SEARCH_NAME. | |
9927 | (lookup_symbol_in_language): Pass down | |
9928 | symbol_name_match_type::FULL. | |
9929 | (lookup_symbol_search_name): New. | |
9930 | (lookup_language_this): Pass down | |
9931 | symbol_name_match_type::SEARCH_NAME. | |
9932 | (lookup_symbol_aux, lookup_local_symbol): New parameter | |
9933 | 'match_type'. Pass it down. | |
9934 | * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator. | |
9935 | (lookup_symbol_search_name): New declaration. | |
9936 | (lookup_symbol_in_block): New 'match_type' parameter. | |
9937 | ||
f98fc17b PA |
9938 | 2018-01-05 Pedro Alves <palves@redhat.com> |
9939 | ||
9940 | PR gdb/22670 | |
9941 | * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of | |
9942 | ada_lookup_symbol. | |
9943 | (ada_lookup_symbol): Reimplement in terms of | |
9944 | ada_lookup_symbol_list, bits factored out from | |
9945 | ada_lookup_encoded_symbol. | |
9946 | ||
342f8240 JB |
9947 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
9948 | ||
9949 | * ada-exp.y (write_object_renaming): When subscripting an array | |
9950 | using a symbol as the index, pass the block in call to | |
9951 | ada_lookup_encoded_symbol when looking that symbol up. | |
9952 | ||
7150d33c JG |
9953 | 2018-01-05 Jerome Guitton <guitton@adacore.com> |
9954 | ||
9955 | * ada-lang.c (ada_array_length): Use ada_index_type instead of | |
9956 | TYPE_INDEX_TYPE. | |
9957 | ||
cc0e770c JB |
9958 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
9959 | ||
9960 | * ada-lang.c (ada_to_fixed_value_create): Add handling of | |
9961 | the case where VALUE_LVAL (val0) is not lval_memory. | |
9962 | ||
f79da888 | 9963 | 2018-01-05 Xavier Roirand <roirand@adacore.com> |
e3861a03 XR |
9964 | |
9965 | * ada-valprint.c (print_optional_low_bound): Handle | |
9966 | character-indexed array printing like boolean-indexed array | |
9967 | printing. | |
9968 | ||
cd385f94 JB |
9969 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
9970 | ||
9971 | * NEWS: Create a new section for the next release branch. | |
9972 | Rename the section of the current branch, now that it has | |
9973 | been cut. | |
9974 | ||
09aca949 JB |
9975 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
9976 | ||
9977 | GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7): | |
9978 | * version.in: Bump version to 8.1.50.DATE-git. | |
9979 | ||
9f757bf7 XR |
9980 | 2018-01-03 Xavier Roirand <roirand@adacore.com> |
9981 | ||
9982 | * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>: | |
9983 | Add field. | |
9984 | * ada-lang.c (struct exception_support_info) <catch_handlers_sym>: | |
9985 | Add field. | |
9986 | (default_exception_support_info) <catch_handlers_sym>: Add field. | |
9987 | (exception_support_info_fallback) <catch_handlers_sym>: Add field. | |
9988 | (ada_exception_name_addr_1): Add "catch handlers" handling. | |
9989 | (ada_exception_catchpoint_cond_string) <ex>: New parameter. | |
9990 | Update all callers. | |
9991 | (create_excep_cond_exprs) <ex>: Add parameter. | |
9992 | (re_set_exception): Update create_excep_cond_exprs call. | |
9993 | (print_it_exception, print_one_exception, print_mention_exception) | |
9994 | (print_recreate_exception): Add "catch handler" handling. | |
9995 | (allocate_location_catch_handlers, re_set_catch_handlers) | |
9996 | (check_status_catch_handlers, print_it_catch_handlers) | |
9997 | (print_one_catch_handlers, print_mention_catch_handlers) | |
9998 | (print_recreate_catch_handlers): New function. | |
9999 | (catch_handlers_breakpoint_ops): New variable. | |
10000 | (catch_ada_exception_command_split) <is_catch_handlers_cmd>: | |
10001 | Add parameter. Add "catch handler" handling. | |
10002 | (ada_exception_sym_name, ada_exception_breakpoint_ops): | |
10003 | Add "catch handler" handling. | |
10004 | (ada_exception_catchpoint_cond_string): Add "catch handler" | |
10005 | handling. | |
10006 | (create_ada_exception_catchpoint): Update create_excep_cond_exprs | |
10007 | call. | |
10008 | (catch_ada_handlers_command): New function. | |
10009 | (initialize_ada_catchpoint_ops): Initialize "catch handlers" | |
10010 | operations structure. | |
10011 | (_initialize_ada_language): Add "catch handlers" command entry. | |
10012 | * NEWS: Document "catch handlers" feature. | |
10013 | ||
9fe561ab JB |
10014 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
10015 | ||
10016 | * ada-lang.c (ada_value_slice_from_ptr): Take array stride into | |
10017 | account when creating the array type of the slice. | |
10018 | (ada_value_slice): Likewise. | |
10019 | ||
a405673c JB |
10020 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
10021 | ||
10022 | * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>: | |
10023 | New enum value. | |
10024 | (create_array_type_with_stride): Add byte_stride_prop parameter. | |
10025 | * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>: | |
10026 | New parameter. Update all callers in this file. | |
10027 | (array_type_has_dynamic_stride): New function. | |
10028 | (is_dynamic_type_internal, resolve_dynamic_array): Add handling | |
10029 | of arrays with dynamic byte strides. | |
10030 | * dwarf2read.c (read_array_type): Add support for dynamic | |
10031 | DW_AT_byte_stride attributes. | |
10032 | ||
74a2f8ff JB |
10033 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
10034 | ||
10035 | * dwarf2read.c (read_unspecified_type): Treat | |
10036 | DW_TAG_enumeration_type DIEs from Ada units as stubs. | |
10037 | ||
e2882c85 JB |
10038 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
10039 | ||
10040 | Update copyright year range in all GDB files. | |
10041 | ||
1690bb24 JB |
10042 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
10043 | ||
10044 | * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp | |
10045 | and gdb/testsuite/gdb.base/step-line.c. | |
10046 | ||
0f0c98a8 JB |
10047 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
10048 | ||
10049 | * copyright.py (main): Dump the contents of | |
10050 | MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND, | |
10051 | even if BY_HAND is empty. | |
10052 | ||
82e1e79a JB |
10053 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
10054 | ||
10055 | * top.c (print_gdb_version): Update Copyright year in version | |
10056 | message. | |
10057 | ||
053f54e5 | 10058 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
47fea877 | 10059 | |
053f54e5 | 10060 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017. |
47fea877 | 10061 | |
053f54e5 | 10062 | For older changes see ChangeLog-2017. |
c906108c SS |
10063 | \f |
10064 | Local Variables: | |
10065 | mode: change-log | |
10066 | left-margin: 8 | |
10067 | fill-column: 74 | |
10068 | version-control: never | |
57da7796 | 10069 | coding: utf-8 |
c906108c | 10070 | End: |