Commit | Line | Data |
---|---|---|
f67ffa6a AB |
1 | 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com> |
2 | ||
3 | (NEWS): Mention changes to frame related commands. | |
4 | * cli/cli-decode.c (add_cmd_suppress_notification): New function. | |
5 | (add_prefix_cmd_suppress_notification): New function. | |
6 | (add_com_suppress_notification): Call | |
7 | add_cmd_suppress_notification. | |
8 | * command.h (add_cmd_suppress_notification): Declare. | |
9 | (add_prefix_cmd_suppress_notification): Declare. | |
10 | * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include. | |
11 | (parse_frame_specification): Moved from stack.c, with | |
12 | simplification to handle a single argument. | |
13 | (mi_cmd_stack_select_frame): Use parse_frame_specification, the | |
14 | switch to the selected frame. Add a header comment. | |
15 | * stack.c: Remove 'safe-ctype.h' include. | |
16 | (find_frame_for_function): Add declaration. | |
17 | (find_frame_for_address): New function. | |
18 | (parse_frame_specification): Moved into mi/mi-cmd-stack.c. | |
19 | (frame_selection_by_function_completer): New function. | |
20 | (info_frame_command): Rename to... | |
21 | (info_frame_command_core): ...this, and update parameter types. | |
22 | (select_frame_command): Rename to... | |
23 | (select_frame_command_core): ...this, and update parameter types. | |
24 | (frame_command): Rename to... | |
25 | (frame_command_core): ...this, and update parameter types. | |
26 | (class frame_command_helper): New class to wrap implementations of | |
27 | frame related sub-commands. | |
28 | (frame_apply_cmd_list): New static global. | |
29 | (frame_cmd_list): Make static. | |
30 | (select_frame_cmd_list): New global for sub-commands. | |
31 | (info_frame_cmd_list): New global for sub-commands. | |
32 | (_initialize_stack): Register sub-commands for 'frame', | |
33 | 'select-frame', and 'info frame'. Update 'frame apply' commands | |
34 | to use frame_apply_cmd_list. Move function local static | |
35 | frame_apply_list to file static frame_apply_cmd_list for | |
36 | consistency. | |
37 | * stack.h (select_frame_command): Delete declarationn. | |
38 | (select_frame_for_mi): Declare new function. | |
39 | ||
d354055e AB |
40 | 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com> |
41 | ||
42 | * riscv-tdep.c (riscv_insn::decode): Decode c.lui. | |
43 | (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI, | |
44 | and NOP. | |
45 | ||
85392414 SM |
46 | 2018-09-26 Simon Marchi <simon.marchi@ericsson.com> |
47 | ||
48 | * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove. | |
49 | ||
896ee098 TT |
50 | 2018-09-26 Tom Tromey <tom@tromey.com> |
51 | ||
52 | * valops.c (auto_abandon): Remove dead code. | |
53 | ||
57dbb3af TT |
54 | 2018-09-26 Tom Tromey <tom@tromey.com> |
55 | ||
56 | * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s. | |
57 | ||
b5a9bfbe TT |
58 | 2018-09-24 Tom Tromey <tom@tromey.com> |
59 | ||
60 | * common/pathstuff.c (get_standard_cache_dir): Make | |
61 | "xdg_cache_home" and "home" const. | |
62 | * top.c (init_history): Make "tmpenv" const. | |
63 | * main.c (get_init_files): Make "homedir" const. | |
64 | ||
ae778caf TT |
65 | 2018-09-23 Tom Tromey <tom@tromey.com> |
66 | ||
67 | PR python/18852: | |
68 | * python/py-param.c (get_set_value): Use gdbpy_handle_exception. | |
69 | ||
2b4ad2fe TT |
70 | 2018-09-23 Tom Tromey <tom@tromey.com> |
71 | ||
72 | * python/py-function.c (fnpy_call): Use gdbpy_handle_exception. | |
73 | * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception. | |
74 | * python/python-internal.h (gdbpy_handle_exception): Declare. | |
75 | * python/py-utils.c (gdbpy_handle_exception): New function. | |
76 | ||
fd3ba736 TT |
77 | 2018-09-23 Tom Tromey <tom@tromey.com> |
78 | ||
79 | PR python/17284: | |
80 | * python/py-type.c (typy_template_argument): Check for negative | |
81 | argument number. | |
82 | ||
39a24317 TT |
83 | 2018-09-23 Tom Tromey <tom@tromey.com> |
84 | ||
85 | PR python/14062: | |
86 | * python/python.c (gdbpy_run_events): Do not ignore exceptions. | |
87 | ||
f5769a2c TT |
88 | 2018-09-23 Tom Tromey <tom@tromey.com> |
89 | ||
90 | PR python/18170: | |
91 | * python/py-value.c (valpy_int): Allow conversion from pointer | |
92 | type. | |
93 | ||
1c1e54f6 TT |
94 | 2018-09-23 Tom Tromey <tom@tromey.com> |
95 | ||
96 | PR python/20126: | |
97 | * python/py-value.c (valpy_int): Respect type sign. | |
98 | ||
fb4fa946 TT |
99 | 2018-09-23 Tom Tromey <tom@tromey.com> |
100 | ||
101 | PR python/18352; | |
102 | * python/py-value.c (valpy_float): Allow conversions from int or | |
103 | char. | |
104 | (valpy_int, valpy_long): Allow conversions from float. | |
105 | ||
65773341 TT |
106 | 2018-09-23 Tom Tromey <tom@tromey.com> |
107 | ||
108 | * ctf.c (ctf_start): Use gdb_fopen_cloexec. | |
109 | * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec. | |
110 | ||
1db88d22 RO |
111 | 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
112 | ||
113 | * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize | |
114 | __sighndlr. | |
115 | * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise. | |
116 | ||
a44294f5 JT |
117 | 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk> |
118 | ||
119 | * windows-nat.c (windows_nat_target::wait): Remove a spurious | |
120 | target_terminal::ours(). | |
121 | ||
0c0a40e0 SM |
122 | 2018-09-23 Simon Marchi <simon.marchi@ericsson.com> |
123 | ||
124 | * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type | |
125 | of vl to ULONGEST. | |
126 | ||
4daf1902 YS |
127 | 2018-09-21 Yacov Simhony <ysimhony@gmail.com> |
128 | ||
129 | * breakpoint.c (update_inserted_breakpoint_locations): Remove | |
130 | redundant condition. | |
131 | ||
c475f569 RO |
132 | 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
133 | ||
134 | * proc-utils.h (PROC_CTL_WORD_TYPE): Remove. | |
135 | ||
136 | * procfs.c: Don't check for PR_MODEL_NATIVE definition. | |
137 | * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references. | |
138 | * sol-thread.c (ps_pdmodel): Don't guard definition. | |
139 | ||
140 | * procfs.c: Fix formatting. | |
141 | ||
142 | * procfs.c (sysset_t_alloc): Remove. | |
143 | (create_procinfo): Use XNEW instead of sysset_t_alloc. | |
144 | (procfs_debug_inferior): Likewise. | |
145 | (procfs_set_exec_trap): Likewise. | |
146 | (proc_set_traced_sysentry): Don't allocate argp dynamically. | |
147 | (proc_set_traced_sysexit): Likewise. | |
148 | ||
149 | * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning. | |
150 | (dead_procinfo): Likewise. | |
151 | (proc_warn): Likewise. | |
152 | (proc_error): Likewise. | |
153 | (proc_get_LDT_entry): Likewise. | |
154 | (do_attach): Likewise. | |
155 | (procfs_target::pid_to_str): Likewise. | |
156 | (iterate_over_mappings): Likewise. | |
157 | ||
158 | * procfs.c (create_procinfo): Fix ARI warning. | |
159 | (proc_get_status): Likewise. | |
160 | (proc_stop_process): Likewise. | |
161 | (proc_run_process): Likewise. | |
162 | (proc_kill): Likewise. | |
163 | (proc_get_LDT_entry): Likewise. | |
164 | (procfs_find_LDT_entry): Likewise. | |
165 | (proc_update_threads): Likewise. | |
166 | (proc_iterate_over_threads): Likewise. | |
167 | (do_attach): Likewise. | |
168 | (procfs_xfer_memory): Likewise. | |
169 | (invalidate_cache): Likewise. | |
170 | (procfs_target::resume): Likewise. | |
171 | (procfs_init_inferior): Likewise. | |
172 | (procfs_set_exec_trap): Likewise. | |
173 | (procfs_target::thread_alive): Likewise. | |
174 | (procfs_target::pid_to_exec_file): Likewise. | |
175 | (iterate_over_mappings): Likewise. | |
176 | (procfs_target::make_corefile_notes): Likewise. | |
177 | * sol-thread.c (sol_thread_target::thread_alive): Likewise. | |
178 | ||
179 | * procfs.c (procfs_find_LDT_entry): Silence ARI warning. | |
180 | (procfs_find_LDT_entry): Likewise. | |
181 | * sol-thread.c (ps_lgetLDT): Likewise. | |
182 | ||
4206c05e RO |
183 | 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
184 | ||
185 | PR tdep/17903 | |
186 | * procfs.c (procfs_target): Declare pid_to_exec_file. | |
187 | (procfs_target::pid_to_exec_file): New. | |
188 | ||
3d282ac3 RO |
189 | 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
190 | ||
191 | * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1 | |
192 | renaming. | |
193 | Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1, | |
194 | AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2. | |
195 | ||
8c93fae6 RO |
196 | 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
197 | ||
198 | * i386-v4-nat.c (regmap, supply_gregset, fill_gregset) | |
199 | (supply_fpregset, fill_fpregset): Move ... | |
200 | * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here. | |
201 | Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards. | |
202 | Remove references to ioctl-based procfs. | |
203 | Include <sys/reg.h>. | |
204 | Remove PR_MODEL_NATIVE guards. | |
205 | * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o. | |
206 | * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c. | |
207 | ||
79b32f4a XR |
208 | 2018-09-19 Xavier Roirand <roirand@adacore.com> |
209 | ||
210 | PR gdb/20981: | |
211 | * solib-darwin.c (darwin_get_dyld_bfd): New function. | |
212 | (darwin_solib_get_all_image_info_addr_at_init): Update call. | |
213 | (darwin_solib_create_inferior_hook): Handle unrelocated dyld. | |
214 | ||
07147793 JB |
215 | 2018-09-19 John Baldwin <jhb@FreeBSD.org> |
216 | ||
217 | * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix. | |
218 | (fbsd_print_sockaddr_in6): Likewise. | |
219 | ||
23be8da7 RB |
220 | 2018-09-19 Richard Bunt <richard.bunt@arm.com> |
221 | Chris January <chris.january@arm.com> | |
222 | ||
223 | * eval.c (skip_undetermined_arglist): Skip argument list helper. | |
224 | (evaluate_subexp_standard): Return a dummy type when | |
225 | honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the | |
226 | OP_F77_UNDETERMINED_ARGLIST case. | |
227 | * expression.h (enum noside): Update comment. | |
228 | ||
7307a73a RO |
229 | 2018-09-19 George Vasick <george.vasick@oracle.com> |
230 | ||
231 | * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1. | |
232 | ||
13db92d3 RO |
233 | 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com> |
234 | April Chin <april.chin@oracle.com> | |
235 | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
236 | ||
237 | * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and | |
238 | uint_t lwpid_t. | |
239 | (create_procinfo): Print pids in /proc without leading zeros. | |
240 | ||
3d50f170 SL |
241 | 2018-09-18 Sandra Loosemore <sandra@codesourcery.com> |
242 | ||
243 | * nios2-tdep.c (nios2_gcc_target_options): New. | |
244 | (nios2_gdb_arch_init): Install new hook. | |
245 | ||
b567ca63 SM |
246 | 2018-09-18 Simon Marchi <simon.marchi@ericsson.com> |
247 | ||
248 | * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch: | |
249 | New file. | |
250 | * update-gnulib.sh: Apply patch. | |
251 | * configure: Re-generate. | |
252 | ||
73f1bd76 JB |
253 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
254 | ||
255 | * infcmd.c (_initialize_infcmd): Remove "running" from "info proc" | |
256 | description. Make "info proc" command descriptions more | |
257 | consistent. | |
258 | ||
8b113111 JB |
259 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
260 | ||
261 | * NEWS: Mention 'info proc files' command. | |
262 | ||
7e69672e JB |
263 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
264 | ||
265 | * fbsd-nat.c (fbsd_nat_target::info_proc): List open file | |
266 | descriptors for IP_FILES and IP_ALL. | |
267 | ||
57c2a98a JB |
268 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
269 | ||
270 | * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN) | |
271 | (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER) | |
272 | (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE) | |
273 | (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE) | |
274 | (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE) | |
275 | (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS) | |
276 | (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT) | |
277 | (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE) | |
278 | (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ) | |
279 | (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND) | |
280 | (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC) | |
281 | (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT) | |
282 | (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC) | |
283 | (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR) | |
284 | (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK) | |
285 | (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX) | |
286 | (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM) | |
287 | (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP) | |
288 | (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines. | |
289 | (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6) | |
290 | (struct fbsd_sockaddr_un): New types. | |
291 | (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto) | |
292 | (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6) | |
293 | (fbsd_info_proc_files_header, fbsd_info_proc_files_entry) | |
294 | (fbsd_core_info_proc_files): New functions. | |
295 | (fbsd_core_info_proc): List open file descriptors for IP_FILES and | |
296 | IP_ALL. | |
297 | * fbsd-tdep.h (fbsd_info_proc_files_header) | |
298 | (fbsd_info_proc_files_entry): New. | |
299 | ||
e98ee8c4 JB |
300 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
301 | ||
302 | * defs.h (enum info_proc_what) [IP_FILES]: New value. | |
303 | * infcmd.c (info_proc_cmd_files): New function. | |
304 | (_initialize_infcmd): Register 'info proc files' command. | |
305 | ||
725e2999 JB |
306 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
307 | ||
308 | * gnulib/aclocal-m4-deps.mk: Re-generate. | |
309 | * gnulib/aclocal.m4: Re-generate. | |
310 | * gnulib/config.in: Re-generate. | |
311 | * gnulib/configure: Re-generate. | |
312 | * gnulib/import/Makefile.am: Re-generate. | |
313 | * gnulib/import/Makefile.in: Re-generate. | |
314 | * gnulib/import/m4/gnulib-cache.m4: Re-generate. | |
315 | * gnulib/import/m4/gnulib-comp.m4: Re-generate. | |
316 | * gnulib/import/arpa_inet.in.h: New file. | |
317 | * gnulib/import/inet_ntop.c: New file. | |
318 | * gnulib/import/m4/arpa_inet_h.m4: New file. | |
319 | * gnulib/import/m4/inet_ntop.m4: New file. | |
320 | * gnulib/import/m4/netinet_in_h.m4: New file. | |
321 | * gnulib/import/m4/socklen.m4: New file. | |
322 | * gnulib/import/m4/sockpfaf.m4: New file. | |
323 | * gnulib/import/m4/stdalign.m4: New file. | |
324 | * gnulib/import/m4/sys_uio_h.m4: New file. | |
325 | * gnulib/import/netinet_in.in.h: New file. | |
326 | * gnulib/import/stdalign.in.h: New file. | |
327 | * gnulib/import/sys_socket.c: New file. | |
328 | * gnulib/import/sys_socket.in.h: New file. | |
329 | * gnulib/import/sys_uio.in.h: New file. | |
330 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop | |
331 | module. | |
332 | ||
2afffa7f JB |
333 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
334 | ||
335 | * gnulib/aclocal-m4-deps.mk: New file. | |
336 | * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk" | |
337 | deterministically. | |
338 | ||
9f235e09 JB |
339 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
340 | ||
341 | * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of | |
342 | KVE_PATH. | |
343 | ||
40f03055 TT |
344 | 2018-09-18 Tom Tromey <tom@tromey.com> |
345 | ||
346 | * compile/compile-object-load.c (struct | |
347 | link_hash_table_cleanup_data): Add constructor and destructor. | |
348 | Use DISABLE_COPY_AND_ASSIGN. | |
349 | (~link_hash_table_cleanup_data): Rename from | |
350 | link_hash_table_free. Now a destructor. | |
351 | (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups. | |
352 | ||
c9e0a7e3 TT |
353 | 2018-09-18 Tom Tromey <tom@tromey.com> |
354 | ||
355 | * compile/compile-object-run.c (do_module_cleanup): Use delete. | |
356 | * compile/compile-object-load.c (struct munmap_list): Move to | |
357 | header file. | |
358 | (munmap_list::add): Rename from munmap_list_add; rewrite. | |
359 | (munmap_list::~munmap_list): Rename from munmap_list_free. | |
360 | (munmap_listp_free_cleanup): Remove. | |
361 | (compile_object_load): Update. | |
362 | * compile/compile-object-load.h (struct munmap_list): Move from | |
363 | compile-object-load.c. Rewrite. | |
364 | ||
3ff2c72e AH |
365 | 2018-09-18 Alan Hayward <alan.hayward@arm.com> |
366 | ||
367 | * aarch64-tdep.c (pass_in_v): Use register size. | |
368 | (aarch64_extract_return_value): Likewise. | |
369 | (aarch64_store_return_value): Likewise. | |
370 | ||
206c1947 RO |
371 | 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
372 | ||
373 | * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to | |
374 | rlim_t. | |
375 | ||
6eb5dbce PW |
376 | 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
377 | ||
378 | * python/lib/gdb/command/frame_filters.py (EnableFrameFilter): | |
379 | Fix short help line. | |
380 | ||
ae292b3a TT |
381 | 2018-09-17 Tom Tromey <tom@tromey.com> |
382 | ||
383 | PR python/20445: | |
384 | * configure: Rebuild. | |
385 | * configure.ac: Conditionally use -DNDEBUG for Python. | |
386 | ||
da658607 TT |
387 | 2018-09-17 Tom Tromey <tom@tromey.com> |
388 | ||
389 | * configure: Rebuild. | |
390 | * configure.ac: Use gmp as a library dependency when checking for | |
391 | mpfr. | |
392 | ||
d35da542 PA |
393 | 2018-09-17 Pedro Alves <palves@redhat.com> |
394 | ||
395 | * python/py-inferior.c (find_inferior_object): Delete. | |
396 | ||
461464f2 SM |
397 | 2018-09-17 Simon Marchi <simon.marchi@ericsson.com> |
398 | ||
399 | * compile/compile-cplus-types.c | |
400 | (compile_cplus_instance::enter_scope): Don't use new_scope after | |
401 | std::move. | |
402 | ||
e6cd1dc1 TT |
403 | 2018-09-17 Tom Tromey <tom@tromey.com> |
404 | ||
405 | * common/pathstuff.c (get_standard_cache_dir): Use | |
406 | ~/Library/Caches on macOS. | |
407 | * common/pathstuff.h (get_standard_cache_dir): Update comment. | |
408 | ||
8588b356 SM |
409 | 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca> |
410 | ||
411 | PR python/23669 | |
412 | * breakpoint.c (commands_cmd_element): New. | |
413 | (_initialize_breakpoint): Assign commands_cmd_element. | |
414 | * breakpoint.h (commands_cmd_element): New. | |
415 | * cli/cli-script.c (while_cmd_element, if_command, | |
416 | define_cmd_element): New. | |
417 | (command_name_equals): Remove. | |
418 | (process_next_line): Compare commands by pointer, not by name. | |
419 | (_initialize_cli_script): Assign the various cmd_list_element | |
420 | variables. | |
421 | * compile/compile.c (compile_cmd_element): New. | |
422 | (_initialize_compile): Assign compile_cmd_element. | |
423 | * compile/compile.h (compile_cmd_element): New. | |
424 | * guile/guile.c (guile_cmd_element): New. | |
425 | (install_gdb_commands): Assign guile_cmd_element. | |
426 | * guile/guile.h (guile_cmd_element): New. | |
427 | * python/python.c (python_cmd_element): New. | |
428 | (_initialize_python): Assign python_cmd_element. | |
429 | * python/python.h (python_cmd_element): New. | |
430 | * tracepoint.c (while_stepping_cmd_element): New. | |
431 | (_initialize_tracepoint): Assign while_stepping_cmd_element. | |
432 | * tracepoint.h (while_stepping_cmd_element): New. | |
433 | ||
cb524840 TT |
434 | 2018-09-17 Tom Tromey <tom@tromey.com> |
435 | ||
436 | * infrun.c (save_infcall_suspend_state): Return | |
437 | infcall_suspend_state_up. | |
438 | (save_infcall_control_state): Return infcall_control_state_up. | |
439 | * inferior.h (save_infcall_suspend_state) | |
440 | (save_infcall_control_state): Declare later. Return unique | |
441 | pointers. | |
442 | ||
2d844eaf TT |
443 | 2018-09-17 Tom Tromey <tom@tromey.com> |
444 | ||
445 | * infrun.c (struct stop_context): Declare constructor, | |
446 | destructor, "changed" method. | |
447 | (stop_context::stop_context): Rename from save_stop_context. | |
448 | (stop_context::~stop_context): Rename from | |
449 | release_stop_context_cleanup. | |
450 | (normal_stop): Update. | |
451 | (stop_context::changed): Rename from stop_context_changed. Return | |
452 | bool. | |
453 | ||
c7c4d3fa TT |
454 | 2018-09-17 Tom Tromey <tom@tromey.com> |
455 | ||
456 | * inferior.h (struct infcall_suspend_state_deleter): New. | |
457 | (infcall_suspend_state_up): New typedef. | |
458 | (struct infcall_control_state_deleter): New. | |
459 | (infcall_control_state_up): New typedef. | |
460 | (make_cleanup_restore_infcall_suspend_state) | |
461 | (make_cleanup_restore_infcall_control_state): Don't declare. | |
462 | * infcall.c (call_function_by_hand_dummy): Update. | |
463 | * infrun.c (do_restore_infcall_suspend_state_cleanup) | |
464 | (make_cleanup_restore_infcall_suspend_state): Remove. | |
465 | (do_restore_infcall_control_state_cleanup) | |
466 | (make_cleanup_restore_infcall_control_state): Remove. | |
467 | ||
ee841dd8 TT |
468 | 2018-09-17 Tom Tromey <tom@tromey.com> |
469 | ||
470 | * gdbthread.h (struct thread_control_state): Add initializer. | |
471 | (class thread_info) <control>: Remove initializer. | |
472 | * inferior.h (struct inferior_control_state): Add initializer. | |
473 | (class inferior) <control>: Remove initializer. | |
474 | (exit_inferior_1): Update. | |
475 | * infrun.c (struct infcall_control_state): Add constructors. | |
476 | (save_infcall_control_state): Use new. | |
477 | (restore_infcall_control_state, discard_infcall_control_state): | |
478 | Use delete. | |
479 | ||
117f580a TT |
480 | 2018-09-17 Tom Tromey <tom@tromey.com> |
481 | ||
482 | * infrun.c (struct infcall_suspend_state) <registers>: Now a | |
483 | unique_ptr. | |
484 | <siginfo_data>: Now a unique_xmalloc_ptr. | |
485 | (save_infcall_suspend_state, restore_infcall_suspend_state) | |
486 | (discard_infcall_suspend_state) | |
487 | (get_infcall_suspend_state_regcache): Update. | |
488 | ||
dd848631 TT |
489 | 2018-09-17 Tom Tromey <tom@tromey.com> |
490 | ||
491 | * gdbthread.h (struct thread_suspend_state): Add initializers. | |
492 | (class thread_info) <suspend>: Remove initializer. | |
493 | * infrun.c (struct infcall_suspend_state): Add initializers. | |
494 | (save_infcall_suspend_state): Use new. | |
495 | (discard_infcall_suspend_state): Use delete. | |
496 | ||
1a338907 TT |
497 | 2018-09-16 Tom Tromey <tom@tromey.com> |
498 | ||
499 | * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG): | |
500 | Remove. | |
501 | * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to | |
502 | rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG. | |
503 | (py_varobj_iter_new): Likewise. | |
504 | (py_varobj_get_iterator): Use gdbpy_ref. | |
505 | ||
4a137fec TT |
506 | 2018-09-16 Tom Tromey <tom@tromey.com> |
507 | ||
508 | * python/py-threadevent.c (py_get_event_thread): Simplify. | |
509 | * python/py-inferior.c (infpy_thread_from_thread_handle): | |
510 | Return immediately after calling thread_to_thread_object. Use | |
511 | Py_RETURN_NONE. | |
512 | (thread_to_thread_object): Set the exception on a NULL return. | |
513 | ||
8ff03f0b SM |
514 | 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca> |
515 | ||
516 | * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS. | |
517 | ||
94c8b725 TT |
518 | 2018-09-16 Tom Tromey <tom@tromey.com> |
519 | ||
520 | * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF): | |
521 | Remove. | |
522 | ||
db1337cc TT |
523 | 2018-09-16 Tom Tromey <tom@tromey.com> |
524 | ||
525 | * python/python-internal.h (thread_to_thread_object): Change | |
526 | return type. | |
527 | * python/py-inferior.c (thread_to_thread_object): Return a new | |
528 | reference. | |
529 | (infpy_thread_from_thread_handle): Update. | |
530 | * python/py-infthread.c (gdbpy_selected_thread): Update. | |
531 | * python/py-stopevent.c (create_stop_event_object): Update. | |
532 | * python/py-threadevent.c (py_get_event_thread): Return a new | |
533 | reference. | |
534 | (py_get_event_thread): Update. | |
535 | * python/py-event.h (py_get_event_thread): Change return type. | |
536 | * python/py-continueevent.c (create_continue_event_object): | |
537 | Update. | |
538 | ||
0a9db5ad TT |
539 | 2018-09-16 Tom Tromey <tom@tromey.com> |
540 | ||
541 | * python/py-progspace.c (pspy_get_objfiles): Update. | |
542 | * python/python-internal.h (objfile_to_objfile_object): Change | |
543 | return type. | |
544 | * python/py-newobjfileevent.c (create_new_objfile_event_object): | |
545 | Update. | |
546 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): | |
547 | Update. | |
548 | * python/python.c (gdbpy_get_current_objfile): Update. | |
549 | (gdbpy_objfiles): Update. | |
550 | * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile): | |
551 | Update. | |
552 | (objfile_to_objfile_object): Return a new reference. | |
553 | * python/py-symtab.c (stpy_get_objfile): Update. | |
554 | * python/py-prettyprint.c (find_pretty_printer_from_objfiles): | |
555 | Update. | |
556 | ||
3c7aa307 TT |
557 | 2018-09-16 Tom Tromey <tom@tromey.com> |
558 | ||
559 | * python/py-inferior.c (infpy_get_progspace): Update. | |
560 | * python/python-internal.h (pspace_to_pspace_object): Change | |
561 | return type. | |
562 | * python/py-newobjfileevent.c | |
563 | (create_clear_objfiles_event_object): Update. | |
564 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): | |
565 | Update. | |
566 | * python/python.c (gdbpy_get_current_progspace): Update. | |
567 | (gdbpy_progspaces): Update. | |
568 | * python/py-progspace.c (pspace_to_pspace_object): Return a new | |
569 | reference. | |
570 | * python/py-objfile.c (objfpy_get_progspace): Update. | |
571 | * python/py-prettyprint.c (find_pretty_printer_from_progspace): | |
572 | Update. | |
573 | ||
8743a9cd TT |
574 | 2018-09-16 Tom Tromey <tom@tromey.com> |
575 | ||
576 | * python/lib/gdb/__init__.py (current_progspace, objfiles) | |
577 | (solib_name, block_for_pc, find_pc_line): New functions. | |
578 | (execute_unwinders): Update. | |
579 | * python/py-block.c (gdbpy_block_for_pc): Remove. | |
580 | * python/py-inferior.c (infpy_get_progspace): New function. | |
581 | (inferior_object_getset) <progspace>: Add. | |
582 | * python/py-progspace.c (pspy_objfiles): Rewrite. | |
583 | (pspy_solib_name, pspy_block_for_pc) | |
584 | (pspy_find_pc_line, pspy_is_valid): New functions. | |
585 | (progspace_object_methods): Add entries for solib_name, | |
586 | block_for_pc, find_pc_line, is_valid. | |
587 | * python/python-internal.h (gdbpy_block_for_pc) | |
588 | (build_objfiles_list): Don't declare. | |
589 | * python/python.c: Don't include solib.h. | |
590 | (gdbpy_solib_name, gdbpy_find_pc_line) | |
591 | (gdbpy_get_current_progspace, build_objfiles_list) | |
592 | (gdbpy_objfiles): Remove. | |
593 | (GdbMethods) <current_progspace, objfiles, block_for_pc, | |
594 | solib_name, find_pc_line>: Remove entries. | |
595 | ||
65e65158 TT |
596 | 2018-09-16 Tom Tromey <tom@tromey.com> |
597 | ||
598 | * top.c (new_ui_command): Use GNU style for metasyntactic | |
599 | variables. | |
600 | * breakpoint.c (stopat_command): Use GNU style for metasyntactic | |
601 | variables. | |
602 | * maint.c (maintenance_translate_address): Remove "<>" around | |
603 | text. | |
604 | * interps.c (interpreter_exec_cmd): Use GNU style for | |
605 | metasyntactic variables. | |
606 | * nto-procfs.c (nto_procfs_target_info): Use GNU style for | |
607 | metasyntactic variables. | |
608 | * tracepoint.c (tfind_range_command): Use GNU style for | |
609 | metasyntactic variables. | |
610 | (tfind_outside_command): Likewise. | |
611 | (_initialize_tracepoint): Likewise. | |
612 | * remote.c (extended_remote_target::create_inferior): Use GNU | |
613 | style for metasyntactic variables. | |
614 | * sparc64-tdep.c (adi_examine_command): Use GNU style for | |
615 | metasyntactic variables. | |
616 | (adi_assign_command): Likewise. | |
617 | ||
f4bab6ff TT |
618 | 2018-09-16 Tom Tromey <tom@tromey.com> |
619 | ||
620 | * disasm.c (show_disassembler_options_sfunc): Use GNU style for | |
621 | metasyntactic variables. Print message if no disassembler options | |
622 | are available. | |
623 | ||
cbaaa0ca TT |
624 | 2018-09-15 Tom Tromey <tom@tromey.com> |
625 | ||
626 | * infcmd.c (get_inferior_args): Return const char *. | |
627 | * inferior.h (get_inferior_args): Return type now const. | |
628 | * linux-tdep.c (linux_fill_prpsinfo): Update. | |
629 | * procfs.c (procfs_target::make_corefile_notes): Update. | |
630 | ||
a3a6aef4 TT |
631 | 2018-09-07 Tom Tromey <tom@tromey.com> |
632 | ||
633 | * python/python.c (execute_gdb_command): Call bpstat_do_actions | |
634 | inside the TRY. | |
635 | ||
f70e088f SL |
636 | 2018-09-14 Sandra Loosemore <sandra@codesourcery.com> |
637 | ||
638 | * nios2-tdep.c (nios2_type_align): New. | |
639 | (nios2_gdb_arch_init): Install type_align hook. | |
640 | ||
2fabdf33 AB |
641 | 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com> |
642 | ||
643 | * eval.c (fake_method::fake_method): Call xzalloc directly for a | |
644 | type that is neither object file owned, nor gdbarch owned. | |
645 | * gdbtypes.c (get_type_gdbarch): Add an assert that returned | |
646 | gdbarch is non-NULL. | |
647 | (alloc_type_instance): Allocate non-objfile owned types on the | |
648 | gdbarch obstack. | |
649 | (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA | |
650 | using TYPE_ALLOC to ensure memory is allocated on the correct | |
651 | obstack. | |
652 | * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile | |
653 | obstack, or the gdbarch obstack. | |
654 | (TYPE_ZALLOC): Rewrite using TYPE_ALLOC. | |
655 | ||
b4b08fa2 TT |
656 | 2018-09-14 Tom Tromey <tom@tromey.com> |
657 | ||
658 | * infcall.c (call_function_by_hand_dummy): Remove unnecessary | |
659 | block. | |
660 | ||
87b240d4 TT |
661 | 2018-09-14 Tom Tromey <tom@tromey.com> |
662 | ||
663 | * nat/fork-inferior.c (get_startup_shell): Remove "static". | |
664 | ||
7d221512 TT |
665 | 2018-09-13 Tom Tromey <tom@tromey.com> |
666 | ||
667 | * python/py-inferior.c (infpy_thread_from_thread_handle): Now | |
668 | static. | |
669 | ||
97e67fc6 TT |
670 | 2018-09-13 Tom Tromey <tom@tromey.com> |
671 | ||
672 | * exec.c (try_open_exec_file): Use std::string. | |
673 | ||
803c08d0 TT |
674 | 2018-09-13 Tom Tromey <tom@tromey.com> |
675 | ||
676 | * utils.h (gdb_bfd_errmsg): Return std::string. | |
677 | * exec.c (exec_file_attach): Update. | |
678 | * compile/compile-object-load.c (compile_object_load): Update. | |
679 | * utils.c (gdb_bfd_errmsg): Return std::string. | |
680 | ||
5b4cbbe3 TT |
681 | 2018-09-13 Tom Tromey <tom@tromey.com> |
682 | ||
683 | * procfs.c (struct procinfo_deleter): New. | |
684 | (procinfo_up): New typedef. | |
685 | (do_destroy_procinfo_cleanup): Remove. | |
686 | (procfs_target::info_proc): Use procinfo_up. Remove cleanups. | |
687 | ||
db68fbe2 TT |
688 | 2018-09-13 Tom Tromey <tom@tromey.com> |
689 | ||
690 | * source.c (add_path): Use gdb::unique_xmalloc_ptr. | |
691 | ||
0ae1a321 SM |
692 | 2018-09-13 Simon Marchi <simon.marchi@ericsson.com> |
693 | 2018-09-13 Tom Tromey <tom@tromey.com> | |
694 | ||
695 | * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro. | |
696 | (pspy_get_objfiles): New function. | |
697 | (progspace_object_methods): New. | |
698 | (pspace_object_type): Add tp_methods callback. | |
699 | * python/python-internal.h (build_objfiles_list): New | |
700 | declaration. | |
701 | * python/python.c (build_objfiles_list): New function. | |
702 | (gdbpy_objfiles): Implement using build_objfiles_list. | |
703 | * NEWS: Mention the Progspace.objfiles method. | |
704 | ||
a40bf0c2 SM |
705 | 2018-09-13 Simon Marchi <simon.marchi@ericsson.com> |
706 | ||
707 | * python/py-inferior.c (infpy_get_progspace): New function. | |
708 | (inferior_object_getset): Add progspace property. | |
709 | * NEWS: Mention the new property. | |
710 | ||
4a3fe98f TT |
711 | 2018-09-13 Tom Tromey <tom@tromey.com> |
712 | ||
713 | PR rust/23650: | |
714 | * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo". | |
715 | ||
098b2108 TT |
716 | 2018-09-13 Tom Tromey <tom@tromey.com> |
717 | ||
718 | PR rust/23626: | |
719 | * rust-lang.c (rust_enum_variant): Now static. | |
720 | (rust_empty_enum_p): New function. | |
721 | (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def): | |
722 | Handle empty enum. | |
723 | ||
1256af7d SM |
724 | 2018-09-13 Simon Marchi <simon.marchi@ericsson.com> |
725 | ||
726 | * python/py-inferior.c (infpy_repr): New. | |
727 | (inferior_object_type): Register infpy_repr. | |
728 | * python/py-objfile.c (objfpy_repr): New. | |
729 | (objfile_object_type): Register objfpy_repr. | |
730 | ||
f117a62c JB |
731 | 2018-09-12 John Baldwin <jhb@FreeBSD.org> |
732 | ||
733 | * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable. | |
734 | ||
88f22c34 JB |
735 | 2018-09-12 John Baldwin <jhb@FreeBSD.org> |
736 | ||
737 | * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment | |
738 | typo. | |
739 | ||
3c025cfe SDJ |
740 | 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com> |
741 | ||
742 | * common/common-utils.c: Don't include '<sys/stat.h>'. | |
743 | (is_regular_file): Move to... | |
744 | * common/filestuff.c (is_regular_file): ... here. | |
745 | * common/common-utils.h (is_regular_file): Move to... | |
746 | * common/filestuff.h (is_regular_file): ... here. | |
747 | ||
3e68067f SM |
748 | 2018-09-12 Simon Marchi <simon.marchi@ericsson.com> |
749 | ||
750 | * skip.c (debug_skip): New variable. | |
751 | (skiplist_entry::do_skip_file_p): Add debug output. | |
752 | (skiplist_entry::do_skip_gfile_p): Likewise. | |
753 | (skiplist_entry::skip_function_p): Likewise. | |
754 | (_initialize_step_skip): Create debug command. | |
755 | * NEWS: Mention set/show debug skip. | |
756 | ||
d6be54ef XR |
757 | 2018-09-11 Xavier Roirand <roirand@adacore.com> |
758 | ||
759 | * darwin-nat.c (should_disable_startup_with_shell): | |
760 | New function. | |
761 | (darwin_nat_target::create_inferior): Add call. | |
762 | ||
de1ec836 XR |
763 | 2018-09-11 Xavier Roirand <roirand@adacore.com> |
764 | ||
765 | * darwin-nat.h (struct darwin_thread_info) <gdb_port, | |
766 | inf_port, msg_state>: Initialize. | |
767 | (struct darwin_thread_info) <signaled, single_step>: Change | |
768 | type and initialize. | |
769 | (struct darwin_thread_info) <event>: Initialize. | |
770 | ||
e2fc52e7 SDJ |
771 | 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com> |
772 | ||
773 | PR gdb/23555 | |
774 | PR gdb/23558 | |
775 | * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation | |
776 | guesses. | |
777 | ||
5e8754f9 SDJ |
778 | 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com> |
779 | ||
780 | Revert: | |
781 | 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com> | |
782 | ||
783 | PR gdb/23555 | |
784 | PR gdb/23558 | |
785 | * gnulib/aclocal.m4: Regenerate. | |
786 | * gnulib/config.in: Regenerate. | |
787 | * gnulib/configure: Regenerate. | |
788 | * gnulib/import/Makefile.am: Update. | |
789 | * gnulib/import/Makefile.in: Update. | |
790 | * gnulib/import/extra/snippet/_Noreturn.h: Rename to... | |
791 | * gnulib/import/_Noreturn.h: ... this. | |
792 | * gnulib/import/alloca.in.h: Update. | |
793 | * gnulib/import/extra/snippet/arg-nonnull.h: Rename to... | |
794 | * gnulib/import/arg-nonnull.h: ... this. | |
795 | * gnulib/import/assure.h: Update. | |
796 | * gnulib/import/at-func.c: Update. | |
797 | * gnulib/import/basename-lgpl.c: Update. | |
798 | * gnulib/import/extra/snippet/c++defs.h: Rename to... | |
799 | * gnulib/import/c++defs.h: ... this. | |
800 | * gnulib/import/canonicalize-lgpl.c: Update. | |
801 | * gnulib/import/cdefs.h: Update. | |
802 | * gnulib/import/chdir-long.c: Update. | |
803 | * gnulib/import/chdir-long.h: Update. | |
804 | * gnulib/import/cloexec.c: Update. | |
805 | * gnulib/import/cloexec.h: Update. | |
806 | * gnulib/import/close.c: Update. | |
807 | * gnulib/import/closedir.c: Update. | |
808 | * gnulib/import/config.charset: Update. | |
809 | * gnulib/import/dirent-private.h: Update. | |
810 | * gnulib/import/dirent.in.h: Update. | |
811 | * gnulib/import/dirfd.c: Update. | |
812 | * gnulib/import/dirname-lgpl.c: Update. | |
813 | * gnulib/import/dirname.h: Update. | |
814 | * gnulib/import/dosname.h: Update. | |
815 | * gnulib/import/dup-safer-flag.c: Update. | |
816 | * gnulib/import/dup-safer.c: Update. | |
817 | * gnulib/import/dup.c: Update. | |
818 | * gnulib/import/dup2.c: Update. | |
819 | * gnulib/import/errno.in.h: Update. | |
820 | * gnulib/import/error.c: Update. | |
821 | * gnulib/import/error.h: Update. | |
822 | * gnulib/import/exitfail.c: Update. | |
823 | * gnulib/import/exitfail.h: Update. | |
824 | * gnulib/import/extra/update-copyright: Update. | |
825 | * gnulib/import/fchdir.c: Update. | |
826 | * gnulib/import/fcntl.c: Update. | |
827 | * gnulib/import/fcntl.in.h: Update. | |
828 | * gnulib/import/fd-hook.c: Update. | |
829 | * gnulib/import/fd-hook.h: Update. | |
830 | * gnulib/import/fd-safer-flag.c: Update. | |
831 | * gnulib/import/fd-safer.c: Update. | |
832 | * gnulib/import/fdopendir.c: Update. | |
833 | * gnulib/import/filename.h: Update. | |
834 | * gnulib/import/filenamecat-lgpl.c: Update. | |
835 | * gnulib/import/filenamecat.h: Update. | |
836 | * gnulib/import/flexmember.h: Update. | |
837 | * gnulib/import/float+.h: Update. | |
838 | * gnulib/import/float.c: Update. | |
839 | * gnulib/import/float.in.h: Update. | |
840 | * gnulib/import/fnmatch.c: Update. | |
841 | * gnulib/import/fnmatch.in.h: Update. | |
842 | * gnulib/import/fnmatch_loop.c: Update. | |
843 | * gnulib/import/fpucw.h: Update. | |
844 | * gnulib/import/frexp.c: Update. | |
845 | * gnulib/import/frexpl.c: Update. | |
846 | * gnulib/import/fstat.c: Update. | |
847 | * gnulib/import/fstatat.c: Update. | |
848 | * gnulib/import/getcwd-lgpl.c: Update. | |
849 | * gnulib/import/getcwd.c: Update. | |
850 | * gnulib/import/getdtablesize.c: Update. | |
851 | * gnulib/import/getlogin_r.c: Update. | |
852 | * gnulib/import/getprogname.c: Update. | |
853 | * gnulib/import/getprogname.h: Update. | |
854 | * gnulib/import/gettext.h: Update. | |
855 | * gnulib/import/gettimeofday.c: Update. | |
856 | * gnulib/import/glob-libc.h: Update. | |
857 | * gnulib/import/glob.c: Update. | |
858 | * gnulib/import/glob.in.h: Update. | |
859 | * gnulib/import/glob_internal.h: Update. | |
860 | * gnulib/import/glob_pattern_p.c: Update. | |
861 | * gnulib/import/globfree.c: Update. | |
862 | * gnulib/import/hard-locale.c: Update. | |
863 | * gnulib/import/hard-locale.h: Update. | |
864 | * gnulib/import/intprops.h: Update. | |
865 | * gnulib/import/inttypes.in.h: Update. | |
866 | * gnulib/import/isnan.c: Update. | |
867 | * gnulib/import/isnand-nolibm.h: Update. | |
868 | * gnulib/import/isnand.c: Update. | |
869 | * gnulib/import/isnanl-nolibm.h: Update. | |
870 | * gnulib/import/isnanl.c: Update. | |
871 | * gnulib/import/itold.c: Update. | |
872 | * gnulib/import/libc-config.h: Update. | |
873 | * gnulib/import/limits.in.h: Update. | |
874 | * gnulib/import/localcharset.c: Update. | |
875 | * gnulib/import/localcharset.h: Update. | |
876 | * gnulib/import/localtime-buffer.c: Update. | |
877 | * gnulib/import/localtime-buffer.h: Update. | |
878 | * gnulib/import/lstat.c: Update. | |
879 | * gnulib/import/m4/00gnulib.m4: Update. | |
880 | * gnulib/import/m4/__inline.m4: Update. | |
881 | * gnulib/import/m4/absolute-header.m4: Update. | |
882 | * gnulib/import/m4/alloca.m4: Update. | |
883 | * gnulib/import/m4/builtin-expect.m4: Update. | |
884 | * gnulib/import/m4/canonicalize.m4: Update. | |
885 | * gnulib/import/m4/chdir-long.m4: Update. | |
886 | * gnulib/import/m4/close.m4: Update. | |
887 | * gnulib/import/m4/closedir.m4: Update. | |
888 | * gnulib/import/m4/configmake.m4: Update. | |
889 | * gnulib/import/m4/d-ino.m4: Update. | |
890 | * gnulib/import/m4/d-type.m4: Update. | |
891 | * gnulib/import/m4/dirent_h.m4: Update. | |
892 | * gnulib/import/m4/dirfd.m4: Update. | |
893 | * gnulib/import/m4/dirname.m4: Update. | |
894 | * gnulib/import/m4/double-slash-root.m4: Update. | |
895 | * gnulib/import/m4/dup.m4: Update. | |
896 | * gnulib/import/m4/dup2.m4: Update. | |
897 | * gnulib/import/m4/eealloc.m4: Update. | |
898 | * gnulib/import/m4/environ.m4: Update. | |
899 | * gnulib/import/m4/errno_h.m4: Update. | |
900 | * gnulib/import/m4/error.m4: Update. | |
901 | * gnulib/import/m4/exponentd.m4: Update. | |
902 | * gnulib/import/m4/exponentl.m4: Update. | |
903 | * gnulib/import/m4/extensions.m4: Update. | |
904 | * gnulib/import/m4/extern-inline.m4: Update. | |
905 | * gnulib/import/m4/fchdir.m4: Update. | |
906 | * gnulib/import/m4/fcntl-o.m4: Update. | |
907 | * gnulib/import/m4/fcntl.m4: Update. | |
908 | * gnulib/import/m4/fcntl_h.m4: Update. | |
909 | * gnulib/import/m4/fdopendir.m4: Update. | |
910 | * gnulib/import/m4/filenamecat.m4: Update. | |
911 | * gnulib/import/m4/flexmember.m4: Update. | |
912 | * gnulib/import/m4/float_h.m4: Update. | |
913 | * gnulib/import/m4/fnmatch.m4: Update. | |
914 | * gnulib/import/m4/fnmatch_h.m4: Update. | |
915 | * gnulib/import/m4/fpieee.m4: Update. | |
916 | * gnulib/import/m4/frexp.m4: Update. | |
917 | * gnulib/import/m4/frexpl.m4: Update. | |
918 | * gnulib/import/m4/fstat.m4: Update. | |
919 | * gnulib/import/m4/fstatat.m4: Update. | |
920 | * gnulib/import/m4/getcwd-abort-bug.m4: Update. | |
921 | * gnulib/import/m4/getcwd-path-max.m4: Update. | |
922 | * gnulib/import/m4/getcwd.m4: Update. | |
923 | * gnulib/import/m4/getdtablesize.m4: Update. | |
924 | * gnulib/import/m4/getlogin.m4: Update. | |
925 | * gnulib/import/m4/getlogin_r.m4: Update. | |
926 | * gnulib/import/m4/getpagesize.m4: Update. | |
927 | * gnulib/import/m4/getprogname.m4: Update. | |
928 | * gnulib/import/m4/gettimeofday.m4: Update. | |
929 | * gnulib/import/m4/glibc21.m4: Update. | |
930 | * gnulib/import/m4/glob.m4: Update. | |
931 | * gnulib/import/m4/glob_h.m4: Update. | |
932 | * gnulib/import/m4/gnulib-cache.m4: Update. | |
933 | * gnulib/import/m4/gnulib-common.m4: Update. | |
934 | * gnulib/import/m4/gnulib-comp.m4: Update. | |
935 | * gnulib/import/m4/gnulib-tool.m4: Update. | |
936 | * gnulib/import/m4/hard-locale.m4: Update. | |
937 | * gnulib/import/m4/include_next.m4: Update. | |
938 | * gnulib/import/m4/inttypes-pri.m4: Update. | |
939 | * gnulib/import/m4/inttypes.m4: Update. | |
940 | * gnulib/import/m4/isnand.m4: Update. | |
941 | * gnulib/import/m4/isnanl.m4: Update. | |
942 | * gnulib/import/m4/largefile.m4: Update. | |
943 | * gnulib/import/m4/limits-h.m4: Update. | |
944 | * gnulib/import/m4/localcharset.m4: Update. | |
945 | * gnulib/import/m4/locale-fr.m4: Update. | |
946 | * gnulib/import/m4/locale-ja.m4: Update. | |
947 | * gnulib/import/m4/locale-zh.m4: Update. | |
948 | * gnulib/import/m4/localtime-buffer.m4: Update. | |
949 | * gnulib/import/m4/longlong.m4: Update. | |
950 | * gnulib/import/m4/lstat.m4: Update. | |
951 | * gnulib/import/m4/malloc.m4: Update. | |
952 | * gnulib/import/m4/malloca.m4: Update. | |
953 | * gnulib/import/m4/math_h.m4: Update. | |
954 | * gnulib/import/m4/mbrtowc.m4: Update. | |
955 | * gnulib/import/m4/mbsinit.m4: Update. | |
956 | * gnulib/import/m4/mbsrtowcs.m4: Update. | |
957 | * gnulib/import/m4/mbstate_t.m4: Update. | |
958 | * gnulib/import/m4/memchr.m4: Update. | |
959 | * gnulib/import/m4/memmem.m4: Update. | |
960 | * gnulib/import/m4/mempcpy.m4: Update. | |
961 | * gnulib/import/m4/memrchr.m4: Update. | |
962 | * gnulib/import/m4/mkdir.m4: Update. | |
963 | * gnulib/import/m4/mkstemp.m4: Update. | |
964 | * gnulib/import/m4/mmap-anon.m4: Update. | |
965 | * gnulib/import/m4/mode_t.m4: Update. | |
966 | * gnulib/import/m4/msvc-inval.m4: Update. | |
967 | * gnulib/import/m4/msvc-nothrow.m4: Update. | |
968 | * gnulib/import/m4/multiarch.m4: Update. | |
969 | * gnulib/import/m4/nocrash.m4: Update. | |
970 | * gnulib/import/m4/off_t.m4: Update. | |
971 | * gnulib/import/m4/onceonly.m4: Update. | |
972 | * gnulib/import/m4/open-cloexec.m4: Update. | |
973 | * gnulib/import/m4/open.m4: Update. | |
974 | * gnulib/import/m4/openat.m4: Update. | |
975 | * gnulib/import/m4/opendir.m4: Update. | |
976 | * gnulib/import/m4/pathmax.m4: Update. | |
977 | * gnulib/import/m4/rawmemchr.m4: Update. | |
978 | * gnulib/import/m4/readdir.m4: Update. | |
979 | * gnulib/import/m4/readlink.m4: Update. | |
980 | * gnulib/import/m4/realloc.m4: Update. | |
981 | * gnulib/import/m4/rename.m4: Update. | |
982 | * gnulib/import/m4/rewinddir.m4: Update. | |
983 | * gnulib/import/m4/rmdir.m4: Update. | |
984 | * gnulib/import/m4/save-cwd.m4: Update. | |
985 | * gnulib/import/m4/secure_getenv.m4: Update. | |
986 | * gnulib/import/m4/setenv.m4: Update. | |
987 | * gnulib/import/m4/signal_h.m4: Update. | |
988 | * gnulib/import/m4/ssize_t.m4: Update. | |
989 | * gnulib/import/m4/stat-time.m4: Update. | |
990 | * gnulib/import/m4/stat.m4: Update. | |
991 | * gnulib/import/m4/std-gnu11.m4: Update. | |
992 | * gnulib/import/m4/stdbool.m4: Update. | |
993 | * gnulib/import/m4/stddef_h.m4: Update. | |
994 | * gnulib/import/m4/stdint.m4: Update. | |
995 | * gnulib/import/m4/stdio_h.m4: Update. | |
996 | * gnulib/import/m4/stdlib_h.m4: Update. | |
997 | * gnulib/import/m4/strchrnul.m4: Update. | |
998 | * gnulib/import/m4/strdup.m4: Update. | |
999 | * gnulib/import/m4/strerror.m4: Update. | |
1000 | * gnulib/import/m4/string_h.m4: Update. | |
1001 | * gnulib/import/m4/strstr.m4: Update. | |
1002 | * gnulib/import/m4/strtok_r.m4: Update. | |
1003 | * gnulib/import/m4/sys_socket_h.m4: Update. | |
1004 | * gnulib/import/m4/sys_stat_h.m4: Update. | |
1005 | * gnulib/import/m4/sys_time_h.m4: Update. | |
1006 | * gnulib/import/m4/sys_types_h.m4: Update. | |
1007 | * gnulib/import/m4/tempname.m4: Update. | |
1008 | * gnulib/import/m4/time_h.m4: Update. | |
1009 | * gnulib/import/m4/unistd-safer.m4: Update. | |
1010 | * gnulib/import/m4/unistd_h.m4: Update. | |
1011 | * gnulib/import/m4/warn-on-use.m4: Update. | |
1012 | * gnulib/import/m4/wchar_h.m4: Update. | |
1013 | * gnulib/import/m4/wchar_t.m4: Update. | |
1014 | * gnulib/import/m4/wctype_h.m4: Update. | |
1015 | * gnulib/import/m4/wint_t.m4: Update. | |
1016 | * gnulib/import/malloc.c: Update. | |
1017 | * gnulib/import/malloc/scratch_buffer.h: Update. | |
1018 | * gnulib/import/malloc/scratch_buffer_grow.c: Update. | |
1019 | * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update. | |
1020 | * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update. | |
1021 | * gnulib/import/malloca.c: Update. | |
1022 | * gnulib/import/malloca.h: Update. | |
1023 | * gnulib/import/malloca.valgrind: Update. | |
1024 | * gnulib/import/math.in.h: Update. | |
1025 | * gnulib/import/mbrtowc.c: Update. | |
1026 | * gnulib/import/mbsinit.c: Update. | |
1027 | * gnulib/import/mbsrtowcs-impl.h: Update. | |
1028 | * gnulib/import/mbsrtowcs-state.c: Update. | |
1029 | * gnulib/import/mbsrtowcs.c: Update. | |
1030 | * gnulib/import/memchr.c: Update. | |
1031 | * gnulib/import/memmem.c: Update. | |
1032 | * gnulib/import/mempcpy.c: Update. | |
1033 | * gnulib/import/memrchr.c: Update. | |
1034 | * gnulib/import/mkdir.c: Update. | |
1035 | * gnulib/import/mkstemp.c: Update. | |
1036 | * gnulib/import/msvc-inval.c: Update. | |
1037 | * gnulib/import/msvc-inval.h: Update. | |
1038 | * gnulib/import/msvc-nothrow.c: Update. | |
1039 | * gnulib/import/msvc-nothrow.h: Update. | |
1040 | * gnulib/import/open.c: Update. | |
1041 | * gnulib/import/openat-die.c: Update. | |
1042 | * gnulib/import/openat-priv.h: Update. | |
1043 | * gnulib/import/openat-proc.c: Update. | |
1044 | * gnulib/import/openat.c: Update. | |
1045 | * gnulib/import/openat.h: Update. | |
1046 | * gnulib/import/opendir.c: Update. | |
1047 | * gnulib/import/pathmax.h: Update. | |
1048 | * gnulib/import/pipe-safer.c: Update. | |
1049 | * gnulib/import/rawmemchr.c: Update. | |
1050 | * gnulib/import/readdir.c: Update. | |
1051 | * gnulib/import/readlink.c: Update. | |
1052 | * gnulib/import/realloc.c: Update. | |
1053 | * gnulib/import/ref-add.sin: Update. | |
1054 | * gnulib/import/ref-del.sin: Update. | |
1055 | * gnulib/import/rename.c: Update. | |
1056 | * gnulib/import/rewinddir.c: Update. | |
1057 | * gnulib/import/rmdir.c: Update. | |
1058 | * gnulib/import/same-inode.h: Update. | |
1059 | * gnulib/import/save-cwd.c: Update. | |
1060 | * gnulib/import/save-cwd.h: Update. | |
1061 | * gnulib/import/scratch_buffer.h: Update. | |
1062 | * gnulib/import/secure_getenv.c: Update. | |
1063 | * gnulib/import/setenv.c: Update. | |
1064 | * gnulib/import/signal.in.h: Update. | |
1065 | * gnulib/import/stat-time.c: Update. | |
1066 | * gnulib/import/stat-time.h: Update. | |
1067 | * gnulib/import/stat-w32.c: Update. | |
1068 | * gnulib/import/stat-w32.h: Update. | |
1069 | * gnulib/import/stat.c: Update. | |
1070 | * gnulib/import/stdbool.in.h: Update. | |
1071 | * gnulib/import/stddef.in.h: Update. | |
1072 | * gnulib/import/stdint.in.h: Update. | |
1073 | * gnulib/import/stdio.in.h: Update. | |
1074 | * gnulib/import/stdlib.in.h: Update. | |
1075 | * gnulib/import/str-two-way.h: Update. | |
1076 | * gnulib/import/strchrnul.c: Update. | |
1077 | * gnulib/import/strdup.c: Update. | |
1078 | * gnulib/import/streq.h: Update. | |
1079 | * gnulib/import/strerror-override.c: Update. | |
1080 | * gnulib/import/strerror-override.h: Update. | |
1081 | * gnulib/import/strerror.c: Update. | |
1082 | * gnulib/import/string.in.h: Update. | |
1083 | * gnulib/import/stripslash.c: Update. | |
1084 | * gnulib/import/strnlen1.c: Update. | |
1085 | * gnulib/import/strnlen1.h: Update. | |
1086 | * gnulib/import/strstr.c: Update. | |
1087 | * gnulib/import/strtok_r.c: Update. | |
1088 | * gnulib/import/sys_stat.in.h: Update. | |
1089 | * gnulib/import/sys_time.in.h: Update. | |
1090 | * gnulib/import/sys_types.in.h: Update. | |
1091 | * gnulib/import/tempname.c: Update. | |
1092 | * gnulib/import/tempname.h: Update. | |
1093 | * gnulib/import/time.in.h: Update. | |
1094 | * gnulib/import/unistd--.h: Update. | |
1095 | * gnulib/import/unistd-safer.h: Update. | |
1096 | * gnulib/import/unistd.in.h: Update. | |
1097 | * gnulib/import/unsetenv.c: Update. | |
1098 | * gnulib/import/verify.h: Update. | |
1099 | * gnulib/import/extra/snippet/warn-on-use.h: Update. | |
1100 | * gnulib/import/wchar.in.h: Update. | |
1101 | * gnulib/import/wctype.in.h: Update. | |
1102 | * gnulib/import/xalloc-oversized.h: Update. | |
1103 | * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to | |
1104 | "53e2c179f26a890fa6685af4b6c1397ee370433b". | |
1105 | ||
8ec23583 SM |
1106 | 2018-09-10 Simon Marchi <simon.marchi@ericsson.com> |
1107 | ||
1108 | * record-btrace.c (get_thread_current_frame): Remove | |
1109 | old_inferior_ptid. | |
1110 | ||
1f5d1570 JG |
1111 | 2018-09-10 Jerome Guitton <guitton@adacore.com> |
1112 | ||
1113 | * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type | |
1114 | with check_tag to 1 if and only if the type is tagged and the | |
1115 | component being searched cannot been found in the current | |
1116 | view. Otherwise, always call ada_to_fixed_type with | |
1117 | check_tag to 0. | |
1118 | ||
d91e9ea8 XR |
1119 | 2018-09-10 Xavier Roirand <roirand@adacore.com> |
1120 | ||
1121 | * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static | |
1122 | declaration. | |
1123 | * ada-lang.h: add ada_is_access_to_unconstrained_array prototype. | |
1124 | * ada-varobj.c (ada_varobj_get_number_of_children, | |
1125 | ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code. | |
1126 | ||
cc330e39 XR |
1127 | 2018-09-10 Xavier Roirand <roirand@adacore.com> |
1128 | ||
1129 | * ada-valprint.c (ada_value_print): Use type instead of | |
1130 | enclosing type. | |
1131 | ||
b9c50e9a XR |
1132 | 2018-09-10 Xavier Roirand <roirand@adacore.com> |
1133 | ||
1134 | * ada-lang.c (ada_value_subscript): Handle case when parameter is | |
1135 | an array of access to unconstrained array. | |
1136 | ||
736ade86 XR |
1137 | 2018-09-10 Xavier Roirand <roirand@adacore.com> |
1138 | ||
1139 | * ada-lang.c (ada_is_access_to_unconstrained_array): New function. | |
1140 | (ada_check_typedef): Use it. | |
1141 | ||
2963898f XR |
1142 | 2018-09-10 Xavier Roirand <roirand@adacore.com> |
1143 | ||
1144 | * ada-varobj.c (ada_varobj_describe_struct_child) | |
1145 | (ada_varobj_describe_child): Handle union case like struct one. | |
1146 | ||
a154931e TT |
1147 | 2018-09-10 Tom Tromey <tom@tromey.com> |
1148 | ||
1149 | PR python/18380: | |
1150 | * python/python.c (_initialize_python): Make example in "python" | |
1151 | help work in Python 3. | |
1152 | ||
23c4651c EZ |
1153 | 2018-09-10 Eli Zaretskii <eliz@gnu.org> |
1154 | ||
1155 | * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of | |
1156 | INSTALL_PROGRAM to install gdb-add-index.sh. Don't append | |
1157 | $(EXEEXT) to the script, as it is not a program. | |
1158 | ||
a5c5eda7 SM |
1159 | 2018-09-09 Simon Marchi <simon.marchi@ericsson.com> |
1160 | ||
1161 | * python/py-prettyprint.c (pretty_print_one_value): Return | |
1162 | gdbpy_ref<>. | |
1163 | (print_string_repr): Adjust. | |
1164 | (apply_varobj_pretty_printer): Return gdbpy_ref<>. | |
1165 | * python/python-internal.h (apply_varobj_pretty_printer): Return | |
1166 | gdbpy_ref<>. | |
1167 | * varobj.c (varobj_value_get_print_value): Adjust. | |
1168 | ||
332cf4c9 TT |
1169 | 2018-09-08 Tom Tromey <tom@tromey.com> |
1170 | ||
1171 | PR python/16047: | |
1172 | * python/py-prettyprint.c (pretty_print_one_value): Check for | |
1173 | to_string method. | |
1174 | ||
424da6cf JB |
1175 | 2018-09-08 Joel Brobecker <brobecker@adacore.com> |
1176 | ||
1177 | * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to | |
1178 | replace_operator_with_call. | |
1179 | ||
95f39a5b JB |
1180 | 2018-09-08 Joel Brobecker <brobecker@adacore.com> |
1181 | ||
1182 | * ada-lang.c (ada_value_cast): Remove unnecessary parentheses. | |
1183 | ||
16b9eb7b JB |
1184 | 2018-09-08 Joel Brobecker <brobecker@adacore.com> |
1185 | ||
1186 | * ada-typeprint.c (print_range): Print the bounds using TYPE | |
1187 | rather than its TYPE_TARGET_TYPE. | |
1188 | ||
d8ce9127 JB |
1189 | 2018-09-08 Joel Brobecker <brobecker@adacore.com> |
1190 | ||
1191 | * ada-lang.c (ada_to_fixed_value): Minor reformatting in | |
1192 | call to ada_to_fixed_value_create. | |
1193 | ||
0d81f350 JG |
1194 | 2018-09-08 Jerome Guitton <guitton@adacore.com> |
1195 | ||
1196 | * ada-lang.c (ada_decode): strip dot prefix in symbol name. | |
1197 | ||
57aff202 JB |
1198 | 2018-09-08 Joel Brobecker <brobecker@adacore.com> |
1199 | ||
1200 | * ada-lang.c (ada_exception_sal): Replace gdb_assert calls | |
1201 | by calls to error. | |
1202 | ||
fb44b1a7 JB |
1203 | 2018-09-08 Joel Brobecker <brobecker@adacore.com> |
1204 | ||
1205 | * ada-lang.c (ada_unhandled_exception_name_addr_from_raise): | |
1206 | Move update of loop variable "fi". | |
1207 | ||
2a62dfa9 JB |
1208 | 2018-09-08 Joel Brobecker <brobecker@adacore.com> |
1209 | ||
1210 | * ada-lang.c (value_assign_to_component): In the case of | |
1211 | big-endian targets, extract the bits of the given VAL | |
1212 | using an src_offset of zero if container is not a scalar. | |
1213 | ||
739ab2e9 SS |
1214 | 2018-09-06 Simon Ser <contact@emersion.fr> |
1215 | ||
1216 | PR gdb/23105 | |
1217 | * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for | |
1218 | TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS. | |
1219 | * fbsd-tdep.c (fbsd_make_note_desc): New. | |
1220 | (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV, | |
1221 | NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes. | |
1222 | * target.h (enum target_object) Add FreeBSD-specific | |
1223 | TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS. | |
1224 | ||
d82b3862 SM |
1225 | 2018-09-06 Simon Marchi <simon.marchi@ericsson.com> |
1226 | ||
1227 | * compile/compile-c.h (generate_c_for_variable_locations): | |
1228 | Change reference to pointer. | |
1229 | * compile/compile-c-support.c (compile_program) <compute>: | |
1230 | Likewise. | |
1231 | * compile/compile-c-symbols.c (generate_vla_size): Likewise. | |
1232 | (generate_c_for_for_one_variable): Likewise | |
1233 | (generate_c_for_variable_locations): Likewise | |
1234 | * compile/compile-c-types.c (compile_c_instance::convert_type): | |
1235 | Likewise | |
1236 | * compile/compile-cplus-symbols.c (convert_one_symbol): | |
1237 | std::move the scope passed to enter_scope. | |
1238 | * compile/compile-cplus-types.c | |
1239 | (compile_cplus_instance::enter_scope): Make parameter | |
1240 | rvalue-reference. | |
1241 | (compile_cplus_instance::new_scope): Change reference to | |
1242 | pointer. | |
1243 | (compile_cplus_instance::convert_type): Likewise | |
1244 | (compile_cplus_convert_typedef): std::move the scope passed to | |
1245 | enter_scope. | |
1246 | (compile_cplus_convert_struct_or_union): Likewise. | |
1247 | (compile_cplus_convert_enum): Likewise. | |
1248 | (compile_cplus_convert_namespace): Likewise. | |
1249 | * compile/compile-cplus.h (compile_cplus_instance) | |
1250 | <enter_scope>: Make parameter rvalue-reference. | |
1251 | * compile/compile-internal.h (compile_instance) | |
1252 | <get_cached_type>: Likewise | |
1253 | * compile/compile-loc2c.c (push): Likewise | |
1254 | (pushf): Likewise | |
1255 | (unary): Likewise | |
1256 | (binary): Likewise | |
1257 | (print_label): Likewise | |
1258 | (pushf_register_address): Likewise | |
1259 | (pushf_register): Likewise | |
1260 | (do_compile_dwarf_expr_to_c): Likewise | |
1261 | (compile_dwarf_expr_to_c): Likewise | |
1262 | (compile_dwarf_bounds_to_c): Likewise | |
1263 | * compile/compile.c (compile_instance::get_cached_type): | |
1264 | Likewise | |
1265 | * compile/compile.h (compile_dwarf_expr_to_c): Likewise. | |
1266 | (compile_dwarf_bounds_to_c): Likewise | |
1267 | * dwarf2loc.c (locexpr_generate_c_location): Likewise. | |
1268 | (dwarf2_compile_property_to_c): Likewise | |
1269 | * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise | |
1270 | * symtab.h (struct symbol_computed_ops) <generate_c_location>: | |
1271 | Likewise | |
1272 | ||
cc5a5ae5 SM |
1273 | 2018-09-06 Simon Marchi <simon.marchi@ericsson.com> |
1274 | ||
1275 | * tui/tui-data.h (struct tui_win_element) <highlight>: Remove. | |
1276 | * tui/tui-data.c (init_content_element): Don't initialize it. | |
1277 | ||
137be540 SM |
1278 | 2018-09-06 Simon Marchi <simon.marchi@ericsson.com> |
1279 | ||
1280 | * tui/tui-data.h (struct tui_win_info) | |
1281 | <detail::opaque>: Remove. | |
1282 | * tui/tui-data.c (init_win_info): Remove assignment. | |
1283 | ||
f1628857 TT |
1284 | 2018-09-05 Tom Tromey <tom@tromey.com> |
1285 | ||
1286 | * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing | |
1287 | -Wformat-nonliteral. | |
1288 | * target-float.c (host_float_ops<T>::to_string) | |
1289 | (host_float_ops<T>::from_string): Use | |
1290 | DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL. | |
1291 | * configure: Rebuild. | |
1292 | ||
af39b1c2 SM |
1293 | 2018-09-05 Simon Marchi <simon.marchi@ericsson.com> |
1294 | ||
1295 | * printcmd.c (printf_c_string): Use | |
1296 | DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL. | |
1297 | (printf_wide_c_string, printf_pointer, ui_printf): Likewise. | |
1298 | ||
081bca4d TT |
1299 | 2018-09-05 Tom Tromey <tom@tromey.com> |
1300 | ||
1301 | * cli/cli-cmds.c (shell_escape, edit_command): Remove cast. | |
1302 | ||
e4a62c65 TV |
1303 | 2018-09-05 Tom de Vries <tdevries@suse.de> |
1304 | ||
1305 | * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer | |
1306 | with resolve_abstract_p == true. | |
1307 | (indirect_synthetic_pointer): Add resolve_abstract_p parameter, | |
1308 | defaulting to false. Propagate resolve_abstract_p to | |
1309 | dwarf2_fetch_die_loc_sect_off. | |
1310 | * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p | |
1311 | parameter, defaulting to false. | |
1312 | * dwarf2read.c (read_variable): Add variable to abstract_to_concrete. | |
1313 | (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p | |
1314 | parameter. | |
1315 | * dwarf2read.h (struct die_info): Forward-declare. | |
1316 | (die_info_ptr): New typedef. | |
1317 | (struct dwarf2_per_objfile): Add abstract_to_concrete field. | |
1318 | ||
2b69821e JB |
1319 | 2018-09-05 Joel Brobecker <brobecker@adacore.com> |
1320 | ||
1321 | GDB 8.2 released. | |
1322 | ||
fcc9b044 SDJ |
1323 | 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com> |
1324 | Pedro Alves <palves@redhat.com> | |
1325 | ||
1326 | * gnulib/Makefile.in (aclocal_m4_deps): Move to | |
1327 | "aclocal-m4-deps.mk". Include file here. | |
1328 | $(srcdir)/aclocal.m4: Add "configure.ac". | |
1329 | * gnulib/aclocal-m4-deps.mk: New file. | |
1330 | * gnulib/update-gnulib.sh: Automatically update | |
1331 | "aclocal-m4-deps.mk". | |
1332 | ||
d53d5436 TT |
1333 | 2018-09-04 Tom Tromey <tom@tromey.com> |
1334 | ||
1335 | * configure: Rebuild. | |
1336 | * configure.ac: Remove multi-ice code. | |
1337 | ||
8dc9fd87 TT |
1338 | 2018-09-04 Tom Tromey <tom@tromey.com> |
1339 | ||
1340 | * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove. | |
1341 | (ada-exp.o): Update. | |
1342 | ||
3322c5d9 TT |
1343 | 2018-09-04 Tom Tromey <tom@tromey.com> |
1344 | ||
1345 | * Makefile.in (printcmd.o, target-float.o): Remove. | |
1346 | (GDB_WARN_CFLAGS_NO_FORMAT): Remove. | |
1347 | ||
ba2bf2aa TT |
1348 | 2018-09-04 Tom Tromey <tom@tromey.com> |
1349 | ||
1350 | * gnulib/Makefile.in: Remove obsolete comment. | |
1351 | * Makefile.in: Remove obsolete comment. | |
1352 | ||
6c9d681b AB |
1353 | 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com> |
1354 | ||
1355 | * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a | |
1356 | line with '+'. | |
1357 | ||
78a3b0fa AB |
1358 | 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com> |
1359 | ||
1360 | * riscv-tdep.c: Add 'prologue-value.h' include. | |
1361 | (struct riscv_unwind_cache): New struct. | |
1362 | (riscv_debug_unwinder): New global. | |
1363 | (riscv_scan_prologue): Update arguments, capture register details | |
1364 | from prologue scan. | |
1365 | (riscv_skip_prologue): Reformat arguments line, move end of | |
1366 | prologue calculation into riscv_scan_prologue. | |
1367 | (riscv_frame_cache): Update return type, create | |
1368 | riscv_unwind_cache, scan the prologue, and fill in remaining cache | |
1369 | details. | |
1370 | (riscv_frame_this_id): Use frame id computed in riscv_frame_cache. | |
1371 | (riscv_frame_prev_register): Use the trad_frame within the | |
1372 | riscv_unwind_cache. | |
1373 | (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder' | |
1374 | flag. | |
1375 | ||
23e60e7a AB |
1376 | 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com> |
1377 | ||
1378 | * trad-frame.h (trad_frame_set_realreg): Declare. | |
1379 | (trad_frame_set_addr): Declare. | |
1380 | * trad-frame.c (trad_frame_set_realreg): Define new function. | |
1381 | (trad_frame_set_addr): Define new function. | |
1382 | (trad_frame_set_reg_realreg): Use new function. | |
1383 | (trad_frame_set_reg_addr): Use new function. | |
1384 | ||
5c889512 KS |
1385 | 2018-09-01 Keith Seitz <keiths@redhat.com> |
1386 | ||
1387 | * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use | |
1388 | pulongest instead of "%lld". | |
1389 | * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove | |
1390 | ATTRIBUTE_UNUSED. | |
1391 | ||
c8c81635 TT |
1392 | 2018-08-31 Tom Tromey <tom@tromey.com> |
1393 | ||
1394 | * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the | |
1395 | variant part type. | |
1396 | ||
0c888588 PA |
1397 | 2018-08-31 Pedro Alves <palves@redhat.com> |
1398 | ||
1399 | * gdbarch.h: Regenerate. | |
1400 | ||
7ea65f08 PA |
1401 | 2018-08-31 Pedro Alves <palves@redhat.com> |
1402 | ||
1403 | * gdbarch.sh (have_nonsteppable_watchpoint): Add comment. | |
1404 | * target.h (Hardware watchpoint interfaces): Describe | |
1405 | continuable/steppable/non-steppable watchpoints. | |
1406 | * gdbarch.h, gdbarch.c: Regenerate. | |
1407 | ||
7eb65faf PA |
1408 | 2018-08-31 Pedro Alves <palves@redhat.com> |
1409 | ||
1410 | * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint): | |
1411 | Delete. | |
1412 | * s390-linux-nat.c | |
1413 | (s390_linux_nat_target::have_continuable_watchpoint): Delete. | |
1414 | * target.h (target_ops::have_continuable_watchpoint): Delete. | |
1415 | (target_have_continuable_watchpoint): Delete. | |
1416 | * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete. | |
1417 | * target-delegates.c: Regenerate. | |
1418 | ||
dab999b1 SDJ |
1419 | 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com> |
1420 | ||
1421 | * gnulib/Makefile.in (aclocal_m4_deps): Update according to | |
1422 | the files present in "gnulib/import/m4/". | |
1423 | ||
ff3a05b3 AB |
1424 | 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com> |
1425 | ||
1426 | * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd, | |
1427 | c.sw, c.swsp, and c.sdsp. | |
1428 | ||
0b3f9efc AB |
1429 | 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com> |
1430 | ||
1431 | * riscv-tdep.c (struct riscv_inferior_data): Delete. | |
1432 | (riscv_read_misa_reg): Don't cache value read into inferior data. | |
1433 | (riscv_new_inferior_data): Delete. | |
1434 | (riscv_inferior_data_cleanup): Delete. | |
1435 | (riscv_inferior_data): Delete. | |
1436 | (riscv_invalidate_inferior_data): Delete. | |
1437 | (_initialize_riscv_tdep): Remove initialisation of inferior data. | |
1438 | ||
a0dc02a6 SM |
1439 | 2018-08-30 Simon Marchi <simon.marchi@ericsson.com> |
1440 | ||
1441 | * compile/compile-cplus-types.c | |
1442 | (compile_cplus_instance::leave_scope): Take the address of scope | |
1443 | object. | |
1444 | (compile_cplus_instance::convert_qualified_base): Compare quals | |
1445 | to 0. | |
1446 | ||
fdad7678 KS |
1447 | 2018-08-30 Keith Seitz <keiths@redhat.com> |
1448 | ||
1449 | * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope): | |
1450 | Use "%s" and host_address_to_string instead of "%p" in printf. | |
1451 | ||
078a0207 KS |
1452 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
1453 | ||
1454 | * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c | |
1455 | and compile-cplus-types.c. | |
1456 | (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h. | |
1457 | * c-lang.c (cplus_language_defn): Set C++ compile functions. | |
1458 | * c-lang.h (cplus_get_compile_context, cplus_compute_program): | |
1459 | Declare. | |
1460 | * compile/compile-c-support.c: Include compile-cplus.h. | |
1461 | (load_libcompile): Templatize. | |
1462 | (get_compile_context): "New" function. | |
1463 | (c_get_compile_context): Use get_compile_context. | |
1464 | (cplus_get_compile_context): New function. | |
1465 | (cplus_push_user_expression, cplus_pop_user_expression) | |
1466 | (cplus_add_code_header, cplus_add_input, cplus_compile_program) | |
1467 | (cplus_compute_program): Define new structs/functions. | |
1468 | * compile/compile-cplus-symmbols.c: New file. | |
1469 | * compile/compile-cplus-types.c: New file. | |
1470 | * compile/compile-cplus.h: New file. | |
1471 | * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE): | |
1472 | Declare. | |
1473 | * compile/compile-object-load.c (get_out_value_type): Use | |
1474 | strncmp_iw when comparing symbol names. | |
1475 | (compile_object_load): Add mst_bss and mst_data. | |
1476 | * compile/compile.c (_initialize_compile): Remove | |
1477 | -Wno-implicit-function-declaration from `compile_args'. | |
1478 | * compile/gcc-cp-plugin.h: New file. | |
1479 | * NEWS: Mention C++ compile support and new debug options. | |
1480 | ||
fcaad03c KS |
1481 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
1482 | ||
1483 | * linespec.c (collect_info::add_symbol): Make virtual. | |
1484 | (struct symbol_searcher_collect_info): New struct. | |
1485 | (symbol_searcher::find_all_symbols): New method. | |
1486 | * symtab.h (class symbol_searcher): New class. | |
1487 | ||
7e41c8db KS |
1488 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
1489 | ||
1490 | * linespec.c (struct linespec) <function_symbols, label_symbols>: | |
1491 | Change to vector of block_symbol. Update all users. | |
1492 | (struct collect_info) <symbols>: Likewise. | |
1493 | (collect_info::add_symbol): Take block_symbol as argument. | |
1494 | Update all callers. | |
1495 | (decode_compound_collector) <m_symbols>: Change type to vector | |
1496 | of block_symbol. Update all users. | |
1497 | (decode_compound_collector::operator ()): Change parameter type | |
1498 | to block_symbol. | |
1499 | (find_method, find_function_symbols, find_linespec_symbols) | |
1500 | (find_label_symbols_in_block, find_label_symbols): Change symbol | |
1501 | vectors to block_symbol vectors. | |
1502 | * symtab.h (symbol_found_callback_ftype): Change parameter type to | |
1503 | block_symbol. | |
1504 | ||
63e8c3da KS |
1505 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
1506 | ||
1507 | * linespec.c (symbolp): Remove typedef and VEC definitions. | |
1508 | (bound_minimal_symbol_d): Likewise. | |
1509 | ||
4dedf84d KS |
1510 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
1511 | ||
1512 | * linespec.c (decode_compound_collector::decode_compound_collector): | |
1513 | Remove initialization for `m_symtabs'. | |
1514 | (decode_compound_collector::release_symbols): Change return type | |
1515 | to std::vector. Update all callers. | |
1516 | (class decode_compound_collector) <m_symbols>: Change type to | |
1517 | std::vector. | |
1518 | (lookup_prefix_sym): Change return type to std::vector. Update all | |
1519 | callers. | |
1520 | (compare_symbols): Remove. | |
1521 | (std_compare_symbols): Rename to `compare_symbols'. | |
1522 | (find_method): Change `sym_classes' parameter to std::vector. | |
1523 | Update all callers. Use std::sort to sort sym_classes. | |
1524 | (find_linespec_symbols): Remove cleanup. | |
1525 | ||
c2a031c5 KS |
1526 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
1527 | ||
1528 | * linespec.c (struct linespec) <minimal_symbols>: Change type to | |
1529 | std::vector. Update all users. | |
1530 | (convert_linespec_to_sals): Use std::sort to sort minimal symbols. | |
1531 | (struct collect_info) <minimal_symbols>: Likewise. | |
1532 | (compare_msymbols): Return bool. Change parameters to const | |
1533 | bound_minimal_symbol references. | |
1534 | (find_method, find_function_symbols, find_linespec_symbols): Change | |
1535 | `minsyms' parameter to std::vector. Update all callers. | |
1536 | ||
3553eadc KS |
1537 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
1538 | ||
1539 | * linespec.c (struct linespec) <label_symbols>: Change type to | |
1540 | std::vector. Update all users. | |
1541 | (find_label_symbols_in_block): Change `result' parameter to | |
1542 | std::vector. Update all callers. | |
1543 | (find_label_symbols): Return std::vector. Update all callers. | |
1544 | ||
7243d011 KS |
1545 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
1546 | ||
1547 | * linespec.c (struct linespec) <function_symbols>: Change type to | |
1548 | std::vector. Update all users. | |
1549 | (struct collect_info) <function_symbols>: Likewise. | |
1550 | (convert_linespec_to_sals): Use std::sort to sort function_symbols. | |
1551 | (std_compare_symbols): New function. | |
1552 | (find_method, find_function_symbols, find_linespec_symbols) | |
1553 | (find_label_symbols_in_block): Change `symbols' parameter to | |
1554 | std::vector. Update all callers. | |
1555 | (find_label_symbols): Likewise for `function_symbols' and | |
1556 | `label_funcs_ret'. | |
1557 | ||
2a908241 KS |
1558 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
1559 | ||
1560 | * linespec.c (symtab_vector_up): Define. | |
1561 | (struct linespec) <file_symtabs>: Change type to std::vector *. | |
1562 | Update all uses. | |
1563 | (struct collect_info) <file_symtabs>: Likewise. | |
1564 | (collect_symtabs_from_filename): Return symtab_vector_up. | |
1565 | Update all callers. | |
1566 | (decode_objc): Remove cleanup. | |
1567 | (symtab_collector::symtab_collector): Initialize `m_symtabs'. | |
1568 | (symtab_collector::release_symtabs): Return symtab_vector_up. | |
1569 | Update all callers. | |
1570 | (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up. | |
1571 | Update all users. | |
1572 | (collect_symtabs_from_filename, symtabs_from_filename): Return | |
1573 | symtab_vector_up. Update all callers. | |
1574 | ||
f6c4e3e8 TT |
1575 | 2018-08-29 Tom Tromey <tom@tromey.com> |
1576 | ||
1577 | * csky-tdep.c (csky_analyze_prologue): Use | |
1578 | core_addr_to_string_nz. | |
1579 | ||
73c13fe6 TT |
1580 | 2018-08-29 Tom Tromey <tom@tromey.com> |
1581 | ||
1582 | * windows-nat.c (struct xlate_exception) <them>: Change type to | |
1583 | DWORD. | |
1584 | (xlate): Fix formatting. Remove last entry. | |
1585 | (struct xlate_exception, xlate): Comment out. | |
1586 | (windows_nat_target::resume): Use ranged for. | |
1587 | ||
4d3928d7 JW |
1588 | 2018-08-29 Jim Wilson <jimw@sifive.com> |
1589 | ||
1590 | * riscv-linux-nat.c: Include elf/common.h instead of elf.h. | |
1591 | (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead | |
1592 | of NT_PRFPREG. | |
1593 | (riscv_linux_nat_target::store_registers): Likewise. | |
1594 | ||
7a6dbc2f SDJ |
1595 | 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com> |
1596 | ||
1597 | PR gdb/23555 | |
1598 | PR gdb/23558 | |
1599 | * gnulib/aclocal.m4: Regenerate. | |
1600 | * gnulib/config.in: Regenerate. | |
1601 | * gnulib/configure: Regenerate. | |
1602 | * gnulib/import/Makefile.am: Update. | |
1603 | * gnulib/import/Makefile.in: Update. | |
1604 | * gnulib/import/extra/snippet/_Noreturn.h: Rename to... | |
1605 | * gnulib/import/_Noreturn.h: ... this. | |
1606 | * gnulib/import/alloca.in.h: Update. | |
1607 | * gnulib/import/extra/snippet/arg-nonnull.h: Rename to... | |
1608 | * gnulib/import/arg-nonnull.h: ... this. | |
1609 | * gnulib/import/assure.h: Update. | |
1610 | * gnulib/import/at-func.c: Update. | |
1611 | * gnulib/import/basename-lgpl.c: Update. | |
1612 | * gnulib/import/extra/snippet/c++defs.h: Rename to... | |
1613 | * gnulib/import/c++defs.h: ... this. | |
1614 | * gnulib/import/canonicalize-lgpl.c: Update. | |
1615 | * gnulib/import/cdefs.h: Update. | |
1616 | * gnulib/import/chdir-long.c: Update. | |
1617 | * gnulib/import/chdir-long.h: Update. | |
1618 | * gnulib/import/cloexec.c: Update. | |
1619 | * gnulib/import/cloexec.h: Update. | |
1620 | * gnulib/import/close.c: Update. | |
1621 | * gnulib/import/closedir.c: Update. | |
1622 | * gnulib/import/config.charset: Update. | |
1623 | * gnulib/import/dirent-private.h: Update. | |
1624 | * gnulib/import/dirent.in.h: Update. | |
1625 | * gnulib/import/dirfd.c: Update. | |
1626 | * gnulib/import/dirname-lgpl.c: Update. | |
1627 | * gnulib/import/dirname.h: Update. | |
1628 | * gnulib/import/dosname.h: Update. | |
1629 | * gnulib/import/dup-safer-flag.c: Update. | |
1630 | * gnulib/import/dup-safer.c: Update. | |
1631 | * gnulib/import/dup.c: Update. | |
1632 | * gnulib/import/dup2.c: Update. | |
1633 | * gnulib/import/errno.in.h: Update. | |
1634 | * gnulib/import/error.c: Update. | |
1635 | * gnulib/import/error.h: Update. | |
1636 | * gnulib/import/exitfail.c: Update. | |
1637 | * gnulib/import/exitfail.h: Update. | |
1638 | * gnulib/import/extra/update-copyright: Update. | |
1639 | * gnulib/import/fchdir.c: Update. | |
1640 | * gnulib/import/fcntl.c: Update. | |
1641 | * gnulib/import/fcntl.in.h: Update. | |
1642 | * gnulib/import/fd-hook.c: Update. | |
1643 | * gnulib/import/fd-hook.h: Update. | |
1644 | * gnulib/import/fd-safer-flag.c: Update. | |
1645 | * gnulib/import/fd-safer.c: Update. | |
1646 | * gnulib/import/fdopendir.c: Update. | |
1647 | * gnulib/import/filename.h: Update. | |
1648 | * gnulib/import/filenamecat-lgpl.c: Update. | |
1649 | * gnulib/import/filenamecat.h: Update. | |
1650 | * gnulib/import/flexmember.h: Update. | |
1651 | * gnulib/import/float+.h: Update. | |
1652 | * gnulib/import/float.c: Update. | |
1653 | * gnulib/import/float.in.h: Update. | |
1654 | * gnulib/import/fnmatch.c: Update. | |
1655 | * gnulib/import/fnmatch.in.h: Update. | |
1656 | * gnulib/import/fnmatch_loop.c: Update. | |
1657 | * gnulib/import/fpucw.h: Update. | |
1658 | * gnulib/import/frexp.c: Update. | |
1659 | * gnulib/import/frexpl.c: Update. | |
1660 | * gnulib/import/fstat.c: Update. | |
1661 | * gnulib/import/fstatat.c: Update. | |
1662 | * gnulib/import/getcwd-lgpl.c: Update. | |
1663 | * gnulib/import/getcwd.c: Update. | |
1664 | * gnulib/import/getdtablesize.c: Update. | |
1665 | * gnulib/import/getlogin_r.c: Update. | |
1666 | * gnulib/import/getprogname.c: Update. | |
1667 | * gnulib/import/getprogname.h: Update. | |
1668 | * gnulib/import/gettext.h: Update. | |
1669 | * gnulib/import/gettimeofday.c: Update. | |
1670 | * gnulib/import/glob-libc.h: Update. | |
1671 | * gnulib/import/glob.c: Update. | |
1672 | * gnulib/import/glob.in.h: Update. | |
1673 | * gnulib/import/glob_internal.h: Update. | |
1674 | * gnulib/import/glob_pattern_p.c: Update. | |
1675 | * gnulib/import/globfree.c: Update. | |
1676 | * gnulib/import/hard-locale.c: Update. | |
1677 | * gnulib/import/hard-locale.h: Update. | |
1678 | * gnulib/import/intprops.h: Update. | |
1679 | * gnulib/import/inttypes.in.h: Update. | |
1680 | * gnulib/import/isnan.c: Update. | |
1681 | * gnulib/import/isnand-nolibm.h: Update. | |
1682 | * gnulib/import/isnand.c: Update. | |
1683 | * gnulib/import/isnanl-nolibm.h: Update. | |
1684 | * gnulib/import/isnanl.c: Update. | |
1685 | * gnulib/import/itold.c: Update. | |
1686 | * gnulib/import/libc-config.h: Update. | |
1687 | * gnulib/import/limits.in.h: Update. | |
1688 | * gnulib/import/localcharset.c: Update. | |
1689 | * gnulib/import/localcharset.h: Update. | |
1690 | * gnulib/import/localtime-buffer.c: Update. | |
1691 | * gnulib/import/localtime-buffer.h: Update. | |
1692 | * gnulib/import/lstat.c: Update. | |
1693 | * gnulib/import/m4/00gnulib.m4: Update. | |
1694 | * gnulib/import/m4/__inline.m4: Update. | |
1695 | * gnulib/import/m4/absolute-header.m4: Update. | |
1696 | * gnulib/import/m4/alloca.m4: Update. | |
1697 | * gnulib/import/m4/builtin-expect.m4: Update. | |
1698 | * gnulib/import/m4/canonicalize.m4: Update. | |
1699 | * gnulib/import/m4/chdir-long.m4: Update. | |
1700 | * gnulib/import/m4/close.m4: Update. | |
1701 | * gnulib/import/m4/closedir.m4: Update. | |
1702 | * gnulib/import/m4/configmake.m4: Update. | |
1703 | * gnulib/import/m4/d-ino.m4: Update. | |
1704 | * gnulib/import/m4/d-type.m4: Update. | |
1705 | * gnulib/import/m4/dirent_h.m4: Update. | |
1706 | * gnulib/import/m4/dirfd.m4: Update. | |
1707 | * gnulib/import/m4/dirname.m4: Update. | |
1708 | * gnulib/import/m4/double-slash-root.m4: Update. | |
1709 | * gnulib/import/m4/dup.m4: Update. | |
1710 | * gnulib/import/m4/dup2.m4: Update. | |
1711 | * gnulib/import/m4/eealloc.m4: Update. | |
1712 | * gnulib/import/m4/environ.m4: Update. | |
1713 | * gnulib/import/m4/errno_h.m4: Update. | |
1714 | * gnulib/import/m4/error.m4: Update. | |
1715 | * gnulib/import/m4/exponentd.m4: Update. | |
1716 | * gnulib/import/m4/exponentl.m4: Update. | |
1717 | * gnulib/import/m4/extensions.m4: Update. | |
1718 | * gnulib/import/m4/extern-inline.m4: Update. | |
1719 | * gnulib/import/m4/fchdir.m4: Update. | |
1720 | * gnulib/import/m4/fcntl-o.m4: Update. | |
1721 | * gnulib/import/m4/fcntl.m4: Update. | |
1722 | * gnulib/import/m4/fcntl_h.m4: Update. | |
1723 | * gnulib/import/m4/fdopendir.m4: Update. | |
1724 | * gnulib/import/m4/filenamecat.m4: Update. | |
1725 | * gnulib/import/m4/flexmember.m4: Update. | |
1726 | * gnulib/import/m4/float_h.m4: Update. | |
1727 | * gnulib/import/m4/fnmatch.m4: Update. | |
1728 | * gnulib/import/m4/fnmatch_h.m4: Update. | |
1729 | * gnulib/import/m4/fpieee.m4: Update. | |
1730 | * gnulib/import/m4/frexp.m4: Update. | |
1731 | * gnulib/import/m4/frexpl.m4: Update. | |
1732 | * gnulib/import/m4/fstat.m4: Update. | |
1733 | * gnulib/import/m4/fstatat.m4: Update. | |
1734 | * gnulib/import/m4/getcwd-abort-bug.m4: Update. | |
1735 | * gnulib/import/m4/getcwd-path-max.m4: Update. | |
1736 | * gnulib/import/m4/getcwd.m4: Update. | |
1737 | * gnulib/import/m4/getdtablesize.m4: Update. | |
1738 | * gnulib/import/m4/getlogin.m4: Update. | |
1739 | * gnulib/import/m4/getlogin_r.m4: Update. | |
1740 | * gnulib/import/m4/getpagesize.m4: Update. | |
1741 | * gnulib/import/m4/getprogname.m4: Update. | |
1742 | * gnulib/import/m4/gettimeofday.m4: Update. | |
1743 | * gnulib/import/m4/glibc21.m4: Update. | |
1744 | * gnulib/import/m4/glob.m4: Update. | |
1745 | * gnulib/import/m4/glob_h.m4: Update. | |
1746 | * gnulib/import/m4/gnulib-cache.m4: Update. | |
1747 | * gnulib/import/m4/gnulib-common.m4: Update. | |
1748 | * gnulib/import/m4/gnulib-comp.m4: Update. | |
1749 | * gnulib/import/m4/gnulib-tool.m4: Update. | |
1750 | * gnulib/import/m4/hard-locale.m4: Update. | |
1751 | * gnulib/import/m4/include_next.m4: Update. | |
1752 | * gnulib/import/m4/inttypes-pri.m4: Update. | |
1753 | * gnulib/import/m4/inttypes.m4: Update. | |
1754 | * gnulib/import/m4/isnand.m4: Update. | |
1755 | * gnulib/import/m4/isnanl.m4: Update. | |
1756 | * gnulib/import/m4/largefile.m4: Update. | |
1757 | * gnulib/import/m4/limits-h.m4: Update. | |
1758 | * gnulib/import/m4/localcharset.m4: Update. | |
1759 | * gnulib/import/m4/locale-fr.m4: Update. | |
1760 | * gnulib/import/m4/locale-ja.m4: Update. | |
1761 | * gnulib/import/m4/locale-zh.m4: Update. | |
1762 | * gnulib/import/m4/localtime-buffer.m4: Update. | |
1763 | * gnulib/import/m4/longlong.m4: Update. | |
1764 | * gnulib/import/m4/lstat.m4: Update. | |
1765 | * gnulib/import/m4/malloc.m4: Update. | |
1766 | * gnulib/import/m4/malloca.m4: Update. | |
1767 | * gnulib/import/m4/math_h.m4: Update. | |
1768 | * gnulib/import/m4/mbrtowc.m4: Update. | |
1769 | * gnulib/import/m4/mbsinit.m4: Update. | |
1770 | * gnulib/import/m4/mbsrtowcs.m4: Update. | |
1771 | * gnulib/import/m4/mbstate_t.m4: Update. | |
1772 | * gnulib/import/m4/memchr.m4: Update. | |
1773 | * gnulib/import/m4/memmem.m4: Update. | |
1774 | * gnulib/import/m4/mempcpy.m4: Update. | |
1775 | * gnulib/import/m4/memrchr.m4: Update. | |
1776 | * gnulib/import/m4/mkdir.m4: Update. | |
1777 | * gnulib/import/m4/mkstemp.m4: Update. | |
1778 | * gnulib/import/m4/mmap-anon.m4: Update. | |
1779 | * gnulib/import/m4/mode_t.m4: Update. | |
1780 | * gnulib/import/m4/msvc-inval.m4: Update. | |
1781 | * gnulib/import/m4/msvc-nothrow.m4: Update. | |
1782 | * gnulib/import/m4/multiarch.m4: Update. | |
1783 | * gnulib/import/m4/nocrash.m4: Update. | |
1784 | * gnulib/import/m4/off_t.m4: Update. | |
1785 | * gnulib/import/m4/onceonly.m4: Update. | |
1786 | * gnulib/import/m4/open-cloexec.m4: Update. | |
1787 | * gnulib/import/m4/open.m4: Update. | |
1788 | * gnulib/import/m4/openat.m4: Update. | |
1789 | * gnulib/import/m4/opendir.m4: Update. | |
1790 | * gnulib/import/m4/pathmax.m4: Update. | |
1791 | * gnulib/import/m4/rawmemchr.m4: Update. | |
1792 | * gnulib/import/m4/readdir.m4: Update. | |
1793 | * gnulib/import/m4/readlink.m4: Update. | |
1794 | * gnulib/import/m4/realloc.m4: Update. | |
1795 | * gnulib/import/m4/rename.m4: Update. | |
1796 | * gnulib/import/m4/rewinddir.m4: Update. | |
1797 | * gnulib/import/m4/rmdir.m4: Update. | |
1798 | * gnulib/import/m4/save-cwd.m4: Update. | |
1799 | * gnulib/import/m4/secure_getenv.m4: Update. | |
1800 | * gnulib/import/m4/setenv.m4: Update. | |
1801 | * gnulib/import/m4/signal_h.m4: Update. | |
1802 | * gnulib/import/m4/ssize_t.m4: Update. | |
1803 | * gnulib/import/m4/stat-time.m4: Update. | |
1804 | * gnulib/import/m4/stat.m4: Update. | |
1805 | * gnulib/import/m4/std-gnu11.m4: Update. | |
1806 | * gnulib/import/m4/stdbool.m4: Update. | |
1807 | * gnulib/import/m4/stddef_h.m4: Update. | |
1808 | * gnulib/import/m4/stdint.m4: Update. | |
1809 | * gnulib/import/m4/stdio_h.m4: Update. | |
1810 | * gnulib/import/m4/stdlib_h.m4: Update. | |
1811 | * gnulib/import/m4/strchrnul.m4: Update. | |
1812 | * gnulib/import/m4/strdup.m4: Update. | |
1813 | * gnulib/import/m4/strerror.m4: Update. | |
1814 | * gnulib/import/m4/string_h.m4: Update. | |
1815 | * gnulib/import/m4/strstr.m4: Update. | |
1816 | * gnulib/import/m4/strtok_r.m4: Update. | |
1817 | * gnulib/import/m4/sys_socket_h.m4: Update. | |
1818 | * gnulib/import/m4/sys_stat_h.m4: Update. | |
1819 | * gnulib/import/m4/sys_time_h.m4: Update. | |
1820 | * gnulib/import/m4/sys_types_h.m4: Update. | |
1821 | * gnulib/import/m4/tempname.m4: Update. | |
1822 | * gnulib/import/m4/time_h.m4: Update. | |
1823 | * gnulib/import/m4/unistd-safer.m4: Update. | |
1824 | * gnulib/import/m4/unistd_h.m4: Update. | |
1825 | * gnulib/import/m4/warn-on-use.m4: Update. | |
1826 | * gnulib/import/m4/wchar_h.m4: Update. | |
1827 | * gnulib/import/m4/wchar_t.m4: Update. | |
1828 | * gnulib/import/m4/wctype_h.m4: Update. | |
1829 | * gnulib/import/m4/wint_t.m4: Update. | |
1830 | * gnulib/import/malloc.c: Update. | |
1831 | * gnulib/import/malloc/scratch_buffer.h: Update. | |
1832 | * gnulib/import/malloc/scratch_buffer_grow.c: Update. | |
1833 | * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update. | |
1834 | * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update. | |
1835 | * gnulib/import/malloca.c: Update. | |
1836 | * gnulib/import/malloca.h: Update. | |
1837 | * gnulib/import/malloca.valgrind: Update. | |
1838 | * gnulib/import/math.in.h: Update. | |
1839 | * gnulib/import/mbrtowc.c: Update. | |
1840 | * gnulib/import/mbsinit.c: Update. | |
1841 | * gnulib/import/mbsrtowcs-impl.h: Update. | |
1842 | * gnulib/import/mbsrtowcs-state.c: Update. | |
1843 | * gnulib/import/mbsrtowcs.c: Update. | |
1844 | * gnulib/import/memchr.c: Update. | |
1845 | * gnulib/import/memmem.c: Update. | |
1846 | * gnulib/import/mempcpy.c: Update. | |
1847 | * gnulib/import/memrchr.c: Update. | |
1848 | * gnulib/import/mkdir.c: Update. | |
1849 | * gnulib/import/mkstemp.c: Update. | |
1850 | * gnulib/import/msvc-inval.c: Update. | |
1851 | * gnulib/import/msvc-inval.h: Update. | |
1852 | * gnulib/import/msvc-nothrow.c: Update. | |
1853 | * gnulib/import/msvc-nothrow.h: Update. | |
1854 | * gnulib/import/open.c: Update. | |
1855 | * gnulib/import/openat-die.c: Update. | |
1856 | * gnulib/import/openat-priv.h: Update. | |
1857 | * gnulib/import/openat-proc.c: Update. | |
1858 | * gnulib/import/openat.c: Update. | |
1859 | * gnulib/import/openat.h: Update. | |
1860 | * gnulib/import/opendir.c: Update. | |
1861 | * gnulib/import/pathmax.h: Update. | |
1862 | * gnulib/import/pipe-safer.c: Update. | |
1863 | * gnulib/import/rawmemchr.c: Update. | |
1864 | * gnulib/import/readdir.c: Update. | |
1865 | * gnulib/import/readlink.c: Update. | |
1866 | * gnulib/import/realloc.c: Update. | |
1867 | * gnulib/import/ref-add.sin: Update. | |
1868 | * gnulib/import/ref-del.sin: Update. | |
1869 | * gnulib/import/rename.c: Update. | |
1870 | * gnulib/import/rewinddir.c: Update. | |
1871 | * gnulib/import/rmdir.c: Update. | |
1872 | * gnulib/import/same-inode.h: Update. | |
1873 | * gnulib/import/save-cwd.c: Update. | |
1874 | * gnulib/import/save-cwd.h: Update. | |
1875 | * gnulib/import/scratch_buffer.h: Update. | |
1876 | * gnulib/import/secure_getenv.c: Update. | |
1877 | * gnulib/import/setenv.c: Update. | |
1878 | * gnulib/import/signal.in.h: Update. | |
1879 | * gnulib/import/stat-time.c: Update. | |
1880 | * gnulib/import/stat-time.h: Update. | |
1881 | * gnulib/import/stat-w32.c: Update. | |
1882 | * gnulib/import/stat-w32.h: Update. | |
1883 | * gnulib/import/stat.c: Update. | |
1884 | * gnulib/import/stdbool.in.h: Update. | |
1885 | * gnulib/import/stddef.in.h: Update. | |
1886 | * gnulib/import/stdint.in.h: Update. | |
1887 | * gnulib/import/stdio.in.h: Update. | |
1888 | * gnulib/import/stdlib.in.h: Update. | |
1889 | * gnulib/import/str-two-way.h: Update. | |
1890 | * gnulib/import/strchrnul.c: Update. | |
1891 | * gnulib/import/strdup.c: Update. | |
1892 | * gnulib/import/streq.h: Update. | |
1893 | * gnulib/import/strerror-override.c: Update. | |
1894 | * gnulib/import/strerror-override.h: Update. | |
1895 | * gnulib/import/strerror.c: Update. | |
1896 | * gnulib/import/string.in.h: Update. | |
1897 | * gnulib/import/stripslash.c: Update. | |
1898 | * gnulib/import/strnlen1.c: Update. | |
1899 | * gnulib/import/strnlen1.h: Update. | |
1900 | * gnulib/import/strstr.c: Update. | |
1901 | * gnulib/import/strtok_r.c: Update. | |
1902 | * gnulib/import/sys_stat.in.h: Update. | |
1903 | * gnulib/import/sys_time.in.h: Update. | |
1904 | * gnulib/import/sys_types.in.h: Update. | |
1905 | * gnulib/import/tempname.c: Update. | |
1906 | * gnulib/import/tempname.h: Update. | |
1907 | * gnulib/import/time.in.h: Update. | |
1908 | * gnulib/import/unistd--.h: Update. | |
1909 | * gnulib/import/unistd-safer.h: Update. | |
1910 | * gnulib/import/unistd.in.h: Update. | |
1911 | * gnulib/import/unsetenv.c: Update. | |
1912 | * gnulib/import/verify.h: Update. | |
1913 | * gnulib/import/extra/snippet/warn-on-use.h: Update. | |
1914 | * gnulib/import/wchar.in.h: Update. | |
1915 | * gnulib/import/wctype.in.h: Update. | |
1916 | * gnulib/import/xalloc-oversized.h: Update. | |
1917 | * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to | |
1918 | "53e2c179f26a890fa6685af4b6c1397ee370433b". | |
1919 | ||
b0f492b9 GB |
1920 | 2018-08-16 Gary Benson <gbenson@redhat.com> |
1921 | ||
1922 | PR gdb/13000: | |
1923 | * gdb/main.c (captured_main_1): Exit with nonzero status | |
1924 | in batch mode if the last command to be executed failed. | |
1925 | * NEWS: Mention the above. | |
1926 | ||
2362e7f7 SM |
1927 | 2018-08-29 Simon Marchi <simon.marchi@ericsson.com> |
1928 | ||
1929 | * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at | |
1930 | end of warning message. | |
1931 | ||
4f4aedeb AH |
1932 | 2018-08-29 Alan Hayward <alan.hayward@arm.com> |
1933 | ||
1934 | PR gdb/22943: | |
1935 | * aarch64-tdep.c (is_hfa_or_hva): Remove function. | |
1936 | (aarch64_extract_return_value): Use | |
1937 | aapcs_is_vfp_call_or_return_candidate. | |
1938 | (aarch64_return_in_memory): Likewise. | |
1939 | (aarch64_store_return_value): Likewise. | |
1940 | ||
0e745c60 AH |
1941 | 2018-08-29 Alan Hayward <alan.hayward@arm.com> |
1942 | ||
1943 | * aarch64-tdep.c | |
1944 | (aapcs_is_vfp_call_or_return_candidate): Make static | |
1945 | (pass_in_v_or_stack): Remove function. | |
1946 | (pass_in_v_vfp_candidate): New function. | |
1947 | (aarch64_push_dummy_call): Check for float register candidates. | |
1948 | ||
ea92689a AH |
1949 | 2018-08-29 Alan Hayward <alan.hayward@arm.com> |
1950 | ||
1951 | * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro. | |
1952 | (aapcs_is_vfp_call_or_return_candidate_1): New function. | |
1953 | (aapcs_is_vfp_call_or_return_candidate): Likewise. | |
1954 | ||
ad202fcc SM |
1955 | 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca> |
1956 | ||
1957 | PR build/23399 | |
1958 | * common/agent.c (IPA_SYM_STRUCT_NAME): Define. | |
1959 | (struct ipa_sym_addresses): Rename to... | |
1960 | (struct ipa_sym_addresses_common): ... this. | |
1961 | * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME. | |
1962 | ||
5fe3f3e4 TT |
1963 | 2018-08-28 Tom Tromey <tom@tromey.com> |
1964 | ||
1965 | * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC. | |
1966 | (token_fifo): Now a std::vector. | |
1967 | (yylex, c_parse): Update. | |
1968 | * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC. | |
1969 | (token_fifo): Now a std::vector. | |
1970 | (yylex, d_parse): Update. | |
1971 | * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC. | |
1972 | (token_fifo): Now a std::vector. | |
1973 | (yylex, go_parse): Update. | |
1974 | ||
858d8004 SM |
1975 | 2018-08-28 Simon Marchi <simon.marchi@ericsson.com> |
1976 | ||
1977 | * parser-defs.h (struct type_stack) <elements>: Change type to | |
1978 | std::vector<union type_stack_elt>. | |
1979 | <depth, size>: Remove. | |
1980 | * parse.c (parse_exp_in_context_1): Adjust. | |
1981 | (type_stack_reserve): Remove. | |
1982 | (check_type_stack_depth): Remove. | |
1983 | (insert_into_type_stack): Adjust to std::vector. | |
1984 | (insert_type): Likewise. | |
1985 | (push_type): Likewise. | |
1986 | (push_type_int): Likewise. | |
1987 | (insert_type_address_space): Likewise. | |
1988 | (pop_type): Likewise. | |
1989 | (pop_type_int): Likewise. | |
1990 | (pop_typelist): Likewise. | |
1991 | (pop_type_stack): Likewise. | |
1992 | (append_type_stack): Likewise. | |
1993 | (push_type_stack): Likewise. | |
1994 | (get_type_stack): Likewise. | |
1995 | (type_stack_cleanup): Likewise. | |
1996 | (push_typelist): Likewise. | |
1997 | (follow_types): Likewise. | |
1998 | (_initialize_parse): Likewise. | |
1999 | ||
416a69af HAQ |
2000 | 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com> |
2001 | ||
2002 | * NEWS: Mention csky target. | |
2003 | ||
9d24df82 HAQ |
2004 | 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com> |
2005 | Hafiz Abid Qadeer <abidh@codesourcery.com> | |
2006 | Don Breazeal <donb@codesourcery.com> | |
2007 | ||
2008 | * csky-linux-tdep.c: New file. | |
2009 | * csky-tdep.c: Likewise. | |
2010 | * csky-tdep.h: Likewise. | |
2011 | * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and | |
2012 | csky-tdep.o. | |
2013 | (HFILES_NO_SRCDIR): Add csky-tdep.h. | |
2014 | (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c | |
2015 | * configure.tgt: Add csky support. | |
2016 | ||
3bf9c013 JV |
2017 | 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz> |
2018 | ||
2019 | * python/py-framefilter.c (py_print_frame): Print frame architecture | |
2020 | when printing on an MI output. | |
2021 | ||
d3d8724a TT |
2022 | 2018-08-27 Tom Tromey <tom@tromey.com> |
2023 | ||
2024 | PR build/23087: | |
2025 | * configure: Rebuild. | |
2026 | * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing. | |
2027 | ||
1885053b TT |
2028 | 2018-08-27 Tom Tromey <tom@tromey.com> |
2029 | ||
2030 | * aarch64-linux-tdep.c | |
2031 | (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add | |
2032 | casts to int. | |
2033 | ||
8406672e TT |
2034 | 2018-08-27 Tom Tromey <tom@tromey.com> |
2035 | ||
2036 | * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to | |
2037 | unsigned. | |
2038 | (ppc64_standard_linkage1, ppc64_standard_linkage2) | |
2039 | (ppc64_standard_linkage3, ppc64_standard_linkage4) | |
2040 | (ppc64_standard_linkage5, ppc64_standard_linkage6) | |
2041 | (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to | |
2042 | unsigned. | |
2043 | ||
ec40cf90 TT |
2044 | 2018-08-27 Tom Tromey <tom@tromey.com> |
2045 | ||
2046 | * xtensa-tdep.h (XTREG_END): Add cast to unsigned. | |
2047 | (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise. | |
2048 | ||
7bc02706 TT |
2049 | 2018-08-27 Tom Tromey <tom@tromey.com> |
2050 | ||
2051 | * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine. | |
2052 | * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use | |
2053 | ULONGEST_MAX. | |
2054 | * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use | |
2055 | ULONGEST_MAX. | |
2056 | * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use | |
2057 | ULONGEST_MAX. | |
2058 | * sparc-linux-tdep.c (sparc32_linux_sigframe) | |
2059 | (sparc32_linux_rt_sigframe): Use ULONGEST_MAX. | |
2060 | * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use | |
2061 | ULONGEST_MAX. | |
2062 | * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame) | |
2063 | (ppc64_linux_sigaction_tramp_frame) | |
2064 | (ppc32_linux_sighandler_tramp_frame) | |
2065 | (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX. | |
2066 | * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame) | |
2067 | (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX. | |
2068 | * mn10300-linux-tdep.c (am33_linux_sigframe) | |
2069 | (am33_linux_rt_sigframe): Use ULONGEST_MAX. | |
2070 | * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX. | |
2071 | * mips-linux-tdep.c (mips_linux_o32_sigframe) | |
2072 | (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe) | |
2073 | (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe) | |
2074 | (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe) | |
2075 | (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX. | |
2076 | * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe) | |
2077 | (mips64_fbsd_sigframe): Use ULONGEST_MAX. | |
2078 | * microblaze-linux-tdep.c | |
2079 | (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX. | |
2080 | * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2) | |
2081 | (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31) | |
2082 | (i386nbsd_sigtramp_si4): Use ULONGEST_MAX. | |
2083 | * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX. | |
2084 | * common/common-types.h (ULONGEST_MAX): New define. | |
2085 | (CORE_ADDR_MAX): Fix formatting. | |
2086 | * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX. | |
2087 | * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX. | |
2088 | * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame) | |
2089 | (arm_linux_rt_sigreturn_tramp_frame) | |
2090 | (arm_eabi_linux_sigreturn_tramp_frame) | |
2091 | (arm_eabi_linux_rt_sigreturn_tramp_frame) | |
2092 | (thumb2_eabi_linux_sigreturn_tramp_frame) | |
2093 | (thumb2_eabi_linux_rt_sigreturn_tramp_frame) | |
2094 | (arm_linux_restart_syscall_tramp_frame) | |
2095 | (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX. | |
2096 | * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX. | |
2097 | * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use | |
2098 | ULONGEST_MAX. | |
2099 | * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX. | |
2100 | ||
70ab8ccd TT |
2101 | 2018-08-27 Tom Tromey <tom@tromey.com> |
2102 | ||
2103 | * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use | |
2104 | CORE_ADDR_MAX. | |
2105 | * mips-tdep.c (mips_deal_with_atomic_sequence) | |
2106 | (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX. | |
2107 | * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw) | |
2108 | (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX. | |
2109 | * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use | |
2110 | CORE_ADDR_MAX. | |
2111 | * aarch64-tdep.c (aarch64_software_single_step): Use | |
2112 | CORE_ADDR_MAX. | |
2113 | ||
896a7aa6 TT |
2114 | 2018-08-27 Tom Tromey <tom@tromey.com> |
2115 | ||
2116 | * linespec.c (complete_linespec_component): Add cast to "char". | |
2117 | * completer.c (completion_tracker::build_completion_result): Add | |
2118 | cast to "char". | |
2119 | ||
dd33d41d SM |
2120 | 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca> |
2121 | ||
2122 | * solist.h (struct solist, struct target_so_ops): Fix | |
2123 | indentation. | |
2124 | ||
c645cda4 SM |
2125 | 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca> |
2126 | ||
2127 | * ada-tasks.c (ada_task_info_s): Remove typedef. | |
2128 | (DEF_VEC_O(ada_task_info_s)): Remove. | |
2129 | (struct ada_tasks_inferior_data): Initialize fields. | |
2130 | <task_list>: Make an std::vector. | |
2131 | (get_ada_tasks_inferior_data): Allocate with new. | |
2132 | (ada_get_task_number): Adjust. | |
2133 | (get_task_number_from_id): Likewise. | |
2134 | (valid_task_id): Likewise. | |
2135 | (ada_get_task_info_from_ptid): Likewise. | |
2136 | (iterate_over_live_ada_tasks): Likewise. | |
2137 | (add_ada_task): Likewise. | |
2138 | (read_known_tasks): Likewise. | |
2139 | (ada_build_task_list): Likewise. | |
2140 | (print_ada_task_info): Likewise. | |
2141 | (info_task): Likewise. | |
2142 | (task_command_1): Likewise. | |
2143 | ||
39e7af3e SM |
2144 | 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca> |
2145 | ||
2146 | * ada-lang.c (add_angle_brackets): Return std::string. | |
2147 | ||
bbbbbcee SM |
2148 | 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca> |
2149 | ||
2150 | * python/py-threadevent.c (py_get_event_thread): Initialize | |
2151 | pythread. | |
2152 | ||
d98fc15b PA |
2153 | 2018-08-24 Pedro Alves <palves@redhat.com> |
2154 | ||
2155 | * python/py-bpevent.c (create_breakpoint_event_object): Use | |
2156 | copy-initialization. | |
2157 | * python/py-continueevent.c (emit_continue_event): Use | |
2158 | copy-initialization. | |
2159 | * python/py-exitedevent.c (create_exited_event_object): Return a | |
2160 | gdbpy_ref<>. | |
2161 | (emit_exited_event): Use copy-initialization. | |
2162 | * python/py-inferior.c (python_new_inferior) | |
2163 | (python_inferior_deleted, add_thread_object): Use | |
2164 | copy-initialization. | |
2165 | * python/py-infevents.c (create_inferior_call_event_object) | |
2166 | (create_register_changed_event_object) | |
2167 | (create_memory_changed_event_object): Return a gdbpy_ref<>. | |
2168 | (emit_inferior_call_event, emit_memory_changed_event) | |
2169 | (emit_register_changed_event): Use copy-initialization. | |
2170 | * python/py-newobjfileevent.c (create_new_objfile_event_object): | |
2171 | Return a gdbpy_ref<>. | |
2172 | (emit_new_objfile_event): Use copy-initialization. | |
2173 | (create_clear_objfiles_event_object): Return a gdbpy_ref<>. | |
2174 | (emit_clear_objfiles_event): Use copy-initialization. | |
2175 | * python/py-signalevent.c (create_signal_event_object): Use | |
2176 | copy-initialization. | |
2177 | * python/py-threadevent.c (create_thread_event_object): Use | |
2178 | copy-initialization. | |
2179 | ||
da3c8738 PA |
2180 | 2018-08-24 Pedro Alves <palves@redhat.com> |
2181 | Simon Marchi <simon.marchi@ericsson.com> | |
2182 | ||
2183 | PR gdb/23379 | |
2184 | * python/py-continueevent.c: Include "gdbthread.h". | |
2185 | (create_continue_event_object): Add intro comment. Add 'ptid' | |
2186 | parameter. Use it to find thread to pass to | |
2187 | create_thread_event_object. | |
2188 | (emit_continue_event): Pass PTID down to | |
2189 | create_continue_event_object. | |
2190 | * python/py-event.h (py_get_event_thread): Declare. | |
2191 | (create_thread_event_object): Remove default from 'thread' | |
2192 | parameter. | |
2193 | * python/py-stopevent.c (create_stop_event_object): Use | |
2194 | py_get_event_thread. | |
2195 | * python/py-threadevent.c (get_event_thread): Rename to ... | |
2196 | (py_get_event_thread): ... this, make extern, add 'ptid' parameter | |
2197 | and use it to find the thread. | |
2198 | (create_thread_event_object): Assert that THREAD isn't null. | |
2199 | Don't find the event thread here. | |
2200 | ||
26457a9c KB |
2201 | 2018-08-23 Kevin Buettner <kevinb@redhat.com> |
2202 | ||
2203 | * block.h (blockrange, blockranges): New struct declarations. | |
2204 | (struct block): Add new field named `ranges'. | |
2205 | (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P) | |
2206 | (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New | |
2207 | macros for accessing ranges in struct block. | |
2208 | (make_blockranges): New declaration. | |
2209 | block.c (make_blockranges): New function. | |
2d5f09ec KB |
2210 | * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES |
2211 | for block. | |
fc811edd KB |
2212 | * symtab.h (find_pc_partial_function): Add new parameter `block'. |
2213 | * blockframe.c (cache_pc_function_block): New static global. | |
2214 | (clear_pc_function_cache): Clear cache_pc_function_block. | |
2215 | (find_pc_partial_function): Move comment to symtab.h. Add | |
2216 | support for non-contiguous blocks. | |
e9480230 KB |
2217 | * cli/cli-cmds.c (block.h): Include. |
2218 | (print_disassembly): Handle printing of non-contiguous blocks. | |
2219 | (disassemble_current_function): Likewise. | |
2220 | (disassemble_command): Likewise. | |
26457a9c | 2221 | |
2b1ffcfd KB |
2222 | * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of |
2223 | BLOCK_START. | |
2224 | * blockframe.c (get_pc_function_start): Likewise. | |
2225 | * compile/compile-c-symbols.c (convert_one_symbol): Likewise. | |
2226 | (gcc_symbol_address): Likewise. | |
2227 | * compile/compile-object-run.c (compile_object_run): Likewise. | |
2228 | * compile/compile.c (get_expr_block_and_pc): Likewise. | |
2229 | * dwarf2loc.c (dwarf2_find_location_expression): Likewise. | |
2230 | (func_addr_to_tail_call_list): Likewise. | |
2231 | * findvar.c (default_read_var_value): Likewise. | |
2232 | * inline-frame.c (inline_frame_this_id): Likewise. | |
2233 | (skip-inline_frames): Likewise. | |
2234 | * infcmd.c (until_next_command): Likewise. | |
2235 | * linespec.c (convert_linespec_to_sals): Likewise. | |
2236 | * parse.c (parse_exp_in_context_1): Likewise. | |
2237 | * printcmd.c (build_address_symbolic): likewise. | |
2238 | (info_address_command): Likewise. | |
2239 | symtab.c (find_function_start_sal): Likewise. | |
2240 | (skip_prologue_sal): Likewise. | |
2241 | (find_function_alias_target): Likewise. | |
2242 | (find_gnu_ifunc): Likewise. | |
2243 | * stack.c (find_frame_funname): Likewise. | |
2244 | * symtab.c (fixup_symbol_section): Likewise. | |
2245 | (find_function_start_sal): Likewise. | |
2246 | (skip_prologue_sal): Likewsie. | |
2247 | (find_function_alias_target): Likewise. | |
2248 | (find_gnu_ifunc): Likewise. | |
2249 | * tracepoint.c (info_scope_command): Likewise. | |
2250 | * value.c (value_fn_field): Likewise. | |
2251 | ||
9644dc3a KB |
2252 | * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc |
2253 | in place of find_pc_partial_function. | |
2254 | * blockframe.c (find_function_entry_range_from_pc): New function. | |
2255 | * symtab.h (find_function_entry_range_from_pc): Declare and document. | |
2256 | * objfiles.c (objfile_relocate1): Relocate start and end addresses | |
2257 | for each range in a block. | |
2258 | ||
2259 | ||
12a0d0f6 XR |
2260 | 2018-08-23 Xavier Roirand <roirand@adacore.com> |
2261 | ||
2262 | * machoread.c (macho_symfile_read_all_oso): Remove uneeded | |
2263 | incrementation. | |
2264 | ||
d1012b8e SM |
2265 | 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca> |
2266 | ||
2267 | * solib-svr4.c (read_program_headers_from_bfd): Return | |
2268 | gdb::optional<gdb::byte_vector>. | |
2269 | (svr4_exec_displacement): Adjust. | |
2270 | ||
17658d46 SM |
2271 | 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca> |
2272 | ||
2273 | * solib-svr4.c (read_program_header): Return | |
2274 | gdb::optional<gdb::byte_vector>, remove p_sect_size param. | |
2275 | (find_program_interpreter): Return | |
2276 | gdb::optional<gdb::byte_vector>. | |
2277 | (scan_dyntag_auxv): Adjust. | |
2278 | (enable_break): Adjust. | |
2279 | (svr4_exec_displacement): Adjust. | |
2280 | ||
ae739fe7 SM |
2281 | 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca> |
2282 | ||
2283 | * inf-child.h (inf_child_target) <terminal_save_inferior>: New. | |
2284 | * inf-child.c (inf_child_target::terminal_save_inferior): New. | |
2285 | ||
467dc1e2 SM |
2286 | 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca> |
2287 | ||
2288 | * guile/scm-string.c (gdbscm_scm_from_printf): Use | |
2289 | string_vprintf. | |
2290 | * guile/scm-utils.c (gdbscm_printf): Likewise. | |
2291 | * serial.c (serial_printf): Likewise. | |
2292 | * xml-support.c (gdb_xml_parser::vdebug): Likewise. | |
2293 | ||
6d52907e JV |
2294 | 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz> |
2295 | ||
2296 | * stack.c (print_frame): Print frame architecture when printing on | |
2297 | an MI output. | |
2298 | * NEWS: Mention new "arch" attribute in frame output. | |
2299 | ||
9758a8f8 AH |
2300 | 2018-08-21 Alan Hayward <alan.hayward@arm.com> |
2301 | ||
2302 | * arch/aarch64.h (aarch64_regnum): Update comment. | |
2303 | ||
1461bdac AH |
2304 | 2018-08-21 Alan Hayward <alan.hayward@arm.com> |
2305 | ||
2306 | * NEWS: Add SVE to 8.2 section. | |
2307 | ||
4895f384 PA |
2308 | 2018-08-21 Pedro Alves <palves@redhat.com> |
2309 | ||
2310 | * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored | |
2311 | out from gdbscm_parse_function_args. | |
2312 | (gdbscm_parse_function_args): Rework to use gdbscm_wrap and | |
2313 | gdbscm_parse_function_args_1. | |
2314 | ||
a4497d2f SM |
2315 | 2018-08-21 Simon Marchi <simon.marchi@ericsson.com> |
2316 | ||
2317 | PR gdb/17816 | |
2318 | * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary | |
2319 | operator. | |
2320 | ||
c44deb73 SM |
2321 | 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca> |
2322 | ||
2323 | * solib-svr4.c (svr4_exec_displacement): Fix formatting. | |
2324 | ||
be2d111a MS |
2325 | 2018-08-19 Michael Spang <spang@google.com> |
2326 | ||
2327 | PR gdb/11786 | |
2328 | * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields | |
2329 | for PT_TLS segments. | |
2330 | ||
a6b786da KB |
2331 | 2018-08-18 Kevin Buettner <kevinb@redhat.com> |
2332 | ||
2333 | * dwarf2expr.h (struct dwarf_expr_context): Add virtual method | |
2334 | dwarf_variable_value. | |
2335 | * dwarf2-frame.c (class dwarf_expr_executor): | |
2336 | Add override for dwarf_variable_value. | |
2337 | * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise. | |
2338 | (class symbol_needs_eval_context): Likewise. | |
2339 | (indirect_synthetic_pointer): Add forward declaration. | |
2340 | (sect_variable_value): New function. | |
2341 | (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value. | |
2342 | * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case | |
2343 | for DW_OP_GNU_variable_value. | |
2344 | ||
89fbedf3 TT |
2345 | 2018-08-16 Tom Tromey <tom@tromey.com> |
2346 | ||
2347 | * top.c (read_command_file): Update. | |
2348 | (command_line_input): Remove "repeat" argument. | |
2349 | * ada-lang.c (get_selections): Update. | |
2350 | * linespec.c (decode_line_2): Update. | |
2351 | * defs.h (command_line_input): Remove argument. | |
2352 | * cli/cli-script.c (read_next_line): Update. | |
2353 | * python/py-gdb-readline.c: Update. | |
2354 | ||
12582533 TT |
2355 | 2018-08-17 Tom Tromey <tom@tromey.com> |
2356 | ||
2357 | * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to | |
2358 | command_line_input. | |
2359 | ||
49514353 TT |
2360 | 2018-08-15 Tom Tromey <tom@tromey.com> |
2361 | ||
2362 | * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest. | |
2363 | ||
26fb3983 JV |
2364 | 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz> |
2365 | ||
2366 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option. | |
2367 | If used, use find_pc_partial_function to find address range | |
2368 | to disassemble. | |
2369 | * mi/mi-main.c (mi_cmd_list_features): Report | |
2370 | "data-disassemble-a-option" feature. | |
2371 | * NEWS: Mention new -data-disassemble option -a. | |
2372 | ||
a97b53dd TT |
2373 | 2018-08-13 Tom Tromey <tom@tromey.com> |
2374 | ||
2375 | * common/common-defs.h (_FORTIFY_SOURCE): Define. | |
2376 | ||
0c76e06d AH |
2377 | 2018-08-13 Alan Hayward <alan.hayward@arm.com> |
2378 | ||
2379 | * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function. | |
2380 | (aarch64_linux_collect_sve_regset): Likewise. | |
2381 | (aarch64_linux_iterate_over_regset_sections): Check for SVE. | |
2382 | * regcache.h (regcache_map_entry_size): New function. | |
2383 | ||
b7fd65b9 AH |
2384 | 2018-08-13 Alan Hayward <alan.hayward@arm.com> |
2385 | ||
2386 | * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define. | |
2387 | (SVE_HEADER_MAX_SIZE_LENGTH): Likewise. | |
2388 | (SVE_HEADER_VL_LENGTH): Likewise. | |
2389 | (SVE_HEADER_MAX_VL_LENGTH): Likewise. | |
2390 | (SVE_HEADER_FLAGS_LENGTH): Likewise. | |
2391 | (SVE_HEADER_RESERVED_LENGTH): Likewise. | |
2392 | (SVE_HEADER_SIZE_OFFSET): Likewise. | |
2393 | (SVE_HEADER_MAX_SIZE_OFFSET): Likewise. | |
2394 | (SVE_HEADER_VL_OFFSET): Likewise. | |
2395 | (SVE_HEADER_MAX_VL_OFFSET): Likewise. | |
2396 | (SVE_HEADER_FLAGS_OFFSET): Likewise. | |
2397 | (SVE_HEADER_RESERVED_OFFSET): Likewise. | |
2398 | (SVE_HEADER_SIZE): Likewise. | |
2399 | (aarch64_linux_core_read_vq): Add function. | |
2400 | (aarch64_linux_core_read_description): Check for SVE section. | |
2401 | ||
a616bb94 AH |
2402 | 2018-08-13 Alan Hayward <alan.hayward@arm.com> |
2403 | ||
2404 | * aarch64-fbsd-tdep.c | |
2405 | (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and | |
2406 | collect_size. | |
2407 | * aarch64-linux-tdep.c | |
2408 | (aarch64_linux_iterate_over_regset_sections): Likewise. | |
2409 | * alpha-linux-tdep.c | |
2410 | (alpha_linux_iterate_over_regset_sections): | |
2411 | * alpha-nbsd-tdep.c | |
2412 | (alphanbsd_iterate_over_regset_sections): Likewise. | |
2413 | * amd64-fbsd-tdep.c | |
2414 | (amd64fbsd_iterate_over_regset_sections): Likewise. | |
2415 | * amd64-linux-tdep.c | |
2416 | (amd64_linux_iterate_over_regset_sections): Likewise. | |
2417 | * arm-bsd-tdep.c | |
2418 | (armbsd_iterate_over_regset_sections): Likewise. | |
2419 | * arm-fbsd-tdep.c | |
2420 | (arm_fbsd_iterate_over_regset_sections): Likewise. | |
2421 | * arm-linux-tdep.c | |
2422 | (arm_linux_iterate_over_regset_sections): Likewise. | |
2423 | * corelow.c (get_core_registers_cb): Likewise. | |
2424 | (core_target::fetch_registers): Likewise. | |
2425 | * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise. | |
2426 | * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise. | |
2427 | * gdbarch.h (void): Regenerate. | |
2428 | * gdbarch.sh: Add supply_size and collect_size. | |
2429 | * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise. | |
2430 | * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise. | |
2431 | * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise. | |
2432 | * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise. | |
2433 | * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise. | |
2434 | * i386-tdep.c (i386_iterate_over_regset_sections): Likewise. | |
2435 | * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise. | |
2436 | * linux-tdep.c (linux_collect_regset_section_cb): Likewise. | |
2437 | * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise. | |
2438 | * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise. | |
2439 | * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise. | |
2440 | * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise. | |
2441 | * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise. | |
2442 | * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise. | |
2443 | * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise. | |
2444 | * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise. | |
2445 | * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise. | |
2446 | * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise. | |
2447 | * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise. | |
2448 | * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise. | |
2449 | * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise. | |
2450 | * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise. | |
2451 | * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise. | |
2452 | * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise. | |
2453 | * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise. | |
2454 | * sh-tdep.c (sh_iterate_over_regset_sections): Likewise. | |
2455 | * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise. | |
2456 | * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise. | |
2457 | * vax-tdep.c (vax_iterate_over_regset_sections): Likewise. | |
2458 | * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise. | |
2459 | ||
a9925d4f SM |
2460 | 2018-08-10 Simon Marchi <simon.marchi@ericsson.com> |
2461 | ||
2462 | * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf | |
2463 | with string_printf. | |
2464 | ||
ad3a68e9 KS |
2465 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
2466 | ||
2467 | * compile/compile-c-support.c (add_code_header, add_code_footer): | |
2468 | Move into policy class. | |
2469 | (c_push_user_expression, pop_user_expression_nop) | |
2470 | (c_add_code_header, c_add_code_footer, c_add_input): New policy class. | |
2471 | (compile_program): New host class. | |
2472 | (c_compile_program): New typedef. | |
2473 | (c_compute_porgram): Use c_compile_program. | |
2474 | ||
0cfbf430 KS |
2475 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
2476 | ||
2477 | * compile/compile-internal.h (compile_instance::~compile_instance): | |
2478 | Remove calls to htab_delete. | |
2479 | <m_type_map, m_symbol_err_map>: Switch type to htab_up. | |
2480 | * compile.c (compile_instance::compile_instance): Initialize | |
2481 | htab unique pointers. | |
2482 | (compile_instance::get_cached_type, compile_instance::insert_type) | |
2483 | (compile_instance::error_symbol_once): Update for unique_ptr. | |
2484 | ||
946d3d10 KS |
2485 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
2486 | ||
2487 | * compile/compile-c-symbols.c (struct symbol_error) | |
2488 | (hash_symbol_error, eq_symbol_error, del_symbol_error) | |
2489 | (compile_instance::insert_symbol_error) | |
2490 | (compile_instance::error_symbol_once): Move to ... | |
2491 | * compile/compile.c: ... here. | |
2492 | ||
9cdfd9a2 KS |
2493 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
2494 | ||
2495 | * compile/compile-c-support.c (c_get_compile_context): Use `new' | |
2496 | instead of `new_compile_instance'. | |
2497 | * compile/compile-c-symbols.c (compile_instance::insert_symbol_error): | |
2498 | Update description. | |
2499 | If the symbol error map is not initialized, create it. | |
2500 | (generate_c_for_for_one_symbol): Do not check/initialize | |
2501 | the symbol error map. | |
2502 | * compile/compile-c-types.c (compile_c_instance): Make a class. | |
2503 | Update all callers. | |
2504 | (compile_instance::compile_instance): Initialize the type cache. | |
2505 | (get_cached_type): New function. | |
2506 | (insert_type): Update description. | |
2507 | (compile_c_instance::m_default_cflags): Define. | |
2508 | (convert_type): Update description. Use get_cached_type. | |
2509 | (delete_instance): Moved to destructor. | |
2510 | (new_compile_instance): Moved to constructor. | |
2511 | * compile/compile-c.h (compile_c_instance): Make class inheriting | |
2512 | from compile_instance. | |
2513 | <base>: Remove field. | |
2514 | <type_map, symbol_err_map>: Move to base class. | |
2515 | <c_plugin>: Rename to `m_plugin' and remove pointer type. | |
2516 | * compile/compile-internal.h (compile_instance): Make class. | |
2517 | <type_map_t, symbol_err_map_t>: Define. | |
2518 | <fe>: Rename to `m_gcc_fe'. | |
2519 | <scope, block, gcc_target_options>: Add `m_' prefix. | |
2520 | <m_type_map, m_symbol_err_map>: New fields, moved from | |
2521 | compile_c_instance. | |
2522 | <destroy>: Remove. | |
2523 | (convert_type, new_compile_instance): Remove. | |
2524 | * compile/compile.c (cleanup_compile_instance): Remove. | |
2525 | (compile_to_object): Use unique_ptr to eliminate cleanups. | |
2526 | (compile_instance::set_print_callback, compile_instance::version) | |
2527 | (compile_instance::set_verbose) | |
2528 | (compile_instance::set_driver_filename) | |
2529 | (compile_instance::set_triplet_regexp) | |
2530 | (compile_instance::set_arguments) | |
2531 | (compile_instance::set_source_file) | |
2532 | (compile_instance::compile): Define. | |
2533 | ||
18cdc6d8 KS |
2534 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
2535 | ||
2536 | * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h. | |
2537 | * compile/compile-c-types.c: Define GCC_METHODN macros and include | |
2538 | gcc-c-fe.def to define C plugin. | |
2539 | (delete_instance): Delete `c_plugin'. | |
2540 | (new_compile_instance): Initialize `c_plugin'. | |
2541 | * compile/compile-c.h: Include gcc_c_plugin.h. | |
2542 | (struct compile_c_instance) <c_plugin>: New member. | |
2543 | * gcc-c-plugin.h: New file. | |
2544 | Update all callers with API change. | |
2545 | ||
b7dc48b4 KS |
2546 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
2547 | ||
2548 | * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ... | |
2549 | (HFILES_NO_SRCDIR): ... to here. | |
2550 | Add compile-internal.h and compile-c.h. | |
2551 | * compile/compile-c-support.c: Include compile-c.h. | |
2552 | * compile/compile-c-symbols.c: Include compile-c.h. | |
2553 | (generate_c_for_variable_locations): Update comment. | |
2554 | * compile/compile-c-types.c: Include compile-c.h. | |
2555 | * compile/compile-c.h: New file -- moved C language declarations | |
2556 | from other files here. | |
2557 | * compile/compile-internal.h: Do not include hashtab.h or | |
2558 | common/enum-flags.h. | |
2559 | (gcc_qualifiers_flags, struct compile_c_instance, C_CTX) | |
2560 | (gcc_convert_symbol, gcc_symbol_address) | |
2561 | (generate_c_for_variable_locations, c_get_mode_for_size) | |
2562 | (c_get_range_decl_name): Definitions moved to compile-c.h. | |
2563 | * compile/compile-loc2c.c: Include compile-c.h. | |
2564 | ||
6f36b6d2 KS |
2565 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
2566 | ||
2567 | * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ... | |
2568 | (c_symbol_substitution_name): ... this. | |
2569 | Update all callers. | |
2570 | ||
bd923e51 KS |
2571 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
2572 | ||
2573 | * compile/compile-c-support.c (c_compute_program): Use | |
2574 | unique_xmalloc_ptr to eliminate cleanup. | |
2575 | * compile/compile-c-symbols.c (generate_c_for_variable_locations): | |
2576 | Return a unique_xmalloc_ptr and eliminate cleanup. | |
2577 | * compile/compile-internal.h (generate_c_for_variable_locations): | |
2578 | Return unique_xmalloc_ptr and update description. | |
2579 | ||
dbd534fe AH |
2580 | 2018-08-10 Alan Hayward <alan.hayward@arm.com> |
2581 | ||
2582 | * corelow.c (core_target::get_core_register_section): Rename | |
2583 | min_size to section_min_size. | |
2584 | ||
90ad3654 JW |
2585 | 2018-08-09 Jim Wilson <jimw@sifive.com> |
2586 | ||
52a187f8 JW |
2587 | * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c. |
2588 | (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c. | |
2589 | * NEWS: Mention new GNU/Linux RISC-V target. | |
2590 | * configure.host: Add riscv*-*-linux*. | |
2591 | * configure.nat: Add riscv*. | |
2592 | * configure.tgt: Add riscv*-*-linux*. | |
3c77f97e | 2593 | * riscv-linux-nat.c: New file. |
90ad3654 JW |
2594 | * riscv-linux-tdep.c: New file. |
2595 | ||
aff4e175 AB |
2596 | 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com> |
2597 | ||
2598 | * infrun.c (resume): Make static, add forward declaration. | |
2599 | (proceed): Update header comment. | |
2600 | * infrun.h (resume): Delete declaration. | |
2601 | ||
06ab9219 TT |
2602 | 2018-08-09 Tom Tromey <tom@tromey.com> |
2603 | ||
2604 | * riscv-tdep.h: Minor formatting fixes. | |
2605 | ||
83c8d318 SM |
2606 | 2018-08-09 Simon Marchi <simon.marchi@ericsson.com> |
2607 | ||
2608 | * common/scoped_mmap.c (mmap_file): Silence ARI warning. | |
2609 | * dwarf-index-cache.c (create_dir_and_check): Likewise. | |
2610 | (test_mkdir_recursive): Likewise. | |
2611 | * dwarf-index-write.c (write_psymtabs_to_index): Likewise. | |
2612 | ||
5ff2bbae AB |
2613 | 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com> |
2614 | ||
2615 | * valarith.c (value_subscripted_rvalue): If an array is not in | |
2616 | memory, and we don't know the upper bound, then we can't know that | |
2617 | the requested element exists or not. | |
2618 | ||
fdbac7d8 SM |
2619 | 2018-08-08 Simon Marchi <simon.marchi@ericsson.com> |
2620 | ||
2621 | * target.c (str_comma_list_concat_elem): Fix typo in comment. | |
2622 | (target_options_to_string): Add comment. | |
2623 | ||
83202f7a TT |
2624 | 2018-08-08 Tom Tromey <tom@tromey.com> |
2625 | ||
2626 | * unittests/scoped_mmap-selftests.c: Check result of "write". | |
2627 | ||
411baa47 JW |
2628 | 2018-08-08 Jim Wilson <jimw@sifive.com> |
2629 | ||
5c720ed8 JW |
2630 | * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes. |
2631 | (decode_register_index_short): New. | |
2632 | (decode_j_type_insn, decode_cj_type_insn): New. | |
2633 | (decode_b_type_insn, decode_cb_type_insn): New. | |
2634 | (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New | |
2635 | local xlen. Check xlen when decoding ambiguous compressed insns. In | |
2636 | compressed decode, use is_c_lui_insn instead of is_lui_insn, and | |
2637 | is_c_sw_insn instead of is_sw_insn. | |
2638 | (riscv_next_pc, riscv_next_pc_atomic_sequence): New. | |
2639 | (riscv_software_single_step): New. | |
2640 | * riscv-tdep.h (riscv_software_single_step): Declare. | |
2641 | ||
411baa47 JW |
2642 | * riscv-tdep.c (riscv_isa_xlen): Drop static. |
2643 | * riscv-tdep.h (riscv_isa_xlen): Add extern declaration. | |
2644 | ||
9d4a934c AB |
2645 | 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com> |
2646 | ||
2647 | PR gdb/18050: | |
2648 | * target.c (dispose_inferior): Don't dispose of inferiors that are | |
2649 | already killed. | |
2650 | ||
ff36536c SN |
2651 | 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com> |
2652 | ||
2653 | * remote.c (remote_target::download_tracepoint): Change char* to | |
2654 | const char*. | |
2655 | ||
09ce46f2 SM |
2656 | 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca> |
2657 | ||
2658 | * target.h (target_options_to_string): Return an std::string. | |
2659 | * target.c (str_comma_list_concat_elem): Return void, use | |
2660 | std::string. | |
2661 | (do_option): Likewise. | |
2662 | (target_options_to_string): Return an std::string. | |
2663 | * linux-nat.c (linux_nat_target::wait): Adjust. | |
2664 | * target-debug.h (target_debug_print_options): Adjust. | |
2665 | ||
9c612964 TT |
2666 | 2018-08-07 Tom Tromey <tom@tromey.com> |
2667 | ||
2668 | * Makefile.in (CPPFLAGS): New variable. | |
2669 | (INTERNAL_CPPFLAGS): Use it. | |
2670 | ||
7d11235d SM |
2671 | 2018-08-07 Simon Marchi <simon.marchi@ericsson.com> |
2672 | ||
2673 | * NEWS: Mention the index cache. | |
2674 | ||
87d6a7aa SM |
2675 | 2018-08-07 Simon Marchi <simon.marchi@ericsson.com> |
2676 | ||
2677 | * common/pathstuff.h (get_standard_cache_dir): New. | |
2678 | * common/pathstuff.c (get_standard_cache_dir): New. | |
2679 | * build-id.h (build_id_to_string): New. | |
2680 | * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX, | |
2681 | DEBUG_STR_SUFFIX): Move to here. | |
2682 | * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX, | |
2683 | DEBUG_STR_SUFFIX): Move from there. | |
2684 | (write_psymtabs_to_index): Make non-static, add basename | |
2685 | parameter. Write to temporary files, rename when done. | |
2686 | (save_gdb_index_command): Adjust call to | |
2687 | write_psymtabs_to_index. | |
2688 | * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New | |
2689 | field. | |
2690 | * dwarf2read.c (dwz_file) <index_cache_res>: New field. | |
2691 | (get_gdb_index_contents_from_cache): New. | |
2692 | (get_gdb_index_contents_from_cache_dwz): New. | |
2693 | (dwarf2_initialize_objfile): Read index from cache. | |
2694 | (dwarf2_build_psymtabs): Save to index. | |
2695 | * dwarf-index-cache.h: New file. | |
2696 | * dwarf-index-cache.c: New file. | |
2697 | * dwarf-index-write.h: New file. | |
2698 | ||
8a99096f SM |
2699 | 2018-08-07 Simon Marchi <simon.marchi@ericsson.com> |
2700 | ||
2701 | * gnulib/aclocal.m4: Re-generate. | |
2702 | * gnulib/config.in: Re-generate. | |
2703 | * gnulib/configure: Re-generate. | |
2704 | * gnulib/import/Makefile.am: Re-generate. | |
2705 | * gnulib/import/Makefile.in: Re-generate. | |
2706 | * gnulib/import/m4/gnulib-cache.m4: Re-generate. | |
2707 | * gnulib/import/m4/gnulib-comp.m4: Re-generate. | |
2708 | * gnulib/import/m4/mkdir.m4: New file. | |
2709 | * gnulib/import/mkdir.c: New file. | |
2710 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir | |
2711 | module. | |
2712 | ||
5c831bb1 SM |
2713 | 2018-08-07 Simon Marchi <simon.marchi@ericsson.com> |
2714 | ||
2715 | * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c. | |
2716 | * common/scoped_mmap.c: New file. | |
2717 | * common/scoped_mmap.h (destroy): New method. | |
2718 | (~scoped_mmap, reset): Use destroy. | |
2719 | (scoped_mmap): New move constructor. | |
2720 | (mmap_file): New declaration. | |
2721 | * unittests/scoped_mmap-selftests.c (test_normal, | |
2722 | test_invalid_filename, run_tests): New functions. | |
2723 | (_initialize_scoped_mmap_selftests): Register selftest. | |
2724 | ||
4485a1c1 SM |
2725 | 2018-08-07 Simon Marchi <simon.marchi@ericsson.com> |
2726 | ||
2727 | * dwarf2read.c (read_gdb_index_from_section): Rename to... | |
2728 | (read_gdb_index_from_buffer): ... this. Remove section | |
2729 | parameter, add buffer parameter. | |
2730 | (get_gdb_index_contents_ftype, | |
2731 | get_gdb_index_contents_dwz_ftype): New typedefs. | |
2732 | (dwarf2_read_gdb_index): Add callback parameters to get the | |
2733 | index contents. | |
2734 | (get_gdb_index_contents_from_section): New. | |
2735 | (dwarf2_initialize_objfile): Update call to | |
2736 | dwarf2_read_gdb_index. | |
2737 | ||
528e1572 SM |
2738 | 2018-08-07 Simon Marchi <simon.marchi@ericsson.com> |
2739 | ||
2740 | * common/filestuff.h (gdb_fopen_cloexec): New overload. | |
2741 | (gdb_open_cloexec): Likewise. | |
2742 | * nat/linux-osdata.c (command_from_pid): Use string_printf. | |
2743 | (commandline_from_pid): Likewise. | |
2744 | (linux_xfer_osdata_threads): Likewise. | |
2745 | (linux_xfer_osdata_fds): Likewise. | |
2746 | * ada-lang.c (is_package_name): Likewise. | |
2747 | * auxv.c (procfs_xfer_auxv): Likewise. | |
2748 | * breakpoint.c (print_one_breakpoint_location): Use | |
2749 | uiout::field_fmt. | |
2750 | (print_one_catch_solib): Use string_printf. | |
2751 | * coff-pe-read.c (add_pe_exported_sym): Likewise. | |
2752 | (add_pe_forwarded_sym): Likewise. | |
2753 | * dwarf2read.c (create_type_unit_group): Likewise. | |
2754 | (build_error_marker_type): Likewise. | |
2755 | * infcall.c (get_function_name): Likewise. | |
2756 | * valprint.c (print_converted_chars_to_obstack): Likewise. | |
2757 | * xtensa-tdep.c (xtensa_register_type): Likewise. | |
2758 | ||
a7f25a84 SM |
2759 | 2018-08-06 Simon Marchi <simon.marchi@ericsson.com> |
2760 | ||
2761 | * remote.c (remote_target::download_tracepoint): Fix format | |
2762 | string errors. | |
2763 | ||
296956be PFC |
2764 | 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
2765 | ||
2766 | * tracefile.c: Include common/byte-vector.h. | |
2767 | (trace_save): Change type of buf to gdb::byte_vector. Initialize | |
2768 | with trace_regblock_size if needed. Update uses of buf. | |
2769 | ||
a04b9d62 PFC |
2770 | 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
2771 | ||
2772 | * tracepoint.h (collection_list) <m_regs_mask>: Change type to | |
2773 | std::vector<unsigned char>. | |
2774 | * tracepoint.c (collection_list::collection_list): Remove | |
2775 | m_regs_mask initializer from initializer list. Resize | |
2776 | m_regs_mask using the largest remote register number. | |
2777 | (collection_list::add_remote_register): Remove size check on | |
2778 | m_regs_mask. Use at to access element. | |
2779 | (collection_list::stringify): Change type of temp_buf to | |
2780 | gdb::char_vector. Update uses of temp_buf. Resize if needed to | |
2781 | stringify the register mask. Use pack_hex_byte for the register | |
2782 | mask. | |
2783 | ||
4277c4b8 PFC |
2784 | 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
2785 | ||
2786 | * tracepoint.h (class collection_list) <add_register>: Remove. | |
2787 | <add_remote_register, add_ax_registers, add_local_register>: | |
2788 | Declare. | |
2789 | <add_memrange>: Add scope parameter. | |
2790 | * tracepoint.c (encode_actions_1): Likewise. | |
2791 | (collection_list::add_register): Rename to ... | |
2792 | (collection_list::add_remote_register): ... this. Update | |
2793 | comment. | |
2794 | (collection_list::add_ax_registers, add_local_register): New | |
2795 | methods. | |
2796 | (collection_list::add_memrange): Add scope parameter. Call | |
2797 | add_local_register instead of add_register. | |
2798 | (finalize_tracepoint_aexpr): New function. | |
2799 | (collection_list::collect_symbol): Update calls to add_memrange. | |
2800 | Call add_local_register instead of add_register. Call | |
2801 | add_ax_registers. Call finalize_tracepoint_aexpr. | |
2802 | (encode_actions_1): Get remote regnos for $reg action. Call | |
2803 | add_remote_register, add_ax_registers, and add_local_register. | |
2804 | Update call to add_memrange. Call finalize_tracepoint_aexpr. | |
2805 | (validate_actionline): Call finalize_tracepoint_aexpr. | |
2806 | ||
3df3a985 PFC |
2807 | 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
2808 | ||
2809 | * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE. | |
2810 | Replace array buf with gdb::char_vector buf, of size | |
2811 | get_remote_packet_size (). Replace references to buf and | |
2812 | BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat | |
2813 | and xsnprintf with snprintf. Raise errors if the buffer is too | |
2814 | small. | |
2815 | ||
aa6f3694 PFC |
2816 | 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
2817 | ||
2818 | * remote.c (remote_target::download_tracepoint): Fix the has_more | |
2819 | predicate in the QTDP action list iteration. | |
2820 | ||
05abfc39 PFC |
2821 | 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
2822 | ||
2823 | * remote.c (remote_target::download_tracepoint): Fix indentation | |
2824 | in for block. | |
2825 | ||
821a2682 RO |
2826 | 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2827 | ||
2828 | * proc-api.c (_initialize_proc_api): Remove c, unused. | |
2829 | * procfs.c (procfs_init_inferior): Remove signals, unused. | |
2830 | (procfs_target::make_corefile_notes): Remove old_chain, fpregs, | |
2831 | unused. | |
2832 | ||
95347337 AB |
2833 | 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com> |
2834 | Andrew Burgess <andrew.burgess@embecosm.com> | |
2835 | ||
2836 | * linux-nat.c (linux_nat_target::follow_fork): Avoid using | |
2837 | 'W_STOPCODE (0)' as this could be ambiguous. | |
2838 | ||
425699f5 SDJ |
2839 | 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com> |
2840 | ||
2841 | * ser-tcp.c (net_open): Fix thinko when deciding whether to | |
2842 | disable TCP's Nagle algorithm (use "ai_protocol" instead of | |
2843 | "ai_socktype"). | |
2844 | ||
3e1d3d8c TT |
2845 | 2018-08-02 Tom Tromey <tom@tromey.com> |
2846 | ||
2847 | PR symtab/16842. | |
2848 | * dwarf2read.c (read_func_scope): Set symtab on template parameter | |
2849 | symbols. | |
2850 | (process_structure_scope): Likewise. | |
2851 | ||
15843549 XR |
2852 | 2018-08-02 Xavier Roirand <roirand@adacore.com> |
2853 | ||
2854 | PR gdb/22629: | |
2855 | * darwin-nat.c (darwin_kill_inferior): Fix handling of | |
2856 | kill inferior. | |
2857 | ||
b5bddbbb TT |
2858 | 2018-08-02 Tom Tromey <tom@tromey.com> |
2859 | ||
2860 | * darwin-nat.c (find_inferior_task_it, darwin_find_thread) | |
2861 | (darwin_suspend_inferior, darwin_resume_inferior) | |
2862 | (darwin_decode_notify_message, darwin_resume_inferior_threads) | |
2863 | (darwin_check_new_threads): Check result of get_darwin_inferior. | |
2864 | ||
f61cfa07 JB |
2865 | 2018-07-31 Joel Brobecker <brobecker@adacore.com> |
2866 | ||
2867 | GDB 8.1.1 released. | |
2868 | ||
5abe0f0c JV |
2869 | 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz> |
2870 | ||
2871 | * varobj.c (varobj_get_path_expr_parent): Report an error if | |
2872 | parent is a dynamic varobj. | |
2873 | ||
472fa5ee SM |
2874 | 2018-07-31 Simon Marchi <simon.marchi@ericsson.com> |
2875 | ||
2876 | * gnulib/aclocal.m4: Re-generate. | |
2877 | * gnulib/config.in: Re-generate. | |
2878 | * gnulib/configure: Re-generate. | |
2879 | * gnulib/import/Makefile.in: Re-generate. | |
2880 | * gnulib/import/m4/gnulib-comp.m4: Re-generate. | |
2881 | * gnulib/import/m4/onceonly.m4: Re-generate. | |
2882 | ||
1c28969e SM |
2883 | 2018-07-31 Simon Marchi <simon.marchi@ericsson.com> |
2884 | ||
2885 | * target-descriptions.c (struct xml_test_tdesc): New. | |
2886 | (xml_tdesc): Change type to std::vector<xml_test_tdesc>. | |
2887 | (record_xml_tdesc): Update. | |
2888 | (maintenance_check_xml_descriptions): Update. | |
2889 | * target-descriptions.h (record_xml_tdesc): Update comment. | |
2890 | ||
c8f2dc0d AB |
2891 | 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com> |
2892 | ||
2893 | * eval.c (evaluate_subexp_for_sizeof): Check for array type before | |
2894 | checking array bounds are defined. | |
2895 | ||
463c08d1 TT |
2896 | 2018-07-30 Tom Tromey <tom@tromey.com> |
2897 | ||
2898 | * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix | |
2899 | irreflexivity violation. | |
2900 | ||
dba7455e TT |
2901 | 2018-07-30 Tom Tromey <tom@tromey.com> |
2902 | ||
2903 | * cli/cli-decode.c (lookup_cmd): Remove lint code. | |
2904 | * value.c (unpack_long): Remove lint code. | |
2905 | * valops.c (value_ind): Remove lint code. | |
2906 | * valarith.c (value_x_binop, value_x_unop, value_equal) | |
2907 | (value_pos): Remove lint code. | |
2908 | ||
37cc0cae TV |
2909 | 2018-07-28 Tom de Vries <tdevries@suse.de> |
2910 | ||
2911 | * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type | |
2912 | with undefined upper bound as <optimized out>. | |
2913 | ||
129eb0f1 SDJ |
2914 | 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com> |
2915 | ||
2916 | * gcore.in: Rename variable "name" to "prefix". Expand | |
2917 | "usage" text. | |
2918 | ||
6af79d7b JT |
2919 | 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk> |
2920 | ||
2921 | * windows-nat.c (windows_nat_target::create_inferior): Update to | |
2922 | call close() in global namespace. | |
2923 | ||
79748972 TT |
2924 | 2018-07-26 Tom Tromey <tom@tromey.com> |
2925 | ||
2926 | * dwarf-index-write.c (add_address_entry): Don't add objfile | |
2927 | offsets. | |
2928 | * dbxread.c (find_stab_function): Rename from | |
2929 | find_stab_function_addr. Return a bound_minimal_symbol. | |
2930 | (read_dbx_symtab): Use raw_text_low, raw_text_high. | |
2931 | Don't add objfile offsets. | |
2932 | (end_psymtab): Use raw_text_low, raw_text_high, | |
2933 | MSYMBOL_VALUE_RAW_ADDRESS. | |
2934 | (read_ofile_symtab): Update. | |
2935 | (process_one_symbol): Update. | |
2936 | * dwarf2read.c (create_addrmap_from_index): Don't add objfile | |
2937 | offsets. | |
2938 | (dw2_relocate): Remove. | |
2939 | (dw2_find_pc_sect_symtab): Bias PC by the text offset before | |
2940 | searching addrmap. | |
2941 | (dwarf2_gdb_index_functions, dwarf2_debug_names_functions): | |
2942 | Update. | |
2943 | (process_psymtab_comp_unit_reader, add_partial_symbol) | |
2944 | (add_partial_subprogram, dwarf2_ranges_read): Update. | |
2945 | (load_partial_dies): Update. | |
2946 | (add_address_entry): Don't add objfile offsets. | |
2947 | (dwarf2_build_include_psymtabs): Update. | |
2948 | (create_addrmap_from_aranges): Don't add objfile offsets. | |
2949 | (dw2_find_pc_sect_compunit_symtab): Update. | |
2950 | * mdebugread.c (parse_symbol): Don't add objfile offsets. | |
2951 | (parse_lines): Remove 'pst' parameter, replace with 'textlow'. | |
2952 | Update. | |
2953 | (parse_partial_symbols): Don't add objfile offsets. Use | |
2954 | raw_text_low, raw_text_high. Update. | |
2955 | (handle_psymbol_enumerators, psymtab_to_symtab_1): Update. | |
2956 | * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap | |
2957 | or call 'relocate' quick function. Clear psymbol_map. | |
2958 | * psympriv.h (struct partial_symbol) <address>: Add section | |
2959 | offset. | |
2960 | <set_unrelocated_address>: Rename from set_address. | |
2961 | <raw_text_low, raw_text_high>: New methods. | |
2962 | <text_low, text_high>: Add objfile parameter. | |
2963 | (add_psymbol_to_bcache): Add 'section' parameter. Call | |
2964 | set_unrelocated_address. | |
2965 | * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab) | |
2966 | (find_pc_psymbol): Update. | |
2967 | (fixup_psymbol_section, relocate_psymtabs): Remove. | |
2968 | (dump_psymtab, psym_functions): Update. | |
2969 | (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section' | |
2970 | parameter. | |
2971 | (maintenance_info_psymtabs, maintenance_check_psymtabs): Update. | |
2972 | (start_psymtab_common): Update. | |
2973 | * symfile-debug.c (debug_qf_relocate): Remove. | |
2974 | (debug_sym_quick_functions): Update. | |
2975 | * symfile.h (struct quick_symbol_functions) <relocate>: Remove. | |
2976 | * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets. | |
2977 | Update. | |
2978 | ||
52948f01 TT |
2979 | 2018-07-26 Tom Tromey <tromey@redhat.com> |
2980 | ||
2981 | * dbxread.c (end_psymtab): Use text_high_valid and | |
2982 | text_low_valid. | |
2983 | * mdebugread.c (parse_partial_symbols): Use text_low_valid. | |
2984 | (psymtab_to_symtab_1): Use text_high_valid and text_low_valid. | |
2985 | * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>: | |
2986 | Update comment. | |
2987 | <text_low_valid, text_high_valid>: New fields. | |
2988 | <set_text_low, set_text_high>: Update. | |
2989 | * xcoffread.c (scan_xcoff_symtab): Use text_low_valid. | |
2990 | ||
4ae976d1 TT |
2991 | 2018-07-26 Tom Tromey <tom@tromey.com> |
2992 | ||
2993 | * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab): | |
2994 | Update. | |
2995 | * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize | |
2996 | textlow and texthigh fields. | |
2997 | (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs): | |
2998 | Update. | |
2999 | * mdebugread.c (parse_lines, parse_partial_symbols) | |
3000 | (psymtab_to_symtab_1): Update. | |
3001 | * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>: | |
3002 | Rename fields. Update comment. Now private. | |
3003 | <text_low, text_high, set_text_low, set_text_high>: New methods. | |
3004 | * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab) | |
3005 | (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab) | |
3006 | (start_psymtab_common, maintenance_info_psymtabs) | |
3007 | (maintenance_check_psymtabs): Update. | |
3008 | * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and | |
3009 | texthigh fields. | |
3010 | (scan_xcoff_symtab): Update. | |
3011 | ||
02e9e7f7 TT |
3012 | 2018-07-26 Tom Tromey <tromey@redhat.com> |
3013 | ||
3014 | * psympriv.h (struct partial_symbol) <unrelocated_address, | |
3015 | address, set_address>: New methods. | |
3016 | * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol) | |
3017 | (fixup_psymbol_section, relocate_psymtabs): Update. | |
3018 | (print_partial_symbols): Add 'objfile' parameter. Update. | |
3019 | (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map): | |
3020 | Update. | |
3021 | ||
8a6d4234 TT |
3022 | 2018-07-26 Tom Tromey <tom@tromey.com> |
3023 | ||
3024 | * dwarf-index-write.c (write_psymbols, debug_names::insert) | |
3025 | (debug_names::write_psymbols): Update. | |
3026 | * psympriv.h (struct partial_symbol): Derive from | |
3027 | general_symbol_info. | |
3028 | <obj_section>: New method. | |
3029 | (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n | |
3030 | * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab) | |
3031 | (find_pc_sect_psymbol, fixup_psymbol_section) | |
3032 | (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs) | |
3033 | (print_partial_symbols, recursively_search_psymtabs) | |
3034 | (compare_psymbols, psymbol_hash, psymbol_compare) | |
3035 | (add_psymbol_to_bcache, maintenance_check_psymtabs) | |
3036 | (psymbol_name_matches, psym_fill_psymbol_map): Update. | |
3037 | ||
08994e1d TT |
3038 | 2018-07-26 Tom Tromey <tromey@redhat.com> |
3039 | ||
3040 | * dbxread.c (end_psymtab): Remove dead code. | |
3041 | ||
3c3bb058 AB |
3042 | 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com> |
3043 | ||
3044 | * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if | |
3045 | DWARF unwinders are disabled. | |
3046 | * dwarf2-frame.c: Add dwarf2read.h include. | |
3047 | (dwarf2_frame_sniffer): Exit early if DWARF unwinders are | |
3048 | disabled. | |
3049 | (dwarf2_frame_unwinders_enabled_p): Define. | |
3050 | (show_dwarf_unwinders_enabled_p): New function. | |
3051 | (_initialize_dwarf2_frame): Register switch to control DWARF | |
3052 | unwinder use. | |
3053 | * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare. | |
3054 | * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword. | |
3055 | (show_dwarf_cmdlist): Remove static keyword. | |
3056 | * dwarf2read.h (set_dwarf_cmdlist): Declare. | |
3057 | (show_dwarf_cmdlist): Declare. | |
3058 | * NEWS: Document new feature. | |
3059 | ||
9e7f3bbb TV |
3060 | 2018-07-26 Tom de Vries <tdevries@suse.de> |
3061 | ||
3062 | PR breakpoints/23366 | |
3063 | * infcmd.c (info_program_command): Handle ptid == minus_one_ptid. | |
3064 | ||
506f5c41 TV |
3065 | 2018-07-26 Tom de Vries <tdevries@suse.de> |
3066 | ||
3067 | * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or | |
3068 | DW_AT_count can't be translated to a dynamic prop. | |
3069 | ||
16f808ec TV |
3070 | 2018-07-25 Tom de Vries <tdevries@suse.de> |
3071 | ||
3072 | * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in | |
3073 | try/catch. | |
3074 | ||
d7154a8d JV |
3075 | 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz> |
3076 | ||
3077 | * breakpoint.c (enable_disable_bp_num_loc): Notify observers. | |
3078 | ||
a45389f6 JB |
3079 | 2018-07-25 Joel Brobecker <brobecker@adacore.com> |
3080 | ||
3081 | * MAINTAINERS (Global Maintainers): Add Tom Tromey. | |
3082 | ||
380618d6 KS |
3083 | 2018-07-24 Keith Seitz <keiths@redhat.comt |
3084 | ||
3085 | PR symtab/23010 | |
3086 | * dwarf2read.c (dw2_add_symbol_to_list): New function. | |
3087 | (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list | |
3088 | instead of add_symbol_to_list. | |
3089 | (read_file_scope): Call prepare_one_comp_unit before reading | |
3090 | any other DIEs. | |
3091 | ||
4b17aefe SM |
3092 | 2018-07-24 Simon Marchi <simon.marchi@ericsson.com> |
3093 | ||
3094 | * common/scoped_mmap.h (class scoped_mmap): Fix indentation. | |
3095 | ||
29d17e47 TT |
3096 | 2018-07-24 Tom Tromey <tom@tromey.com> |
3097 | ||
3098 | * utils.c (malloc, realloc, free): Don't declare. | |
3099 | * configure, config.in: Rebuild. | |
3100 | * configure.ac: Don't check for declarations of free, malloc, or | |
3101 | realloc. | |
3102 | ||
cf4088a9 SM |
3103 | 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
3104 | ||
3105 | * aarch64-linux-nat.c | |
3106 | (aarch64_linux_nat_target::stopped_data_address): Remove unused | |
3107 | variable. | |
3108 | * arm-linux-nat.c (fetch_regs): Likewise. | |
3109 | (store_regs): Likewise. | |
3110 | (fetch_vfp_regs): Likewise. | |
3111 | (store_vfp_regs): Likewise. | |
3112 | (arm_linux_nat_target::insert_hw_breakpoint): Likewise. | |
3113 | (arm_linux_nat_target::remove_hw_breakpoint): Likewise. | |
3114 | (arm_linux_nat_target::insert_watchpoint): Likewise. | |
3115 | (arm_linux_nat_target::remove_watchpoint): Likewise. | |
3116 | * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint): | |
3117 | Likewise. | |
3118 | * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): | |
3119 | Likewise. | |
3120 | * ppc-linux-nat.c (fetch_register): Likewise. | |
3121 | (fetch_all_gp_regs): Likewise. | |
3122 | (fetch_ppc_registers): Likewise. | |
3123 | (store_all_gp_regs): Likewise. | |
3124 | (store_ppc_registers): Likewise. | |
3125 | (hwdebug_insert_point): Likewise. | |
3126 | (can_use_watchpoint_cond_accel): Likewise. | |
3127 | * remote-sim.c (gdb_os_write_stdout): Likewise. | |
3128 | ||
a0de763e TT |
3129 | 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
3130 | Tom Tromey <tom@tromey.com> | |
3131 | ||
3132 | * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special | |
3133 | test for it. | |
3134 | * configure: Rebuild. | |
3135 | ||
3b20124b TT |
3136 | 2018-07-22 Tom Tromey <tom@tromey.com> |
3137 | ||
3138 | * regformats/regdat.sh: Define xmltarget_${name} inside | |
3139 | #ifndef IN_PROCESS_AGENT. | |
3140 | ||
8c8807f4 TT |
3141 | 2018-07-22 Tom Tromey <tom@tromey.com> |
3142 | ||
3143 | * value.c (value_fetch_lazy_bitfield): Remove unused variable. | |
3144 | ||
c486b610 TT |
3145 | 2018-07-22 Tom Tromey <tom@tromey.com> |
3146 | ||
3147 | * symfile.c (reread_symbols): Notify iter, not objfile. | |
3148 | ||
494f80a9 TT |
3149 | 2018-07-22 Tom Tromey <tom@tromey.com> |
3150 | ||
3151 | * ravenscar-thread.c (ravenscar_thread_target::store_registers): | |
3152 | Use arch_ops. | |
3153 | (ravenscar_thread_target::prepare_to_store): Likewise. | |
3154 | ||
c51f6a54 TT |
3155 | 2018-07-22 Tom Tromey <tom@tromey.com> |
3156 | ||
3157 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove | |
3158 | unused variable. Call value_fetch_lazy when needed. | |
3159 | * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): | |
3160 | Remove unused variable. Call value_fetch_lazy when needed. | |
3161 | ||
374fd1fd TT |
3162 | 2018-07-22 Tom Tromey <tom@tromey.com> |
3163 | ||
3164 | * m32c-tdep.c (mark_dma): Return void. | |
3165 | (make_regs): Remove unused declarations. | |
3166 | ||
d5e9a511 TT |
3167 | 2018-07-22 Tom Tromey <tom@tromey.com> |
3168 | ||
3169 | * guile/scm-cmd.c (gdbscm_dont_repeat): Call | |
3170 | cmdscm_get_valid_command_smob_arg_unsafe for effect. | |
3171 | * guile/scm-block.c (gdbscm_make_block_syms_iter): Call | |
3172 | bkscm_get_valid_block_smob_arg_unsafe for effect. | |
3173 | ||
996d693a TT |
3174 | 2018-07-22 Tom Tromey <tom@tromey.com> |
3175 | ||
3176 | * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not | |
3177 | value_type. | |
3178 | ||
15766370 TT |
3179 | 2018-07-22 Tom Tromey <tom@tromey.com> |
3180 | ||
3181 | * windows-nat.c (saved_context): Conditionally define. | |
3182 | * remote.c (remote_target::remote_btrace_maybe_reopen): | |
3183 | Conditionally declare "warned". | |
3184 | * inflow.c (sigquit_ours): Conditionally define. | |
3185 | (new_tty): Move "tty" declaration inside #if. | |
3186 | * guile/guile.c (guile_datadir): Conditionally define. | |
3187 | * charset.c (set_be_le_names): Move some declarations inside #if. | |
3188 | * btrace.c (parse_xml_btrace): Move "errcode" declaration inside | |
3189 | #if. | |
3190 | (parse_xml_btrace_conf): Likewise. | |
3191 | ||
f4e80e13 TT |
3192 | 2018-07-22 Tom Tromey <tom@tromey.com> |
3193 | ||
3194 | * spu-tdep.c (spu_get_overlay_table): Remove unused variable. | |
3195 | ||
8d49165d TT |
3196 | 2018-07-22 Tom Tromey <tom@tromey.com> |
3197 | ||
3198 | * guile/scm-value.c (gdbscm_value_call): Remove unused variables. | |
3199 | * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow) | |
3200 | (vlscm_convert_typed_value_from_scheme): Remove unused variable. | |
3201 | * buildsym-legacy.c (get_macro_table): Remove unused variable. | |
3202 | * stack.c (frame_apply_level_command): Remove unused variable. | |
3203 | * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable. | |
3204 | * sparc64-tdep.c (adi_examine_command): Remove unused variable. | |
3205 | * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove | |
3206 | unused variable. | |
3207 | * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable. | |
3208 | * mep-tdep.c (mep_push_dummy_call): Remove unused variable. | |
3209 | * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused | |
3210 | variable. | |
3211 | * amd64-tdep.c (amd64_supply_xsave): Remove unused variable. | |
3212 | * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused | |
3213 | variable. | |
3214 | * breakpoint.c (check_no_tracepoint_commands, update_watchpoint): | |
3215 | Remove unused variable. | |
3216 | * cli/cli-script.c (recurse_read_control_structure): Remove unused | |
3217 | variable. | |
3218 | * common/tdesc.c (print_xml_feature::visit): Remove unused | |
3219 | variable. | |
3220 | * compile/compile-object-load.c (store_regs): Remove unused | |
3221 | variables. | |
3222 | * complaints.c (clear_complaints): Remove unused variable. | |
3223 | * corelow.c (core_target_open): Remove unused variable. | |
3224 | * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused | |
3225 | variable. | |
3226 | * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused | |
3227 | variable. | |
3228 | * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused | |
3229 | variable. | |
3230 | * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused | |
3231 | variable. | |
3232 | * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused | |
3233 | variable. | |
3234 | * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused | |
3235 | variable. | |
3236 | * ia64-tdep.c (examine_prologue): Remove unused variable. | |
3237 | * infcall.c (run_inferior_call): Remove unused variable. | |
3238 | * inferior.c (exit_inferior): Remove unused variable. | |
3239 | * infrun.c (infrun_thread_ptid_changed): Remove unused variable. | |
3240 | * linespec.c (decode_line_2): Remove unused variable. | |
3241 | * linux-nat.c (super_close): Remove. | |
3242 | * linux-tdep.c (linux_info_proc): Remove unused variable. | |
3243 | * mi/mi-main.c (mi_execute_command): Remove unused variable. | |
3244 | * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache): | |
3245 | Remove unused variable. | |
3246 | * parse.c (find_minsym_type_and_address): Remove unused variable. | |
3247 | * printcmd.c (info_symbol_command, printf_floating): Remove unused | |
3248 | variable. | |
3249 | * python/py-breakpoint.c (bppy_set_commands): Remove unused | |
3250 | variable. | |
3251 | * python/py-unwind.c (unwind_infopy_dealloc): Remove unused | |
3252 | variables. | |
3253 | * record-btrace.c (record_btrace_target::store_registers): Remove | |
3254 | unused variable. | |
3255 | (cmd_show_record_btrace_cpu): Remove unused variable. | |
3256 | * riscv-tdep.c (riscv_register_reggroup_p) | |
3257 | (riscv_push_dummy_call, riscv_return_value): Remove unused | |
3258 | variable. | |
3259 | * rust-exp.y (literal): Remove unused variable. | |
3260 | * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove | |
3261 | unused variable. | |
3262 | <STRUCTOP_ANONYMOUS>: Likewise. | |
3263 | * s390-linux-tdep.c (s390_linux_init_abi_31) | |
3264 | (s390_linux_init_abi_64): Remove unused variable. | |
3265 | * ser-ming2.c (ser_windows_read_prim, pipe_select_thread) | |
3266 | (file_select_thread, net_windows_open, _initialize_ser_windows): | |
3267 | Remove unused variables. | |
3268 | * symtab.c (find_pc_sect_line): Remove unused variable. | |
3269 | * target-memory.c (compute_garbled_blocks): Remove unused | |
3270 | variable. | |
3271 | (target_write_memory_blocks): Remove unused variable. | |
3272 | * target.c (target_stack::unpush): Remove unused variables. | |
3273 | * tracepoint.c (start_tracing, all_tracepoint_actions) | |
3274 | (merge_uploaded_trace_state_variables) | |
3275 | (print_one_static_tracepoint_marker): Remove unused variable. | |
3276 | * unittests/basic_string_view/element_access/char/1.cc (test01): | |
3277 | Remove unused variable. | |
3278 | * windows-nat.c (windows_continue, windows_add_all_dlls) | |
3279 | (do_initial_windows_stuff, windows_nat_target::create_inferior): | |
3280 | Remove unused variables. | |
3281 | ||
17cbafdb SM |
3282 | 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca> |
3283 | ||
3284 | * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and | |
3285 | attr_profile in HAVE_ELF. | |
3286 | * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in | |
3287 | HAVE_ELF. | |
3288 | ||
0ee6c332 SM |
3289 | 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca> |
3290 | ||
3291 | * frame.c (frame_register_unwind): Change parameter name. | |
3292 | (frame_unwind_register): Likewise. | |
3293 | (frame_unwind_register_value): Likewise. | |
3294 | (frame_unwind_register_signed): Likewise. | |
3295 | (frame_unwind_register_unsigned): Likewise. | |
3296 | * frame.h (frame_register_unwind): Likewise. | |
3297 | (frame_unwind_register): Likewise. | |
3298 | (frame_unwind_register_value): Likewise. | |
3299 | (frame_unwind_register_signed): Likewise. | |
3300 | (frame_unwind_register_unsigned): Likewise. | |
3301 | (frame_unwind_arch): Likewise. | |
3302 | ||
e2e31f10 MR |
3303 | 2018-07-20 Maciej W. Rozycki <macro@mips.com> |
3304 | ||
3305 | * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV | |
3306 | ISA maintenance. | |
3307 | ||
2d389915 MR |
3308 | 2018-07-20 Maciej W. Rozycki <macro@mips.com> |
3309 | ||
3310 | * mips-linux-nat.c (mips_linux_nat_target::read_description): | |
3311 | Call `get_ptrace_pid' rather than extracting the ptrace PID by | |
3312 | hand. | |
3313 | ||
cbb09508 KS |
3314 | 2018-07-20 Keith Seitz <keiths@redhat.com> |
3315 | ||
3316 | * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles, | |
3317 | m_main_subfile, m_comp_dir, m_producer, m_debugformat, | |
3318 | m_compunit_symtab, m_language>: Add "m_" prefix. | |
3319 | Update all uses. | |
3320 | * buildsym.c: Update all uses. | |
3321 | ||
bfe2e011 TT |
3322 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3323 | ||
3324 | * buildsym-legacy.h (record_line): Don't use record_line_ftype. | |
3325 | * buildsym.h (record_line_ftype): Remove typedef. | |
3326 | ||
0e6f3061 TT |
3327 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3328 | ||
3329 | * buildsym-legacy.h (augment_type_symtab): Don't declare. | |
3330 | (end_expandable_symtab): Likewise. | |
3331 | (end_symtab_get_static_block): Likewise. | |
3332 | (end_symtab_from_static_block): Likewise. | |
3333 | * buildsym-legacy.c (augment_type_symtab): Remove. | |
3334 | (end_expandable_symtab): Remove. | |
3335 | (end_symtab_get_static_block): Remove. | |
3336 | (end_symtab_from_static_block): Remove. | |
3337 | ||
804d2729 TT |
3338 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3339 | ||
3340 | * dwarf2read.c: Include buildsym.h. | |
3341 | (struct dwarf2_cu) <builder>: New method. | |
3342 | (fixup_go_packaging): Update. | |
3343 | (process_full_comp_unit, process_full_type_unit): Update. Don't | |
3344 | use scoped_free_pendings. | |
3345 | (using_directives): Add "cu" parameter, remove "language". | |
3346 | (read_import_statement, setup_type_unit_groups, ) | |
3347 | (read_func_scope, read_lexical_block_scope) | |
3348 | (dwarf2_record_block_ranges, read_namespace): Update. | |
3349 | (lnp_state_machine::lnp_state_machine): Add cu parameter. | |
3350 | (lnp_state_machine::handle_end_sequence): Update. | |
3351 | (class lnp_state_machine) <m_cu>: New member. | |
3352 | <m_record_line_callback>: Remove. | |
3353 | <m_currently_recording_lines>: New member. | |
3354 | (lnp_state_machine::handle_set_file): Update. | |
3355 | (noop_record_line): Remove. | |
3356 | (dwarf_record_line_p): Add cu parameter. | |
3357 | (dwarf_record_line_1, dwarf_finish_line): Likewise. | |
3358 | (lnp_state_machine::record_line) | |
3359 | (lnp_state_machine::lnp_state_machine) | |
3360 | (lnp_state_machine::check_line_address, dwarf_decode_lines_1) | |
3361 | (dwarf_decode_lines): Update. | |
3362 | (dwarf2_start_subfile): Add cu parameter. | |
3363 | (dwarf2_start_symtab, new_symbol): Update. | |
3364 | (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter. | |
3365 | Remove dwarf2_per_objfile parameter. | |
3366 | (dwarf_decode_macros): Update. | |
3367 | ||
80e649fc TT |
3368 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3369 | ||
3370 | * stabsread.c (define_symbol): Update. | |
3371 | * buildsym-legacy.h (get_buildsym_compunit): Declare. | |
3372 | * dwarf2read.c (new_symbol): Update. | |
3373 | * cp-support.h (cp_scan_for_anonymous_namespaces): Update. | |
3374 | * cp-namespace.c: Include buildsym.h. | |
3375 | (cp_scan_for_anonymous_namespaces): Add "compunit" parameter. | |
3376 | * buildsym-legacy.c (get_buildsym_compunit): New function. | |
3377 | ||
0baae8db TT |
3378 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3379 | ||
3380 | * xcoffread.c: Include buildsym-legacy.h. | |
3381 | * windows-nat.c: Include buildsym-legacy.h. | |
3382 | * stabsread.c: Include buildsym-legacy.h. | |
3383 | * mdebugread.c: Include buildsym-legacy.h. | |
3384 | * buildsym-legacy.h: New file. | |
3385 | * buildsym-legacy.c: New file, from buildsym.c. | |
3386 | * go32-nat.c: Include buildsym-legacy.h. | |
3387 | * dwarf2read.c: Include buildsym-legacy.h. | |
3388 | * dbxread.c: Include buildsym-legacy.h. | |
3389 | * cp-namespace.c: Include buildsym-legacy.h. | |
3390 | * coffread.c: Include buildsym-legacy.h. | |
3391 | * buildsym.h: Move some contents to buildsym-legacy.h. | |
3392 | * buildsym.c: Include buildsym-legacy.h. Move many functions to | |
3393 | buildsym-legacy.c. | |
3394 | * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h. | |
3395 | ||
ab209f6f TT |
3396 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3397 | ||
3398 | * buildsym.h (struct buildsym_compunit): Move from buildsym.c. | |
3399 | * buildsym.c (struct buildsym_compunit): Move to buildsym.h. | |
3400 | (buildsym_compunit::buildsym_compunit) | |
3401 | (buildsym_compunit::~buildsym_compunit) | |
3402 | (buildsym_compunit::get_macro_table): Define. | |
3403 | ||
74c72eac TT |
3404 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3405 | ||
3406 | * buildsym.c (reset_symtab_globals): Remove. | |
3407 | (buildsym_compunit::end_symtab_from_static_block): Update. | |
3408 | (buildsym_compunit::augment_type_symtab): Update. | |
3409 | (end_symtab_from_static_block): Call free_buildsym_compunit. | |
3410 | (augment_type_symtab, end_symtab, end_expandable_symtab): | |
3411 | Likewise. | |
3412 | ||
da6580e5 TT |
3413 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3414 | ||
3415 | * arch-utils.c: Do not include buildsym.h. | |
3416 | * mipsread.c: Do not include buildsym.h. | |
3417 | * machoread.c: Do not include buildsym.h. | |
3418 | * elfread.c: Do not include buildsym.h. | |
3419 | ||
4a2125f5 TT |
3420 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3421 | ||
3422 | * buildsym.c (buildsym_compunit::buildsym_compunit): Do more | |
3423 | initialization. | |
3424 | (buildsym_compunit): Add new constructor. | |
3425 | (struct buildsym_compunit) <get_last_source_file, finish_block, | |
3426 | record_block_range, start_subfile, patch_subfile_names, | |
3427 | push_subfile, pop_subfile, record_line, get_compunit_symtab, | |
3428 | set_last_source_start_addr, get_last_source_start_addr, | |
3429 | get_local_using_directives, set_local_using_directives, | |
3430 | get_global_using_directives, outermost_context_p, | |
3431 | get_current_context_stack, get_context_stack_depth, | |
3432 | get_current_subfile, get_local_symbols, get_file_symbols, | |
3433 | get_global_symbols, record_debugformat, record_producer, | |
3434 | push_context, pop_context, end_symtab_get_static_block, | |
3435 | end_symtab_from_static_block, end_symtab, end_expandable_symtab>: | |
3436 | New public methods. | |
3437 | <record_pending_block, finish_block_internal, make_blockvector, | |
3438 | watch_main_source_file_lossage, end_symtab_with_blockvector>: New | |
3439 | private methods. | |
3440 | Update all users. | |
3441 | ||
3442 | 2018-05-22 Tom Tromey <tom@tromey.com> | |
3443 | ||
3444 | * buildsym.c (record_pending_block): Move earlier. Remove objfile | |
3445 | parameter. | |
3446 | (finish_block_internal): Update. | |
3447 | ||
6b213a47 TT |
3448 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3449 | ||
3450 | * buildsym.c (record_pending_block): Move earlier. Remove objfile | |
3451 | parameter. | |
3452 | (finish_block_internal): Update. | |
3453 | ||
b80a981d TT |
3454 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3455 | ||
3456 | * buildsym.h (EXTERN): Don't define or undef. | |
3457 | * buildsym.c (EXTERN): Don't define. | |
3458 | ||
ddb70602 TT |
3459 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3460 | ||
3461 | * buildsym.c: Remove TODO comment. | |
3462 | ||
b37dd3bc TT |
3463 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3464 | ||
3465 | * coffread.c (coff_symtab_read): Update. | |
3466 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. | |
3467 | (xcoff_new_init): Update. | |
3468 | * mipsread.c (mipscoff_new_init): Update. | |
3469 | * mdebugread.c (mdebug_build_psymtabs): Update. | |
3470 | * elfread.c (elf_new_init): Update. | |
3471 | * dwarf2read.c (process_full_comp_unit, process_full_type_unit): | |
3472 | Update. | |
3473 | * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1) | |
3474 | (coffstab_build_psymtabs, elfstab_build_psymtabs) | |
3475 | (stabsect_build_psymtabs): Update. | |
3476 | * buildsym.h (buildsym_init): Don't declare. | |
3477 | * buildsym.c: Update comment. | |
3478 | (prepare_for_building): Remove. | |
3479 | (start_symtab, restart_symtab): Update. | |
3480 | (reset_symtab_globals): Update comment. | |
3481 | (buildsym_init): Remove. | |
3482 | ||
e148f09d TT |
3483 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3484 | ||
3485 | * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update. | |
3486 | * stabsread.c (patch_block_stabs, define_symbol, read_type) | |
3487 | (read_enum_type, common_block_start, common_block_end) | |
3488 | (cleanup_undefined_types_1, finish_global_stabs): Update. | |
3489 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
3490 | * dwarf2read.c (fixup_go_packaging, read_func_scope) | |
3491 | (read_lexical_block_scope, new_symbol): Update. | |
3492 | * dbxread.c (process_one_symbol): Update. | |
3493 | * coffread.c (coff_symtab_read, process_coff_symbol) | |
3494 | (coff_read_enum_type): Update. | |
3495 | * buildsym.h (file_symbols, global_symbols, local_symbols): Don't | |
3496 | declare. | |
3497 | (get_local_symbols, get_file_symbols, get_global_symbols): New | |
3498 | functions. | |
3499 | * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and | |
3500 | m_global_symbols. | |
3501 | <m_file_symbols, m_local_symbols, m_global_symbols>: New members. | |
3502 | (~scoped_free_pendings): Update. | |
3503 | (finish_block, prepare_for_building, reset_symtab_globals) | |
3504 | (end_symtab_get_static_block, end_symtab_with_blockvector) | |
3505 | (augment_type_symtab, push_context): Update. | |
3506 | (get_local_symbols, get_file_symbols, get_global_symbols): New | |
3507 | functions. | |
3508 | (buildsym_init): Update. | |
3509 | ||
93b8bea4 TT |
3510 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3511 | ||
3512 | * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope. | |
3513 | (process_full_type_unit): Likewise. | |
3514 | (dwarf2_start_symtab): Set list_in_scope. | |
3515 | ||
f62f6af5 TT |
3516 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3517 | ||
3518 | * dwarf2read.c (process_psymtab_comp_unit_reader) | |
3519 | (build_type_psymtabs_reader): Do not set list_in_scope. | |
3520 | ||
1d376700 TT |
3521 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3522 | ||
3523 | * buildsym.c (free_pendings): Remove. | |
3524 | (add_symbol_to_list, scoped_free_pendings) | |
3525 | (finish_block_internal, buildsym_init): Update. | |
3526 | ||
c233e9c6 TT |
3527 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3528 | ||
3529 | * xcoffread.c (read_xcoff_symtab): Update. | |
3530 | * dwarf2read.c (read_func_scope, read_lexical_block_scope): | |
3531 | Update. | |
3532 | * dbxread.c (process_one_symbol): Update. | |
3533 | * coffread.c (coff_symtab_read): Update. | |
3534 | * buildsym.h (finish_block): Update. | |
3535 | * buildsym.c (finish_block): Remove "listhead" argument. | |
3536 | (end_symtab_get_static_block): Update. | |
3537 | ||
5ac04550 TT |
3538 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3539 | ||
3540 | * buildsym.h (class scoped_free_pendings): Remove constructor. | |
3541 | * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New | |
3542 | method. | |
3543 | <m_pending_block_obstack, m_pending_blocks>: New members. | |
3544 | (pending_block_obstack, pending_blocks): Remove. | |
3545 | (scoped_free_pendings::scoped_free_pendings): Default. | |
3546 | (~scoped_free_pendings): Update. | |
3547 | (free_pending_blocks): Remove. | |
3548 | (finish_block_internal, record_pending_block, make_blockvector) | |
3549 | (end_symtab_get_static_block, augment_type_symtab, push_context) | |
3550 | (buildsym_init): Update. | |
3551 | ||
7ea05a7b TT |
3552 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3553 | ||
3554 | * buildsym.c (struct buildsym_compunit) <m_pending_addrmap, | |
3555 | m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New | |
3556 | members. | |
3557 | (pending_addrmap, pending_addrmap_obstack) | |
3558 | (pending_addrmap_interesting): Remove. | |
3559 | (scoped_free_pendings, record_block_range, make_blockvector) | |
3560 | (prepare_for_building, reset_symtab_globals, buildsym_init): | |
3561 | Update. | |
3562 | ||
3c65e5b3 TT |
3563 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3564 | ||
3565 | * xcoffread.c (process_linenos): Update. | |
3566 | * stabsread.c (define_symbol, read_type, read_enum_type): Update. | |
3567 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
3568 | * dwarf2read.c (setup_type_unit_groups) | |
3569 | (lnp_state_machine::handle_set_file, dwarf_record_line_p) | |
3570 | (lnp_state_machine::record_line, dwarf_decode_lines): Update. | |
3571 | * dbxread.c (process_one_symbol): Update. | |
3572 | * coffread.c (coff_symtab_read, enter_linenos) | |
3573 | (process_coff_symbol): Update. | |
3574 | * buildsym.h (current_subfile): Don't declare. | |
3575 | (get_current_subfile): Declare. | |
3576 | * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New | |
3577 | member. | |
3578 | (start_subfile, free_buildsym_compunit, push_subfile) | |
3579 | (prepare_for_building, start_symtab): Update. | |
3580 | (get_current_subfile): New function. | |
3581 | ||
a60f3166 TT |
3582 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3583 | ||
3584 | * coffread.c (coff_symtab_read): Update. | |
3585 | * xcoffread.c (read_xcoff_symtab): Update. | |
3586 | * dwarf2read.c (new_symbol): Update. | |
3587 | (read_func_scope, read_lexical_block_scope): Update. | |
3588 | * dbxread.c (process_one_symbol): Update. | |
3589 | * buildsym.h (context_stack, context_stack_depth): Don't declare. | |
3590 | (outermost_context_p): Remove macro. | |
3591 | (outermost_context_p, get_current_context_stack) | |
3592 | (get_context_stack_depth): Declare. | |
3593 | (pop_context): Return struct context_stack. | |
3594 | * buildsym.c (struct buildsym_compunit) <m_context_stack: New | |
3595 | member. | |
3596 | (context_stack_size): Remove. | |
3597 | (INITIAL_CONTEXT_STACK_SIZE): Remove. | |
3598 | (prepare_for_building, end_symtab_get_static_block) | |
3599 | (augment_type_symtab, push_context): Update. | |
3600 | (pop_context): Return struct context_stack. | |
3601 | (outermost_context_p, get_current_context_stack) | |
3602 | (get_context_stack_depth): New functions. | |
3603 | (buildsym_init): Update. | |
3604 | ||
56ba65a0 TT |
3605 | 2018-07-20 Tom Tromey <tom@tromey.com> |
3606 | ||
3607 | * rust-exp.y: Now a pure parser. Update all rules. | |
3608 | (%union): Move earlier. | |
3609 | (current_parser, work_obstack): Remove globals. | |
3610 | (rust_parser, ~rust_parser): Update. | |
3611 | (class rust_parser) <copy_name, concat3, crate_name, super_name, | |
3612 | lex_character, lex_number, lex_string, lex_identifier, | |
3613 | rust_lookup_type, convert_params_to_types, convert_ast_to_type, | |
3614 | convert_name, convert_params_to_expression, | |
3615 | convert_ast_to_expression, ast_basic_type, ast_operation, | |
3616 | ast_compound_assignment, rust_op, ast_literal, ast_dliteral, | |
3617 | ast_structop, ast_structop_anonymous, ast_unary, ast_cast, | |
3618 | ast_call_ish, ast_path, ast_string, ast_struct, ast_range, | |
3619 | ast_array_type, ast_slice_type, ast_reference_type, | |
3620 | ast_pointer_type, ast_function_type, ast_tuple_type>: New methods. | |
3621 | (rust_parse): Update. | |
3622 | (rustyyerror, rustyylex): Add parser parameter. | |
3623 | (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test) | |
3624 | (rust_lex_stringish_test, rust_lex_test_sequence) | |
3625 | (rust_lex_test_trailing_dot, rust_lex_test_completion) | |
3626 | (rust_lex_test_push_back, rust_lex_tests): Update. | |
3627 | ||
4c693332 PA |
3628 | 2018-07-19 Pedro Alves <palves@redhat.com> |
3629 | ||
3630 | * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a | |
3631 | gdb::unique_xmalloc_ptr. | |
3632 | * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): | |
3633 | Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr. | |
3634 | * guile/scm-exception.c (gdbscm_exception_message_to_string): Use | |
3635 | copy-initialization. | |
3636 | * guile/scm-pretty-print.c (ppscm_print_children): Use | |
3637 | gdb::unique_xmalloc_ptr instead of cleanups. | |
3638 | (gdbscm_apply_val_pretty_printer): Remove cleanups. | |
3639 | * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a | |
3640 | gdb::unique_xmalloc_ptr. | |
3641 | * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p): | |
3642 | Adjust to use gdb::unique_xmalloc_ptr. | |
3643 | * guile/scm-utils.c (extract_arg): Adjust. | |
3644 | * guile/scm-value.c (gdbscm_value_field): Adjust to use | |
3645 | gdb::unique_xmalloc_ptr instead of a cleanup. | |
3646 | ||
4581dc82 TT |
3647 | 2018-07-19 Tom Tromey <tom@tromey.com> |
3648 | ||
3649 | * utils.c (do_value_free_to_mark) | |
3650 | (make_cleanup_value_free_to_mark): Remove. | |
3651 | * utils.h (make_cleanup_value_free_to_mark): Remove. | |
3652 | ||
43cc6c3a PA |
3653 | 2018-07-19 Pedro Alves <palves@redhat.com> |
3654 | ||
3655 | * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a | |
3656 | forwarding reference. | |
3657 | ||
3a5f2a48 PA |
3658 | 2018-07-18 Pedro Alves <palves@redhat.com> |
3659 | ||
3660 | * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use | |
3661 | gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a | |
3662 | cleanup. | |
3663 | ||
557e56be PA |
3664 | 2018-07-18 Pedro Alves <palves@redhat.com> |
3665 | ||
3666 | * guile/guile-internal.h: Add comment about mixing GDB and Scheme | |
3667 | exceptions. | |
3668 | (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete. | |
3669 | (gdbscm_wrap): New. | |
3670 | * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree | |
3671 | directly instead of a cleanup. | |
3672 | * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ... | |
3673 | (vlscm_unop): ... this. Reimplement using gdbscm_wrap. | |
3674 | (vlscm_binop_gdbthrow): New, factored out from ... | |
3675 | (vlscm_binop): ... this. Reimplement using gdbscm_wrap. | |
3676 | (vlscm_rich_compare): Use gdbscm_wrap. | |
3677 | * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly | |
3678 | instead of a cleanup. | |
3679 | (gdbscm_lookup_global_symbol): Use xfree directly instead of a | |
3680 | cleanup. | |
3681 | * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p): | |
3682 | Use xfree directly instead of a cleanup. | |
3683 | * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value): | |
3684 | Adjust to use gdbscm_wrap and scoped_value_mark. | |
3685 | (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap. | |
3686 | (gdbscm_value_address, gdbscm_value_dereference) | |
3687 | (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and | |
3688 | scoped_value_mark. | |
3689 | (gdbscm_value_dynamic_type): Use scoped_value_mark. | |
3690 | (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and | |
3691 | scoped_value_mark. | |
3692 | (gdbscm_value_subscript, gdbscm_value_call): Adjust to use | |
3693 | gdbscm_wrap and scoped_value_mark. | |
3694 | (gdbscm_value_to_string): Use xfree directly instead of a | |
3695 | cleanup. Move 'buffer' unique_ptr to TRY scope. | |
3696 | (gdbscm_value_to_lazy_string): Use xfree directly instead of a | |
3697 | cleanup. Move 'buffer' unique_ptr to TRY scope. Use | |
3698 | scoped_value_mark. | |
3699 | (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap. | |
3700 | (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and | |
3701 | scoped_value_mark. | |
3702 | (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use | |
3703 | gdbscm_wrap. | |
3704 | ||
42dc7699 TV |
3705 | 2018-07-18 Tom de Vries <tdevries@suse.de> |
3706 | ||
3707 | * findvar.c (default_read_var_value): Also resolve dynamic type for | |
3708 | LOC_OPTIMIZED_OUT vars. | |
3709 | ||
6592ceed MR |
3710 | 2018-07-18 Maciej W. Rozycki <macro@mips.com> |
3711 | ||
3712 | * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction | |
3713 | decoding. | |
3714 | ||
c6c6149a TT |
3715 | 2018-07-17 Tom Tromey <tom@tromey.com> |
3716 | ||
3717 | * guile/scm-param.c (pascm_set_func, pascm_show_func) | |
3718 | (compute_enum_list, pascm_set_param_value_x) | |
3719 | (gdbscm_parameter_value): Update. | |
3720 | * guile/guile-internal.h (gdbscm_scm_to_string): Update. | |
3721 | (gdbscm_scm_to_host_string): Update. | |
3722 | * guile/scm-math.c (vlscm_convert_typed_value_from_scheme): | |
3723 | Update. | |
3724 | * guile/scm-cmd.c (cmdscm_add_completion): Update. | |
3725 | * guile/scm-pretty-print.c (ppscm_print_string_repr): Update. | |
3726 | * guile/scm-string.c (gdbscm_scm_to_string): Return | |
3727 | unique_xmalloc_ptr. | |
3728 | (gdbscm_scm_to_host_string): Likewise. | |
3729 | ||
a1a31cb8 TT |
3730 | 2018-07-17 Tom Tromey <tom@tromey.com> |
3731 | ||
3732 | * guile/guile.c (gdbscm_eval_from_control_command): Update. | |
3733 | * guile/guile-internal.h (gdbscm_safe_eval_string): Update. | |
3734 | * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update. | |
3735 | * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return | |
3736 | unique_xmalloc_ptr. | |
3737 | ||
15bf3002 TT |
3738 | 2018-07-17 Tom Tromey <tom@tromey.com> |
3739 | ||
3740 | * guile/scm-param.c (pascm_signal_setshow_error): Update. | |
3741 | * guile/guile-internal.h (gdbscm_exception_message_to_string): | |
3742 | Update. | |
3743 | * guile/scm-cmd.c (cmdscm_function): Update. | |
3744 | * guile/scm-pretty-print.c | |
3745 | (ppscm_print_exception_unless_memory_error): Update. | |
3746 | * guile/scm-exception.c (gdbscm_exception_message_to_string): | |
3747 | Return unique_xmalloc_ptr. | |
3748 | ||
7eb1a66c TT |
3749 | 2018-07-17 Tom Tromey <tom@tromey.com> |
3750 | ||
3751 | * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception): | |
3752 | Use string_printf. | |
3753 | ||
ce73f310 JW |
3754 | 2018-07-17 Jim Wilson <jimw@sifive.com> |
3755 | ||
27724bad JW |
3756 | * riscv-tdep.c (riscv_has_feature): Delete comment that refers to |
3757 | set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always. | |
3758 | (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now | |
3759 | unecessary braces after EF_RISCV_RVC test. Delete call to | |
3760 | set_gdbarch_decr_pc_after_break. | |
3761 | ||
ce73f310 JW |
3762 | * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of |
3763 | RISCV_LAST_FP_REGNUM + 1. | |
3764 | (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM. | |
3765 | ||
056dec39 TT |
3766 | 2018-07-17 Tom Tromey <tom@tromey.com> |
3767 | ||
3768 | * configure.ac: Remove --disable-gdbcli. | |
3769 | * configure: Rebuild. | |
3770 | * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS) | |
3771 | (SUBDIR_CLI_CFLAGS): Remove. | |
3772 | (SFILES): Use SUBDIR_CLI_SRCS. | |
3773 | (COMMON_OBS): Use SUBDIR_CLI_OBS. | |
3774 | ||
4735f0ed TT |
3775 | 2018-07-17 Tom Tromey <tom@tromey.com> |
3776 | ||
3777 | PR gdb/18624: | |
3778 | * coffread.c (coff_symtab_read): Use scoped_free_pendings. | |
3779 | ||
117a0e99 JW |
3780 | 2018-07-16 Jim Wilson <jimw@sifive.com> |
3781 | ||
3782 | * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi. | |
3783 | ||
8a67aaa8 SM |
3784 | 2018-07-16 Simon Marchi <simon.marchi@ericsson.com> |
3785 | ||
3786 | * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused | |
3787 | variable. | |
3788 | (libunwind_frame_sniffer): Likewise. | |
3789 | (libunwind_frame_prev_register): Likewise. | |
3790 | (libunwind_sigtramp_frame_sniffer): Likewise. | |
3791 | * ia64-tdep.c (ia64_access_reg): Likewise. | |
3792 | (ia64_access_rse_reg): Likewise. | |
3793 | (ia64_libunwind_sigtramp_frame_this_id): Likewise. | |
3794 | * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise. | |
3795 | ||
ec74dcd8 SM |
3796 | 2018-07-16 Simon Marchi <simon.marchi@ericsson.com> |
3797 | ||
3798 | * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast. | |
3799 | ||
a700e753 SM |
3800 | 2018-07-16 Simon Marchi <simon.marchi@ericsson.com> |
3801 | ||
3802 | * remote-sim.c (gdbsim_target::close, | |
3803 | gdbsim_target::mourn_inferior): Remove unused variables. | |
3804 | ||
8b411ff8 SM |
3805 | 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca> |
3806 | ||
3807 | * ia64-tdep.c (ktab_buf): New global. | |
3808 | (getunwind_table): Return a gdb::optional<gdb::byte_vector>. | |
3809 | (get_kernel_table): Adjust. | |
3810 | ||
edb0470b TT |
3811 | 2018-07-16 Tom Tromey <tom@tromey.com> |
3812 | ||
3813 | * xcoffread.c (read_xcoff_symtab): Use outermost_context_p. | |
3814 | * dwarf2read.c (using_directives, new_symbol): Use | |
3815 | outermost_context_p. | |
3816 | * dbxread.c (process_one_symbol): Use outermost_context_p. | |
3817 | * coffread.c (coff_symtab_read): Use outermost_context_p. | |
3818 | ||
6cccc9a8 TT |
3819 | 2018-07-16 Tom Tromey <tom@tromey.com> |
3820 | ||
3821 | * dwarf2read.c (using_directives, read_func_scope) | |
3822 | (read_lexical_block_scope): Update. | |
3823 | * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update. | |
3824 | * buildsym.h (local_using_directives, global_using_directives): | |
3825 | Don't declare. | |
3826 | (get_local_using_directives, set_local_using_directives) | |
3827 | (get_global_using_directives): Declare. | |
3828 | * buildsym.c (struct buildsym_compunit) <m_local_using_directives, | |
3829 | m_global_using_directives>: New members. | |
3830 | (finish_block_internal, prepare_for_building) | |
3831 | (reset_symtab_globals, end_symtab_get_static_block) | |
3832 | (push_context): Update. | |
3833 | (get_local_using_directives, set_local_using_directives) | |
3834 | (get_global_using_directives): New functions. | |
3835 | (buildsym_init): Update. | |
3836 | ||
652788a7 TT |
3837 | 2018-07-16 Tom Tromey <tom@tromey.com> |
3838 | ||
3839 | * xcoffread.c (xcoff_initial_scan): Don't call | |
3840 | free_pending_blocks. | |
3841 | * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks. | |
3842 | * buildsym.h (class scoped_free_pendings): Add constructor. | |
3843 | (free_pending_blocks): Don't declare. | |
3844 | * buildsym.c (scoped_free_pendings::scoped_free_pendings): New. | |
3845 | (free_pending_blocks): Now static. | |
3846 | ||
8419ee53 TT |
3847 | 2018-07-16 Tom Tromey <tom@tromey.com> |
3848 | ||
3849 | * buildsym.h (push_subfile, pop_subfile): Update declarations. | |
3850 | * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New | |
3851 | member. | |
3852 | (struct subfile_stack): Remove. | |
3853 | (subfile_stack): Remove. | |
3854 | (push_subfile, pop_subfile, buildsym_init): Update. | |
3855 | ||
ccdac490 TT |
3856 | 2018-07-16 Tom Tromey <tom@tromey.com> |
3857 | ||
3858 | * buildsym.c (push_subfile): Use gdb_assert. | |
3859 | (pop_subfile): Use gdb_assert. | |
3860 | ||
43130d6f TT |
3861 | 2018-07-16 Tom Tromey <tom@tromey.com> |
3862 | ||
3863 | * buildsym.h (merge_symbol_lists): Remove. | |
3864 | * buildsym.c (merge_symbol_lists): Remove. | |
3865 | ||
77d6f1aa TT |
3866 | 2018-07-16 Tom Tromey <tom@tromey.com> |
3867 | ||
3868 | * stabsread.c (scan_file_globals): Update comment. | |
3869 | * stabsread.h (scan_file_globals): Move from buildsym.h. | |
3870 | * buildsym.h (scan_file_globals): Move to stabsread.h. | |
3871 | ||
2c722d18 TT |
3872 | 2018-07-16 Tom Tromey <tom@tromey.com> |
3873 | ||
3874 | * xcoffread.c (xcoff_new_init): Update. | |
3875 | * mipsread.c (mipscoff_new_init): Update. | |
3876 | * mdebugread.c (mdebug_build_psymtabs): Update. | |
3877 | * elfread.c (elf_new_init): Update. | |
3878 | * dbxread.c (dbx_new_init, coffstab_build_psymtabs) | |
3879 | (elfstab_build_psymtabs, stabsect_build_psymtabs): Update. | |
3880 | * buildsym.h (buildsym_new_init): Don't declare. | |
3881 | * buildsym.c (buildsym_new_init): Remove. | |
3882 | ||
5985ac61 TT |
3883 | 2018-07-16 Tom Tromey <tom@tromey.com> |
3884 | ||
3885 | * stabsread.h (within_function): Move from buildsym.h. | |
3886 | * stabsread.c (start_stabs): Clear within_function. | |
3887 | * coffread.c (coff_start_symtab): Clear within_function. | |
3888 | * buildsym.h (within_function): Move to stabsread.h. | |
3889 | * buildsym.c (prepare_for_building): Update. | |
3890 | ||
6b84eeb2 TT |
3891 | 2018-07-16 Tom Tromey <tom@tromey.com> |
3892 | ||
3893 | * stabsread.h (processing_gcc_compilation): Move from buildsym.h. | |
3894 | * dwarf2read.c (dwarf2_start_symtab): Don't set | |
3895 | processing_gcc_compilation. | |
3896 | * buildsym.h (processing_gcc_compilation): Move to stabsread.h. | |
3897 | ||
2150c3ef TT |
3898 | 2018-07-16 Tom Tromey <tom@tromey.com> |
3899 | ||
3900 | * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text) | |
3901 | (next_symbol_text_func): Move from buildsym.h. | |
3902 | * stabsread.c (hashname): Move from buildsym.c. | |
3903 | * buildsym.h (HASHSIZE, symnum, next_symbol_text) | |
3904 | (next_symbol_text_func, hashname): Move to stabsread.h. | |
3905 | * buildsym.c: Don't include bcache.h | |
3906 | (hashname): Move to stasbread.c. | |
3907 | ||
0ec44fc0 TT |
3908 | 2018-07-16 Tom Tromey <tom@tromey.com> |
3909 | ||
3910 | * buildsym.h (context_stack_size): Don't declare. | |
3911 | * buildsym.c (context_stack_size): New global. | |
3912 | ||
81cc346d TT |
3913 | 2018-07-16 Tom Tromey <tom@tromey.com> |
3914 | ||
3915 | * dbxread.c (processing_acc_compilation): New global. | |
3916 | * buildsym.h (processing_acc_compilation): Don't declare. | |
3917 | ||
2c99ee5c TT |
3918 | 2018-07-16 Tom Tromey <tom@tromey.com> |
3919 | ||
3920 | * xcoffread.c (aix_process_linenos, complete_symtab): Update. | |
3921 | * dbxread.c (read_ofile_symtab): Update. | |
3922 | * coffread.c (coff_start_symtab, coff_end_symtab): Update. | |
3923 | * buildsym.h (last_source_start_addr): Remove. | |
3924 | (set_last_source_start_addr, get_last_source_start_addr): | |
3925 | Declare. | |
3926 | * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr | |
3927 | parameter. | |
3928 | (struct buildsym_compunit) <m_last_source_start_addr>: New | |
3929 | member. | |
3930 | (prepare_for_building): Remove start_addr parameter. | |
3931 | (start_symtab, restart_symtab, end_symtab_get_static_block) | |
3932 | (end_symtab_with_blockvector): Update. | |
3933 | (set_last_source_start_addr, get_last_source_start_addr): New | |
3934 | functions. | |
3935 | ||
530fedbc TT |
3936 | 2018-07-16 Tom Tromey <tom@tromey.com> |
3937 | ||
3938 | * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New | |
3939 | member. | |
3940 | (have_line_numbers): Remove. | |
3941 | (record_line, prepare_for_building, end_symtab_get_static_block) | |
3942 | (augment_type_symtab): Update. | |
3943 | ||
6a976300 TT |
3944 | 2018-07-16 Tom Tromey <tom@tromey.com> |
3945 | ||
3946 | * buildsym.c (~buildsym_compunit): Free the macro table. | |
3947 | (struct buildsym_compunit) <get_macro_table, release_macros>: New | |
3948 | methods. | |
3949 | <m_pending_macros>: New member. | |
3950 | (pending_macros): Remove. | |
3951 | (~scoped_free_pendings, get_macro_table, prepare_for_building) | |
3952 | (reset_symtab_globals, end_symtab_get_static_block) | |
3953 | (end_symtab_with_blockvector, augment_type_symtab) | |
3954 | (buildsym_init): Update. | |
3955 | ||
c0015d44 TT |
3956 | 2018-07-16 Tom Tromey <tom@tromey.com> |
3957 | ||
3958 | * buildsym.c (buildsym_compunit::buildsym_compunit): Add name | |
3959 | parameter. | |
3960 | (buildsym_compunit::set_last_source_file): New method. | |
3961 | <m_last_source_file>: New member. | |
3962 | (prepare_for_building): Remove "name" parameter. | |
3963 | (start_symtab, restart_symtab, reset_symtab_globals): Update. | |
3964 | (last_source_file): Remove. | |
3965 | (set_last_source_file, get_last_source_file): Update. | |
3966 | ||
e62cca7c TT |
3967 | 2018-07-16 Tom Tromey <tom@tromey.com> |
3968 | ||
3969 | * buildsym.c (prepare_for_building): Add assert. | |
3970 | ||
905eb0e2 TT |
3971 | 2018-07-16 Tom Tromey <tom@tromey.com> |
3972 | ||
3973 | * buildsym.c (~buildsym_compunit): Update. | |
3974 | (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr. | |
3975 | (start_subfile, patch_subfile_names) | |
3976 | (end_symtab_with_blockvector): Update. | |
3977 | ||
b248663f TT |
3978 | 2018-07-16 Tom Tromey <tom@tromey.com> |
3979 | ||
3980 | * buildsym.c (struct buildsym_compunit): Add constructor, | |
3981 | destructor, initializers. | |
3982 | (start_buildsym_compunit): Remove. | |
3983 | (free_buildsym_compunit): Use "delete". | |
3984 | (start_symtab, restart_symtab): Use "new". | |
3985 | ||
ff27d073 SM |
3986 | 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca> |
3987 | ||
3988 | * symfile.c (set_objfile_default_section_offset): Remove struct | |
3989 | keyword. | |
3990 | ||
6a15ecf5 SH |
3991 | 2018-07-14 Stafford Horne <shorne@gmail.com> |
3992 | ||
3993 | * (Responsible Maintainers): Add myself as or1k maintainer. | |
3994 | ||
027a4c30 TT |
3995 | 2018-07-13 Tom Tromey <tom@tromey.com> |
3996 | ||
3997 | * symfile.c (set_objfile_default_section_offset): Use extra braces | |
3998 | around initializer. | |
3999 | ||
5c1eda30 AA |
4000 | 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
4001 | ||
4002 | * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a | |
4003 | non-branching basr. | |
4004 | ||
bc7b042b PW |
4005 | 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4006 | ||
4007 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
4008 | unittests/cli-utils-selftests.c | |
4009 | * unittests/cli-utils-selftests.c: New file. | |
4010 | ||
a14c4daa PW |
4011 | 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4012 | ||
4013 | * NEWS: Mention new commands. Mention change to 'thread apply'. | |
4014 | ||
1fe75df7 PW |
4015 | 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4016 | ||
4017 | * thread.c (thr_try_catch_cmd): New function. | |
4018 | (thread_apply_all_command): Handle qcs flags. | |
4019 | (thread_apply_command): Handle qcs flags. | |
4020 | (taas_command): New function. | |
4021 | (tfaas_command): New function. | |
4022 | (_initialize_thread): Update to setup the new commands 'taas | |
4023 | and 'tfaas'. Change doc string for 'thread apply'. | |
4024 | ||
6a70eb7d PW |
4025 | 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4026 | ||
4027 | * stack.c: (trailing_outermost_frame): New function, mostly | |
4028 | extracted from backtrace_command_1. | |
4029 | (leading_innermost_frame): New function. | |
4030 | (backtrace_command_1): Update to call trailing_outermost_frame. | |
4031 | (frame_apply_command_count): New function. | |
4032 | (frame_apply_level_command): New function. | |
4033 | (frame_apply_all_command): New function. | |
4034 | (frame_apply_command): New function. | |
4035 | (faas_command): New function. | |
4036 | (frame_cmd_list): New variable. | |
4037 | (_initialize_stack): Update to setup the new commands 'frame apply' | |
4038 | and 'faas'. | |
4039 | ||
529c08b2 PW |
4040 | 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4041 | ||
4042 | * cli-utils.c (number_or_range_parser::get_number): Only handle | |
4043 | numbers or convenience var as numbers. | |
4044 | (parse_flags): New function. | |
4045 | (parse_flags_qcs): New function. | |
4046 | (number_or_range_parser::finished): Ensure parsing end is detected | |
4047 | before end of string. | |
4048 | * cli-utils.h (parse_flags): New function. | |
4049 | (parse_flags_qcs): New function. | |
4050 | (number_or_range_parser): Remove m_finished bool. | |
4051 | (number_or_range_parser::skip_range): Set m_in_range to false. | |
4052 | ||
64b58472 SDJ |
4053 | 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com> |
4054 | ||
4055 | * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building | |
4056 | on Windows. | |
4057 | ||
c7ab0aef SDJ |
4058 | 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com> |
4059 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
4060 | Paul Fertser <fercerpav@gmail.com> | |
4061 | Tsutomu Seki <sekiriki@gmail.com> | |
4062 | Pedro Alves <palves@redhat.com> | |
4063 | ||
4064 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
4065 | 'unittests/parse-connection-spec-selftests.c'. | |
4066 | (COMMON_SFILES): Add 'common/netstuff.c'. | |
4067 | (HFILES_NO_SRCDIR): Add 'common/netstuff.h'. | |
4068 | * NEWS (Changes since GDB 8.2): Mention IPv6 support. | |
4069 | * common/netstuff.c: New file. | |
4070 | * common/netstuff.h: New file. | |
4071 | * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'. | |
4072 | (wait_for_connect): Update comment. New parameter | |
4073 | 'gdb::optional<int> sock' instead of 'struct serial *scb'. | |
4074 | Use 'sock' directly instead of 'scb->fd'. | |
4075 | (try_connect): New function, with code from 'net_open'. | |
4076 | (net_open): Rewrite main loop to deal with multiple | |
4077 | sockets/addresses. Handle IPv6-style hostnames; implement | |
4078 | support for IPv6 connections. | |
4079 | * unittests/parse-connection-spec-selftests.c: New file. | |
4080 | ||
4c7333b3 PA |
4081 | 2018-07-11 Pedro Alves <palves@redhat.com> |
4082 | ||
4083 | PR gdb/23377 | |
4084 | * remote.c (remote_target::remote_detach_pid): Call | |
4085 | set_current_process. | |
4086 | ||
a6f88f6e PA |
4087 | 2018-07-11 Pedro Alves <palves@redhat.com> |
4088 | ||
4089 | * h8300-tdep.c (h8300_gdbarch_init): Remove | |
4090 | set_gdbarch_ecoff_reg_to_regnum calls. | |
4091 | ||
16ff70dd SDJ |
4092 | 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com> |
4093 | ||
4094 | PR c++/23373 | |
4095 | * c-typeprint.c (c_type_print_base_struct_union): Don't print | |
4096 | offsets/sizes for static members of a class/struct. | |
4097 | ||
12863263 AH |
4098 | 2018-07-11 Alan Hayward <alan.hayward@arm.com> |
4099 | ||
4100 | * target-descriptions.c (tdesc_register_bitsize): Rename. | |
4101 | * target-descriptions.h (tdesc_register_bitsize): Likewise. | |
4102 | * rs6000-tdep.c (rs6000_gdbarch_init): Use new name. | |
4103 | * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size. | |
4104 | ||
1123588c TT |
4105 | 2018-07-10 Tom Tromey <tom@tromey.com> |
4106 | ||
4107 | * breakpoint.c (moribund_locations): Now static and a | |
4108 | std::vector. | |
4109 | (breakpoint_init_inferior, moribund_breakpoint_here_p) | |
4110 | (build_bpstat_chain, update_global_location_list) | |
4111 | (breakpoint_retire_moribund): Update. | |
4112 | * breakpoint.h (bp_location_p): Remove typedef. Don't declare | |
4113 | VEC. | |
4114 | ||
8c49aa89 AB |
4115 | 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com> |
4116 | ||
4117 | * riscv-tdep.c (riscv_is_fp_regno_p): New function. | |
4118 | (riscv_register_reggroup_p): Use new function, remove unneeded | |
4119 | parenthesis. | |
4120 | (riscv_push_dummy_call): Extend assert to compare against xlen or | |
4121 | flen based on register type. | |
4122 | ||
42ecac17 AB |
4123 | 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com> |
4124 | ||
4125 | * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME. | |
4126 | ||
055303e2 AB |
4127 | 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com> |
4128 | ||
4129 | * remote.c (show_hardware_watchpoint_limit): New function. | |
4130 | (show_hardware_watchpoint_length_limit): New function. | |
4131 | (show_hardware_breakpoint_limit): New function. | |
4132 | (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd | |
4133 | where appropriate, update help text. | |
4134 | ||
8fd32c1c TT |
4135 | 2018-07-09 Tom Tromey <tom@tromey.com> |
4136 | ||
4137 | * Makefile.in (CDEPS): Don't mention XM_CDEPS. | |
4138 | (CLIBS): Don't mention NAT_CLIBS. | |
4139 | ||
31278b51 TT |
4140 | 2018-07-09 Tom Tromey <tom@tromey.com> |
4141 | ||
4142 | * Makefile.in (ADD_FILES, ADD_DEPS): Remove. | |
4143 | (LIBGDB_OBS, clean mostlyclean): Update. | |
4144 | (gdb$(EXEEXT), insight$(EXEEXT)): Update. | |
4145 | ||
e5fd1493 TT |
4146 | 2018-07-09 Tom Tromey <tom@tromey.com> |
4147 | ||
4148 | * Makefile.in (%.c: %.y): Use ECHO_YACC. | |
4149 | (%.c: %.l): Use ECHO_LEX. Just fail if flex not available. | |
4150 | * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables. | |
4151 | ||
981e0c0c TT |
4152 | 2018-07-09 Tom Tromey <tom@tromey.com> |
4153 | ||
4154 | * Makefile.in (ALLDEPFILES): Remove exec.c. | |
4155 | (COMMON_OBS): Remove exec.o. | |
4156 | (COMMON_SFILES): Add exec.c. | |
4157 | ||
14ccceb2 TT |
4158 | 2018-07-09 Tom Tromey <tom@tromey.com> |
4159 | ||
4160 | * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove. | |
4161 | ||
5d3c3a68 TT |
4162 | 2018-07-09 Tom Tromey <tom@tromey.com> |
4163 | ||
4164 | * Makefile.in (clean mostlyclean): Remove stamp-version. | |
4165 | (version.c): Depend on stamp-version. | |
4166 | (stamp-version): New rule, from version.c rule. | |
4167 | ||
1998086d TT |
4168 | 2018-07-09 Tom Tromey <tom@tromey.com> |
4169 | ||
4170 | * Makefile.in (init.c): Depend on stamp-init. | |
4171 | (stamp-init): New rule, from init.c rule. | |
4172 | (clean mostlyclean): Remove stamp-init. | |
4173 | ||
4c754949 TT |
4174 | 2018-07-09 Tom Tromey <tom@tromey.com> |
4175 | ||
4176 | * Makefile.in (INIT_FILES): Remove CONFIG_SRCS, | |
4177 | SUBDIR_GCC_COMPILE_SRCS. | |
4178 | ||
6497f1dd TT |
4179 | 2018-07-09 Tom Tromey <tom@tromey.com> |
4180 | ||
4181 | * Makefile.in (init.c): Remove some unused sed rules. | |
4182 | ||
97a34db9 TT |
4183 | 2018-07-09 Tom Tromey <tom@tromey.com> |
4184 | ||
4185 | * Makefile.in (TSOBS): Remove. | |
4186 | (INIT_FILES): Update. | |
4187 | (LIBGDB_OBS): Update. | |
4188 | (COMMON_SFILES): Add inflow.c. | |
4189 | (SFILES): Remove inflow.c. | |
4190 | ||
25289ac1 JK |
4191 | 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
4192 | ||
4193 | * contrib/gdb-add-index.sh ($dwarf5): New, use it. | |
4194 | ||
e83f4d97 SM |
4195 | 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca> |
4196 | ||
4869c585 SM |
4197 | * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name, |
4198 | get_saveloc_name, is_signal_frame_name, step_name, | |
4199 | init_remote_name, create_addr_space_name, | |
4200 | destroy_addr_space_name, search_unwind_table_name, | |
4201 | find_dyn_list_name): Constify. | |
e83f4d97 | 4202 | |
6821842f SM |
4203 | 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca> |
4204 | ||
4205 | * darwin-nat.c (darwin_pthread_kill): New function. | |
4206 | (darwin_resume_thread): Use darwin_pthread_kill. | |
4207 | ||
c530603c TV |
4208 | 2018-07-05 Tom de Vries <tdevries@suse.de> |
4209 | ||
4210 | * macroexp.c (macro_buffer) <operator=>: New member function. | |
4211 | ||
a7d0f0f0 TT |
4212 | 2018-07-04 Tom Tromey <tom@tromey.com> |
4213 | ||
4214 | * darwin-nat.c (darwin_attach_pid): Use exit_inferior. | |
4215 | ||
6242c6a6 SM |
4216 | 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca> |
4217 | ||
4218 | * common/common-defs.h (HAVE_USEFUL_SBRK): Define. | |
4219 | * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK. | |
4220 | * maint.c: Likewise. | |
4221 | * top.c: Likewise. | |
4222 | ||
4e5b2f89 JB |
4223 | 2018-07-04 Joel Brobecker <brobecker@adacore.com> |
4224 | ||
4225 | * NEWS: Create a new section for the next release branch. | |
4226 | Rename the section of the current branch, now that it has | |
4227 | been cut. | |
4228 | ||
538ccc4a JB |
4229 | 2018-07-04 Joel Brobecker <brobecker@adacore.com> |
4230 | ||
4231 | GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e): | |
4232 | * version.in: Bump version to 8.2.50.DATE-git. | |
4233 | ||
1b919490 VB |
4234 | 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com> |
4235 | Pedro Alves <palves@redhat.com> | |
4236 | ||
4237 | * linux-nat.c (linux_init_ptrace): Rename to ... | |
4238 | (linux_init_ptrace_procfs): ... this. Call | |
4239 | linux_proc_init_warnings. | |
4240 | (linux_nat_target::post_attach) | |
4241 | (linux_nat_target::post_startup_inferior): Adjust. | |
4242 | * nat/linux-procfs.c (linux_proc_init_warnings): Define function. | |
4243 | * nat/linux-procfs.h (linux_proc_init_warnings): Declare function. | |
4244 | ||
1ea5da02 TV |
4245 | 2018-07-04 Tom de Vries <tdevries@suse.de> |
4246 | ||
4247 | * dwarf2read.c (error_check_comp_unit_head): Move dwarf version | |
4248 | check ... | |
4249 | (read_comp_unit_head): ... here. | |
4250 | ||
f51e0e20 TT |
4251 | 2018-07-03 Tom Tromey <tom@tromey.com> |
4252 | ||
4253 | * tracepoint.c (process_tracepoint_on_disconnect, start_tracing) | |
4254 | (stop_tracing, tstatus_command) | |
4255 | (find_matching_tracepoint_location, merge_uploaded_tracepoints) | |
4256 | (print_one_static_tracepoint_marker): Update. | |
4257 | * breakpoint.c (static_tracepoints_here, all_tracepoints): Return | |
4258 | std::vector. | |
4259 | * breakpoint.h (breakpoint_p): Remove typedef. Don't declare | |
4260 | VEC. | |
4261 | (all_tracepoints, static_tracepoints_here): Return std::vector. | |
4262 | ||
d7e15655 TT |
4263 | 2018-07-03 Tom Tromey <tom@tromey.com> |
4264 | ||
4265 | * common/ptid.c (ptid_equal): Remove. | |
4266 | * common/ptid.h (ptid_equal): Don't declare. | |
4267 | * ada-tasks.c: Update. | |
4268 | * breakpoint.c: Update. | |
4269 | * common/agent.c: Update. | |
4270 | * corelow.c: Update. | |
4271 | * darwin-nat-info.c: Update. | |
4272 | * darwin-nat.c: Update. | |
4273 | * dcache.c: Update. | |
4274 | * dtrace-probe.c: Update. | |
4275 | * dummy-frame.c: Update. | |
4276 | * fbsd-nat.c: Update. | |
4277 | * frame.c: Update. | |
4278 | * gdbthread.h: Update. | |
4279 | * gnu-nat.c: Update. | |
4280 | * go32-nat.c: Update. | |
4281 | * inf-loop.c: Update. | |
4282 | * inf-ptrace.c: Update. | |
4283 | * infcall.c: Update. | |
4284 | * infcmd.c: Update. | |
4285 | * inflow.c: Update. | |
4286 | * infrun.c: Update. | |
4287 | * linux-fork.c: Update. | |
4288 | * linux-nat.c: Update. | |
4289 | * linux-thread-db.c: Update. | |
4290 | * mi/mi-cmd-var.c: Update. | |
4291 | * mi/mi-interp.c: Update. | |
4292 | * mi/mi-main.c: Update. | |
4293 | * nto-procfs.c: Update. | |
4294 | * ppc-linux-tdep.c: Update. | |
4295 | * procfs.c: Update. | |
4296 | * python/py-inferior.c: Update. | |
4297 | * python/py-record-btrace.c: Update. | |
4298 | * python/py-record.c: Update. | |
4299 | * ravenscar-thread.c: Update. | |
4300 | * regcache.c: Update. | |
4301 | * remote-sim.c: Update. | |
4302 | * remote.c: Update. | |
4303 | * sol-thread.c: Update. | |
4304 | * solib.c: Update. | |
4305 | * target.c: Update. | |
4306 | * tui/tui-stack.c: Update. | |
4307 | * varobj.c: Update. | |
4308 | * windows-nat.c: Update. | |
4309 | * windows-tdep.c: Update. | |
4310 | ||
26a57c92 TT |
4311 | 2018-07-03 Tom Tromey <tom@tromey.com> |
4312 | ||
4313 | * common/ptid.c (ptid_match): Remove. | |
4314 | * common/ptid.h (ptid_match): Don't declare. | |
4315 | * fbsd-nat.c: Update. | |
4316 | * infcmd.c: Update. | |
4317 | * infrun.c: Update. | |
4318 | * linux-nat.c: Update. | |
4319 | * record-btrace.c: Update. | |
4320 | * regcache.c: Update. | |
4321 | * remote.c: Update. | |
4322 | ||
d2a107e3 TT |
4323 | 2018-07-03 Tom Tromey <tom@tromey.com> |
4324 | ||
4325 | * common/ptid.c (ptid_tid_p): Remove. | |
4326 | * common/ptid.h (ptid_tid_p): Don't declare. | |
4327 | * sol-thread.c: Update. | |
4328 | ||
15a9e13e TT |
4329 | 2018-07-03 Tom Tromey <tom@tromey.com> |
4330 | ||
4331 | * common/ptid.c (ptid_lwp_p): Remove. | |
4332 | * common/ptid.h (ptid_lwp_p): Don't declare. | |
4333 | * fbsd-nat.c: Update. | |
4334 | * linux-nat.c: Update. | |
4335 | * nat/linux-procfs.c: Update. | |
4336 | * nat/x86-linux-dregs.c: Update. | |
4337 | * sol-thread.c: Update. | |
4338 | ||
0e998d96 TT |
4339 | 2018-07-03 Tom Tromey <tom@tromey.com> |
4340 | ||
4341 | * common/ptid.c (ptid_is_pid): Remove. | |
4342 | * common/ptid.h (ptid_is_pid): Don't declare. | |
4343 | * infrun.c: Update. | |
4344 | * linux-nat.c: Update. | |
4345 | * mi/mi-interp.c: Update. | |
4346 | * remote.c: Update. | |
4347 | * thread.c: Update. | |
4348 | ||
cc6bcb54 TT |
4349 | 2018-07-03 Tom Tromey <tom@tromey.com> |
4350 | ||
4351 | * common/ptid.c (ptid_get_tid): Remove. | |
4352 | * common/ptid.h (ptid_get_tid): Don't declare. | |
4353 | * ada-tasks.c: Update. | |
4354 | * aix-thread.c: Update. | |
4355 | * bsd-uthread.c: Update. | |
4356 | * darwin-nat.c: Update. | |
4357 | * fbsd-nat.c: Update. | |
4358 | * i386-darwin-nat.c: Update. | |
4359 | * infrun.c: Update. | |
4360 | * linux-tdep.c: Update. | |
4361 | * nto-procfs.c: Update. | |
4362 | * ppc-ravenscar-thread.c: Update. | |
4363 | * python/py-infthread.c: Update. | |
4364 | * ravenscar-thread.c: Update. | |
4365 | * sol-thread.c: Update. | |
4366 | * sparc-ravenscar-thread.c: Update. | |
4367 | * windows-nat.c: Update. | |
4368 | ||
e38504b3 TT |
4369 | 2018-07-03 Tom Tromey <tom@tromey.com> |
4370 | ||
4371 | * common/ptid.c (ptid_get_lwp): Remove. | |
4372 | * common/ptid.h (ptid_get_lwp): Don't declare. | |
4373 | * aarch64-linux-nat.c: Update. | |
4374 | * ada-tasks.c: Update. | |
4375 | * aix-thread.c: Update. | |
4376 | * amd64-linux-nat.c: Update. | |
4377 | * arm-linux-nat.c: Update. | |
4378 | * corelow.c: Update. | |
4379 | * fbsd-nat.c: Update. | |
4380 | * fbsd-tdep.c: Update. | |
4381 | * gnu-nat.c: Update. | |
4382 | * i386-cygwin-tdep.c: Update. | |
4383 | * i386-gnu-nat.c: Update. | |
4384 | * i386-linux-nat.c: Update. | |
4385 | * ia64-linux-nat.c: Update. | |
4386 | * inf-ptrace.c: Update. | |
4387 | * infrun.c: Update. | |
4388 | * linux-fork.c: Update. | |
4389 | * linux-nat.c: Update. | |
4390 | * linux-tdep.c: Update. | |
4391 | * linux-thread-db.c: Update. | |
4392 | * mips-linux-nat.c: Update. | |
4393 | * nat/aarch64-linux-hw-point.c: Update. | |
4394 | * nat/aarch64-linux.c: Update. | |
4395 | * nat/linux-btrace.c: Update. | |
4396 | * nat/linux-osdata.c: Update. | |
4397 | * nat/linux-procfs.c: Update. | |
4398 | * nat/x86-linux-dregs.c: Update. | |
4399 | * obsd-nat.c: Update. | |
4400 | * ppc-fbsd-nat.c: Update. | |
4401 | * ppc-linux-nat.c: Update. | |
4402 | * procfs.c: Update. | |
4403 | * python/py-infthread.c: Update. | |
4404 | * ravenscar-thread.c: Update. | |
4405 | * remote.c: Update. | |
4406 | * s390-linux-nat.c: Update. | |
4407 | * sol-thread.c: Update. | |
4408 | * sol2-tdep.c: Update. | |
4409 | * spu-linux-nat.c: Update. | |
4410 | * x86-linux-nat.c: Update. | |
4411 | * xtensa-linux-nat.c: Update. | |
4412 | ||
e99b03dc TT |
4413 | 2018-07-03 Tom Tromey <tom@tromey.com> |
4414 | ||
4415 | * common/ptid.c (ptid_get_pid): Remove. | |
4416 | * common/ptid.h (ptid_get_pid): Don't declare. | |
4417 | * aarch64-linux-nat.c: Update. | |
4418 | * ada-lang.c: Update. | |
4419 | * aix-thread.c: Update. | |
4420 | * alpha-bsd-nat.c: Update. | |
4421 | * amd64-fbsd-nat.c: Update. | |
4422 | * amd64-linux-nat.c: Update. | |
4423 | * arm-linux-nat.c: Update. | |
4424 | * arm-nbsd-nat.c: Update. | |
4425 | * auxv.c: Update. | |
4426 | * break-catch-syscall.c: Update. | |
4427 | * breakpoint.c: Update. | |
4428 | * bsd-uthread.c: Update. | |
4429 | * corelow.c: Update. | |
4430 | * ctf.c: Update. | |
4431 | * darwin-nat.c: Update. | |
4432 | * fbsd-nat.c: Update. | |
4433 | * fbsd-tdep.c: Update. | |
4434 | * gcore.c: Update. | |
4435 | * gnu-nat.c: Update. | |
4436 | * hppa-nbsd-nat.c: Update. | |
4437 | * hppa-obsd-nat.c: Update. | |
4438 | * i386-fbsd-nat.c: Update. | |
4439 | * ia64-linux-nat.c: Update. | |
4440 | * inf-ptrace.c: Update. | |
4441 | * infcmd.c: Update. | |
4442 | * inferior.c: Update. | |
4443 | * inferior.h: Update. | |
4444 | * inflow.c: Update. | |
4445 | * infrun.c: Update. | |
4446 | * linux-fork.c: Update. | |
4447 | * linux-nat.c: Update. | |
4448 | * linux-tdep.c: Update. | |
4449 | * linux-thread-db.c: Update. | |
4450 | * m68k-bsd-nat.c: Update. | |
4451 | * mi/mi-interp.c: Update. | |
4452 | * mi/mi-main.c: Update. | |
4453 | * mips-linux-nat.c: Update. | |
4454 | * mips-nbsd-nat.c: Update. | |
4455 | * mips64-obsd-nat.c: Update. | |
4456 | * nat/aarch64-linux-hw-point.c: Update. | |
4457 | * nat/aarch64-linux.c: Update. | |
4458 | * nat/linux-btrace.c: Update. | |
4459 | * nat/linux-osdata.c: Update. | |
4460 | * nat/linux-procfs.c: Update. | |
4461 | * nat/x86-linux-dregs.c: Update. | |
4462 | * nto-procfs.c: Update. | |
4463 | * obsd-nat.c: Update. | |
4464 | * ppc-linux-nat.c: Update. | |
4465 | * ppc-nbsd-nat.c: Update. | |
4466 | * ppc-obsd-nat.c: Update. | |
4467 | * proc-service.c: Update. | |
4468 | * procfs.c: Update. | |
4469 | * python/py-inferior.c: Update. | |
4470 | * python/py-infthread.c: Update. | |
4471 | * ravenscar-thread.c: Update. | |
4472 | * record.c: Update. | |
4473 | * remote-sim.c: Update. | |
4474 | * remote.c: Update. | |
4475 | * rs6000-nat.c: Update. | |
4476 | * s390-linux-nat.c: Update. | |
4477 | * sh-nbsd-nat.c: Update. | |
4478 | * sol-thread.c: Update. | |
4479 | * sparc-nat.c: Update. | |
4480 | * sparc64-tdep.c: Update. | |
4481 | * spu-linux-nat.c: Update. | |
4482 | * spu-tdep.c: Update. | |
4483 | * target-debug.h: Update. | |
4484 | * target.c: Update. | |
4485 | * thread.c: Update. | |
4486 | * tid-parse.c: Update. | |
4487 | * tracefile-tfile.c: Update. | |
4488 | * vax-bsd-nat.c: Update. | |
4489 | * windows-nat.c: Update. | |
4490 | * x86-linux-nat.c: Update. | |
4491 | * x86-nat.c: Update. | |
4492 | ||
f2907e49 TT |
4493 | 2018-07-03 Tom Tromey <tom@tromey.com> |
4494 | ||
4495 | * common/ptid.c (pid_to_ptid): Remove. | |
4496 | * common/ptid.h (pid_to_ptid): Don't declare. | |
4497 | * aix-thread.c: Update. | |
4498 | * arm-linux-nat.c: Update. | |
4499 | * common/ptid.c: Update. | |
4500 | * common/ptid.h: Update. | |
4501 | * corelow.c: Update. | |
4502 | * ctf.c: Update. | |
4503 | * darwin-nat.c: Update. | |
4504 | * fbsd-nat.c: Update. | |
4505 | * fork-child.c: Update. | |
4506 | * gnu-nat.c: Update. | |
4507 | * go32-nat.c: Update. | |
4508 | * inf-ptrace.c: Update. | |
4509 | * infcmd.c: Update. | |
4510 | * inferior.c: Update. | |
4511 | * infrun.c: Update. | |
4512 | * linux-fork.c: Update. | |
4513 | * linux-nat.c: Update. | |
4514 | * nat/aarch64-linux-hw-point.c: Update. | |
4515 | * nat/fork-inferior.c: Update. | |
4516 | * nat/x86-linux-dregs.c: Update. | |
4517 | * nto-procfs.c: Update. | |
4518 | * obsd-nat.c: Update. | |
4519 | * procfs.c: Update. | |
4520 | * progspace.c: Update. | |
4521 | * remote.c: Update. | |
4522 | * rs6000-nat.c: Update. | |
4523 | * s390-linux-nat.c: Update. | |
4524 | * sol-thread.c: Update. | |
4525 | * spu-linux-nat.c: Update. | |
4526 | * target.c: Update. | |
4527 | * top.c: Update. | |
4528 | * tracefile-tfile.c: Update. | |
4529 | * windows-nat.c: Update. | |
4530 | ||
fd79271b TT |
4531 | 2018-07-03 Tom Tromey <tom@tromey.com> |
4532 | ||
4533 | * common/ptid.h (ptid_build): Don't declare. | |
4534 | * common/ptid.c (ptid_build): Remove. | |
4535 | * aix-thread.c: Update. | |
4536 | * bsd-kvm.c: Update. | |
4537 | * bsd-uthread.c: Update. | |
4538 | * common/agent.c: Update. | |
4539 | * common/ptid.c: Update. | |
4540 | * common/ptid.h: Update. | |
4541 | * corelow.c: Update. | |
4542 | * darwin-nat.c: Update. | |
4543 | * fbsd-nat.c: Update. | |
4544 | * gnu-nat.c: Update. | |
4545 | * linux-fork.c: Update. | |
4546 | * linux-nat.c: Update. | |
4547 | * linux-thread-db.c: Update. | |
4548 | * nat/linux-osdata.c: Update. | |
4549 | * nat/linux-procfs.c: Update. | |
4550 | * nto-procfs.c: Update. | |
4551 | * obsd-nat.c: Update. | |
4552 | * proc-service.c: Update. | |
4553 | * procfs.c: Update. | |
4554 | * ravenscar-thread.c: Update. | |
4555 | * remote-sim.c: Update. | |
4556 | * remote.c: Update. | |
4557 | * sol-thread.c: Update. | |
4558 | * target.c: Update. | |
4559 | * windows-nat.c: Update. | |
4560 | ||
057302ce TT |
4561 | 2018-07-03 Tom Tromey <tom@tromey.com> |
4562 | ||
4563 | * infrun.c (follow_exec): Use exit_inferior_silent. | |
4564 | * inferior.c (exit_inferior_num_silent): Remove. | |
4565 | * inferior.h (exit_inferior_num_silent): Don't declare. | |
4566 | ||
a50c11c6 TT |
4567 | 2018-07-03 Tom Tromey <tom@tromey.com> |
4568 | ||
4569 | PR cli/23340: | |
4570 | * darwin-nat.c (darwin_attach_pid): Reset inferior and | |
4571 | inferior_ptid on error. | |
4572 | ||
471b9d15 MR |
4573 | 2018-07-02 Maciej W. Rozycki <macro@mips.com> |
4574 | Simon Marchi <simon.marchi@polymtl.ca> | |
4575 | ||
4576 | PR tdep/8282 | |
4577 | * disasm.h (gdb_disassembler): Add | |
4578 | `m_disassembler_options_holder'. member | |
4579 | * disasm.c (get_all_disassembler_options): New function. | |
4580 | (gdb_disassembler::gdb_disassembler): Use it. | |
4581 | (gdb_buffered_insn_length_init_dis): Likewise. | |
4582 | (gdb_buffered_insn_length): Adjust accordingly. | |
4583 | (set_disassembler_options): Handle options with arguments. | |
4584 | (show_disassembler_options_sfunc): Likewise. Add a leading new | |
4585 | line if showing options with descriptions. | |
4586 | (disassembler_options_completer): Adapt to using the | |
4587 | `disasm_options_and_args_t' structure. | |
4588 | * mips-tdep.c (mips_disassembler_options): New variable. | |
4589 | (mips_disassembler_options_o32): Likewise. | |
4590 | (mips_disassembler_options_n32): Likewise. | |
4591 | (mips_disassembler_options_n64): Likewise. | |
4592 | (gdb_print_insn_mips): Don't set `disassembler_options'. | |
4593 | (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove | |
4594 | functions. | |
4595 | (mips_gdbarch_init): Always set `gdbarch_print_insn' to | |
4596 | `gdb_print_insn_mips'. Set `gdbarch_disassembler_options', | |
4597 | `gdbarch_disassembler_options_implicit' and | |
4598 | `gdbarch_valid_disassembler_options'. | |
4599 | * arm-tdep.c (_initialize_arm_tdep): Adapt to using the | |
4600 | `disasm_options_and_args_t' structure. | |
4601 | * gdbarch.sh (disassembler_options_implicit): New `gdbarch' | |
4602 | method. | |
4603 | (valid_disassembler_options): Switch from `disasm_options_t' to | |
4604 | the `disasm_options_and_args_t' structure. | |
4605 | * NEWS: Document `set disassembler-options' support for the MIPS | |
4606 | target. | |
4607 | * gdbarch.h: Regenerate. | |
4608 | * gdbarch.c: Regenerate. | |
4609 | ||
41823f29 SH |
4610 | 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de> |
4611 | ||
4612 | * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries. | |
4613 | ||
41206e32 JB |
4614 | 2018-06-29 Joel Brobecker <brobecker@adacore.com> |
4615 | ||
4616 | * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing | |
4617 | parameter in call to amd64_target_description. | |
4618 | * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise. | |
4619 | * amd64-fbsd-tdep.c (amd64fbsd_core_read_description) | |
4620 | (amd64fbsd_init_abi): Likewise. | |
4621 | * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise. | |
4622 | * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise. | |
4623 | * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise. | |
4624 | * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise. | |
4625 | ||
de52b960 PA |
4626 | 2018-06-29 Pedro Alves <palves@redhat.com> |
4627 | ||
4628 | * gdb/amd64-tdep.h (amd64_create_target_description): Add | |
4629 | "segments" parameter. | |
4630 | * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi) | |
4631 | (_initialize_amd64_tdep): Update call to | |
4632 | amd64_create_target_description. | |
4633 | (amd64_target_description): Add "segments" parameter. Adjust | |
4634 | the implementation to use it. | |
4635 | * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update | |
4636 | call to amd64_create_target_description. | |
4637 | * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise. | |
4638 | * gdb/arch/amd64.h (amd64_create_target_description): Add | |
4639 | "segments" register. | |
4640 | * gdb/arch/amd64.c (amd64_create_target_description): Add | |
4641 | "segments" parameter. Call create_feature_i386_64bit_segments | |
4642 | only if SEGMENTS is true. | |
4643 | * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update | |
4644 | call to amd64_create_target_description. | |
4645 | ||
75acb486 PA |
4646 | 2018-06-29 Pedro Alves <palves@redhat.com> |
4647 | ||
4648 | * thread.c (thread_target_id_str): New, factored out from ... | |
4649 | (print_thread_info_1): ... here. Use it to compute the max | |
4650 | "Target Id" column width. | |
4651 | ||
c76a8ea3 PA |
4652 | 2018-06-29 Pedro Alves <palves@redhat.com> |
4653 | ||
4654 | * remote.c (remote_target::extra_thread_info): Delete | |
4655 | 'display_buf' and 'n' locals. from the cache, regardless of | |
4656 | packet mechanims is in use. Use cache for qThreadExtra and qP | |
4657 | methods too. | |
4658 | ||
cd2bb709 PA |
4659 | 2018-06-29 Pedro Alves <palves@redhat.com> |
4660 | ||
4661 | * blockframe.c (find_pc_sect_containing_function): New function. | |
4662 | * breakpoint.c (print_breakpoint_location): Don't call | |
4663 | find_pc_sect_function. | |
4664 | * linespec.c (create_sals_line_offset): Record the location's | |
4665 | symbol in the sal. | |
4666 | * linespec.c (convert_address_location_to_sals): Fill in sal's | |
4667 | symbol with find_pc_sect_containing_function. | |
4668 | * symtab.c (find_function_start_sal): Rename to ... | |
4669 | (find_function_start_sal_1): ... this. | |
4670 | (find_function_start_sal): Reimplement as wrapper around | |
4671 | find_function_start_sal_1, and use | |
4672 | find_pc_sect_containing_function to fill in the sal's symbol. | |
4673 | (find_function_start_sal(symbol*, bool)): Adjust. | |
4674 | * symtab.h (find_pc_function, find_pc_sect_function): Adjust | |
4675 | comments. | |
4676 | (find_pc_sect_containing_function): Declare. | |
4677 | ||
991ff292 PA |
4678 | 2018-06-29 Pedro Alves <palves@redhat.com> |
4679 | ||
4680 | * inline-frame.c (stopped_by_user_bp_inline_frame): Return | |
4681 | true if the the location has no symbol. | |
4682 | ||
44cee4fd TT |
4683 | 2018-06-28 Tom Tromey <tom@tromey.com> |
4684 | ||
4685 | * NEWS: Mention --enable-codesign. | |
4686 | * silent-rules.mk (ECHO_SIGN): New variable. | |
4687 | * configure.ac: Add --enable-codesign. | |
4688 | * configure: Rebuild. | |
4689 | * Makefile.in (CODESIGN, CODESIGN_CERT): New variables. | |
4690 | (gdb$(EXEEXT)): Optionally invoke codesign. | |
4691 | ||
f2ffa92b PA |
4692 | 2018-06-28 Pedro Alves <palves@redhat.com> |
4693 | ||
4694 | * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend | |
4695 | comments. | |
4696 | (switch_to_thread_no_regs): Adjust comment. | |
4697 | * infcmd.c (stop_pc): Delete. | |
4698 | (post_create_inferior, info_program_command): Replace references | |
4699 | to stop_pc with references to thread_info->suspend.stop_pc. | |
4700 | * inferior.h (stop_pc): Delete declaration. | |
4701 | * infrun.c (proceed, handle_syscall_event, fill_in_stop_func) | |
4702 | (handle_inferior_event_1, handle_signal_stop) | |
4703 | (process_event_stop_test, keep_going_stepped_thread) | |
4704 | (handle_step_into_function, handle_step_into_function_backward) | |
4705 | (print_stop_location): Replace references to stop_pc with | |
4706 | references to thread_info->suspend.stop_pc. | |
4707 | (struct infcall_suspend_state) <stop_pc>: Delete field. | |
4708 | (save_infcall_suspend_state, restore_infcall_suspend_state): | |
4709 | Remove references to inf_stat->stop_pc. | |
4710 | * linux-fork.c (fork_load_infrun_state): Likewise. | |
4711 | * record-btrace.c (record_btrace_set_replay): Likewise. | |
4712 | * record-full.c (record_full_goto_entry): Likewise. | |
4713 | * remote.c (print_one_stopped_thread): Likewise. | |
4714 | * target.c (target_resume): Extend comment. | |
4715 | * thread.c (set_executing_thread): New. | |
4716 | (set_executing): Use it. | |
4717 | (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread): | |
4718 | Remove references to stop_pc. | |
4719 | ||
ecdc3a72 PA |
4720 | 2018-06-28 Pedro Alves <palves@redhat.com> |
4721 | ||
4722 | * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: | |
4723 | Moving fetching stop_pc until after ecs->event_thread is refreshed. | |
4724 | ||
d95d3aef TT |
4725 | 2018-06-28 Tom Tromey <tom@tromey.com> |
4726 | ||
4727 | * coffread.c (coff_symfile_finish): Update. | |
4728 | * xcoffread.c (xcoff_symfile_finish): Update. | |
4729 | * elfread.c (elf_symfile_finish): Update. | |
4730 | * symfile.h (dwarf2_free_objfile): Don't declare. | |
4731 | * dwarf2read.c (_initialize_dwarf2_read): Use | |
4732 | register_objfile_data_with_cleanup. | |
4733 | (dwarf2_free_objfile): Now static. Change signature. | |
4734 | ||
291f9a96 PT |
4735 | 2018-06-28 Petr Tesarik <ptesarik@suse.cz> |
4736 | ||
4737 | * symfile.c (add_symbol_file_command, _initialize_symfile): Add | |
4738 | option "-o" to add-symbol-file-load to add an offset to each | |
4739 | section's load address. | |
4740 | * symfile.c (set_objfile_default_section_offset): New function. | |
4741 | ||
d81a3eaf PT |
4742 | 2018-06-28 Petr Tesarik <ptesarik@suse.cz> |
4743 | ||
4744 | * symfile.c (add_symbol_file_command): Make sure that sections | |
4745 | with the same name are sorted in the same order. | |
4746 | ||
ed6dfe51 PT |
4747 | 2018-06-28 Petr Tesarik <ptesarik@suse.cz> |
4748 | ||
4749 | * symfile.c (add_symbol_file_command, _initialize_symfile): Do not | |
4750 | require the second argument. If omitted, load sections at the | |
4751 | addresses specified in the file. | |
4752 | ||
d4d429d5 PT |
4753 | 2018-06-28 Petr Tesarik <ptesarik@suse.cz> |
4754 | ||
4755 | * symfile.c (symbol_file_command, symbol_file_add_main_1) | |
4756 | (_initialize_symfile): Add option "-o" to symbol-file to add an | |
4757 | offset to each section of the symbol file. | |
4758 | ||
39b27ab6 PT |
4759 | 2018-06-28 Petr Tesarik <ptesarik@suse.cz> |
4760 | ||
4761 | * MAINTAINERS (Write After Approval): Add Petr Tesarik. | |
4762 | ||
41827fc3 TT |
4763 | 2018-06-27 Tom Tromey <tom@tromey.com> |
4764 | ||
4765 | * stack.c (_initialize_stack): Update "func" help text. | |
4766 | ||
0c6aef22 TT |
4767 | 2018-06-27 Tom Tromey <tom@tromey.com> |
4768 | ||
4769 | * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a | |
4770 | std::vector. | |
4771 | (unwind_infopy_str, pyuw_create_unwind_info) | |
4772 | (unwind_infopy_add_saved_register, pyuw_sniffer) | |
4773 | (unwind_infopy_dealloc, unwind_infopy_add_saved_register): | |
4774 | Update. | |
4775 | (struct saved_reg): Add constructor. | |
4776 | <value>: Now a gdbpy_ref<>. | |
4777 | ||
63177289 TT |
4778 | 2018-06-27 Tom Tromey <tom@tromey.com> |
4779 | ||
4780 | * machoread.c (macho_symfile_read): Define "symbol_table" earlier. | |
4781 | ||
e76f78a0 SM |
4782 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
4783 | ||
4784 | * gdb-gdb.py.in: Format using autopep8. | |
4785 | ||
9a14af7b SM |
4786 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
4787 | ||
4788 | * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class. | |
4789 | (type_lookup_function): Recognize CORE_ADDR values. | |
4790 | ||
189366cd SM |
4791 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
4792 | ||
4793 | * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't | |
4794 | print tag_name. | |
4795 | ||
68ad5fb9 SM |
4796 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
4797 | ||
4798 | * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove. | |
4799 | <__lt__>: Add. | |
4800 | ||
141ec9f6 SM |
4801 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
4802 | ||
4803 | * gdb-gdb.py: Move to... | |
4804 | * gdb-gdb.py.in: ... here. | |
4805 | * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py. | |
4806 | * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as | |
4807 | dependencies. | |
4808 | (distclean): Remove gdb-gdb.py when cleaning. | |
4809 | (gdb-gdb.py, gdb-gdb.gdb): New rules. | |
4810 | * configure: Re-generate. | |
4811 | ||
4c4e7ad4 PA |
4812 | 2018-06-27 Pedro Alves <palves@redhat.com> |
4813 | ||
4814 | * proc-service.c (get_ps_regcache): New. | |
4815 | (ps_lgetregs, ps_lsetregs, ps_lgetfpregs) | |
4816 | (ps_lsetfpregs): Use it. | |
4817 | ||
7ab6656f OJ |
4818 | 2018-06-27 Omair Javaid <omair.javaid@linaro.org> |
4819 | ||
4820 | PR gdb/21695 | |
4821 | * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration. | |
4822 | (dwarf_decode_lines_1): Adjust. | |
4823 | ||
bd583225 SM |
4824 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
4825 | ||
4826 | * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add | |
4827 | override. | |
4828 | <info_proc>: Likewise. | |
4829 | ||
9a325b7b JB |
4830 | 2018-06-26 Joel Brobecker <brobecker@adacore.com> |
4831 | ||
4832 | * windows-nat.c (do_windows_fetch_inferior_registers): Rename | |
4833 | to windows_fetch_one_register, and only handle the case of | |
4834 | fetching one register. Move the code that reloads the context | |
4835 | and iterates over all registers if R is negative to... | |
4836 | (windows_nat_target::fetch_registers): ... here. | |
4837 | (do_windows_store_inferior_registers): Rename to | |
4838 | windows_store_one_register, and only handle the case of storing | |
4839 | one register. Move the code that handles the case where r is | |
4840 | negative to... | |
4841 | (windows_nat_target::store_registers) ... here. | |
4842 | ||
a33ccfc7 TT |
4843 | 2018-06-26 Tom Tromey <tom@tromey.com> |
4844 | ||
4845 | PR rust/22574: | |
4846 | * typeprint.c (whatis_exp): Allow ptype/o for Rust. | |
4847 | * rust-lang.c (rust_print_struct_def): Add podata parameter. | |
4848 | Update. | |
4849 | (rust_internal_print_type): Add podata parameter. | |
4850 | (rust_print_type): Update. | |
4851 | ||
e0c547d1 TT |
4852 | 2018-06-26 Tom Tromey <tom@tromey.com> |
4853 | ||
4854 | * typeprint.h (struct print_offset_data) <update, finish, | |
4855 | maybe_print_hole>: New methods. | |
4856 | <indentation>: New constant. | |
4857 | * typeprint.c (print_offset_data::indentation): Define. | |
4858 | (print_offset_data::maybe_print_hole, print_offset_data::update) | |
4859 | (print_offset_data::finish): Move from c-typeprint.c and rename. | |
4860 | * c-typeprint.c (OFFSET_SPC_LEN): Remove. | |
4861 | (print_spaces_filtered_with_print_options): Update. | |
4862 | (c_print_type_union_field_offset, maybe_print_hole) | |
4863 | (c_print_type_struct_field_offset): Move to typeprint.c and | |
4864 | rename. | |
4865 | (c_type_print_base_struct_union): Update. | |
4866 | ||
75cbc781 PA |
4867 | 2018-06-25 Pedro Alves <palves@redhat.com> |
4868 | ||
4869 | * gdbthread.h (thread_info_ref, delete_thread) | |
4870 | (delete_thread_silent, first_thread_of_inferior) | |
4871 | (any_thread_of_inferior, switch_to_thread) | |
4872 | (enable_thread_stack_temporaries) | |
4873 | (thread_stack_temporaries_enabled_p, push_thread_stack_temporary) | |
4874 | (get_last_thread_stack_temporary) | |
4875 | (value_in_thread_stack_temporaries, can_access_registers_thread): | |
4876 | Spell out "struct thread_info" instead of just "thread_info". | |
4877 | * inferior.h (notice_new_inferior): Likewise. | |
4878 | ||
b7a08269 PA |
4879 | 2018-06-25 Pedro Alves <palves@redhat.com> |
4880 | ||
4881 | * windows-nat.c (windows_delete_thread): Use find_thread_ptid and | |
4882 | pass thread_info pointer to delete_thread. | |
4883 | (windows_nat_target::detach): Pass inferior pointer to | |
4884 | detach_inferior. | |
4885 | * aix-thread.c (sync_threadlists): Pass thread_info pointer to | |
4886 | delete_thread. | |
4887 | * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors. | |
4888 | * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid | |
4889 | and pass a thread_info pointer to delete_thread. | |
4890 | * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and | |
4891 | pass thread_info pointer to delete_thread. | |
4892 | * go32-nat.c (go32_nat_target::mourn_inferior): Remove | |
4893 | delete_thread_silent call. | |
4894 | * procfs.c (procfs_target::detach): Pass inferior pointer to | |
4895 | detach_inferior. | |
4896 | (procfs_target::wait): Pass thread_info pointer to delete_thread. | |
4897 | * remote-sim.c (gdbsim_target::mourn_inferior): Remove | |
4898 | delete_thread_silent call. | |
4899 | * windows-nat.c (windows_delete_thread): Use find_thread_ptid and | |
4900 | pass thread_info pointer to delete_thread. | |
4901 | (windows_nat_target::detach): Pass inferior pointer to | |
4902 | delete_inferior. | |
4903 | ||
8e7767e3 AH |
4904 | 2018-06-22 Alan Hayward <alan.hayward@arm.com> |
4905 | ||
4906 | * regcache.c (readable_regcache::read_part): Fix asserts. | |
4907 | (reg_buffer::raw_collect_part): New function. | |
4908 | (regcache::write_part): Fix asserts. | |
4909 | (reg_buffer::raw_supply_part): New function. | |
4910 | (regcache::transfer_regset_register): New helper function. | |
4911 | (regcache::transfer_regset): Call new functions. | |
4912 | (regcache_supply_regset): Use gdb_byte*. | |
4913 | (regcache::supply_regset): Likewise. | |
4914 | (regcache_collect_regset): Likewise. | |
4915 | (regcache::collect_regset): Likewise. | |
4916 | * regcache.h (reg_buffer::raw_collect_part): New declaration. | |
4917 | (reg_buffer::raw_supply_part): Likewise. | |
4918 | (regcache::transfer_regset_register): Likewise. | |
4919 | (regcache::transfer_regset): Use gdb_byte*. | |
4920 | ||
bfd60e34 AH |
4921 | 2018-06-22 Alan Hayward <alan.hayward@arm.com> |
4922 | ||
4923 | * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &. | |
4924 | ||
00431a78 PA |
4925 | 2018-06-21 Pedro Alves <palves@redhat.com> |
4926 | ||
4927 | * ada-lang.h (ada_get_task_number): Take a thread_info pointer | |
4928 | instead of a ptid_t. All callers adjusted. | |
4929 | * ada-tasks.c (ada_get_task_number): Likewise. All callers | |
4930 | adjusted. | |
4931 | (print_ada_task_info, display_current_task_id, task_command_1): | |
4932 | Adjust. | |
4933 | * breakpoint.c (watchpoint_in_thread_scope): Adjust to use | |
4934 | inferior_thread. | |
4935 | (breakpoint_kind): Adjust. | |
4936 | (remove_breakpoints_pid): Rename to ... | |
4937 | (remove_breakpoints_inf): ... this. Adjust to take an inferior | |
4938 | pointer. All callers adjusted. | |
4939 | (bpstat_clear_actions): Use inferior_thread. | |
4940 | (get_bpstat_thread): New. | |
4941 | (bpstat_do_actions): Use it. | |
4942 | (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust | |
4943 | to take a thread_info pointer. All callers adjusted. | |
4944 | (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint) | |
4945 | (breakpoint_re_set_thread): Use inferior_thread. | |
4946 | * breakpoint.h (struct inferior): Forward declare. | |
4947 | (bpstat_stop_status): Update. | |
4948 | (remove_breakpoints_pid): Delete. | |
4949 | (remove_breakpoints_inf): New. | |
4950 | * bsd-uthread.c (bsd_uthread_target::wait) | |
4951 | (bsd_uthread_target::update_thread_list): Use find_thread_ptid. | |
4952 | * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch) | |
4953 | (maint_btrace_packet_history_cmd) | |
4954 | (maint_btrace_clear_packet_history_cmd): Adjust. | |
4955 | (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use | |
4956 | inferior_thread. | |
4957 | * cli/cli-interp.c: Include "inferior.h". | |
4958 | * common/refcounted-object.h (struct | |
4959 | refcounted_object_ref_policy): New. | |
4960 | * compile/compile-object-load.c: Include gdbthread.h. | |
4961 | (store_regs): Use inferior_thread. | |
4962 | * corelow.c (core_target::close): Use current_inferior. | |
4963 | (core_target_open): Adjust to use first_thread_of_inferior and use | |
4964 | the current inferior. | |
4965 | * ctf.c (ctf_target::close): Adjust to use current_inferior. | |
4966 | * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ... | |
4967 | <thread>: ... this new field. All references adjusted. | |
4968 | (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor): | |
4969 | Take a thread_info pointer instead of a ptid_t. | |
4970 | * dummy-frame.h (dummy_frame_push, dummy_frame_pop) | |
4971 | (dummy_frame_discard, register_dummy_frame_dtor): Take a | |
4972 | thread_info pointer instead of a ptid_t. | |
4973 | * elfread.c: Include "inferior.h". | |
4974 | (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): | |
4975 | Use inferior_thread. | |
4976 | * eval.c (evaluate_subexp): Likewise. | |
4977 | * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use | |
4978 | inferior_thread. | |
4979 | * gdb_proc_service.h (struct thread_info): Forward declare. | |
4980 | (struct ps_prochandle) <ptid>: Delete, replaced by ... | |
4981 | <thread>: ... this new field. All references adjusted. | |
4982 | * gdbarch.h, gdbarch.c: Regenerate. | |
4983 | * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a | |
4984 | 'thread' parameter. All implementations and callers adjusted. | |
4985 | * gdbthread.h (thread_info) <set_running>: New method. | |
4986 | (delete_thread, delete_thread_silent): Take a thread_info pointer | |
4987 | instead of a ptid. | |
4988 | (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete. | |
4989 | (first_thread_of_process): Delete, replaced by ... | |
4990 | (first_thread_of_inferior): ... this new function. All callers | |
4991 | adjusted. | |
4992 | (any_live_thread_of_process): Delete, replaced by ... | |
4993 | (any_live_thread_of_inferior): ... this new function. All callers | |
4994 | adjusted. | |
4995 | (switch_to_thread, switch_to_no_thread): Declare. | |
4996 | (is_executing): Delete. | |
4997 | (enable_thread_stack_temporaries): Update comment. | |
4998 | <enable_thread_stack_temporaries>: Take a thread_info pointer | |
4999 | instead of a ptid_t. Incref the thread. | |
5000 | <~enable_thread_stack_temporaries>: Decref the thread. | |
5001 | <m_ptid>: Delete | |
5002 | <m_thr>: New. | |
5003 | (thread_stack_temporaries_enabled_p, push_thread_stack_temporary) | |
5004 | (get_last_thread_stack_temporary) | |
5005 | (value_in_thread_stack_temporaries, can_access_registers_thread): | |
5006 | Take a thread_info pointer instead of a ptid_t. All callers | |
5007 | adjusted. | |
5008 | * infcall.c (get_call_return_value): Use inferior_thread. | |
5009 | (run_inferior_call): Work with thread pointers instead of ptid_t. | |
5010 | (call_function_by_hand_dummy): Work with thread pointers instead | |
5011 | of ptid_t. Use thread_info_ref. | |
5012 | * infcmd.c (proceed_thread_callback): Access thread's state | |
5013 | directly. | |
5014 | (ensure_valid_thread, ensure_not_running): Use inferior_thread, | |
5015 | access thread's state directly. | |
5016 | (continue_command): Use inferior_thread. | |
5017 | (info_program_command): Use find_thread_ptid and access thread | |
5018 | state directly. | |
5019 | (proceed_after_attach_callback): Use thread state directly. | |
5020 | (notice_new_inferior): Take a thread_info pointer instead of a | |
5021 | ptid_t. All callers adjusted. | |
5022 | (exit_inferior): Take an inferior pointer instead of a pid. All | |
5023 | callers adjusted. | |
5024 | (exit_inferior_silent): New. | |
5025 | (detach_inferior): Delete. | |
5026 | (valid_gdb_inferior_id, pid_to_gdb_inferior_id) | |
5027 | (gdb_inferior_id_to_pid, in_inferior_list): Delete. | |
5028 | (detach_inferior_command, kill_inferior_command): Use | |
5029 | find_inferior_id instead of valid_gdb_inferior_id and | |
5030 | gdb_inferior_id_to_pid. | |
5031 | (inferior_command): Use inferior and thread pointers. | |
5032 | * inferior.h (struct thread_info): Forward declare. | |
5033 | (notice_new_inferior): Take a thread_info pointer instead of a | |
5034 | ptid_t. All callers adjusted. | |
5035 | (detach_inferior): Delete declaration. | |
5036 | (exit_inferior, exit_inferior_silent): Take an inferior pointer | |
5037 | instead of a pid. All callers adjusted. | |
5038 | (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list) | |
5039 | (valid_gdb_inferior_id): Delete. | |
5040 | * infrun.c (follow_fork_inferior, proceed_after_vfork_done) | |
5041 | (handle_vfork_child_exec_or_exit, follow_exec): Adjust. | |
5042 | (struct displaced_step_inferior_state) <pid>: Delete, replaced by | |
5043 | ... | |
5044 | <inf>: ... this new field. | |
5045 | <step_ptid>: Delete, replaced by ... | |
5046 | <step_thread>: ... this new field. | |
5047 | (get_displaced_stepping_state): Take an inferior pointer instead | |
5048 | of a pid. All callers adjusted. | |
5049 | (displaced_step_in_progress_any_inferior): Adjust. | |
5050 | (displaced_step_in_progress_thread): Take a thread pointer instead | |
5051 | of a ptid_t. All callers adjusted. | |
5052 | (displaced_step_in_progress, add_displaced_stepping_state): Take | |
5053 | an inferior pointer instead of a pid. All callers adjusted. | |
5054 | (get_displaced_step_closure_by_addr): Adjust. | |
5055 | (remove_displaced_stepping_state): Take an inferior pointer | |
5056 | instead of a pid. All callers adjusted. | |
5057 | (displaced_step_prepare_throw, displaced_step_prepare) | |
5058 | (displaced_step_fixup): Take a thread pointer instead of a ptid_t. | |
5059 | All callers adjusted. | |
5060 | (start_step_over): Adjust. | |
5061 | (infrun_thread_ptid_changed): Remove bit updating ptids in the | |
5062 | displaced step queue. | |
5063 | (do_target_resume): Adjust. | |
5064 | (fetch_inferior_event): Use inferior_thread. | |
5065 | (context_switch, get_inferior_stop_soon): Take an | |
5066 | execution_control_state pointer instead of a ptid_t. All callers | |
5067 | adjusted. | |
5068 | (switch_to_thread_cleanup): Delete. | |
5069 | (stop_all_threads): Use scoped_restore_current_thread. | |
5070 | * inline-frame.c: Include "gdbthread.h". | |
5071 | (inline_state) <inline_state>: Take a thread pointer instead of a | |
5072 | ptid_t. All callers adjusted. | |
5073 | <ptid>: Delete, replaced by ... | |
5074 | <thread>: ... this new field. | |
5075 | (find_inline_frame_state): Take a thread pointer instead of a | |
5076 | ptid_t. All callers adjusted. | |
5077 | (skip_inline_frames, step_into_inline_frame) | |
5078 | (inline_skipped_frames, inline_skipped_symbol): Take a thread | |
5079 | pointer instead of a ptid_t. All callers adjusted. | |
5080 | * inline-frame.h (skip_inline_frames, step_into_inline_frame) | |
5081 | (inline_skipped_frames, inline_skipped_symbol): Likewise. | |
5082 | * linux-fork.c (delete_checkpoint_command): Adjust to use thread | |
5083 | pointers directly. | |
5084 | * linux-nat.c (get_detach_signal): Likewise. | |
5085 | * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter. | |
5086 | (thread_db_notice_clone): Adjust. | |
5087 | (thread_db_find_new_threads_silently) | |
5088 | (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take | |
5089 | a thread pointer instead of a ptid_t. All callers adjusted. | |
5090 | * mi/mi-cmd-var.c: Include "inferior.h". | |
5091 | (mi_cmd_var_update_iter): Update to use thread pointers. | |
5092 | * mi/mi-interp.c (mi_new_thread): Update to use the thread's | |
5093 | inferior directly. | |
5094 | (mi_output_running_pid, mi_inferior_count): Delete, bits factored | |
5095 | out to ... | |
5096 | (mi_output_running): ... this new function. | |
5097 | (mi_on_resume_1): Adjust to use it. | |
5098 | (mi_user_selected_context_changed): Adjust to use inferior_thread. | |
5099 | * mi/mi-main.c (proceed_thread): Adjust to use thread pointers | |
5100 | directly. | |
5101 | (interrupt_thread_callback): : Adjust to use thread and inferior | |
5102 | pointers. | |
5103 | * proc-service.c: Include "gdbthread.h". | |
5104 | (ps_pglobal_lookup): Adjust to use the thread's inferior directly. | |
5105 | * progspace-and-thread.c: Include "inferior.h". | |
5106 | * progspace.c: Include "inferior.h". | |
5107 | * python/py-exitedevent.c (create_exited_event_object): Adjust to | |
5108 | hold a reference to an inferior_object. | |
5109 | * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use | |
5110 | inferior_thread. | |
5111 | * python/py-inferior.c (struct inferior_object): Give the type a | |
5112 | tag name instead of a typedef. | |
5113 | (python_on_normal_stop): No need to check if the current thread is | |
5114 | listed. | |
5115 | (inferior_to_inferior_object): Change return type to | |
5116 | inferior_object. All callers adjusted. | |
5117 | (find_thread_object): Delete, bits factored out to ... | |
5118 | (thread_to_thread_object): ... this new function. | |
5119 | * python/py-infthread.c (create_thread_object): Use | |
5120 | inferior_to_inferior_object. | |
5121 | (thpy_is_stopped): Use thread pointer directly. | |
5122 | (gdbpy_selected_thread): Use inferior_thread. | |
5123 | * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete | |
5124 | field, replaced with ... | |
5125 | <thread>: ... this new field. All users adjusted. | |
5126 | (btpy_insn_or_gap_new): Drop const. | |
5127 | (btpy_list_new): Take a thread pointer instead of a ptid_t. All | |
5128 | callers adjusted. | |
5129 | * python/py-record.c: Include "gdbthread.h". | |
5130 | (recpy_insn_new, recpy_func_new): Take a thread pointer instead of | |
5131 | a ptid_t. All callers adjusted. | |
5132 | (gdbpy_current_recording): Use inferior_thread. | |
5133 | * python/py-record.h (recpy_record_object) <ptid>: Delete | |
5134 | field, replaced with ... | |
5135 | <thread>: ... this new field. All users adjusted. | |
5136 | (recpy_element_object) <ptid>: Delete | |
5137 | field, replaced with ... | |
5138 | <thread>: ... this new field. All users adjusted. | |
5139 | (recpy_insn_new, recpy_func_new): Take a thread pointer instead of | |
5140 | a ptid_t. All callers adjusted. | |
5141 | * python/py-threadevent.c: Include "gdbthread.h". | |
5142 | (get_event_thread): Use thread_to_thread_object. | |
5143 | * python/python-internal.h (struct inferior_object): Forward | |
5144 | declare. | |
5145 | (find_thread_object, find_inferior_object): Delete declarations. | |
5146 | (thread_to_thread_object, inferior_to_inferior_object): New | |
5147 | declarations. | |
5148 | * record-btrace.c: Include "inferior.h". | |
5149 | (require_btrace_thread): Use inferior_thread. | |
5150 | (record_btrace_frame_sniffer) | |
5151 | (record_btrace_tailcall_frame_sniffer): Use inferior_thread. | |
5152 | (get_thread_current_frame): Use scoped_restore_current_thread and | |
5153 | switch_to_thread. | |
5154 | (get_thread_current_frame): Use thread pointer directly. | |
5155 | (record_btrace_replay_at_breakpoint): Use thread's inferior | |
5156 | pointer directly. | |
5157 | * record-full.c: Include "inferior.h". | |
5158 | * regcache.c: Include "gdbthread.h". | |
5159 | (get_thread_arch_regcache): Use the inferior's address space | |
5160 | directly. | |
5161 | (get_thread_regcache, registers_changed_thread): New. | |
5162 | * regcache.h (get_thread_regcache(thread_info *thread)): New | |
5163 | overload. | |
5164 | (registers_changed_thread): New. | |
5165 | (remote_target) <remote_detach_1>: Swap order of parameters. | |
5166 | (remote_add_thread): <remote_add_thread>: Return the new thread. | |
5167 | (get_remote_thread_info(ptid_t)): New overload. | |
5168 | (remote_target::remote_notice_new_inferior): Use thread pointers | |
5169 | directly. | |
5170 | (remote_target::process_initial_stop_replies): Use | |
5171 | thread_info::set_running. | |
5172 | (remote_target::remote_detach_1, remote_target::detach) | |
5173 | (extended_remote_target::detach): Adjust. | |
5174 | * stack.c (frame_show_address): Use inferior_thread. | |
5175 | * target-debug.h (target_debug_print_thread_info_pp): New. | |
5176 | * target-delegates.c: Regenerate. | |
5177 | * target.c (default_thread_address_space): Delete. | |
5178 | (memory_xfer_partial_1): Use current_inferior. | |
5179 | (target_detach): Use current_inferior. | |
5180 | (target_thread_address_space): Delete. | |
5181 | (generic_mourn_inferior): Use current_inferior. | |
5182 | * target.h (struct target_ops) <thread_address_space>: Delete. | |
5183 | (target_thread_address_space): Delete. | |
5184 | * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread | |
5185 | pointers directly. | |
5186 | (delete_thread_1, delete_thread, delete_thread_silent): Take a | |
5187 | thread pointer instead of a ptid_t. Adjust all callers. | |
5188 | (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete. | |
5189 | (first_thread_of_process): Delete, replaced by ... | |
5190 | (first_thread_of_inferior): ... this new function. All callers | |
5191 | adjusted. | |
5192 | (any_thread_of_process): Rename to ... | |
5193 | (any_thread_of_inferior): ... this, and take an inferior pointer. | |
5194 | (any_live_thread_of_process): Rename to ... | |
5195 | (any_live_thread_of_inferior): ... this, and take an inferior | |
5196 | pointer. | |
5197 | (thread_stack_temporaries_enabled_p, push_thread_stack_temporary) | |
5198 | (value_in_thread_stack_temporaries) | |
5199 | (get_last_thread_stack_temporary): Take a thread pointer instead | |
5200 | of a ptid_t. Adjust all callers. | |
5201 | (thread_info::set_running): New. | |
5202 | (validate_registers_access): Use inferior_thread. | |
5203 | (can_access_registers_ptid): Rename to ... | |
5204 | (can_access_registers_thread): ... this, and take a thread | |
5205 | pointer. | |
5206 | (print_thread_info_1): Adjust to compare thread pointers instead | |
5207 | of ptids. | |
5208 | (switch_to_no_thread, switch_to_thread): Make extern. | |
5209 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
5210 | Use m_thread pointer directly. | |
5211 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
5212 | Use inferior_thread. | |
5213 | (thread_command): Use thread pointer directly. | |
5214 | (thread_num_make_value_helper): Use inferior_thread. | |
5215 | * top.c (execute_command): Use inferior_thread. | |
5216 | * tui/tui-interp.c: Include "inferior.h". | |
5217 | * varobj.c (varobj_create): Use inferior_thread. | |
5218 | (value_of_root_1): Use find_thread_global_id instead of | |
5219 | global_thread_id_to_ptid. | |
5220 | ||
33bab475 AH |
5221 | 2018-06-21 Alan Hayward <alan.hayward@arm.com> |
5222 | ||
5223 | * regcache.c (readable_regcache::read_part): Avoid memcpy when | |
5224 | possible. | |
5225 | (regcache::write_part): Likewise. | |
5226 | (readable_regcache::cooked_read_part): Update comment. | |
5227 | (readable_regcache::cooked_write_part): Likewise. | |
5228 | * regcache.h: (readable_regcache::read_part): Likewise. | |
5229 | (regcache::write_part): Likewise. | |
5230 | ||
8363f9d5 RB |
5231 | 2018-06-21 Richard Bunt <richard.bunt@arm.com> |
5232 | Dirk Schubert <dirk.schubert@arm.com> | |
5233 | ||
5234 | * aarch64-linux-nat.c (post_attach): New. | |
5235 | (aarch64_linux_nat_target::post_attach): Override post_attach to | |
5236 | record the number of hardware debug registers. | |
5237 | ||
0d0b0ea2 TT |
5238 | 2018-06-20 Tom Tromey <tom@tromey.com> |
5239 | ||
5240 | * python/py-param.c (add_setshow_generic): Make parameters const. | |
5241 | (parmpy_init): Update. | |
5242 | ||
302abd6e SM |
5243 | 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca> |
5244 | ||
5245 | * regcache.h (regcache_cooked_read_ftype): Rename to... | |
5246 | (register_read_ftype): ...this, change type to function_view. | |
5247 | (class reg_buffer) <save>: Remove src parameter. | |
5248 | (readonly_detached_regcache) <readonly_detached_regcache>: Make | |
5249 | parameter non-const in first overload. Remove src parameter in | |
5250 | second overload. | |
5251 | * regcache.c (do_cooked_read): Remove. | |
5252 | (readonly_detached_regcache::readonly_detached_regcache): Make | |
5253 | parameter non-const, adjust call to other constructor. | |
5254 | (reg_buffer::save): Remove src parameter. | |
5255 | * frame.c (do_frame_register_read): Remove. | |
5256 | (frame_save_as_regcache): Use lambda function. | |
5257 | * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src | |
5258 | parameter to ppu2spu_data *. | |
5259 | (ppu2spu_sniffer): Use lambda function. | |
5260 | ||
19f3f25f SM |
5261 | 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca> |
5262 | ||
5263 | * record-full.c (record_full_target::insert_breakpoint): Remove | |
5264 | "struct" keyword, add const. | |
5265 | ||
d0ac1c44 SM |
5266 | 2018-06-19 Simon Marchi <simon.marchi@ericsson.com> |
5267 | ||
5268 | * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION, | |
5269 | PACKAGE_STRING, PACKAGE_TARNAME): Undefine. | |
5270 | * configure.ac: Remove AC_PREREQ, add missing quoting. | |
5271 | * gnulib/configure.ac: Modernize usage of | |
5272 | AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ. | |
5273 | * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69. | |
5274 | (AUTOMAKE_VERSION): Bump to 1.15.1. | |
5275 | * configure: Re-generate. | |
5276 | * config.in: Re-generate. | |
5277 | * aclocal.m4: Re-generate. | |
5278 | * gnulib/aclocal.m4: Re-generate. | |
5279 | * gnulib/config.in: Re-generate. | |
5280 | * gnulib/configure: Re-generate. | |
5281 | * gnulib/import/Makefile.in: Re-generate. | |
5282 | ||
6ae50267 PA |
5283 | 2018-06-19 Pedro Alves <palves@redhat.com> |
5284 | ||
5285 | * minsyms.c (msym_prefer_to_msym_type): New, factored out from ... | |
5286 | (lookup_minimal_symbol_by_pc_section): ... here with | |
5287 | gdb_assert_not_reached added. | |
5288 | ||
61b04dd0 PA |
5289 | 2018-06-19 Pedro Alves <palves@redhat.com> |
5290 | ||
5291 | * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC | |
5292 | parameter with a block parameter. Compare location's block symbol | |
5293 | with the frame's block instead of addresses. | |
5294 | (skip_inline_frames): Pass the current block instead of the | |
5295 | frame's address. Break out as soon as we determine the frame | |
5296 | should not be skipped. | |
5297 | ||
f709fabb TT |
5298 | 2018-06-18 Tom Tromey <tom@tromey.com> |
5299 | ||
5300 | * solib-aix.c (solib_aix_get_section_offsets): Return | |
5301 | unique_xmalloc_ptr. | |
5302 | (solib_aix_solib_create_inferior_hook): Update. | |
5303 | ||
668eb2f0 TT |
5304 | 2018-06-18 Tom Tromey <tom@tromey.com> |
5305 | ||
5306 | * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr. | |
5307 | ||
309822ca TT |
5308 | 2018-06-18 Tom Tromey <tom@tromey.com> |
5309 | ||
5310 | * solib-frv.c (frv_relocate_main_executable): Use | |
5311 | unique_xmalloc_ptr. | |
5312 | * solib-dsbt.c (dsbt_relocate_main_executable): Use | |
5313 | unique_xmalloc_ptr. | |
5314 | ||
06424eac TT |
5315 | 2018-06-18 Tom Tromey <tom@tromey.com> |
5316 | ||
5317 | * objfiles.h (inhibit_section_map_updates): Update. | |
5318 | (resume_section_map_updates, resume_section_map_updates_cleanup): | |
5319 | Remove. | |
5320 | * solib-svr4.c (svr4_handle_solib_event): Update. | |
5321 | * objfiles.c (inhibit_section_map_updates): Return | |
5322 | scoped_restore_tmpl<int>. | |
5323 | (resume_section_map_updates, resume_section_map_updates_cleanup): | |
5324 | Remove. | |
5325 | ||
b4be9fad TT |
5326 | 2018-06-18 Tom Tromey <tom@tromey.com> |
5327 | ||
5328 | * valprint.h (read_string): Update. | |
5329 | * valprint.c (read_string): Change type of "buffer". | |
5330 | (val_print_string): Update. | |
5331 | * python/py-value.c (valpy_string): Update. | |
5332 | * language.h (struct language_defn) <la_get_string>: Change | |
5333 | type of "buffer". | |
5334 | (default_get_string, c_get_string): Update. | |
5335 | * language.c (default_get_string): Change type of "buffer". | |
5336 | * guile/scm-value.c (gdbscm_value_to_string): Update. | |
5337 | * c-lang.c (c_get_string): Change type of "buffer". | |
5338 | ||
3f0dbd67 TT |
5339 | 2018-06-18 Tom Tromey <tom@tromey.com> |
5340 | ||
5341 | * ser-mingw.c (struct pipe_state_destroyer): New. | |
5342 | (pipe_state_up): New typedef. | |
5343 | (cleanup_pipe_state): Remove. | |
5344 | (pipe_windows_open): Use pipe_state_up. Don't release argv. | |
5345 | ||
69d340c6 TT |
5346 | 2018-06-18 Tom Tromey <tom@tromey.com> |
5347 | ||
5348 | * rust-lang.h (rust_yyerror): Don't declare. | |
5349 | * rust-lang.c (rust_language_defn): Update. | |
5350 | * rust-exp.y (yyerror): Now static. | |
5351 | * parse.c (parse_exp_in_context_1): Update. | |
5352 | * p-lang.h (p_yyerror): Don't declare. | |
5353 | * p-lang.c (p_language_defn): Update. | |
5354 | * p-exp.y (yyerror): Now static. | |
5355 | * opencl-lang.c (opencl_language_defn): Update. | |
5356 | * objc-lang.c (objc_language_defn): Update. | |
5357 | * m2-lang.h (m2_yyerror): Don't declare. | |
5358 | * m2-lang.c (m2_language_defn): Update. | |
5359 | * m2-exp.y (yyerror): Now static. | |
5360 | * language.h (struct language_defn) <la_error>: Remove. | |
5361 | * language.c (unk_lang_error): Remove. | |
5362 | (unknown_language_defn, auto_language_defn): Remove. | |
5363 | * go-lang.h (go_yyerror): Don't declare. | |
5364 | * go-lang.c (go_language_defn): Update. | |
5365 | * go-exp.y (yyerror): Now static. | |
5366 | * f-lang.h (f_yyerror): Don't declare. | |
5367 | * f-lang.c (f_language_defn): Update. | |
5368 | * f-exp.y (yyerror): Now static. | |
5369 | * d-lang.h (d_yyerror): Don't declare. | |
5370 | * d-lang.c (d_language_defn): Update. | |
5371 | * d-exp.y (yyerror): Now static. | |
5372 | * c-lang.h (c_yyerror): Don't declare. | |
5373 | * c-lang.c (c_language_defn, cplus_language_defn) | |
5374 | (asm_language_defn, minimal_language_defn): Update. | |
5375 | * c-exp.y (yyerror): Now static. | |
5376 | * ada-lang.h (ada_yyerror): Don't declare. | |
5377 | * ada-lang.c (ada_language_defn): Update. | |
5378 | * ada-exp.y (yyerror): Now static. | |
5379 | ||
e9902bfc AH |
5380 | 2018-06-18 Alan Hayward <alan.hayward@arm.com> |
5381 | ||
5382 | * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function. | |
5383 | (store_sveregs_to_thread): Likewise. | |
5384 | (aarch64_linux_fetch_inferior_registers): Check for SVE. | |
5385 | (aarch64_linux_store_inferior_registers): Likewise. | |
5386 | * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New | |
5387 | function. | |
5388 | (aarch64_sve_regs_copy_to_regcache): Likewise. | |
5389 | (aarch64_sve_regs_copy_from_regcache): Likewise. | |
5390 | * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New | |
5391 | declaration. | |
5392 | (aarch64_sve_regs_copy_to_regcache): Likewise. | |
5393 | (aarch64_sve_regs_copy_from_regcache): Likewise. | |
5394 | (sve_context): Structure from Linux headers. | |
5395 | (SVE_SIG_ZREGS_SIZE): Define from Linux headers. | |
5396 | (SVE_SIG_ZREG_SIZE): Likewise. | |
5397 | (SVE_SIG_PREG_SIZE): Likewise. | |
5398 | (SVE_SIG_FFR_SIZE): Likewise. | |
5399 | (SVE_SIG_REGS_OFFSET): Likewise. | |
5400 | (SVE_SIG_ZREGS_OFFSET): Likewise. | |
5401 | (SVE_SIG_ZREG_OFFSET): Likewise. | |
5402 | (SVE_SIG_ZREGS_SIZE): Likewise. | |
5403 | (SVE_SIG_PREGS_OFFSET): Likewise. | |
5404 | (SVE_SIG_PREG_OFFSET): Likewise. | |
5405 | (SVE_SIG_PREGS_SIZE): Likewise. | |
5406 | (SVE_SIG_FFR_OFFSET): Likewise. | |
5407 | (SVE_SIG_REGS_SIZE): Likewise. | |
5408 | (SVE_SIG_CONTEXT_SIZE): Likewise. | |
5409 | (SVE_PT_REGS_MASK): Likewise. | |
5410 | (SVE_PT_REGS_FPSIMD): Likewise. | |
5411 | (SVE_PT_REGS_SVE): Likewise. | |
5412 | (SVE_PT_VL_INHERIT): Likewise. | |
5413 | (SVE_PT_VL_ONEXEC): Likewise. | |
5414 | (SVE_PT_REGS_OFFSET): Likewise. | |
5415 | (SVE_PT_FPSIMD_OFFSET): Likewise. | |
5416 | (SVE_PT_FPSIMD_SIZE): Likewise. | |
5417 | (SVE_PT_SVE_ZREG_SIZE): Likewise. | |
5418 | (SVE_PT_SVE_PREG_SIZE): Likewise. | |
5419 | (SVE_PT_SVE_FFR_SIZE): Likewise. | |
5420 | (SVE_PT_SVE_FPSR_SIZE): Likewise. | |
5421 | (SVE_PT_SVE_FPCR_SIZE): Likewise. | |
5422 | (__SVE_SIG_TO_PT): Likewise. | |
5423 | (SVE_PT_SVE_OFFSET): Likewise. | |
5424 | (SVE_PT_SVE_ZREGS_OFFSET): Likewise. | |
5425 | (SVE_PT_SVE_ZREG_OFFSET): Likewise. | |
5426 | (SVE_PT_SVE_ZREGS_SIZE): Likewise. | |
5427 | (SVE_PT_SVE_PREGS_OFFSET): Likewise. | |
5428 | (SVE_PT_SVE_PREG_OFFSET): Likewise. | |
5429 | (SVE_PT_SVE_PREGS_SIZE): Likewise. | |
5430 | (SVE_PT_SVE_FFR_OFFSET): Likewise. | |
5431 | (SVE_PT_SVE_FPSR_OFFSET): Likewise. | |
5432 | (SVE_PT_SVE_FPCR_OFFSET): Likewise. | |
5433 | (SVE_PT_SVE_SIZE): Likewise. | |
5434 | (SVE_PT_SIZE): Likewise. | |
5435 | (HAS_SVE_STATE): New define. | |
5436 | ||
17a1cc89 AH |
5437 | 2018-06-18 Alan Hayward <alan.hayward@arm.com> |
5438 | ||
5439 | * nat/aarch64-sve-linux-sigcontext.h: New file. | |
5440 | * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to | |
5441 | new files. | |
5442 | (SVE_VQ_MIN): Likewise. | |
5443 | (SVE_VQ_MAX): Likewise. | |
5444 | (SVE_VL_MIN): Likewise. | |
5445 | (SVE_VL_MAX): Likewise. | |
5446 | (SVE_NUM_ZREGS): Likewise. | |
5447 | (SVE_NUM_PREGS): Likewise. | |
5448 | (sve_vl_valid): Likewise. | |
5449 | (struct user_sve_header): Likewise. | |
5450 | ||
7010835a AB |
5451 | 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com> |
5452 | Richard Bunt <Richard.Bunt@arm.com> | |
5453 | ||
5454 | * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it | |
5455 | was requested by GDB. | |
5456 | ||
479b3ef4 TV |
5457 | 2018-06-15 Tom de Vries <tdevries@suse.de> |
5458 | ||
5459 | * MAINTAINERS (Write After Approval): Add Tom de Vries. | |
5460 | ||
8199b8f4 SM |
5461 | 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca> |
5462 | ||
5463 | * gnulib/update-gnulib.sh: Print expected versions of | |
5464 | autoconf/aclocal. | |
5465 | ||
55c748a1 SM |
5466 | 2018-06-14 Simon Marchi <simon.marchi@ericsson.com> |
5467 | ||
5468 | * arch-utils.c (default_type_align): Use type_length_units. | |
5469 | * gdbtypes.c (type_align): Use type_length_units. | |
5470 | ||
87a8eca7 PW |
5471 | 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5472 | ||
5473 | * cli/cli-script.c (_initialize_cli_script): Fix online documentation | |
5474 | of 'define' command. | |
5475 | ||
5d9a0608 TV |
5476 | 2018-06-14 Tom de Vries <tdevries@suse.de> |
5477 | ||
5478 | PR cli/22573 | |
5479 | * infcmd.c (print_return_value_1): Use get_user_print_options instead of | |
5480 | get_no_prettyformat_print_options. | |
5481 | ||
ab89b5a5 SM |
5482 | 2018-06-13 Simon Marchi <simon.marchi@ericsson.com> |
5483 | ||
5484 | * sparc-nat.h: Include target.h. | |
5485 | * sparc64-linux-nat.c (class sparc64_linux_nat_target) | |
5486 | <fetch_registers>: Remove this argument in function call. | |
5487 | <store_registers>: Remove this argument in function call, remove | |
5488 | extra semicolon. | |
5489 | <low_forget_process>: Call sparc64_forget_process instead of | |
5490 | sparc_forget_process. | |
5491 | ||
62c808ae RO |
5492 | 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
5493 | ||
5494 | * procfs.c (_initialize_procfs): Use add_inf_child_target. | |
5495 | (procfs_target::make_corefile_notes): Adjust to new | |
5496 | target_read_alloc return type. | |
5497 | ||
1840d81a AB |
5498 | 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com> |
5499 | Stephen Roberts <stephen.roberts@arm.com> | |
5500 | ||
5501 | PR gdb/22882 | |
5502 | * infrun.c (fetch_inferior_event): If GDB is not proceeding then | |
5503 | run INF_EXEC_COMPLETE handler, even when not calling normal_stop. | |
5504 | Move should_notify_stop local into more inner scope. | |
5505 | ||
9516f85a AB |
5506 | 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com> |
5507 | Stephen Roberts <stephen.roberts@arm.com> | |
5508 | ||
5509 | PR gdb/22882 | |
5510 | * infrun.c (resume_1): Add call to mark_async_event_handler. | |
5511 | ||
defd2172 AB |
5512 | 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com> |
5513 | ||
5514 | * infrun.c (do_target_wait): Change old version of $pc printed. | |
5515 | ||
7b23e087 SM |
5516 | 2018-06-11 Simon Marchi <simon.marchi@ericsson.com> |
5517 | ||
5518 | * dwarf2read.c (read_index_from_section): Rename to... | |
5519 | (read_gdb_index_from_section): ... this, update all callers. | |
5520 | (dwarf2_read_index): Rename to... | |
5521 | (dwarf2_read_gdb_index): ... this, update all callers. | |
5522 | ||
69c67a0b JDA |
5523 | 2018-06-11 John David Anglin <danglin@gcc.gnu.org> |
5524 | ||
5525 | * gdb/hppa-linux-nat.c | |
5526 | (hppa_linux_nat_target::fetch_inferior_registers): Rename to | |
5527 | hppa_linux_nat_target::fetch_registers. | |
5528 | ||
65d4cada AH |
5529 | 2018-06-11 Alan Hayward <alan.hayward@arm.com> |
5530 | ||
5531 | * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings. | |
5532 | * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define. | |
5533 | (AARCH64_DWARF_SVE_FFR): Likewise. | |
5534 | (AARCH64_DWARF_SVE_P0): Likewise. | |
5535 | (AARCH64_DWARF_SVE_Z0): Likewise. | |
5536 | ||
f868386e AH |
5537 | 2018-06-11 Alan Hayward <alan.hayward@arm.com> |
5538 | ||
5539 | * common/common-regcache.h (raw_compare): New function. | |
5540 | * regcache.c (regcache::raw_compare): Likewise. | |
5541 | * regcache.h (regcache::raw_compare): New declaration. | |
5542 | ||
9c861883 AH |
5543 | 2018-06-11 Alan Hayward <alan.hayward@arm.com> |
5544 | ||
5545 | * common/common-regcache.h (reg_buffer_common): New structure. | |
5546 | * regcache.c (reg_buffer::invalidate): Move from detached_regcache. | |
5547 | (reg_buffer::raw_supply): Likewise. | |
5548 | (reg_buffer::raw_supply_integer): Likewise. | |
5549 | (reg_buffer::raw_supply_zeroed): Likewise. | |
5550 | (reg_buffer::raw_collect): Likewise. | |
5551 | (reg_buffer::raw_collect_integer): Likewise. | |
5552 | * regcache.h (reg_buffer::invalidate): Move from detached_regcache. | |
5553 | (reg_buffer::raw_supply): Likewise. | |
5554 | (reg_buffer::raw_supply_integer): Likewise. | |
5555 | (reg_buffer::raw_supply_zeroed): Likewise. | |
5556 | (reg_buffer::raw_collect): Likewise. | |
5557 | (reg_buffer::raw_collect_integer): Likewise. | |
5558 | ||
953edf2b TT |
5559 | 2018-06-10 Tom Tromey <tom@tromey.com> |
5560 | ||
5561 | * remote.c (stop_reply_p): Remove typedef. Don't declare queue. | |
5562 | (class remote_state) <stop_reply_queue>: Now std::vector. | |
5563 | (remote_state::~remote_state) | |
5564 | (remote_target::stop_reply_queue_length): Update. | |
5565 | (struct queue_iter_param, remove_child_of_pending_fork) | |
5566 | (struct check_pending_event_prevents_wildcard_vcont_callback_data) | |
5567 | (check_pending_event_prevents_wildcard_vcont_callback) | |
5568 | (remove_stop_reply_for_inferior) | |
5569 | (remove_stop_reply_of_remote_state) | |
5570 | (remote_notif_remove_once_on_match) | |
5571 | (stop_reply_match_ptid_and_ws) | |
5572 | (remote_kill_child_of_pending_fork): Remove. | |
5573 | (remote_target::remove_new_fork_children) | |
5574 | (remote_target::check_pending_events_prevent_wildcard_vcont) | |
5575 | (remote_target::discard_pending_stop_replies) | |
5576 | (remote_target::discard_pending_stop_replies_in_queue) | |
5577 | (remote_target::remote_notif_remove_queued_reply) | |
5578 | (remote_target::queued_stop_reply) | |
5579 | (remote_target::push_stop_reply, remote_target::peek_stop_reply) | |
5580 | (remote_target::wait, remote_target::kill_new_fork_children) | |
5581 | (remote_target::async): Update. | |
5582 | ||
1ddbba9d TT |
5583 | 2018-06-10 Tom Tromey <tom@tromey.com> |
5584 | ||
5585 | * record-full.c (record_full_arch_list_cleanups): Remove. | |
5586 | (record_full_message): Use try/catch. | |
5587 | (record_full_wait_cleanups): Remove. | |
5588 | (record_full_wait_1): Use try/catch. | |
5589 | (record_full_restore): Likewise. | |
5590 | ||
219605fd TT |
5591 | 2018-06-10 Tom Tromey <tom@tromey.com> |
5592 | ||
5593 | * record-full.c (record_full_breakpoint_p): Remove typedef. Don't | |
5594 | declare VEC. Add constructor. | |
5595 | <in_target_beneath>: Now bool. | |
5596 | (record_full_breakpoints): Now a std::vector, static. | |
5597 | (record_full_sync_record_breakpoints) | |
5598 | (record_full_init_record_breakpoints) | |
5599 | (record_full_target::insert_breakpoint) | |
5600 | (record_full_target::remove_breakpoint): Update. Don't use XNEW. | |
5601 | ||
71b73764 SM |
5602 | 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca> |
5603 | ||
5604 | * dwarf2read.c (process_cu_includes): Remove struct keyword. | |
5605 | * serial.c (serial_interface_lookup): Remove struct keyword. | |
5606 | ||
4360561f TT |
5607 | 2018-06-10 Tom Tromey <tom@tromey.com> |
5608 | ||
5609 | * procfs.c (procfs_target::xfer_partial): Use "beneath" as a | |
5610 | method. | |
5611 | * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as | |
5612 | a method. | |
5613 | * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a | |
5614 | method. | |
5615 | * arm-linux-nat.c (arm_linux_nat_target::read_description): Use | |
5616 | "beneath" as a method. | |
5617 | * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description): | |
5618 | Use "beneath" as a method. | |
5619 | ||
d14b92bf TT |
5620 | 2018-06-10 Tom Tromey <tom@tromey.com> |
5621 | ||
5622 | * tracefile.c (struct trace_file_writer_deleter): New. | |
5623 | <operator()>: Rename from trace_file_writer_xfree. | |
5624 | (trace_file_writer_up): New typedef. | |
5625 | (tsave_command, trace_save_tfile, trace_save_ctf): Update. | |
5626 | ||
835dcf92 SM |
5627 | 2018-06-09 Simon Marchi <simon.marchi@ericsson.com> |
5628 | ||
5629 | * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor. | |
5630 | <m_registers, m_register_status>: Change type to | |
5631 | std::unique_ptr. | |
5632 | * regcache.c (reg_buffer::reg_buffer): Use new instead of | |
5633 | XCNEWVEC. | |
5634 | ||
aac0d564 SM |
5635 | 2018-06-09 Simon Marchi <simon.marchi@ericsson.com> |
5636 | ||
5637 | * common/common-regcache.h (enum register_status): Add | |
5638 | underlying type "signed char". | |
5639 | * regcache.h (reg_buffer) <m_register_status>: Change type to | |
5640 | register_status *. | |
5641 | * regcache.c (reg_buffer::reg_buffer): Alocate arrays of | |
5642 | register_status instead of signed char. | |
5643 | (reg_buffer::save): Use REG_UNKNOWN instead of 0. | |
5644 | (reg_buffer::get_register_status): Remove cast. | |
5645 | (readable_regcache::raw_read): Remove cast. | |
5646 | (readable_regcache::cooked_read): Remove cast. | |
5647 | ||
77ad7394 TT |
5648 | 2018-06-09 Tom Tromey <tom@tromey.com> |
5649 | ||
5650 | * source.c (reverse_search_command, forward_search_command): Use | |
5651 | scoped_fd. | |
5652 | ||
191cca63 TT |
5653 | 2018-06-09 Tom Tromey <tom@tromey.com> |
5654 | ||
5655 | * serial.c (serial_ops_p): Remove typedef. Don't declare VEC. | |
5656 | (serial_ops_list): Now static, std::vector. | |
5657 | (serial_interface_lookup, serial_add_interface): Update. | |
5658 | ||
c5d0225d TT |
5659 | 2018-06-09 Tom Tromey <tom@tromey.com> |
5660 | ||
5661 | * dwarf2read.c (process_cu_includes): Update. | |
5662 | (process_full_comp_unit): Update. | |
5663 | * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a | |
5664 | std::vector. | |
5665 | ||
aeab5128 PK |
5666 | 2018-06-08 Paul Koning <paul_koning@dell.com> |
5667 | ||
5668 | PR gdb/23252 | |
5669 | ||
5670 | * python/python.c (do_start_initialization): | |
5671 | Avoid call to internal Python API. | |
5672 | (init__gdb_module): New function. | |
5673 | ||
5045b3d7 GB |
5674 | 2018-06-08 Gary Benson <gbenson@redhat.com> |
5675 | ||
5676 | * linux-thread-db.c (valprint.h): New include. | |
5677 | (struct check_thread_db_info): New structure. | |
5678 | (check_thread_db_on_load, tdb_testinfo): New static globals. | |
5679 | (check_thread_db, check_thread_db_callback): New functions. | |
5680 | (try_thread_db_load_1): Run integrity checks if requested. | |
5681 | (maintenance_check_libthread_db): New function. | |
5682 | (_initialize_thread_db): Register "maint check libthread-db" | |
5683 | and "maint set/show check-libthread-db". | |
5684 | * NEWS: Mention the above new commands. | |
5685 | ||
2f4f025f TT |
5686 | 2018-06-08 Tom Tromey <tom@tromey.com> |
5687 | ||
5688 | * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is | |
5689 | now a method. | |
5690 | ||
343b0027 TT |
5691 | 2018-06-08 Tom Tromey <tom@tromey.com> |
5692 | ||
5693 | * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr. | |
5694 | ||
8dcc53b3 TT |
5695 | 2018-06-08 Tom Tromey <tom@tromey.com> |
5696 | ||
5697 | * common/btrace-common.h (struct btrace_data): Add constructor, | |
5698 | destructor, move assignment operator. | |
5699 | <empty, clear, fini>: New methods. | |
5700 | <format>: Initialize. | |
5701 | (btrace_data_init, btrace_data_fini, btrace_data_clear) | |
5702 | (btrace_data_empty): Don't declare. | |
5703 | * common/btrace-common.c (btrace_data_init): Remove. | |
5704 | (btrace_data::fini): Rename from btrace_data_fini. | |
5705 | (btrace_data::empty): Rename from btrace_data_empty. | |
5706 | (btrace_data::clear): Rename from btrace_data_clear. Return | |
5707 | bool. | |
5708 | * btrace.h (make_cleanup_btrace_data): Don't declare. | |
5709 | * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear) | |
5710 | (parse_xml_btrace): Update. | |
5711 | (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove. | |
5712 | (maint_btrace_clear_packet_history_cmd): Update. | |
5713 | ||
a1740ee1 PA |
5714 | 2018-06-07 Pedro Alves <palves@redhat.com> |
5715 | ||
5716 | * target.h (target_ops) <beneath>: Now a method. All references | |
5717 | updated. | |
5718 | (class target_stack): New. | |
5719 | * target.c (g_target_stack): New. | |
5720 | (g_current_top_target): Delete. | |
5721 | (current_top_target): Get the top target out of g_target_stack. | |
5722 | (target_stack::push, target_stack::unpush): New. | |
5723 | (push_target, unpush_target): Reimplement. | |
5724 | (target_is_pushed): Reimplement in terms of g_target_stack. | |
5725 | (target_ops::beneath, target_stack::find_beneath): New. | |
5726 | ||
d6ca69cd PA |
5727 | 2018-06-07 Pedro Alves <palves@redhat.com> |
5728 | ||
5729 | * target.h (find_target_beneath): Delete declaration. | |
5730 | * target.c (find_target_beneath): Delete definition. | |
5731 | * aix-thread.c: All callers of find_target_beneath adjusted to | |
5732 | call target_ops::beneath instead. | |
5733 | * bsd-uthread.c: Likewise. | |
5734 | * linux-thread-db.c: Likewise. | |
5735 | * ravenscar-thread.c: Likewise. | |
5736 | * sol-thread.c: Likewise. | |
5737 | * spu-multiarch.c: Likewise. | |
5738 | ||
b6a8c27b PA |
5739 | 2018-06-07 Pedro Alves <palves@redhat.com> |
5740 | ||
5741 | * target.h (target_ops) <beneath>: Now a method. All references | |
5742 | updated. | |
5743 | (target_ops) <m_beneath>: New. | |
5744 | * target.c (target_ops::beneath): New. | |
5745 | * corelow.c: Adjust all references to target_ops::beneath. | |
5746 | * linux-thread-db.c: Likewise. | |
5747 | * make-target-delegates: Likewise. | |
5748 | * record-btrace.c: Likewise. | |
5749 | * record-full.c: Likewise. | |
5750 | * remote.c: Likewise. | |
5751 | * target.c: Likewise. | |
5752 | * target-delegates.c: Regenerate. | |
5753 | ||
8b88a78e PA |
5754 | 2018-06-07 Pedro Alves <palves@redhat.com> |
5755 | ||
5756 | * target.h (target_stack): Delete. | |
5757 | (current_top_target): Declare function. | |
5758 | * target.c (target_stack): Delete. | |
5759 | (g_current_top_target): New. | |
5760 | (current_top_target): New function. | |
5761 | * auxv.c: Use current_top_target instead of target_stack | |
5762 | throughout. | |
5763 | * avr-tdep.c: Likewise. | |
5764 | * breakpoint.c: Likewise. | |
5765 | * corefile.c: Likewise. | |
5766 | * elfread.c: Likewise. | |
5767 | * eval.c: Likewise. | |
5768 | * exceptions.c: Likewise. | |
5769 | * frame.c: Likewise. | |
5770 | * gdbarch-selftests.c: Likewise. | |
5771 | * gnu-v3-abi.c: Likewise. | |
5772 | * ia64-tdep.c: Likewise. | |
5773 | * ia64-vms-tdep.c: Likewise. | |
5774 | * infcall.c: Likewise. | |
5775 | * infcmd.c: Likewise. | |
5776 | * infrun.c: Likewise. | |
5777 | * linespec.c: Likewise. | |
5778 | * linux-tdep.c: Likewise. | |
5779 | * minsyms.c: Likewise. | |
5780 | * ppc-linux-nat.c: Likewise. | |
5781 | * ppc-linux-tdep.c: Likewise. | |
5782 | * procfs.c: Likewise. | |
5783 | * regcache.c: Likewise. | |
5784 | * remote.c: Likewise. | |
5785 | * rs6000-tdep.c: Likewise. | |
5786 | * s390-linux-nat.c: Likewise. | |
5787 | * s390-tdep.c: Likewise. | |
5788 | * solib-aix.c: Likewise. | |
5789 | * solib-darwin.c: Likewise. | |
5790 | * solib-dsbt.c: Likewise. | |
5791 | * solib-spu.c: Likewise. | |
5792 | * solib-svr4.c: Likewise. | |
5793 | * solib-target.c: Likewise. | |
5794 | * sparc-tdep.c: Likewise. | |
5795 | * sparc64-tdep.c: Likewise. | |
5796 | * spu-tdep.c: Likewise. | |
5797 | * symfile.c: Likewise. | |
5798 | * symtab.c: Likewise. | |
5799 | * target-descriptions.c: Likewise. | |
5800 | * target-memory.c: Likewise. | |
5801 | * target.c: Likewise. | |
5802 | * target.h: Likewise. | |
5803 | * tracefile-tfile.c: Likewise. | |
5804 | * tracepoint.c: Likewise. | |
5805 | * valops.c: Likewise. | |
5806 | * valprint.c: Likewise. | |
5807 | * value.c: Likewise. | |
5808 | * windows-tdep.c: Likewise. | |
5809 | * mi/mi-main.c: Likewise. | |
5810 | ||
c7110220 TT |
5811 | 2018-06-07 Tom Tromey <tom@tromey.com> |
5812 | ||
5813 | * valprint.h (build_address_symbolic): Declare. | |
5814 | * printcmd.c (print_address_symbolic): Update. | |
5815 | (build_address_symbolic): Change "name" and "filename" to | |
5816 | std::string. | |
5817 | * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): | |
5818 | Update. | |
5819 | * defs.h (build_address_symbolic): Remove declaration. | |
5820 | ||
63bad7b6 AH |
5821 | 2018-06-07 Alan Hayward <alan.hayward@arm.com> |
5822 | ||
5823 | * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define. | |
5824 | (aarch64_vnv_type): Add function. | |
5825 | (aarch64_pseudo_register_name): Add V regs for SVE. | |
5826 | (aarch64_pseudo_register_type): Likewise. | |
5827 | (aarch64_pseudo_register_reggroup_p): Likewise. | |
5828 | (aarch64_pseudo_read_value_2): Use V0 offset for SVE | |
5829 | (aarch64_pseudo_read_value): Add V regs for SVE. | |
5830 | (aarch64_pseudo_write_2): Use V0 offset for SVE | |
5831 | (aarch64_pseudo_write): Add V regs for SVE. | |
5832 | * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type. | |
5833 | ||
13e3c608 SDJ |
5834 | 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com> |
5835 | ||
5836 | * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef. | |
5837 | (sve_vl_from_vq): Likewise. | |
5838 | ||
c61b06a1 TT |
5839 | 2018-06-05 Tom Tromey <tom@tromey.com> |
5840 | ||
5841 | * cli/cli-cmds.c (show_version): Update. | |
5842 | * top.c (print_gdb_version): Add "interactive" parameter. | |
5843 | Update. | |
5844 | * main.c (captured_main_1): Update. | |
5845 | * top.h (print_gdb_version): Add "interactive" parameter and a | |
5846 | comment. | |
5847 | ||
115f7325 DM |
5848 | 2018-06-05 David Malcolm <dmalcolm@redhat.com> |
5849 | ||
5850 | * common/enum-flags.h: Add trailing semicolon to example in | |
5851 | comment. | |
5852 | ||
eb6af809 TT |
5853 | 2018-06-05 Tom Tromey <tom@tromey.com> |
5854 | ||
5855 | PR cli/12326: | |
5856 | * NEWS: Add entry about pager. | |
5857 | * utils.c (pagination_disabled_for_command): New global. | |
5858 | (prompt_for_continue): Allow "c" response to prompt. | |
5859 | (reinitialize_more_filter): Clear | |
5860 | pagination_disabled_for_command. | |
5861 | (fputs_maybe_filtered): Check pagination_disabled_for_command. | |
5862 | ||
54d343a2 TT |
5863 | 2018-06-04 Tom Tromey <tom@tromey.com> |
5864 | ||
5865 | * ada-lang.h (ada_lookup_symbol_list): Update. | |
5866 | * ada-lang.c (resolve_subexp): Update. | |
5867 | (symbols_are_identical_enums): Change type of syms. Remove nsyms | |
5868 | parameter. | |
5869 | (remove_extra_symbols, remove_irrelevant_renamings): Likewise. | |
5870 | (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change | |
5871 | results parameter to std::vector. | |
5872 | (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value): | |
5873 | Update. | |
5874 | * ada-exp.y (block_lookup): Update. | |
5875 | (select_possible_type_sym): Change type of syms. Remove nsyms | |
5876 | parameter. | |
5877 | (write_var_or_type, write_name_assoc): Update. | |
5878 | ||
178d6a63 JB |
5879 | 2018-06-04 Joel Brobecker <brobecker@adacore.com> |
5880 | ||
5881 | * windows-nat.c (windows_nat_target::xfer_partial): Return | |
5882 | TARGET_XFER_E_IO if we need to delegate to the target beneath | |
5883 | but BENEATH is NULL. | |
5884 | ||
baf00c2d SM |
5885 | 2018-06-04 Simon Marchi <simon.marchi@ericsson.com> |
5886 | ||
5887 | * Makefile.in (config.status): Add configure.nat as a | |
5888 | dependency. | |
5889 | ||
214b073c TT |
5890 | 2018-06-04 Tom Tromey <tom@tromey.com> |
5891 | ||
5892 | * cp-name-parser.y (cpname_state): Add method declarations. | |
5893 | (HANDLE_QUAL): Update. | |
5894 | (cpname_state::d_grab, cpname_state::fill_comp) | |
5895 | (cpname_state::make_operator, cpname_state::make_dtor) | |
5896 | (cpname_state::make_builtin_type, cpname_state::make_name) | |
5897 | (cpname_state::d_qualify, cpname_state::d_int_type) | |
5898 | (cpname_state::d_unary, cpname_state::d_binary): Now methods. | |
5899 | (%union): Move earlier. | |
5900 | ||
62b74cb8 AH |
5901 | 2018-06-04 Alan Hayward <alan.hayward@arm.com> |
5902 | ||
5903 | * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT. | |
5904 | ||
3c5cd5c3 AH |
5905 | 2018-06-04 Alan Hayward <alan.hayward@arm.com> |
5906 | ||
5907 | * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func. | |
5908 | (aarch64_pseudo_write_1): Likewise. | |
5909 | (aarch64_pseudo_read_value): Use helper. | |
5910 | (aarch64_pseudo_write): Likewise. | |
5911 | ||
59f413d5 PA |
5912 | 2018-06-04 Pedro Alves <palves@redhat.com> |
5913 | ||
5914 | * darwin-nat.c (darwin_ops): Delete. | |
5915 | (darwin_attach_pid): Use get_native_target. | |
5916 | ||
1332a140 AH |
5917 | 2018-06-04 Alan Hayward <alan.hayward@arm.com> |
5918 | ||
5919 | * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ. | |
5920 | * aarch64-tdep.h (struct gdbarch_tdep): Likewise. | |
5921 | ||
ba2d2bb2 AH |
5922 | 2018-06-04 Alan Hayward <alan.hayward@arm.com> |
5923 | ||
5924 | * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE. | |
5925 | * aarch64-tdep.c (aarch64_get_tdesc_vq): New function. | |
5926 | (aarch64_gdbarch_init): Check for SVE. | |
5927 | * aarch64-tdep.h (gdbarch_tdep::has_sve): New function. | |
5928 | ||
5929 | 2018-06-04 Alan Hayward <alan.hayward@arm.com> | |
39bfb937 AH |
5930 | |
5931 | * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ. | |
5932 | * aarch64-tdep.h (aarch64_read_description): Likewise. | |
5933 | * arch/aarch64.c (aarch64_create_target_description): Likewise. | |
5934 | * arch/aarch64.h (aarch64_create_target_description): Likewise. | |
5935 | * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise. | |
5936 | * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise. | |
5937 | * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise. | |
5938 | ||
41c60b4b SM |
5939 | 2018-06-02 Simon Marchi <simon.marchi@ericsson.com> |
5940 | ||
5941 | * value.c (value_fetch_lazy_bitfield): New. | |
5942 | (value_fetch_lazy_memory): New. | |
5943 | (value_fetch_lazy_register): New. | |
5944 | (value_fetch_lazy): Factor out to smaller functions. | |
5945 | ||
7b640f72 TT |
5946 | 2018-06-01 Tom Tromey <tom@tromey.com> |
5947 | ||
5948 | * cp-name-parser.y (backslashable, represented): Now const. | |
5949 | ||
98e69eb3 TT |
5950 | 2018-06-01 Tom Tromey <tom@tromey.com> |
5951 | ||
5952 | * cp-name-parser.y: Include parser-defs.h. | |
5953 | (parser_fprintf): Remove declaration. | |
5954 | ||
49265499 TT |
5955 | 2018-06-01 Tom Tromey <tom@tromey.com> |
5956 | ||
5957 | * cp-name-parser.y: Use %pure-parser, %lex-param, and | |
5958 | %parse-param. | |
5959 | (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info) | |
5960 | (global_result): Remove globals. | |
5961 | (struct cpname_state): New. | |
5962 | (yyparse): Don't declare. | |
5963 | (yylex, yyerror): Move declarations after %union. | |
5964 | (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type) | |
5965 | (make_name): Add state parameter. | |
5966 | Update all callers. | |
5967 | (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state | |
5968 | parameter. | |
5969 | (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3): | |
5970 | Update. | |
5971 | (yylex): Add lvalp, state parameters. | |
5972 | (yyerror): Add state parameter. | |
5973 | (cp_demangled_name_to_comp): Update. | |
5974 | ||
55b6c984 TT |
5975 | 2018-06-01 Tom Tromey <tom@tromey.com> |
5976 | ||
5977 | * cp-name-parser.y (parser_fprintf): Declare. | |
5978 | (GDB_YY_REMAP_PREFIX): Define. | |
5979 | Include yy-remap.h. Don't redefine yy* identifiers. | |
5980 | ||
3513a6bb TT |
5981 | 2018-06-01 Tom Tromey <tom@tromey.com> |
5982 | ||
5983 | * python/py-type.c (typy_legacy_template_argument): Update. | |
5984 | * cp-support.h (cp_demangled_name_to_comp): Update. | |
5985 | * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg | |
5986 | parameter to be a "std::string *". | |
5987 | (main): Update. | |
5988 | ||
e9cb46ab L |
5989 | 2018-06-01 H.J. Lu <hongjiu.lu@intel.com> |
5990 | ||
5991 | * ada-lex.l: Include "diagnostics.h" instead of | |
5992 | "common/diagnostics.h". | |
5993 | * unittests/environ-selftests.c: Likewise. | |
5994 | * common/diagnostics.h: Moved to ../include. | |
5995 | ||
8e817061 JB |
5996 | 2018-06-01 Joel Brobecker <brobecker@adacore.com> |
5997 | ||
5998 | * breakpoint.c (breakpoint_re_set): Temporarily force language_mode | |
5999 | to language_mode_manual while calling breakpoint_re_set_one. | |
6000 | ||
a737d952 TT |
6001 | 2018-06-01 Tom Tromey <tom@tromey.com> |
6002 | ||
6003 | * valops.c (value_cast_structs, destructor_name_p): Update. | |
6004 | * symtab.c (gdb_mangle_name): Update. | |
6005 | * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses): | |
6006 | Update. | |
6007 | * p-valprint.c (pascal_object_is_vtbl_ptr_type) | |
6008 | (pascal_object_print_value_fields, pascal_object_print_value): | |
6009 | Update. | |
6010 | * p-typeprint.c (pascal_type_print_derivation_info): Update. | |
6011 | * linespec.c (find_methods): Update. | |
6012 | * gdbtypes.h (type_name_no_tag): Remove. | |
6013 | (type_name_or_error): Rename from type_name_no_tag_or_error. | |
6014 | * gdbtypes.c (type_name_no_tag): Remove. | |
6015 | (type_name_or_error): Rename from type_name_no_tag_or_error. | |
6016 | (lookup_struct_elt_type, check_typedef): Update. | |
6017 | * expprint.c (print_subexp_standard): Update. | |
6018 | * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update. | |
6019 | * d-namespace.c (d_lookup_nested_symbol): Update. | |
6020 | * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields) | |
6021 | (cp_print_class_member): Update. | |
6022 | * cp-namespace.c (cp_lookup_nested_symbol): Update. | |
6023 | * completer.c (add_struct_fields): Update. | |
6024 | * c-typeprint.c (cp_type_print_derivation_info) | |
6025 | (c_type_print_varspec_prefix, c_type_print_base_struct_union): | |
6026 | Update. | |
6027 | * ada-lang.c (parse_old_style_renaming, xget_renaming_scope) | |
6028 | (ada_prefer_type, ada_is_exception_sym): Update. | |
6029 | ||
e86ca25f TT |
6030 | 2018-06-01 Tom Tromey <tom@tromey.com> |
6031 | ||
6032 | * valops.c (enum_constant_from_type, value_namespace_elt) | |
6033 | (value_maybe_namespace_elt): Update. | |
6034 | * valarith.c (find_size_for_pointer_math): Update. | |
6035 | * target-descriptions.c (make_gdb_type): Update. | |
6036 | * symmisc.c (print_symbol): Update. | |
6037 | * stabsread.c (define_symbol, read_type) | |
6038 | (complain_about_struct_wipeout, add_undefined_type) | |
6039 | (cleanup_undefined_types_1): Update. | |
6040 | * rust-lang.c (rust_tuple_type_p, rust_slice_type_p) | |
6041 | (rust_range_type_p, val_print_struct, rust_print_struct_def) | |
6042 | (rust_internal_print_type, rust_composite_type) | |
6043 | (rust_evaluate_funcall, rust_evaluate_subexp) | |
6044 | (rust_inclusive_range_type_p): Update. | |
6045 | * python/py-type.c (typy_get_tag): Update. | |
6046 | * p-typeprint.c (pascal_type_print_base): Update. | |
6047 | * mdebugread.c (parse_symbol, parse_type): Update. | |
6048 | * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum): | |
6049 | Update. | |
6050 | * guile/scm-type.c (gdbscm_type_tag): Update. | |
6051 | * go-lang.c (sixg_string_p): Update. | |
6052 | * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type): | |
6053 | Update. | |
6054 | * gdbtypes.h (struct main_type) <tag_name>: Remove. | |
6055 | (TYPE_TAG_NAME): Remove. | |
6056 | * gdbtypes.c (type_name_no_tag): Simplify. | |
6057 | (check_typedef, check_types_equal, recursive_dump_type) | |
6058 | (copy_type_recursive, arch_composite_type): Update. | |
6059 | * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix | |
6060 | in summary mode when needed. | |
6061 | * eval.c (evaluate_funcall): Update. | |
6062 | * dwarf2read.c (fixup_go_packaging, read_structure_type) | |
6063 | (process_structure_scope, read_enumeration_type) | |
6064 | (read_namespace_type, read_module_type, determine_prefix): Update. | |
6065 | * cp-support.c (inspect_type): Update. | |
6066 | * coffread.c (process_coff_symbol, decode_base_type): Update. | |
6067 | * c-varobj.c (c_is_path_expr_parent): Update. | |
6068 | * c-typeprint.c (c_type_print_base_struct_union): Update. | |
6069 | (c_type_print_base_1): Update. Print struct/class/union/enum in | |
6070 | summary when using C language. | |
6071 | * ax-gdb.c (gen_struct_ref, gen_namespace_elt) | |
6072 | (gen_maybe_namespace_elt): Update. | |
6073 | * ada-lang.c (ada_type_name): Simplify. | |
6074 | (empty_record, ada_template_to_fixed_record_type_1) | |
6075 | (template_to_static_fixed_type) | |
6076 | (to_record_with_fixed_variant_part, ada_check_typedef): Update. | |
6077 | ||
c1ec8cea TT |
6078 | 2018-06-01 Tom Tromey <tom@tromey.com> |
6079 | ||
6080 | * dwarf2read.c (dwarf2_compute_name): Pass CU's language to | |
6081 | c_print_type. | |
6082 | * c-typeprint.c (c_print_type_1): Add "language" parameter. | |
6083 | (c_print_type): Update. | |
6084 | (c_print_type): New overload. | |
6085 | (c_type_print_varspec_prefix, c_type_print_args) | |
6086 | (c_type_print_varspec_suffix, c_print_type_no_offsets) | |
6087 | (c_type_print_base_struct_union, c_type_print_base_1) | |
6088 | (cp_type_print_method_args): Add "language" parameter. | |
6089 | (c_type_print_base): Update. | |
6090 | * c-lang.h (c_print_type): Add new overload. | |
6091 | ||
bc8453a7 TT |
6092 | 2018-06-01 Tom Tromey <tom@tromey.com> |
6093 | ||
6094 | * typeprint.h (c_type_print_varspec_suffix): Don't declare. | |
6095 | * c-typeprint.c (c_type_print_varspec_suffix): Now static. | |
6096 | ||
739e8682 AH |
6097 | 2018-06-01 Alan Hayward <alan.hayward@arm.com> |
6098 | ||
6099 | * aarch64-tdep.c (aarch64_sve_register_names): New const | |
6100 | var. | |
6101 | * arch/aarch64.h (enum aarch64_regnum): Add SVE entries. | |
6102 | (AARCH64_SVE_Z_REGS_NUM): New define. | |
6103 | (AARCH64_SVE_P_REGS_NUM): Likewise. | |
6104 | (AARCH64_SVE_NUM_REGS): Likewise. | |
6105 | ||
8a60efe7 UB |
6106 | 2018-05-31 Uros Bizjak <ubizjak@gmail.com> |
6107 | ||
6108 | * nat/linux-ptrace.h [__alpha__] | |
6109 | (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove | |
6110 | definitions. | |
6111 | ||
4b2dfa9d MR |
6112 | 2018-05-31 Maciej W. Rozycki <macro@mips.com> |
6113 | ||
6114 | * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to | |
6115 | the endianness selected. | |
6116 | * NEWS: Document `set endian auto' mode operation update. | |
6117 | ||
122394f1 AH |
6118 | 2018-05-31 Alan Hayward <alan.hayward@arm.com> |
6119 | ||
6120 | * Makefile.in: Add new header. | |
6121 | * gdb/arch/aarch64.h (sve_vg_from_vl): New macro. | |
6122 | (sve_vl_from_vg): Likewise. | |
6123 | (sve_vq_from_vl): Likewise. | |
6124 | (sve_vl_from_vq): Likewise. | |
6125 | (sve_vq_from_vg): Likewise. | |
6126 | (sve_vg_from_vq): Likewise. | |
6127 | * configure.nat: Add new c file. | |
6128 | * nat/aarch64-sve-linux-ptrace.c: New file. | |
6129 | * nat/aarch64-sve-linux-ptrace.h: New file. | |
6130 | ||
95228a0d AH |
6131 | 2018-05-31 Alan Hayward <alan.hayward@arm.com> |
6132 | ||
6133 | * aarch64-linux-nat.c (aarch64_linux_read_description): | |
6134 | Add parmeter zero. | |
6135 | * aarch64-linux-tdep.c (aarch64_linux_core_read_description): | |
6136 | Likewise. | |
6137 | * aarch64-tdep.c (tdesc_aarch64_list): Add. | |
6138 | (aarch64_read_description): Use VQ to index tdesc_aarch64_list. | |
6139 | (aarch64_gdbarch_init): Add parmeter zero. | |
6140 | * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter. | |
6141 | * arch/aarch64.c (aarch64_create_target_description): Check VQ. | |
6142 | * arch/aarch64.h (aarch64_create_target_description): Add VQ. | |
6143 | parmeter. | |
6144 | * doc/gdb.texinfo: Describe SVE feature | |
6145 | * features/aarch64-sve.c: New file. | |
6146 | ||
5969f0db OJ |
6147 | 2018-05-31 Omair Javaid <omair.javaid@linaro.org> |
6148 | ||
6149 | PR gdb/23210 | |
6150 | * gdbarch.sh (significant_addr_bit): Default to zero when | |
6151 | not set by target architecture. | |
6152 | * gdbarch.c: Re-generated. | |
6153 | * utils.c (address_significant): Update. | |
6154 | ||
61367c61 JB |
6155 | 2018-05-30 Joel Brobecker <brobecker@adacore.com> |
6156 | ||
6157 | * stack.c (func_command): Remove trailing newline in call to error. | |
6158 | ||
34a79281 SM |
6159 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6160 | ||
6161 | * regcache.h (regcache_raw_collect): Remove, update callers to | |
6162 | use regcache::raw_collect. | |
6163 | * regcache.c (regcache_raw_collect): Remove. | |
6164 | ||
73e1c03f SM |
6165 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6166 | ||
6167 | * regcache.h (regcache_raw_supply): Remove, update callers to | |
6168 | use detached_regcache::raw_supply. | |
6169 | * regcache.c (regcache_raw_supply): Remove. | |
6170 | ||
e4c4a59b SM |
6171 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6172 | ||
6173 | * regcache.h (regcache_cooked_write_part): Remove, update | |
6174 | callers to use regcache::cooked_write_part. | |
6175 | * regcache.c (regcache_cooked_write_part): Remove. | |
6176 | ||
73bb0000 SM |
6177 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6178 | ||
6179 | * regcache.h (regcache_cooked_read_part): Remove, update callers | |
6180 | to use readable_regcache::cooked_read_part. | |
6181 | * regcache.c (regcache_cooked_read_part): Remove. | |
6182 | ||
46a45e9d SM |
6183 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6184 | ||
6185 | * regcache.h (regcache_cooked_read_value): Remove, update | |
6186 | callers to use readable_regcache::cooked_read_value. | |
6187 | * regcache.c (regcache_cooked_read_value): Remove. | |
6188 | ||
b66f5587 SM |
6189 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6190 | ||
6191 | * regcache.h (regcache_cooked_write): Remove, update callers to | |
6192 | use regcache::cooked_write. | |
6193 | * regcache.c (regcache_cooked_write): Remove. | |
6194 | ||
6aa7d724 SM |
6195 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6196 | ||
6197 | * regcache.h (regcache_invalidate): Remove, update callers to | |
6198 | use detached_regcache::invalidate instead. | |
6199 | * regcache.c (regcache_invalidate): Remove. | |
6200 | ||
4f0420fd SM |
6201 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6202 | ||
6203 | * regcache.h (regcache_raw_write_part): Remove, update callers | |
6204 | to use regcache::raw_write_part instead. | |
6205 | * regcache.c (regcache_raw_write_part): Remove. | |
6206 | ||
502fe83e SM |
6207 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6208 | ||
6209 | * regcache.h (regcache_raw_read_part): Remove, update callers to | |
6210 | use readable_regcache::raw_read_part instead. | |
6211 | * regcache.c (regcache_raw_read_part): Remove. | |
6212 | ||
dca08e1f SM |
6213 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6214 | ||
6215 | * regcache.h (regcache_cooked_read): Remove, update callers to | |
6216 | use readable_regcache::cooked_read instead. | |
6217 | * regcache.c (regcache_cooked_read): Remove. | |
6218 | ||
10eaee5f SM |
6219 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6220 | ||
6221 | * regcache.h (regcache_raw_write): Remove, update callers to use | |
6222 | regcache::raw_write instead. | |
6223 | * regcache.c (regcache_raw_write): Remove. | |
6224 | ||
0b883586 SM |
6225 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6226 | ||
6227 | * regcache.h (regcache_raw_read): Remove, update callers to use | |
6228 | readable_regcache::raw_read instead. | |
6229 | * regcache.c (regcache_raw_read): Remove. | |
6230 | ||
0b47d985 SM |
6231 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6232 | ||
6233 | * regcache.h (regcache_raw_update): Remove, update callers to | |
6234 | use readable_regcache::raw_update instead. | |
6235 | * regcache.c (regcache_raw_update): Remove. | |
6236 | ||
0ec9f114 SM |
6237 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6238 | ||
6239 | * regcache.h (regcache_register_status): Remove, update callers | |
6240 | to use reg_buffer::get_register_status directly instead. | |
6241 | * regcache.c (regcache_register_status): Remove. | |
6242 | ||
222312d3 SM |
6243 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6244 | ||
6245 | * regcache.h (regcache_get_ptid): Remove, update all callers to | |
6246 | call regcache::ptid instead. | |
6247 | * regcache.c (regcache_get_ptid): Remove. | |
6248 | ||
fdbe37e3 SM |
6249 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
6250 | ||
6251 | * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o. | |
6252 | ||
f7c6f423 PA |
6253 | 2018-05-30 Pedro Alves <palves@redhat.com> |
6254 | ||
6255 | * common/common-exceptions.h (exception_rethrow): Use | |
6256 | ATTRIBUTE_NORETURN. | |
6257 | ||
52941706 SM |
6258 | 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca> |
6259 | ||
6260 | * breakpoint.c (print_solib_event, check_status_catch_solib): | |
6261 | Remove struct keyword in range-based for loops. | |
6262 | * dbxread.c (find_corresponding_bincl_psymtab): Likewise. | |
6263 | * dwarf2read.c (compute_delayed_physnames, rust_union_quirks); | |
6264 | Likewise. | |
6265 | * linespec.c (find_superclass_methods, search_minsyms_for_name): | |
6266 | Likewise. | |
6267 | * symfile.c (addr_info_make_relative): Likewise. | |
6268 | * thread.c (value_in_thread_stack_temporaries): Likewise. | |
6269 | ||
bf2977b5 WP |
6270 | 2018-06-12 Weimin Pan <weimin.pan@oracle.com> |
6271 | ||
6272 | PR gdb/16841 | |
6273 | * valops.c (value_struct_elt_for_reference): Call check_typedef on | |
6274 | aggregate type to get its real type before accessing it. | |
6275 | ||
64cc34d8 WP |
6276 | 2018-05-29 Weimin Pan <weimin.pan@oracle.com> |
6277 | ||
6278 | * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration. | |
6279 | * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition. | |
6280 | * coff-pe-read.c (add_pe_forwarded_sym): Replace | |
6281 | lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol. | |
6282 | * glibc-tdep.c (glibc_skip_solib_resolver): Likewise. | |
6283 | * jit.c (jit_breakpoint_re_set_internal): Likewise. | |
6284 | * printcmd.c (info_address_command): Likewise. | |
6285 | ||
e7ec8713 TT |
6286 | 2018-05-29 Tom Tromey <tom@tromey.com> |
6287 | ||
6288 | * windows-nat.c (handle_exception): Update fall-through comment. | |
6289 | ||
bcb430e4 TT |
6290 | 2018-05-29 Tom Tromey <tom@tromey.com> |
6291 | ||
6292 | * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC. | |
6293 | (struct program_space) <added_solibs>: Now a std::vector. | |
6294 | * breakpoint.c (print_solib_event): Update. | |
6295 | (check_status_catch_solib): Update. | |
6296 | * progspace.c (clear_program_space_solib_cache): Update. | |
6297 | * solib.c (update_solib_list): Update. | |
6298 | ||
894882e3 TT |
6299 | 2018-05-29 Tom Tromey <tom@tromey.com> |
6300 | ||
6301 | * python/py-type.c (typy_richcompare): Update. | |
6302 | * guile/scm-type.c (tyscm_equal_p_type_smob): Update. | |
6303 | * gdbtypes.h (types_deeply_equal): Return bool. | |
6304 | (types_equal): Likewise. | |
6305 | * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't | |
6306 | declare VEC. | |
6307 | (check_types_equal): Change worklist to std::vector. Return | |
6308 | bool. | |
6309 | (struct type_equality_entry): Add constructor. | |
6310 | (compare_maybe_null_strings): Return bool. | |
6311 | (check_types_worklist): Return bool. Change worklist to | |
6312 | std::vector. | |
6313 | (types_deeply_equal): Use std::vector. | |
6314 | (types_equal): Return bool. | |
6315 | (compare_maybe_null_strings): Simplify. | |
6316 | ||
10b2ded4 TT |
6317 | 2018-05-29 Tom Tromey <tom@tromey.com> |
6318 | ||
6319 | * record-btrace.c (tp_t): Remove typedef. Don't declare VEC. | |
6320 | ||
4f7deebe TT |
6321 | 2018-05-29 Tom Tromey <tom@tromey.com> |
6322 | ||
6323 | * objc-lang.h: Don't include cp-support.h. | |
6324 | * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't | |
6325 | declare VEC. | |
6326 | ||
b8283aea TT |
6327 | 2018-05-27 Tom Tromey <tom@tromey.com> |
6328 | ||
6329 | * Makefile.in (DEPFILES): Don't reference REMOTE_OBS. | |
6330 | ||
41a883c8 TT |
6331 | 2018-05-25 Tom Tromey <tom@tromey.com> |
6332 | ||
6333 | * value.c (value::location): Initialize. | |
6334 | ||
bf259e25 TT |
6335 | 2018-05-25 Tom Tromey <tom@tromey.com> |
6336 | ||
6337 | * dbxread.c (init_bincl_list): Remove. | |
6338 | (bincl_list): Now a std::vector. | |
6339 | (bincls_allocated, next_bincl): Remove. | |
6340 | (free_bincl_list, do_free_bincl_list_cleanup) | |
6341 | (make_cleanup_free_bincl_list): Remove. | |
6342 | (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore, | |
6343 | unique_xmalloc_ptr. | |
6344 | (find_corresponding_bincl_psymtab, read_dbx_symtab): Update. | |
6345 | (struct header_file_location): Add constructor. | |
6346 | (add_bincl_to_list): Remove. | |
6347 | ||
d525a99b TT |
6348 | 2018-05-25 Tom Tromey <tom@tromey.com> |
6349 | ||
6350 | * tui/tui.c (tui_enable): Update. | |
6351 | * mi/mi-interp.c (mi_interp::init): Update. | |
6352 | * interps.h (class interp) <name>: New method. | |
6353 | <m_name>: Rename from name. | |
6354 | (~scoped_restore_interp): Update. | |
6355 | * interps.c (interp::interp): Update. | |
6356 | (interp_add, interp_set, interp_lookup_existing) | |
6357 | (current_interp_named_p): Update. | |
6358 | ||
da505cff TT |
6359 | 2018-05-25 Tom Tromey <tom@tromey.com> |
6360 | ||
6361 | * interps.c (interp_name): Remove. | |
6362 | * mi/mi-interp.c (mi_interp::init): Update. | |
6363 | * interps.h (interp_name): Remove. | |
6364 | (~scoped_restore_interp): Update. | |
6365 | * tui/tui.c (tui_enable): Update. | |
6366 | ||
29f94340 TT |
6367 | 2018-05-25 Tom Tromey <tom@tromey.com> |
6368 | ||
6369 | * utils.c (fputs_maybe_filtered): Update. | |
6370 | * linespec.c (decode_line_full): Update. | |
6371 | * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified) | |
6372 | (mi_print_breakpoint_for_event, mi_solib_loaded) | |
6373 | (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed) | |
6374 | (mi_user_selected_context_changed): Update. | |
6375 | * mi/mi-main.c (mi_execute_command): Update. | |
6376 | * cli/cli-script.c (execute_control_command): Update. | |
6377 | * python/python.c (execute_gdb_command): Update. | |
6378 | * solib.c (info_sharedlibrary_command): Update. | |
6379 | * interps.c (interp_ui_out): Remove. | |
6380 | * interps.h (interp_ui_out): Remove. | |
6381 | ||
716b8bc5 TT |
6382 | 2018-05-25 Tom Tromey <tom@tromey.com> |
6383 | ||
6384 | * tui/tui-interp.c (as_tui_interp): Use dynamic_cast. | |
6385 | * mi/mi-interp.c (as_mi_interp): Use dynamic_cast. | |
6386 | * cli/cli-interp.c (as_cli_interp): Use dynamic_cast. | |
6387 | ||
753ff9bd TT |
6388 | 2018-05-25 Tom Tromey <tom@tromey.com> |
6389 | ||
6390 | * cli/cli-interp.c (safe_execute_command): Use scoped_restore. | |
6391 | * interps.c (interp_exec): Use scoped_restore. | |
6392 | ||
5ca3b260 TT |
6393 | 2018-05-25 Tom Tromey <tom@tromey.com> |
6394 | ||
6395 | * remote.c (remote_target::remote_file_get): Use | |
6396 | gdb::byte_vector. | |
6397 | (remote_target::remote_file_put): Likewise. | |
6398 | ||
3173aa2f TT |
6399 | 2018-05-25 Tom Tromey <tom@tromey.com> |
6400 | ||
6401 | * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now | |
6402 | a std::string. | |
6403 | (get_pe_section_index, add_pe_exported_sym): Update. | |
6404 | (read_pe_exported_syms): Use gdb::def_vector. | |
6405 | ||
09a5e1b5 TT |
6406 | 2018-05-25 Tom Tromey <tom@tromey.com> |
6407 | ||
6408 | * frame.c (remove_prev_frame): Remove. | |
6409 | (get_prev_frame_if_no_cycle): Use TRY/CATCH. | |
6410 | ||
d8dab6c3 MR |
6411 | 2018-05-25 Maciej W. Rozycki <macro@mips.com> |
6412 | ||
6413 | * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset): | |
6414 | Remove prototypes. | |
6415 | * mips-linux-nat.c (supply_fpregset): Always call | |
6416 | `mips64_supply_fpregset' rather than `mips_supply_fpregset'. | |
6417 | (fill_fpregset): Always call `mips64_fill_fpregset' rather than | |
6418 | `mips_fill_fpregset'. | |
6419 | * mips-linux-tdep.c (mips_supply_fpregset) | |
6420 | (mips_supply_fpregset_wrapper, mips_fill_fpregset) | |
6421 | (mips_fill_fpregset_wrapper): Remove functions. | |
6422 | (mips64_supply_fpregset, mips64_fill_fpregset): Update comments. | |
6423 | (mips_linux_fpregset): Remove variable. | |
6424 | (mips_linux_iterate_over_regset_sections): Use | |
6425 | `mips64_linux_fpregset' in place of `mips_linux_fpregset'. | |
6426 | (mips_linux_o32_sigframe_init): Remove comment. | |
6427 | ||
3c69da40 PA |
6428 | 2018-05-25 Pedro Alves <palves@redhat.com> |
6429 | ||
6430 | * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS) | |
6431 | (struct readahead_cache, struct packet_reg, struct | |
6432 | remote_arch_state, class remote_state): Move higher up in the | |
6433 | file. | |
6434 | (remote_target::m_remote_state): Now an object instead of a pointer. | |
6435 | (remote_target::get_remote_state): Adjust. | |
6436 | ||
39f0c204 AB |
6437 | 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com> |
6438 | ||
6439 | * stack.c (select_and_print_frame): Delete. | |
6440 | (struct function_bounds): Move struct within function. | |
6441 | (func_command): Most content moved into new function | |
6442 | find_frame_for_function, use new function, print result, add | |
6443 | function comment. | |
6444 | (find_frame_for_function): New function, now returns a result. | |
6445 | ||
d392224a PW |
6446 | 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6447 | ||
6448 | * stack.c (iterate_over_block_arg_vars): Fix comment. | |
6449 | (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout. | |
6450 | ||
45f25d6c AB |
6451 | 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com> |
6452 | ||
6453 | PR gdb/23203 | |
6454 | * frame.c | |
6455 | (scoped_restore_selected_frame::scoped_restore_selected_frame): | |
6456 | Define. | |
6457 | (scoped_restore_selected_frame::~scoped_restore_selected_frame): | |
6458 | Define. | |
6459 | * frame.h (class scoped_restore_selected_frame): New class. | |
6460 | * stack.c (print_frame_local_vars): Remove catching and rethrowing | |
6461 | of any exception, use scoped_restore_selected_frame to restore the | |
6462 | frame instead. | |
6463 | ||
da05d921 PA |
6464 | 2018-05-24 Pedro Alves <palves@redhat.com> |
6465 | ||
6466 | * darwin-nat.h (darwin_nat_target::create_inferior): Mark with | |
6467 | override. | |
6468 | ||
a8be540e TT |
6469 | 2018-05-23 Tom Tromey <tom@tromey.com> |
6470 | ||
6471 | * complaints.c (struct complaints): Remove. | |
6472 | (symfile_complaint_book): Remove. | |
6473 | (series): New global. | |
6474 | (complaint_internal): Update. | |
6475 | (clear_complaints): Update. | |
6476 | ||
ff1cf532 TT |
6477 | 2018-05-23 Tom Tromey <tom@tromey.com> |
6478 | ||
6479 | * complaints.c (counters): New global. | |
6480 | (struct complain): Remove. | |
6481 | (struct complaints) <root>: Remove. | |
6482 | (complaint_sentinel): Remove. | |
6483 | (symfile_complaint_book): Update. | |
6484 | (find_complaint) Remove. | |
6485 | (complaint_internal, clear_complaints): Update. | |
6486 | ||
7ff88174 TT |
6487 | 2018-05-23 Tom Tromey <tom@tromey.com> |
6488 | ||
6489 | * complaints.c (struct complain) <file, line>: Remove. | |
6490 | (find_complaint): Remove file, line parameters. | |
6491 | (complaint_internal): Update. | |
6492 | ||
de54e1a5 TT |
6493 | 2018-05-23 Tom Tromey <tom@tromey.com> |
6494 | ||
6495 | * complaints.c (vcomplaint): Remove. | |
6496 | (complaint_internal) Merge in contents of vcomplaint. | |
6497 | ||
2ac237e5 TT |
6498 | 2018-05-23 Tom Tromey <tom@tromey.com> |
6499 | ||
6500 | * complaints.c (struct complaints) <explanation>: Remove. | |
6501 | (symfile_explanations): Remove. | |
6502 | (symfile_complaint_book): Update. | |
6503 | (vcomplaint): Update. | |
6504 | (struct explanation): Remove. | |
6505 | ||
b98664d3 TT |
6506 | 2018-05-23 Tom Tromey <tom@tromey.com> |
6507 | ||
6508 | * complaints.c (symfile_complaints): Remove. | |
6509 | (complaint_internal): Remove "complaints" parameter. | |
6510 | (clear_complaints, vcomplaint): Remove "c" parameter. | |
6511 | (get_complaints): Remove. | |
6512 | * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint) | |
6513 | (dwarf2_debug_line_missing_file_complaint) | |
6514 | (dwarf2_debug_line_missing_end_sequence_complaint) | |
6515 | (dwarf2_complex_location_expr_complaint) | |
6516 | (dwarf2_const_value_length_mismatch_complaint) | |
6517 | (dwarf2_section_buffer_overflow_complaint) | |
6518 | (dwarf2_macro_malformed_definition_complaint) | |
6519 | (dwarf2_invalid_attrib_class_complaint) | |
6520 | (create_addrmap_from_index, dw2_symtab_iter_next) | |
6521 | (dw2_expand_marked_cus) | |
6522 | (dw2_debug_names_iterator::find_vec_in_debug_names) | |
6523 | (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next) | |
6524 | (create_debug_type_hash_table, init_cutu_and_read_dies) | |
6525 | (partial_die_parent_scope, add_partial_enumeration) | |
6526 | (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die) | |
6527 | (dwarf2_compute_name, dwarf2_physname, read_namespace_alias) | |
6528 | (read_import_statement, read_file_scope, create_dwo_cu_reader) | |
6529 | (create_cus_hash_table, create_dwp_hash_table) | |
6530 | (inherit_abstract_dies, read_func_scope, read_call_site_scope) | |
6531 | (dwarf2_rnglists_process, dwarf2_ranges_process) | |
6532 | (dwarf2_add_type_defn, dwarf2_attach_fields_to_type) | |
6533 | (dwarf2_add_member_fn, get_alignment, maybe_set_alignment) | |
6534 | (handle_struct_member_die, process_structure_scope) | |
6535 | (read_array_type, read_common_block, read_module_type) | |
6536 | (read_tag_pointer_type, read_typedef, read_base_type) | |
6537 | (read_subrange_type, load_partial_dies, partial_die_info::read) | |
6538 | (partial_die_info::read, partial_die_info::read) | |
6539 | (partial_die_info::read, read_checked_initial_length_and_offset) | |
6540 | (dwarf2_string_attr, read_formatted_entries) | |
6541 | (dwarf_decode_line_header) | |
6542 | (lnp_state_machine::check_line_address, dwarf_decode_lines_1) | |
6543 | (new_symbol, dwarf2_const_value_attr, lookup_die_type) | |
6544 | (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset) | |
6545 | (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) | |
6546 | (get_signatured_type, get_DW_AT_signature_type) | |
6547 | (decode_locdesc, file_file_name, consume_improper_spaces) | |
6548 | (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header) | |
6549 | (dwarf_decode_macro_bytes, dwarf_decode_macros) | |
6550 | (dwarf2_symbol_mark_computed, set_die_type) | |
6551 | (read_attribute_value): Update. | |
6552 | * stap-probe.c (handle_stap_probe, get_stap_base_address): | |
6553 | Update. | |
6554 | * dbxread.c (unknown_symtype_complaint) | |
6555 | (lbrac_mismatch_complaint, repeated_header_complaint) | |
6556 | (set_namestring, function_outside_compilation_unit_complaint) | |
6557 | (read_dbx_symtab, process_one_symbol): Update. | |
6558 | * gdbtypes.c (stub_noname_complaint): Update. | |
6559 | * windows-nat.c (handle_unload_dll): Update. | |
6560 | * coffread.c (coff_symtab_read, enter_linenos, decode_type) | |
6561 | (decode_base_type): Update. | |
6562 | * xcoffread.c (bf_notfound_complaint, ef_complaint) | |
6563 | (eb_complaint, record_include_begin, record_include_end) | |
6564 | (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab) | |
6565 | (process_xcoff_symbol, read_symbol) | |
6566 | (function_outside_compilation_unit_complaint) | |
6567 | (scan_xcoff_symtab): Update. | |
6568 | * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update. | |
6569 | * buildsym.c (finish_block_internal, make_blockvector) | |
6570 | (end_symtab_get_static_block, augment_type_symtab): Update. | |
6571 | * dtrace-probe.c (dtrace_process_dof) | |
6572 | (dtrace_static_probe_ops::get_probes): Update. | |
6573 | * complaints.h (struct complaint): Don't declare. | |
6574 | (symfile_complaints): Remove. | |
6575 | (complaint_internal): Remove "complaints" parameter. | |
6576 | (complaint): Likewise. | |
6577 | (clear_complaints): Likewise. | |
6578 | * symfile.c (syms_from_objfile_1, finish_new_objfile) | |
6579 | (reread_symbols): Update. | |
6580 | * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program) | |
6581 | (dwarf2_frame_cache, decode_frame_entry): Update. | |
6582 | * dwarf2loc.c (dwarf_reg_to_regnum): Update. | |
6583 | * objc-lang.c (lookup_objc_class, lookup_child_selector) | |
6584 | (info_selectors_command): Update. | |
6585 | * macrotab.c (macro_include, check_for_redefinition) | |
6586 | (macro_undef): Update. | |
6587 | * objfiles.c (filter_overlapping_sections): Update. | |
6588 | * stabsread.c (invalid_cpp_abbrev_complaint) | |
6589 | (reg_value_complaint, stabs_general_complaint, dbx_lookup_type) | |
6590 | (define_symbol, error_type, read_type, rs6000_builtin_type) | |
6591 | (stabs_method_name_from_physname, read_member_functions) | |
6592 | (read_cpp_abbrev, read_baseclasses, read_tilde_fields) | |
6593 | (attach_fields_to_type, complain_about_struct_wipeout) | |
6594 | (read_range_type, read_args, common_block_start) | |
6595 | (common_block_end, cleanup_undefined_types_1, scan_file_globals): | |
6596 | Update. | |
6597 | * mdebugread.c (index_complaint, unknown_ext_complaint) | |
6598 | (basic_type_complaint, bad_tag_guess_complaint) | |
6599 | (bad_rfd_entry_complaint, unexpected_type_code_complaint) | |
6600 | (reg_value_complaint, parse_symbol, parse_type, upgrade_type) | |
6601 | (parse_procedure, parse_lines) | |
6602 | (function_outside_compilation_unit_complaint) | |
6603 | (parse_partial_symbols, psymtab_to_symtab_1, cross_ref) | |
6604 | (bad_tag_guess_complaint, reg_value_complaint): Update. | |
6605 | * cp-support.c (demangled_name_complaint): Update. | |
6606 | * macroscope.c (sal_macro_scope): Update. | |
6607 | * dwarf-index-write.c (class debug_names): Update. | |
6608 | ||
4e9668d0 TT |
6609 | 2018-05-23 Tom Tromey <tom@tromey.com> |
6610 | ||
6611 | * complaints.c (clear_complaints): Remove "noisy" parameter. | |
6612 | * complaints.h (clear_complaints): Update. | |
6613 | * symfile.c (syms_from_objfile_1, finish_new_objfile) | |
6614 | (reread_symbols): Update. | |
6615 | ||
43ba33c7 TT |
6616 | 2018-05-23 Tom Tromey <tom@tromey.com> |
6617 | ||
6618 | * complaints.c (enum complaint_series): Remove FIRST_MESSAGE, | |
6619 | SUBSEQUENT_MESSAGE. | |
6620 | (vcomplaint, clear_complaints): Update. | |
6621 | (symfile_explanations): Remove some messages. | |
6622 | ||
2b9496b2 TT |
6623 | 2018-05-23 Tom Tromey <tom@tromey.com> |
6624 | ||
6625 | * complaints.c (internal_complaint): Remove. | |
6626 | * complaints.h (internal_complaint): Remove. | |
6627 | ||
35f1fea3 MR |
6628 | 2018-05-22 Maciej W. Rozycki <macro@mips.com> |
6629 | ||
6630 | * i387-tdep.c (i387_collect_xsave): Make `i' unsigned. | |
6631 | ||
6b8edb51 PA |
6632 | 2018-05-22 Pedro Alves <palves@redhat.com> |
6633 | ||
6634 | * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror) | |
6635 | (remote_fileio_badfd, remote_fileio_return_errno) | |
6636 | (remote_fileio_return_success, remote_fileio_func_open) | |
6637 | (remote_fileio_func_open, remote_fileio_func_close) | |
6638 | (remote_fileio_func_read, remote_fileio_func_write) | |
6639 | (remote_fileio_func_lseek, remote_fileio_func_rename) | |
6640 | (remote_fileio_func_unlink, remote_fileio_func_stat) | |
6641 | (remote_fileio_func_fstat, remote_fileio_func_gettimeofday) | |
6642 | (remote_fileio_func_isatty, remote_fileio_func_system): Add | |
6643 | remote_target parameter. | |
6644 | (remote_fio_func_map) <func>: Add remote_target parameter. | |
6645 | (do_remote_fileio_request, remote_fileio_request): | |
6646 | * remote-fileio.h (remote_fileio_request): | |
6647 | * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add | |
6648 | remote_target parameter. | |
6649 | (remote_notif_process, handle_notification): Adjust to pass down | |
6650 | the remote. | |
6651 | (remote_notif_state_allocate): Add remote_target parameter. Save | |
6652 | it. | |
6653 | * remote-notif.h (struct remote_target): Forward declare. | |
6654 | (struct notif_client) <parse, ack, can_get_pending_events>: Add | |
6655 | remote_target parameter. | |
6656 | (struct remote_notif_state) <remote>: New field. | |
6657 | (remote_notif_ack, remote_notif_parse): Add remote_target | |
6658 | parameter. | |
6659 | (remote_notif_state_allocate, remote_notif_state_allocate): Add | |
6660 | remote_target parameter. | |
6661 | * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info) | |
6662 | (threads_listing_context, rmt_thread_action, protocol_feature) | |
6663 | (packet_reg, stop_reply, stop_reply_p, enum packet_support) | |
6664 | (packet_result, struct threads_listing_context, remote_state): | |
6665 | Move definitions and declarations higher up. | |
6666 | (remote_target) <~remote_target>: Declare. | |
6667 | (remote_download_command_source, remote_file_put, remote_file_get) | |
6668 | (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite) | |
6669 | (remote_hostio_pread_vFile, remote_hostio_send_command) | |
6670 | (remote_hostio_set_filesystem, remote_hostio_open) | |
6671 | (remote_hostio_close, remote_hostio_unlink, remote_state) | |
6672 | (get_remote_state, get_remote_packet_size, get_memory_packet_size) | |
6673 | (get_memory_write_packet_size, get_memory_read_packet_size) | |
6674 | (append_pending_thread_resumptions, remote_detach_1) | |
6675 | (append_resumption, remote_resume_with_vcont) | |
6676 | (add_current_inferior_and_thread, wait_ns, wait_as) | |
6677 | (process_stop_reply, remote_notice_new_inferior) | |
6678 | (process_initial_stop_replies, remote_add_thread) | |
6679 | (btrace_sync_conf, remote_btrace_maybe_reopen) | |
6680 | (remove_new_fork_children, kill_new_fork_children) | |
6681 | (discard_pending_stop_replies, stop_reply_queue_length) | |
6682 | (check_pending_events_prevent_wildcard_vcont) | |
6683 | (discard_pending_stop_replies_in_queue, stop_reply) | |
6684 | (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply) | |
6685 | (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns) | |
6686 | (remote_interrupt_as, remote_interrupt_ns) | |
6687 | (remote_get_noisy_reply, remote_query_attached) | |
6688 | (remote_add_inferior, remote_current_thread, get_current_thread) | |
6689 | (set_thread, set_general_thread, set_continue_thread) | |
6690 | (set_general_process, write_ptid) | |
6691 | (remote_unpack_thread_info_response, remote_get_threadinfo) | |
6692 | (parse_threadlist_response, remote_get_threadlist) | |
6693 | (remote_threadlist_iterator, remote_get_threads_with_ql) | |
6694 | (remote_get_threads_with_qxfer) | |
6695 | (remote_get_threads_with_qthreadinfo, extended_remote_restart) | |
6696 | (get_offsets, remote_check_symbols, remote_supported_packet) | |
6697 | (remote_query_supported, remote_packet_size) | |
6698 | (remote_serial_quit_handler, remote_detach_pid) | |
6699 | (remote_vcont_probe, remote_resume_with_hc) | |
6700 | (send_interrupt_sequence, interrupt_query) | |
6701 | (remote_notif_get_pending_events, fetch_register_using_p) | |
6702 | (send_g_packet, process_g_packet, fetch_registers_using_g) | |
6703 | (store_register_using_P, store_registers_using_G) | |
6704 | (set_remote_traceframe, check_binary_download) | |
6705 | (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1) | |
6706 | (remote_xfer_live_readonly_partial, remote_read_bytes) | |
6707 | (remote_send_printf, remote_flash_write, readchar) | |
6708 | (remote_serial_write, putpkt, putpkt_binary, skip_frame) | |
6709 | (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane) | |
6710 | (getpkt_or_notif_sane, remote_vkill, remote_kill_k) | |
6711 | (extended_remote_disable_randomization, extended_remote_run) | |
6712 | (send_environment_packet, extended_remote_environment_support) | |
6713 | (extended_remote_set_inferior_cwd, remote_write_qxfer) | |
6714 | (remote_read_qxfer, push_stop_reply, vcont_r_supported) | |
6715 | (packet_command): Now methods of ... | |
6716 | (remote_target): ... this class. | |
6717 | (m_remote_state) <remote_target>: New field. | |
6718 | (struct remote_state) <stop_reply_queue, | |
6719 | remote_async_inferior_event_token, wait_forever_enabled_p>: New | |
6720 | fields. | |
6721 | (remote_state::remote_state): Allocate stop_reply_queue. | |
6722 | (remote_state): Delete global. | |
6723 | (get_remote_state_raw): Delete. | |
6724 | (remote_target::get_remote_state): Allocate m_remote_state on | |
6725 | demand. | |
6726 | (get_current_remote_target): New. | |
6727 | (remote_ops, extended_remote_ops): Delete. | |
6728 | (wait_forever_enabled_p, remote_async_inferior_event_token): | |
6729 | Delete, moved to struct remote_state. | |
6730 | (remote_target::close): Delete self. Destruction bits split to | |
6731 | ... | |
6732 | (remote_target::~remote_target): ... this. | |
6733 | (show_memory_packet_size): Adjust to use | |
6734 | get_current_remote_target. | |
6735 | (struct protocol_feature) <func>: Add remote_target parameter. | |
6736 | All callers adjusted. | |
6737 | (curr_quit_handler_target): New. | |
6738 | (remote_serial_quit_handler): Reimplement. | |
6739 | (remote_target::open_1): Adjust to use get_current_remote_target. | |
6740 | Heap-allocate remote_target/extended_remote_target instances. | |
6741 | (vcont_builder::vcont_builder): Add remote_target parameter, and | |
6742 | save it in m_remote. All callers adjusted. | |
6743 | (vcont_builder::m_remote): New field. | |
6744 | (vcont_builder::restart, vcont_builder::flush) | |
6745 | (vcont_builder::push_action): Use it. | |
6746 | (remote_target::commit_resume): Use it. | |
6747 | (struct queue_iter_param) <remote>: New field. | |
6748 | (remote_target::remove_new_fork_children): Fill in 'remote' field. | |
6749 | (check_pending_event_prevents_wildcard_vcont_callback_data): New. | |
6750 | (check_pending_event_prevents_wildcard_vcont_callback) | |
6751 | (remote_target::check_pending_events_prevent_wildcard_vcont) | |
6752 | (remote_target::discard_pending_stop_replies) | |
6753 | (remote_target::discard_pending_stop_replies_in_queue) | |
6754 | (remote_target::remote_notif_remove_queued_reply): Fill in | |
6755 | 'remote' field. | |
6756 | (remote_notif_get_pending_events): New. | |
6757 | (remote_target::readchar, remote_target::remote_serial_write): | |
6758 | Save/restore curr_quit_handler_target. | |
6759 | (putpkt): New. | |
6760 | (kill_new_fork_children): Fill in 'remote' field. | |
6761 | (packet_command): Use get_current_remote_target, defer to | |
6762 | remote_target method of same name. | |
6763 | (scoped_remote_fd::scoped_remote_fd): Add 'remote_target' | |
6764 | parameter, and save it in m_remote. All callers adjusted. | |
6765 | (scoped_remote_fd::release): Use m_remote. | |
6766 | (scoped_remote_fd::m_remote): New field. | |
6767 | (remote_file_put, remote_file_get, remote_file_delete): Use | |
6768 | get_current_remote_target, defer to remote_target method of same | |
6769 | name. | |
6770 | (remote_btrace_reset): Add remote_state paremeter. Update all | |
6771 | callers. | |
6772 | (remote_async_inferior_event_handler). Pass down 'data'. | |
6773 | (remote_new_objfile): Use get_current_remote_target. | |
6774 | (remote_target::vcont_r_supported): New. | |
6775 | (set_range_stepping): Use get_current_remote_target and | |
6776 | remote_target::vcont_r_supported. | |
6777 | (_initialize_remote): Don't allocate 'remote_state' and | |
6778 | 'stop_reply_queue' globals. | |
6779 | * remote.h (struct remote_target): Forward declare. | |
6780 | (getpkt, putpkt, remote_notif_get_pending_events): Add | |
6781 | 'remote_target' parameter. | |
6782 | ||
f5db4863 PA |
6783 | 2018-05-22 Pedro Alves <palves@redhat.com> |
6784 | ||
6785 | * remote.c (vcont_builder): Now a class. Make all data members | |
6786 | private. | |
6787 | (vcont_builder) <vcont_builder, restart, flush, push_action>: | |
6788 | Declare methods. | |
6789 | (vcont_builder_restart): Rename to ... | |
6790 | (vcont_builder::restart): ... this. | |
6791 | (vcont_builder_flush): Rename to ... | |
6792 | (vcont_builder::flush): ... this. | |
6793 | (vcont_builder_push_action): Rename to ... | |
6794 | (vcont_builder::push_action): ... this. | |
6795 | (remote_target::commit_resume): Adjust. | |
6796 | ||
cc0be08f PA |
6797 | 2018-05-22 Pedro Alves <palves@redhat.com> |
6798 | ||
6799 | * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ... | |
6800 | (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this. | |
6801 | (get_fixed_memory_packet_size): New. | |
6802 | (get_memory_packet_size): Use it. | |
6803 | (set_memory_packet_size): Don't override the config size with | |
6804 | DEFAULT_MAX_MEMORY_PACKET_SIZE. | |
6805 | (show_memory_packet_size): Use get_fixed_memory_packet_size. | |
6806 | Don't refer to get_memory_packet_size if not connected to a remote | |
6807 | target. Show "(default)" if configured size is 0. | |
6808 | ||
9607784a PA |
6809 | 2018-05-22 Pedro Alves <palves@redhat.com> |
6810 | ||
6811 | * remote.c (remote_target::mourn_inferior): Move | |
6812 | discard_pending_stop_replies call here from ... | |
6813 | (_initialize_remote): ... here. | |
6814 | ||
0e9a6b2f PA |
6815 | 2018-05-22 Pedro Alves <palves@redhat.com> |
6816 | ||
6817 | * remote.c (compare_section_command): Remove set_general_process | |
6818 | call. | |
6819 | ||
43c3a0e4 PA |
6820 | 2018-05-22 Pedro Alves <palves@redhat.com> |
6821 | ||
6822 | * remote.c (struct packet_reg, struct remote_arch_state): | |
6823 | Move higher up in the file. | |
6824 | (remote_state) <m_arch_states>: Store remote_arch_state values | |
6825 | instead of remote_arch_state pointers. | |
6826 | (remote_state::get_remote_arch_state): Adjust. | |
6827 | ||
9d6eea31 PA |
6828 | 2018-05-22 Pedro Alves <palves@redhat.com> |
6829 | ||
6830 | * remote.c: Include <unordered_map>. | |
6831 | (remote_state): Now a class. | |
6832 | (remote_state) <get_remote_arch_state>: Declare method. | |
6833 | <get_remote_arch_state>: New field. | |
6834 | (remote_arch_state) <remote_arch_state>: Declare ctor. | |
6835 | <regs>: Now a unique_ptr. | |
6836 | (remote_gdbarch_data_handle): Delete. | |
6837 | (get_remote_arch_state): Delete. | |
6838 | (remote_state::get_remote_arch_state): New. | |
6839 | (get_remote_state): Adjust to call remote_state's | |
6840 | get_remote_arch_state method. | |
6841 | (init_remote_state): Delete, bits factored out to ... | |
6842 | (remote_arch_state::remote_arch_state): ... this new method. | |
6843 | (get_remote_packet_size, get_memory_packet_size) | |
6844 | (process_g_packet, remote_target::fetch_registers) | |
6845 | (remote_target::prepare_to_store, store_registers_using_G) | |
6846 | (remote_target::store_registers, remote_target::get_trace_status): | |
6847 | Adjust to call remote_state's method. | |
6848 | (_initialize_remote): Remove reference to | |
6849 | remote_gdbarch_data_handle. | |
6850 | ||
dd194f6b PA |
6851 | 2018-05-22 Pedro Alves <palves@redhat.com> |
6852 | ||
6853 | * remote.c (struct readahead_cache) <invalidate, invalidate_fd, | |
6854 | pread>: New method declarations. | |
6855 | (remote_target::open_1): Adjust. | |
6856 | (readahead_cache_invalidate): Rename to ... | |
6857 | (readahead_cache::invalidate): ... this, and adjust to be a class | |
6858 | method. | |
6859 | (readahead_cache_invalidate_fd): Rename to ... | |
6860 | (readahead_cache::invalidate_fd): ... this, and adjust to be a | |
6861 | class method. | |
6862 | (remote_hostio_pwrite): Adjust. | |
6863 | (remote_hostio_pread_from_cache): Rename to ... | |
6864 | (readahead_cache::pread): ... this, and adjust to be a class | |
6865 | method. | |
6866 | (remote_hostio_close): Adjust. | |
6867 | ||
440b7aec PA |
6868 | 2018-05-22 Pedro Alves <palves@redhat.com> |
6869 | ||
6870 | * remote.c (remote_hostio_close_cleanup): Delete. | |
6871 | (class scoped_remote_fd): New. | |
6872 | (remote_file_put, remote_file_get): Use it. | |
6873 | ||
de44f5a7 PA |
6874 | 2018-05-22 Pedro Alves <palves@redhat.com> |
6875 | ||
6876 | (struct vCont_action_support): Use bool and initialize all fields. | |
6877 | (struct readahead_cache): Initialize all fields. | |
6878 | (remote_state): Use bool and initialize all fields. | |
6879 | (remote_state::remote_state, remote_state::~remote_state): New. | |
6880 | (new_remote_state): Delete. | |
6881 | (_initialize_remote): Use new to allocate remote_state. | |
6882 | ||
b1b60145 PA |
6883 | 2018-05-22 Pedro Alves <palves@redhat.com> |
6884 | 張俊芝 <zjz@zjz.name> | |
6885 | ||
6886 | PR gdb/22973 | |
6887 | * c-exp.y: Include "c-support.h". | |
6888 | (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead | |
6889 | of tolower. Use c_ident_is_alpha to scan names. | |
6890 | * c-lang.c: Include "c-support.h". | |
6891 | (convert_ucn, convert_octal, convert_hex, convert_escape): Use | |
6892 | ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit. | |
6893 | * c-support.h: New file, with bits factored out from ... | |
6894 | * cp-name-parser.y: ... this file. | |
6895 | Include "c-support.h". | |
6896 | (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to | |
6897 | c-support.h and renamed. | |
6898 | (symbol_end, yylex): Adjust. | |
6899 | ||
0ec848ad PFC |
6900 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
6901 | ||
6902 | * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the | |
6903 | parameter type to CORE_ADDR. | |
6904 | * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the | |
6905 | parameter type in declaration to CORE_ADDR. | |
6906 | * ppc-linux-tdep.c (ppc_linux_core_read_description): Call | |
6907 | target_auxv_search to get AT_HWCAP and use the result to get the | |
6908 | target description. | |
6909 | * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type | |
6910 | to CORE_ADDR. Remove the cast of the return value to unsigned | |
6911 | long. Fix error predicate of target_auxv_search. | |
6912 | (ppc_linux_nat_target::read_description): Change the type of the | |
6913 | hwcap variable to CORE_ADDR. | |
6914 | ||
0fb2aaa1 PFC |
6915 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
6916 | ||
6917 | * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only | |
6918 | if the size of fpscr is larger than 32 bits. | |
6919 | ||
2c3305f6 PFC |
6920 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
6921 | ||
6922 | * ppc-linux-tdep.c (ppc_linux_vsxregset): New function. | |
6923 | (ppc32_linux_vsxregmap): New global. | |
6924 | (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap, | |
6925 | regcache_supply_regset, and regcache_collect_regset. | |
6926 | * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare. | |
6927 | * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove. | |
6928 | (fetch_vsx_register, store_vsx_register): Remove. | |
6929 | (fetch_vsx_registers): Add regno parameter. Get regset using | |
6930 | ppc_linux_vsxregset. Use regset to supply registers. | |
6931 | (store_vsx_registers): Add regno parameter. Get regset using | |
6932 | ppc_linux_vsxregset. Use regset to collect registers. | |
6933 | (fetch_register): Call fetch_vsx_registers instead of | |
6934 | fetch_vsx_register. | |
6935 | (store_register): Call store_vsx_registers instead of | |
6936 | store_vsx_register. | |
6937 | (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the | |
6938 | new regno parameter. | |
6939 | (store_ppc_registers): Call store_vsx_registers with -1 for the | |
6940 | new regno parameter. | |
6941 | * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget) | |
6942 | (ppc_collect_vsxregset): Remove. | |
6943 | ||
1d75a658 PFC |
6944 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
6945 | ||
6946 | * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register | |
6947 | offset fields. | |
6948 | * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers | |
6949 | for vector register offset fields. | |
6950 | (ppc64_fbsd_reg_offsets): Likewise. | |
6951 | * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment | |
6952 | to vector register offset fields. | |
6953 | * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment | |
6954 | to vector register offset fields. | |
6955 | * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to | |
6956 | vector register offset fields. | |
6957 | * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove | |
6958 | initializers for vector register offset fields. | |
6959 | (rs6000_aix64_reg_offsets): Likewise. | |
6960 | * rs6000-tdep.c (ppc_vrreg_offset): Remove. | |
6961 | (ppc_supply_vrregset): Remove. | |
6962 | (ppc_collect_vrregset): Remove. | |
6963 | * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function. | |
6964 | (ppc_linux_vrregset) : New function. | |
6965 | (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap) | |
6966 | (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals. | |
6967 | (ppc32_linux_vrregset): Remove. | |
6968 | (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset | |
6969 | and use result instead of ppc32_linux_vrregset. | |
6970 | (ppc32_linux_reg_offsets): Remove initializers for vector register | |
6971 | offset fields. | |
6972 | (ppc64_linux_reg_offsets): Likewise. | |
6973 | * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration. | |
6974 | * ppc-linux-nat.c: Include regset.h. | |
6975 | (gdb_vrregset_t): Adjust comment to account for little-endian | |
6976 | mode. | |
6977 | (supply_vrregset, fill_vrregset): Remove. | |
6978 | (fetch_altivec_register, store_altivec_register): Remove. | |
6979 | (fetch_altivec_registers): Add regno parameter. Get regset using | |
6980 | ppc_linux_vrregset. Use regset to supply registers. | |
6981 | (store_altivec_registers): Add regno parameter. Get regset using | |
6982 | ppc_linux_vrregset. Use regset to collect registers. | |
6983 | (fetch_register): Call fetch_altivec_registers instead of | |
6984 | fetch_altivec_register. | |
6985 | (store_register): Call store_altivec_registers instead of | |
6986 | store_altivec_register. | |
6987 | (fetch_ppc_registers): Call fetch_altivec_registers with -1 for | |
6988 | the new regno parameter. | |
6989 | (store_ppc_registers): Call store_altivec_registers with -1 for | |
6990 | the new regno parameter. | |
6991 | ||
d078308a PFC |
6992 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
6993 | ||
6994 | * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET) | |
6995 | (PPC_LINUX_SIZEOF_VSXREGSET): Define. | |
6996 | * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove. | |
6997 | (gdb_vrregset_t): Change array type size to | |
6998 | PPC_LINUX_SIZEOF_VRREGSET. | |
6999 | (gdb_vsxregset_t): Change array type size to | |
7000 | PPC_LINUX_SIZEOF_VSXREGSET. | |
7001 | * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): | |
7002 | Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and | |
7003 | PPC_LINUX_SIZEOF_VSXREGSET. | |
7004 | ||
2e077f5e PFC |
7005 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
7006 | ||
7007 | * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES. | |
7008 | * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to | |
7009 | nat/ppc-linux.c. | |
7010 | (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call | |
7011 | ppc_linux_target_wordsize with tid. | |
7012 | (ppc_linux_nat_target::read_description): Call ppc_linux_target | |
7013 | wordsize with tid. | |
7014 | * nat/ppc-linux.c: Include nat/gdb_ptrace.h. | |
7015 | (ppc64_64bit_inferior_p): Add static and inline specifiers. | |
7016 | (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add | |
7017 | tid parameter. Remove static specifier. | |
7018 | * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration. | |
7019 | (ppc_linux_target_wordsize): New declaration. | |
7020 | ||
bd64614e PFC |
7021 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
7022 | ||
7023 | * arch/ppc-linux-common.c: New file. | |
7024 | * arch/ppc-linux-common.h: New file. | |
7025 | * arch/ppc-linux-tdesc.h: New file. | |
7026 | * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o. | |
7027 | * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o. | |
7028 | (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and | |
7029 | arch/ppc-linux-tdesc.h. | |
7030 | * ppc-linux-nat.c: Include arch/ppc-linux-common.h and | |
7031 | arch/ppc-linux-tdesc.h. | |
7032 | (ppc_linux_nat_target::read_description): Remove target | |
7033 | description matching code. Fill a ppc_linux_features struct and | |
7034 | call ppc_linux_match_description with it. Move comment about ISA | |
7035 | 2.05 to ppc-linux-common.c. | |
7036 | * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and | |
7037 | arch/ppc-linux-tdesc.h. | |
7038 | (ppc_linux_core_read_description): Remove target description | |
7039 | matching code. Fill a ppc_linux_features struct and call | |
7040 | ppc_linux_match_description with it. | |
7041 | * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l) | |
7042 | (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l) | |
7043 | (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l) | |
7044 | (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l) | |
7045 | (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l) | |
7046 | (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l) | |
7047 | (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l) | |
7048 | (tdesc_powerpc_e500l): Remove. | |
7049 | ||
241db429 JB |
7050 | 2018-05-22 Joel Brobecker <brobecker@adacore.com> |
7051 | ||
7052 | * ada-lang.c (catch_assert_command): Pass empty string instead | |
7053 | of NULL for excep_string argument. | |
7054 | ||
75d74cca MR |
7055 | 2018-05-22 Maciej W. Rozycki <macro@mips.com> |
7056 | ||
7057 | * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if | |
7058 | the width of the requested register exceeds the width of the | |
7059 | `ptrace' data type. | |
7060 | ||
122b53ea TT |
7061 | 2018-05-21 Tom Tromey <tom@tromey.com> |
7062 | ||
7063 | * printcmd.c (output_command): Remove. | |
7064 | (output_command_const): Rename to output_command. | |
7065 | * valprint.h (output_command): Rename from output_command_const. | |
7066 | * tracepoint.c (trace_dump_actions): Call output_command. | |
7067 | ||
bc18fbb5 TT |
7068 | 2018-05-21 Tom Tromey <tom@tromey.com> |
7069 | ||
7070 | * mi/mi-cmd-catch.c (mi_cmd_catch_assert) | |
7071 | (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update. | |
7072 | * ada-lang.h (create_ada_exception_catchpoint): Update. | |
7073 | * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a | |
7074 | std::string. | |
7075 | (create_excep_cond_exprs, ~ada_catchpoint) | |
7076 | (should_stop_exception, print_one_exception) | |
7077 | (print_mention_exception, print_recreate_exception): Update. | |
7078 | (ada_get_next_arg): Remove. | |
7079 | (catch_ada_exception_command_split): Use std::string. Change type | |
7080 | of "excep_string", "cond_string". | |
7081 | (catch_ada_exception_command): Update. | |
7082 | (create_ada_exception_catchpoint): Change type of excep_string. | |
7083 | (ada_exception_sal): Remove excep_string parameter. | |
7084 | (~ada_catchpoint): Remove. | |
7085 | ||
790217f6 TT |
7086 | 2018-05-21 Tom Tromey <tom@tromey.com> |
7087 | ||
7088 | * ada-lang.c (ada_collect_symbol_completion_matches): Remove | |
7089 | cleanup. | |
7090 | ||
6f46ac85 TT |
7091 | 2018-05-21 Tom Tromey <tom@tromey.com> |
7092 | ||
7093 | * ada-lang.c (ada_exception_message_1, ada_exception_message): | |
7094 | Return unique_xmalloc_ptr. | |
7095 | (print_it_exception): Update. | |
7096 | ||
15b6611c TT |
7097 | 2018-05-21 Tom Tromey <tom@tromey.com> |
7098 | ||
7099 | * tracepoint.c (trace_dump_actions): Use std::string. | |
7100 | ||
c0c9f665 TT |
7101 | 2018-05-21 Tom Tromey <tom@tromey.com> |
7102 | ||
7103 | * symfile.c (reread_symbols): Use std::string for original_name. | |
7104 | ||
22ca247e TT |
7105 | 2018-05-21 Tom Tromey <tom@tromey.com> |
7106 | ||
7107 | * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr. | |
7108 | (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default | |
7109 | constructor. | |
7110 | ||
184cde75 SM |
7111 | 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca> |
7112 | ||
7113 | * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong | |
7114 | instance to... | |
7115 | (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this. | |
7116 | * objfiles.c (get_objfile_bfd_data): Allocate | |
7117 | objfile_per_bfd_storage with obstack_new when allocating on | |
7118 | obstack. | |
7119 | ||
e39db4db SM |
7120 | 2018-05-20 Simon Marchi <simon.marchi@ericsson.com> |
7121 | ||
7122 | * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or | |
7123 | OBSTACK_ZALLOC. | |
7124 | * dwarf2-frame.c (dwarf2_build_frame_info): Likewise. | |
7125 | * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise. | |
7126 | * mdebugread.c (mdebug_build_psymtabs): Likewise. | |
7127 | (add_pending): Likewise. | |
7128 | (parse_symbol): Likewise. | |
7129 | (parse_partial_symbols): Likewise. | |
7130 | (psymtab_to_symtab_1): Likewise. | |
7131 | (new_psymtab): Likewise. | |
7132 | (elfmdebug_build_psymtabs): Likewise. | |
7133 | * minsyms.c (terminate_minimal_symbol_table): Likewise. | |
7134 | * objfiles.c (get_objfile_bfd_data): Likewise. | |
7135 | (objfile_register_static_link): Likewise. | |
7136 | * psymtab.c (allocate_psymtab): Likewise. | |
7137 | * stabsread.c (read_member_functions): Likewise. | |
7138 | * xcoffread.c (xcoff_end_psymtab): Likewise. | |
7139 | ||
284a0e3c SM |
7140 | 2018-05-20 Simon Marchi <simon.marchi@ericsson.com> |
7141 | ||
7142 | * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if | |
7143 | compiler supports std::is_trivially_constructible. | |
7144 | * common/poison.h: Include obstack.h. | |
7145 | (IsMallocable): Define to is_trivially_constructible if the | |
7146 | compiler supports it, define to true_type otherwise. | |
7147 | (xobnew): New. | |
7148 | (XOBNEW): Redefine. | |
7149 | (xobnewvec): New. | |
7150 | (XOBNEWVEC): Redefine. | |
7151 | * gdb_obstack.h (obstack_zalloc): New. | |
7152 | (OBSTACK_ZALLOC): Redefine. | |
7153 | (obstack_calloc): New. | |
7154 | (OBSTACK_CALLOC): Redefine. | |
7155 | (obstack_new): New. | |
7156 | * gdbarch.sh: Include gdb_obstack in gdbarch.h. | |
7157 | (gdbarch_obstack): New declaration in gdbarch.h, definition in | |
7158 | gdbarch.c. | |
7159 | (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use | |
7160 | obstack_calloc/obstack_zalloc. | |
7161 | (gdbarch_obstack_zalloc): Remove. | |
7162 | * target-descriptions.c (tdesc_data_init): Use obstack_new. | |
7163 | ||
59f66be3 PW |
7164 | 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
7165 | ||
7166 | * stack.c (backtrace_command_1): Remove useless variable int i. | |
7167 | ||
50c65c2d PW |
7168 | 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
7169 | ||
7170 | * stack.c (print_frame_info): Fix comment. | |
7171 | ||
7ff8cb8c TT |
7172 | 2018-05-18 Tom Tromey <tom@tromey.com> |
7173 | ||
7174 | * dwarf2read.c (struct dwz_file): Add constructor, initializers. | |
7175 | <dwz_bfd>: Now a gdb_bfd_ref_ptr. | |
7176 | (~dwarf2_per_objfile): Update | |
7177 | (dwarf2_get_dwz_file): Use new. | |
7178 | * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a | |
7179 | unique_ptr. | |
7180 | ||
400174b1 TT |
7181 | 2018-05-18 Tom Tromey <tom@tromey.com> |
7182 | ||
7183 | * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a | |
7184 | unique_ptr. | |
7185 | * dwarf2read.c (struct dwp_file): Add constructor and | |
7186 | initializers. | |
7187 | (open_and_init_dwp_file): Return a unique_ptr. | |
7188 | (dwarf2_per_objfile, create_dwp_hash_table) | |
7189 | (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2) | |
7190 | (lookup_dwo_unit_in_dwp): Update. | |
7191 | (open_and_init_dwp_file, get_dwp_file): Update. | |
7192 | ||
3063847f TT |
7193 | 2018-05-18 Tom Tromey <tom@tromey.com> |
7194 | ||
7195 | * dwarf2read.c (dwarf2_per_objfile): Update. | |
7196 | (struct mapped_index): Add initializers. | |
7197 | (dwarf2_read_index): Use new. | |
7198 | (dw2_symtab_iter_init): Update. | |
7199 | * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a | |
7200 | unique_ptr. | |
7201 | ||
d3d02dee SM |
7202 | 2018-05-18 Simon Marchi <simon.marchi@ericsson.com> |
7203 | ||
7204 | * dwarf2read.c (mapped_index) <total_size>: Remove. | |
7205 | ||
1d143c36 SM |
7206 | 2018-05-18 Simon Marchi <simon.marchi@ericsson.com> |
7207 | ||
7208 | * unittests/format_pieces-selftests.c (test_format_specifier): | |
7209 | Add ARI comments. | |
7210 | ||
ce1e8424 TT |
7211 | 2018-05-18 Tom Tromey <tom@tromey.com> |
7212 | ||
7213 | * c-typeprint.c (maybe_print_hole): New function. | |
7214 | (c_print_type_struct_field_offset): Update. | |
7215 | (c_type_print_base_struct_union): Call maybe_print_hole. | |
7216 | ||
ddfe970e KS |
7217 | 2018-05-17 Keith Seitz <keiths@redhat.com> |
7218 | ||
7219 | * breakpoint.c (build_bpstat_chain): New function, moved from | |
7220 | bpstat_stop_status. | |
7221 | (bpstat_stop_status): Add optional parameter, `stop_chain'. | |
7222 | If no stop chain is passed, call build_bpstat_chain to build it. | |
7223 | * breakpoint.h (build_bpstat_chain): Declare. | |
7224 | (bpstat_stop_status): Move documentation here from breakpoint.c. | |
7225 | * infrun.c (handle_signal_stop): Before eliding inlined frames, | |
7226 | build the stop chain and pass it to skip_inline_frames. | |
7227 | Pass this stop chain to bpstat_stop_status. | |
7228 | * inline-frame.c: Include breakpoint.h. | |
7229 | (stopped_by_user_bp_inline_frame): New function. | |
7230 | (skip_inline_frames): Add parameter `stop_chain'. | |
7231 | Move documention to inline-frame.h. | |
7232 | If non-NULL, use stopped_by_user_bp_inline_frame to determine | |
7233 | whether the frame should be elided. | |
7234 | * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'. | |
7235 | Add moved documentation and update for new parameter. | |
7236 | ||
b17992c1 SM |
7237 | 2018-05-17 Simon Marchi <simon.marchi@ericsson.com> |
7238 | ||
7239 | PR cli/14975 | |
7240 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
7241 | unittests/format_pieces-selftests.c. | |
7242 | * common/format.h (format_piece) <operator==>: New. | |
7243 | (format_pieces) <operator[]>: Remove. | |
7244 | * common/format.c (format_pieces::format_pieces): Handle \e. | |
7245 | * unittests/format_pieces-selftests.c: New. | |
7246 | ||
58f0c718 TT |
7247 | 2018-05-17 Tom Tromey <tom@tromey.com> |
7248 | ||
7249 | PR symtab/23010: | |
7250 | * dwarf2read.c (load_cu, dw2_do_instantiate_symtab) | |
7251 | (dw2_instantiate_symtab): Add skip_partial parameter. | |
7252 | (dw2_find_last_source_symtab, dw2_map_expand_apply) | |
7253 | (dw2_lookup_symbol, dw2_expand_symtabs_for_function) | |
7254 | (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname) | |
7255 | (dw2_expand_symtabs_matching_one) | |
7256 | (dw2_find_pc_sect_compunit_symtab) | |
7257 | (dw2_debug_names_lookup_symbol) | |
7258 | (dw2_debug_names_expand_symtabs_for_function): Update. | |
7259 | (init_cutu_and_read_dies): Add skip_partial parameter. | |
7260 | (process_psymtab_comp_unit, build_type_psymtabs_1) | |
7261 | (process_skeletonless_type_unit, load_partial_comp_unit) | |
7262 | (psymtab_to_symtab_1): Update. | |
7263 | (load_full_comp_unit): Add skip_partial parameter. | |
7264 | (process_imported_unit_die, dwarf2_read_addr_index) | |
7265 | (follow_die_offset, dwarf2_fetch_die_loc_sect_off) | |
7266 | (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off) | |
7267 | (read_signatured_type): Update. | |
7268 | ||
3e618834 SM |
7269 | 2018-05-17 Simon Marchi <simon.marchi@ericsson.com> |
7270 | ||
7271 | * value.c (release_value): Remove unused variable. | |
7272 | (record_latest_value): Likewise. | |
7273 | (access_value_history): Likewise. | |
7274 | (preserve_values): Likewise. | |
7275 | ||
fe10fe31 TT |
7276 | 2018-05-17 Tom Tromey <tom@tromey.com> |
7277 | ||
7278 | * extension.h (struct ext_lang_type_printers) <py_type_printers>: | |
7279 | Initialize. | |
7280 | ||
1d761124 MR |
7281 | 2018-05-16 Maciej W. Rozycki <macro@mips.com> |
7282 | ||
7283 | PR gdb/22286 | |
7284 | * linux-nat-trad.c (linux_nat_trad_target::fetch_register): | |
7285 | Also handle registers whose width is not a multiple of | |
7286 | PTRACE_TYPE_RET. | |
7287 | (linux_nat_trad_target::store_register): Likewise. | |
7288 | ||
06333fea TT |
7289 | 2018-05-16 Tom Tromey <tom@tromey.com> |
7290 | ||
7291 | * gdbcore.h (core_bfd): Redefine. | |
7292 | * corelow.c (core_target::close): Update. | |
7293 | (core_target_open): Update. | |
7294 | * progspace.h (struct program_space) <cbfd>: Now a | |
7295 | gdb_bfd_ref_ptr. | |
7296 | ||
921222e2 TT |
7297 | 2018-05-16 Tom Tromey <tom@tromey.com> |
7298 | ||
7299 | PR cli/19551: | |
7300 | * symfile-add-flags.h (enum symfile_add_flags) | |
7301 | <SYMFILE_NOT_FILENAME>: New constant. | |
7302 | * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get | |
7303 | objfile name from BFD. | |
7304 | (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME. | |
7305 | * minidebug.c (find_separate_debug_file_in_section): Put | |
7306 | ".gnu_debugdata" into BFD's file name. | |
7307 | ||
3acb7083 SM |
7308 | 2018-05-16 Simon Marchi <simon.marchi@ericsson.com> |
7309 | ||
7310 | * regcache.c (regcache_read_ftype, regcache_write_ftype): | |
7311 | Remove. | |
7312 | ||
561a72d4 TC |
7313 | 2018-05-15 Tamar Christina <tamar.christina@arm.com> |
7314 | ||
7315 | PR binutils/21446 | |
7316 | * aarch64-tdep.c (aarch64_analyze_prologue, | |
7317 | aarch64_software_single_step, aarch64_displaced_step_copy_insn): | |
7318 | Indicate not interested in errors. | |
7319 | ||
4e6ff0e1 MR |
7320 | 2018-05-15 Maciej W. Rozycki <macro@mips.com> |
7321 | ||
7322 | * mips-linux-nat.c (mips_linux_nat_target::fetch_registers): | |
7323 | Supply the MIPS_ZERO_REGNUM register. | |
7324 | ||
ea33cd92 MR |
7325 | 2018-05-15 Maciej W. Rozycki <macro@mips.com> |
7326 | ||
7327 | * mips-tdep.c (mask_address_var): Make variable static. | |
7328 | ||
2d79090e TT |
7329 | 2018-05-14 Tom Tromey <tom@tromey.com> |
7330 | ||
7331 | * dwarf2read.c (rust_union_quirks): Clear rust_unions. | |
7332 | ||
cf4912ae AB |
7333 | 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com> |
7334 | ||
7335 | * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not | |
7336 | FXSAVE_ADDR for the mxcsr register. | |
7337 | ||
67e6f569 MF |
7338 | 2018-05-11 Max Filippov <jcmvbkbc@gmail.com> |
7339 | ||
7340 | * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition. | |
7341 | ||
15244507 PA |
7342 | 2018-05-11 Pedro Alves <palves@redhat.com> |
7343 | ||
7344 | * corelow.c (core_target) <core_target>: No longer inline. | |
7345 | Initialize m_core_gdbarch, m_core_vec and build the section table | |
7346 | here. | |
7347 | <~core_target>: New. | |
7348 | <core_gdbarch, get_core_register_section>: New methods. | |
7349 | <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields, | |
7350 | factored out from ... | |
7351 | <core_data, core_vec, core_gdbarch>: ... these deleted globals. | |
7352 | (core_ops): Delete. | |
7353 | (sniff_core_bfd): Add gdbarch parameter. | |
7354 | (core_close): Delete, merged into ... | |
7355 | (core_target::close): ... here. Delete self. | |
7356 | (core_close_cleanup): Delete. | |
7357 | (core_target_open): Allocate a core_target on the heap. Use a | |
7358 | unique_ptr instead of a cleanup. Bits moved into the core_target | |
7359 | ctor. Adjust to use core_target methods instead of globals. | |
7360 | (get_core_register_section): Rename to ... | |
7361 | (core_target::get_core_register_section): ... this and adjust. | |
7362 | (struct get_core_registers_cb_data): New. | |
7363 | (get_core_registers_cb): Use it. Use bool. | |
7364 | (core_target::fetch_registers, core_target::files_info) | |
7365 | (core_target::xfer_partial, core_target::read_description) | |
7366 | (core_target::pid_to, core_target::thread_name): Adjust to | |
7367 | reference class fields instead of globals. | |
7368 | * target.h (struct target_ops_deleter, target_ops_up): New. | |
7369 | ||
451953fa PA |
7370 | 2018-05-11 Pedro Alves <palves@redhat.com> |
7371 | ||
7372 | * corefile.c (core_file_command): Move to corelow.c. | |
7373 | * corelow.c (the_core_target): Delete. | |
7374 | (core_file_command): Moved from corefile.c. Check exec_bfd | |
7375 | instead of the_core_target. Use target_detach instead of calling | |
7376 | into the_core_target directly. | |
7377 | (maybe_say_no_core_file_now): New. | |
7378 | (core_target::detach): Use it. | |
7379 | (_initialize_corelow): Remove references to the_core_target. | |
7380 | * gdbcore.h (the_core_target): Delete. | |
7381 | ||
e540a5a2 | 7382 | 2018-05-11 Tom Tromey <tromey@redhat.com> |
3afc23a6 | 7383 | Pedro Alves <palves@redhat.com> |
e540a5a2 TT |
7384 | |
7385 | * corefile.c (core_bfd): Remove. | |
7386 | * gdbcore.h (core_bfd): Now a macro. | |
7387 | * progspace.h (struct program_space) <cbfd>: New field. | |
7388 | ||
633cf254 TT |
7389 | 2018-05-11 Tom Tromey <tom@tromey.com> |
7390 | ||
7391 | * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use | |
7392 | gdb::def_vector. | |
7393 | ||
1a34f210 TT |
7394 | 2018-05-10 Tom Tromey <tom@tromey.com> |
7395 | ||
7396 | * configure: Rebuild. | |
7397 | * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3. | |
7398 | ||
190852c8 JB |
7399 | 2018-05-10 Joel Brobecker <brobecker@adacore.com> |
7400 | ||
7401 | PR server/23158: | |
7402 | * regformats/regdat.sh: Adjust script, following the addition | |
7403 | of the new expedite_regs parameter to init_target_desc. | |
7404 | ||
8727de56 OJ |
7405 | 2018-05-10 Omair Javaid <omair.javaid@linaro.org> |
7406 | ||
7407 | PR gdb/23127 | |
7408 | * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to | |
7409 | set_gdbarch_significant_addr_bit. | |
7410 | * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to | |
7411 | set_gdbarch_significant_addr_bit. | |
7412 | * utils.c (address_significant): Update to sign extend addr. | |
7413 | ||
37d9e062 MF |
7414 | 2018-05-09 Max Filippov <jcmvbkbc@gmail.com> |
7415 | ||
7416 | * xtensa-linux-tdep.c (xtensa-tdep.h): New include. | |
7417 | (xtensa_linux_init_abi): Limit tdep->num_regs by | |
7418 | tdep->num_nopriv_regs. | |
7419 | * xtensa-tdep.c (xtensa_derive_tdep): Calculate | |
7420 | tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's | |
7421 | not initialized. | |
7422 | ||
7402fbca SM |
7423 | 2018-05-08 Simon Marchi <simon.marchi@ericsson.com> |
7424 | ||
7425 | * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE. | |
7426 | ||
8ee22052 AB |
7427 | 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com> |
7428 | ||
7429 | * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant. | |
7430 | (I387_MXCSR_INIT_VAL): New constant. | |
7431 | * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave | |
7432 | buffer if it was supplied by the inferior. | |
7433 | * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL. | |
7434 | (i387_xsave_get_clear_bv): New function. | |
7435 | (i387_supply_xsave): Only read x87 control registers from the | |
7436 | xsave buffer if the feature is enabled, and the state will have | |
7437 | been written, otherwise, provide a suitable default. | |
7438 | (i387_collect_xsave): Pre-clear all registers in xsave buffer, | |
7439 | including x87 control registers. Update control registers if they | |
7440 | have changed from the default value, and mark features as enabled | |
7441 | as required. | |
7442 | * i387-tdep.h (i387_xsave_get_clear_bv): Declare. | |
7443 | ||
968ae51b UW |
7444 | 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com> |
7445 | ||
7446 | * spu-tdep.c (info_spu_event_command): Fix output formatting. | |
7447 | ||
aff689d3 TT |
7448 | 2018-05-07 Tom Tromey <tom@tromey.com> |
7449 | ||
7450 | * configure: Rebuild. | |
7451 | * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond. | |
7452 | ||
ce887586 TT |
7453 | 2018-05-07 Tom Tromey <tom@tromey.com> |
7454 | ||
7455 | PR tdep/20362: | |
7456 | * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D | |
7457 | bit. Use correct value for VDIV. | |
7458 | ||
85e26832 TT |
7459 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7460 | ||
7461 | * configure: Rebuild. | |
7462 | * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough. | |
7463 | ||
449b1ac7 TT |
7464 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7465 | ||
7466 | * linux-record.c (record_linux_system_call) <case | |
7467 | RECORD_SYS_RECVFROM>: Add "break". | |
7468 | ||
15c9ffd6 TT |
7469 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7470 | ||
7471 | * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>: | |
7472 | Add missing "break". | |
7473 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>: | |
7474 | Add missing "break". | |
7475 | ||
e3829d13 TT |
7476 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7477 | ||
7478 | * rs6000-tdep.c (ppc_process_record_op4) | |
7479 | (ppc_process_record_op63): Add fall-through comment. | |
7480 | ||
da0e1563 TT |
7481 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7482 | ||
7483 | * i386-tdep.c (i386_process_record): Add fall-through comment. | |
7484 | ||
0019cd49 TT |
7485 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7486 | ||
7487 | * stabsread.c (define_symbol) <case 'p'>: Add fall-through | |
7488 | comment. | |
7489 | ||
565e0eda TT |
7490 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7491 | ||
7492 | * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment. | |
7493 | * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment. | |
7494 | * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through | |
7495 | comment. | |
7496 | * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through | |
7497 | comment. | |
7498 | * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through | |
7499 | comment. | |
7500 | ||
621846f4 TT |
7501 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7502 | ||
7503 | * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN. | |
7504 | ||
86a73007 TT |
7505 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7506 | ||
7507 | * s390-tdep.c (s390_process_record): Fix fall-through comments. | |
7508 | * xcoffread.c (scan_xcoff_symtab): Move comment later. | |
7509 | * symfile.c (section_is_mapped): Fix fall-through comment. | |
7510 | * stabsread.c (define_symbol, read_member_functions): Fix | |
7511 | fall-through comment. | |
7512 | * s390-linux-tdep.c (s390_process_record): Fix fall-through | |
7513 | comment. | |
7514 | * remote.c (remote_wait_as): Fix fall-through comment. | |
7515 | * p-exp.y (yylex): Fix fall-through comment. | |
7516 | * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through | |
7517 | comment. | |
7518 | * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment. | |
7519 | * mdebugread.c (parse_partial_symbols): Fix fall-through comment. | |
7520 | * jv-exp.y (yylex): Fix fall-through comment. | |
7521 | * go-exp.y (lex_one_token): Fix fall-through comment. | |
7522 | * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix | |
7523 | fall-through comment. | |
7524 | * f-exp.y (yylex): Fix fall-through comment. | |
7525 | * dwarf2read.c (process_die): Fix fall-through comments. | |
7526 | * dbxread.c (process_one_symbol): Fix fall-through comment. | |
7527 | * d-exp.y (lex_one_token): Fix fall-through comment. | |
7528 | * cp-name-parser.y (yylex): Fix fall-through comment. | |
7529 | * coffread.c (coff_symtab_read): Fix fall-through comment. | |
7530 | * c-exp.y (lex_one_token): Fix fall-through comment. | |
7531 | * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through | |
7532 | comment. | |
7533 | * arch/arm.c (arm_instruction_changes_pc): Fix fall-through | |
7534 | comment. | |
7535 | ||
56bcdbea TT |
7536 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7537 | ||
7538 | PR python/22730: | |
7539 | * NEWS: Mention gdb.execute change. | |
7540 | * gdbcmd.h (execute_control_command): Don't declare. | |
7541 | * python/python.c (execute_gdb_command): Use read_command_lines_1, | |
7542 | execute_control_commands, execute_control_commands_to_string. | |
7543 | * cli/cli-script.h (execute_control_commands) | |
7544 | (execute_control_commands_to_string): Declare. | |
7545 | (execute_control_command): Add from_tty parameter. | |
7546 | * cli/cli-script.c (execute_control_commands) | |
7547 | (execute_control_commands_to_string): New functions. | |
7548 | (execute_user_command): Use execute_control_commands. | |
7549 | (execute_control_command_1): Add "from_tty" parameter. Update. | |
7550 | (execute_control_command): Likewise. | |
7551 | ||
a913fffb TT |
7552 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7553 | ||
7554 | PR python/22731: | |
7555 | * NEWS: Mention that breakpoint commands are writable. | |
7556 | * python/py-breakpoint.c (bppy_set_commands): New function. | |
7557 | (breakpoint_object_getset) <"commands">: Use it. | |
7558 | ||
60b3cef2 TT |
7559 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7560 | ||
7561 | * tracepoint.c (actions_command): Update. | |
7562 | * mi/mi-cmd-break.c (mi_command_line_array) | |
7563 | (mi_command_line_array_cnt, mi_command_line_array_ptr) | |
7564 | (mi_read_next_line): Remove. | |
7565 | (mi_cmd_break_commands): Update. | |
7566 | * cli/cli-script.h (read_command_lines, read_command_lines_1): Use | |
7567 | function_view. | |
7568 | * cli/cli-script.c (get_command_line): Update. | |
7569 | (process_next_line): Use function_view. Constify. | |
7570 | (recurse_read_control_structure, read_command_lines) | |
7571 | (read_command_lines_1): Change argument types to function_view. | |
7572 | (do_define_command, document_command): Update. | |
7573 | * breakpoint.h (check_tracepoint_command): Don't declare. | |
7574 | * breakpoint.c (check_tracepoint_command): Remove. | |
7575 | (commands_command_1, create_tracepoint_from_upload): Update. | |
7576 | ||
7a2c85f2 TT |
7577 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7578 | ||
7579 | PR gdb/11750: | |
7580 | * cli/cli-script.h (enum command_control_type) <define_control>: | |
7581 | New constant. | |
7582 | * cli/cli-script.c (multi_line_command_p): Handle define_control. | |
7583 | (build_command_line, execute_control_command_1) | |
7584 | (process_next_line): Likewise. | |
7585 | (do_define_command): New function, extracted from define_command. | |
7586 | (define_command): Use it. | |
7587 | ||
295dc222 TT |
7588 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7589 | ||
7590 | * tracepoint.c (actions_command): Update. | |
7591 | * cli/cli-script.h (read_command_lines): Update. | |
7592 | * cli/cli-script.c (read_command_lines): Constify prompt_arg. | |
7593 | (MAX_TMPBUF): Remove define. | |
7594 | (define_command): Use string_printf. | |
7595 | (document_command): Likewise. | |
7596 | * breakpoint.c (commands_command_1): Update. | |
7597 | ||
1263a9d5 TT |
7598 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7599 | ||
7600 | * top.c (execute_command): Update. | |
7601 | * cli/cli-script.h (print_command_lines): Now varargs. | |
7602 | * cli/cli-script.c (print_command_lines): Now varargs. | |
7603 | (execute_control_command_1) <case while_control, case if_control>: | |
7604 | Update. | |
7605 | ||
12973681 TT |
7606 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7607 | ||
7608 | * tracepoint.c (all_tracepoint_actions): Rename from | |
7609 | all_tracepoint_actions_and_cleanup. Change return type. | |
7610 | (actions_command, encode_actions_1, encode_actions) | |
7611 | (trace_dump_actions, tdump_command): Update. | |
7612 | * remote.c (remote_download_command_source): Update. | |
7613 | * python/python.c (gdbpy_eval_from_control_command) | |
7614 | (python_command, python_interactive_command): Update. | |
7615 | * mi/mi-cmd-break.c (mi_cmd_break_commands): Update. | |
7616 | * guile/guile.c (guile_command) | |
7617 | (gdbscm_eval_from_control_command, guile_command): Update. | |
7618 | * compile/compile.c (compile_code_command) | |
7619 | (compile_print_command, compile_to_object): Update. | |
7620 | * cli/cli-script.h (struct command_lines_deleter): New. | |
7621 | (counted_command_line): New typedef. | |
7622 | (struct command_line): Add constructor, destructor. | |
7623 | <body_list>: Remove. | |
7624 | <body_list_0, body_list_1>: New members. | |
7625 | (command_line_up): Remove typedef. | |
7626 | (read_command_lines, read_command_lines_1, get_command_line): | |
7627 | Update. | |
7628 | (copy_command_lines): Don't declare. | |
7629 | * cli/cli-script.c (build_command_line): Use "new". | |
7630 | (get_command_line): Return counted_command_line. | |
7631 | (print_command_lines, execute_user_command) | |
7632 | (execute_control_command_1, while_command, if_command): Update. | |
7633 | (realloc_body_list): Remove. | |
7634 | (process_next_line, recurse_read_control_structure): Update. | |
7635 | (read_command_lines, read_command_lines_1): Return counted_command_line. | |
7636 | (free_command_lines): Use "delete". | |
7637 | (copy_command_lines): Remove. | |
7638 | (define_command, document_command, show_user_1): Update. | |
7639 | * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now | |
7640 | a counted_command_line. | |
7641 | * breakpoint.h (counted_command_line): Remove typedef. | |
7642 | (breakpoint_set_commands): Update. | |
7643 | * breakpoint.c (check_no_tracepoint_commands) | |
7644 | (validate_commands_for_breakpoint): Update. | |
7645 | (breakpoint_set_commands): Change commands to be a | |
7646 | counted_command_line. | |
7647 | (commands_command_1, update_dprintf_command_list) | |
7648 | (create_tracepoint_from_upload): Update. | |
7649 | ||
e2fc72e2 TT |
7650 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7651 | ||
7652 | * cli/cli-decode.h (cmd_list_element): New constructor. | |
7653 | (~cmd_list_element): New destructor. | |
7654 | (struct cmd_list_element): Add initializers. | |
7655 | * cli/cli-decode.c (do_add_cmd): Use "new". | |
7656 | (delete_cmd): Use "delete". | |
7657 | ||
a3b60e45 JK |
7658 | 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
7659 | Pedro Alves <palves@redhat.com> | |
7660 | ||
7661 | PR breakpoints/19806 and support for PR external/20207. | |
7662 | * NEWS: Mention Aarch64 watchpoint improvements. | |
7663 | * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed | |
7664 | watchpoints and PR external/20207 watchpoints. | |
7665 | * nat/aarch64-linux-hw-point.c | |
7666 | (kernel_supports_any_contiguous_range): New. | |
7667 | (aarch64_watchpoint_offset): New. | |
7668 | (aarch64_watchpoint_length): Support PR external/20207 watchpoints. | |
7669 | (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts. | |
7670 | (aarch64_point_is_aligned): Support PR external/20207 watchpoints. | |
7671 | (aarch64_align_watchpoint): New parameters aligned_offset_p and | |
7672 | next_addr_orig_p. Support PR external/20207 watchpoints. | |
7673 | (aarch64_downgrade_regs): New. | |
7674 | (aarch64_dr_state_insert_one_point): New parameters offset and | |
7675 | addr_orig. | |
7676 | (aarch64_dr_state_remove_one_point): Likewise. | |
7677 | (aarch64_handle_breakpoint): Update caller. | |
7678 | (aarch64_handle_aligned_watchpoint): Likewise. | |
7679 | (aarch64_handle_unaligned_watchpoint): Support addr_orig and | |
7680 | aligned_offset. | |
7681 | (aarch64_linux_set_debug_regs): Remove const from state. Call | |
7682 | aarch64_downgrade_regs. | |
7683 | (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp. | |
7684 | * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ... | |
7685 | (DR_CONTROL_MASK): ... this. | |
7686 | (struct aarch64_debug_reg_state): New field dr_addr_orig_wp. | |
7687 | (unsigned int aarch64_watchpoint_offset): New prototype. | |
7688 | (aarch64_linux_set_debug_regs): Remove const from state. | |
7689 | * utils.c (align_up, align_down): Move to ... | |
7690 | * common/common-utils.c (align_up, align_down): ... here. | |
7691 | * utils.h (align_up, align_down): Move to ... | |
7692 | * common/common-utils.h (align_up, align_down): ... here. | |
7693 | ||
05bc7456 JB |
7694 | 2018-05-04 Joel Brobecker <brobecker@adacore.com> |
7695 | ||
7696 | * sparc-tdep.c (sparc_structure_return_p): Re-implement to | |
7697 | match the ABI as summarized in GCC's gcc/config/sparc/sparc.c. | |
7698 | (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p. | |
7699 | Re-implement to match the ABI as summarized in GCC's | |
7700 | gcc/config/sparc/sparc.c. All callers updated. | |
7701 | (sparc32_store_arguments): Remove assertion. | |
7702 | ||
2f433492 TT |
7703 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7704 | ||
7705 | * printcmd.c: Don't include tui.h. | |
7706 | (decode_format): Use skip_spaces. | |
7707 | ||
9be2ae8f TT |
7708 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7709 | ||
7710 | PR gdb/22619: | |
7711 | * printcmd.c (last_count): New global. | |
7712 | (x_command): Use saved count when repeating. | |
7713 | ||
f0b3976b TT |
7714 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7715 | ||
7716 | * nto-procfs.c (do_closedir_cleanup): Remove. | |
7717 | (procfs_pidlist): Use gdb_dir_up. | |
7718 | * procfs.c (do_closedir_cleanup): Remove. | |
7719 | (proc_update_threads): Use gdb_dir_up. | |
7720 | * common/filestuff.h (struct gdb_dir_deleter): New. | |
7721 | (gdb_dir_up): New typedef. | |
7722 | ||
862d101a TT |
7723 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7724 | ||
7725 | * ada-lang.c (print_mention_exception): Use std::string. | |
7726 | ||
cb7de75e TT |
7727 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7728 | ||
7729 | * ada-lang.c (create_excep_cond_exprs): Update. | |
7730 | (ada_exception_catchpoint_cond_string): Use std::string. | |
7731 | ||
49d83361 TT |
7732 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7733 | ||
7734 | * ada-lang.c (xget_renaming_scope): Return std::string. | |
7735 | (old_renaming_is_invisible): Update. | |
7736 | ||
ade72a34 TT |
7737 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7738 | ||
7739 | * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr. | |
7740 | (target_bfd::target_bfd, target_bfd::~target_bfd): Update. | |
7741 | ||
2be4d7f0 UW |
7742 | 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com> |
7743 | ||
7744 | * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error. | |
7745 | ||
69b6ecb0 TT |
7746 | 2018-05-04 Tom Tromey <tom@tromey.com> |
7747 | ||
7748 | * remote.c (remote_query_supported_append): Change type. | |
7749 | (remote_check_symbols): Update. | |
7750 | ||
bf27f0e2 PP |
7751 | 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com> |
7752 | ||
7753 | PR gdb/11420 | |
7754 | * configure.ac: Prepend libpython. | |
7755 | * python/python-config.py: Likewise. | |
7756 | * configure: Regenerate. | |
7757 | ||
4ea17de8 SM |
7758 | 2018-05-03 Simon Marchi <simon.marchi@ericsson.com> |
7759 | ||
7760 | * Makefile.in (%.c: %.l): Use -t instead of --stdout. | |
7761 | ||
bd732259 PA |
7762 | 2018-05-03 Pedro Alves <palves@redhat.com> |
7763 | ||
7764 | * s390-linux-nat.c | |
7765 | (s390_linux_nat_target::have_continuable_watchpoint): Mark with | |
7766 | override. Write 'true' instead of '1'. | |
7767 | (s390_linux_nat_target::watchpoint_addr_within_range): Remove | |
7768 | declaration. | |
7769 | ||
d9f719f1 PA |
7770 | 2018-05-02 Pedro Alves <palves@redhat.com> |
7771 | ||
7772 | * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use | |
7773 | add_inf_child_target. | |
7774 | * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use | |
7775 | add_inf_child_target. | |
7776 | * aix-thread.c (aix_thread_target_info): New. | |
7777 | (aix_thread_target) <shortname, longname, doc>: Delete. | |
7778 | <info>: New. | |
7779 | * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use | |
7780 | add_inf_child_target. | |
7781 | * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use | |
7782 | add_inf_child_target. | |
7783 | * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use | |
7784 | add_inf_child_target. | |
7785 | * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use | |
7786 | add_inf_child_target. | |
7787 | * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use | |
7788 | add_inf_child_target. | |
7789 | * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use | |
7790 | add_inf_child_target. | |
7791 | * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use | |
7792 | add_inf_child_target. | |
7793 | * arm-linux-nat.c (_initialize_arm_linux_nat): Use | |
7794 | add_inf_child_target. | |
7795 | * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use | |
7796 | add_inf_child_target. | |
7797 | * bfd-target.c (target_bfd_target_info): New. | |
7798 | (target_bfd) <shortname, longname, doc>: Delete. | |
7799 | <info>: New. | |
7800 | * bsd-kvm.c (bsd_kvm_target_info): New. | |
7801 | (bsd_kvm_target) <shortname, longname, doc>: Delete. | |
7802 | <info>: New. | |
7803 | (bsd_kvm_target::open): Rename to ... | |
7804 | (bsd_kvm_target_open): ... this. Adjust. | |
7805 | * bsd-uthread.c (bsd_uthread_target_info): New. | |
7806 | (bsd_uthread_target) <shortname, longname, doc>: Delete. | |
7807 | <info>: New. | |
7808 | * corefile.c (core_file_command): Adjust. | |
7809 | * corelow.c (core_target_info): New. | |
7810 | (core_target) <shortname, longname, doc>: Delete. | |
7811 | <info>: New. | |
7812 | (core_target::open): Rename to ... | |
7813 | (core_target_open): ... this. Adjust. | |
7814 | * ctf.c (ctf_target_info): New. | |
7815 | (ctf_target) <shortname, longname, doc>: Delete. | |
7816 | <info>: New. | |
7817 | (ctf_target::open): Rename to ... | |
7818 | (ctf_target_open): ... this. | |
7819 | (_initialize_ctf): Adjust. | |
7820 | * exec.c (exec_target_info): New. | |
7821 | (exec_target) <shortname, longname, doc>: Delete. | |
7822 | <info>: New. | |
7823 | (exec_target::open): Rename to ... | |
7824 | (exec_target_open): ... this. | |
7825 | * gdbcore.h (core_target_open): Declare. | |
7826 | * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target. | |
7827 | * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use | |
7828 | add_inf_child_target. | |
7829 | * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use | |
7830 | add_inf_child_target. | |
7831 | * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use | |
7832 | add_inf_child_target. | |
7833 | * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use | |
7834 | add_inf_child_target. | |
7835 | * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use | |
7836 | add_inf_child_target. | |
7837 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Use | |
7838 | add_inf_child_target. | |
7839 | * i386-linux-nat.c (_initialize_i386_linux_nat): Use | |
7840 | add_inf_child_target. | |
7841 | * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use | |
7842 | add_inf_child_target. | |
7843 | * i386-obsd-nat.c (_initialize_i386obsd_nat): Use | |
7844 | add_inf_child_target. | |
7845 | * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use | |
7846 | add_inf_child_target. | |
7847 | * inf-child.c (inf_child_target_info): New. | |
7848 | (inf_child_target::info): New. | |
7849 | (inf_child_open_target): Remove 'target' parameter. Use | |
7850 | get_native_target instead. | |
7851 | (inf_child_target::open): Delete. | |
7852 | (add_inf_child_target): New. | |
7853 | * inf-child.h (inf_child_target) <shortname, longname, doc, open>: | |
7854 | Delete. | |
7855 | <info>: New. | |
7856 | (add_inf_child_target): Declare. | |
7857 | (inf_child_open_target): Declare. | |
7858 | * linux-thread-db.c (thread_db_target_info): New. | |
7859 | (thread_db_target) <shortname, longname, doc>: Delete. | |
7860 | <info>: New. | |
7861 | * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use | |
7862 | add_inf_child_target. | |
7863 | * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use | |
7864 | add_inf_child_target. | |
7865 | * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use | |
7866 | add_inf_child_target. | |
7867 | * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use | |
7868 | add_inf_child_target. | |
7869 | * make-target-delegates (print_class): Adjust. | |
7870 | * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use | |
7871 | add_inf_child_target. | |
7872 | * mips-linux-nat.c (_initialize_mips_linux_nat): Use | |
7873 | add_inf_child_target. | |
7874 | * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use | |
7875 | add_inf_child_target. | |
7876 | * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use | |
7877 | add_inf_child_target. | |
7878 | * nto-procfs.c (nto_native_target_info): New. | |
7879 | (nto_procfs_target_native) <shortname, longname, doc>: | |
7880 | Delete. | |
7881 | <info>: New. | |
7882 | (nto_procfs_target_info): New. | |
7883 | (nto_procfs_target_procfs) <shortname, longname, doc>: | |
7884 | Delete. | |
7885 | <info>: New. | |
7886 | (init_procfs_targets): Adjust. | |
7887 | * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use | |
7888 | add_inf_child_target. | |
7889 | * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use | |
7890 | add_inf_child_target. | |
7891 | * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use | |
7892 | add_inf_child_target. | |
7893 | * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use | |
7894 | add_inf_child_target. | |
7895 | * ravenscar-thread.c (ravenscar_target_info): New. | |
7896 | (ravenscar_thread_target) <shortname, longname, doc>: | |
7897 | Delete. | |
7898 | <info>: New. | |
7899 | * record-btrace.c (record_btrace_target_info): | |
7900 | (record_btrace_target) <shortname, longname, doc>: Delete. | |
7901 | <info>: New. | |
7902 | (record_btrace_target::open): Rename to ... | |
7903 | (record_btrace_target_open): ... this. Adjust. | |
7904 | * record-full.c (record_longname, record_doc): New. | |
7905 | (record_full_base_target) <shortname, longname, doc>: Delete. | |
7906 | <info>: New. | |
7907 | (record_full_target_info): New. | |
7908 | (record_full_target): <shortname>: Delete. | |
7909 | <info>: New. | |
7910 | (record_full_core_open_1, record_full_open_1): Update comments. | |
7911 | (record_full_base_target::open): Rename to ... | |
7912 | (record_full_open): ... this. | |
7913 | (cmd_record_full_restore): Update. | |
7914 | (_initialize_record_full): Update. | |
7915 | * remote-sim.c (remote_sim_target_info): New. | |
7916 | (gdbsim_target) <shortname, longname, doc>: Delete. | |
7917 | <info>: New. | |
7918 | (gdbsim_target::open): Rename to ... | |
7919 | (gdbsim_target_open): ... this. | |
7920 | (_initialize_remote_sim): Adjust. | |
7921 | * remote.c (remote_doc): New. | |
7922 | (remote_target_info): New. | |
7923 | (remote_target) <shortname, longname, doc>: Delete. | |
7924 | <info>: New. | |
7925 | (extended_remote_target_info): New. | |
7926 | (extended_remote_target) <shortname, longname, doc>: Delete. | |
7927 | <info>: New. | |
7928 | (remote_target::open_1): Make static. Adjust. | |
7929 | * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target. | |
7930 | * s390-linux-nat.c (_initialize_s390_nat): Use | |
7931 | add_inf_child_target. | |
7932 | * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use | |
7933 | add_inf_child_target. | |
7934 | * sol-thread.c (thread_db_target_info): New. | |
7935 | (sol_thread_target) <shortname, longname, doc>: Delete. | |
7936 | <info>: New. | |
7937 | * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use | |
7938 | add_inf_child_target. | |
7939 | * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use | |
7940 | add_inf_child_target. | |
7941 | * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use | |
7942 | add_inf_child_target. | |
7943 | * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use | |
7944 | add_inf_child_target. | |
7945 | * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use | |
7946 | add_inf_child_target. | |
7947 | * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use | |
7948 | add_inf_child_target. | |
7949 | * spu-linux-nat.c (_initialize_spu_nat): Use | |
7950 | add_inf_child_target. | |
7951 | * spu-multiarch.c (spu_multiarch_target_info): New. | |
7952 | (spu_multiarch_target) <shortname, longname, doc>: Delete. | |
7953 | <info>: New. | |
7954 | * target-delegates.c: Regenerate. | |
7955 | * target.c: Include <unordered_map>. | |
7956 | (target_ops_p): Delete. | |
7957 | (DEF_VEC_P(target_ops_p)): Delete. | |
7958 | (target_factories): New. | |
7959 | (test_target_info): New. | |
7960 | (test_target_ops::info): New. | |
7961 | (open_target): Adjust to use target_factories. | |
7962 | (add_target_with_completer): Rename to ... | |
7963 | (add_target): ... this. Change prototype. Register target_info | |
7964 | and open callback in target_factories. Register target_info in | |
7965 | command context instead of target_ops. | |
7966 | (add_target): Delete old implementation. | |
7967 | (add_deprecated_target_alias): Change prototype. Adjust. | |
7968 | (the_native_target): New. | |
7969 | (set_native_target, get_native_target): New. | |
7970 | (find_default_run_target): Use the_native_target. | |
7971 | (find_attach_target, find_run_target): Simplify. | |
7972 | (target_ops::open): Delete. | |
7973 | (dummy_target_info): New. | |
7974 | (dummy_target::shortname, dummy_target::longname) | |
7975 | (dummy_target::doc): Delete. | |
7976 | (dummy_target::info): New. | |
7977 | (debug_target::shortname, debug_target::longname) | |
7978 | (debug_target::doc): Delete. | |
7979 | (debug_target::info): New. | |
7980 | * target.h (struct target_info): New. | |
7981 | (target_ops::~target_ops): Add comment. | |
7982 | (target_ops::info): New. | |
7983 | (target_ops::shortname, target_ops::longname, target_ops::doc): No | |
7984 | longer virtual. Implement in terms of target_info. | |
7985 | (set_native_target, get_native_target): Declare. | |
7986 | (target_open_ftype): New. | |
7987 | (add_target, add_target_with_completer) | |
7988 | (add_deprecated_target_alias): Change prototype. | |
7989 | (test_target) <shortname, longname, doc>: Delete. | |
7990 | <info>: New. | |
7991 | * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use | |
7992 | add_inf_child_target. | |
7993 | * tracefile-tfile.c (tfile_target_info): New. | |
7994 | (tfile_target) <shortname, longname, doc>: Delete. | |
7995 | <info>: New. | |
7996 | (tfile_target::open): Rename to ... | |
7997 | (tfile_target_open): ... this. | |
7998 | (_initialize_tracefile_tfile): Adjust. | |
7999 | * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use | |
8000 | add_inf_child_target. | |
8001 | * windows-nat.c (_initialize_windows_nat): Use | |
8002 | add_inf_child_target. | |
8003 | * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use | |
8004 | add_inf_child_target. | |
8005 | ||
135340af PA |
8006 | 2018-05-02 Pedro Alves <palves@redhat.com> |
8007 | ||
8008 | * linux-nat.h (linux_nat_target) <low_new_thread, | |
8009 | low_delete_thread, low_new_fork, low_forget_process, | |
8010 | low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>: | |
8011 | New virtual methods. | |
8012 | (linux_nat_set_new_thread, linux_nat_set_delete_thread) | |
8013 | (linux_nat_new_fork_ftype, linux_nat_set_new_fork) | |
8014 | (linux_nat_forget_process_ftype, linux_nat_set_forget_process) | |
8015 | (linux_nat_forget_process, linux_nat_set_siginfo_fixup) | |
8016 | (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event): | |
8017 | Delete. | |
8018 | * linux-fork.c (delete_fork): Adjust to call low method. | |
8019 | * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread) | |
8020 | (linux_nat_new_fork, linux_nat_forget_process_hook) | |
8021 | (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup) | |
8022 | (linux_nat_status_is_event): | |
8023 | (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp) | |
8024 | (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust | |
8025 | to call low method. | |
8026 | (sigtrap_is_event): Rename to ... | |
8027 | (linux_nat_target::low_status_is_event): ... this. | |
8028 | (linux_nat_set_status_is_event): Delete. | |
8029 | (save_stop_reason, linux_nat_wait_1) | |
8030 | (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call | |
8031 | low methods. | |
8032 | (linux_nat_set_new_thread, linux_nat_set_delete_thread) | |
8033 | (linux_nat_set_new_fork, linux_nat_set_forget_process) | |
8034 | (linux_nat_forget_process, linux_nat_set_siginfo_fixup) | |
8035 | (linux_nat_set_prepare_to_resume): Delete. | |
8036 | * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to | |
8037 | low virtual methods. | |
8038 | * amd64-linux-nat.c: Likewise. | |
8039 | * arm-linux-nat.c: Likewise. | |
8040 | * i386-linux-nat.c: Likewise. | |
8041 | * ia64-linux-nat.c: Likewise. | |
8042 | * mips-linux-nat.c: Likewise. | |
8043 | * ppc-linux-nat.c: Likewise. | |
8044 | * s390-linux-nat.c: Likewise. | |
8045 | * sparc64-linux-nat.c: Likewise. | |
8046 | * x86-linux-nat.c: Likewise. | |
8047 | * x86-linux-nat.h: Include "nat/x86-linux.h". | |
8048 | (x86_linux_nat_target) <low_new_fork, low_forget_process, | |
8049 | low_prepare_to_resume, low_new_thread, low_delete_thread>: | |
8050 | Override methods. | |
8051 | ||
57810aa7 PA |
8052 | 2018-05-02 Pedro Alves <palves@redhat.com> |
8053 | ||
8054 | * target.h (target_ops) | |
8055 | <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint, | |
8056 | stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint, | |
8057 | stopped_by_watchpoint, have_continuable_watchpoint, | |
8058 | stopped_data_address, watchpoint_addr_within_range, | |
8059 | can_accel_watchpoint_condition, can_run, thread_alive, | |
8060 | has_all_memory, has_memory, has_stack, has_registers, | |
8061 | has_execution, can_async_p, is_async_p, supports_non_stop, | |
8062 | always_non_stop_p, can_execute_reverse, supports_multi_process, | |
8063 | supports_enable_disable_tracepoint, | |
8064 | supports_disable_randomization, supports_string_tracing, | |
8065 | supports_evaluation_of_breakpoint_conditions, | |
8066 | can_run_breakpoint_commands, filesystem_is_local, | |
8067 | can_download_tracepoint, get_trace_state_variable_value, | |
8068 | set_trace_notes, get_tib_address, use_agent, can_use_agent, | |
8069 | record_is_replaying, record_will_replay, | |
8070 | augmented_libraries_svr4_read>: Adjust to return bool. | |
8071 | * aarch64-linux-nat.c: All implementations adjusted. | |
8072 | * aix-thread.c: All implementations adjusted. | |
8073 | * arm-linux-nat.c: All implementations adjusted. | |
8074 | * breakpoint.c: All implementations adjusted. | |
8075 | * bsd-kvm.c: All implementations adjusted. | |
8076 | * bsd-uthread.c: All implementations adjusted. | |
8077 | * corelow.c: All implementations adjusted. | |
8078 | * ctf.c: All implementations adjusted. | |
8079 | * darwin-nat.c: All implementations adjusted. | |
8080 | * darwin-nat.h: All implementations adjusted. | |
8081 | * exec.c: All implementations adjusted. | |
8082 | * fbsd-nat.c: All implementations adjusted. | |
8083 | * fbsd-nat.h: All implementations adjusted. | |
8084 | * gnu-nat.c: All implementations adjusted. | |
8085 | * gnu-nat.h: All implementations adjusted. | |
8086 | * go32-nat.c: All implementations adjusted. | |
8087 | * ia64-linux-nat.c: All implementations adjusted. | |
8088 | * inf-child.c: All implementations adjusted. | |
8089 | * inf-child.h: All implementations adjusted. | |
8090 | * inf-ptrace.c: All implementations adjusted. | |
8091 | * inf-ptrace.h: All implementations adjusted. | |
8092 | * linux-nat.c: All implementations adjusted. | |
8093 | * linux-nat.h: All implementations adjusted. | |
8094 | * mips-linux-nat.c: All implementations adjusted. | |
8095 | * nto-procfs.c: All implementations adjusted. | |
8096 | * ppc-linux-nat.c: All implementations adjusted. | |
8097 | * procfs.c: All implementations adjusted. | |
8098 | * ravenscar-thread.c: All implementations adjusted. | |
8099 | * record-btrace.c: All implementations adjusted. | |
8100 | * record-full.c: All implementations adjusted. | |
8101 | * remote-sim.c: All implementations adjusted. | |
8102 | * remote.c: All implementations adjusted. | |
8103 | * s390-linux-nat.c: All implementations adjusted. | |
8104 | * sol-thread.c: All implementations adjusted. | |
8105 | * spu-multiarch.c: All implementations adjusted. | |
8106 | * target-delegates.c: All implementations adjusted. | |
8107 | * target.c: All implementations adjusted. | |
8108 | * target.h: All implementations adjusted. | |
8109 | * tracefile-tfile.c: All implementations adjusted. | |
8110 | * tracefile.c: All implementations adjusted. | |
8111 | * tracefile.h: All implementations adjusted. | |
8112 | * windows-nat.c: All implementations adjusted. | |
8113 | * x86-linux-nat.h: All implementations adjusted. | |
8114 | * x86-nat.h: All implementations adjusted. | |
8115 | ||
ad6a4e2d PA |
8116 | 2018-05-02 Pedro Alves <palves@redhat.com> |
8117 | ||
8118 | * make-target-delegates (scan_target_h): Don't trim lines here. | |
8119 | Replace sequences of tabs and/or whitespace with a single | |
8120 | whitespace. | |
8121 | (top level, parsing methods): Trim each line before processing it | |
8122 | here. | |
8123 | ||
f6ac5f3d PA |
8124 | 2018-05-02 Pedro Alves <palves@redhat.com> |
8125 | John Baldwin <jhb@freebsd.org> | |
8126 | ||
8127 | * target.h (enum strata) <debug_stratum>: New. | |
8128 | (struct target_ops) <all delegation methods>: Replace by C++ | |
8129 | virtual methods, and drop "to_" prefix. All references updated | |
8130 | throughout. | |
8131 | <to_shortname, to_longname, to_doc, to_data, | |
8132 | to_have_steppable_watchpoint, to_have_continuable_watchpoint, | |
8133 | to_has_thread_control, to_attach_no_wait>: Delete, replaced by | |
8134 | virtual methods. All references updated throughout. | |
8135 | <can_attach, supports_terminal_ours, can_create_inferior, | |
8136 | get_thread_control_capabilities, attach_no_wait>: New | |
8137 | virtual methods. | |
8138 | <insert_breakpoint, remove_breakpoint>: Now | |
8139 | TARGET_DEFAULT_NORETURN methods. | |
8140 | <info_proc>: Now returns bool. | |
8141 | <to_magic>: Delete. | |
8142 | (OPS_MAGIC): Delete. | |
8143 | (current_target): Delete. All references replaced by references | |
8144 | to ... | |
8145 | (target_stack): ... this. New. | |
8146 | (target_shortname, target_longname): Adjust. | |
8147 | (target_can_run): Now a function declaration. | |
8148 | (default_child_has_all_memory, default_child_has_memory) | |
8149 | (default_child_has_stack, default_child_has_registers) | |
8150 | (default_child_has_execution): Remove target_ops parameter. | |
8151 | (complete_target_initialization): Delete. | |
8152 | (memory_breakpoint_target): New template class. | |
8153 | (test_target_ops): Refactor as a C++ class with virtual methods. | |
8154 | * make-target-delegates (NAME_PART): Tighten. | |
8155 | (POINTER_PART, CP_SYMBOL): New. | |
8156 | (SIMPLE_RETURN_PART): Reimplement. | |
8157 | (VEC_RETURN_PART): Expect less. | |
8158 | (RETURN_PART, VIRTUAL_PART): New. | |
8159 | (METHOD): Adjust to C++ virtual methods. | |
8160 | (scan_target_h): Remove reference to C99. | |
8161 | (dname): Output "target_ops::" prefix. | |
8162 | (write_function_header): Adjust to output a C++ class method. | |
8163 | (write_declaration): New. | |
8164 | (write_delegator): Adjust to output a C++ class method. | |
8165 | (tdname): Output "dummy_target::" prefix. | |
8166 | (write_tdefault, write_debugmethod): Adjust to output a C++ class | |
8167 | method. | |
8168 | (tdefault_names, debug_names): Delete. | |
8169 | (return_types, tdefaults, styles, argtypes_array): New. | |
8170 | (top level): All methods are delegators. | |
8171 | (print_class): New. | |
8172 | (top level): Print dummy_target and debug_target classes. | |
8173 | * target-delegates.c: Regenerate. | |
8174 | * target-debug.h (target_debug_print_enum_info_proc_what) | |
8175 | (target_debug_print_thread_control_capabilities) | |
8176 | (target_debug_print_thread_info_p): New. | |
8177 | * target.c (dummy_target): Delete. | |
8178 | (the_dummy_target, the_debug_target): New. | |
8179 | (target_stack): Now extern. | |
8180 | (set_targetdebug): Push/unpush debug target. | |
8181 | (default_child_has_all_memory, default_child_has_memory) | |
8182 | (default_child_has_stack, default_child_has_registers) | |
8183 | (default_child_has_execution): Remove target_ops parameter. | |
8184 | (complete_target_initialization): Delete. | |
8185 | (add_target_with_completer): No longer call | |
8186 | complete_target_initialization. | |
8187 | (target_supports_terminal_ours): Use regular delegation. | |
8188 | (update_current_target): Delete. | |
8189 | (push_target): No longer check magic number. Don't call | |
8190 | update_current_target. | |
8191 | (unpush_target): Don't call update_current_target. | |
8192 | (target_is_pushed): No longer check magic number. | |
8193 | (target_require_runnable): Skip for all stratums over | |
8194 | process_stratum. | |
8195 | (target_ops::info_proc): New. | |
8196 | (target_info_proc): Use find_target_at and | |
8197 | find_default_run_target. | |
8198 | (target_supports_disable_randomization): Use regular delegation. | |
8199 | (target_get_osdata): Use find_target_at. | |
8200 | (target_ops::open, target_ops::close, target_ops::can_attach) | |
8201 | (target_ops::attach, target_ops::can_create_inferior) | |
8202 | (target_ops::create_inferior, target_ops::can_run) | |
8203 | (target_can_run): New. | |
8204 | (default_fileio_target): Use regular delegation. | |
8205 | (target_ops::fileio_open, target_ops::fileio_pwrite) | |
8206 | (target_ops::fileio_pread, target_ops::fileio_fstat) | |
8207 | (target_ops::fileio_close, target_ops::fileio_unlink) | |
8208 | (target_ops::fileio_readlink): New. | |
8209 | (target_fileio_open_1, target_fileio_unlink) | |
8210 | (target_fileio_readlink): Always call the target method. Handle | |
8211 | FILEIO_ENOSYS. | |
8212 | (return_zero, return_zero_has_execution): Delete. | |
8213 | (init_dummy_target): Delete. | |
8214 | (dummy_target::dummy_target, dummy_target::shortname) | |
8215 | (dummy_target::longname, dummy_target::doc) | |
8216 | (debug_target::debug_target, debug_target::shortname) | |
8217 | (debug_target::longname, debug_target::doc): New. | |
8218 | (target_supports_delete_record): Use regular delegation. | |
8219 | (setup_target_debug): Delete. | |
8220 | (maintenance_print_target_stack): Skip debug_stratum. | |
8221 | (initialize_targets): Instantiate the_dummy_target and | |
8222 | the_debug_target. | |
8223 | * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to | |
8224 | use target_stack. | |
8225 | (target_auxv_search, fprint_target_auxv): Adjust. | |
8226 | (info_auxv_command): Adjust to use target_stack. | |
8227 | * auxv.h (target_auxv_parse): Remove 'ops' parameter. | |
8228 | * exceptions.c (print_flush): Handle a NULL target_stack. | |
8229 | * regcache.c (target_ops_no_register): Refactor as class with | |
8230 | virtual methods. | |
8231 | ||
8232 | * exec.c (exec_target): New class. | |
8233 | (exec_ops): Now an exec_target. | |
8234 | (exec_open, exec_close_1, exec_get_section_table) | |
8235 | (exec_xfer_partial, exec_files_info, exec_has_memory) | |
8236 | (exec_make_note_section): Refactor as exec_target methods. | |
8237 | (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops): | |
8238 | Delete. | |
8239 | (exec_target::find_memory_regions): New. | |
8240 | (_initialize_exec): Don't call init_exec_ops. | |
8241 | * gdbcore.h (exec_file_clear): Delete. | |
8242 | ||
8243 | * corefile.c (core_target): Delete. | |
8244 | (core_file_command): Adjust. | |
8245 | * corelow.c (core_target): New class. | |
8246 | (the_core_target): New. | |
8247 | (core_close): Remove target_ops parameter. | |
8248 | (core_close_cleanup): Adjust. | |
8249 | (core_target::close): New. | |
8250 | (core_open, core_detach, get_core_registers, core_files_info) | |
8251 | (core_xfer_partial, core_thread_alive, core_read_description) | |
8252 | (core_pid_to_str, core_thread_name, core_has_memory) | |
8253 | (core_has_stack, core_has_registers, core_info_proc): Rework as | |
8254 | core_target methods. | |
8255 | (ignore, core_remove_breakpoint, init_core_ops): Delete. | |
8256 | (_initialize_corelow): Initialize the_core_target. | |
8257 | * gdbcore.h (core_target): Delete. | |
8258 | (the_core_target): New. | |
8259 | ||
8260 | * ctf.c: (ctf_target): New class. | |
8261 | (ctf_ops): Now a ctf_target. | |
8262 | (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers) | |
8263 | (ctf_xfer_partial, ctf_get_trace_state_variable_value) | |
8264 | (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target | |
8265 | methods. | |
8266 | (init_ctf_ops): Delete. | |
8267 | (_initialize_ctf): Don't call it. | |
8268 | * tracefile-tfile.c (tfile_target): New class. | |
8269 | (tfile_ops): Now a tfile_target. | |
8270 | (tfile_open, tfile_close, tfile_files_info) | |
8271 | (tfile_get_tracepoint_status, tfile_trace_find) | |
8272 | (tfile_fetch_registers, tfile_xfer_partial) | |
8273 | (tfile_get_trace_state_variable_value, tfile_traceframe_info): | |
8274 | Refactor as tfile_target methods. | |
8275 | (tfile_xfer_partial_features): Remove target_ops parameter. | |
8276 | (init_tfile_ops): Delete. | |
8277 | (_initialize_tracefile_tfile): Don't call it. | |
8278 | * tracefile.c (tracefile_has_all_memory, tracefile_has_memory) | |
8279 | (tracefile_has_stack, tracefile_has_registers) | |
8280 | (tracefile_thread_alive, tracefile_get_trace_status): Refactor as | |
8281 | tracefile_target methods. | |
8282 | (init_tracefile_ops): Delete. | |
8283 | (tracefile_target::tracefile_target): New. | |
8284 | * tracefile.h: Include "target.h". | |
8285 | (tracefile_target): New class. | |
8286 | (init_tracefile_ops): Delete. | |
8287 | ||
8288 | * spu-multiarch.c (spu_multiarch_target): New class. | |
8289 | (spu_ops): Now a spu_multiarch_target. | |
8290 | (spu_thread_architecture, spu_region_ok_for_hw_watchpoint) | |
8291 | (spu_fetch_registers, spu_store_registers, spu_xfer_partial) | |
8292 | (spu_search_memory, spu_mourn_inferior): Refactor as | |
8293 | spu_multiarch_target methods. | |
8294 | (init_spu_ops): Delete. | |
8295 | (_initialize_spu_multiarch): Remove references to init_spu_ops, | |
8296 | complete_target_initialization. | |
8297 | ||
8298 | * ravenscar-thread.c (ravenscar_thread_target): New class. | |
8299 | (ravenscar_ops): Now a ravenscar_thread_target. | |
8300 | (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list) | |
8301 | (ravenscar_thread_alive, ravenscar_pid_to_str) | |
8302 | (ravenscar_fetch_registers, ravenscar_store_registers) | |
8303 | (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint) | |
8304 | (ravenscar_stopped_by_hw_breakpoint) | |
8305 | (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address) | |
8306 | (ravenscar_mourn_inferior, ravenscar_core_of_thread) | |
8307 | (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target | |
8308 | methods. | |
8309 | (init_ravenscar_thread_ops): Delete. | |
8310 | (_initialize_ravenscar): Remove references to | |
8311 | init_ravenscar_thread_ops and complete_target_initialization. | |
8312 | ||
8313 | * bsd-uthread.c (bsd_uthread_ops_hack): Delete. | |
8314 | (bsd_uthread_target): New class. | |
8315 | (bsd_uthread_ops): Now a bsd_uthread_target. | |
8316 | (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops. | |
8317 | (bsd_uthread_close, bsd_uthread_mourn_inferior) | |
8318 | (bsd_uthread_fetch_registers, bsd_uthread_store_registers) | |
8319 | (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive) | |
8320 | (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info) | |
8321 | (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods. | |
8322 | (bsd_uthread_target): Delete function. | |
8323 | (_initialize_bsd_uthread): Remove reference to | |
8324 | complete_target_initialization. | |
8325 | ||
8326 | * bfd-target.c (target_bfd_data): Delete. Fields folded into ... | |
8327 | (target_bfd): ... this new class. | |
8328 | (target_bfd_xfer_partial, target_bfd_get_section_table) | |
8329 | (target_bfd_close): Refactor as target_bfd methods. | |
8330 | (target_bfd::~target_bfd): New. | |
8331 | (target_bfd_reopen): Adjust. | |
8332 | (target_bfd::close): New. | |
8333 | ||
8334 | * record-btrace.c (record_btrace_target): New class. | |
8335 | (record_btrace_ops): Now a record_btrace_target. | |
8336 | (record_btrace_open, record_btrace_stop_recording) | |
8337 | (record_btrace_disconnect, record_btrace_close) | |
8338 | (record_btrace_async, record_btrace_info) | |
8339 | (record_btrace_insn_history, record_btrace_insn_history_range) | |
8340 | (record_btrace_insn_history_from, record_btrace_call_history) | |
8341 | (record_btrace_call_history_range) | |
8342 | (record_btrace_call_history_from, record_btrace_record_method) | |
8343 | (record_btrace_is_replaying, record_btrace_will_replay) | |
8344 | (record_btrace_xfer_partial, record_btrace_insert_breakpoint) | |
8345 | (record_btrace_remove_breakpoint, record_btrace_fetch_registers) | |
8346 | (record_btrace_store_registers, record_btrace_prepare_to_store) | |
8347 | (record_btrace_to_get_unwinder) | |
8348 | (record_btrace_to_get_tailcall_unwinder, record_btrace_resume) | |
8349 | (record_btrace_commit_resume, record_btrace_wait) | |
8350 | (record_btrace_stop, record_btrace_can_execute_reverse) | |
8351 | (record_btrace_stopped_by_sw_breakpoint) | |
8352 | (record_btrace_supports_stopped_by_sw_breakpoint) | |
8353 | (record_btrace_stopped_by_hw_breakpoint) | |
8354 | (record_btrace_supports_stopped_by_hw_breakpoint) | |
8355 | (record_btrace_update_thread_list, record_btrace_thread_alive) | |
8356 | (record_btrace_goto_begin, record_btrace_goto_end) | |
8357 | (record_btrace_goto, record_btrace_stop_replaying_all) | |
8358 | (record_btrace_execution_direction) | |
8359 | (record_btrace_prepare_to_generate_core) | |
8360 | (record_btrace_done_generating_core): Refactor as | |
8361 | record_btrace_target methods. | |
8362 | (init_record_btrace_ops): Delete. | |
8363 | (_initialize_record_btrace): Remove reference to | |
8364 | init_record_btrace_ops. | |
8365 | * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to | |
8366 | the execution_direction global. | |
8367 | (record_full_base_target, record_full_target) | |
8368 | (record_full_core_target): New classes. | |
8369 | (record_full_ops): Now a record_full_target. | |
8370 | (record_full_core_ops): Now a record_full_core_target. | |
8371 | (record_full_target::detach, record_full_target::disconnect) | |
8372 | (record_full_core_target::disconnect) | |
8373 | (record_full_target::mourn_inferior, record_full_target::kill): | |
8374 | New. | |
8375 | (record_full_open, record_full_close, record_full_async): Refactor | |
8376 | as methods of the record_full_base_target class. | |
8377 | (record_full_resume, record_full_commit_resume): Refactor | |
8378 | as methods of the record_full_target class. | |
8379 | (record_full_wait, record_full_stopped_by_watchpoint) | |
8380 | (record_full_stopped_data_address) | |
8381 | (record_full_stopped_by_sw_breakpoint) | |
8382 | (record_full_supports_stopped_by_sw_breakpoint) | |
8383 | (record_full_stopped_by_hw_breakpoint) | |
8384 | (record_full_supports_stopped_by_hw_breakpoint): Refactor as | |
8385 | methods of the record_full_base_target class. | |
8386 | (record_full_store_registers, record_full_xfer_partial) | |
8387 | (record_full_insert_breakpoint, record_full_remove_breakpoint): | |
8388 | Refactor as methods of the record_full_target class. | |
8389 | (record_full_can_execute_reverse, record_full_get_bookmark) | |
8390 | (record_full_goto_bookmark, record_full_execution_direction) | |
8391 | (record_full_record_method, record_full_info, record_full_delete) | |
8392 | (record_full_is_replaying, record_full_will_replay) | |
8393 | (record_full_goto_begin, record_full_goto_end, record_full_goto) | |
8394 | (record_full_stop_replaying): Refactor as methods of the | |
8395 | record_full_base_target class. | |
8396 | (record_full_core_resume, record_full_core_kill) | |
8397 | (record_full_core_fetch_registers) | |
8398 | (record_full_core_prepare_to_store) | |
8399 | (record_full_core_store_registers, record_full_core_xfer_partial) | |
8400 | (record_full_core_insert_breakpoint) | |
8401 | (record_full_core_remove_breakpoint) | |
8402 | (record_full_core_has_execution): Refactor | |
8403 | as methods of the record_full_core_target class. | |
8404 | (record_full_base_target::supports_delete_record): New. | |
8405 | (init_record_full_ops): Delete. | |
8406 | (init_record_full_core_ops): Delete. | |
8407 | (record_full_save): Refactor as method of the | |
8408 | record_full_base_target class. | |
8409 | (_initialize_record_full): Remove references to | |
8410 | init_record_full_ops and init_record_full_core_ops. | |
8411 | ||
8412 | * remote.c (remote_target, extended_remote_target): New classes. | |
8413 | (remote_ops): Now a remote_target. | |
8414 | (extended_remote_ops): Now an extended_remote_target. | |
8415 | (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint) | |
8416 | (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint) | |
8417 | (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint) | |
8418 | (remote_pass_signals, remote_set_syscall_catchpoint) | |
8419 | (remote_program_signals, ) | |
8420 | (remote_thread_always_alive): Remove target_ops parameter. | |
8421 | (remote_thread_alive, remote_thread_name) | |
8422 | (remote_update_thread_list, remote_threads_extra_info) | |
8423 | (remote_static_tracepoint_marker_at) | |
8424 | (remote_static_tracepoint_markers_by_strid) | |
8425 | (remote_get_ada_task_ptid, remote_close, remote_start_remote) | |
8426 | (remote_open): Refactor as methods of remote_target. | |
8427 | (extended_remote_open, extended_remote_detach) | |
8428 | (extended_remote_attach, extended_remote_post_attach): | |
8429 | (extended_remote_supports_disable_randomization) | |
8430 | (extended_remote_create_inferior): : Refactor as method of | |
8431 | extended_remote_target. | |
8432 | (remote_set_permissions, remote_open_1, remote_detach) | |
8433 | (remote_follow_fork, remote_follow_exec, remote_disconnect) | |
8434 | (remote_resume, remote_commit_resume, remote_stop) | |
8435 | (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior) | |
8436 | (remote_terminal_ours, remote_wait, remote_fetch_registers) | |
8437 | (remote_prepare_to_store, remote_store_registers) | |
8438 | (remote_flash_erase, remote_flash_done, remote_files_info) | |
8439 | (remote_kill, remote_mourn, remote_insert_breakpoint) | |
8440 | (remote_remove_breakpoint, remote_insert_watchpoint) | |
8441 | (remote_watchpoint_addr_within_range) | |
8442 | (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint) | |
8443 | (remote_check_watch_resources, remote_stopped_by_sw_breakpoint) | |
8444 | (remote_supports_stopped_by_sw_breakpoint) | |
8445 | (remote_stopped_by_hw_breakpoint) | |
8446 | (remote_supports_stopped_by_hw_breakpoint) | |
8447 | (remote_stopped_by_watchpoint, remote_stopped_data_address) | |
8448 | (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint) | |
8449 | (remote_verify_memory): Refactor as methods of remote_target. | |
8450 | (remote_write_qxfer, remote_read_qxfer): Remove target_ops | |
8451 | parameter. | |
8452 | (remote_xfer_partial, remote_get_memory_xfer_limit) | |
8453 | (remote_search_memory, remote_rcmd, remote_memory_map) | |
8454 | (remote_pid_to_str, remote_get_thread_local_address) | |
8455 | (remote_get_tib_address, remote_read_description): Refactor as | |
8456 | methods of remote_target. | |
8457 | (remote_target::fileio_open, remote_target::fileio_pwrite) | |
8458 | (remote_target::fileio_pread, remote_target::fileio_close): New. | |
8459 | (remote_hostio_readlink, remote_hostio_fstat) | |
8460 | (remote_filesystem_is_local, remote_can_execute_reverse) | |
8461 | (remote_supports_non_stop, remote_supports_disable_randomization) | |
8462 | (remote_supports_multi_process, remote_supports_cond_breakpoints) | |
8463 | (remote_supports_enable_disable_tracepoint) | |
8464 | (remote_supports_string_tracing) | |
8465 | (remote_can_run_breakpoint_commands, remote_trace_init) | |
8466 | (remote_download_tracepoint, remote_can_download_tracepoint) | |
8467 | (remote_download_trace_state_variable, remote_enable_tracepoint) | |
8468 | (remote_disable_tracepoint, remote_trace_set_readonly_regions) | |
8469 | (remote_trace_start, remote_get_trace_status) | |
8470 | (remote_get_tracepoint_status, remote_trace_stop) | |
8471 | (remote_trace_find, remote_get_trace_state_variable_value) | |
8472 | (remote_save_trace_data, remote_get_raw_trace_data) | |
8473 | (remote_set_disconnected_tracing, remote_core_of_thread) | |
8474 | (remote_set_circular_trace_buffer, remote_traceframe_info) | |
8475 | (remote_get_min_fast_tracepoint_insn_len) | |
8476 | (remote_set_trace_buffer_size, remote_set_trace_notes) | |
8477 | (remote_use_agent, remote_can_use_agent, remote_enable_btrace) | |
8478 | (remote_disable_btrace, remote_teardown_btrace) | |
8479 | (remote_read_btrace, remote_btrace_conf) | |
8480 | (remote_augmented_libraries_svr4_read, remote_load) | |
8481 | (remote_pid_to_exec_file, remote_can_do_single_step) | |
8482 | (remote_execution_direction, remote_thread_handle_to_thread_info): | |
8483 | Refactor as methods of remote_target. | |
8484 | (init_remote_ops, init_extended_remote_ops): Delete. | |
8485 | (remote_can_async_p, remote_is_async_p, remote_async) | |
8486 | (remote_thread_events, remote_upload_tracepoints) | |
8487 | (remote_upload_trace_state_variables): Refactor as methods of | |
8488 | remote_target. | |
8489 | (_initialize_remote): Remove references to init_remote_ops and | |
8490 | init_extended_remote_ops. | |
8491 | ||
8492 | * remote-sim.c (gdbsim_target): New class. | |
8493 | (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill) | |
8494 | (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close) | |
8495 | (gdbsim_detach, gdbsim_resume, gdbsim_interrupt) | |
8496 | (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial) | |
8497 | (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive) | |
8498 | (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory): | |
8499 | Refactor as methods of gdbsim_target. | |
8500 | (gdbsim_ops): Now a gdbsim_target. | |
8501 | (init_gdbsim_ops): Delete. | |
8502 | (gdbsim_cntrl_c): Adjust. | |
8503 | (_initialize_remote_sim): Remove reference to init_gdbsim_ops. | |
8504 | ||
8505 | * amd64-linux-nat.c (amd64_linux_nat_target): New class. | |
8506 | (the_amd64_linux_nat_target): New. | |
8507 | (amd64_linux_fetch_inferior_registers) | |
8508 | (amd64_linux_store_inferior_registers): Refactor as methods of | |
8509 | amd64_linux_nat_target. | |
8510 | (_initialize_amd64_linux_nat): Adjust. Set linux_target. | |
8511 | * i386-linux-nat.c: Don't include "linux-nat.h". | |
8512 | (i386_linux_nat_target): New class. | |
8513 | (the_i386_linux_nat_target): New. | |
8514 | (i386_linux_fetch_inferior_registers) | |
8515 | (i386_linux_store_inferior_registers, i386_linux_resume): Refactor | |
8516 | as methods of i386_linux_nat_target. | |
8517 | (_initialize_i386_linux_nat): Adjust. Set linux_target. | |
8518 | * inf-child.c (inf_child_ops): Delete. | |
8519 | (inf_child_fetch_inferior_registers) | |
8520 | (inf_child_store_inferior_registers): Delete. | |
8521 | (inf_child_post_attach, inf_child_prepare_to_store): Refactor as | |
8522 | methods of inf_child_target. | |
8523 | (inf_child_target::supports_terminal_ours) | |
8524 | (inf_child_target::terminal_init) | |
8525 | (inf_child_target::terminal_inferior) | |
8526 | (inf_child_target::terminal_ours_for_output) | |
8527 | (inf_child_target::terminal_ours, inf_child_target::interrupt) | |
8528 | (inf_child_target::pass_ctrlc, inf_child_target::terminal_info): | |
8529 | New. | |
8530 | (inf_child_open, inf_child_disconnect, inf_child_close) | |
8531 | (inf_child_mourn_inferior, inf_child_maybe_unpush_target) | |
8532 | (inf_child_post_startup_inferior, inf_child_can_run) | |
8533 | (inf_child_pid_to_exec_file): Refactor as methods of | |
8534 | inf_child_target. | |
8535 | (inf_child_follow_fork): Delete. | |
8536 | (inf_child_target::can_create_inferior) | |
8537 | (inf_child_target::can_attach): New. | |
8538 | (inf_child_target::has_all_memory, inf_child_target::has_memory) | |
8539 | (inf_child_target::has_stack, inf_child_target::has_registers) | |
8540 | (inf_child_target::has_execution): New. | |
8541 | (inf_child_fileio_open, inf_child_fileio_pwrite) | |
8542 | (inf_child_fileio_pread, inf_child_fileio_fstat) | |
8543 | (inf_child_fileio_close, inf_child_fileio_unlink) | |
8544 | (inf_child_fileio_readlink, inf_child_use_agent) | |
8545 | (inf_child_can_use_agent): Refactor as methods of | |
8546 | inf_child_target. | |
8547 | (return_zero, inf_child_target): Delete. | |
8548 | (inf_child_target::inf_child_target): New. | |
8549 | * inf-child.h: Include "target.h". | |
8550 | (inf_child_target): Delete function prototype. | |
8551 | (inf_child_target): New class. | |
8552 | (inf_child_open_target, inf_child_mourn_inferior) | |
8553 | (inf_child_maybe_unpush_target): Delete. | |
8554 | * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New. | |
8555 | (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint) | |
8556 | (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior) | |
8557 | (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior) | |
8558 | (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach) | |
8559 | (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume) | |
8560 | (inf_ptrace_wait, inf_ptrace_xfer_partial) | |
8561 | (inf_ptrace_thread_alive, inf_ptrace_files_info) | |
8562 | (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as | |
8563 | methods of inf_ptrace_target. | |
8564 | (inf_ptrace_target): Delete function. | |
8565 | * inf-ptrace.h: Include "inf-child.h". | |
8566 | (inf_ptrace_target): Delete function declaration. | |
8567 | (inf_ptrace_target): New class. | |
8568 | (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete. | |
8569 | * linux-nat.c (linux_target): New. | |
8570 | (linux_ops, linux_ops_saved, super_xfer_partial): Delete. | |
8571 | (linux_nat_target::~linux_nat_target): New. | |
8572 | (linux_child_post_attach, linux_child_post_startup_inferior) | |
8573 | (linux_child_follow_fork, linux_child_insert_fork_catchpoint) | |
8574 | (linux_child_remove_fork_catchpoint) | |
8575 | (linux_child_insert_vfork_catchpoint) | |
8576 | (linux_child_remove_vfork_catchpoint) | |
8577 | (linux_child_insert_exec_catchpoint) | |
8578 | (linux_child_remove_exec_catchpoint) | |
8579 | (linux_child_set_syscall_catchpoint, linux_nat_pass_signals) | |
8580 | (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach) | |
8581 | (linux_nat_resume, linux_nat_stopped_by_watchpoint) | |
8582 | (linux_nat_stopped_data_address) | |
8583 | (linux_nat_stopped_by_sw_breakpoint) | |
8584 | (linux_nat_supports_stopped_by_sw_breakpoint) | |
8585 | (linux_nat_stopped_by_hw_breakpoint) | |
8586 | (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait) | |
8587 | (linux_nat_kill, linux_nat_mourn_inferior) | |
8588 | (linux_nat_xfer_partial, linux_nat_thread_alive) | |
8589 | (linux_nat_update_thread_list, linux_nat_pid_to_str) | |
8590 | (linux_nat_thread_name, linux_child_pid_to_exec_file) | |
8591 | (linux_child_static_tracepoint_markers_by_strid) | |
8592 | (linux_nat_is_async_p, linux_nat_can_async_p) | |
8593 | (linux_nat_supports_non_stop, linux_nat_always_non_stop_p) | |
8594 | (linux_nat_supports_multi_process) | |
8595 | (linux_nat_supports_disable_randomization, linux_nat_async) | |
8596 | (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space) | |
8597 | (linux_nat_core_of_thread, linux_nat_filesystem_is_local) | |
8598 | (linux_nat_fileio_open, linux_nat_fileio_readlink) | |
8599 | (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as | |
8600 | methods of linux_nat_target. | |
8601 | (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial) | |
8602 | (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops | |
8603 | parameter. | |
8604 | (check_stopped_by_watchpoint): Adjust. | |
8605 | (linux_xfer_partial): Delete. | |
8606 | (linux_target_install_ops, linux_target, linux_nat_add_target): | |
8607 | Delete. | |
8608 | (linux_nat_target::linux_nat_target): New. | |
8609 | * linux-nat.h: Include "inf-ptrace.h". | |
8610 | (linux_nat_target): New. | |
8611 | (linux_target, linux_target_install_ops, linux_nat_add_target): | |
8612 | Delete function declarations. | |
8613 | (linux_target): Declare global. | |
8614 | * linux-thread-db.c (thread_db_target): New. | |
8615 | (thread_db_target::thread_db_target): New. | |
8616 | (thread_db_ops): Delete. | |
8617 | (the_thread_db_target): New. | |
8618 | (thread_db_detach, thread_db_wait, thread_db_mourn_inferior) | |
8619 | (thread_db_update_thread_list, thread_db_pid_to_str) | |
8620 | (thread_db_extra_thread_info) | |
8621 | (thread_db_thread_handle_to_thread_info) | |
8622 | (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid) | |
8623 | (thread_db_resume): Refactor as methods of thread_db_target. | |
8624 | (init_thread_db_ops): Delete. | |
8625 | (_initialize_thread_db): Remove reference to init_thread_db_ops. | |
8626 | * x86-linux-nat.c: Don't include "linux-nat.h". | |
8627 | (super_post_startup_inferior): Delete. | |
8628 | (x86_linux_nat_target::~x86_linux_nat_target): New. | |
8629 | (x86_linux_child_post_startup_inferior) | |
8630 | (x86_linux_read_description, x86_linux_enable_btrace) | |
8631 | (x86_linux_disable_btrace, x86_linux_teardown_btrace) | |
8632 | (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as | |
8633 | methods of x86_linux_nat_target. | |
8634 | (x86_linux_create_target): Delete. Bits folded ... | |
8635 | (x86_linux_add_target): ... here. Now takes a linux_nat_target | |
8636 | pointer. | |
8637 | * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h". | |
8638 | (x86_linux_nat_target): New class. | |
8639 | (x86_linux_create_target): Delete. | |
8640 | (x86_linux_add_target): Now takes a linux_nat_target pointer. | |
8641 | * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint) | |
8642 | (x86_region_ok_for_watchpoint, x86_stopped_data_address) | |
8643 | (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint) | |
8644 | (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint) | |
8645 | (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and | |
8646 | make extern. | |
8647 | (x86_use_watchpoints): Delete. | |
8648 | * x86-nat.h: Include "breakpoint.h" and "target.h". | |
8649 | (x86_use_watchpoints): Delete. | |
8650 | (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint) | |
8651 | (x86_stopped_by_watchpoint, x86_stopped_data_address) | |
8652 | (x86_insert_watchpoint, x86_remove_watchpoint) | |
8653 | (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint) | |
8654 | (x86_stopped_by_hw_breakpoint): New declarations. | |
8655 | (x86_nat_target): New template class. | |
8656 | ||
8657 | * ppc-linux-nat.c (ppc_linux_nat_target): New class. | |
8658 | (the_ppc_linux_nat_target): New. | |
8659 | (ppc_linux_fetch_inferior_registers) | |
8660 | (ppc_linux_can_use_hw_breakpoint) | |
8661 | (ppc_linux_region_ok_for_hw_watchpoint) | |
8662 | (ppc_linux_ranged_break_num_registers) | |
8663 | (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint) | |
8664 | (ppc_linux_insert_mask_watchpoint) | |
8665 | (ppc_linux_remove_mask_watchpoint) | |
8666 | (ppc_linux_can_accel_watchpoint_condition) | |
8667 | (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint) | |
8668 | (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint) | |
8669 | (ppc_linux_watchpoint_addr_within_range) | |
8670 | (ppc_linux_masked_watch_num_registers) | |
8671 | (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse) | |
8672 | (ppc_linux_read_description): Refactor as methods of | |
8673 | ppc_linux_nat_target. | |
8674 | (_initialize_ppc_linux_nat): Adjust. Set linux_target. | |
8675 | ||
8676 | * procfs.c (procfs_xfer_partial): Delete forward declaration. | |
8677 | (procfs_target): New class. | |
8678 | (the_procfs_target): New. | |
8679 | (procfs_target): Delete function. | |
8680 | (procfs_auxv_parse, procfs_attach, procfs_detach) | |
8681 | (procfs_fetch_registers, procfs_store_registers, procfs_wait) | |
8682 | (procfs_xfer_partial, procfs_resume, procfs_pass_signals) | |
8683 | (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior) | |
8684 | (procfs_create_inferior, procfs_update_thread_list) | |
8685 | (procfs_thread_alive, procfs_pid_to_str) | |
8686 | (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint) | |
8687 | (procfs_stopped_data_address, procfs_insert_watchpoint) | |
8688 | (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint) | |
8689 | (proc_find_memory_regions, procfs_info_proc) | |
8690 | (procfs_make_note_section): Refactor as methods of procfs_target. | |
8691 | (_initialize_procfs): Adjust. | |
8692 | * sol-thread.c (sol_thread_target): New class. | |
8693 | (sol_thread_ops): Now a sol_thread_target. | |
8694 | (sol_thread_detach, sol_thread_resume, sol_thread_wait) | |
8695 | (sol_thread_fetch_registers, sol_thread_store_registers) | |
8696 | (sol_thread_xfer_partial, sol_thread_mourn_inferior) | |
8697 | (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list) | |
8698 | (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target. | |
8699 | (init_sol_thread_ops): Delete. | |
8700 | (_initialize_sol_thread): Adjust. Remove references to | |
8701 | init_sol_thread_ops and complete_target_initialization. | |
8702 | ||
8703 | * windows-nat.c (windows_nat_target): New class. | |
8704 | (windows_fetch_inferior_registers) | |
8705 | (windows_store_inferior_registers, windows_resume, windows_wait) | |
8706 | (windows_attach, windows_detach, windows_pid_to_exec_file) | |
8707 | (windows_files_info, windows_create_inferior) | |
8708 | (windows_mourn_inferior, windows_interrupt, windows_kill_inferior) | |
8709 | (windows_close, windows_pid_to_str, windows_xfer_partial) | |
8710 | (windows_get_tib_address, windows_get_ada_task_ptid) | |
8711 | (windows_thread_name, windows_thread_alive): Refactor as | |
8712 | windows_nat_target methods. | |
8713 | (do_initial_windows_stuff): Adjust. | |
8714 | (windows_target): Delete function. | |
8715 | (_initialize_windows_nat): Adjust. | |
8716 | ||
8717 | * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt) | |
8718 | (darwin_mourn_inferior, darwin_kill_inferior) | |
8719 | (darwin_create_inferior, darwin_attach, darwin_detach) | |
8720 | (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial) | |
8721 | (darwin_pid_to_exec_file, darwin_get_ada_task_ptid) | |
8722 | (darwin_supports_multi_process): Refactor as darwin_nat_target | |
8723 | methods. | |
8724 | (darwin_resume_to, darwin_files_info): Delete. | |
8725 | (_initialize_darwin_inferior): Rename to ... | |
8726 | (_initialize_darwin_nat): ... this. Adjust to C++ification. | |
8727 | * darwin-nat.h: Include "inf-child.h". | |
8728 | (darwin_nat_target): New class. | |
8729 | (darwin_complete_target): Delete. | |
8730 | * i386-darwin-nat.c (i386_darwin_nat_target): New class. | |
8731 | (darwin_target): New. | |
8732 | (i386_darwin_fetch_inferior_registers) | |
8733 | (i386_darwin_store_inferior_registers): Refactor as methods of | |
8734 | darwin_nat_target. | |
8735 | (darwin_complete_target): Delete, with ... | |
8736 | (_initialize_i386_darwin_nat): ... bits factored out here. | |
8737 | ||
8738 | * alpha-linux-nat.c (alpha_linux_nat_target): New class. | |
8739 | (the_alpha_linux_nat_target): New. | |
8740 | (alpha_linux_register_u_offset): Refactor as | |
8741 | alpha_linux_nat_target method. | |
8742 | (_initialize_alpha_linux_nat): Adjust. | |
8743 | * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete. | |
8744 | (inf_ptrace_fetch_register, inf_ptrace_fetch_registers) | |
8745 | (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as | |
8746 | methods of linux_nat_trad_target. | |
8747 | (linux_trad_target): Delete. | |
8748 | * linux-nat-trad.h (linux_trad_target): Delete function. | |
8749 | (linux_nat_trad_target): New class. | |
8750 | * mips-linux-nat.c (mips_linux_nat_target): New class. | |
8751 | (super_fetch_registers, super_store_registers, super_close): | |
8752 | Delete. | |
8753 | (the_mips_linux_nat_target): New. | |
8754 | (mips64_linux_regsets_fetch_registers) | |
8755 | (mips64_linux_regsets_store_registers) | |
8756 | (mips64_linux_fetch_registers, mips64_linux_store_registers) | |
8757 | (mips_linux_register_u_offset, mips_linux_read_description) | |
8758 | (mips_linux_can_use_hw_breakpoint) | |
8759 | (mips_linux_stopped_by_watchpoint) | |
8760 | (mips_linux_stopped_data_address) | |
8761 | (mips_linux_region_ok_for_hw_watchpoint) | |
8762 | (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint) | |
8763 | (mips_linux_close): Refactor as methods of mips_linux_nat. | |
8764 | (_initialize_mips_linux_nat): Adjust to C++ification. | |
8765 | ||
8766 | * aix-thread.c (aix_thread_target): New class. | |
8767 | (aix_thread_ops): Now an aix_thread_target. | |
8768 | (aix_thread_detach, aix_thread_resume, aix_thread_wait) | |
8769 | (aix_thread_fetch_registers, aix_thread_store_registers) | |
8770 | (aix_thread_xfer_partial, aix_thread_mourn_inferior) | |
8771 | (aix_thread_thread_alive, aix_thread_pid_to_str) | |
8772 | (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid): | |
8773 | Refactor as methods of aix_thread_target. | |
8774 | (init_aix_thread_ops): Delete. | |
8775 | (_initialize_aix_thread): Remove references to init_aix_thread_ops | |
8776 | and complete_target_initialization. | |
8777 | * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete. | |
8778 | (rs6000_nat_target): New class. | |
8779 | (the_rs6000_nat_target): New. | |
8780 | (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers) | |
8781 | (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior) | |
8782 | (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods. | |
8783 | (super_create_inferior): Delete. | |
8784 | (_initialize_rs6000_nat): Adjust to C++ification. | |
8785 | ||
8786 | * arm-linux-nat.c (arm_linux_nat_target): New class. | |
8787 | (the_arm_linux_nat_target): New. | |
8788 | (arm_linux_fetch_inferior_registers) | |
8789 | (arm_linux_store_inferior_registers, arm_linux_read_description) | |
8790 | (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint) | |
8791 | (arm_linux_remove_hw_breakpoint) | |
8792 | (arm_linux_region_ok_for_hw_watchpoint) | |
8793 | (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint) | |
8794 | (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint) | |
8795 | (arm_linux_watchpoint_addr_within_range): Refactor as methods of | |
8796 | arm_linux_nat_target. | |
8797 | (_initialize_arm_linux_nat): Adjust to C++ification. | |
8798 | ||
8799 | * aarch64-linux-nat.c (aarch64_linux_nat_target): New class. | |
8800 | (the_aarch64_linux_nat_target): New. | |
8801 | (aarch64_linux_fetch_inferior_registers) | |
8802 | (aarch64_linux_store_inferior_registers) | |
8803 | (aarch64_linux_child_post_startup_inferior) | |
8804 | (aarch64_linux_read_description) | |
8805 | (aarch64_linux_can_use_hw_breakpoint) | |
8806 | (aarch64_linux_insert_hw_breakpoint) | |
8807 | (aarch64_linux_remove_hw_breakpoint) | |
8808 | (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint) | |
8809 | (aarch64_linux_region_ok_for_hw_watchpoint) | |
8810 | (aarch64_linux_stopped_data_address) | |
8811 | (aarch64_linux_stopped_by_watchpoint) | |
8812 | (aarch64_linux_watchpoint_addr_within_range) | |
8813 | (aarch64_linux_can_do_single_step): Refactor as methods of | |
8814 | aarch64_linux_nat_target. | |
8815 | (super_post_startup_inferior): Delete. | |
8816 | (_initialize_aarch64_linux_nat): Adjust to C++ification. | |
8817 | ||
8818 | * hppa-linux-nat.c (hppa_linux_nat_target): New class. | |
8819 | (the_hppa_linux_nat_target): New. | |
8820 | (hppa_linux_fetch_inferior_registers) | |
8821 | (hppa_linux_store_inferior_registers): Refactor as methods of | |
8822 | hppa_linux_nat_target. | |
8823 | (_initialize_hppa_linux_nat): Adjust to C++ification. | |
8824 | ||
8825 | * ia64-linux-nat.c (ia64_linux_nat_target): New class. | |
8826 | (the_ia64_linux_nat_target): New. | |
8827 | (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint) | |
8828 | (ia64_linux_stopped_data_address) | |
8829 | (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers) | |
8830 | (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as | |
8831 | ia64_linux_nat_target methods. | |
8832 | (super_xfer_partial): Delete. | |
8833 | (_initialize_ia64_linux_nat): Adjust to C++ification. | |
8834 | ||
8835 | * m32r-linux-nat.c (m32r_linux_nat_target): New class. | |
8836 | (the_m32r_linux_nat_target): New. | |
8837 | (m32r_linux_fetch_inferior_registers) | |
8838 | (m32r_linux_store_inferior_registers): Refactor as | |
8839 | m32r_linux_nat_target methods. | |
8840 | (_initialize_m32r_linux_nat): Adjust to C++ification. | |
8841 | ||
8842 | * m68k-linux-nat.c (m68k_linux_nat_target): New class. | |
8843 | (the_m68k_linux_nat_target): New. | |
8844 | (m68k_linux_fetch_inferior_registers) | |
8845 | (m68k_linux_store_inferior_registers): Refactor as | |
8846 | m68k_linux_nat_target methods. | |
8847 | (_initialize_m68k_linux_nat): Adjust to C++ification. | |
8848 | ||
8849 | * s390-linux-nat.c (s390_linux_nat_target): New class. | |
8850 | (the_s390_linux_nat_target): New. | |
8851 | (s390_linux_fetch_inferior_registers) | |
8852 | (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint) | |
8853 | (s390_insert_watchpoint, s390_remove_watchpoint) | |
8854 | (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint) | |
8855 | (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint) | |
8856 | (s390_auxv_parse, s390_read_description): Refactor as methods of | |
8857 | s390_linux_nat_target. | |
8858 | (_initialize_s390_nat): Adjust to C++ification. | |
8859 | ||
8860 | * sparc-linux-nat.c (sparc_linux_nat_target): New class. | |
8861 | (the_sparc_linux_nat_target): New. | |
8862 | (_initialize_sparc_linux_nat): Adjust to C++ification. | |
8863 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
8864 | (sparc_store_inferior_registers): Remove target_ops parameter. | |
8865 | * sparc-nat.h (sparc_fetch_inferior_registers) | |
8866 | (sparc_store_inferior_registers): Remove target_ops parameter. | |
8867 | * sparc64-linux-nat.c (sparc64_linux_nat_target): New class. | |
8868 | (the_sparc64_linux_nat_target): New. | |
8869 | (_initialize_sparc64_linux_nat): Adjust to C++ification. | |
8870 | ||
8871 | * spu-linux-nat.c (spu_linux_nat_target): New class. | |
8872 | (the_spu_linux_nat_target): New. | |
8873 | (spu_child_post_startup_inferior, spu_child_post_attach) | |
8874 | (spu_child_wait, spu_fetch_inferior_registers) | |
8875 | (spu_store_inferior_registers, spu_xfer_partial) | |
8876 | (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target | |
8877 | methods. | |
8878 | (_initialize_spu_nat): Adjust to C++ification. | |
8879 | ||
8880 | * tilegx-linux-nat.c (tilegx_linux_nat_target): New class. | |
8881 | (the_tilegx_linux_nat_target): New. | |
8882 | (fetch_inferior_registers, store_inferior_registers): | |
8883 | Refactor as methods. | |
8884 | (_initialize_tile_linux_nat): Adjust to C++ification. | |
8885 | ||
8886 | * xtensa-linux-nat.c (xtensa_linux_nat_target): New class. | |
8887 | (the_xtensa_linux_nat_target): New. | |
8888 | (xtensa_linux_fetch_inferior_registers) | |
8889 | (xtensa_linux_store_inferior_registers): Refactor as | |
8890 | xtensa_linux_nat_target methods. | |
8891 | (_initialize_xtensa_linux_nat): Adjust to C++ification. | |
8892 | ||
8893 | * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete. | |
8894 | (fbsd_pid_to_exec_file, fbsd_find_memory_regions) | |
8895 | (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial) | |
8896 | (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name) | |
8897 | (fbsd_update_thread_list, fbsd_resume, fbsd_wait) | |
8898 | (fbsd_stopped_by_sw_breakpoint) | |
8899 | (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork) | |
8900 | (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint) | |
8901 | (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint) | |
8902 | (fbsd_post_startup_inferior, fbsd_post_attach) | |
8903 | (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint) | |
8904 | (fbsd_set_syscall_catchpoint) | |
8905 | (super_xfer_partial, super_resume, super_wait) | |
8906 | (fbsd_supports_stopped_by_hw_breakpoint): Delete. | |
8907 | (fbsd_handle_debug_trap): Remove target_ops parameter. | |
8908 | (fbsd_nat_add_target): Delete. | |
8909 | * fbsd-nat.h: Include "inf-ptrace.h". | |
8910 | (fbsd_nat_add_target): Delete. | |
8911 | (USE_SIGTRAP_SIGINFO): Define. | |
8912 | (fbsd_nat_target): New class. | |
8913 | ||
8914 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers) | |
8915 | (amd64bsd_store_inferior_registers): Remove target_ops parameter. | |
8916 | (amd64bsd_target): Delete. | |
8917 | * amd64-bsd-nat.h: New file. | |
8918 | * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of | |
8919 | "x86-bsd-nat.h". | |
8920 | (amd64_fbsd_nat_target): New class. | |
8921 | (the_amd64_fbsd_nat_target): New. | |
8922 | (amd64fbsd_read_description): Refactor as method of | |
8923 | amd64_fbsd_nat_target. | |
8924 | (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New. | |
8925 | (_initialize_amd64fbsd_nat): Adjust to C++ification. | |
8926 | * amd64-nat.h (amd64bsd_target): Delete function declaration. | |
8927 | * i386-bsd-nat.c (i386bsd_fetch_inferior_registers) | |
8928 | (i386bsd_store_inferior_registers): Remove target_ops parameter. | |
8929 | (i386bsd_target): Delete. | |
8930 | * i386-bsd-nat.h (i386bsd_target): Delete function declaration. | |
8931 | (i386bsd_fetch_inferior_registers) | |
8932 | (i386bsd_store_inferior_registers): Declare. | |
8933 | (i386_bsd_nat_target): New class. | |
8934 | * i386-fbsd-nat.c (i386_fbsd_nat_target): New class. | |
8935 | (the_i386_fbsd_nat_target): New. | |
8936 | (i386fbsd_resume, i386fbsd_read_description): Refactor as | |
8937 | i386_fbsd_nat_target methods. | |
8938 | (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New. | |
8939 | (_initialize_i386fbsd_nat): Adjust to C++ification. | |
8940 | * x86-bsd-nat.c (super_mourn_inferior): Delete. | |
8941 | (x86bsd_mourn_inferior, x86bsd_target): Delete. | |
8942 | (_initialize_x86_bsd_nat): Adjust to C++ification. | |
8943 | * x86-bsd-nat.h: Include "x86-nat.h". | |
8944 | (x86bsd_target): Delete declaration. | |
8945 | (x86bsd_nat_target): New class. | |
8946 | ||
8947 | * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class. | |
8948 | (the_aarch64_fbsd_nat_target): New. | |
8949 | (aarch64_fbsd_fetch_inferior_registers) | |
8950 | (aarch64_fbsd_store_inferior_registers): Refactor as methods of | |
8951 | aarch64_fbsd_nat_target. | |
8952 | (_initialize_aarch64_fbsd_nat): Adjust to C++ification. | |
8953 | * alpha-bsd-nat.c (alpha_bsd_nat_target): New class. | |
8954 | (the_alpha_bsd_nat_target): New. | |
8955 | (alphabsd_fetch_inferior_registers) | |
8956 | (alphabsd_store_inferior_registers): Refactor as | |
8957 | alpha_bsd_nat_target methods. | |
8958 | (_initialize_alphabsd_nat): Refactor as methods of | |
8959 | alpha_bsd_nat_target. | |
8960 | * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h". | |
8961 | (the_amd64_nbsd_nat_target): New. | |
8962 | (_initialize_amd64nbsd_nat): Adjust to C++ification. | |
8963 | * amd64-obsd-nat.c: Include "amd64-bsd-nat.h". | |
8964 | (the_amd64_obsd_nat_target): New. | |
8965 | (_initialize_amd64obsd_nat): Adjust to C++ification. | |
8966 | * arm-fbsd-nat.c (arm_fbsd_nat_target): New. | |
8967 | (the_arm_fbsd_nat_target): New. | |
8968 | (arm_fbsd_fetch_inferior_registers) | |
8969 | (arm_fbsd_store_inferior_registers, arm_fbsd_read_description): | |
8970 | (_initialize_arm_fbsd_nat): Refactor as methods of | |
8971 | arm_fbsd_nat_target. | |
8972 | (_initialize_arm_fbsd_nat): Adjust to C++ification. | |
8973 | * arm-nbsd-nat.c (arm_netbsd_nat_target): New class. | |
8974 | (the_arm_netbsd_nat_target): New. | |
8975 | (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as | |
8976 | arm_netbsd_nat_target. | |
8977 | (_initialize_arm_netbsd_nat): Adjust to C++ification. | |
8978 | * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class. | |
8979 | (the_hppa_nbsd_nat_target): New. | |
8980 | (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as | |
8981 | hppa_nbsd_nat_target methods. | |
8982 | (_initialize_hppanbsd_nat): Adjust to C++ification. | |
8983 | * hppa-obsd-nat.c (hppa_obsd_nat_target): New class. | |
8984 | (the_hppa_obsd_nat_target): New. | |
8985 | (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as | |
8986 | methods of hppa_obsd_nat_target. | |
8987 | (_initialize_hppaobsd_nat): Adjust to C++ification. Use | |
8988 | add_target. | |
8989 | * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New. | |
8990 | (_initialize_i386nbsd_nat): Adjust to C++ification. Use | |
8991 | add_target. | |
8992 | * i386-obsd-nat.c (the_i386_obsd_nat_target): New. | |
8993 | (_initialize_i386obsd_nat): Use add_target. | |
8994 | * m68k-bsd-nat.c (m68k_bsd_nat_target): New class. | |
8995 | (the_m68k_bsd_nat_target): New. | |
8996 | (m68kbsd_fetch_inferior_registers) | |
8997 | (m68kbsd_store_inferior_registers): Refactor as methods of | |
8998 | m68k_bsd_nat_target. | |
8999 | (_initialize_m68kbsd_nat): Adjust to C++ification. | |
9000 | * mips-fbsd-nat.c (mips_fbsd_nat_target): New class. | |
9001 | (the_mips_fbsd_nat_target): New. | |
9002 | (mips_fbsd_fetch_inferior_registers) | |
9003 | (mips_fbsd_store_inferior_registers): Refactor as methods of | |
9004 | mips_fbsd_nat_target. | |
9005 | (_initialize_mips_fbsd_nat): Adjust to C++ification. Use | |
9006 | add_target. | |
9007 | * mips-nbsd-nat.c (mips_nbsd_nat_target): New class. | |
9008 | (the_mips_nbsd_nat_target): New. | |
9009 | (mipsnbsd_fetch_inferior_registers) | |
9010 | (mipsnbsd_store_inferior_registers): Refactor as methods of | |
9011 | mips_nbsd_nat_target. | |
9012 | (_initialize_mipsnbsd_nat): Adjust to C++ification. | |
9013 | * mips64-obsd-nat.c (mips64_obsd_nat_target): New class. | |
9014 | (the_mips64_obsd_nat_target): New. | |
9015 | (mips64obsd_fetch_inferior_registers) | |
9016 | (mips64obsd_store_inferior_registers): Refactor as methods of | |
9017 | mips64_obsd_nat_target. | |
9018 | (_initialize_mips64obsd_nat): Adjust to C++ification. Use | |
9019 | add_target. | |
9020 | * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of | |
9021 | nbsd_nat_target. | |
9022 | * nbsd-nat.h: Include "inf-ptrace.h". | |
9023 | (nbsd_nat_target): New class. | |
9024 | * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list) | |
9025 | (obsd_wait): Refactor as methods of obsd_nat_target. | |
9026 | (obsd_add_target): Delete. | |
9027 | * obsd-nat.h: Include "inf-ptrace.h". | |
9028 | (obsd_nat_target): New class. | |
9029 | * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class. | |
9030 | (the_ppc_fbsd_nat_target): New. | |
9031 | (ppcfbsd_fetch_inferior_registers) | |
9032 | (ppcfbsd_store_inferior_registers): Refactor as methods of | |
9033 | ppc_fbsd_nat_target. | |
9034 | (_initialize_ppcfbsd_nat): Adjust to C++ification. Use | |
9035 | add_target. | |
9036 | * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class. | |
9037 | (the_ppc_nbsd_nat_target): New. | |
9038 | (ppcnbsd_fetch_inferior_registers) | |
9039 | (ppcnbsd_store_inferior_registers): Refactor as methods of | |
9040 | ppc_nbsd_nat_target. | |
9041 | (_initialize_ppcnbsd_nat): Adjust to C++ification. | |
9042 | * ppc-obsd-nat.c (ppc_obsd_nat_target): New class. | |
9043 | (the_ppc_obsd_nat_target): New. | |
9044 | (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as | |
9045 | methods of ppc_obsd_nat_target. | |
9046 | (_initialize_ppcobsd_nat): Adjust to C++ification. Use | |
9047 | add_target. | |
9048 | * sh-nbsd-nat.c (sh_nbsd_nat_target): New class. | |
9049 | (the_sh_nbsd_nat_target): New. | |
9050 | (shnbsd_fetch_inferior_registers) | |
9051 | (shnbsd_store_inferior_registers): Refactor as methods of | |
9052 | sh_nbsd_nat_target. | |
9053 | (_initialize_shnbsd_nat): Adjust to C++ification. | |
9054 | * sparc-nat.c (sparc_xfer_wcookie): Make extern. | |
9055 | (inf_ptrace_xfer_partial): Delete. | |
9056 | (sparc_xfer_partial, sparc_target): Delete. | |
9057 | * sparc-nat.h (sparc_fetch_inferior_registers) | |
9058 | (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare. | |
9059 | (sparc_target): Delete function declaration. | |
9060 | (sparc_target): New template class. | |
9061 | * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New. | |
9062 | (_initialize_sparcnbsd_nat): Adjust to C++ification. | |
9063 | * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New. | |
9064 | (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use | |
9065 | add_target. | |
9066 | * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New. | |
9067 | (_initialize_sparc64nbsd_nat): Adjust to C++ification. | |
9068 | * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New. | |
9069 | (_initialize_sparc64obsd_nat): Adjust to C++ification. Use | |
9070 | add_target. | |
9071 | * vax-bsd-nat.c (vax_bsd_nat_target): New class. | |
9072 | (the_vax_bsd_nat_target): New. | |
9073 | (vaxbsd_fetch_inferior_registers) | |
9074 | (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target | |
9075 | methods. | |
9076 | (_initialize_vaxbsd_nat): Adjust to C++ification. | |
9077 | ||
9078 | * bsd-kvm.c (bsd_kvm_target): New class. | |
9079 | (bsd_kvm_ops): Now a bsd_kvm_target. | |
9080 | (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial) | |
9081 | (bsd_kvm_files_info, bsd_kvm_fetch_registers) | |
9082 | (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of | |
9083 | bsd_kvm_target. | |
9084 | (bsd_kvm_return_one): Delete. | |
9085 | (bsd_kvm_add_target): Adjust to C++ification. | |
9086 | ||
9087 | * nto-procfs.c (nto_procfs_target, nto_procfs_target_native) | |
9088 | (nto_procfs_target_procfs): New classes. | |
9089 | (procfs_open_1, procfs_thread_alive, procfs_update_thread_list) | |
9090 | (procfs_files_info, procfs_pid_to_exec_file, procfs_attach) | |
9091 | (procfs_post_attach, procfs_wait, procfs_fetch_registers) | |
9092 | (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint) | |
9093 | (procfs_remove_breakpoint, procfs_insert_hw_breakpoint) | |
9094 | (procfs_remove_hw_breakpoint, procfs_resume) | |
9095 | (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt) | |
9096 | (procfs_kill_inferior, procfs_store_registers) | |
9097 | (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor | |
9098 | as methods of nto_procfs_target. | |
9099 | (nto_procfs_ops): Now an nto_procfs_target_procfs. | |
9100 | (nto_native_ops): Delete. | |
9101 | (procfs_open, procfs_native_open): Delete. | |
9102 | (nto_native_ops): Now an nto_procfs_target_native. | |
9103 | (init_procfs_targets): Adjust to C++ification. | |
9104 | (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint) | |
9105 | (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint): | |
9106 | Refactor as methods of nto_procfs_target. | |
9107 | ||
9108 | * go32-nat.c (go32_nat_target): New class. | |
9109 | (the_go32_nat_target): New. | |
9110 | (go32_attach, go32_resume, go32_wait, go32_fetch_registers) | |
9111 | (go32_store_registers, go32_xfer_partial, go32_files_info) | |
9112 | (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior) | |
9113 | (go32_terminal_init, go32_terminal_info, go32_terminal_inferior) | |
9114 | (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive) | |
9115 | (go32_pid_to_str): Refactor as methods of go32_nat_target. | |
9116 | (go32_target): Delete. | |
9117 | (_initialize_go32_nat): Adjust to C++ification. | |
9118 | ||
9119 | * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior) | |
9120 | (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach) | |
9121 | (gnu_stop, gnu_thread_alive, gnu_xfer_partial) | |
9122 | (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of | |
9123 | gnu_nat_target. | |
9124 | (gnu_target): Delete. | |
9125 | * gnu-nat.h (gnu_target): Delete. | |
9126 | (gnu_nat_target): New class. | |
9127 | * i386-gnu-nat.c (gnu_base_target): New. | |
9128 | (i386_gnu_nat_target): New class. | |
9129 | (the_i386_gnu_nat_target): New. | |
9130 | (_initialize_i386gnu_nat): Adjust to C++ification. | |
9131 | ||
3fffc070 PA |
9132 | 2018-05-02 Pedro Alves <palves@redhat.com> |
9133 | ||
9134 | * bfd-target.c (target_bfd_xclose): Rename to ... | |
9135 | (target_bfd_close): ... this. | |
9136 | (target_bfd_reopen): Adjust. | |
9137 | * target.c (target_close): Remove references to to_xclose. | |
9138 | * target.h (target_ops::to_xclose): Delete. | |
9139 | (target_ops::to_close): Update comments. | |
9140 | ||
6798487f PA |
9141 | 2018-05-02 Pedro Alves <palves@redhat.com> |
9142 | ||
9143 | * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of | |
9144 | "linux-nat.h". | |
9145 | * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o. | |
9146 | * inf-ptrace.c (inf_ptrace_register_u_offset) | |
9147 | (inf_ptrace_fetch_register, inf_ptrace_fetch_registers) | |
9148 | (inf_ptrace_store_register, inf_ptrace_store_registers) | |
9149 | (inf_ptrace_trad_target): Move to ... | |
9150 | * linux-nat-trad.c: ... this new file. | |
9151 | * linux-nat-trad.h: New file. | |
9152 | * linux-nat.c (linux_target_install_ops): Make extern. | |
9153 | (linux_trad_target): Delete. | |
9154 | * linux-nat.h (linux_trad_target): Delete declaration. | |
9155 | (linux_target_install_ops): Declare. | |
9156 | * mips-linux-nat.c: Include "linux-nat-trad.h" instead of | |
9157 | "linux-nat.h". | |
9158 | ||
c1955e17 PA |
9159 | 2018-05-02 Pedro Alves <palves@redhat.com> |
9160 | ||
9161 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call | |
9162 | procfs_target/add_target here. | |
9163 | * procfs.c (procfs_target): Make static. | |
9164 | (_initialize_procfs): Call add_target here. | |
9165 | * procfs.h (struct target_ops): Remove forward declaration. | |
9166 | (procfs_target): Remove declaration. | |
9167 | * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete. | |
9168 | ||
b5c8fcb1 PA |
9169 | 2018-05-02 Pedro Alves <palves@redhat.com> |
9170 | ||
9171 | * procfs.c (procfs_stopped_by_watchpoint) | |
9172 | (procfs_insert_watchpoint, procfs_remove_watchpoint) | |
9173 | (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address): | |
9174 | Forward declare. | |
9175 | (procfs_use_watchpoints): Delete, move contents... | |
9176 | (procfs_target): ... here. | |
9177 | * procfs.h (procfs_use_watchpoints): Delete declaration. | |
9178 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call | |
9179 | procfs_use_watchpoints. | |
9180 | * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call | |
9181 | procfs_use_watchpoints. | |
9182 | ||
0489430a TT |
9183 | 2018-05-02 Tom Tromey <tom@tromey.com> |
9184 | ||
9185 | PR python/20084: | |
9186 | * python/python.c (gdbpy_parameter_value): Handle var_zuinteger | |
9187 | and var_zuinteger_unlimited. | |
9188 | * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER | |
9189 | and PARAM_ZUINTEGER_UNLIMITED. | |
9190 | (set_parameter_value): Handle var_zuinteger and | |
9191 | var_zuinteger_unlimited. | |
9192 | (add_setshow_generic): Likewise. | |
9193 | (parmpy_init): Likewise. | |
9194 | ||
1632f8ba DR |
9195 | 2018-04-28 Dan Robertson <danlrobertson89@gmail.com> |
9196 | ||
9197 | PR rust/23124 | |
9198 | * gdb/rust-exp.y (convert_params_to_types): Ensure that the params | |
9199 | pointer is not null before dereferencing it. | |
9200 | ||
76761936 TT |
9201 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9202 | ||
9203 | * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of | |
9204 | is_mi_like_p. | |
9205 | ||
2d33446d TT |
9206 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9207 | ||
9208 | * breakpoint.c (mention): Remove use of is_mi_like_p. | |
9209 | (print_mention_ranged_breakpoint): Likewise. | |
9210 | * break-catch-throw.c (print_it_exception_catchpoint): Remove use | |
9211 | of is_mi_like_p. | |
9212 | ||
f3c6abab TT |
9213 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9214 | ||
9215 | * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p. | |
9216 | ||
40c03530 TT |
9217 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9218 | ||
9219 | * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist) | |
9220 | (info_spu_event_command): Remove some uses of is_mi_like_p. | |
9221 | ||
2038b7fd TT |
9222 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9223 | ||
9224 | * python/py-framefilter.c (py_print_single_arg) | |
9225 | (enumerate_locals, py_print_args, py_print_frame): Remove some | |
9226 | uses of is_mi_like_p. | |
9227 | ||
4904c3c6 TT |
9228 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9229 | ||
9230 | * ui-out.c: Update. | |
9231 | * cli-out.h (cli_ui_out::do_is_mi_like_p): Update. | |
9232 | * ui-out.h (ui_out::is_mi_like_p): Now const. | |
9233 | (ui_out::do_is_mi_like_p): Now const. | |
9234 | * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update. | |
9235 | ||
7c66fffc TT |
9236 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9237 | ||
9238 | * varobj.c (varobj_set_visualizer): Use new_reference. | |
9239 | * python/python.c (gdbpy_decode_line): Use new_reference. | |
9240 | * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use | |
9241 | new_reference. | |
9242 | ||
bbfa6f00 TT |
9243 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9244 | ||
9245 | * varobj.c (install_new_value): Use new_reference. | |
9246 | * value.h (value_incref): Return void. Swap intro comment with | |
9247 | value_decref. | |
9248 | * value.c (set_value_parent): Use new_reference. | |
9249 | (value_incref): Return void. Update intro comment. | |
9250 | (release_value): Use new_reference. | |
9251 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference. | |
9252 | ||
1831a9f9 TT |
9253 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9254 | ||
9255 | * symfile-mem.c (symbol_file_add_from_memory): Use new_reference. | |
9256 | * gdb_bfd.h (new_bfd_ref): Remove. | |
9257 | (gdb_bfd_open): Update comment. | |
9258 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
9259 | (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion) | |
9260 | (gdb_bfd_fdopenr): Use new_reference. | |
9261 | * exec.c (exec_file_attach): Use new_reference. | |
9262 | ||
7c1b5f3d TT |
9263 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9264 | ||
9265 | * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static | |
9266 | method. | |
9267 | ||
e11fb955 TT |
9268 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9269 | ||
9270 | * jit.c (jit_read_code_entry): Use type_align. | |
9271 | * i386-tdep.c (i386_gdbarch_init): Don't call | |
9272 | set_gdbarch_long_long_align_bit. | |
9273 | * gdbarch.sh: Remove long_long_align_bit. | |
9274 | * gdbarch.c, gdbarch.h: Rebuild. | |
9275 | * arc-tdep.c (arc_type_align): New function. | |
9276 | (arc_gdbarch_init): Use arc_type_align. Don't call | |
9277 | set_gdbarch_long_long_align_bit. | |
9278 | ||
2fff16dd TT |
9279 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9280 | ||
9281 | * rust-lang.c (rust_type_alignment): Remove. | |
9282 | (rust_composite_type): Use type_align. | |
9283 | ||
6d7bb824 TT |
9284 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9285 | ||
9286 | * NEWS: Mention Type.align. | |
9287 | * python/py-type.c (typy_get_alignof): New function. | |
9288 | (type_object_getset): Add "alignof". | |
9289 | ||
007e1530 TT |
9290 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9291 | ||
9292 | PR exp/17095: | |
9293 | * NEWS: Update. | |
9294 | * std-operator.def (UNOP_ALIGNOF): New operator. | |
9295 | * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>: | |
9296 | New. | |
9297 | * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New. | |
9298 | * c-lang.c (c_op_print_tab): Add alignof. | |
9299 | * c-exp.y (ALIGNOF): New token. | |
9300 | (exp): Add "ALIGNOF" production. | |
9301 | (ident_tokens): Add _Alignof and alignof. | |
9302 | ||
2b4424c3 TT |
9303 | 2018-04-30 Tom Tromey <tom@tromey.com> |
9304 | ||
9305 | * i386-tdep.c (i386_type_align): New function. | |
9306 | (i386_gdbarch_init): Update. | |
9307 | * gdbarch.sh (type_align): New method. | |
9308 | * gdbarch.c, gdbarch.h: Rebuild. | |
9309 | * arch-utils.h (default_type_align): Declare. | |
9310 | * arch-utils.c (default_type_align): New function. | |
9311 | * gdbtypes.h (TYPE_ALIGN_BITS): New define. | |
9312 | (struct type) <align_log2>: New field. | |
9313 | <instance_flags>: Now a bitfield. | |
9314 | (TYPE_RAW_ALIGN): New macro. | |
9315 | (type_align, type_raw_align, set_type_align): Declare. | |
9316 | * gdbtypes.c (type_align, type_raw_align, set_type_align): New | |
9317 | functions. | |
9318 | * dwarf2read.c (quirk_rust_enum): Set type alignment. | |
9319 | (get_alignment, maybe_set_alignment): New functions. | |
9320 | (read_structure_type, read_enumeration_type, read_array_type) | |
9321 | (read_set_type, read_tag_pointer_type, read_tag_reference_type) | |
9322 | (read_subrange_type, read_base_type): Set type alignment. | |
9323 | ||
d33bc52e SM |
9324 | 2018-04-30 Simon Marchi <simon.marchi@ericsson.com> |
9325 | ||
9326 | * dwarf2read.c (read_index_from_section): Use bool. | |
9327 | ||
e28b63a9 FG |
9328 | 2018-04-29 Fabian Groffen <grobian@gentoo.org> |
9329 | ||
9330 | PR gdb/22950 | |
9331 | * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys | |
9332 | with #ifdef. | |
9333 | ||
cd8c76e4 JR |
9334 | 2018-04-29 John Reiser <jreiser@BitWagon.com> |
9335 | ||
9336 | PR build/22873 | |
9337 | * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the | |
9338 | last step, and do it atomically. | |
9339 | ||
476d250e AO |
9340 | 2018-04-27 Alexandre Oliva <aoliva@redhat.com> |
9341 | ||
9342 | * compile/compile-c-types.c (convert_int, convert_float): | |
9343 | Update for C FE v1. | |
9344 | ||
6873858b TT |
9345 | 2018-04-27 Tom Tromey <tom@tromey.com> |
9346 | ||
9347 | PR rust/22545: | |
9348 | * rust-lang.c (rust_inclusive_range_type_p): New function. | |
9349 | (rust_range): Handle inclusive ranges. | |
9350 | (rust_compute_range): Likewise. | |
9351 | * rust-exp.y (struct rust_op) <inclusive>: New field. | |
9352 | (DOTDOTEQ): New constant. | |
9353 | (range_expr): Add "..=" productions. | |
9354 | (operator_tokens): Add "..=" token. | |
9355 | (ast_range): Add "inclusive" parameter. | |
9356 | (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive | |
9357 | ranges. | |
9358 | * parse.c (operator_length_standard) <case OP_RANGE>: Handle new | |
9359 | bounds values. | |
9360 | * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE, | |
9361 | LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants. | |
9362 | Update comments. | |
9363 | * expprint.c (print_subexp_standard): Handle new bounds values. | |
9364 | (dump_subexp_body_standard): Likewise. | |
9365 | ||
632e107b TT |
9366 | 2018-04-27 Tom Tromey <tom@tromey.com> |
9367 | ||
9368 | * configure: Rebuild. | |
9369 | * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override. | |
9370 | * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not | |
9371 | "OVERRIDE". | |
9372 | (class symbol_needs_eval_context): Likewise. | |
9373 | * dwarf2read.c (mock_mapped_index::symbol_name_count) | |
9374 | (mock_mapped_index::symbol_name_at): Use "override". Remove | |
9375 | "virtual". | |
9376 | * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use | |
9377 | "override". | |
9378 | (class dwarf_expr_executor): Use "override", not "OVERRIDE". | |
9379 | * aarch64-tdep.c (instruction_reader::read): Use "override". | |
9380 | (instruction_reader_test::read): Likewise. | |
9381 | * arm-tdep.c (instruction_reader::read): Use "override". | |
9382 | (instruction_reader_thumb::read): Likewise. | |
9383 | ||
b75abf5b AK |
9384 | 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl> |
9385 | ||
9386 | PR remote/9665 | |
9387 | * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result | |
9388 | instead of remote_send. | |
9389 | (remote_send): Remove. | |
9390 | ||
79188d8d PA |
9391 | 2018-04-26 Pedro Alves <palves@redhat.com> |
9392 | ||
9393 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use | |
9394 | find_function_start_sal instead of find_pc_line. | |
9395 | ||
f50776aa PA |
9396 | 2018-04-26 Pedro Alves <palves@redhat.com> |
9397 | ||
9398 | * breakpoint.c (set_breakpoint_location_function): Handle | |
9399 | mst_data_gnu_ifunc. | |
9400 | * c-exp.y (variable production): Handle mst_data_gnu_ifunc. | |
9401 | * elfread.c (elf_symtab_read): Give data symbols with | |
9402 | BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type. | |
9403 | (elf_rel_plt_read): Update comment. | |
9404 | * linespec.c (convert_linespec_to_sals): Handle | |
9405 | mst_data_gnu_ifunc. | |
9406 | (minsym_found): Handle mst_data_gnu_ifunc. | |
9407 | * minsyms.c (msymbol_is_function, minimal_symbol_reader::record) | |
9408 | (find_solib_trampoline_target): Handle mst_data_gnu_ifunc. | |
9409 | * parse.c (find_minsym_type_and_address): Handle | |
9410 | mst_data_gnu_ifunc. | |
9411 | * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc. | |
9412 | * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc. | |
9413 | * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update | |
9414 | comment. | |
9415 | <mst_data_gnu_ifunc>: New enumerator. | |
9416 | ||
20944a6e PA |
9417 | 2018-04-26 Pedro Alves <palves@redhat.com> |
9418 | ||
9419 | * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ... | |
9420 | (lookup_minimal_symbol_by_pc_section): ... this. Replace | |
9421 | 'want_trampoline' parameter by a lookup_msym_prefer parameter. | |
9422 | Handle it. | |
9423 | (lookup_minimal_symbol_by_pc_section): Delete old implementation. | |
9424 | (lookup_minimal_symbol_by_pc): Adjust. | |
9425 | (in_gnu_ifunc_stub): Prefer GNU ifunc symbols. | |
9426 | (lookup_solib_trampoline_symbol_by_pc): Adjust. | |
9427 | * minsyms.h (lookup_msym_prefer): New enum. | |
9428 | (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline' | |
9429 | parameter by a lookup_msym_prefer parameter. | |
9430 | ||
1adeb822 PA |
9431 | 2018-04-26 Pedro Alves <palves@redhat.com> |
9432 | ||
9433 | * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name | |
9434 | ends in "@plt" instead of looking at the symbol's section. | |
9435 | ||
a0aca7b0 PA |
9436 | 2018-04-26 Pedro Alves <palves@redhat.com> |
9437 | ||
9438 | * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove | |
9439 | all references. | |
9440 | (find_pc_partial_function_gnu_ifunc): Rename to ... | |
9441 | (find_pc_partial_function): ... this, and remove references to | |
9442 | 'is_gnu_ifunc_p'. | |
9443 | (find_pc_partial_function): Delete old implementation. | |
9444 | * symtab.h (find_pc_partial_function_gnu_ifunc): Delete. | |
9445 | ||
76af0f26 PA |
9446 | 2018-04-26 Pedro Alves <palves@redhat.com> |
9447 | ||
9448 | * linespec.c (struct bound_minimal_symbol_search_key): New. | |
9449 | (convert_linespec_to_sals): Sort minimal symbols earlier. Don't | |
9450 | skip first line if we found a GNU ifunc minimal symbol by name. | |
9451 | (compare_msymbols): Change parameters to work with a destructured | |
9452 | lhs minsym. | |
9453 | (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New | |
9454 | functions. | |
9455 | ||
3467ec66 PA |
9456 | 2018-04-26 Pedro Alves <palves@redhat.com> |
9457 | ||
9458 | * breakpoint.c (set_breakpoint_location_function): Don't resolve | |
9459 | ifunc targets here. Instead, if we have an ifunc minsym, use its | |
9460 | address/name. | |
9461 | (add_location_to_breakpoint): Store the minsym and the objfile in | |
9462 | the breakpoint location. | |
9463 | * breakpoint.h (bp_location) <msymbol, objfile>: New fields. | |
9464 | * linespec.c (minsym_found): Resolve GNU ifunc targets here. | |
9465 | Record the minsym in the sal. | |
9466 | * symtab.h (symtab_and_line) <msymbol>: New field. | |
9467 | ||
28f4fa4d PA |
9468 | 2018-04-26 Pedro Alves <palves@redhat.com> |
9469 | ||
9470 | * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P | |
9471 | unless we actually resolved the ifunc. | |
9472 | ||
ca31ab1d PA |
9473 | 2018-04-26 Pedro Alves <palves@redhat.com> |
9474 | ||
9475 | * c-exp.y (variable production): Prefer ifunc minsyms over | |
9476 | regular function symbols. | |
9477 | * symtab.c (find_gnu_ifunc): New function. | |
9478 | * minsyms.h (lookup_msym_prefer): New enum. | |
9479 | (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline' | |
9480 | parameter by a lookup_msym_prefer parameter. | |
9481 | * symtab.h (find_gnu_ifunc): New declaration. | |
9482 | ||
8388016d PA |
9483 | 2018-04-26 Pedro Alves <palves@redhat.com> |
9484 | ||
9485 | * blockframe.c (find_gnu_ifunc_target_type): New function. | |
9486 | (find_function_type): New. | |
9487 | * eval.c (evaluate_var_msym_value): For GNU ifunc types, always | |
9488 | return a value with a memory address. | |
9489 | (eval_call): For calls to GNU ifunc functions, try to find the | |
9490 | type of the target function from the type that the resolver | |
9491 | returns. | |
9492 | * gdbtypes.c (objfile_type): Don't install a return type for ifunc | |
9493 | symbols. | |
9494 | * infcall.c (find_function_return_type): Delete. | |
9495 | (find_function_addr): Add 'function_type' parameter. For calls to | |
9496 | GNU ifunc functions, try to find the type of the target function | |
9497 | from the type that the resolver returns, and return it via | |
9498 | FUNCTION_TYPE. | |
9499 | (call_function_by_hand_dummy): Adjust to use the function type | |
9500 | returned by find_function_addr. | |
9501 | (find_function_addr): Add 'function_type' parameter and move | |
9502 | description here. | |
9503 | * symtab.h (find_function_type, find_gnu_ifunc_target_type): New | |
9504 | declarations. | |
9505 | ||
a376e11d PA |
9506 | 2018-04-26 Pedro Alves <palves@redhat.com> |
9507 | ||
9508 | * c-exp.y (variable production): Skip finding an alias for ifunc | |
9509 | symbols. | |
9510 | ||
02e169e2 PA |
9511 | 2018-04-26 Pedro Alves <palves@redhat.com> |
9512 | ||
9513 | * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too. | |
9514 | ||
249b5733 PA |
9515 | 2018-04-25 Pedro Alves <palves@redhat.com> |
9516 | ||
9517 | * infcmd.c (kill_command): Print the pid as string, not the whole | |
9518 | thread's ptid. Add comment. s/has been killed/killed/ in output | |
9519 | message. | |
9520 | * remote.c (remote_detach_1): Print the pid as string, not the | |
9521 | whole thread's ptid. | |
9522 | ||
f67c0c91 SDJ |
9523 | 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
9524 | Sergio Durigan Junior <sergiodj@redhat.com> | |
9525 | Pedro Alves <palves@redhat.com> | |
9526 | ||
9527 | * infcmd.c (kill_command): Print message when inferior has | |
9528 | been killed. | |
9529 | * inferior.c (print_inferior_events): Remove 'static'. Set as | |
9530 | '1'. | |
9531 | (add_inferior): Improve message printed when | |
9532 | 'print_inferior_events' is on. | |
9533 | (exit_inferior): Remove message printed when | |
9534 | 'print_inferior_events' is on. | |
9535 | (detach_inferior): Improve message printed when | |
9536 | 'print_inferior_events' is on. | |
9537 | (initialize_inferiors): Use 'add_inferior_silent' to set | |
9538 | 'current_inferior_'. | |
9539 | * inferior.h (print_inferior_events): Declare here as | |
9540 | 'extern'. | |
9541 | * infrun.c (follow_fork_inferior): Print '[Attaching...]' or | |
9542 | '[Detaching...]' messages when 'print_inferior_events' is on. | |
9543 | Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']' | |
9544 | as prefix/suffix for messages. Remove periods. Fix erroneous | |
9545 | 'Detaching after fork from child...', replace it by '... from | |
9546 | parent...'. | |
9547 | (handle_vfork_child_exec_or_exit): Add '[' and ']' as | |
9548 | prefix/suffix when printing 'Detaching...' messages. Print | |
9549 | them when 'print_inferior_events' is on. | |
9550 | * remote.c (remote_detach_1): Print message when detaching | |
9551 | from inferior and '!is_fork_parent'. | |
9552 | ||
e427af18 TT |
9553 | 2018-04-24 Tom Tromey <tom@tromey.com> |
9554 | ||
9555 | * cli-out.h: Reindent. | |
9556 | ||
05b1d8d6 TT |
9557 | 2018-04-24 Tom Tromey <tom@tromey.com> |
9558 | ||
9559 | * cli-out.c (cli_ui_out::out_field_fmt): Remove. | |
9560 | (cli_ui_out::do_field_string): Use fputs_filtered. | |
9561 | * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove. | |
9562 | ||
a95c7dab TT |
9563 | 2018-04-23 Tom Tromey <tom@tromey.com> |
9564 | ||
9565 | * guile/scm-frame.c (gdbscm_frame_read_var): Use | |
9566 | gdb::unique_xmalloc_ptr. | |
9567 | ||
458412c3 TT |
9568 | 2018-04-23 Tom Tromey <tom@tromey.com> |
9569 | ||
9570 | * configure: Rebuild. | |
9571 | ||
db86b02b RS |
9572 | 2018-04-22 Rajendra SY <rajendra.sy@gmail.com> |
9573 | ||
9574 | PR gdb/23095 | |
9575 | * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to | |
9576 | prepare_for_testing. Set normal_bp to r_debug_state if target | |
9577 | is bsd. | |
9578 | ||
00aecdcf PA |
9579 | 2018-04-21 Pedro Alves <palves@redhat.com> |
9580 | Rajendra SY <rajendra.sy@gmail.com> | |
9581 | ||
9582 | * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing. | |
9583 | * remote.c (extended_remote_attach): In all-stop mode, mark the | |
9584 | thread as executing. | |
9585 | ||
224608c3 PW |
9586 | 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
9587 | ||
9588 | * thread.c (thread_apply_all_command): Fix comment. | |
9589 | (thread_command): Fix comment. | |
9590 | ||
3b74854b AH |
9591 | 2018-04-10 Alan Hayward <alan.hayward@arm.com> |
9592 | ||
9593 | * common/tdesc.h (tdesc_create_feature): Remove xml filename | |
9594 | parameter. | |
9595 | * features/aarch64-core.c (create_feature_aarch64_core): | |
9596 | Regenerate. | |
9597 | * features/aarch64-fpu.c (create_feature_aarch64_fpu): | |
9598 | Likewise. | |
9599 | * features/i386/32bit-avx.c (create_feature_i386_32bit_avx): | |
9600 | Likewise. | |
9601 | * features/i386/32bit-avx512.c | |
9602 | (create_feature_i386_32bit_avx512): Likewise. | |
9603 | * features/i386/32bit-core.c (create_feature_i386_32bit_core): | |
9604 | Likewise. | |
9605 | * features/i386/32bit-linux.c (create_feature_i386_32bit_linux): | |
9606 | Likewise. | |
9607 | * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx): | |
9608 | Likewise. | |
9609 | * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys): | |
9610 | Likewise. | |
9611 | * features/i386/32bit-sse.c (create_feature_i386_32bit_sse): | |
9612 | Likewise. | |
9613 | * features/i386/64bit-avx.c (create_feature_i386_64bit_avx): | |
9614 | Likewise. | |
9615 | * features/i386/64bit-avx512.c | |
9616 | (create_feature_i386_64bit_avx512): Likewise. | |
9617 | * features/i386/64bit-core.c (create_feature_i386_64bit_core): | |
9618 | Likewise. | |
9619 | * features/i386/64bit-linux.c (create_feature_i386_64bit_linux): | |
9620 | Likewise. | |
9621 | * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx): | |
9622 | Likewise. | |
9623 | * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys): | |
9624 | Likewise. | |
9625 | * features/i386/64bit-segments.c | |
9626 | (create_feature_i386_64bit_segments): Likewise. | |
9627 | * features/i386/64bit-sse.c (create_feature_i386_64bit_sse): | |
9628 | Likewise. | |
9629 | * features/i386/x32-core.c | |
9630 | (create_feature_i386_x32_core): Likewise. | |
9631 | * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise. | |
9632 | * features/tic6x-core.c (create_feature_tic6x_core): Likewise. | |
9633 | * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise. | |
9634 | * target-descriptions.c: In generated code, don't pass xml | |
9635 | filename. | |
9636 | ||
e98577a9 AH |
9637 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
9638 | ||
9639 | * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing. | |
9640 | (print_xml_feature::visit_post): Likewise. | |
9641 | (print_xml_feature::visit): Likewise. | |
9642 | * common/tdesc.h (tdesc_get_features_xml): Use const tdesc. | |
9643 | (print_xml_feature): Add new class. | |
9644 | * regformats/regdat.sh: Null xmltarget on feature targets. | |
9645 | * target-descriptions.c (struct target_desc): Add xmltarget. | |
9646 | (maintenance_check_tdesc_xml_convert): Add unittest function. | |
9647 | (tdesc_get_features_xml): Add function to get xml. | |
9648 | (maintenance_check_xml_descriptions): Test xml generation. | |
9649 | * xml-tdesc.c (string_read_description_xml): Add function. | |
9650 | * xml-tdesc.h (string_read_description_xml): Add declaration. | |
9651 | ||
ad7fc756 AH |
9652 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
9653 | ||
9654 | * features/Makefile: Add feature marker to targets with new style | |
9655 | target descriptions. | |
9656 | * regformats/aarch64.dat: Regenerate. | |
9657 | * regformats/i386/amd64-avx-avx512-linux.dat: Likewise. | |
9658 | * regformats/i386/amd64-avx-linux.dat: Likewise. | |
9659 | * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise. | |
9660 | * regformats/i386/amd64-avx-mpx-linux.dat: Likewise. | |
9661 | * regformats/i386/amd64-linux.dat: Likewise. | |
9662 | * regformats/i386/amd64-mpx-linux.dat: Likewise. | |
9663 | * regformats/i386/amd64.dat: Likewise. | |
9664 | * regformats/i386/i386-avx-avx512-linux.dat: Likewise. | |
9665 | * regformats/i386/i386-avx-linux.dat: Likewise. | |
9666 | * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise. | |
9667 | * regformats/i386/i386-avx-mpx-linux.dat: Likewise. | |
9668 | * regformats/i386/i386-linux.dat: Likewise. | |
9669 | * regformats/i386/i386-mmx-linux.dat: Likewise. | |
9670 | * regformats/i386/i386-mpx-linux.dat: Likewise. | |
9671 | * regformats/i386/i386.dat: Likewise. | |
9672 | * regformats/i386/x32-avx-avx512-linux.dat: Likewise. | |
9673 | * regformats/i386/x32-avx-linux.dat: Likewise. | |
9674 | * regformats/i386/x32-linux.dat: Likewise. | |
9675 | * regformats/tic6x-c62x-linux.dat: Likewise. | |
9676 | * regformats/tic6x-c64x-linux.dat: Likewise. | |
9677 | * regformats/tic6x-c64xp-linux.dat: Likewise. | |
9678 | * regformats/regdat.sh: Parse feature marker. | |
9679 | ||
d278f585 AH |
9680 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
9681 | ||
9682 | * common/tdesc.h (tdesc_architecture_name): Add new declaration. | |
9683 | (tdesc_osabi_name): Likewise. | |
9684 | * target-descriptions.c (tdesc_architecture_name): Add new | |
9685 | function. | |
9686 | (tdesc_osabi_name): Likewise. | |
9687 | ||
eee8a18d AH |
9688 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
9689 | ||
9690 | * common/tdesc.c (tdesc_predefined_type): Move to here. | |
9691 | (tdesc_named_type): Likewise. | |
9692 | (tdesc_create_vector): Likewise. | |
9693 | (tdesc_create_struct): Likewise. | |
9694 | (tdesc_set_struct_size): Likewise. | |
9695 | (tdesc_create_union): Likewise. | |
9696 | (tdesc_create_flags): Likewise. | |
9697 | (tdesc_create_enum): Likewise. | |
9698 | (tdesc_add_field): Likewise. | |
9699 | (tdesc_add_typed_bitfield): Likewise. | |
9700 | (tdesc_add_bitfield): Likewise. | |
9701 | (tdesc_add_flag): Likewise. | |
9702 | (tdesc_add_enum_value): Likewise. | |
9703 | * common/tdesc.h (struct tdesc_type_builtin): Likewise. | |
9704 | (struct tdesc_type_vector): Likewise. | |
9705 | (struct tdesc_type_field): Likewise. | |
9706 | (struct tdesc_type_with_fields): Likewise. | |
9707 | (tdesc_create_enum): Add declaration. | |
9708 | (tdesc_add_typed_bitfield): Likewise. | |
9709 | (tdesc_add_enum_value): Likewise. | |
9710 | * target-descriptions.c (tdesc_type_field): Move from here. | |
9711 | (tdesc_type_builtin): Likewise. | |
9712 | (tdesc_type_vector): Likewise. | |
9713 | (tdesc_type_with_fields): Likewise. | |
9714 | (tdesc_predefined_types): Likewise. | |
9715 | (tdesc_named_type): Likewise. | |
9716 | (tdesc_create_vector): Likewise. | |
9717 | (tdesc_create_struct): Likewise. | |
9718 | (tdesc_set_struct_size): Likewise. | |
9719 | (tdesc_create_union): Likewise. | |
9720 | (tdesc_create_flags): Likewise. | |
9721 | (tdesc_create_enum): Likewise. | |
9722 | (tdesc_add_field): Likewise. | |
9723 | (tdesc_add_typed_bitfield): Likewise. | |
9724 | (tdesc_add_bitfield): Likewise. | |
9725 | (tdesc_add_flag): Likewise. | |
9726 | (tdesc_add_enum_value): Likewise. | |
9727 | * gdb/target-descriptions.h (tdesc_create_enum): Likewise. | |
9728 | (tdesc_add_typed_bitfield): Likewise. | |
9729 | (tdesc_add_enum_value): Likewise. | |
9730 | ||
82ec9bc7 AH |
9731 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
9732 | ||
9733 | * common/tdesc.c (tdesc_feature::accept): Move to here. | |
9734 | (tdesc_feature::operator==): Likewise. | |
9735 | (tdesc_create_reg): Likewise. | |
9736 | * common/tdesc.h (tdesc_type_kind): Likewise. | |
9737 | (struct tdesc_type): Likewise. | |
9738 | (struct tdesc_feature): Likewise. | |
9739 | * regformats/regdat.sh: Create a feature. | |
9740 | * target-descriptions.c (tdesc_type_kind): Move from here. | |
9741 | (tdesc_type): Likewise. | |
9742 | (tdesc_type_up): Likewise. | |
9743 | (tdesc_feature): Likewise. | |
9744 | (tdesc_create_reg): Likewise. | |
9745 | ||
ea3e7d71 AH |
9746 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
9747 | ||
9748 | * Makefile.in: Add arch/tdesc.c | |
9749 | * common/tdesc.c: New file. | |
9750 | * common/tdesc.h (tdesc_element_visitor): Move to here. | |
9751 | (tdesc_element): Likewise. | |
9752 | (tdesc_reg): Likewise. | |
9753 | (tdesc_reg_up): Likewise. | |
9754 | * regformats/regdef.h (reg): Add offset to constructors. | |
9755 | * target-descriptions.c (tdesc_element_visitor): Move from here. | |
9756 | (tdesc_element): Likewise. | |
9757 | (tdesc_reg): Likewise. | |
9758 | (tdesc_reg_up): Likewise. | |
9759 | ||
bedda9ac TT |
9760 | 2018-04-17 Tom Tromey <tom@tromey.com> |
9761 | ||
9762 | * dwarf2read.c (quirk_rust_enum): Conditionally drop the | |
9763 | discriminant field. | |
9764 | ||
a037790e TT |
9765 | 2018-04-17 Tom Tromey <tom@tromey.com> |
9766 | ||
9767 | * dwarf2read.c (quirk_rust_enum): Handle unions correctly. | |
9768 | ||
c7dcbf88 AA |
9769 | 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com> |
9770 | ||
9771 | * symtab.c (print_symbol_info): Skip printing filename and line | |
9772 | number when `last' is NULL. | |
9773 | (symtab_symbol_info): Use empty string instead of NULL for first | |
9774 | invocation of print_symbol_info. | |
9775 | (rbreak_command): Pass NULL to `last' parameter of | |
9776 | print_symbol_info. | |
9777 | ||
07d28c77 SM |
9778 | 2018-04-16 Simon Marchi <simon.marchi@ericsson.com> |
9779 | ||
9780 | * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data | |
9781 | instead of nullptr. | |
9782 | ||
8a3de5e1 PA |
9783 | 2018-04-16 Pedro Alves <palves@redhat.com> |
9784 | ||
9785 | * MAINTAINERS (sh): Remove. | |
9786 | * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o. | |
9787 | (HFILES_NO_SRCDIR): Remove sh64-tdep.h. | |
9788 | (ALLDEPFILES): Remove sh64-tdep.c. | |
9789 | * NEWS: Mentions that support for SH-5/SH64 is removed. | |
9790 | * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o. | |
9791 | (sh*-*-openbsd*): Ditto. | |
9792 | (sh64-*-elf*): Remove. | |
9793 | (sh*): Remove. | |
9794 | * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case. | |
9795 | * sh-linux-tdep.c: Remove reference to bfd_mach_sh5. | |
9796 | * sh-tdep.c: No longer include "sh64-tdep.h". | |
9797 | (sh_gdbarch_init): Remove reference to bfd_mach_sh5. | |
9798 | * sh64-tdep.c, sh64-tdep.h: Remove files. | |
9799 | ||
a2a79012 PA |
9800 | 2018-04-16 Pedro Alves <palves@redhat.com> |
9801 | ||
9802 | * MAINTAINERS: Remove m88k. | |
9803 | * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o. | |
9804 | (HFILES_NO_SRCDIR): Remove m88k-tdep.h. | |
9805 | (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c. | |
9806 | * NEWS: Mention that support for m88k was removed. | |
9807 | * configure.host (m88*-*-*): Remove support. | |
9808 | * configure.nat (m88k-*-*): Remove support. | |
9809 | * configure.tgt (m88*-*-openbsd*): Remove. | |
9810 | * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete. | |
9811 | ||
eda4efb1 SM |
9812 | 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca> |
9813 | ||
9814 | * configure.tgt (x86_tobjs): New variable. | |
9815 | (amd64_tobjs, i386_tobjs): Use it. | |
9816 | ||
b744723f AA |
9817 | 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
9818 | ||
9819 | * symtab.c (print_symbol_info): Precede the symbol definition by | |
9820 | the line number when available. | |
9821 | * NEWS: Advertise this enhancement. | |
9822 | ||
4a4495d6 MM |
9823 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
9824 | ||
9825 | * NEWS (New options): announce set/show record btrace cpu. | |
9826 | * btrace.c: Include record-btrace.h. | |
9827 | (btrace_compute_ftrace_pt): Skip enabling errata workarounds if | |
9828 | the vendor is unknown. | |
9829 | (btrace_compute_ftrace_1): Add cpu parameter. Update callers. | |
9830 | Maybe overwrite the btrace configuration's cpu. | |
9831 | (btrace_compute_ftrace): Add cpu parameter. Update callers. | |
9832 | (btrace_fetch): Add cpu parameter. Update callers. | |
9833 | (btrace_maint_update_pt_packets): Call record_btrace_get_cpu. | |
9834 | Maybe overwrite the btrace configuration's cpu. Skip enabling | |
9835 | errata workarounds if the vendor is unknown. | |
9836 | * python/py-record-btrace.c: Include record-btrace.h. | |
9837 | (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history) | |
9838 | (recpy_bt_function_call_history): Call record_btrace_get_cpu. | |
9839 | * record-btrace.c (record_btrace_cpu_state_kind): New. | |
9840 | (record_btrace_cpu): New. | |
9841 | (set_record_btrace_cpu_cmdlist): New. | |
9842 | (record_btrace_get_cpu): New. | |
9843 | (require_btrace_thread, record_btrace_info) | |
9844 | (record_btrace_resume_thread): Call record_btrace_get_cpu. | |
9845 | (cmd_set_record_btrace_cpu_none): New. | |
9846 | (cmd_set_record_btrace_cpu_auto): New. | |
9847 | (cmd_set_record_btrace_cpu): New. | |
9848 | (cmd_show_record_btrace_cpu): New. | |
9849 | (_initialize_record_btrace): Initialize set/show record btrace cpu | |
9850 | commands. | |
9851 | * record-btrace.h (record_btrace_get_cpu): New. | |
9852 | ||
69f90c75 MM |
9853 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
9854 | ||
9855 | * record.c (set_record_command): Fix typo in message. | |
9856 | ||
b85310e1 MM |
9857 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
9858 | ||
9859 | * record-btrace.c (cmd_set_record_btrace): Print sub-commands. | |
9860 | ||
1d509aa6 MM |
9861 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
9862 | ||
9863 | * infrun.c (process_event_stop_test): Call | |
9864 | gdbarch_in_indirect_branch_thunk. | |
9865 | * gdbarch.sh (in_indirect_branch_thunk): New. | |
9866 | * gdbarch.c: Regenerated. | |
9867 | * gdbarch.h: Regenerated. | |
9868 | * x86-tdep.h: New. | |
9869 | * x86-tdep.c: New. | |
9870 | * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o. | |
9871 | (HFILES_NO_SRCDIR): Add x86-tdep.h. | |
9872 | (ALLDEPFILES): Add x86-tdep.c. | |
9873 | * arch-utils.h (default_in_indirect_branch_thunk): New. | |
9874 | * arch-utils.c (default_in_indirect_branch_thunk): New. | |
9875 | * i386-tdep: Include x86-tdep.h. | |
9876 | (i386_in_indirect_branch_thunk): New. | |
9877 | (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch | |
9878 | function. | |
9879 | * amd64-tdep: Include x86-tdep.h. | |
9880 | (amd64_in_indirect_branch_thunk): New. | |
9881 | (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function. | |
9882 | ||
b4be9bfd JK |
9883 | 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
9884 | ||
9885 | PR gdb/23053 | |
9886 | * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type) | |
9887 | (recursively_write_psymbols) (debug_names::recursively_write_psymbols) | |
9888 | (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG | |
9889 | regression. | |
9890 | ||
53d7df28 TT |
9891 | 2018-04-12 Tom Tromey <tom@tromey.com> |
9892 | ||
9893 | * rust-lang.c (rust_print_struct_def): Remove univariant code. | |
9894 | (rust_evaluate_subexp): Likewise. | |
9895 | ||
70b33f19 PA |
9896 | 2018-04-12 Pedro Alves <palves@redhat.com> |
9897 | ||
9898 | * procfs.c (procfs_detach): Make forward declaration's prototype | |
9899 | match definition's protototype. | |
9900 | (proc_get_LDT_entry): Remove stale do_cleanups call. | |
9901 | ||
436411b1 PA |
9902 | 2018-04-12 Pedro Alves <palves@redhat.com> |
9903 | ||
9904 | * target.h (target_ops::to_has_exited): Delete. | |
9905 | (target_has_exited): Delete. | |
9906 | * target-delegates.c: Regenerate. | |
9907 | ||
20db9c52 PA |
9908 | 2018-04-11 Pedro Alves <palves@redhat.com> |
9909 | ||
9910 | * target.c (fileio_fh_t::t): Add comment. | |
9911 | (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat) | |
9912 | (target_fileio_close): Handle a NULL target. | |
9913 | (invalidate_fileio_fh): New. | |
9914 | (target_close): Call it. | |
9915 | * remote.c (remote_hostio_send_command): No longer check whether | |
9916 | remote_desc is open. | |
9917 | ||
5ff79300 PA |
9918 | 2018-04-11 Pedro Alves <palves@redhat.com> |
9919 | ||
9920 | * target.c (fileio_fh_t): Make it a named struct instead of a | |
9921 | typedef. | |
9922 | (fileio_fh_t::is_closed): New method. | |
9923 | (DEF_VEC_O (fileio_fh_t)): Remove. | |
9924 | (fileio_fhandles): Now a std::vector. | |
9925 | (is_closed_fileio_fh): Delete. | |
9926 | (acquire_fileio_fd): Adjust. Rename parameters. | |
9927 | (release_fileio_fd): Adjust. | |
9928 | (fileio_fd_to_fh): Reimplement as a function instead of a macro. | |
9929 | (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat) | |
9930 | (target_fileio_close): Adjust. | |
9931 | ||
6e22e10d SM |
9932 | 2018-04-10 Simon Marchi <simon.marchi@ericsson.com> |
9933 | ||
9934 | * auto-load.c (auto_load_safe_path_vec_update): Iterate by | |
9935 | index. | |
9936 | ||
731f534f PA |
9937 | 2018-04-10 Pedro Alves <palves@redhat.com> |
9938 | ||
9939 | * gdbthread.h (finish_thread_state_cleanup): Delete declaration. | |
9940 | (scoped_finish_thread_state): New class. | |
9941 | * infcmd.c (run_command_1): Use it instead of finish_thread_state | |
9942 | cleanup. | |
9943 | * infrun.c (proceed, prepare_for_detach, wait_for_inferior) | |
9944 | (fetch_inferior_event, normal_stop): Likewise. | |
9945 | * thread.c (finish_thread_state_cleanup): Delete. | |
9946 | ||
d5f4488f SM |
9947 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
9948 | Pedro Alves <palves@redhat.com> | |
9949 | ||
9950 | * value.c: Include "selftest.h" and "common/array-view.h". | |
9951 | (struct range) <operator ==>: New. | |
9952 | (test_ranges_contain): New. | |
9953 | (check_ranges_vector): New. | |
9954 | (test_insert_into_bit_range_vector): New. | |
9955 | (_initialize_values): Register selftests. | |
9956 | * common/array-view.h (operator==, operator!=): New. | |
9957 | ||
b24531ed SM |
9958 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
9959 | ||
9960 | * common/gdb_vecs.h (unordered_remove): Add overload that takes | |
9961 | an iterator. | |
9962 | * inline-frame.c: Include <algorithm>. | |
9963 | (struct inline_state): Add constructor. | |
9964 | (inline_state_s): Remove. | |
9965 | (DEF_VEC_O(inline_state_s)): Remove. | |
9966 | (inline_states): Change type to std::vector. | |
9967 | (find_inline_frame_state): Adjust to std::vector. | |
9968 | (allocate_inline_frame_state): Remove. | |
9969 | (clear_inline_frame_state): Adjust to std::vector. | |
9970 | (skip_inline_frames): Adjust to std::vector. | |
9971 | ||
c252925c SM |
9972 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
9973 | ||
9974 | * tracepoint.h (struct trace_state_variable): Add constructor. | |
9975 | <name>: Change type to std::string. | |
9976 | * tracepoint.c (tsv_s): Remove. | |
9977 | (DEF_VEC_O(tsv_s)): Remove. | |
9978 | (tvariables): Change to std::vector. | |
9979 | (create_trace_state_variable): Adjust to std::vector. | |
9980 | (find_trace_state_variable): Likewise. | |
9981 | (find_trace_state_variable_by_number): Likewise. | |
9982 | (delete_trace_state_variable): Likewise. | |
9983 | (trace_variable_command): Adjust to std::string. | |
9984 | (delete_trace_variable_command): Likewise. | |
9985 | (tvariables_info_1): Adjust to std::vector. | |
9986 | (save_trace_state_variables): Likewise. | |
9987 | (start_tracing): Likewise. | |
9988 | (merge_uploaded_trace_state_variables): Adjust to std::vector | |
9989 | and std::string. | |
9990 | * target.h (struct target_ops) | |
9991 | <to_download_trace_state_variable>: Pass reference to | |
9992 | trace_state_variable. | |
9993 | * target-debug.h (target_debug_print_const_trace_state_variable_r): New. | |
9994 | * target-delegates.c: Re-generate. | |
9995 | * mi/mi-interp.c (mi_tsv_created): Adjust to std::string. | |
9996 | (mi_tsv_deleted): Likewise. | |
9997 | * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise. | |
9998 | * remote.c (remote_download_trace_state_variable): Change | |
9999 | pointer to reference and adjust. | |
10000 | * make-target-delegates (parse_argtypes): Handle references. | |
10001 | (write_function_header): Likewise. | |
10002 | (munge_type): Likewise. | |
10003 | ||
c9638d26 SM |
10004 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
10005 | ||
10006 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
10007 | string_view-selftests.c. | |
10008 | * unittests/basic_string_view/capacity/1.cc: Adapt to GDB | |
10009 | testsuite. | |
10010 | * unittests/basic_string_view/cons/char/1.cc: Likewise. | |
10011 | * unittests/basic_string_view/cons/char/2.cc: Likewise. | |
10012 | * unittests/basic_string_view/cons/char/3.cc: Likewise. | |
10013 | * unittests/basic_string_view/element_access/char/1.cc: | |
10014 | Likewise. | |
10015 | * unittests/basic_string_view/element_access/char/empty.cc: | |
10016 | Likewise. | |
10017 | * unittests/basic_string_view/element_access/char/front_back.cc: | |
10018 | Likewise. | |
10019 | * unittests/basic_string_view/inserters/char/2.cc: Likewise. | |
10020 | * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: | |
10021 | Likewise. | |
10022 | * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: | |
10023 | Likewise. | |
10024 | * unittests/basic_string_view/modifiers/swap/char/1.cc: | |
10025 | Likewise. | |
10026 | * unittests/basic_string_view/operations/compare/char/1.cc: | |
10027 | Likewise. | |
10028 | * unittests/basic_string_view/operations/compare/char/13650.cc: | |
10029 | Likewise. | |
10030 | * unittests/basic_string_view/operations/copy/char/1.cc: | |
10031 | Likewise. | |
10032 | * unittests/basic_string_view/operations/data/char/1.cc: | |
10033 | Likewise. | |
10034 | * unittests/basic_string_view/operations/find/char/1.cc: | |
10035 | Likewise. | |
10036 | * unittests/basic_string_view/operations/find/char/2.cc: | |
10037 | Likewise. | |
10038 | * unittests/basic_string_view/operations/find/char/3.cc: | |
10039 | Likewise. | |
10040 | * unittests/basic_string_view/operations/find/char/4.cc: | |
10041 | Likewise. | |
10042 | * unittests/basic_string_view/operations/rfind/char/1.cc: | |
10043 | Likewise. | |
10044 | * unittests/basic_string_view/operations/rfind/char/2.cc: | |
10045 | Likewise. | |
10046 | * unittests/basic_string_view/operations/rfind/char/3.cc: | |
10047 | Likewise. | |
10048 | * unittests/basic_string_view/operations/substr/char/1.cc: | |
10049 | Likewise. | |
10050 | * unittests/basic_string_view/operators/char/2.cc: Likewise. | |
10051 | * unittests/string_view-selftests.c: New file. | |
10052 | ||
fdc11678 SM |
10053 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
10054 | ||
10055 | * unittests/basic_string_view/capacity/1.cc: New file. | |
10056 | * unittests/basic_string_view/capacity/empty_neg.cc: New file. | |
10057 | * unittests/basic_string_view/cons/char/1.cc: New file. | |
10058 | * unittests/basic_string_view/cons/char/2.cc: New file. | |
10059 | * unittests/basic_string_view/cons/char/3.cc: New file. | |
10060 | * unittests/basic_string_view/cons/wchar_t/1.cc: New file. | |
10061 | * unittests/basic_string_view/cons/wchar_t/2.cc: New file. | |
10062 | * unittests/basic_string_view/cons/wchar_t/3.cc: New file. | |
10063 | * unittests/basic_string_view/element_access/char/1.cc: New file. | |
10064 | * unittests/basic_string_view/element_access/char/2.cc: New file. | |
10065 | * unittests/basic_string_view/element_access/char/empty.cc: New file. | |
10066 | * unittests/basic_string_view/element_access/char/front_back.cc: New file. | |
10067 | * unittests/basic_string_view/element_access/wchar_t/1.cc: New file. | |
10068 | * unittests/basic_string_view/element_access/wchar_t/2.cc: New file. | |
10069 | * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file. | |
10070 | * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file. | |
10071 | * unittests/basic_string_view/include.cc: New file. | |
10072 | * unittests/basic_string_view/inserters/char/1.cc: New file. | |
10073 | * unittests/basic_string_view/inserters/char/2.cc: New file. | |
10074 | * unittests/basic_string_view/inserters/char/3.cc: New file. | |
10075 | * unittests/basic_string_view/inserters/pod/10081-out.cc: New file. | |
10076 | * unittests/basic_string_view/inserters/wchar_t/1.cc: New file. | |
10077 | * unittests/basic_string_view/inserters/wchar_t/2.cc: New file. | |
10078 | * unittests/basic_string_view/inserters/wchar_t/3.cc: New file. | |
10079 | * unittests/basic_string_view/literals/types.cc: New file. | |
10080 | * unittests/basic_string_view/literals/values.cc: New file. | |
10081 | * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file. | |
10082 | * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file. | |
10083 | * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file. | |
10084 | * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file. | |
10085 | * unittests/basic_string_view/modifiers/swap/char/1.cc: New file. | |
10086 | * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file. | |
10087 | * unittests/basic_string_view/operations/compare/char/1.cc: New file. | |
10088 | * unittests/basic_string_view/operations/compare/char/13650.cc: New file. | |
10089 | * unittests/basic_string_view/operations/compare/char/2.cc: New file. | |
10090 | * unittests/basic_string_view/operations/compare/char/70483.cc: New file. | |
10091 | * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file. | |
10092 | * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file. | |
10093 | * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file. | |
10094 | * unittests/basic_string_view/operations/copy/char/1.cc: New file. | |
10095 | * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file. | |
10096 | * unittests/basic_string_view/operations/data/char/1.cc: New file. | |
10097 | * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file. | |
10098 | * unittests/basic_string_view/operations/find/char/1.cc: New file. | |
10099 | * unittests/basic_string_view/operations/find/char/2.cc: New file. | |
10100 | * unittests/basic_string_view/operations/find/char/3.cc: New file. | |
10101 | * unittests/basic_string_view/operations/find/char/4.cc: New file. | |
10102 | * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file. | |
10103 | * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file. | |
10104 | * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file. | |
10105 | * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file. | |
10106 | * unittests/basic_string_view/operations/rfind/char/1.cc: New file. | |
10107 | * unittests/basic_string_view/operations/rfind/char/2.cc: New file. | |
10108 | * unittests/basic_string_view/operations/rfind/char/3.cc: New file. | |
10109 | * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file. | |
10110 | * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file. | |
10111 | * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file. | |
10112 | * unittests/basic_string_view/operations/string_conversion/1.cc: New file. | |
10113 | * unittests/basic_string_view/operations/substr/char/1.cc: New file. | |
10114 | * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file. | |
10115 | * unittests/basic_string_view/operators/char/2.cc: New file. | |
10116 | * unittests/basic_string_view/operators/wchar_t/2.cc: New file. | |
10117 | * unittests/basic_string_view/range_access/char/1.cc: New file. | |
10118 | * unittests/basic_string_view/range_access/wchar_t/1.cc: New file. | |
10119 | * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file. | |
10120 | * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file. | |
10121 | * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file. | |
10122 | * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file. | |
10123 | * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file. | |
10124 | * unittests/basic_string_view/requirements/typedefs.cc: New file. | |
10125 | * unittests/basic_string_view/typedefs.cc: New file. | |
10126 | * unittests/basic_string_view/types/1.cc: New file. | |
10127 | ||
8345c4a2 SM |
10128 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
10129 | ||
10130 | * common/gdb_string_view.h: Remove libstdc++ implementation | |
10131 | details, adjust to gdb reality. | |
10132 | * common/gdb_string_view.tcc: Likewise. | |
10133 | * cli/cli-script.c (struct string_view): Remove. | |
10134 | (user_args) <m_args>: Change element type to gdb::string_view. | |
10135 | (user_args::insert_args): Adjust. | |
10136 | ||
7adcdf08 SM |
10137 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
10138 | ||
10139 | * common/gdb_string_view.h: New file. | |
10140 | * common/gdb_string_view.tcc: New file. | |
10141 | ||
41260ac2 SM |
10142 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
10143 | ||
10144 | * ax_cxx_compile_stdcxx.m4: Sync with upstream. | |
10145 | * configure: Re-generate. | |
10146 | ||
0bee6dd4 PA |
10147 | 2018-04-09 Pedro Alves <palves@redhat.com> |
10148 | ||
10149 | * gdbarch.sh: Include "observable.h" instead of "observer.h". | |
10150 | (set_target_gdbarch): Call | |
10151 | gdb::observers::architecture_changed.notify instead of | |
10152 | observer_notify_architecture_changed. | |
10153 | ||
6f14adc5 SM |
10154 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
10155 | ||
10156 | * tracepoint.c (struct current_traceframe_cleanup): Remove. | |
10157 | (do_restore_current_traceframe_cleanup): Remove. | |
10158 | (restore_current_traceframe_cleanup_dtor): Remove. | |
10159 | (make_cleanup_restore_current_traceframe): Remove. | |
10160 | (scoped_restore_current_traceframe::scoped_restore_current_traceframe): | |
10161 | New. | |
10162 | * tracepoint.h (struct scoped_restore_current_traceframe): New. | |
10163 | * infrun.c (fetch_inferior_event): Use | |
10164 | scoped_restore_current_traceframe. | |
10165 | ||
b2bdb8cf SM |
10166 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
10167 | ||
10168 | * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>: | |
10169 | Remove. | |
10170 | <n_allocated_type_units>: Remove. | |
10171 | <all_type_units>: Change to std::vector. | |
10172 | * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust | |
10173 | to std::vector change. | |
10174 | (dwarf2_per_objfile::get_cutu): Likewise. | |
10175 | (dwarf2_per_objfile::get_tu): Likewise. | |
10176 | (create_signatured_type_table_from_index): Likewise. | |
10177 | (create_signatured_type_table_from_debug_names): Likewise. | |
10178 | (dw2_symtab_iter_next): Likewise. | |
10179 | (dw2_print_stats): Likewise. | |
10180 | (dw2_expand_all_symtabs): Likewise. | |
10181 | (dw2_expand_marked_cus): Likewise. | |
10182 | (dw2_debug_names_iterator::next): Likewise. | |
10183 | (dwarf2_initialize_objfile): Likewise. | |
10184 | (add_signatured_type_cu_to_table): Likewise. | |
10185 | (create_all_type_units): Likewise. | |
10186 | (add_type_unit): Likewise. | |
10187 | (struct tu_abbrev_offset): Add constructor. | |
10188 | (build_type_psymtabs_1): Adjust to std::vector change. | |
10189 | (print_tu_stats): Likewise. | |
10190 | * dwarf-index-write.c (check_dwarf64_offsets): Likewise. | |
10191 | (write_debug_names): Likewise. | |
10192 | ||
b76e467d SM |
10193 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
10194 | ||
10195 | * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise. | |
10196 | Make an std::vector. | |
10197 | <n_comp_units>: Remove. | |
10198 | * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust | |
10199 | to std::vector change. | |
10200 | (dwarf2_per_objfile::get_cutu): Likewise. | |
10201 | (dwarf2_per_objfile::get_cu): Likewise. | |
10202 | (create_cus_from_index): Likewise. | |
10203 | (create_addrmap_from_index): Likewise. | |
10204 | (create_addrmap_from_aranges): Likewise. | |
10205 | (dwarf2_read_index): Likewise. | |
10206 | (dw2_find_last_source_symtab): Likewise. | |
10207 | (dw2_map_symtabs_matching_filename): Likewise. | |
10208 | (dw2_symtab_iter_next): Likewise. | |
10209 | (dw2_print_stats): Likewise. | |
10210 | (dw2_expand_all_symtabs): Likewise. | |
10211 | (dw2_expand_symtabs_with_fullname): Likewise. | |
10212 | (dw2_expand_marked_cus): Likewise. | |
10213 | (dw2_map_symbol_filenames): Likewise. | |
10214 | (create_cus_from_debug_names): Likewise. | |
10215 | (dwarf2_read_debug_names): Likewise. | |
10216 | (dw2_debug_names_iterator::next): Likewise. | |
10217 | (dwarf2_initialize_objfile): Likewise. | |
10218 | (set_partial_user): Likewise. | |
10219 | (dwarf2_build_psymtabs_hard): Likewise. | |
10220 | (read_comp_units_from_section): Remove arguments, adjust to | |
10221 | std::vector change. | |
10222 | (create_all_comp_units): Adjust to std::vector and | |
10223 | read_comp_units_from_section changes. | |
10224 | (dwarf2_find_containing_comp_unit): Adjust to std::vector | |
10225 | change. | |
10226 | * dwarf-index-write.c (check_dwarf64_offsets): Likewise. | |
10227 | (psyms_seen_size): Likewise. | |
10228 | (write_gdbindex): Likewise. | |
10229 | (write_debug_names): Likewise. | |
10230 | ||
12359b5e SM |
10231 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
10232 | ||
10233 | * dwarf2read.c (create_cus_from_index_list): Replace objfile arg | |
10234 | with dwarf2_per_objfile. | |
10235 | (create_cus_from_index): Likewise. | |
10236 | (create_signatured_type_table_from_index): Likewise. | |
10237 | (dwarf2_read_index): Likewise. | |
10238 | (dwarf2_initialize_objfile): Likewise. | |
10239 | (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from | |
10240 | per_cu rather than get_dwarf2_per_objfile. | |
10241 | ||
ff4c9fec SM |
10242 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
10243 | ||
10244 | * dwarf2read.h (struct signatured_type): Forward declare. | |
10245 | (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>: | |
10246 | New methods. | |
10247 | * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from... | |
10248 | (dw2_get_cutu): ...this. | |
10249 | (dwarf2_per_objfile::get_cu): Rename from... | |
10250 | (dw2_get_cu): ...this. | |
10251 | (dwarf2_per_objfile::get_tu): New. | |
10252 | (create_addrmap_from_index): Adjust. | |
10253 | (create_addrmap_from_aranges): Adjust. | |
10254 | (dw2_find_last_source_symtab): Adjust. | |
10255 | (dw2_map_symtabs_matching_filename): Adjust. | |
10256 | (dw2_symtab_iter_next): Adjust. | |
10257 | (dw2_print_stats): Adjust. | |
10258 | (dw2_expand_all_symtabs): Adjust. | |
10259 | (dw2_expand_symtabs_with_fullname): Adjust. | |
10260 | (dw2_expand_marked_cus): Adjust. | |
10261 | (dw_expand_symtabs_matching_file_matcher): Adjust. | |
10262 | (dw2_map_symbol_filenames): Adjust. | |
10263 | (dw2_debug_names_iterator::next): Adjust. | |
10264 | (dwarf2_initialize_objfile): Adjust. | |
10265 | (set_partial_user): Adjust. | |
10266 | (dwarf2_build_psymtabs_hard): Adjust. | |
10267 | ||
5ca3fcb6 SM |
10268 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
10269 | ||
10270 | * dwarf2read.c (create_signatured_type_table_from_debug_names): | |
10271 | Remove unused variables. | |
10272 | (dw2_map_symtabs_matching_filename): Likewise. | |
10273 | (dwarf2_record_block_ranges): Likewise. | |
10274 | (dwarf2_read_addr_index): Likewise. | |
10275 | (follow_die_offset): Likewise. | |
10276 | ||
b2e586e8 SM |
10277 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
10278 | ||
10279 | * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET | |
10280 | to symbol_file_add_main. | |
10281 | ||
7c4e78cf SM |
10282 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
10283 | ||
10284 | PR mi/22299 | |
10285 | * mi/mi-console.c (do_fputc_async_safe): New. | |
10286 | (mi_console_file::write_async_safe): New. | |
10287 | (mi_console_file::flush): Adjust calls to fputstrn_unfiltered. | |
10288 | * mi/mi-console.h (class mi_console_file) <write_async_safe>: | |
10289 | New. | |
10290 | * ui-file.c (ui_file::putstrn): Adjust call to | |
10291 | fputstrn_unfiltered. | |
10292 | * utils.c (printchar): Replace do_fputs and do_fprintf | |
10293 | parameters by do_fputc. | |
10294 | (fputstr_filtered): Adjust call to printchar. | |
10295 | (fputstr_unfiltered): Likewise. | |
10296 | (fputstrn_filtered): Likewise. | |
10297 | (fputstrn_unfiltered): Add do_fputc parameter, pass to | |
10298 | printchar. | |
10299 | * utils.h (do_fputc_ftype): New typedef. | |
10300 | (fputstrn_unfiltered): Add do_fputc parameter. | |
10301 | ||
5dc026d3 SM |
10302 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
10303 | ||
10304 | * regformats/i386/i386-avx.dat: Remove. | |
10305 | ||
c912f608 SM |
10306 | 2018-04-07 Simon Marchi <simon.marchi@ericsson.com> |
10307 | ||
10308 | PR gdb/22979 | |
10309 | * amd64-tdep.c (amd64_none_init_abi): New function. | |
10310 | (amd64_x32_none_init_abi): New function. | |
10311 | (_initialize_amd64_tdep): Register handlers for x86-64 and | |
10312 | x64_32 with GDB_OSABI_NONE. | |
10313 | * osabi.c (gdbarch_init_osabi): Allow running handlers for the | |
10314 | GDB_OSABI_NONE osabi. | |
10315 | ||
26540402 SM |
10316 | 2018-04-07 Simon Marchi <simon.marchi@ericsson.com> |
10317 | ||
10318 | PR gdb/22980 | |
10319 | * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add | |
10320 | GDB_OSABI_NONE. | |
10321 | * arch-utils.c (gdbarch_info_init): Don't set info->osabi. | |
10322 | * osabi.c (gdb_osabi_names): Add "unknown" entry. | |
10323 | ||
9018be22 SM |
10324 | 2018-04-07 Simon Marchi <simon.marchi@ericsson.com> |
10325 | ||
10326 | * common/byte-vector.h (char_vector): New type. | |
10327 | * target.h (target_read_alloc): Return | |
10328 | gdb::optional<byte_vector>. | |
10329 | (target_read_stralloc): Return gdb::optional<char_vector>. | |
10330 | (target_get_osdata): Return gdb::optional<char_vector>. | |
10331 | * target.c (target_read_alloc_1): Templatize. Replacement | |
10332 | manual memory management with vector. | |
10333 | (target_read_alloc): Change return type, adjust. | |
10334 | (target_read_stralloc): Change return type, adjust. | |
10335 | (target_get_osdata): Change return type, adjust. | |
10336 | * auxv.c (struct auxv_info) <length>: Remove. | |
10337 | <data>: Change type to gdb::optional<byte_vector>. | |
10338 | (auxv_inferior_data_cleanup): Free auxv_info with delete. | |
10339 | (get_auxv_inferior_data): Allocate auxv_info with new, adjust. | |
10340 | (target_auxv_search): Adjust. | |
10341 | (fprint_target_auxv): Adjust. | |
10342 | * avr-tdep.c (avr_io_reg_read_command): Adjust. | |
10343 | * linux-tdep.c (linux_spu_make_corefile_notes): Adjust. | |
10344 | (linux_make_corefile_notes): Adjust. | |
10345 | * osdata.c (get_osdata): Adjust. | |
10346 | * remote.c (remote_get_threads_with_qxfer): Adjust. | |
10347 | (remote_memory_map): Adjust. | |
10348 | (remote_traceframe_info): Adjust. | |
10349 | (btrace_read_config): Adjust. | |
10350 | (remote_read_btrace): Adjust. | |
10351 | (remote_pid_to_exec_file): Adjust. | |
10352 | * solib-aix.c (solib_aix_get_library_list): Adjust. | |
10353 | * solib-dsbt.c (decode_loadmap): Don't free buf. | |
10354 | (dsbt_get_initial_loadmaps): Adjust. | |
10355 | * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust. | |
10356 | * solib-target.c (solib_target_current_sos): Adjust. | |
10357 | * tracepoint.c (sdata_make_value): Adjust. | |
10358 | * xml-support.c (xinclude_start_include): Adjust. | |
10359 | (xml_fetch_content_from_file): Adjust. | |
10360 | * xml-support.h (xml_fetch_another): Change return type. | |
10361 | (xml_fetch_content_from_file): Change return type. | |
10362 | * xml-syscall.c (xml_init_syscalls_info): Adjust. | |
10363 | * xml-tdesc.c (file_read_description_xml): Adjust. | |
10364 | (fetch_available_features_from_target): Change return type. | |
10365 | (target_fetch_description_xml): Adjust. | |
10366 | (target_read_description_xml): Adjust. | |
10367 | ||
14c88955 TT |
10368 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10369 | ||
10370 | * value.c (~value): Update. | |
10371 | (struct value) <contents>: Now unique_xmalloc_ptr. | |
10372 | (value_contents_bits_eq, allocate_value_contents) | |
10373 | (value_contents_raw, value_contents_all_raw) | |
10374 | (value_contents_for_printing, value_contents_for_printing_const) | |
10375 | (set_value_enclosing_type): Update. | |
10376 | ||
0c7e6dd8 TT |
10377 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10378 | ||
10379 | * value.c (range_s): Remove typedef, VEC. | |
10380 | (struct range): Add operator<. | |
10381 | (range_lessthan): Remove. | |
10382 | (ranges_contain): Change type. | |
10383 | (~value): Update. | |
10384 | (struct value) <unavailable, optimized_out>: Now std::vector. | |
10385 | (value_entirely_available) | |
10386 | (value_entirely_covered_by_range_vector) | |
10387 | (value_entirely_unavailable, value_entirely_optimized_out): | |
10388 | Update. | |
10389 | (insert_into_bit_range_vector): Change argument type. | |
10390 | (find_first_range_overlap): Likewise. | |
10391 | (struct ranges_and_idx, value_contents_bits_eq) | |
10392 | (require_not_optimized_out, require_available): Update. | |
10393 | (ranges_copy_adjusted): Change argument types. | |
10394 | (value_optimized_out, value_copy, value_fetch_lazy): Update. | |
10395 | ||
2c8331b9 TT |
10396 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10397 | ||
10398 | * value.c (~value): Update. | |
10399 | (struct value) <parent>: Now a value_ref_ptr. | |
10400 | (value_parent, set_value_parent, value_address, value_copy): | |
10401 | Update. | |
10402 | ||
466ce3ae TT |
10403 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10404 | ||
10405 | * value.c (struct value): Add constructor, destructor, and member | |
10406 | initializers. | |
10407 | (allocate_value_lazy, value_decref): Update. | |
10408 | ||
062d818d TT |
10409 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10410 | ||
10411 | * value.c (struct value) <released, next>: Remove. | |
10412 | (all_values): Now a std::vector. | |
10413 | (allocate_value_lazy): Update. | |
10414 | (value_next): Remove. | |
10415 | (value_mark, value_free_to_mark, release_value) | |
10416 | (value_release_to_mark): Update. | |
10417 | ||
a6535de1 TT |
10418 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10419 | ||
10420 | * value.h (fetch_subexp_value, value_release_to_mark): Update. | |
10421 | (free_value_chain): Remove. | |
10422 | * value.c (free_value_chain): Remove. | |
10423 | (value_release_to_mark): Return a std::vector. | |
10424 | * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a | |
10425 | std::vector. | |
10426 | (check_condition): Update. | |
10427 | * eval.c (fetch_subexp_value): Change "val_chain" to a | |
10428 | std::vector. | |
10429 | * breakpoint.c (update_watchpoint): Update. | |
10430 | (can_use_hardware_watchpoint): Change "vals" to a std::vector. | |
10431 | ||
b5621201 TT |
10432 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10433 | ||
10434 | * value.h (free_all_values): Remove. | |
10435 | * value.c (free_all_values): Remove. | |
10436 | ||
4d0266a0 TT |
10437 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10438 | ||
10439 | * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk) | |
10440 | (value_history_chain, value_history_count): Remove. | |
10441 | (value_history): New global. | |
10442 | (record_latest_value, access_value_history, show_values) | |
10443 | (preserve_values): Update. | |
10444 | ||
b4d61099 TT |
10445 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10446 | ||
10447 | * varobj.h (struct varobj) <value>: Now a value_ref_ptr. | |
10448 | * varobj.c (varobj_set_display_format, varobj_set_value) | |
10449 | (install_default_visualizer, construct_visualizer) | |
10450 | (install_new_value, ~varobj, varobj_get_value_type) | |
10451 | (my_value_of_variable, varobj_editable_p): Update. | |
10452 | * c-varobj.c (c_describe_child, c_value_of_variable) | |
10453 | (cplus_number_of_children, cplus_describe_child): Update. | |
10454 | * ada-varobj.c (ada_number_of_children, ada_name_of_child) | |
10455 | (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child) | |
10456 | (ada_value_of_variable, ada_value_is_changeable_p): Update. | |
10457 | ||
9b558729 TT |
10458 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10459 | ||
10460 | * printcmd.c (last_examine_address): Change type to | |
10461 | value_ref_ptr. | |
10462 | (do_examine, x_command): Update. | |
10463 | ||
850645cf TT |
10464 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10465 | ||
10466 | * value.c (release_value): Update. | |
10467 | * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr. | |
10468 | (struct bpstats) <val>: Now a value_ref_ptr. | |
10469 | * breakpoint.c (update_watchpoint, breakpoint_init_inferior) | |
10470 | (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check) | |
10471 | (~watchpoint, print_it_watchpoint, watch_command_1) | |
10472 | (invalidate_bp_value_on_memory_change): Update. | |
10473 | ||
22bc8444 TT |
10474 | 2018-04-06 Tom Tromey <tom@tromey.com> |
10475 | ||
10476 | * varobj.c (varobj_clear_saved_item) | |
10477 | (update_dynamic_varobj_children, install_new_value, ~varobj): | |
10478 | Update. | |
10479 | * value.h (value_incref): Move declaration earlier. | |
10480 | (value_decref): Rename from value_free. | |
10481 | (struct value_ref_policy): New. | |
10482 | (value_ref_ptr): New typedef. | |
10483 | (struct value_deleter): Remove. | |
10484 | (gdb_value_up): Remove typedef. | |
10485 | (release_value): Change return type. | |
10486 | (release_value_or_incref): Remove. | |
10487 | * value.c (set_value_parent): Update. | |
10488 | (value_incref): Change return type. | |
10489 | (value_decref): Rename from value_free. | |
10490 | (value_free_to_mark, free_all_values, free_value_chain): Update. | |
10491 | (release_value): Return value_ref_ptr. | |
10492 | (release_value_or_incref): Remove. | |
10493 | (record_latest_value, set_internalvar, clear_internalvar): | |
10494 | Update. | |
10495 | * stack.c (info_frame_command): Don't call value_free. | |
10496 | * python/py-value.c (valpy_dealloc, valpy_new) | |
10497 | (value_to_value_object): Update. | |
10498 | * printcmd.c (do_examine): Update. | |
10499 | * opencl-lang.c (lval_func_free_closure): Update. | |
10500 | * mi/mi-main.c (register_changed_p): Don't call value_free. | |
10501 | * mep-tdep.c (mep_frame_prev_register): Don't call value_free. | |
10502 | * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free. | |
10503 | * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call | |
10504 | value_free. | |
10505 | * guile/scm-value.c (vlscm_free_value_smob) | |
10506 | (vlscm_scm_from_value): Update. | |
10507 | * frame.c (frame_register_unwind, frame_unwind_register_signed) | |
10508 | (frame_unwind_register_unsigned, get_frame_register_bytes) | |
10509 | (put_frame_register_bytes): Don't call value_free. | |
10510 | * findvar.c (address_from_register): Don't call value_free. | |
10511 | * dwarf2read.c (dwarf2_compute_name): Don't call value_free. | |
10512 | * dwarf2loc.c (entry_data_value_free_closure) | |
10513 | (value_of_dwarf_reg_entry, free_pieced_value_closure) | |
10514 | (dwarf2_evaluate_loc_desc_full): Update. | |
10515 | * breakpoint.c (update_watchpoint, breakpoint_init_inferior) | |
10516 | (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check) | |
10517 | (~watchpoint, watch_command_1) | |
10518 | (invalidate_bp_value_on_memory_change): Update. | |
10519 | * alpha-tdep.c (alpha_register_to_value): Don't call value_free. | |
10520 | ||
7f8a5d38 SM |
10521 | 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca> |
10522 | ||
10523 | PR gdb/23022 | |
10524 | * warning.m4: Add -Wno-error=deprecated-register. | |
10525 | * configure: Re-generate. | |
10526 | ||
8a76bd3b TT |
10527 | 2018-04-05 Tom Tromey <tom@tromey.com> |
10528 | ||
10529 | * linespec.h: Remove include of "vec.h". | |
10530 | ||
8e8d776e TT |
10531 | 2018-04-05 Tom Tromey <tom@tromey.com> |
10532 | ||
10533 | * linespec.c (typep): Remove typedef. | |
10534 | (find_methods, find_superclass_methods): Take a std::vector. | |
10535 | (find_method): Use std::vector. | |
10536 | ||
9b2f8581 TT |
10537 | 2018-04-05 Tom Tromey <tom@tromey.com> |
10538 | ||
10539 | * utils.c (compare_strings): Remove. | |
10540 | * utils.h (compare_strings): Remove. | |
10541 | * objc-lang.h (find_imps): Update. | |
10542 | * objc-lang.c (find_methods): Take a std::vector. | |
10543 | (uniquify_strings, find_imps): Likewise. | |
10544 | * linespec.c (find_methods): Take a std::vector. | |
10545 | (decode_objc): Use std::vector. | |
10546 | (add_all_symbol_names_from_pspace, find_superclass_methods): Take | |
10547 | a std::vector. | |
10548 | (find_method, find_function_symbols): Use std::vector. | |
10549 | ||
459a2e4c TT |
10550 | 2018-04-05 Tom Tromey <tom@tromey.com> |
10551 | ||
10552 | * completer.c (completion_tracker::completion_tracker): Remove | |
10553 | cast. | |
10554 | (completion_tracker::discard_completions): Likewise. | |
10555 | * breakpoint.c (ambiguous_names_p): Remove cast. | |
10556 | * ada-lang.c (_initialize_ada_language): Remove cast. | |
10557 | * utils.h (streq): Update. | |
10558 | (streq_hash): Add new declaration. | |
10559 | * utils.c (streq): Return bool. | |
10560 | (streq_hash): New function. | |
10561 | ||
9be2c17a TT |
10562 | 2018-04-05 Tom Tromey <tom@tromey.com> |
10563 | ||
10564 | * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>: | |
10565 | Remove a string copy. | |
10566 | ||
f73c6ece TT |
10567 | 2018-04-05 Tom Tromey <tom@tromey.com> |
10568 | ||
10569 | * linespec.c (filter_results): Use std::vector. | |
10570 | (decode_line_2, decode_line_full): Update. | |
10571 | ||
53a0f8a2 TT |
10572 | 2018-04-05 Tom Tromey <tom@tromey.com> |
10573 | ||
10574 | * linespec.c (canonical_to_fullform): Return std::string. | |
10575 | (filter_results): Update. | |
10576 | (struct decode_line_2_item): Add constructor. | |
10577 | <fullform, displayform>: Now std::string. | |
10578 | (decode_line_2_compare_items): Now a std::sort comparator. | |
10579 | (decode_line_2): Update. | |
10580 | ||
a5b5adf5 TT |
10581 | 2018-04-05 Tom Tromey <tom@tromey.com> |
10582 | ||
10583 | * linespec.c (copy_token_string): Return a unique_xmalloc_ptr. | |
10584 | (unexpected_linespec_error): Update. | |
10585 | (linespec_parse_basic, parse_linespec): Update. | |
10586 | ||
6a307fc5 TT |
10587 | 2018-04-05 Tom Tromey <tom@tromey.com> |
10588 | ||
10589 | * linespec.c (linespec_parse_basic): Reindent. | |
10590 | ||
41c1efc6 TT |
10591 | 2018-04-05 Tom Tromey <tom@tromey.com> |
10592 | ||
10593 | * minsyms.h (iterate_over_minimal_symbols): Update. | |
10594 | * minsyms.c (iterate_over_minimal_symbols): Take a | |
10595 | gdb::function_view. | |
10596 | * linespec.c (struct collect_minsyms): Remove. | |
10597 | (compare_msyms): Now a std::sort comparator. | |
10598 | (add_minsym): Add parameters. | |
10599 | (search_minsyms_for_name): Update. Use std::vector. | |
10600 | ||
c5edbf3d TT |
10601 | 2018-04-03 Tom Tromey <tom@tromey.com> |
10602 | ||
10603 | * mipsread.c (read_alphacoff_dynamic_symtab): Use | |
10604 | gdb::byte_vector. | |
10605 | ||
b39efc48 WP |
10606 | 2018-04-02 Weimin Pan <weimin.pan@oracle.com> |
10607 | ||
10608 | * MAINTAINERS (Write After Approval): Add Weimin Pan. | |
10609 | ||
121ad66c | 10610 | 2018-04-02 Weimin Pan <weimin.pan@oracle.com> |
79f18731 WP |
10611 | |
10612 | PR gdb/16959 | |
10613 | * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when | |
10614 | printing static type. | |
10615 | ||
09473be8 TT |
10616 | 2018-04-01 Tom Tromey <tom@tromey.com> |
10617 | ||
10618 | * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector. | |
10619 | (rs6000_xfer_shared_libraries): Update. | |
10620 | ||
ec1f2d91 SM |
10621 | 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca> |
10622 | ||
10623 | * common/gdb_vecs.h (char_ptr): Remove. | |
10624 | * tracepoint.c (encode_actions_1): Remove usage of char_ptr. | |
10625 | ||
d8611974 SM |
10626 | 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca> |
10627 | ||
10628 | * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC | |
10629 | with std::vector. | |
10630 | * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove. | |
10631 | ||
a18ba4e4 SM |
10632 | 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca> |
10633 | ||
10634 | * tracepoint.h (struct uploaded_tp): Initialize fields. | |
10635 | <actions, step_actions, cmd_strings>: Change type to | |
10636 | std::vector<char *>. | |
10637 | * tracepoint.c (get_uploaded_tp): Allocate with new. | |
10638 | (free_uploaded_tps): Free with delete. | |
10639 | (parse_tracepoint_definition): Adjust to std::vector change. | |
10640 | * breakpoint.c (read_uploaded_action): Likewise. | |
10641 | (create_tracepoint_from_upload): Likewise. | |
10642 | * ctf.c (ctf_write_uploaded_tp): Likewise. | |
10643 | (SET_ARRAY_FIELD): Likewise. | |
10644 | * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise. | |
10645 | ||
a7961323 TT |
10646 | 2018-03-30 Tom Tromey <tom@tromey.com> |
10647 | ||
10648 | * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return | |
10649 | std::unique_ptr. | |
10650 | (svr4_keep_data_in_core): Update. | |
10651 | (svr4_read_so_list): Update. | |
10652 | ||
e83e4e24 TT |
10653 | 2018-03-30 Tom Tromey <tom@tromey.com> |
10654 | ||
10655 | * windows-nat.c (handle_output_debug_string, handle_exception): | |
10656 | Update. | |
10657 | * target.h (target_read_string): Update. | |
10658 | * target.c (target_read_string): Change "string" to | |
10659 | unique_xmalloc_ptr. | |
10660 | * solib-svr4.c (open_symbol_file_object, svr4_read_so_list): | |
10661 | Update. | |
10662 | * solib-frv.c (frv_current_sos): Update. | |
10663 | * solib-dsbt.c (dsbt_current_sos): Update. | |
10664 | * solib-darwin.c (darwin_current_sos): Update. | |
10665 | * linux-thread-db.c (inferior_has_bug): Update. | |
10666 | * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>: | |
10667 | Update. Remove alloca. | |
10668 | * ada-lang.c (ada_main_name): Update. | |
10669 | ||
263db9a1 TT |
10670 | 2018-03-30 Tom Tromey <tom@tromey.com> |
10671 | ||
10672 | * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove. | |
10673 | (struct dwo_file_deleter): New. | |
10674 | (dwo_file_up): New typedef. | |
10675 | (open_and_init_dwo_file): Use dwo_file_up. | |
10676 | (free_dwo_file_cleanup): Remove. | |
10677 | ||
5dafb3d1 TT |
10678 | 2018-03-30 Tom Tromey <tom@tromey.com> |
10679 | ||
10680 | * dwarf2read.c (free_dwo_file): Remove "objfile" parameter. | |
10681 | (free_dwo_file_cleanup, free_dwo_file_from_slot): Update. | |
10682 | ||
11ed8cad TT |
10683 | 2018-03-30 Tom Tromey <tom@tromey.com> |
10684 | ||
10685 | * dwarf2read.c (class free_cached_comp_units): New class. | |
10686 | (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it. | |
10687 | (free_cached_comp_units): Remove function. | |
10688 | ||
9ae79dac TT |
10689 | 2018-03-30 Tom Tromey <tom@tromey.com> |
10690 | ||
10691 | * utils.h (make_cleanup_unpush_target): Remove. | |
10692 | * inf-ptrace.c (struct target_unpusher): New. | |
10693 | (target_unpush_up) New typedef. | |
10694 | (inf_ptrace_create_inferior, inf_ptrace_attach): Use | |
10695 | target_unpush_up. | |
10696 | * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove. | |
10697 | ||
5aa89276 TT |
10698 | 2018-03-27 Tom Tromey <tom@tromey.com> |
10699 | ||
10700 | * utils.c (prompt_for_continue): Use unique_xmalloc_ptr. | |
10701 | ||
1dbeed45 TT |
10702 | 2018-03-27 Pedro Alves <palves@redhat.com> |
10703 | Tom Tromey <tom@tromey.com> | |
10704 | ||
10705 | * top.c (class gdb_readline_wrapper_cleanup): Add constructor, | |
10706 | destructor. Now a class. | |
10707 | (gdb_readline_wrapper_cleanup): Remove function. | |
10708 | (gdb_readline_wrapper): Remove cleanups. | |
10709 | ||
c819b2c0 TT |
10710 | 2018-03-27 Tom Tromey <tom@tromey.com> |
10711 | ||
10712 | * typeprint.h (struct type_print_options) <local_typedefs, | |
10713 | global_typedefs>: Remove "struct" keyword. | |
10714 | (class typedef_hash_table): New class. | |
10715 | (recursively_update_typedef_hash, add_template_parameters) | |
10716 | (create_typedef_hash, free_typedef_hash, copy_typedef_hash) | |
10717 | (find_typedef_in_hash): Don't declare. | |
10718 | * typeprint.c (struct typedef_hash_table): Move to typeprint.h. | |
10719 | (typedef_hash_table::recursively_update): Rename from | |
10720 | recursively_update_typedef_hash. Now a member. | |
10721 | (typedef_hash_table::add_template_parameters): Rename from | |
10722 | add_template_parameters. Now a member. | |
10723 | (typedef_hash_table::typedef_hash_table): Now a constructor; | |
10724 | rename from create_typedef_hash. | |
10725 | (typedef_hash_table::~typedef_hash_table): Now a destructor; | |
10726 | rename from free_typedef_hash. | |
10727 | (do_free_typedef_hash, make_cleanup_free_typedef_hash) | |
10728 | (do_free_global_table): Remove. | |
10729 | (typedef_hash_table::typedef_hash_table): New constructor; renamed | |
10730 | from copy_type_recursive. | |
10731 | (create_global_typedef_table): Remove. | |
10732 | (typedef_hash_table::find_global_typedef): Now a member of | |
10733 | typedef_hash_table. | |
10734 | (typedef_hash_table::find_typedef): Rename from | |
10735 | find_typedef_in_hash; now a member. | |
10736 | (whatis_exp): Update. | |
10737 | * extension.h (struct ext_lang_type_printers): Add constructor and | |
10738 | destructor. | |
10739 | (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't | |
10740 | declare. | |
10741 | * extension.c (ext_lang_type_printers::ext_lang_type_printers): | |
10742 | Now a constructor; rename from start_ext_lang_type_printers. | |
10743 | (ext_lang_type_printers): Now a destructor; rename from | |
10744 | free_ext_lang_type_printers. | |
10745 | * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1): | |
10746 | Update. | |
10747 | (c_type_print_base_struct_union): Update. Remove cleanups. | |
10748 | ||
608219fb TT |
10749 | 2018-03-27 Tom Tromey <tom@tromey.com> |
10750 | ||
10751 | * dwarf-index-write.c: Include <cmath>. | |
10752 | ||
3fcded8f JB |
10753 | 2018-03-27 Joel Brobecker <brobecker@adacore.com> |
10754 | ||
10755 | * NEWS: Add entry describing new "set|show varsize-limit" command. | |
10756 | * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit" | |
10757 | command. | |
10758 | * printcmd.c (_initialize_printcmd): Add "set var" alias of | |
10759 | "set variable". | |
10760 | ||
cd4fb1b2 SM |
10761 | 2018-03-27 Simon Marchi <simon.marchi@ericsson.com> |
10762 | ||
10763 | * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and | |
10764 | dwarf-index-write.c | |
10765 | (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h. | |
10766 | * dwarf-index-common.c: New file. | |
10767 | * dwarf-index-common.h: New file. | |
10768 | * dwarf-index-write.c: New file. | |
10769 | * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h. | |
10770 | (struct dwarf2_section_info): Move from here. | |
10771 | (dwarf2_section_info_def): Likewise. | |
10772 | (DEF_VEC_O (dwarf2_section_info_def)): Likewise. | |
10773 | (offset_type): Likewise. | |
10774 | (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise. | |
10775 | (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise. | |
10776 | (DW2_GDB_INDEX_CU_SET_VALUE): Likewise. | |
10777 | (byte_swap): Likewise. | |
10778 | (MAYBE_SWAP): Likewise. | |
10779 | (dwarf2_per_cu_ptr): Likewise. | |
10780 | (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise. | |
10781 | (struct tu_stats): Likewise. | |
10782 | (struct dwarf2_per_objfile): Likewise. | |
10783 | (struct dwarf2_per_cu_data): Likewise. | |
10784 | (struct signatured_type): Likewise. | |
10785 | (sig_type_ptr): Likewise. | |
10786 | (DEF_VEC_P (sig_type_ptr)): Likewise. | |
10787 | (INDEX4_SUFFIX): Likewise. | |
10788 | (INDEX5_SUFFIX): Likewise. | |
10789 | (DEBUG_STR_SUFFIX): Likewise. | |
10790 | (dwarf2_read_section): Make non-static. | |
10791 | (mapped_index_string_hash): Move from here. | |
10792 | (dwarf5_djb_hash): Likewise. | |
10793 | (file_write): Likewise. | |
10794 | (class data_buf): Likewise. | |
10795 | (struct symtab_index_entry): Likewise. | |
10796 | (struct mapped_symtab): Likewise. | |
10797 | (find_slot): Likewise. | |
10798 | (hash_expand): Likewise. | |
10799 | (add_index_entry): Likewise. | |
10800 | (uniquify_cu_indices): Likewise. | |
10801 | (class c_str_view): Likewise. | |
10802 | (class c_str_view_hasher): Likewise. | |
10803 | (class vector_hasher): Likewise. | |
10804 | (write_hash_table): Likewise. | |
10805 | (psym_index_map): Likewise. | |
10806 | (struct addrmap_index_data): Likewise. | |
10807 | (add_address_entry): Likewise. | |
10808 | (add_address_entry_worker): Likewise. | |
10809 | (write_address_map): Likewise. | |
10810 | (symbol_kind): Likewise. | |
10811 | (write_psymbols): Likewise. | |
10812 | (struct signatured_type_index_data): Likewise. | |
10813 | (write_one_signatured_type): Likewise. | |
10814 | (recursively_count_psymbols): Likewise. | |
10815 | (recursively_write_psymbols): Likewise. | |
10816 | (class debug_names): Likewise. | |
10817 | (check_dwarf64_offsets): Likewise. | |
10818 | (psyms_seen_size): Likewise. | |
10819 | (write_gdbindex): Likewise. | |
10820 | (write_debug_names): Likewise. | |
10821 | (assert_file_size): Likewise. | |
10822 | (write_psymtabs_to_index): Likewise. | |
10823 | (save_gdb_index_command): Likewise. | |
10824 | (_initialize_dwarf2_read): Don't register the "save gdb-index" | |
10825 | command. | |
10826 | * dwarf2read.h: New file. | |
10827 | ||
59cc4834 JB |
10828 | 2018-03-27 Joel Brobecker <brobecker@adacore.com> |
10829 | ||
10830 | PR gdb/22670 | |
10831 | * dwarf2read.c (dwarf2_physname): Do not return the demangled | |
10832 | symbol name if the CU's language stores symbol names in linkage | |
10833 | format. | |
10834 | * language.h (struct language_defn) | |
10835 | <la_store_sym_names_in_linkage_form_p>: New field. Adjust | |
10836 | all instances of this struct. | |
10837 | ||
67501539 TT |
10838 | 2018-03-26 Tom Tromey <tom@tromey.com> |
10839 | ||
10840 | * stack.c (backtrace_command_1): Remove verbose code. | |
10841 | ||
76c939ac TT |
10842 | 2018-03-26 Tom Tromey <tom@tromey.com> |
10843 | ||
10844 | * python/py-framefilter.c (py_print_type): Don't catch | |
10845 | exceptions. Return void. | |
10846 | (py_print_value): Likewise. | |
10847 | (py_print_single_arg): Likewise. | |
10848 | (enumerate_args): Don't catch exceptions. | |
10849 | (py_print_args): Likewise. | |
10850 | (py_print_frame): Likewise. | |
10851 | (gdbpy_apply_frame_filter): Catch exceptions here. | |
10852 | ||
9507b29c TT |
10853 | 2018-03-26 Tom Tromey <tom@tromey.com> |
10854 | ||
10855 | * stack.c (_initialize_stack): Remove trailing newlines from help | |
10856 | text. Add "Usage" line to "backtrace" help. | |
10857 | ||
eb68e487 TT |
10858 | 2018-03-26 Tom Tromey <tom@tromey.com> |
10859 | ||
10860 | PR python/16486: | |
10861 | * python/py-framefilter.c (py_print_args): Call wrap_hint. | |
10862 | ||
1f111921 TT |
10863 | 2018-03-26 Tom Tromey <tom@tromey.com> |
10864 | ||
10865 | * python/py-framefilter.c (py_print_single_arg): Return | |
10866 | EXT_LANG_BT_ERROR from catch. | |
10867 | ||
fb7eb8b5 TT |
10868 | 2018-03-26 Tom Tromey <tom@tromey.com> |
10869 | ||
10870 | PR backtrace/15584: | |
10871 | * stack.c (backtrace_command_1): Move some code into no-filters | |
10872 | "if". | |
10873 | ||
4ca59a9f TT |
10874 | 2018-03-26 Tom Tromey <tom@tromey.com> |
10875 | ||
10876 | * python/py-framefilter.c (throw_quit_or_print_exception): New | |
10877 | function. | |
10878 | (gdbpy_apply_frame_filter): Use it. | |
10879 | ||
92256134 TT |
10880 | 2018-03-26 Tom Tromey <tom@tromey.com> |
10881 | ||
10882 | PR cli/17716: | |
10883 | * python/py-framefilter.c (py_print_type, py_print_value) | |
10884 | (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use | |
10885 | RETURN_MASK_ERROR. | |
10886 | ||
7a630bc2 TT |
10887 | 2018-03-26 Tom Tromey <tom@tromey.com> |
10888 | ||
10889 | * python/py-framefilter.c (enumerate_args): Use | |
10890 | gdb::unique_xmalloc_ptr. | |
10891 | ||
63283d4a TT |
10892 | 2018-03-26 Tom Tromey <tom@tromey.com> |
10893 | ||
10894 | * python/py-framefilter.c (py_print_frame): Return | |
10895 | EXT_LANG_BT_OK. | |
10896 | (gdbpy_apply_frame_filter): Update comment. | |
10897 | * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>: | |
10898 | Remove. | |
10899 | <EXT_LANG_BT_NO_FILTERS>: Change value. | |
10900 | ||
978d6c75 TT |
10901 | 2018-03-26 Tom Tromey <tom@tromey.com> |
10902 | ||
10903 | PR backtrace/15582: | |
10904 | * stack.c (backtrace_command): Parse "hide" argument. | |
10905 | * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE. | |
10906 | * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New | |
10907 | constant. | |
10908 | ||
1cf7e640 TT |
10909 | 2018-03-26 Tom Tromey <tom@tromey.com> |
10910 | ||
10911 | * stack.c (backtrace_command_1): Remove "show_locals" parameter, | |
10912 | add "flags". | |
10913 | (backtrace_command): Remove "fulltrace", add "flags". | |
10914 | ||
ea3b0687 TT |
10915 | 2018-03-26 Tom Tromey <tom@tromey.com> |
10916 | ||
10917 | * stack.c (backtrace_command): Rewrite command line parsing. | |
10918 | ||
9f034d75 SM |
10919 | 2018-03-26 Simon Marchi <simon.marchi@ericsson.com> |
10920 | ||
10921 | * dwarf2read.c (DEF_VEC_I(offset_type)): Remove. | |
10922 | ||
ce1459e5 SM |
10923 | 2018-03-26 Simon Marchi <simon.marchi@ericsson.com> |
10924 | ||
10925 | * filename-seen-cache.h: Add include guard. | |
10926 | ||
4f7ae6f5 KS |
10927 | 2018-03-26 Keith Seitz <keiths@redhat.com> |
10928 | ||
10929 | * symfile.c (place_section): Remove "struct" from section_addr_info | |
10930 | in comment. | |
10931 | * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove | |
10932 | "struct" keyword from section_addr_info. | |
10933 | ||
5cd3e386 AH |
10934 | 2018-03-26 Alan Hayward <alan.hayward@arm.com> |
10935 | ||
10936 | * regformats/regdef.h (reg): Add constructors. | |
10937 | ||
3e5ef9a4 PA |
10938 | 2018-03-25 Pedro Alves <palves@redhat.com> |
10939 | ||
10940 | * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE | |
10941 | if then/else bodies in var_func_name extraction. | |
10942 | ||
c88d2fcc | 10943 | 2018-03-23 Weimin Pan <weimin.pan@oracle.com> |
bce02d88 WP |
10944 | |
10945 | * minsyms.c (lookup_minimal_symbol_and_objfile): Use | |
10946 | lookup_minimal_symbol() to find symbol entry. | |
10947 | * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment. | |
10948 | ||
b7fee5a3 KS |
10949 | 2018-03-23 Keith Seitz <keiths@redhat.com> |
10950 | ||
10951 | PR c++/22968 | |
10952 | * dwarf2read.c (scan_partial_symbols): Scan structs/classes for | |
10953 | nested type definitions for C++, too. | |
10954 | ||
2cc9b304 TT |
10955 | 2018-03-23 Tom Tromey <tom@tromey.com> |
10956 | ||
10957 | * machoread.c (struct oso_el): Add a constructor. Don't define as | |
10958 | a typedef. | |
10959 | (macho_register_oso): Remove. | |
10960 | (macho_symtab_read): Take a std::vector. | |
10961 | (oso_el_compare_name): Now a std::sort comparator. | |
10962 | (macho_symfile_read_all_oso): Take a std::vector. | |
10963 | (macho_symfile_read): Use std::vector. Remove cleanups. | |
10964 | ||
a2b2bc12 TT |
10965 | 2018-03-22 Tom Tromey <tom@tromey.com> |
10966 | ||
10967 | * record-full.c (record_full_exec_insn): Use gdb::byte_vector. | |
10968 | (record_full_goto_bookmark): Use std::string. | |
10969 | ||
7a8f494c PFC |
10970 | 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
10971 | ||
10972 | PR tdep/18295 | |
10973 | * rs6000-tdep.c (skip_prologue): Match both stwux and stdux | |
10974 | a single mask. | |
10975 | ||
dd6d677f PFC |
10976 | 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
10977 | ||
10978 | * rs6000-tdep.c (store_insn_p): New function. | |
10979 | (skip_prologue): New variable alloca_reg_offset. Set lr_reg | |
10980 | and cr_reg to their unshifted values. Use store_insn_p to | |
10981 | match LR saves using either R1 or fdata->alloca_reg. Use | |
10982 | store_insn_p to match CR saves. Set alloca_reg_offset | |
10983 | when alloca_reg and framep are set. Remove lr_reg shift | |
10984 | when assigning to fdata->lr_register. | |
10985 | ||
26d6cec4 AA |
10986 | 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10987 | ||
10988 | * linux-tdep.c (linux_info_proc): For "info proc cmdline", print | |
10989 | command line args instead of emitting a warning. | |
10990 | ||
5d9310c4 SM |
10991 | 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca> |
10992 | ||
10993 | * tracepoint.h (struct static_tracepoint_marker): Initialize | |
10994 | fields, define default constructor, move constructor and move | |
10995 | assignment, disable the rest. | |
10996 | <str_id, extra>: Make std::string. | |
10997 | (release_static_tracepoint_marker): Remove. | |
10998 | (free_current_marker): Remove. | |
10999 | * tracepoint.c (free_current_marker): Remove. | |
11000 | (parse_static_tracepoint_marker_definition): Adjust to | |
11001 | std::string, use new hex2str overload. | |
11002 | (release_static_tracepoint_marker): Remove. | |
11003 | (print_one_static_tracepoint_marker): Get marker by reference | |
11004 | and adjust to std::string. | |
11005 | (info_static_tracepoint_markers_command): Adjust to std::vector | |
11006 | changes | |
11007 | * target.h (static_tracepoint_marker_p): Remove typedef. | |
11008 | (DEF_VEC_P(static_tracepoint_marker_p)): Remove. | |
11009 | (struct target_ops) <to_static_tracepoint_marker_at>: Return | |
11010 | bool. | |
11011 | <to_static_tracepoint_markers_by_strid>: Return std::vector. | |
11012 | * target-debug.h | |
11013 | (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove. | |
11014 | (target_debug_print_std_vector_static_tracepoint_marker): New. | |
11015 | (target_debug_print_struct_static_tracepoint_marker_p): Rename | |
11016 | to... | |
11017 | (target_debug_print_static_tracepoint_marker_p): ... this. | |
11018 | * target-delegates.c: Re-generate. | |
11019 | * breakpoint.h (struct tracepoint) <static_trace_marker_id>: | |
11020 | Make std::string. | |
11021 | * breakpoint.c (init_breakpoint_sal): Adjust to std::string. | |
11022 | (decode_static_tracepoint_spec): Adjust to std::vector. | |
11023 | (tracepoint_print_one_detail): Adjust to std::string. | |
11024 | (strace_marker_decode_location): Adjust to std::string. | |
11025 | (update_static_tracepoint): Adjust to std::string, remove call | |
11026 | to release_static_tracepoint_marker. | |
11027 | * linux-nat.c (linux_child_static_tracepoint_markers_by_strid): | |
11028 | Adjust to std::vector. | |
11029 | * remote.c (remote_static_tracepoint_marker_at): Return bool. | |
11030 | (remote_static_tracepoint_markers_by_strid): Adjust to | |
11031 | std::vector. | |
11032 | * common/rsp-low.h (hex2str): New overload with explicit count | |
11033 | of bytes. | |
11034 | * common/rsp-low.c (hex2str): New overload with explicit count | |
11035 | of bytes. | |
11036 | * unittests/rsp-low-selftests.c (test_hex2str): New function. | |
11037 | (_initialize_rsp_low_selftests): Add test_hex2str test. | |
11038 | * unittests/tracepoint-selftests.c | |
11039 | (test_parse_static_tracepoint_marker_definition): Adjust to | |
11040 | std::string. | |
11041 | ||
62c222b6 SM |
11042 | 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca> |
11043 | ||
11044 | * tracepoint.c (parse_static_tracepoint_marker_definition): | |
11045 | Consider case where the definition is followed by more | |
11046 | definitions. | |
11047 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
11048 | tracepoint-selftests.c. | |
11049 | * unittests/tracepoint-selftests.c: New. | |
11050 | ||
7eb2418f PFC |
11051 | 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
11052 | ||
11053 | * MAINTAINERS (Write After Approval): Add Pedro Franco de | |
11054 | Carvalho. | |
11055 | ||
7cbe16e9 SR |
11056 | 2018-03-20 Stephen Roberts <stephen.roberts@arm.com> |
11057 | ||
3d6b3b82 | 11058 | * symtab.c (find_pc_sect_line): fixed indentation. |
7cbe16e9 | 11059 | |
4ee89e90 SR |
11060 | 2018-03-20 Stephen Roberts <stephen.roberts@arm.com> |
11061 | ||
3d6b3b82 | 11062 | * symtab.c (find_pc_sect_line): now uses binary search. |
4ee89e90 | 11063 | |
92630041 TT |
11064 | 2018-03-19 Tom Tromey <tom@tromey.com> |
11065 | ||
11066 | * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain | |
11067 | "IDENT" production. | |
11068 | ||
76727919 TT |
11069 | 2018-03-19 Pedro Alves <palves@redhat.com> |
11070 | Tom Tromey <tom@tromey.com> | |
11071 | ||
11072 | * unittests/observable-selftests.c: New file. | |
11073 | * common/observable.h: New file. | |
11074 | * observable.h: New file. | |
11075 | * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c, | |
11076 | arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c, | |
11077 | breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c, | |
11078 | corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c, | |
11079 | extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c, | |
11080 | infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c, | |
11081 | linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c, | |
11082 | mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c, | |
11083 | ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c, | |
11084 | python/py-breakpoint.c, python/py-finishbreakpoint.c, | |
11085 | python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c, | |
11086 | record-btrace.c, record-full.c, record.c, regcache.c, remote.c, | |
11087 | riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c, | |
11088 | spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c, | |
11089 | symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c, | |
11090 | tui/tui-interp.c, valops.c: Update all users. | |
11091 | * tui/tui-hooks.c (tui_bp_created_observer) | |
11092 | (tui_bp_deleted_observer, tui_bp_modified_observer) | |
11093 | (tui_inferior_exit_observer, tui_before_prompt_observer) | |
11094 | (tui_normal_stop_observer, tui_register_changed_observer): | |
11095 | Remove. | |
11096 | (tui_observers_token): New global. | |
11097 | (attach_or_detach, tui_attach_detach_observers): New functions. | |
11098 | (tui_install_hooks, tui_remove_hooks): Use | |
11099 | tui_attach_detach_observers. | |
11100 | * record-btrace.c (record_btrace_thread_observer): Remove. | |
11101 | (record_btrace_thread_observer_token): New global. | |
11102 | * observer.sh: Remove. | |
11103 | * observer.c: Rename to observable.c. | |
11104 | * observable.c (namespace gdb_observers): Define new objects. | |
11105 | (observer_debug): Move into gdb_observers namespace. | |
11106 | (struct observer, struct observer_list, xalloc_observer_list_node) | |
11107 | (xfree_observer_list_node, generic_observer_attach) | |
11108 | (generic_observer_detach, generic_observer_notify): Remove. | |
11109 | (_initialize_observer): Update. | |
11110 | Don't include observer.inc. | |
11111 | * Makefile.in (generated_files): Remove observer.h, observer.inc. | |
11112 | (clean mostlyclean): Likewise. | |
11113 | (observer.h, observer.inc): Remove targets. | |
11114 | (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c. | |
11115 | (COMMON_SFILES): Use observable.c, not observer.c. | |
11116 | * .gitignore: Remove observer.h. | |
11117 | ||
1cb1f3da TT |
11118 | 2018-03-18 Tom Tromey <tom@tromey.com> |
11119 | ||
11120 | * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use | |
11121 | gdb::def_vector. | |
11122 | (bfd_lookup_symbol_from_dyn_symtab): Likewise. | |
11123 | ||
a06ab151 TT |
11124 | 2018-03-17 Tom Tromey <tom@tromey.com> |
11125 | ||
11126 | * auto-load.c (auto_load_objfile_script_1): Use std::string. | |
11127 | ||
770623f7 TT |
11128 | 2018-03-17 Tom Tromey <tom@tromey.com> |
11129 | ||
11130 | * target.c (class scoped_target_fd): New. | |
11131 | (target_fileio_close_cleanup): Remove. | |
11132 | (target_fileio_read_alloc_1): Use scoped_target_fd. | |
11133 | ||
39be3c7e SM |
11134 | 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca> |
11135 | ||
11136 | * silent-rules.mk: New. | |
11137 | * Makefile.in: Include silent-rules.mk | |
11138 | (srcdir, VPATH, top_srcdir): Move up. | |
11139 | (COMPILE): Add ECHO_CXX. | |
11140 | (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD. | |
11141 | (init.c): Add ECHO_INIT_C. | |
11142 | (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD. | |
11143 | (version.c): Add ECHO_GEN. | |
11144 | (printcmd.o): Add ECHO_CXX. | |
11145 | (target-float.o): Add ECHO_CXX. | |
11146 | (ada-exp.o): Add ECHO_CXX. | |
11147 | (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN. | |
11148 | (insight$(EXEEXT)): Add ECHO_CXXLD. | |
11149 | * gnulib/configure.ac: Add AM_SILENT_RULES. | |
11150 | * gnulib/aclocal.m4: Re-generate. | |
11151 | * gnulib/configure: Re-generate. | |
11152 | * gnulib/import/Makefile.in: Re-generate. | |
11153 | ||
37e136b1 TT |
11154 | 2018-03-16 Tom Tromey <tom@tromey.com> |
11155 | ||
11156 | * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs". | |
11157 | * utils.h (make_cleanup_free_section_addr_info): Don't declare. | |
11158 | * utils.c (do_free_section_addr_info) | |
11159 | (make_cleanup_free_section_addr_info): Remove. | |
11160 | * symfile.h (struct other_sections): Add constructor. | |
11161 | (struct section_addr_info): Remove. | |
11162 | (section_addr_info): New typedef. | |
11163 | (struct sym_fns) <sym_offsets>: Change type of parameter. | |
11164 | (build_section_addr_info_from_objfile) | |
11165 | (relative_addr_info_to_section_offsets, addr_info_make_relative) | |
11166 | (default_symfile_offsets, symbol_file_add) | |
11167 | (symbol_file_add_from_bfd) | |
11168 | (build_section_addr_info_from_section_table): Update. | |
11169 | (alloc_section_addr_info, free_section_addr_info): Don't declare. | |
11170 | * symfile.c (alloc_section_addr_info): Remove. | |
11171 | (build_section_addr_info_from_section_table): Change return type. | |
11172 | Update. | |
11173 | (build_section_addr_info_from_bfd) | |
11174 | (build_section_addr_info_from_objfile): Likewise. | |
11175 | (free_section_addr_info): Remove. | |
11176 | (relative_addr_info_to_section_offsets): Change type of "addrs". | |
11177 | (addrs_section_compar): Now a std::sort comparator. | |
11178 | (addrs_section_sort): Change return type. | |
11179 | (addr_info_make_relative): Change type of "addrs". Update. | |
11180 | (default_symfile_offsets, syms_from_objfile_1) | |
11181 | (syms_from_objfile, symbol_file_add_with_addrs): Likewise. | |
11182 | (symbol_file_add_separate): Update. | |
11183 | (symbol_file_add): Change type of "addrs". Update. | |
11184 | (add_symbol_file_command): Update. Remove cleanups. | |
11185 | * symfile-mem.c (symbol_file_add_from_memory): Update. Remove | |
11186 | cleanups. | |
11187 | * symfile-debug.c (debug_sym_offsets): Change type of "info". | |
11188 | * solib.c (solib_read_symbols): Update. | |
11189 | * objfiles.c (objfile_relocate): Update. Remove cleanups. | |
11190 | * machoread.c (macho_symfile_offsets): Update. | |
11191 | * jit.c (jit_bfd_try_read_symtab): Update. | |
11192 | ||
03afa6ef SM |
11193 | 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca> |
11194 | ||
11195 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
11196 | unittests/utils-selftests.c. | |
11197 | * unittests/utils-selftests.c: New file. | |
11198 | ||
3ae9ce5d TT |
11199 | 2018-03-14 Tom Tromey <tom@tromey.com> |
11200 | ||
11201 | PR cli/14977: | |
11202 | * printcmd.c (printf_c_string, printf_wide_c_string): Special case | |
11203 | for NULL. | |
11204 | ||
b8c2339b TT |
11205 | 2018-03-14 Tom Tromey <tom@tromey.com> |
11206 | ||
11207 | PR cli/19918: | |
11208 | * printcmd.c (printf_pointer): Allow "-" in format. | |
11209 | ||
80ae639d TT |
11210 | 2018-03-14 Tom Tromey <tom@tromey.com> |
11211 | ||
11212 | * printcmd.c (_initialize_printcmd): Add usage to printf. | |
11213 | ||
0d671d99 YQ |
11214 | 2018-03-14 Yao Qi <qiyao@sourceware.org> |
11215 | ||
11216 | * MAINTAINERS: Update my email address. | |
11217 | ||
b577b6af TT |
11218 | 2018-03-13 Tom Tromey <tom@tromey.com> |
11219 | ||
11220 | * machoread.c (macho_check_dsym): Change filenamep to a | |
11221 | std::string*. | |
11222 | (macho_symfile_read): Update. | |
11223 | * symfile.c (load_command): Use std::string. | |
11224 | ||
89a3b63e AB |
11225 | 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com> |
11226 | ||
11227 | * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization | |
11228 | to error message string. | |
11229 | (riscv_register_name): Use xsnprintf instead of sprintf. | |
11230 | (riscv_insn::fetch_instruction): Use gdb_assert instead of | |
11231 | internal_error. | |
11232 | (riscv_print_arg_location): Use gdb_assert_not_reached instead of | |
11233 | error. | |
11234 | (riscv_push_dummy_call): Likewise. | |
11235 | ||
984c7238 TT |
11236 | 2018-03-12 Tom Tromey <tom@tromey.com> |
11237 | ||
11238 | * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix): | |
11239 | Use gdb::byte_vector. | |
11240 | * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector. | |
11241 | ||
933522d1 YQ |
11242 | 2018-03-12 Yao Qi <yao.qi@linaro.org> |
11243 | ||
11244 | * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change | |
11245 | parameter type to readable_regcache. | |
11246 | * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update | |
11247 | the declaration. | |
11248 | ||
be2daae6 TT |
11249 | 2018-03-11 Tom Tromey <tom@tromey.com> |
11250 | ||
11251 | * dwarf2read.c (struct nextfield): Add initializers. | |
11252 | (struct nextfnfield): Remove. | |
11253 | (struct fnfieldlist): Add initializers. Remove "length" and | |
11254 | "head", use std::vector. | |
11255 | (struct decl_field_list): Remove. | |
11256 | (struct field_info): Add initializers. | |
11257 | <fields, baseclasses>: Now std::vector. | |
11258 | <nbaseclasses, nfnfields, typedef_field_list_count, | |
11259 | nested_types_list_count>: Remove. | |
11260 | (dwarf2_add_field, dwarf2_add_type_defn) | |
11261 | (dwarf2_attach_fields_to_type, dwarf2_add_member_fn) | |
11262 | (dwarf2_attach_fn_fields_to_type, handle_struct_member_die) | |
11263 | (process_structure_scope): Update. | |
11264 | ||
484cf504 TT |
11265 | 2018-03-11 Tom Tromey <tom@tromey.com> |
11266 | ||
11267 | * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable | |
11268 | for use by std::sort. | |
11269 | (build_type_psymtabs_1): Use std::vector. | |
11270 | ||
9bd8e0b0 EZ |
11271 | 2018-03-09 Eli Zaretskii <eliz@gnu.org> |
11272 | ||
11273 | * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK, | |
11274 | and LIBMPFR in the printed configuration. | |
11275 | ||
5dc1a704 TT |
11276 | 2018-03-08 Tom Tromey <tom@tromey.com> |
11277 | ||
11278 | * source.c (get_filename_and_charpos): Use scoped_fd. | |
11279 | * nto-procfs.c (procfs_open_1): Use scoped_fd. | |
11280 | (procfs_pidlist): Likewise. | |
11281 | * procfs.c (proc_get_LDT_entry): Use scoped_fd. | |
11282 | (iterate_over_mappings): Likewise. | |
11283 | ||
fdf07f3a TT |
11284 | 2018-03-08 Tom Tromey <tom@tromey.com> |
11285 | ||
11286 | * infcall.c (struct call_return_meta_info) | |
11287 | <stack_temporaries_enabled>: Remove. | |
11288 | (get_call_return_value, call_function_by_hand_dummy): Update. | |
11289 | * thread.c (disable_thread_stack_temporaries): Remove. | |
11290 | (enable_thread_stack_temporaries): Remove. | |
11291 | (thread_stack_temporaries_enabled_p): Return bool. | |
11292 | (push_thread_stack_temporary, value_in_thread_stack_temporaries) | |
11293 | (get_last_thread_stack_temporary): Update. | |
11294 | * eval.c (evaluate_subexp): Update. | |
11295 | * gdbthread.h (class enable_thread_stack_temporaries): Now a | |
11296 | class, not a function. | |
11297 | (value_ptr, value_vec): Remove typedefs. | |
11298 | (class thread_info) <stack_temporaries_enabled>: Now bool. | |
11299 | <stack_temporaries>: Now a std::vector. | |
11300 | (thread_stack_temporaries_enabled_p) | |
11301 | (value_in_thread_stack_temporaries): Return bool. | |
11302 | ||
567a3e54 SM |
11303 | 2018-03-08 Simon Marchi <simon.marchi@ericsson.com> |
11304 | ||
11305 | * remote.c (putpkt_binary): Fix omitted bytes reporting. | |
11306 | (getpkt_or_notif_sane_1): Likewise. | |
11307 | ||
00b40057 SM |
11308 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
11309 | ||
11310 | * build-id.c (build_id_to_debug_bfd): Use std::string. | |
11311 | ||
a8dbfd58 SM |
11312 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
11313 | ||
11314 | * build-id.c (find_separate_debug_file_by_buildid): Return | |
11315 | std::string. | |
11316 | * build-id.h (find_separate_debug_file_by_buildid): Return | |
11317 | std::string. | |
11318 | * coffread.c (coff_symfile_read): Adjust to std::string. | |
11319 | * elfread.c (elf_symfile_read): Adjust to std::string. | |
11320 | * symfile.c (separate_debug_file_exists): Change parameter to | |
11321 | std::string. | |
11322 | (find_separate_debug_file): Return std::string. | |
11323 | (find_separate_debug_file_by_debuglink): Return std::string. | |
11324 | * symfile.h (find_separate_debug_file_by_debuglink): Return | |
11325 | std::string. | |
11326 | ||
e6a58aa8 SM |
11327 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
11328 | ||
11329 | * common/xml-utils.c (xml_escape_text): Move code to... | |
11330 | (xml_escape_text_append): ... this new function. | |
11331 | * common/xml-utils.h (xml_escape_text_append): New declaration. | |
11332 | * unittests/xml-utils-selftests.c (test_xml_escape_text_append): | |
11333 | New function. | |
11334 | (_initialize_xml_utils): register test_xml_escape_text_append as | |
11335 | a selftest. | |
11336 | ||
4ef0bef6 AH |
11337 | 2018-03-07 Alan Hayward <alan.hayward@arm.com> |
11338 | ||
11339 | * defs.h: Remove MAX_REGISTER_SIZE. | |
11340 | * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE | |
11341 | asserts. | |
11342 | * python/py-unwind.c (pyuw_sniffer): Likewise. | |
11343 | ||
e0d3522b TT |
11344 | 2018-03-07 Tom Tromey <tom@tromey.com> |
11345 | ||
11346 | * linux-tdep.c (linux_info_proc): Update. | |
11347 | * target.h (struct target_ops) <to_fileio_readlink>: Return | |
11348 | optional<string>. | |
11349 | (target_fileio_readlink): Return optional<string>. | |
11350 | * remote.c (remote_hostio_readlink): Return optional<string>. | |
11351 | * inf-child.c (inf_child_fileio_readlink): Return | |
11352 | optional<string>. | |
11353 | * target.c (target_fileio_readlink): Return optional<string>. | |
11354 | ||
ea005f31 AB |
11355 | 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com> |
11356 | ||
11357 | * regcache.c (cooked_read_test): Add riscv to the list of | |
11358 | architectures that have a save_reggroup. | |
11359 | ||
e95a97d4 AA |
11360 | 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11361 | ||
11362 | * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given | |
11363 | value is not a dynamic class object. | |
11364 | ||
d8344f3d TT |
11365 | 2018-03-06 Tom Tromey <tom@tromey.com> |
11366 | ||
11367 | * rust-exp.y: Formatting fixes. | |
11368 | ||
9add17f2 AB |
11369 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
11370 | ||
11371 | * riscv-tdep.c (riscv_register_name): Remove target description | |
11372 | support. | |
11373 | (riscv_gdbarch_init): Remove target description check. | |
11374 | ||
c9486dfe AB |
11375 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
11376 | ||
11377 | * riscv-tdep.c: Remove 'Contributed by ...' lines from header | |
11378 | comment. | |
11379 | * riscv-tdep.h: Likewise. | |
11380 | ||
d74aff3d AB |
11381 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
11382 | ||
11383 | * riscv-tdep.c (riscv_pseudo_register_read): Delete. | |
11384 | (riscv_pseudo_register_write): Delete. | |
11385 | (riscv_gdbarch_init): Remove all use of pseudo registers. | |
11386 | ||
7ea78b59 SM |
11387 | 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
11388 | ||
11389 | * record-btrace.c (btrace_print_lines): Replace cleanup | |
11390 | parameter with RAII equivalents. | |
11391 | (btrace_insn_history): Replace cleanup with RAII equivalents. | |
11392 | * ui-out.h (make_cleanup_ui_out_list_begin_end, | |
11393 | make_cleanup_ui_out_tuple_begin_end): Remove. | |
11394 | * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end, | |
11395 | make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end, | |
11396 | make_cleanup_ui_out_list_begin_end): Remove. | |
11397 | ||
53127008 SM |
11398 | 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
11399 | ||
11400 | * record-btrace.c (record_btrace_maybe_mark_async_event): Change | |
11401 | parameter types to std::vector. Use bool. | |
11402 | (record_btrace_wait): Replace VEC(tp_t) with | |
11403 | std::vector<thread_info *>. | |
11404 | * common/gdb_vecs.h (unordered_remove, ordered_remove): New. | |
11405 | ||
228f1508 SM |
11406 | 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
11407 | ||
11408 | * record-btrace.c (record_btrace_disable_callback): Remove. | |
11409 | (struct scoped_btrace_disable): New. | |
11410 | (record_btrace_open): Use scoped_btrace_disable. | |
11411 | ||
b2970c23 AB |
11412 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
11413 | ||
11414 | * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for | |
11415 | reading values from registers. | |
11416 | ||
fb294655 AB |
11417 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
11418 | ||
11419 | * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz | |
11420 | where appropriate. | |
11421 | ||
cab5bb9d AB |
11422 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
11423 | ||
11424 | * riscv-tdep.c (riscv_print_arg_location): Add header comment, | |
11425 | change parameter type. Use GDB's print functions, and use | |
11426 | core_addr_to_string where appropriate. | |
11427 | (riscv_push_dummy_call): Use core_addr_to_string where | |
11428 | appropriate, update call to riscv_print_arg_location, and reindent | |
11429 | a few lines. | |
11430 | (riscv_return_value): Update call to riscv_print_arg_location. | |
11431 | ||
dbbb1059 AB |
11432 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
11433 | Tim Newsome <tim@sifive.com> | |
11434 | Albert Ou <a0u@eecs.berkeley.edu> | |
11435 | Darius Rad <darius@bluespec.com> | |
11436 | ||
11437 | * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o | |
11438 | (HFILES_NO_SRCDIR): Add riscv-tdep.h. | |
11439 | (ALLDEPFILES): Add riscv-tdep.c | |
11440 | * configure.tgt: Add riscv support. | |
11441 | * riscv-tdep.c: New file. | |
11442 | * riscv-tdep.h: New file. | |
11443 | * NEWS: Mention new target. | |
11444 | * MAINTAINERS: Add entry for riscv. | |
11445 | ||
5dc43913 AB |
11446 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
11447 | ||
11448 | * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized | |
11449 | fields within aggregates. | |
11450 | ||
3dea1ef7 SM |
11451 | 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca> |
11452 | ||
11453 | * record-btrace.c (btrace_print_lines): Change type of flags to | |
11454 | gdb_disassembly_flags. | |
11455 | ||
7efba073 JB |
11456 | 2018-03-04 John Baldwin <jhb@FreeBSD.org> |
11457 | ||
11458 | * fbsd-nat.c: Include "inf-ptrace.h". | |
11459 | (USE_SIGTRAP_SIGINFO): Conditionally define. | |
11460 | [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function. | |
11461 | (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap". | |
11462 | [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New | |
11463 | function. | |
11464 | [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint): | |
11465 | Likewise. | |
11466 | [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint): | |
11467 | Likewise. | |
11468 | (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set | |
11469 | "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint", | |
11470 | "supports_stopped_by_hw_breakpoint" target methods. | |
11471 | ||
386a8676 JB |
11472 | 2018-03-04 John Baldwin <jhb@FreeBSD.org> |
11473 | ||
11474 | * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat". | |
11475 | * fbsd-nat.c (debug_fbsd_nat): New variable. | |
11476 | (show_fbsd_nat_debug): New function. | |
11477 | (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled. | |
11478 | (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command. | |
11479 | ||
12279366 JB |
11480 | 2018-03-04 John Baldwin <jhb@FreeBSD.org> |
11481 | ||
11482 | * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function. | |
11483 | * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New | |
11484 | prototype. | |
11485 | * x86-nat.c (x86_stopped_by_hw_breakpoint): New function. | |
11486 | (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target | |
11487 | method. | |
11488 | ||
54693cf5 SM |
11489 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
11490 | ||
11491 | * common/gdb_vecs.c (free_char_ptr_vec): Remove. | |
11492 | * common/gdb_vecs.h (free_char_ptr_vec): Remove. | |
11493 | ||
ccb2231c SM |
11494 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
11495 | ||
11496 | * charset.c (struct charset_vector): New. | |
11497 | (charsets): Change type to charset_vector. | |
11498 | (find_charset_names): Adjust. | |
11499 | (add_one): Adjust. | |
11500 | (_initialize_charset): Adjust. | |
11501 | ||
6fb16ce6 SM |
11502 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
11503 | ||
11504 | * progspace.h (struct program_space) <deleted_solibs>: Change | |
11505 | type to std::vector<std::string>. | |
11506 | * progspace.c (clear_program_space_solib_cache): Adjust. | |
11507 | * breakpoint.c (print_solib_event): Adjust. | |
11508 | (check_status_catch_solib): Adjust. | |
11509 | * solib.c (update_solib_list): Adjust. | |
11510 | * ui-out.h (class ui_out) <field_string>: New overload. | |
11511 | * ui-out.c (ui_out::field_string): New overload. | |
11512 | ||
564b1e3f SM |
11513 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
11514 | ||
11515 | * progspace.h (struct program_space): Add constructor and | |
11516 | destructor, initialize fields. | |
11517 | (add_program_space): Remove. | |
11518 | * progspace.c (add_program_space): Rename to... | |
11519 | (program_space::program_space): ... this. | |
11520 | (release_program_space): Rename to... | |
11521 | (program_space::~program_space): ... this. | |
11522 | (delete_program_space): Use delete to delete program_space. | |
11523 | (initialize_progspace): Use new to allocate program_space. | |
11524 | * inferior.c (add_inferior_with_spaces): Likewise. | |
11525 | (clone_inferior_command): Likewise. | |
11526 | * infrun.c (follow_fork_inferior): Likewise. | |
11527 | (handle_vfork_child_exec_or_exit): Likewise. | |
11528 | ||
e80aaf61 SM |
11529 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
11530 | ||
11531 | * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove. | |
11532 | (delim_string_to_char_ptr_vec): Return std::vector of | |
11533 | gdb::unique_xmalloc_ptr. | |
11534 | (dirnames_to_char_ptr_vec_append): Take std::vector of | |
11535 | gdb::unique_xmalloc_ptr. | |
11536 | (dirnames_to_char_ptr_vec): Return std::vector of | |
11537 | gdb::unique_xmalloc_ptr. | |
11538 | * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): | |
11539 | Take std::vector of gdb::unique_xmalloc_ptr, adjust the code. | |
11540 | (delim_string_to_char_ptr_vec): Return an std::vector of | |
11541 | gdb::unique_xmalloc_ptr, adjust the code. | |
11542 | (dirnames_to_char_ptr_vec_append): Take an std::vector of | |
11543 | gdb::unique_xmalloc_ptr, adjust the code. | |
11544 | (dirnames_to_char_ptr_vec): Return an std::vector of | |
11545 | gdb::unique_xmalloc_ptr, adjust the code. | |
11546 | * auto-load.c (auto_load_safe_path_vec): Change type to | |
11547 | std::vector of gdb::unique_xmalloc_ptr. | |
11548 | (auto_load_expand_dir_vars): Return an std::vector of | |
11549 | gdb::unique_xmalloc_ptr, adjust the code. | |
11550 | (auto_load_safe_path_vec_update): Adjust. | |
11551 | (filename_is_in_auto_load_safe_path_vec): Adjust. | |
11552 | (auto_load_objfile_script_1): Adjust. | |
11553 | * build-id.c (build_id_to_debug_bfd): Adjust. | |
11554 | * linux-thread-db.c (thread_db_load_search): Adjust. | |
11555 | * source.c (add_path): Adjust. | |
11556 | (openp): Adjust. | |
11557 | * symfile.c (find_separate_debug_file): Adjust. | |
11558 | * utils.c (do_free_char_ptr_vec): Remove. | |
11559 | (make_cleanup_free_char_ptr_vec): Remove. | |
11560 | ||
ab818ade SDJ |
11561 | 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com> |
11562 | ||
11563 | PR gdb/22907 | |
11564 | * common/pathstuff.c: Conditionally include "<windows.h>". | |
11565 | ||
e1e6f073 GS |
11566 | 2018-03-01 Georg Sauthoff <mail@georg.so> |
11567 | ||
11568 | PR gdb/22888 | |
11569 | * gcore.in: Quote variables and switch interpreter to bash. | |
11570 | ||
c7b15a66 TT |
11571 | 2018-03-01 Tom Tromey <tom@tromey.com> |
11572 | ||
11573 | * dwarf2read.c (alloc_discriminant_info): Fix default_index | |
11574 | assertion. Add assertion for discriminant_index. | |
11575 | (quirk_rust_enum): Use correct base type name in univariant case. | |
11576 | ||
0cb7c7b0 SM |
11577 | 2018-03-01 Simon Marchi <simon.marchi@ericsson.com> |
11578 | ||
11579 | * record.c (get_call_history_modifiers): Return a | |
11580 | record_print_flags. | |
11581 | (cmd_record_call_history): Adjust. | |
11582 | * record-btrace.c (record_btrace_call_history): Adjust. | |
11583 | (record_btrace_call_history_range): Adjust. | |
11584 | (record_btrace_call_history_from): Adjust. | |
11585 | * target-debug.h (target_debug_print_record_print_flags): New. | |
11586 | * target-delegates.c: Re-generate. | |
11587 | * target.c (target_call_history): Change flags type. | |
11588 | (target_call_history_from): Likewise. | |
11589 | (target_call_history_range): Likewise. | |
11590 | * target.h (struct target_ops) <target_call_history>: Likewise. | |
11591 | (target_call_history_from): Likewise. | |
11592 | (target_call_history_range): Likewise. | |
11593 | ||
25e3c82c SDJ |
11594 | 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> |
11595 | Simon Marchi <simon.marchi@polymtl.ca> | |
11596 | ||
11597 | * common/common-utils.c: Include "sys/stat.h". | |
11598 | (is_regular_file): Move here from "source.c"; change return | |
11599 | type to "bool". | |
11600 | * common/common-utils.h (is_regular_file): New prototype. | |
11601 | * common/pathstuff.c (contains_dir_separator): New function. | |
11602 | * common/pathstuff.h (contains_dir_separator): New prototype. | |
11603 | * source.c: Don't include "sys/stat.h". | |
11604 | (is_regular_file): Move to "common/common-utils.c". | |
11605 | ||
b4987c95 SDJ |
11606 | 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> |
11607 | ||
11608 | * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c". | |
11609 | (HFILES_NO_SRCDIR): Add "common/pathstuff.h". | |
11610 | * auto-load.c: Include "common/pathstuff.h". | |
11611 | * common/common-def.h (current_directory): Move here. | |
11612 | * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New | |
11613 | function. | |
11614 | * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New | |
11615 | prototype. | |
11616 | * common/pathstuff.c: New file. | |
11617 | * common/pathstuff.h: New file. | |
11618 | * compile/compile.c: Include "common/pathstuff.h". | |
11619 | * defs.h (current_directory): Move to "common/common-defs.h". | |
11620 | * dwarf2read.c: Include "common/pathstuff.h". | |
11621 | * exec.c: Likewise. | |
11622 | * guile/scm-safe-call.c: Likewise. | |
11623 | * linux-thread-db.c: Likewise. | |
11624 | * main.c: Likewise. | |
11625 | * nto-tdep.c: Likewise. | |
11626 | * objfiles.c: Likewise. | |
11627 | * source.c: Likewise. | |
11628 | * symtab.c: Likewise. | |
11629 | * utils.c: Include "common/pathstuff.h". | |
11630 | (gdb_realpath): Move to "common/pathstuff.c". | |
11631 | (gdb_realpath_keepfile): Likewise. | |
11632 | (gdb_abspath): Likewise. | |
11633 | * utils.h (gdb_realpath): Move to "common/pathstuff.h". | |
11634 | (gdb_realpath_keepfile): Likewise. | |
11635 | (gdb_abspath): Likewise. | |
11636 | ||
f169cfdc JB |
11637 | 2018-02-28 John Baldwin <jhb@FreeBSD.org> |
11638 | ||
11639 | * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a | |
11640 | wildcard process pid for super_resume for kernels with a | |
11641 | specific bug. | |
11642 | ||
e05cac70 PM |
11643 | 2018-02-27 Phil Muldoon <pmuldoon@redhat.com> |
11644 | ||
11645 | * compile/compile.c (get_args): Add additional comments | |
11646 | explaining function. | |
11647 | ||
55089490 TT |
11648 | 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca> |
11649 | Tom Tromey <tom@tromey.com> | |
11650 | ||
11651 | * target.h (memory_write_request_s): Remove typedef. Don't define | |
11652 | VEC. | |
11653 | (target_write_memory_blocks): Change argument to std::vector. | |
11654 | (struct memory_write_request): Add constructor. | |
11655 | * target-memory.c (compare_block_starting_address): Return bool. | |
11656 | Change argument types. | |
11657 | (claim_memory): Change arguments to use std::vector. | |
11658 | (split_regular_and_flash_blocks, blocks_to_erase) | |
11659 | (compute_garbled_blocks): Likewise. | |
11660 | (cleanup_request_data, cleanup_write_requests_vector): Remove. | |
11661 | (target_write_memory_blocks): Change argument to std::vector. | |
11662 | * symfile.c (struct load_section_data): Add constructor and | |
11663 | destructor. Use std::vector for "requests". | |
11664 | (struct load_progress_data): Add initializers. | |
11665 | (load_section_callback): Update. Use "new". | |
11666 | (clear_memory_write_data): Remove. | |
11667 | (generic_load): Update. | |
11668 | ||
0c305b61 AH |
11669 | 2018-02-27 Alan Hayward <alan.hayward@arm.com> |
11670 | ||
11671 | * arch/aarch64.h: Use common/tdesc.h. | |
11672 | ||
c5196c92 MR |
11673 | 2018-02-26 Maciej W. Rozycki <macro@mips.com> |
11674 | ||
11675 | * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD | |
11676 | architecture with a 64-bit ABI. | |
11677 | ||
37c33887 MR |
11678 | 2018-02-26 Maciej W. Rozycki <macro@mips.com> |
11679 | ||
11680 | * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination | |
11681 | ahead of target description loading. | |
11682 | ||
d4dd3282 TT |
11683 | 2018-02-26 Tom Tromey <tom@tromey.com> |
11684 | ||
11685 | * stack.c (backtrace_command_1): Update. | |
11686 | * python/python-internal.h (gdbpy_apply_frame_filter): Change type | |
11687 | of "flags". | |
11688 | * python/py-framefilter.c (py_print_frame) | |
11689 | (gdbpy_apply_frame_filter): Change type of "flags". | |
11690 | * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type | |
11691 | of "flags". | |
11692 | (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals) | |
11693 | (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update. | |
11694 | * extension.h (enum frame_filter_flag): Rename from | |
11695 | frame_filter_flags. | |
11696 | (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE. | |
11697 | (apply_ext_lang_frame_filter): Change type of "flags". | |
11698 | * extension.c (apply_ext_lang_frame_filter): Change type of | |
11699 | "flags". | |
11700 | * extension-priv.h (struct extension_language_ops) | |
11701 | <apply_frame_filter>: Change type of "flags". | |
11702 | ||
6893c19a TT |
11703 | 2018-02-26 Tom Tromey <tom@tromey.com> |
11704 | ||
11705 | PR python/16497: | |
11706 | * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix | |
11707 | off-by-one in py_end computation. | |
11708 | * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle | |
11709 | PRINT_MORE_FRAMES. | |
11710 | * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New | |
11711 | constant. | |
11712 | ||
2ddeaf8a TT |
11713 | 2018-02-26 Tom Tromey <tom@tromey.com> |
11714 | ||
11715 | * dwarf2read.c (struct variant_field): New. | |
11716 | (struct nextfield) <variant>: New field. | |
11717 | (dwarf2_add_field): Handle DW_TAG_variant_part. | |
11718 | (dwarf2_attach_fields_to_type): Attach a discriminant_info to a | |
11719 | discriminated union. | |
11720 | (read_structure_type): Handle DW_TAG_variant_part. | |
11721 | (handle_struct_member_die): New function, extracted from | |
11722 | process_structure_scope. Handle DW_TAG_variant. | |
11723 | (process_structure_scope): Handle discriminated unions. Call | |
11724 | handle_struct_member_die. | |
11725 | ||
c9317f21 TT |
11726 | 2018-02-26 Tom Tromey <tom@tromey.com> |
11727 | ||
11728 | * rust-lang.h (rust_last_path_segment): Declare. | |
11729 | * rust-lang.c (rust_last_path_segment): Now public. Change | |
11730 | contract. | |
11731 | (struct disr_info): Remove. | |
11732 | (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL) | |
11733 | (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged) | |
11734 | (rust_get_disr_info, rust_tuple_variant_type_p): Remove. | |
11735 | (rust_enum_p, rust_enum_variant): New function. | |
11736 | (rust_underscore_fields): Remove "offset" parameter. | |
11737 | (rust_print_enum): New function. | |
11738 | (rust_val_print) <TYPE_CODE_UNION>: Remove enum code. | |
11739 | <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate. | |
11740 | (rust_print_struct_def): Add "for_rust_enum" parameter. Handle | |
11741 | enums. | |
11742 | (rust_internal_print_type): New function, from rust_print_type. | |
11743 | Remove enum code. | |
11744 | (rust_print_type): Call rust_internal_print_type. | |
11745 | (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>: | |
11746 | Update enum handling. | |
11747 | * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field. | |
11748 | (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum) | |
11749 | (rust_union_quirks): New functions. | |
11750 | (process_full_comp_unit, process_full_type_unit): Call | |
11751 | rust_union_quirks. | |
11752 | (process_structure_scope): Update rust_unions if necessary. | |
11753 | ||
7c22600a TT |
11754 | 2018-02-26 Tom Tromey <tom@tromey.com> |
11755 | ||
11756 | * value.h (value_union_variant): Declare. | |
11757 | * valops.c (value_union_variant): New function. | |
11758 | * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro. | |
11759 | (struct discriminant_info): New. | |
11760 | (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New | |
11761 | enumerator. | |
11762 | (struct main_type) <flag_discriminated_union>: New field. | |
11763 | ||
15ce8941 TT |
11764 | 2018-02-26 Tom Tromey <tom@tromey.com> |
11765 | ||
11766 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
11767 | unittests/unpack-selftests.c. | |
11768 | * unittests/unpack-selftests.c: New file. | |
11769 | * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases. | |
11770 | ||
48fbe735 YQ |
11771 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
11772 | ||
11773 | * dwarf2read.c (struct partial_die_info) <read>: New method. | |
11774 | (read_partial_die): Remove the declaration. | |
11775 | (load_partial_dies): Update. | |
11776 | (partial_die_info::partial_die_info): | |
11777 | (read_partial_die): Change it to partial_die_info::read. | |
11778 | ||
52356b79 YQ |
11779 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
11780 | ||
11781 | * dwarf2read.c (struct partial_die_info) <fixup>: New method. | |
11782 | (fixup_partial_die): Remove declaration. | |
11783 | (scan_partial_symbols): Update. | |
11784 | (partial_die_parent_scope): Likewise. | |
11785 | (partial_die_full_name): Likewise. | |
11786 | (fixup_partial_die): Change it to partial_die_info::fixup. | |
11787 | ||
35cc7ed7 YQ |
11788 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
11789 | ||
11790 | * dwarf2read.c (read_partial_die): Update the declaration. | |
11791 | (load_partial_dies): Caller update. | |
11792 | (read_partial_die): Remove one argument abbrev_len. | |
11793 | ||
6f06d47b YQ |
11794 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
11795 | ||
11796 | * dwarf2read.c (struct partial_die_info): Add ctor, delete | |
11797 | assignment operator. | |
11798 | (load_partial_dies): Use ctor and copy ctor. | |
11799 | (read_partial_die): Update. | |
11800 | (dwarf2_cu::find_partial_die): Use ctor. | |
11801 | ||
d590ff25 YQ |
11802 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
11803 | ||
11804 | * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method. | |
11805 | (find_partial_die_in_comp_unit): Change it to | |
11806 | dwarf2_cu::find_partial_die. | |
11807 | (find_partial_die): Update. | |
11808 | ||
fd0a254f YQ |
11809 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
11810 | ||
11811 | * dwarf2read.c (read_partial_die): Remove the code checking abbrev | |
11812 | is NULL. | |
11813 | ||
cd9983dd YQ |
11814 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
11815 | ||
11816 | * dwarf2read.c (load_partial_dies): Move the location of XOBNEW. | |
11817 | ||
f46cd62a AH |
11818 | 2018-02-26 Alan Hayward <alan.hayward@arm.com> |
11819 | ||
11820 | * arch/amd64.h: Use common/tdesc.h. | |
11821 | * arch/i386.c: Likewise. | |
11822 | * arch/i386.h: Likewise. | |
11823 | * arch/tic6x.c: Likewise. | |
11824 | * arch/tdesc.h: Move file from here... | |
11825 | * common/tdesc.h: ...to here. | |
11826 | * features/aarch64-core.c: Regenerate. | |
11827 | * features/aarch64-fpu.c: Regenerate. | |
11828 | * features/i386/32bit-avx.c: Regenerate. | |
11829 | * features/i386/32bit-avx512.c: Regenerate. | |
11830 | * features/i386/32bit-core.c: Regenerate. | |
11831 | * features/i386/32bit-linux.c: Regenerate. | |
11832 | * features/i386/32bit-mpx.c: Regenerate. | |
11833 | * features/i386/32bit-pkeys.c: Regenerate. | |
11834 | * features/i386/32bit-sse.c: Regenerate. | |
11835 | * features/i386/64bit-avx.c: Regenerate. | |
11836 | * features/i386/64bit-avx512.c: Regenerate. | |
11837 | * features/i386/64bit-core.c: Regenerate. | |
11838 | * features/i386/64bit-linux.c: Regenerate. | |
11839 | * features/i386/64bit-mpx.c: Regenerate. | |
11840 | * features/i386/64bit-pkeys.c: Regenerate. | |
11841 | * features/i386/64bit-segments.c: Regenerate. | |
11842 | * features/i386/64bit-sse.c: Regenerate. | |
11843 | * features/i386/x32-core.c: Regenerate. | |
11844 | * features/tic6x-c6xp.c: Regenerate. | |
11845 | * features/tic6x-core.c: Regenerate. | |
11846 | * features/tic6x-gp.c: Regenerate. | |
11847 | * target-descriptions.c: Use common/tdesc.h. | |
11848 | * target-descriptions.h: Likewise. | |
11849 | ||
9b292f68 TT |
11850 | 2018-02-24 Tom Tromey <tom@tromey.com> |
11851 | ||
11852 | * linux-thread-db.c (try_thread_db_load_from_pdir_1) | |
11853 | (try_thread_db_load_from_dir, thread_db_load_search): Use | |
11854 | std::string. | |
11855 | (info_auto_load_libthread_db_compare): Return bool. Change | |
11856 | argument types. | |
11857 | (info_auto_load_libthread_db): Use std::vector, std::string. | |
11858 | Remove cleanups. | |
11859 | ||
281d762b TT |
11860 | 2018-02-24 Tom Tromey <tom@tromey.com> |
11861 | ||
11862 | * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a | |
11863 | std::string. | |
11864 | * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a | |
11865 | std::string*. | |
11866 | * gdbarch.c: Rebuild. | |
11867 | * gdbarch.h: Rebuild. | |
11868 | * breakpoint.c (check_fast_tracepoint_sals): Use std::string. | |
11869 | * arch-utils.h (default_fast_tracepoint_valid_at): Update. | |
11870 | * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a | |
11871 | std::string*. | |
11872 | ||
9d8780f0 SM |
11873 | 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca> |
11874 | ||
11875 | * gdbtypes.h (sect_offset): Change type to uint64_t. | |
11876 | (sect_offset_str): New function. | |
11877 | * dwarf2read.c (create_addrmap_from_aranges): Use | |
11878 | sect_offset_str. | |
11879 | (error_check_comp_unit_head): Likewise. | |
11880 | (create_debug_type_hash_table): Likewise. | |
11881 | (read_cutu_die_from_dwo): Likewise. | |
11882 | (init_cutu_and_read_dies): Likewise. | |
11883 | (init_cutu_and_read_dies_no_follow): Likewise. | |
11884 | (process_psymtab_comp_unit_reader): Likewise. | |
11885 | (partial_die_parent_scope): Likewise. | |
11886 | (peek_die_abbrev): Likewise. | |
11887 | (process_queue): Likewise. | |
11888 | (dwarf2_physname): Likewise. | |
11889 | (read_namespace_alias): Likewise. | |
11890 | (read_import_statement): Likewise. | |
11891 | (create_dwo_cu_reader): Likewise. | |
11892 | (create_cus_hash_table): Likewise. | |
11893 | (lookup_dwo_cutu): Likewise. | |
11894 | (inherit_abstract_dies): Likewise. | |
11895 | (read_func_scope): Likewise. | |
11896 | (read_call_site_scope): Likewise. | |
11897 | (dwarf2_add_member_fn): Likewise. | |
11898 | (read_common_block): Likewise. | |
11899 | (read_module_type): Likewise. | |
11900 | (read_typedef): Likewise. | |
11901 | (read_subrange_type): Likewise. | |
11902 | (load_partial_dies): Likewise. | |
11903 | (read_partial_die): Likewise. | |
11904 | (find_partial_die): Likewise. | |
11905 | (read_str_index): Likewise. | |
11906 | (dwarf2_string_attr): Likewise. | |
11907 | (build_error_marker_type): Likewise. | |
11908 | (lookup_die_type): Likewise. | |
11909 | (dump_die_shallow): Likewise. | |
11910 | (follow_die_ref): Likewise. | |
11911 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
11912 | (dwarf2_fetch_constant_bytes): Likewise. | |
11913 | (follow_die_sig): Likewise. | |
11914 | (get_signatured_type): Likewise. | |
11915 | (get_DW_AT_signature_type): Likewise. | |
11916 | (dwarf2_find_containing_comp_unit): Likewise. | |
11917 | (set_die_type): Likewise. | |
11918 | ||
8ec57239 JB |
11919 | 2018-02-21 John Baldwin <jhb@FreeBSD.org> |
11920 | ||
11921 | * arch/aarch64.c: Include "common-defs.h". | |
11922 | * arch/amd64.c: Likewise. | |
11923 | * arch/i386.c: Likewise. | |
11924 | ||
3eac2b65 TT |
11925 | 2018-02-21 Tom Tromey <tom@tromey.com> |
11926 | ||
11927 | * value.h: (extract_field_op): Update. | |
11928 | * eval.c (extract_field_op): Return a const char *. | |
11929 | * expression.h (parse_expression_for_completion): Update. | |
11930 | * completer.c (complete_expression): Update. | |
11931 | (add_struct_fields): Make fieldname const. | |
11932 | * parse.c (expout_completion_name): Now a unique_xmalloc_ptr. | |
11933 | (mark_completion_tag, parse_exp_in_context_1): Update. | |
11934 | (parse_expression_for_completion): Change "name" to | |
11935 | unique_xmalloc_ptr*. | |
11936 | ||
6ccb583f TT |
11937 | 2018-02-21 Tom Tromey <tom@tromey.com> |
11938 | ||
11939 | * infcall.c (call_function_by_hand_dummy): Use std::vector. | |
11940 | ||
c113ed0c YQ |
11941 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
11942 | ||
11943 | * avr-tdep.c (avr_read_pc): Change parameter type to | |
11944 | readable_regcache. | |
11945 | * gdbarch.sh (read_pc): Likewise. | |
11946 | * gdbarch.c: Re-generated. | |
11947 | * gdbarch.h: Re-generated. | |
11948 | * hppa-tdep.c (hppa_read_pc): Change parameter type to | |
11949 | readable_regcache. | |
11950 | * ia64-tdep.c (ia64_read_pc): Likewise. | |
11951 | * mips-tdep.c (mips_read_pc): Likewise. | |
11952 | * spu-tdep.c (spu_read_pc): Likewise. | |
11953 | ||
4c74fe6b YQ |
11954 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
11955 | ||
11956 | * Makefile.in (COMMON_SFILES): Add regcache-dump.c | |
11957 | * regcache-dump.c: New file. | |
11958 | * regcache.c: Move register_dump to regcache-dump.c. | |
11959 | (maintenance_print_registers): Likewise. | |
11960 | (maintenance_print_raw_registers): Likewise. | |
11961 | (maintenance_print_cooked_registers): Likewise. | |
11962 | (maintenance_print_register_groups): Likewise. | |
11963 | (maintenance_print_remote_registers): Likewise. | |
11964 | (_initialize_regcache): Likewise. | |
11965 | * regcache.h (register_dump): Moved from regcache.c. | |
11966 | ||
796bb026 YQ |
11967 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
11968 | ||
11969 | * regcache.c (regcache::regcache): Update. | |
11970 | (regcache::invalidate): Move it to detached_regcache::invalidate. | |
11971 | (get_thread_arch_aspace_regcache): Update. | |
11972 | (regcache::raw_update): Update. | |
11973 | (regcache::cooked_read): Remove some code. | |
11974 | (regcache::cooked_read_value): Likewise. | |
11975 | (regcache::raw_write): Remove assert on m_readonly_p. | |
11976 | (regcache::raw_supply_integer): Move it to | |
11977 | detached_regcache::raw_supply_integer. | |
11978 | (regcache::raw_supply_zeroed): Likewise. | |
11979 | * regcache.h (detached_regcache) <raw_supply_integer>: New | |
11980 | declaration. | |
11981 | <raw_supply_zeroed, invalidate>: Likewise. | |
11982 | (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed. | |
11983 | <invalidate>: Likewise. | |
11984 | <m_readonly_p>: Removed. | |
11985 | ||
215c69dc YQ |
11986 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
11987 | ||
11988 | * infcmd.c (get_return_value): Let stop_regs point to | |
11989 | get_current_regcache. | |
11990 | * regcache.c (regcache::regcache): Remove. | |
11991 | (register_dump_reg_buffer): New class. | |
11992 | (regcache_print): Adjust. | |
11993 | * regcache.h (regcache): Remove constructors. | |
11994 | ||
f3384e66 YQ |
11995 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
11996 | ||
11997 | * regcache.c (class register_dump): New class. | |
11998 | (register_dump_regcache, register_dump_none): New class. | |
11999 | (register_dump_remote, register_dump_groups): New class. | |
12000 | (regcache_print): Update. | |
12001 | * regcache.h (regcache_dump_what): Move it to regcache.c. | |
12002 | (regcache) <dump>: Remove. | |
12003 | ||
c8ec2f33 YQ |
12004 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
12005 | ||
12006 | * jit.c (struct jit_unwind_private) <regcache>: Change its type to | |
12007 | reg_buffer_rw *. | |
12008 | (jit_unwind_reg_set_impl): Call raw_supply. | |
12009 | (jit_frame_sniffer): Use reg_buffer_rw. | |
12010 | * record-full.c (record_full_core_regbuf): Change its type. | |
12011 | (record_full_core_open_1): Use reg_buffer_rw. | |
12012 | (record_full_close): Likewise. | |
12013 | (record_full_core_fetch_registers): Use regcache->raw_supply. | |
12014 | (record_full_core_store_registers): Likewise. | |
12015 | * regcache.c (regcache::get_register_status): Move it to | |
12016 | reg_buffer. | |
12017 | (regcache_raw_set_cached_value): Remove. | |
12018 | (regcache::raw_set_cached_value): Remove. | |
12019 | (regcache::raw_write): Call raw_supply. | |
12020 | (regcache::raw_supply): Move it to reg_buffer_rw. | |
12021 | * regcache.h (regcache_raw_set_cached_value): Remove. | |
12022 | (reg_buffer_rw): New class. | |
12023 | ||
daf6667d YQ |
12024 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
12025 | ||
12026 | * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use | |
12027 | readonly_detached_regcache. | |
12028 | (dummy_frame_prev_register): Use regcache->cooked_read. | |
12029 | * frame.c (frame_save_as_regcache): Change return type. | |
12030 | (frame_pop): Update. | |
12031 | * frame.h (frame_save_as_regcache): Update declaration. | |
12032 | * inferior.h (get_infcall_suspend_state_regcache): Update | |
12033 | declaration. | |
12034 | * infrun.c (infcall_suspend_state) <registers>: use | |
12035 | readonly_detached_regcache. | |
12036 | (save_infcall_suspend_state): Don't use regcache_dup. | |
12037 | (get_infcall_suspend_state_regcache): Change return type. | |
12038 | * linux-fork.c (struct fork_info) <savedregs>: Change to | |
12039 | readonly_detached_regcache. | |
12040 | <pc>: New field. | |
12041 | (fork_save_infrun_state): Don't use regcache_dup. | |
12042 | (info_checkpoints_command): Adjust. | |
12043 | * mi/mi-main.c (register_changed_p): Update declaration. | |
12044 | (mi_cmd_data_list_changed_registers): Use | |
12045 | readonly_detached_regcache. | |
12046 | (register_changed_p): Change parameter type to | |
12047 | readonly_detached_regcache. | |
12048 | * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use | |
12049 | readonly_detached_regcache. | |
12050 | (ppu2spu_sniffer): Construct a new readonly_detached_regcache. | |
12051 | * regcache.c (readonly_detached_regcache::readonly_detached_regcache): | |
12052 | New. | |
12053 | (regcache::save): Move it to reg_buffer. | |
12054 | (regcache::restore): Change parameter type. | |
12055 | (regcache_dup): Remove. | |
12056 | * regcache.h (reg_buffer) <save>: New method. | |
12057 | (readonly_detached_regcache): New class. | |
12058 | * spu-tdep.c (spu2ppu_cache) <regcache>: Use | |
12059 | readonly_detached_regcache. | |
12060 | (spu2ppu_sniffer): Construct a new readonly_detached_regcache. | |
12061 | ||
fc5b8736 YQ |
12062 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
12063 | ||
12064 | * frame.c (frame_save_as_regcache): Use regcache method save. | |
12065 | (frame_pop): Use regcache method restore. | |
12066 | * infrun.c (restore_infcall_suspend_state): Likewise. | |
12067 | * linux-fork.c (fork_load_infrun_state): Likewise. | |
12068 | * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method | |
12069 | save. | |
12070 | * regcache.c (regcache_save): Remove. | |
12071 | (regcache::restore): More asserts. | |
12072 | (regcache_cpy): Remove. | |
12073 | * regcache.h (regcache_save): Remove the declaration. | |
12074 | (regcache::restore): Move from private to public. | |
12075 | Remove the friend declaration of regcache_cpy. | |
12076 | (regcache_cpy): Remove declaration. | |
12077 | ||
849d0ba8 YQ |
12078 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
12079 | ||
12080 | * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change | |
12081 | parameter type to 'readable_regcache *'. | |
12082 | * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise. | |
12083 | * arm-tdep.c (arm_neon_quad_read): Likewise. | |
12084 | (arm_pseudo_read): Likewise. | |
12085 | * avr-tdep.c (avr_pseudo_register_read): Likewise. | |
12086 | * bfin-tdep.c (bfin_pseudo_register_read): Likewise. | |
12087 | * frv-tdep.c (frv_pseudo_register_read): Likewise. | |
12088 | * gdbarch.c: Re-generated. | |
12089 | * gdbarch.h: Re-generated. | |
12090 | * gdbarch.sh (pseudo_register_read): Change parameter type to | |
12091 | 'readable_regcache *'. | |
12092 | (pseudo_register_read_value): Likewise. | |
12093 | * h8300-tdep.c (pseudo_from_raw_register): Likewise. | |
12094 | (h8300_pseudo_register_read): Likewise. | |
12095 | * hppa-tdep.c (hppa_pseudo_register_read): Likewise. | |
12096 | * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. | |
12097 | (i386_pseudo_register_read_into_value): Likewise. | |
12098 | (i386_pseudo_register_read_value): Likewise. | |
12099 | * i386-tdep.h (i386_pseudo_register_read_into_value): Update | |
12100 | declaration. | |
12101 | * ia64-tdep.c (ia64_pseudo_register_read): Likewise. | |
12102 | * m32c-tdep.c (m32c_raw_read): Likewise. | |
12103 | (m32c_read_flg): Likewise. | |
12104 | (m32c_banked_register): Likewise. | |
12105 | (m32c_banked_read): Likewise. | |
12106 | (m32c_sb_read): Likewise. | |
12107 | (m32c_part_read): Likewise. | |
12108 | (m32c_cat_read): Likewise. | |
12109 | (m32c_r3r2r1r0_read): Likewise. | |
12110 | (m32c_pseudo_register_read): Likewise. | |
12111 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise. | |
12112 | * mep-tdep.c (mep_pseudo_cr32_read): Likewise. | |
12113 | (mep_pseudo_cr64_read): Likewise. | |
12114 | (mep_pseudo_register_read): Likewise. | |
12115 | * mips-tdep.c (mips_pseudo_register_read): Likewise. | |
12116 | * msp430-tdep.c (msp430_pseudo_register_read): Likewise. | |
12117 | * nds32-tdep.c (nds32_pseudo_register_read): Likewise. | |
12118 | * regcache.c (regcache::raw_read): Move it to readable_regcache. | |
12119 | (regcache::cooked_read): Likewise. | |
12120 | (regcache::cooked_read_value): Likewise. | |
12121 | (regcache_cooked_read_signed): | |
12122 | (regcache::cooked_read): Likewise. | |
12123 | * regcache.h (readable_regcache): New class. | |
12124 | (regcache): Inherit readable_regcache. Move some methods to | |
12125 | readable_regcache. | |
12126 | * rl78-tdep.c (rl78_pseudo_register_read): Change | |
12127 | parameter type to 'readable_regcache *'. | |
12128 | * rs6000-tdep.c (do_regcache_raw_read): Remove. | |
12129 | (e500_pseudo_register_read): Change parameter type to | |
12130 | 'readable_regcache *'. | |
12131 | (dfp_pseudo_register_read): Likewise. | |
12132 | (vsx_pseudo_register_read): Likewise. | |
12133 | (efpr_pseudo_register_read): Likewise. | |
12134 | * s390-tdep.c (s390_pseudo_register_read): Likewise. | |
12135 | * sh-tdep.c (sh_pseudo_register_read): Likewise. | |
12136 | * sh64-tdep.c (pseudo_register_read_portions): Likewise. | |
12137 | (sh64_pseudo_register_read): Likewise. | |
12138 | * sparc-tdep.c (sparc32_pseudo_register_read): Likewise. | |
12139 | * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise. | |
12140 | * spu-tdep.c (spu_pseudo_register_read_spu): Likewise. | |
12141 | (spu_pseudo_register_read): Likewise. | |
12142 | * xtensa-tdep.c (xtensa_register_read_masked): Likewise. | |
12143 | (xtensa_pseudo_register_read): Likewise. | |
12144 | ||
31716595 YQ |
12145 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
12146 | ||
12147 | * regcache.c (regcache::regcache): Call reg_buffer ctor. | |
12148 | (regcache::arch): Move it to reg_buffer::arch. | |
12149 | (regcache::register_buffer): Likewise. | |
12150 | (regcache::assert_regnum): Likewise. | |
12151 | (regcache::num_raw_registers): Likewise. | |
12152 | * regcache.h (reg_buffer): New class. | |
12153 | (regcache): Inherit reg_buffer. | |
12154 | ||
7104e59b SM |
12155 | 2018-02-20 Simon Marchi <simon.marchi@ericsson.com> |
12156 | ||
12157 | * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered, | |
12158 | gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF. | |
12159 | ||
2d8adcbd MM |
12160 | 2018-02-20 Markus Metzger <markus.t.metzger@intel.com> |
12161 | ||
12162 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp. | |
12163 | ||
b5884fa7 AH |
12164 | 2018-02-19 Alan Hayward <alan.hayward@arm.com> |
12165 | ||
12166 | * Makefile.in: (COMMON_SFILES): Add common/*.c files. | |
12167 | (SFILES): Remove common/*.c files. | |
12168 | (COMMON_OBS): Remove some *.o files built from common/*.c files. | |
12169 | * common/common.host: Add common reference. | |
12170 | * configure.ac: Likewise. | |
12171 | * configure: Regenerate. | |
12172 | ||
fd90ace4 YQ |
12173 | 2018-02-16 Yao Qi <yao.qi@linaro.org> |
12174 | ||
12175 | * block.c (block_namespace_info): Inherit allocate_on_obstack. | |
12176 | (block_initialize_namespace): Use new. | |
12177 | * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack. | |
12178 | (dwarf2_free_objfile): Use delete. | |
12179 | * gdbtypes.c (type_pair): Inherit allocate_on_obstack. | |
12180 | (copy_type_recursive): Use new. | |
12181 | * gdb_obstack.h (allocate_on_obstack): New. | |
12182 | ||
85046ae2 YQ |
12183 | 2018-02-15 Yao Qi <yao.qi@linaro.org> |
12184 | ||
12185 | PR gdb/22849 | |
12186 | * inferior.c (exit_inferior_1): Reset inf->control. | |
12187 | ||
355c559b JB |
12188 | 2018-02-15 Joel Brobecker <brobecker@adacore.com> |
12189 | ||
12190 | * ada-lang.c (ada_to_fixed_value_create): Delete advance | |
12191 | declaration. | |
12192 | ||
980548fd PA |
12193 | 2018-02-14 Pedro Alves <palves@redhat.com> |
12194 | ||
12195 | * frame-unwind.c (frame_unwind_try_unwinder): Always call | |
12196 | frame_cleanup_after_sniffer on exception. | |
12197 | ||
692d6f97 TT |
12198 | 2018-02-14 Tom Tromey <tom@tromey.com> |
12199 | ||
12200 | * solist.h (struct target_so_ops) <bfd_open>: Make pathname | |
12201 | const. | |
12202 | (solib_bfd_open): Make pathname const. | |
12203 | * solib.c (solib_bfd_open): Make pathname const. | |
12204 | * solib-spu.c (spu_bfd_fopen): Make name const. | |
12205 | (spu_bfd_open): Make pathname const. | |
12206 | * solib-darwin.c (darwin_bfd_open): Make pathname const. | |
12207 | * solib-aix.c (solib_aix_bfd_open): Make pathname const. | |
12208 | ||
e0cc99a6 TT |
12209 | 2018-02-14 Tom Tromey <tom@tromey.com> |
12210 | ||
12211 | * symfile.c (symfile_bfd_open): Update. | |
12212 | * source.h (openp, source_full_path_of, find_and_open_source): | |
12213 | Change argument type to unique_xmalloc_ptr. | |
12214 | * source.c (openp): Take a unique_xmalloc_ptr. | |
12215 | (source_full_path_of, find_and_open_source): Likewise. | |
12216 | (open_source_file, symtab_to_fullname): Update. | |
12217 | * solist.h (struct target_so_ops) <find_and_open_solib>: Take a | |
12218 | unique_xmalloc_ptr. | |
12219 | * solib.c (solib_find_1): Use unique_xmalloc_ptr. | |
12220 | (exec_file_find): Update. | |
12221 | * psymtab.c (psymtab_to_fullname): Update. | |
12222 | * nto-tdep.h (nto_find_and_open_solib): Update. | |
12223 | * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a | |
12224 | unique_xmalloc_ptr. | |
12225 | * exec.c (exec_file_attach): Update. | |
12226 | * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr. | |
12227 | * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr. | |
12228 | ||
b46a8d7c TT |
12229 | 2018-02-14 Tom Tromey <tom@tromey.com> |
12230 | ||
12231 | * solib.c: Include source.h. | |
12232 | * nto-tdep.c: Include source.h. | |
12233 | * mi/mi-cmd-env.c: Include source.h. | |
12234 | * infcmd.c: Include source.h. | |
12235 | * exec.c: Include source.h. | |
12236 | * defs.h (enum openp_flag, openp, source_full_path_of, mod_path) | |
12237 | (add_path, directory_switch, source_path, init_source_path): Move | |
12238 | declarations... | |
12239 | * source.h (enum openp_flag, openp, source_full_path_of, mod_path) | |
12240 | (add_path, directory_switch, source_path, init_source_path): | |
12241 | ...here. | |
12242 | ||
797bc1cb TT |
12243 | 2018-02-14 Tom Tromey <tom@tromey.com> |
12244 | ||
12245 | * solist.h (exec_file_find, solib_find): Return | |
12246 | unique_xmalloc_ptr. | |
12247 | (solib_bfd_fopen): Take a const char *. | |
12248 | * solib.c (solib_find_1): Return unique_xmalloc_ptr. | |
12249 | (exec_file_find, solib_find): Likewise. | |
12250 | (solib_bfd_fopen): Do not take ownership of "pathname". | |
12251 | (solib_bfd_open): Use unique_xmalloc_ptr. | |
12252 | * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr. | |
12253 | * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr. | |
12254 | * infrun.c (follow_exec): Use unique_xmalloc_ptr. | |
12255 | * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr. | |
12256 | ||
f98b2e33 JB |
12257 | 2018-02-14 Joel Brobecker <brobecker@adacore.com> |
12258 | ||
12259 | * ada-lang.c (name_match_type_from_name): Remove reference to | |
12260 | ada_name_for_lookup in function's documentation. | |
12261 | * ada-lang.h (ada_name_for_lookup): Delete declaration. | |
12262 | ||
24b9144d SM |
12263 | 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca> |
12264 | ||
12265 | * defs.h (enum openp_flags): New enum. | |
12266 | (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH): | |
12267 | Move to enum openp_flags. | |
12268 | (openp_flags): New enum flags. | |
12269 | (openp): Change parameter type to openp_flags. | |
12270 | * source.c (openp): Change parameter type to openp_flags. | |
12271 | * cli/cli-cmds.c (find_and_open_script): Use openp_flags. | |
12272 | * dwarf2read.c (try_open_dwop_file): Use openp_flags. | |
12273 | ||
387cd15b SM |
12274 | 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca> |
12275 | ||
12276 | * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show | |
12277 | per-command. | |
12278 | ||
b303c6f6 AB |
12279 | 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com> |
12280 | ||
12281 | * dwarf2read.c (dwarf2_release_queue): Delete function, move body | |
12282 | into... | |
12283 | (class dwarf2_queue_guard): ...the destructor of this new class. | |
12284 | (dw2_do_instantiate_symtab): Create instance of the new class | |
12285 | dwarf2_queue_guard, remove cleanup. | |
12286 | ||
9c3630e9 TT |
12287 | 2018-02-09 Tom Tromey <tom@tromey.com> |
12288 | ||
12289 | * source.c (find_source_lines): Don't reference past the end of | |
12290 | the vector. | |
12291 | ||
c4e12631 MM |
12292 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
12293 | ||
12294 | * remote.c (remote_btrace_maybe_reopen): Change error message. | |
12295 | * btrace.c (btrace_enable): Likewise. | |
12296 | (parse_xml_btrace): Likewise. | |
12297 | (parse_xml_btrace_conf): Likewise. | |
12298 | ||
88711fbf MM |
12299 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
12300 | ||
12301 | * nat/linux-btrace.c (diagnose_perf_event_open_fail): New. | |
12302 | (linux_enable_pt, linux_enable_bts): Call | |
12303 | diagnose_perf_event_open_fail. | |
12304 | ||
17ad2a4f MM |
12305 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
12306 | ||
12307 | * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message. | |
12308 | Remove parameter and change return type. Update callers. Move it. | |
12309 | (linux_enable_bts, linux_enable_pt): Improve error message. | |
12310 | (linux_enable_pt): Remove zero buffer size check. | |
12311 | (linux_enable_btrace): Improve error messages. Remove NULL return | |
12312 | check. | |
12313 | ||
de6242d3 MM |
12314 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
12315 | ||
12316 | * btrace.c (btrace_enable): Remove target_supports_btrace call. | |
12317 | * nat/linux-btrace.c (perf_event_pt_event_type): Move. | |
12318 | (kernel_supports_bts, kernel_supports_pt, linux_supports_bts) | |
12319 | (linux_supports_pt, linux_supports_btrace): Remove. | |
12320 | (linux_enable_bts): Call cpu_supports_bts. | |
12321 | * nat/linux-btrace.h (linux_supports_btrace): Remove. | |
12322 | * remote.c (remote_supports_btrace): Remove. | |
12323 | (init_remote_ops): Remove remote_supports_btrace. | |
12324 | * target-delegates.c: Regenerated. | |
12325 | * target.c (target_supports_btrace): Remove. | |
12326 | * target.h (target_ops) <to_supports_btrace>: Remove | |
12327 | (target_supports_btrace): Remove. | |
12328 | * x86-linux-nat.c (x86_linux_create_target): Remove | |
12329 | linux_supports_btrace. | |
12330 | ||
9ee23a85 MM |
12331 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
12332 | ||
12333 | * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling | |
12334 | btrace failed. | |
12335 | * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling | |
12336 | exception and use message in own exception. | |
12337 | ||
5c3284c1 MM |
12338 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
12339 | ||
12340 | * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h. | |
12341 | (perf_event_pt_event_type): Use gdb_file_up. | |
12342 | (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr, | |
12343 | scoped_fd, and scoped_mmap. | |
12344 | ||
84696f37 MM |
12345 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
12346 | ||
12347 | * common/scoped_mmap.h: New. | |
12348 | * unittests/scoped_mmap-selftest.c: New. | |
12349 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
12350 | unittests/scoped_mmap-selftest.c. | |
12351 | ||
ea4a0888 MM |
12352 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
12353 | ||
12354 | * common/scoped_fd.h: New. | |
12355 | * unittests/scoped_fd-selftest.c: New. | |
12356 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
12357 | unittests/scoped_fd-selftest.c. | |
12358 | ||
869e8290 TT |
12359 | 2018-02-09 Tom Tromey <tom@tromey.com> |
12360 | ||
12361 | * auto-load.c (auto_load_section_scripts): Use | |
12362 | gdb::unique_xmalloc_ptr. | |
12363 | ||
a37a2ae7 TT |
12364 | 2018-02-09 Tom Tromey <tom@tromey.com> |
12365 | ||
12366 | * auto-load.c (execute_script_contents): Use std::string. | |
12367 | ||
4e725347 JB |
12368 | 2018-02-09 Joel Brobecker <brobecker@adacore.com> |
12369 | ||
12370 | * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new | |
12371 | Python function, rather than a new command. | |
12372 | ||
9a897d43 TT |
12373 | 2018-02-08 Tom Tromey <tom@tromey.com> |
12374 | ||
12375 | * solib.c (solib_find_1): Use std::string. | |
12376 | (solib_bfd_fopen): Use unique_xmalloc_ptr. | |
12377 | ||
58ef3771 TT |
12378 | 2018-02-08 Tom Tromey <tom@tromey.com> |
12379 | ||
12380 | * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr. | |
12381 | ||
a9abc434 TT |
12382 | 2018-02-08 Tom Tromey <tom@tromey.com> |
12383 | ||
12384 | * source.c (find_source_lines): Use gdb::def_vector. | |
12385 | ||
84f27c6f TT |
12386 | 2018-02-08 Tom Tromey <tom@tromey.com> |
12387 | ||
12388 | * macrocmd.c (struct temporary_macro_definition): New. | |
12389 | (macro_define_command): Use temporary_macro_definition. Remove | |
12390 | cleanups. | |
12391 | (free_macro_definition_ptr): Remove. | |
12392 | ||
0354904b TT |
12393 | 2018-02-08 Tom Tromey <tom@tromey.com> |
12394 | ||
12395 | * macroexp.c (maybe_expand): Use std::string. | |
12396 | ||
1739cf24 TT |
12397 | 2018-02-08 Tom Tromey <tom@tromey.com> |
12398 | ||
12399 | * macroexp.c (struct macro_buffer): Add initializers for some | |
12400 | members. | |
12401 | (init_buffer, init_shared_buffer, free_buffer) | |
12402 | (free_buffer_return_text): Remove. | |
12403 | (macro_buffer): New constructors. | |
12404 | (~macro_buffer): New destructor. | |
12405 | (macro_buffer::set_shared): New method. | |
12406 | (macro_buffer::resize_buffer, macro_buffer::appendc) | |
12407 | (macro_buffer::appendmem): Now methods, not free functions. | |
12408 | (set_token, append_tokens_without_splicing, stringify) | |
12409 | (macro_stringify): Update. | |
12410 | (gather_arguments): Change return type. Remove argc_p argument, | |
12411 | add args_ptr argument. Use std::vector. | |
12412 | (substitute_args): Remove argc argument. Accept std::vector. | |
12413 | (expand): Update. Use std::vector. | |
12414 | (scan, macro_expand, macro_expand_next): Update. | |
12415 | ||
f6c2623e TT |
12416 | 2018-02-08 Tom Tromey <tom@tromey.com> |
12417 | ||
12418 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
12419 | Use unique_xmalloc_ptr. | |
12420 | * macroscope.h: (sal_macro_scope, user_macro_scope) | |
12421 | (default_macro_scope): Return unique_xmalloc_ptr. | |
12422 | * macroscope.c (sal_macro_scope, user_macro_scope) | |
12423 | (default_macro_scope): Return unique_xmalloc_ptr. | |
12424 | * macroexp.h (macro_expand, macro_expand_once): Return | |
12425 | unique_xmalloc_ptr. | |
12426 | * macroexp.c (macro_expand, macro_expand_once): Return | |
12427 | unique_xmalloc_ptr. | |
12428 | * macrocmd.c (macro_expand_command, macro_expand_once_command) | |
12429 | (info_macro_command, info_macros_command): Use | |
12430 | unique_xmalloc_ptr. | |
12431 | * compile/compile-c-support.c (write_macro_definitions): Use | |
12432 | unique_xmalloc_ptr. | |
12433 | * c-exp.y (c_parse): Use unique_xmalloc_ptr. | |
12434 | ||
c2e0e465 SM |
12435 | 2018-02-07 Simon Marchi <simon.marchi@ericsson.com> |
12436 | ||
12437 | * value.c (value_static_field): Assign field type instead of | |
12438 | containing type when returning an optimized out value. | |
12439 | ||
3f8c94b4 YQ |
12440 | 2018-02-06 Yao Qi <yao.qi@linaro.org> |
12441 | ||
12442 | * ft32-tdep.c (ft32_read_pc): Remove. | |
12443 | (ft32_write_pc): Remove. | |
12444 | (ft32_gdbarch_init): Update. | |
12445 | * m32r-tdep.c (m32r_read_pc): Remove. | |
12446 | (m32r_gdbarch_init): Update. | |
12447 | * mep-tdep.c (mep_read_pc): Remove. | |
12448 | (mep_gdbarch_init): Update. | |
12449 | * microblaze-tdep.c (microblaze_write_pc): Remove. | |
12450 | (microblaze_gdbarch_init): Update. | |
12451 | * mn10300-tdep.c (mn10300_read_pc): Remove. | |
12452 | (mn10300_write_pc): Remove. | |
12453 | (mn10300_gdbarch_init): Update. | |
12454 | * moxie-tdep.c (moxie_read_pc): Remove. | |
12455 | (moxie_write_pc): Remove. | |
12456 | (moxie_gdbarch_init): Update. | |
12457 | ||
bca65a23 YQ |
12458 | 2018-02-06 Yao Qi <yao.qi@linaro.org> |
12459 | ||
12460 | * expprint.c (print_subexp_standard): Handle | |
12461 | OP_F77_UNDETERMINED_ARGLIST. | |
12462 | (dump_subexp_body_standard): Likewise. | |
12463 | ||
583e3f90 | 12464 | 2018-02-05 Alan Hayward <alan.hayward@arm.com> |
b8df6ca7 | 12465 | |
583e3f90 YQ |
12466 | * target-descriptions.c (tdesc_element_visitor) Add empty |
12467 | implementations. | |
b8df6ca7 AH |
12468 | (tdesc_type): Move make_gdb_type from here. |
12469 | (tdesc_type_builtin): Likewise. | |
12470 | (tdesc_type_vector): Likewise. | |
12471 | (tdesc_type_with_fields): Move make_gdb_type_ functions from here. | |
12472 | (make_gdb_type_struct): Move from tdesc_type_with_fields. | |
12473 | (make_gdb_type_union): Likewise. | |
12474 | (make_gdb_type_flags): Likewise. | |
12475 | (make_gdb_type_enum): Likewise. | |
12476 | (make_gdb_type): New function. | |
12477 | (tdesc_register_type): Use static make_gdb_type. | |
12478 | ||
e813d34a RK |
12479 | 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com> |
12480 | ||
12481 | * infcmd.c (default_print_one_register_info): Align natural-format | |
12482 | column values consistently one under another. | |
12483 | (pad_to_column): New function. | |
12484 | ||
0eb876f5 JB |
12485 | 2018-02-05 Joel Brobecker <brobecker@adacore.com> |
12486 | ||
12487 | * dwarf2read.c (dwarf2_physname): Move commment. | |
12488 | ||
0625771b LS |
12489 | 2018-02-01 Leszek Swirski <leszeks@google.com> |
12490 | ||
12491 | * varobj.c (varobj_formatted_print_options): Allow recursive | |
12492 | pretty printing if pretty printing is enabled. | |
12493 | ||
59498c30 LS |
12494 | 2018-02-01 Leszek Swirski <leszeks@google.com> |
12495 | ||
12496 | * c-exp.y (lex_one_token, classify_name, yylex): Don't classify | |
12497 | names after a structop as a filename. | |
12498 | ||
2d9e6acb YQ |
12499 | 2018-02-01 Yao Qi <yao.qi@linaro.org> |
12500 | ||
12501 | * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it. | |
12502 | (arm_record_coproc_data_proc): Likewise. | |
12503 | ||
df95a9cf YQ |
12504 | 2018-02-01 Yao Qi <yao.qi@linaro.org> |
12505 | ||
12506 | * arm-tdep.c (arm_record_extension_space): Change ret to signed. | |
12507 | ||
07e5f5cf NP |
12508 | 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com> |
12509 | ||
12510 | * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and | |
12511 | assign shifted lr_reg to fdata->lr_register when lr_reg is set. | |
12512 | ||
3045b475 PA |
12513 | 2018-01-31 Pedro Alves <palves@redhat.com> |
12514 | ||
12515 | * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter. | |
12516 | * inflow.c (child_terminal_save_inferior): Wrap reference to | |
12517 | tcgetpgrp in HAVE_TERMIOS_H. | |
12518 | (child_interrupt, child_pass_ctrlc): Wrap references to signal in | |
12519 | _WIN32. | |
12520 | * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and | |
12521 | always iterate over all inferiors. | |
12522 | (gdbsim_cntrl_c): Adjust. | |
12523 | * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter. | |
12524 | ||
929b5ad4 JB |
12525 | 2018-01-31 Joel Brobecker <brobecker@adacore.com> |
12526 | ||
12527 | * gdbtypes.c (lookup_array_range_type): Make sure the array's | |
12528 | index type is objfile-owned if the element type is as well. | |
12529 | ||
29236ca2 JB |
12530 | 2018-01-31 Joel Brobecker <brobecker@adacore.com> |
12531 | ||
12532 | GDB 8.1 released. | |
12533 | ||
c81e8879 PR |
12534 | 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com> |
12535 | ||
12536 | * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and | |
12537 | "features/s390x-linux64.c". | |
12538 | (_initialize_s390_linux_tdep): Remove initialization of tdescs | |
12539 | s390_linux32 and s390x_linux64. | |
12540 | (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set | |
12541 | default tdesc. | |
12542 | * s390-tdep.c: Include "features/s390-linux32.c" and | |
12543 | "features/s390x-linux64.c". | |
12544 | (s390_tdesc_valid): Add check for tdesc_has_registers. | |
12545 | (s390_gdbarch_init): Make sure there is always a valid tdesc. | |
12546 | (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and | |
12547 | tdesc_s390x_linux64. | |
12548 | * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and | |
12549 | tdesc_s390x_linux64 to... | |
12550 | * s390-tdep.h: ...here. | |
12551 | ||
e671cd59 PA |
12552 | 2018-01-30 Pedro Alves <palves@redhat.com> |
12553 | ||
12554 | PR gdb/13211 | |
12555 | * config.in, configure: Regenerate. | |
12556 | * configure.ac: Check for getpgid. | |
12557 | * go32-nat.c (go32_pass_ctrlc): New. | |
12558 | (go32_target): Install it. | |
12559 | * inf-child.c (inf_child_target): Install | |
12560 | child_terminal_save_inferior, child_pass_ctrlc and | |
12561 | child_interrupt. | |
12562 | * inf-ptrace.c (inf_ptrace_interrupt): Delete. | |
12563 | (inf_ptrace_target): No longer install it. | |
12564 | * infcmd.c (interrupt_target_1): Adjust. | |
12565 | * inferior.h (child_terminal_save_inferior, child_pass_ctrlc) | |
12566 | (child_interrupt): Declare. | |
12567 | (inferior::terminal_state): New. | |
12568 | * inflow.c (struct terminal_info): Update comments. | |
12569 | (inferior_process_group): Delete. | |
12570 | (terminal_is_ours): Delete. | |
12571 | (gdb_tty_state): New. | |
12572 | (child_terminal_init): Adjust. | |
12573 | (is_gdb_terminal, sharing_input_terminal_1) | |
12574 | (sharing_input_terminal): New functions. | |
12575 | (child_terminal_inferior): Adjust. Use sharing_input_terminal. | |
12576 | Set the process's actual process group in the foreground if | |
12577 | possible. Handle is_ours_for_output/is_ours distinction. Don't | |
12578 | mark terminal as the inferior's if not sharing GDB's terminal. | |
12579 | Don't check attach_flag. | |
12580 | (child_terminal_ours_for_output, child_terminal_ours): Adjust to | |
12581 | pass down a target_terminal_state. | |
12582 | (child_terminal_save_inferior): New, factored out from ... | |
12583 | (child_terminal_ours_1): ... this. Handle | |
12584 | target_terminal_state::is_ours_for_output. | |
12585 | (child_interrupt, child_pass_ctrlc): New. | |
12586 | (inflow_inferior_exit): Clear the inferior's terminal_state. | |
12587 | (copy_terminal_info): Copy the inferior's terminal state. | |
12588 | (_initialize_inflow): Remove reference to terminal_is_ours. | |
12589 | * inflow.h (inferior_process_group): Delete. | |
12590 | * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust. | |
12591 | * procfs.c (procfs_target): Don't install procfs_interrupt. | |
12592 | (procfs_interrupt): Delete. | |
12593 | * remote.c (remote_serial_quit_handler): Adjust. | |
12594 | (remote_interrupt): Remove ptid parameter. Adjust. | |
12595 | * target-delegates.c: Regenerate. | |
12596 | * target.c: Include "terminal.h". | |
12597 | (target_terminal::terminal_state): Rename to ... | |
12598 | (target_terminal::m_terminal_state): ... this. | |
12599 | (target_terminal::init): Adjust. | |
12600 | (target_terminal::inferior): Adjust to per-inferior | |
12601 | terminal_state. | |
12602 | (target_terminal::restore_inferior, target_terminal_is_ours_kind): New. | |
12603 | (target_terminal::ours, target_terminal::ours_for_output): Use | |
12604 | target_terminal_is_ours_kind. | |
12605 | (target_interrupt): Remove ptid parameter. Adjust. | |
12606 | (default_target_pass_ctrlc): Adjust. | |
12607 | * target.h (target_ops::to_terminal_save_inferior): New field. | |
12608 | (target_ops::to_interrupt): Remove ptid_t parameter. | |
12609 | (target_interrupt): Remove ptid_t parameter. Update comment. | |
12610 | (target_pass_ctrlc): Update comment. | |
12611 | * target/target.h (target_terminal_state): New scoped enum, | |
12612 | factored out of ... | |
12613 | (target_terminal::terminal_state): ... here. | |
12614 | (target_terminal::inferior): Update comments. | |
12615 | (target_terminal::restore_inferior): New. | |
12616 | (target_terminal::is_inferior, target_terminal::is_ours) | |
12617 | (target_terminal::is_ours_for_output): Adjust. | |
12618 | (target_terminal::scoped_restore_terminal_state): Adjust to | |
12619 | rename, and call restore_inferior() instead of inferior(). | |
12620 | (target_terminal::scoped_restore_terminal_state::m_state): Change | |
12621 | type. | |
12622 | (target_terminal::terminal_state): Rename to ... | |
12623 | (target_terminal::m_terminal_state): ... this and change type. | |
12624 | ||
9c3a5d93 PA |
12625 | 2018-01-30 Pedro Alves <palves@redhat.com> |
12626 | ||
12627 | * linux-nat.c (wait_for_signal): New function. | |
12628 | (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend | |
12629 | directly. | |
12630 | (async_terminal_is_ours) | |
12631 | (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete. | |
12632 | (linux_nat_add_target): Don't override | |
12633 | to_terminal_inferior/to_terminal_ours. | |
12634 | ||
69ab5edb SDJ |
12635 | 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com> |
12636 | ||
12637 | * remote.c (remote_follow_fork): Don't call "detach_inferior". | |
12638 | ||
fc8e7e75 SM |
12639 | 2018-01-28 Simon Marchi <simon.marchi@ericsson.com> |
12640 | ||
12641 | * dwarf2read.c (free_dwo_files): Add forward-declaration. | |
12642 | (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from | |
12643 | dwarf2_per_objfile_free here. | |
12644 | (dwarf2_per_objfile_free): Remove. | |
12645 | (_initialize_dwarf2_read): Don't register | |
12646 | dwarf2_per_objfile_free as a registry cleanup. | |
12647 | ||
b2a426e2 EZ |
12648 | 2018-01-27 Eli Zaretskii <eliz@gnu.org> |
12649 | ||
12650 | Avoid compilation errors in MinGW native builds | |
12651 | ||
12652 | The error is triggered by including python-internal.h, and the | |
12653 | error message is: | |
12654 | ||
12655 | In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0, | |
12656 | from build-gnulib/import/math.h:27, | |
12657 | from d:/usr/Python26/include/pyport.h:235, | |
12658 | from d:/usr/Python26/include/Python.h:58, | |
12659 | from python/python-internal.h:94, | |
12660 | from python/py-arch.c:24: | |
12661 | d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared | |
12662 | using ::hypot; | |
12663 | ^~~~~ | |
12664 | ||
12665 | This happens because Python headers define 'hypot' to expand t | |
12666 | '_hypot' in the Windows builds. | |
12667 | * python/python-internal.h (_hypot) [__MINGW32__]: Define back to | |
12668 | 'hypoth'. This avoids a compilation error. | |
12669 | ||
0bdd8eac AH |
12670 | 2018-01-26 Alan Hayward <alan.hayward@arm.com> |
12671 | ||
12672 | * MAINTAINERS (Write After Approval): Fix ordering. | |
12673 | ||
56ae9dc3 AH |
12674 | 2018-01-26 Alan Hayward <alan.hayward@arm.com> |
12675 | ||
12676 | * MAINTAINERS (Write After Approval): Add Alan Hayward. | |
12677 | ||
7433498b AM |
12678 | 2018-01-26 Alan Modra <amodra@gmail.com> |
12679 | ||
12680 | * ppc-linux-tdep.c (powerpc32_plt_stub): Make const. | |
12681 | (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so. | |
12682 | Remove nop. Make const. Comment. | |
12683 | (powerpc32_plt_stub_so_2): New. | |
12684 | (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN. | |
12685 | Correct count. Update uses. | |
12686 | (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too. | |
12687 | Move common code reading PLT entry word. Correct | |
12688 | powerpc32_plt_stub PLT address calculation. | |
12689 | * ppc64-tdep.c (ppc64_standard_linkage1): Make const. | |
12690 | (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise. | |
12691 | (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise. | |
12692 | (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise. | |
12693 | (ppc64_standard_linkage8): Likewise. | |
12694 | * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const. | |
12695 | Correct insns description. | |
12696 | * ppc-tdep.h (ppc_insns_match_pattern): Update prototype. | |
12697 | ||
0f59d5fc PA |
12698 | 2018-01-24 Pedro Alves <palves@redhat.com> |
12699 | ||
12700 | GCC PR libstdc++/83906 | |
12701 | * gdbtypes.c (operator==(const dynamic_prop &, | |
12702 | const dynamic_prop &)): New. | |
12703 | (operator==(const range_bounds &, const range_bounds &)): New. | |
12704 | (check_types_equal): Use them instead of memcmp. | |
12705 | * gdbtypes.h (operator==(const dynamic_prop &, | |
12706 | const dynamic_prop &)): Declare. | |
12707 | (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare. | |
12708 | (operator==(const range_bounds &, const range_bounds &)): Declare. | |
12709 | (operator!=(const range_bounds &, const range_bounds &)): Declare. | |
12710 | ||
ef8914a4 PR |
12711 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
12712 | ||
12713 | * s390-linux-tdep.c (s390_record_address_mask) | |
12714 | (s390_record_calc_disp_common, s390_record_calc_disp) | |
12715 | (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt) | |
12716 | (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr) | |
12717 | (s390_process_record): Move to s390-tdep.c. | |
12718 | (s390_linux_init_abi_any): Adjust. | |
12719 | * s390-tdep.c (s390_record_address_mask) | |
12720 | (s390_record_calc_disp_common, s390_record_calc_disp) | |
12721 | (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt) | |
12722 | (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr) | |
12723 | (s390_process_record): Moved from s390-linux-tdep.c | |
12724 | (s390_gdbarch_init): Adjust. | |
12725 | ||
d6e58945 PR |
12726 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
12727 | ||
12728 | * s390-linux-nat.c (s390-tdep.h): New include. | |
12729 | * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o. | |
12730 | (HFILES_NO_SRCDIR): Add s390-tdep.h. | |
12731 | (ALLDEPFILES): Add s390-tdep.c. | |
12732 | * configure.tgt (s390*-*-linux*): Add s390-tdep.o. | |
12733 | * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to... | |
12734 | * s390-tdep.h: ...this. New file. | |
12735 | * s390-linux-tdep.c (s390-tdep.h): New include. | |
12736 | (_initialize_s390_tdep): Rename to... | |
12737 | (_initialize_s390_linux_tdep): ...this and adjust. | |
12738 | (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep) | |
12739 | (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to | |
12740 | s390-tdep.h. | |
12741 | (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri) | |
12742 | (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy) | |
12743 | (s390_is_partial_instruction, s390_software_single_step) | |
12744 | (is_non_branch_ril, s390_displaced_step_copy_insn) | |
12745 | (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep) | |
12746 | (s390_prologue_data, s390_addr, s390_store, s390_load) | |
12747 | (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue) | |
12748 | (s390_register_call_saved, s390_guess_tracepoint_registers) | |
12749 | (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum) | |
12750 | (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register) | |
12751 | (s390_pseudo_register_name, s390_pseudo_register_type) | |
12752 | (s390_pseudo_register_read, s390_pseudo_register_write) | |
12753 | (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect) | |
12754 | (s390_ax_pseudo_register_push_stack, s390_gen_return_address) | |
12755 | (s390_addr_bits_remove, s390_address_class_type_flags) | |
12756 | (s390_address_class_type_flags_to_name) | |
12757 | (s390_address_class_name_to_type_flags, s390_effective_inner_type) | |
12758 | (s390_function_arg_float, s390_function_arg_vector) | |
12759 | (is_power_of_two, s390_function_arg_integer, s390_arg_state) | |
12760 | (s390_handle_arg, s390_push_dummy_call, s390_dummy_id) | |
12761 | (s390_frame_align, s390_register_return_value, s390_return_value) | |
12762 | (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp) | |
12763 | (s390_unwind_pseudo_register, s390_adjust_frame_regnum) | |
12764 | (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg) | |
12765 | (s390_trad_frame_prev_register, s390_unwind_cache) | |
12766 | (s390_prologue_frame_unwind_cache) | |
12767 | (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache) | |
12768 | (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind) | |
12769 | (s390_stub_unwind_cache, s390_stub_frame_unwind_cache) | |
12770 | (s390_stub_frame_this_id, s390_stub_frame_prev_register) | |
12771 | (s390_stub_frame_sniffer, s390_stub_frame_unwind) | |
12772 | (s390_frame_base_address, s390_local_base_address) | |
12773 | (s390_frame_base, s390_gcc_target_options) | |
12774 | (s390_gnu_triplet_regexp, s390_stap_is_single_operand) | |
12775 | (s390_validate_reg_range, s390_tdesc_valid) | |
12776 | (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to... | |
12777 | * s390-tdep.c: ...this. New file. | |
12778 | ||
9c0b896e PR |
12779 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
12780 | ||
12781 | * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook. | |
12782 | (s390_process_record, s390_gdbarch_tdep_alloc) | |
12783 | (s390_linux_init_abi_any): Use/set new hook. | |
12784 | ||
7042632b PR |
12785 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
12786 | ||
12787 | * s390-linux-tdep.c (osabi.h): New include. | |
12788 | (s390_linux_init_abi_31, s390_linux_init_abi_64) | |
12789 | (s390_linux_init_abi_any): New functions. | |
12790 | (s390_gdbarch_init, _initialize_s390_tdep): Adjust. | |
12791 | ||
650f5e13 PR |
12792 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
12793 | ||
12794 | * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for | |
12795 | tdesc_has_registers check | |
12796 | ||
47c9317e PR |
12797 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
12798 | ||
12799 | * s390-linux-tdep.c (s390_tdesc_valid): New function. | |
12800 | (s390_validate_reg_range): New macro. | |
12801 | (s390_gdbarch_init): Adjust. | |
12802 | ||
095085d8 PR |
12803 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
12804 | ||
12805 | * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field. | |
12806 | (s390_gdbarch_tdep_alloc): Adjust. | |
12807 | (s390_gdbarch_init): Adjust. | |
12808 | ||
ab9bcc67 PR |
12809 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
12810 | ||
12811 | * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2> | |
12812 | <have_tdb>: Change type to bool. | |
12813 | (s390_gdbarch_tdep_alloc): Adjust. | |
12814 | (s390_gdbarch_init): Adjust. | |
12815 | ||
21f6f5ff PR |
12816 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
12817 | ||
12818 | * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field. | |
12819 | (gdbarch_tdep) <have_upper, have_vx>: New fields. | |
12820 | (s390_gdbarch_tdep_alloc): New function. | |
12821 | (s390_gdbarch_init): Allocate tdep at start and use its fields | |
12822 | instead of separate variables. | |
12823 | ||
0eb97953 PR |
12824 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
12825 | ||
12826 | * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks | |
12827 | when looking for cached gdbarch and add comment for remaining. | |
12828 | ||
5c319bb2 PA |
12829 | 2018-01-22 Pedro Alves <palves@redhat.com> |
12830 | Sergio Durigan Junior <sergiodj@redhat.com> | |
12831 | ||
12832 | * typeprint.c (whatis_exp): Initialize "val" in the "whatis type" | |
12833 | case. | |
12834 | ||
d65ce302 MR |
12835 | 2018-01-22 Maciej W. Rozycki <macro@mips.com> |
12836 | ||
12837 | * MAINTAINERS: Update my company e-mail address. | |
12838 | ||
ec7a5fcb YQ |
12839 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
12840 | ||
12841 | * regcache.c (cooked_write_test): New function. | |
12842 | (_initialize_regcache): Register the test. | |
12843 | ||
11f57cb6 YQ |
12844 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
12845 | ||
12846 | * ia64-tdep.c (ia64_pseudo_register_read): Call | |
12847 | regcache->cooked_read instead of regcache_cooked_read_unsigned. | |
12848 | * m32c-tdep.c (m32c_cat_read): Likewise. | |
12849 | (m32c_r3r2r1r0_read): Likewise. | |
12850 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise. | |
12851 | * xtensa-tdep.c (xtensa_register_read_masked): Likewise. | |
12852 | ||
03f50fc8 YQ |
12853 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
12854 | ||
12855 | * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache | |
12856 | method raw_read instead of regcache_raw_read. | |
12857 | * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise. | |
12858 | * arm-tdep.c (arm_neon_quad_read): Likewise. | |
12859 | * avr-tdep.c (avr_pseudo_register_read): Likewise. | |
12860 | * bfin-tdep.c (bfin_pseudo_register_read): Likewise. | |
12861 | * frv-tdep.c (frv_pseudo_register_read): Likewise. | |
12862 | * h8300-tdep.c (h8300_pseudo_register_read): Likewise. | |
12863 | * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. | |
12864 | (i386_pseudo_register_read_into_value): Likewise. | |
12865 | * mep-tdep.c (mep_pseudo_cr32_read): Likewise. | |
12866 | * msp430-tdep.c (msp430_pseudo_register_read): Likewise. | |
12867 | * nds32-tdep.c (nds32_pseudo_register_read): Likewise. | |
12868 | * rl78-tdep.c (rl78_pseudo_register_read): Likewise. | |
12869 | * s390-linux-tdep.c (s390_pseudo_register_read): Likewise. | |
12870 | * sparc-tdep.c (sparc32_pseudo_register_read): Likewise. | |
12871 | * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise. | |
12872 | * spu-tdep.c (spu_pseudo_register_read_spu): Likewise. | |
12873 | * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise. | |
12874 | ||
dc711524 YQ |
12875 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
12876 | ||
12877 | * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o. | |
12878 | * configure.tgt: Remove target mt. | |
12879 | * mt-tdep.c: Remove. | |
12880 | * regcache.c (cooked_read_test): Remove the check for mt. | |
12881 | ||
3f5a868b YQ |
12882 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
12883 | ||
12884 | * jit.c (jit_frame_prev_register): Call regcache::cooked_read | |
12885 | instead of gdbarch_pseudo_register_read_value. | |
12886 | ||
de4cb04a JB |
12887 | 2018-01-22 Joel Brobecker <brobecker@adacore.com> |
12888 | ||
12889 | * dwarf2read.c (need_gnat_info): Return nonzero if the cu's | |
12890 | language is Ada. | |
12891 | ||
a9e40818 JB |
12892 | 2018-01-22 Joel Brobecker <brobecker@adacore.com> |
12893 | ||
12894 | * linespec.c (create_sals_line_offset): Remove code that preserved | |
12895 | the symtab_and_line's line number. | |
12896 | ||
e707fc44 AB |
12897 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
12898 | ||
12899 | * varobj.c (varobj_create): Don't set valid_block when creating a | |
12900 | floating varobj. | |
12901 | ||
03d0bf7b AB |
12902 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
12903 | ||
12904 | * varobj.c (varobj_create): Remove out of date comment. | |
12905 | ||
ae451627 AB |
12906 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
12907 | ||
12908 | PR mi/20395 | |
12909 | * ada-exp.y (write_var_from_sym): Pass extra parameter when | |
12910 | updating innermost block. | |
12911 | * parse.c (innermost_block_tracker::update): Take extra type | |
12912 | parameter, and check types match before updating innermost block. | |
12913 | (write_dollar_variable): Update innermost block for registers. | |
12914 | * parser-defs.h (enum innermost_block_tracker_type): New enum. | |
12915 | (innermost_block_tracker::innermost_block_tracker): Initialise | |
12916 | m_types member. | |
12917 | (innermost_block_tracker::reset): Take type parameter. | |
12918 | (innermost_block_tracker::update): Take type parameter, and pass | |
12919 | type through as needed. | |
12920 | (innermost_block_tracker::m_types): New member. | |
12921 | * varobj.c (varobj_create): Pass type when reseting innermost | |
12922 | block. | |
12923 | ||
aee1fcdf AB |
12924 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
12925 | ||
12926 | * ada-exp.y (write_var_from_sym): Switch to innermost_block API. | |
12927 | * ada-lang.c (resolve_subexp): Likewise. | |
12928 | * breakpoint.c (set_breakpoint_condition) Likewise. | |
12929 | (watch_command_1) Likewise. | |
12930 | * c-exp.y (variable): Likewise. | |
12931 | * d-exp.y (PrimaryExpression): Likewise. | |
12932 | * f-exp.y (variable): Likewise. | |
12933 | * go-exp.y (variable): Likewise. | |
12934 | * m2-exp.y (variable): Likewise. | |
12935 | * objfiles.c (objfile::~objfile): Likewise. | |
12936 | * p-exp.y (variable): Likewise. | |
12937 | * parse.c (innermost_block): Change type. | |
12938 | * parser-defs.h (class innermost_block_tracker): New. | |
12939 | (innermost_block): Change to innermost_block_tracker. | |
12940 | * printcmd.c (display_command): Switch to innermost_block API. | |
12941 | (do_one_display): Likewise. | |
12942 | * rust-exp.y (do_one_display): Likewise. | |
12943 | * symfile.c (clear_symtab_users): Likewise. | |
12944 | * varobj.c (varobj_create): Switch to innermost_block API, replace | |
12945 | use of innermost_block with block stored on varobj object. | |
12946 | ||
396af9a1 AB |
12947 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
12948 | ||
12949 | * expression.h (innermost_block): Remove declaration. | |
12950 | * varobj.c: Add 'parser-defs.h' include. | |
12951 | ||
fcfcc376 TT |
12952 | 2018-01-19 Tom Tromey <tom@tromey.com> |
12953 | ||
12954 | * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified | |
12955 | symbols in the static and global blocks. | |
12956 | ||
5a6c3296 JC |
12957 | 2018-01-19 James Clarke <jrtc27@jrtc27.com> |
12958 | ||
12959 | * nat/linux-ptrace.c: Remove unnecessary reinclusion of | |
12960 | gdb_ptrace.h, and move including gdb_wait.h ... | |
12961 | * nat/linux-ptrace.h: ... to here. | |
12962 | ||
bc09b0c1 SM |
12963 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
12964 | ||
12965 | * inf-ptrace.c (inf_ptrace_detach): Adjust call to | |
12966 | inf_ptrace_detach_success. | |
12967 | (inf_ptrace_detach_success): Add inferior parameter, use it | |
12968 | instead of inferior_ptid, pass it to detach_inferior. | |
12969 | * inf-ptrace.h (inf_ptrace_detach_success): Add inferior | |
12970 | parameter. | |
12971 | * inferior.c (detach_inferior): Add overload that takes an | |
12972 | inferior object. | |
12973 | * inferior.h (detach_inferior): Likewise. | |
12974 | * linux-nat.c (linux_nat_detach): Use the inf parameter, don't | |
12975 | use inferior_ptid, adjust call to inf_ptrace_detach_success. | |
12976 | * linux-thread-db.c (thread_db_detach): Use inf parameter. | |
12977 | ||
6e1e1966 SM |
12978 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
12979 | ||
12980 | * target.h (struct target_ops) <to_detach>: Add inferior | |
12981 | parameter. | |
12982 | (target_detach): Likewise. | |
12983 | * target.c (dispose_inferior): Pass inferior down. | |
12984 | (target_detach): Pass inferior down. Assert that it is equal to | |
12985 | the current inferior. | |
12986 | * aix-thread.c (aix_thread_detach): Pass inferior down. | |
12987 | * corefile.c (core_file_command): Pass current_inferior() down. | |
12988 | * corelow.c (core_detach): Add inferior parameter. | |
12989 | * darwin-nat.c (darwin_detach): Likewise. | |
12990 | * gnu-nat.c (gnu_detach): Likewise. | |
12991 | * inf-ptrace.c (inf_ptrace_detach): Likewise. | |
12992 | * infcmd.c (detach_command): Pass current_inferior() down to | |
12993 | target_detach. | |
12994 | * infrun.c (follow_fork_inferior): Pass parent_inf to | |
12995 | target_detach. | |
12996 | (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to | |
12997 | target_detach. | |
12998 | * linux-nat.c (linux_nat_detach): Add inferior parameter. | |
12999 | * linux-thread-db.c (thread_db_detach): Likewise. | |
13000 | * nto-procfs.c (procfs_detach): Likewise. | |
13001 | * procfs.c (procfs_detach): Likewise. | |
13002 | * record.c (record_detach): Likewise. | |
13003 | * record.h (struct inferior): Forward-declare. | |
13004 | (record_detach): Add inferior parameter. | |
13005 | * remote-sim.c (gdbsim_detach): Likewise. | |
13006 | * remote.c (remote_detach_1): Likewise. | |
13007 | (remote_detach): Likewise. | |
13008 | (extended_remote_detach): Likewise. | |
13009 | * sol-thread.c (sol_thread_detach): Likewise. | |
13010 | * target-debug.h (target_debug_print_inferior_p): New macro. | |
13011 | * target-delegates.c: Re-generate. | |
13012 | * top.c (kill_or_detach): Pass inferior down to target_detach. | |
13013 | * windows-nat.c (windows_detach): Add inferior parameter. | |
13014 | ||
6bd6f3b6 SM |
13015 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
13016 | ||
13017 | * target.h (struct target_ops) <to_detach>: Remove args | |
13018 | parameter. | |
13019 | (target_detach): Likewise. | |
13020 | * target.c (dispose_inferior): Adjust. | |
13021 | (target_detach): Remove args parameter, adjust. | |
13022 | * aix-thread.c (aix_thread_detach): Adjust. | |
13023 | * corefile.c (core_file_command): Adjust. | |
13024 | * corelow.c (core_detach): Adjust. | |
13025 | * darwin-nat.c (darwin_detach): Adjust. | |
13026 | * gnu-nat.c (gnu_detach): Adjust. | |
13027 | * inf-ptrace.c (inf_ptrace_detach): Adjust. | |
13028 | * infcmd.c (detach_command): Adjust | |
13029 | * infrun.c (follow_fork_inferior): Adjust. | |
13030 | (handle_vfork_child_exec_or_exit): Adjust. | |
13031 | * linux-fork.c (linux_fork_detach): Remove args parameter. | |
13032 | * linux-fork.h (linux_fork_detach): Likewise. | |
13033 | * linux-nat.c (linux_nat_detach): Likewise, and adjust. | |
13034 | * linux-thread-db.c (thread_db_detach): Likewise. | |
13035 | * nto-procfs.c (procfs_detach): Likewise. | |
13036 | * procfs.c (procfs_detach): Likewise. | |
13037 | (do_detach): Remove signo parameter. | |
13038 | * record.c (record_detach): Remove args parameter. | |
13039 | * record.h (record_detach): Likewise. | |
13040 | * remote-sim.c (gdbsim_detach): Likewise. | |
13041 | * remote.c (remote_detach_1): Likewise. | |
13042 | (remote_detach): Likewise. | |
13043 | (extended_remote_detach): Likewise. | |
13044 | * sol-thread.c (sol_thread_detach): Likewise. | |
13045 | * target-delegates.c: Re-generate. | |
13046 | * top.c (struct qt_args) <args>: Remove field. | |
13047 | (kill_or_detach): Don't pass args. | |
13048 | (quit_force): Don't set args. | |
13049 | * windows-nat.c (windows_detach): Remove args parameter. | |
13050 | ||
88af8ea8 YQ |
13051 | 2018-01-19 Yao Qi <yao.qi@linaro.org> |
13052 | ||
13053 | * arm-linux-tdep.c (arm_linux_gcc_target_options): New function. | |
13054 | (arm_linux_init_abi): Install it. | |
13055 | ||
dea445b9 YQ |
13056 | 2018-01-19 Yao Qi <yao.qi@linaro.org> |
13057 | ||
13058 | * osabi.c (gdb_osabi_names): Extend the regexp for | |
13059 | arm-linux-gnueabihf. | |
13060 | ||
4a17f768 YQ |
13061 | 2018-01-18 Yao Qi <yao.qi@linaro.org> |
13062 | ||
13063 | * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to | |
13064 | m_abbrevs. | |
13065 | (abbrev_table::add_abbrev): Update. | |
13066 | (abbrev_table::lookup_abbrev): Update. | |
13067 | ||
d679c21a YQ |
13068 | 2018-01-18 Yao Qi <yao.qi@linaro.org> |
13069 | ||
13070 | * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read. | |
13071 | ||
7d937cad SDJ |
13072 | 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com> |
13073 | ||
13074 | * compile/compile.c (compile_to_object): Convert "triplet_rx" | |
13075 | to "std::string". | |
13076 | ||
9e14690d TT |
13077 | 2018-01-17 Tom Tromey <tom@tromey.com> |
13078 | ||
13079 | * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC. | |
13080 | ||
50a82047 TT |
13081 | 2018-01-17 Tom Tromey <tom@tromey.com> |
13082 | ||
13083 | * gdbtypes.h (add_dyn_prop): Remove objfile parameter. | |
13084 | * gdbtypes.c (add_dyn_prop): Remove objfile parameter. | |
13085 | (create_array_type_with_stride): Update. | |
13086 | * dwarf2read.c (set_die_type): Update. | |
13087 | ||
c89b44cd TT |
13088 | 2018-01-17 Tom Tromey <tom@tromey.com> |
13089 | ||
13090 | * dwarf2read.c (delayed_method_info): Remove typedef. | |
13091 | (dwarf2_cu::method_info): Now a std::vector. | |
13092 | (add_to_method_list): Update. | |
13093 | (free_delayed_list): Remove. | |
13094 | (compute_delayed_physnames): Update. | |
13095 | (process_full_comp_unit, process_full_type_unit): Clear the method | |
13096 | list. Remove cleanups. | |
13097 | (psymtab_include_file_name): Add name_holder parameter. Use | |
13098 | unique_xmalloc_ptr. | |
13099 | (dwarf_decode_lines): Update. | |
13100 | ||
fcd3b13d SM |
13101 | 2018-01-17 Tom Tromey <tom@tromey.com> |
13102 | Simon Marchi <simon.marchi@ericsson.com> | |
13103 | ||
13104 | * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor. | |
13105 | (dwarf2_per_objfile::free_cached_comp_units) | |
13106 | (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) | |
13107 | (init_cutu_and_read_dies_no_follow): Update. | |
13108 | (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit. | |
13109 | (dwarf2_cu::~dwarf2_cu): New. | |
13110 | (free_heap_comp_unit, free_stack_comp_unit): Remove. | |
13111 | (age_cached_comp_units, free_one_cached_comp_unit): Update. | |
13112 | ||
685af9cd TT |
13113 | 2018-01-17 Tom Tromey <tom@tromey.com> |
13114 | Simon Marchi <simon.marchi@ericsson.com> | |
13115 | ||
13116 | * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove. | |
13117 | (struct die_reader_specs) <abbrev_table>: New member. | |
13118 | (struct abbrev_table): Add constructor. | |
13119 | <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare. | |
13120 | <abbrev_obstack>: Now an auto_obstack. | |
13121 | (abbrev_table_up): New typedef. | |
13122 | (init_cu_die_reader): Add abbrev_table parameter. | |
13123 | (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter. | |
13124 | Add result_dwo_abbrev_table. | |
13125 | (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) | |
13126 | (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1): | |
13127 | Update. | |
13128 | (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as | |
13129 | parameter. | |
13130 | (skip_children): Update. | |
13131 | (abbrev_table::alloc_abbrev): Rename from | |
13132 | abbrev_table_alloc_abbrev. | |
13133 | (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev. | |
13134 | (abbrev_table::lookup_abbrev): Rename from | |
13135 | abbrev_table_lookup_abbrev. | |
13136 | (abbrev_table_read_table): Return abbrev_table_up. | |
13137 | (abbrev_table_free, abbrev_table_free_cleanup) | |
13138 | (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove. | |
13139 | (load_partial_dies): Update. | |
13140 | ||
5e2db402 TT |
13141 | 2018-01-17 Tom Tromey <tom@tromey.com> |
13142 | ||
13143 | * dwarf2read.c (dwarf2_compute_name): Update comment. | |
13144 | (read_func_scope, read_variable): Update. | |
13145 | (new_symbol): Remove. | |
13146 | (new_symbol_full): Rename to new_symbol. | |
13147 | ||
ee7f689e | 13148 | 2018-01-17 Mike Gulick <mgulick@mathworks.com> |
41667530 MG |
13149 | |
13150 | PR gdb/16577 | |
13151 | * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue | |
13152 | a warning instead of throwing an error, set section size to 0 and return | |
13153 | NULL. | |
13154 | * gdb_bfd.h (gdb_bfd_map_section): Update description. | |
13155 | ||
4d9b86e1 SM |
13156 | 2018-01-17 Simon Marchi <simon.marchi@ericsson.com> |
13157 | ||
13158 | * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return | |
13159 | std::string. | |
13160 | (linux_ptrace_attach_fail_reason_string): Likewise. | |
13161 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): | |
13162 | Likewise. | |
13163 | (linux_ptrace_attach_fail_reason_string): Likewise. | |
13164 | * linux-nat.c (attach_proc_task_lwp_callback): Adjust. | |
13165 | ||
a7b2d0fb SM |
13166 | 2018-01-17 Simon Marchi <simon.marchi@ericsson.com> |
13167 | ||
13168 | * linux-nat.c (linux_nat_attach): Remove xstrdup. | |
13169 | ||
f517c180 EA |
13170 | 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com> |
13171 | ||
13172 | PR gdb/21559 | |
13173 | * configure.ac: Include <sys/types.h> prior to <sys/user.h> when | |
13174 | checking for fs_base/gs_base fields in struct user_regs_struct. | |
13175 | * configure: Regenerate. | |
13176 | ||
7045b1ca YQ |
13177 | 2018-01-17 Yao Qi <yao.qi@linaro.org> |
13178 | ||
13179 | * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New | |
13180 | function. | |
13181 | (aarch64_linux_init_abi): Install it to gdbarch hook | |
13182 | gcc_target_options. | |
13183 | ||
db422fb2 PA |
13184 | 2018-01-15 Pedro Alves <palves@redhat.com> |
13185 | ||
13186 | * common/signals-state-save-restore.c | |
13187 | (save_original_signals_state): Fix typos. | |
13188 | ||
ba643918 SDJ |
13189 | 2017-01-12 Tom Tromey <tom@tromey.com> |
13190 | Sergio Durigan Junior <sergiodj@redhat.com> | |
13191 | ||
13192 | * Makefile.in (install-only): Install gdb-add-index. | |
13193 | ||
906b4aac JB |
13194 | 2018-01-12 John Baldwin <jhb@FreeBSD.org> |
13195 | ||
13196 | * fbsd-tdep.c (KVE_PROTECTION): Correct value. | |
13197 | ||
bdf2a94a AA |
13198 | 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
13199 | ||
13200 | * infrun.c (keep_going_pass_signal): Clear step-over info when | |
13201 | insert_breakpoints fails. | |
13202 | ||
71d378ae PA |
13203 | 2018-01-11 Pedro Alves <palves@redhat.com> |
13204 | ||
13205 | PR gdb/22583 | |
13206 | * infrun.c (resume): Rename to ... | |
13207 | (resume_1): ... this. | |
13208 | (resume): Reimplement as wrapper around resume_1. | |
13209 | ||
3cada740 PA |
13210 | 2018-01-11 Pedro Alves <palves@redhat.com> |
13211 | ||
13212 | PR remote/22597 | |
13213 | * remote.c (remote_parse_stop_reply): Default to the last-set | |
13214 | general thread instead of to 'magic_null_ptid'. | |
13215 | ||
618daa93 PA |
13216 | 2018-01-10 Pedro Alves <palves@redhat.com> |
13217 | ||
13218 | * language.h (language_get_symbol_name_matcher): Rename ... | |
13219 | (get_symbol_name_matcher): ... this. | |
13220 | * language.c (language_get_symbol_name_matcher): Ditto. | |
13221 | * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All | |
13222 | callers adjusted. | |
13223 | ||
c63d3e8d PA |
13224 | 2018-01-10 Pedro Alves <palves@redhat.com> |
13225 | ||
13226 | PR gdb/22670 | |
13227 | * dwarf2read.c | |
13228 | (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher): | |
13229 | Adjust to use language_get_symbol_name_matcher instead of | |
13230 | language_defn::la_get_symbol_name_matcher. | |
13231 | * language.c (language_get_symbol_name_matcher): If in Ada mode | |
13232 | and the lookup name is a verbatim match, return Ada's matcher. | |
13233 | * language.h (language_get_symbol_name_matcher): Adjust comment. | |
13234 | (ada_lookup_name_info::verbatim_p):: New method. | |
13235 | ||
d4c2a405 PA |
13236 | 2018-01-10 Pedro Alves <palves@redhat.com> |
13237 | ||
13238 | PR gdb/22670 | |
13239 | * ada-lang.c (ada_collect_symbol_completion_matches): If the | |
13240 | minsym's language is language_auto or language_cplus, pass down | |
13241 | language_ada instead. | |
13242 | * symtab.c (compare_symbol_name): Don't frob symbol language here. | |
13243 | ||
8825213e PA |
13244 | 2018-01-10 Pedro Alves <palves@redhat.com> |
13245 | ||
13246 | PR gdb/22670 | |
13247 | * minsyms.c (linkage_name_str): New function. | |
13248 | (iterate_over_minimal_symbols): Use it. | |
13249 | ||
2d97a5d9 JB |
13250 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
13251 | ||
13252 | * NEWS: Document that 'info proc' now works on FreeBSD. | |
13253 | ||
92fce24d JB |
13254 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
13255 | ||
13256 | * configure.ac: Check for kinfo_getfile in libutil. | |
13257 | * configure: Regenerate. | |
13258 | * config.in: Regenerate. | |
13259 | * fbsd-nat.c: Include "fbsd-tdep.h". | |
13260 | (fbsd_fetch_cmdline): New. | |
13261 | (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool | |
13262 | rather than calling error. | |
13263 | (fbsd_info_proc): New. | |
13264 | (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails. | |
13265 | (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails. | |
13266 | (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc". | |
13267 | ||
262f62f5 JB |
13268 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
13269 | ||
13270 | * fbsd-nat.c (struct free_deleter): Remove. | |
13271 | (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>. | |
13272 | ||
b999e203 JB |
13273 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
13274 | ||
13275 | * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return | |
13276 | NULL for an empty pathname. | |
13277 | ||
d2176225 JB |
13278 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
13279 | ||
13280 | * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET) | |
13281 | (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ) | |
13282 | (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW) | |
13283 | (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP) | |
13284 | (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP) | |
13285 | (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD) | |
13286 | (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD) | |
13287 | (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout) | |
13288 | (kinfo_proc_layout_32, kinfo_proc_layout_i386) | |
13289 | (kinfo_proc_layout_64, fbsd_vm_map_entry_flags) | |
13290 | (fbsd_core_info_proc_mappings, fbsd_core_vnode_path) | |
13291 | (fbsd_core_fetch_timeval, fbsd_print_sigset) | |
13292 | (fbsd_core_info_proc_status, fbsd_core_info_proc): New. | |
13293 | (fbsd_init_abi): Install gdbarch "core_info_proc" method. | |
13294 | * fbsd-tdep.h (fbsd_vm_map_entry_flags): New. | |
13295 | ||
9c4ac400 ST |
13296 | 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org> |
13297 | ||
13298 | * gdb/gnu-nat.c: Include <elf.h> and <link.h>. | |
13299 | (gnu_xfer_auxv): New function. | |
13300 | (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is | |
13301 | TARGET_OBJECT_AUXV. | |
13302 | ||
1e5ded6c YQ |
13303 | 2018-01-08 Yao Qi <yao.qi@linaro.org> |
13304 | Simon Marchi <simon.marchi@ericsson.com> | |
13305 | ||
13306 | * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and | |
13307 | common/selftest.c. | |
13308 | (COMMON_OBS): Remove selftest.o. | |
13309 | * configure.ac: Append selftest-arch.c and common/selftest.c to | |
13310 | CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS. | |
13311 | * configure: Re-generated. | |
13312 | * maint.c (maintenance_selftest): Wrap selftests::run_tests with | |
13313 | GDB_SELF_TEST. | |
13314 | (maintenance_info_selftests): Likewise. | |
13315 | ||
04bafb1e XR |
13316 | 2018-01-08 Xavier Roirand <roirand@adacore.com> |
13317 | ||
13318 | * ada-valprint.c (val_print_packed_array_elements): Use | |
13319 | proper number of elements when printing an array indexed | |
13320 | by an enumeration type. | |
13321 | ||
518817b3 SM |
13322 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
13323 | ||
13324 | * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove. | |
13325 | (dw2_get_file_names_reader): Adjust. | |
13326 | (lookup_dwo_signatured_type): Adjust. | |
13327 | (lookup_dwp_signatured_type): Adjust. | |
13328 | (lookup_signatured_type): Adjust. | |
13329 | (create_type_unit_group): Adjust. | |
13330 | (get_type_unit_group): Adjust. | |
13331 | (process_psymtab_comp_unit_reader): Adjust. | |
13332 | (build_type_psymtabs_reader): Adjust. | |
13333 | (scan_partial_symbols): Adjust. | |
13334 | (add_partial_symbol): Adjust. | |
13335 | (add_partial_subprogram): Adjust. | |
13336 | (peek_die_abbrev): Adjust. | |
13337 | (fixup_go_packaging): Adjust. | |
13338 | (process_imported_unit_die): Adjust. | |
13339 | (dwarf2_compute_name): Adjust. | |
13340 | (dwarf2_physname): Adjust. | |
13341 | (read_import_statement): Adjust. | |
13342 | (handle_DW_AT_stmt_list): Adjust. | |
13343 | (read_file_scope): Adjust. | |
13344 | (read_func_scope): Adjust. | |
13345 | (read_lexical_block_scope): Adjust. | |
13346 | (read_call_site_scope): Adjust. | |
13347 | (read_variable): Adjust. | |
13348 | (dwarf2_rnglists_process): Adjust. | |
13349 | (dwarf2_ranges_process): Adjust. | |
13350 | (dwarf2_ranges_read): Adjust. | |
13351 | (dwarf2_get_pc_bounds): Adjust. | |
13352 | (dwarf2_record_block_ranges): Adjust. | |
13353 | (dwarf2_add_field): Adjust. | |
13354 | (dwarf2_add_member_fn): Adjust. | |
13355 | (read_structure_type): Adjust. | |
13356 | (process_structure_scope): Adjust. | |
13357 | (read_enumeration_type): Adjust. | |
13358 | (read_array_type): Adjust. | |
13359 | (mark_common_block_symbol_computed): Adjust. | |
13360 | (read_common_block): Adjust. | |
13361 | (read_namespace_type): Adjust. | |
13362 | (read_namespace): Adjust. | |
13363 | (read_module_type): Adjust. | |
13364 | (read_tag_pointer_type): Adjust. | |
13365 | (read_tag_ptr_to_member_type): Adjust. | |
13366 | (read_tag_string_type): Adjust. | |
13367 | (read_subroutine_type): Adjust. | |
13368 | (read_typedef): Adjust. | |
13369 | (read_base_type): Adjust. | |
13370 | (attr_to_dynamic_prop): Adjust. | |
13371 | (read_subrange_type): Adjust. | |
13372 | (read_unspecified_type): Adjust. | |
13373 | (dwarf2_read_abbrevs): Adjust. | |
13374 | (load_partial_dies): Adjust. | |
13375 | (read_partial_die): Adjust. | |
13376 | (find_partial_die): Adjust. | |
13377 | (guess_partial_die_structure_name): Adjust. | |
13378 | (fixup_partial_die): Adjust. | |
13379 | (read_attribute_value): Adjust. | |
13380 | (read_addr_index): Adjust. | |
13381 | (read_addr_index_from_leb128): Adjust. | |
13382 | (read_str_index): Adjust. | |
13383 | (dwarf2_string_attr): Adjust. | |
13384 | (get_debug_line_section): Adjust. | |
13385 | (dwarf_decode_line_header): Adjust. | |
13386 | (lnp_state_machine::check_line_address): Adjust. | |
13387 | (dwarf_decode_lines_1): Adjust. | |
13388 | (dwarf_decode_lines): Adjust. | |
13389 | (dwarf2_start_symtab): Adjust. | |
13390 | (var_decode_location): Adjust. | |
13391 | (new_symbol_full): Adjust. | |
13392 | (dwarf2_const_value_data): Adjust. | |
13393 | (dwarf2_const_value_attr): Adjust. | |
13394 | (dwarf2_const_value): Adjust. | |
13395 | (die_type): Adjust. | |
13396 | (die_containing_type): Adjust. | |
13397 | (build_error_marker_type): Adjust. | |
13398 | (lookup_die_type): Adjust. | |
13399 | (guess_full_die_structure_name): Adjust. | |
13400 | (anonymous_struct_prefix): Adjust. | |
13401 | (determine_prefix): Adjust. | |
13402 | (dwarf2_name): Adjust. | |
13403 | (follow_die_ref_or_sig): Adjust. | |
13404 | (follow_die_offset): Adjust. | |
13405 | (follow_die_ref): Adjust. | |
13406 | (follow_die_sig_1): Adjust. | |
13407 | (follow_die_sig): Adjust. | |
13408 | (get_signatured_type): Adjust. | |
13409 | (get_DW_AT_signature_type): Adjust. | |
13410 | (decode_locdesc): Adjust. | |
13411 | (dwarf_decode_macros): Adjust. | |
13412 | (cu_debug_loc_section): Adjust. | |
13413 | (fill_in_loclist_baton): Adjust. | |
13414 | (dwarf2_symbol_mark_computed): Adjust. | |
13415 | (init_one_comp_unit): Don't assign | |
13416 | dwarf2_cu::dwarf2_per_objfile. | |
13417 | (set_die_type): Adjust. | |
13418 | ||
ed2dc618 SM |
13419 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
13420 | ||
13421 | * dwarf2read.c (struct mapped_debug_names): Add constructor. | |
13422 | <dwarf2_per_objfile>: New field. | |
13423 | (dwarf2_per_objfile): Remove global. | |
13424 | (get_dwarf2_per_objfile): New function. | |
13425 | (set_dwarf2_per_objfile): New function. | |
13426 | (dwarf2_build_psymtabs_hard): Change objfile parameter to | |
13427 | dwarf2_per_objfile. | |
13428 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
13429 | (read_abbrev_offset): Likewise. | |
13430 | (read_indirect_string): Likewise. | |
13431 | (read_indirect_line_string): Likewise. | |
13432 | (read_indirect_string_at_offset): Likewise. | |
13433 | (read_indirect_string_from_dwz): Likewise. | |
13434 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
13435 | dwarf2_per_objfile. | |
13436 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
13437 | (create_all_comp_units): Change objfile parameter to | |
13438 | dwarf2_per_objfile. | |
13439 | (create_all_type_units): Likewise. | |
13440 | (process_queue): Add dwarf2_per_objfile parameter. | |
13441 | (read_and_check_comp_unit_head): Likewise. | |
13442 | (lookup_dwo_unit_in_dwp): Likewise. | |
13443 | (get_dwp_file): Likewise. | |
13444 | (process_cu_includes): Likewise. | |
13445 | (struct free_dwo_file_cleanup_data): New struct. | |
13446 | (dwarf2_has_info): Use get_dwarf2_per_objfile and | |
13447 | set_dwarf2_per_objfile. | |
13448 | (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter. | |
13449 | (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from | |
13450 | context, adjust calls. | |
13451 | (dw2_instantiate_symtab): Likewise. | |
13452 | (dw2_get_cutu): Add dwarf2_per_objfile parameter. | |
13453 | (dw2_get_cu): Likewise. | |
13454 | (create_cu_from_index_list): Change objfile parameter to | |
13455 | dwarf2_per_objfile. | |
13456 | (create_cus_from_index_list): Get dwarf2_per_objfile from | |
13457 | context, adjust calls. | |
13458 | (create_cus_from_index): Likewise. | |
13459 | (create_signatured_type_table_from_index): Change objfile | |
13460 | parameter to dwarf2_per_objfile. | |
13461 | (create_signatured_type_table_from_debug_names): Change objfile | |
13462 | parameter to dwarf2_per_objfile. | |
13463 | (create_addrmap_from_index): Likewise. | |
13464 | (create_addrmap_from_aranges): Likewise. | |
13465 | (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls. | |
13466 | (dw2_setup): Remove. | |
13467 | (dw2_get_file_names_reader): Get dwarf2_per_objfile from | |
13468 | context. | |
13469 | (dw2_find_last_source_symtab): Get dwarf2_per_objfile using | |
13470 | get_dwarf2_per_objfile. | |
13471 | (dw2_forget_cached_source_info): Likewise. | |
13472 | (dw2_map_symtabs_matching_filename): Likewise. | |
13473 | (struct dw2_symtab_iterator) <index>: Remove. | |
13474 | <dwarf2_per_objfile>: New field. | |
13475 | (dw2_symtab_iter_init): Replace index parameter with | |
13476 | dwarf2_per_objfile. | |
13477 | (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter. | |
13478 | (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust. | |
13479 | (dw2_print_stats): Likewise. | |
13480 | (dw2_dump): Likewise. | |
13481 | (dw2_expand_symtabs_for_function): Likewise. | |
13482 | (dw2_expand_all_symtabs): Likewise. | |
13483 | (dw2_expand_symtabs_with_fullname): Likewise. | |
13484 | (dw2_expand_marked_cus): Replace index and objfile parameters | |
13485 | with dwarf2_per_objfile. | |
13486 | (dw_expand_symtabs_matching_file_matcher): Add | |
13487 | dwarf2_per_objfile parameter and adjust calls. | |
13488 | (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and | |
13489 | adjust calls. | |
13490 | (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup. | |
13491 | (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and | |
13492 | adjust calls. | |
13493 | (create_cus_from_debug_names_list): Replace objfile parameter | |
13494 | with dwarf2_per_objfile and adjust calls. | |
13495 | (create_cus_from_debug_names): Likewise. | |
13496 | (dwarf2_read_debug_names): Likewise. | |
13497 | (mapped_debug_names::namei_to_name): Adjust call. | |
13498 | (dw2_debug_names_iterator::next): Likewise. | |
13499 | (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise. | |
13500 | (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile. | |
13501 | (dw2_debug_names_dump): Likewise. | |
13502 | (dw2_debug_names_expand_symtabs_for_function): Likewise. | |
13503 | (dw2_debug_names_expand_symtabs_matching): Likewise. | |
13504 | (dwarf2_initialize_objfile): Likewise. | |
13505 | (dwarf2_build_psymtabs): Likewise. | |
13506 | (get_abbrev_section_for_cu): Get dwarf2_per_objfile from | |
13507 | this_cu. | |
13508 | (error_check_comp_unit_head): Add dwarf2_per_objfile parameter. | |
13509 | (read_and_check_comp_unit_head): Likewise. | |
13510 | (read_abbrev_offset): Likewise. | |
13511 | (create_debug_type_hash_table): Likewise. | |
13512 | (create_debug_types_hash_table): Likewise. | |
13513 | (create_all_type_units): Replace objfile parameter with | |
13514 | dwarf2_per_objfile. | |
13515 | (add_type_unit): Add dwarf2_per_objfile parameter. | |
13516 | (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter | |
13517 | with dwarf2_per_objfile. | |
13518 | (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu. | |
13519 | (lookup_dwp_signatured_type): Likewise. | |
13520 | (lookup_signatured_type): Likewise. | |
13521 | (read_cutu_die_from_dwo): Likewise. | |
13522 | (init_tu_and_read_dwo_dies): Likewise. | |
13523 | (init_cutu_and_read_dies): Likewise. | |
13524 | (init_cutu_and_read_dies_no_follow): Likewise. | |
13525 | (allocate_type_unit_groups_table): Add objfile parameter. | |
13526 | (create_type_unit_group): Use dwarf2_per_objfile from cu. | |
13527 | (get_type_unit_group): Likewise. | |
13528 | (process_psymtab_comp_unit): Update call. | |
13529 | (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu. | |
13530 | (build_type_psymtabs_1): Add dwarf2_per_objfile parameter. | |
13531 | (print_tu_stats): Likewise. | |
13532 | (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed | |
13533 | in void* parameter. | |
13534 | (build_type_psymtabs): Change objfile parameter to | |
13535 | dwarf2_per_objfile. | |
13536 | (process_skeletonless_type_unit): Use dwarf2_per_objfile | |
13537 | passed in void* parameter. | |
13538 | (process_skeletonless_type_units): Change objfile parameter to | |
13539 | dwarf2_per_objfile. | |
13540 | (set_partial_user): Likewise. | |
13541 | (dwarf2_build_psymtabs_hard): Likewise. | |
13542 | (read_comp_units_from_section): Likewise. | |
13543 | (create_all_comp_units): Likewise. | |
13544 | (scan_partial_symbols): Update calls. | |
13545 | (add_partial_symbol): Likewise. | |
13546 | (dwarf2_read_symtab): Use get_dwarf2_per_objfile. | |
13547 | (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu. | |
13548 | (process_queue): Add dwarf2_per_objfile parameter. | |
13549 | (get_compunit_symtab): Use dwarf2_per_objfile from cu. | |
13550 | (compute_compunit_symtab_includes): Likewise. | |
13551 | (process_cu_includes): Add dwarf2_per_objfile parameter. | |
13552 | (process_full_comp_unit): Use dwarf2_per_objfile from cu. | |
13553 | (process_full_type_unit): Likewise. | |
13554 | (process_imported_unit_die): Update call. | |
13555 | (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu. | |
13556 | (read_file_scope): Likewise. | |
13557 | (allocate_dwo_file_hash_table): Add objfile parameter. | |
13558 | (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter. | |
13559 | (create_cus_hash_table): Likewise. | |
13560 | (create_dwp_hash_table): Likewise. | |
13561 | (create_dwo_unit_in_dwp_v1): Likewise. | |
13562 | (create_dwp_v2_section): Likewise. | |
13563 | (create_dwo_unit_in_dwp_v2): Likewise. | |
13564 | (lookup_dwo_unit_in_dwp): Likewise. | |
13565 | (try_open_dwop_file): Likewise. | |
13566 | (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu. | |
13567 | (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update | |
13568 | cleanup to include a reference to dwarf2_per_objfile. | |
13569 | (open_dwp_file): Add dwarf2_per_objfile parameter. | |
13570 | (open_and_init_dwp_file): Likewise. | |
13571 | (get_dwp_file): Likewise. | |
13572 | (lookup_dwo_cutu): Use dwarf2_per_objfile from cu. | |
13573 | (queue_and_load_all_dwo_tus): Update call. | |
13574 | (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup | |
13575 | data. | |
13576 | (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu. | |
13577 | (dwarf2_ranges_process): Likewise. | |
13578 | (dwarf2_get_pc_bounds): Likewise. | |
13579 | (mark_common_block_symbol_computed): Likewise. | |
13580 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
13581 | (dwarf2_read_abbrevs): Update call. | |
13582 | (read_partial_die): Use dwarf2_per_objfile from cu. | |
13583 | (find_partial_die): Likewise. | |
13584 | (fixup_partial_die): Likewise. | |
13585 | (read_attribute_value): Likewise. | |
13586 | (read_indirect_string_at_offset_from): Add objfile parameter. | |
13587 | (read_indirect_string_at_offset): Add dwarf2_per_objfile | |
13588 | parameter. | |
13589 | (read_indirect_string_from_dwz): Add objfile parameter. | |
13590 | (read_indirect_string): Add objfile parameter. | |
13591 | (read_addr_index_1): Add dwarf2_per_objfile parameter. | |
13592 | (read_addr_index): Use dwarf2_per_objfile from cu. | |
13593 | (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't | |
13594 | call dw2_setup. | |
13595 | (read_str_index): Use dwarf2_per_objfile from cu. | |
13596 | (get_debug_line_section): Likewise. | |
13597 | (read_formatted_entries): Add dwarf2_per_objfile parameter. | |
13598 | (dwarf_decode_line_header): Use dwarf2_per_objfile from cu. | |
13599 | (new_symbol_full): Use dwarf2_per_objfile from cu. | |
13600 | (build_error_marker_type): Likewise. | |
13601 | (lookup_die_type): Likewise. | |
13602 | (determine_prefix): Likewise. | |
13603 | (follow_die_offset): Likewise. | |
13604 | (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile. | |
13605 | (dwarf2_fetch_constant_bytes): Don't call dw2_setup. | |
13606 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
13607 | (dwarf2_get_die_type): Likewise. | |
13608 | (follow_die_sig_1): Use dwarf2_per_objfile from cu. | |
13609 | (get_signatured_type): Likewise. | |
13610 | (get_DW_AT_signature_type): Likewise. | |
13611 | (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter. | |
13612 | (dwarf_decode_macros): Use dwarf2_per_objfile from cu. | |
13613 | (cu_debug_loc_section): Likewise. | |
13614 | (fill_in_loclist_baton): Likewise. | |
13615 | (dwarf2_symbol_mark_computed): Likewise. | |
13616 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
13617 | dwarf2_per_objfile. | |
13618 | (free_cached_comp_units): Use dwarf2_per_objfile passed in void* | |
13619 | parameter. | |
13620 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
13621 | (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu. | |
13622 | (dwarf2_free_objfile): Use get_dwarf2_per_objfile. | |
13623 | (set_die_type): Use dwarf2_free_objfile from cu. | |
13624 | (get_die_type_at_offset): Likewise. | |
13625 | (dwarf2_per_objfile_free): Don't assign global variable. | |
13626 | (debug_names) <constructor>: Add dwarf2_per_objfile | |
13627 | parameter, update m_debugstrlookup construction. | |
13628 | (debug_names::debug_str_lookup): Add dwarf2_per_objfile | |
13629 | parameter. | |
13630 | <m_dwarf2_per_objfile>: New field. | |
13631 | <lookup>: Use m_dwarf2_per_objfile. | |
13632 | (check_dwarf64_offsets): Add dwarf2_per_objfile parameter. | |
13633 | (psyms_seen_size): Likewise. | |
13634 | (write_gdbindex): Replace objfile parameter with | |
13635 | dwarf2_per_objfile. | |
13636 | (write_debug_names): Likewise. | |
13637 | (write_psymtabs_to_index): Likewise. | |
13638 | (save_gdb_index_command): Use get_dwarf2_per_objfile, update | |
13639 | calls. | |
13640 | ||
e3b94546 SM |
13641 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
13642 | ||
13643 | * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove. | |
13644 | <dwarf2_per_objfile>: New field. | |
13645 | (struct dwarf2_per_cu_data) <objfile>: Remove. | |
13646 | <dwarf2_per_objfile>: New field. | |
13647 | (create_cu_from_index_list): Assign dwarf2_per_objfile instead | |
13648 | of objfile. | |
13649 | (create_signatured_type_table_from_index): Likewise. | |
13650 | (create_debug_type_hash_table): Likewise. | |
13651 | (fill_in_sig_entry_from_dwo_entry): Likewise. | |
13652 | (lookup_dwo_unit): Access objfile through dwarf2_per_objfile. | |
13653 | (create_type_unit_group): Assign dwarf2_per_objfile instead of | |
13654 | objfile. | |
13655 | (create_partial_symtab): Access objfile through | |
13656 | dwarf2_per_objfile. | |
13657 | (process_psymtab_comp_unit_reader): Likewise. | |
13658 | (read_comp_units_from_section): Likewise. | |
13659 | (scan_partial_symbols): Likewise. | |
13660 | (add_partial_symbol): Likewise. | |
13661 | (add_partial_subprogram): Likewise. | |
13662 | (peek_die_abbrev): Likewise. | |
13663 | (fixup_go_packaging): Likewise. | |
13664 | (process_full_comp_unit): Likewise. | |
13665 | (process_full_type_unit): Likewise. | |
13666 | (process_imported_unit_die): Likewise. | |
13667 | (dwarf2_compute_name): Likewise. | |
13668 | (dwarf2_physname): Likewise. | |
13669 | (read_import_statement): Likewise. | |
13670 | (create_cus_hash_table): Assign dwarf2_physname instead of | |
13671 | objfile. | |
13672 | (read_func_scope): Access objfile through dwarf2_per_objfile. | |
13673 | (read_lexical_block_scope): Likewise. | |
13674 | (read_call_site_scope): Likewise. | |
13675 | (read_variable): Likewise. | |
13676 | (dwarf2_rnglists_process): Likewise. | |
13677 | (dwarf2_ranges_process): Likewise. | |
13678 | (dwarf2_ranges_read): Likewise. | |
13679 | (dwarf2_record_block_ranges): Likewise. | |
13680 | (dwarf2_add_field): Likewise. | |
13681 | (dwarf2_add_member_fn): Likewise. | |
13682 | (read_structure_type): Likewise. | |
13683 | (process_structure_scope): Likewise. | |
13684 | (read_enumeration_type): Likewise. | |
13685 | (read_array_type): Likewise. | |
13686 | (read_common_block): Likewise. | |
13687 | (read_namespace_type): Likewise. | |
13688 | (read_namespace): Likewise. | |
13689 | (read_module_type): Likewise. | |
13690 | (read_tag_pointer_type): Likewise. | |
13691 | (read_tag_ptr_to_member_type): Likewise. | |
13692 | (read_tag_string_type): Likewise. | |
13693 | (read_subroutine_type): Likewise. | |
13694 | (read_typedef): Likewise. | |
13695 | (read_base_type): Likewise. | |
13696 | (attr_to_dynamic_prop): Likewise. | |
13697 | (read_subrange_type): Likewise. | |
13698 | (read_unspecified_type): Likewise. | |
13699 | (load_partial_dies): Likewise. | |
13700 | (read_partial_die): Likewise. | |
13701 | (find_partial_die): Likewise. | |
13702 | (guess_partial_die_structure_name): Likewise. | |
13703 | (fixup_partial_die): Likewise. | |
13704 | (read_attribute_value): Likewise. | |
13705 | (read_addr_index_from_leb128): Likewise. | |
13706 | (dwarf2_read_addr_index): Likewise. | |
13707 | (dwarf2_string_attr): Likewise. | |
13708 | (lnp_state_machine::check_line_address): Likewise. | |
13709 | (dwarf_decode_lines_1): Likewise. | |
13710 | (dwarf_decode_lines): Likewise. | |
13711 | (dwarf2_start_symtab): Likewise. | |
13712 | (var_decode_location): Likewise. | |
13713 | (new_symbol_full): Likewise. | |
13714 | (dwarf2_const_value_data): Likewise. | |
13715 | (dwarf2_const_value_attr): Likewise. | |
13716 | (dwarf2_const_value): Likewise. | |
13717 | (die_type): Likewise. | |
13718 | (die_containing_type): Likewise. | |
13719 | (lookup_die_type): Likewise. | |
13720 | (guess_full_die_structure_name): Likewise. | |
13721 | (anonymous_struct_prefix): Likewise. | |
13722 | (dwarf2_name): Likewise. | |
13723 | (follow_die_ref_or_sig): Likewise. | |
13724 | (follow_die_offset): Likewise. | |
13725 | (follow_die_ref): Likewise. | |
13726 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
13727 | (dwarf2_fetch_constant_bytes): Likewise. | |
13728 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
13729 | (dwarf2_get_die_type): Likewise. | |
13730 | (follow_die_sig): Likewise. | |
13731 | (decode_locdesc): Likewise. | |
13732 | (dwarf2_per_cu_objfile): Likewise. | |
13733 | (dwarf2_per_cu_text_offset): Likewise. | |
13734 | (init_one_comp_unit): Assign dwarf2_per_objfile instead of | |
13735 | objfile. | |
13736 | (set_die_type): Access objfile through | |
13737 | dwarf2_per_objfile. | |
13738 | ||
b01ba14d SM |
13739 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
13740 | ||
13741 | * valprint.c (converted_character_d): Remove typedef. | |
13742 | (DEF_VEC_O (converted_character_d)): Remove. | |
13743 | (count_next_character): Use std::vector. | |
13744 | (print_converted_chars_to_obstack): Likewise. | |
13745 | (generic_printstr): Likewise. | |
13746 | ||
4d0fdd9b SM |
13747 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
13748 | ||
13749 | * xml-support.h (struct gdb_xml_value): Add constructor. | |
13750 | <value>: Change type to unique_xmalloc_ptr. | |
13751 | (gdb_xml_value_s): Remove typedef. | |
13752 | (DEF_VEC_O (gdb_xml_value_s)): Remove. | |
13753 | (gdb_xml_element_start_handler): Change parameter type to | |
13754 | std::vector. | |
13755 | (xml_find_attribute): Likewise. | |
13756 | * xml-support.c (xml_find_attribute): Change parameter type to | |
13757 | std::vector and adjust. | |
13758 | (gdb_xml_values_cleanup): Remove. | |
13759 | (gdb_xml_parser::start_element): Adjust to std::vector. | |
13760 | (xinclude_start_include): Change paraeter type to std::vector | |
13761 | and adjust. | |
13762 | * btrace.c (check_xml_btrace_version): Likewise. | |
13763 | (parse_xml_btrace_block): Likewise. | |
13764 | (parse_xml_btrace_pt_config_cpu): Likewise. | |
13765 | (parse_xml_btrace_pt): Likewise. | |
13766 | (parse_xml_btrace_conf_bts): Likewise. | |
13767 | (parse_xml_btrace_conf_pt): Likewise. | |
13768 | * memory-map.c (memory_map_start_memory): Likewise. | |
13769 | (memory_map_start_property): Likewise. | |
13770 | * osdata.c (osdata_start_osdata): Likewise. | |
13771 | (osdata_start_item): Likewise. | |
13772 | (osdata_start_column): Likewise. | |
13773 | * remote.c (start_thread): Likewise. | |
13774 | * solib-aix.c (library_list_start_library): Likewise. | |
13775 | (library_list_start_list): Likewise. | |
13776 | * solib-svr4.c (library_list_start_library): Likewise. | |
13777 | (svr4_library_list_start_list): Likewise. | |
13778 | * solib-target.c (library_list_start_segment): Likewise. | |
13779 | (library_list_start_section): Likewise. | |
13780 | (library_list_start_library): Likewise. | |
13781 | (library_list_start_list): Likewise. | |
13782 | * tracepoint.c (traceframe_info_start_memory): Likewise. | |
13783 | (traceframe_info_start_tvar): Likewise. | |
13784 | * xml-syscall.c (syscall_start_syscall): Likewise. | |
13785 | * xml-tdesc.c (tdesc_start_target): Likewise. | |
13786 | (tdesc_start_feature): Likewise. | |
13787 | (tdesc_start_reg): Likewise. | |
13788 | (tdesc_start_union): Likewise. | |
13789 | (tdesc_start_struct): Likewise. | |
13790 | (tdesc_start_flags): Likewise. | |
13791 | (tdesc_start_enum): Likewise. | |
13792 | (tdesc_start_field): Likewise. | |
13793 | (tdesc_start_enum_value): Likewise. | |
13794 | (tdesc_start_vector): Likewise. | |
13795 | ||
f979c73f SM |
13796 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
13797 | ||
13798 | * extension.h (struct xmethod_worker) <clone>: Remove. | |
13799 | * python/py-xmethods.c (struct python_xmethod_worker) <clone>: | |
13800 | Remove. | |
13801 | (python_xmethod_worker::clone): Remove. | |
13802 | * valops.c (find_overload_match): Use std::move instead of | |
13803 | clone. | |
13804 | ||
ba18742c SM |
13805 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
13806 | ||
13807 | * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h. | |
13808 | (struct extension_language_ops) <clone_xmethod_worker_data>: Remove. | |
13809 | <free_xmethod_worker_data>: Remove. | |
13810 | <get_matching_xmethod_workers>: Chance VEC to std::vector. | |
13811 | <get_xmethod_arg_types>: Remove. | |
13812 | <get_xmethod_result_type>: Remove. | |
13813 | <invoke_xmethod>: Remove. | |
13814 | * extension.c (new_xmethod_worker): Remove. | |
13815 | (clone_xmethod_worker): Remove. | |
13816 | (get_matching_xmethod_workers): Return void, pass std::vector by | |
13817 | pointer. | |
13818 | (get_xmethod_arg_types): Rename to... | |
13819 | (xmethod_worker::get_arg_types): ... this, and adjust. | |
13820 | (get_xmethod_result_type): Rename to... | |
13821 | (xmethod_worker::get_result_type): ... this, and adjust. | |
13822 | (invoke_xmethod): Remove. | |
13823 | (free_xmethod_worker): Remove. | |
13824 | (free_xmethod_worker_vec): Remove. | |
13825 | * extension.h (enum ext_lang_rc): Move here from | |
13826 | extension-priv.h. | |
13827 | (struct xmethod_worker): Add constructor and destructor. | |
13828 | <data>: Remove. | |
13829 | <value>: Remove. | |
13830 | <invoke, clone, do_get_result_type, do_get_arg_types>: New | |
13831 | virtual pure methods. | |
13832 | <get_arg_types, get_result_type>: New methods. | |
13833 | (xmethod_worker_ptr): Remove typedef. | |
13834 | (DEF_VEC_P (xmethod_worker_ptr)): Remove. | |
13835 | (xmethod_worker_vec): Remove typedef. | |
13836 | (xmethod_worker_up): New typedef. | |
13837 | (invoke_xmethod): Remove. | |
13838 | (clone_xmethod_worker): Remove. | |
13839 | (free_xmethod_worker): Remove. | |
13840 | (free_xmethod_worker_vec): Remove. | |
13841 | (get_xmethod_arg_types): Remove. | |
13842 | (get_xmethod_result_type): Remove. | |
13843 | * valops.c (find_method_list): Use std::vector, don't use | |
13844 | intermediate vector. | |
13845 | (value_find_oload_method_list): Use std::vector. | |
13846 | (find_overload_match): Use std::vector. | |
13847 | (find_oload_champ): Use std::vector. | |
13848 | * value.c (value_free): Use operator delete. | |
13849 | (value_of_xmethod): Rename to... | |
13850 | (value_from_xmethod): ... this. Don't assign | |
13851 | xmethod_worker::value, take rvalue-reference. | |
13852 | (result_type_of_xmethod): Adjust. | |
13853 | (call_xmethod): Adjust. | |
13854 | * value.h: Include extension.h. | |
13855 | (struct xmethod_worker): Don't forward-declare. | |
13856 | (value_of_xmethod): Rename to... | |
13857 | (value_from_xmethod): ... this, take rvalue-reference. | |
13858 | * python/py-xmethods.c (struct gdbpy_worker_data): Rename to... | |
13859 | (struct python_xmethod_worker): ... this, add constructor and | |
13860 | destructor. | |
13861 | <invoke, clone, do_get_arg_types, do_get_result_type>: Implement. | |
13862 | (gdbpy_free_xmethod_worker_data): Rename to... | |
13863 | (python_xmethod_worker::~python_xmethod_worker): ... this and | |
13864 | adjust. | |
13865 | (gdbpy_clone_xmethod_worker_data): Rename to... | |
13866 | (python_xmethod_worker::clone): ... this and adjust. | |
13867 | (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use | |
13868 | temporary vector. | |
13869 | (gdbpy_get_xmethod_arg_types): Rename to... | |
13870 | (python_xmethod_worker::do_get_arg_types): ... this and adjust. | |
13871 | (gdbpy_get_xmethod_result_type): Rename to... | |
13872 | (python_xmethod_worker::do_get_result_type): ... this and | |
13873 | adjust. | |
13874 | (gdbpy_invoke_xmethod): Rename to... | |
13875 | (python_xmethod_worker::invoke): ... this and adjust. | |
13876 | (new_python_xmethod_worker): Rename to... | |
13877 | (python_xmethod_worker::python_xmethod_worker): ... this and | |
13878 | adjust. | |
13879 | * python/python-internal.h (gdbpy_clone_xmethod_worker_data): | |
13880 | Remove. | |
13881 | (gdbpy_free_xmethod_worker_data): Remove. | |
13882 | (gdbpy_get_matching_xmethod_workers): Use std::vector. | |
13883 | (gdbpy_get_xmethod_arg_types): Remove. | |
13884 | (gdbpy_get_xmethod_result_type): Remove. | |
13885 | (gdbpy_invoke_xmethod): Remove. | |
13886 | * python/python.c (python_extension_ops): Remove obsolete | |
13887 | callbacks. | |
13888 | ||
e379cee6 PA |
13889 | 2018-01-05 Pedro Alves <palves@redhat.com> |
13890 | ||
13891 | PR gdb/18653 | |
13892 | * common/signals-state-save-restore.c | |
13893 | (save_original_signals_state): New parameter 'quiet'. Warn if we | |
13894 | find a custom handler preinstalled, instead of internal erroring. | |
13895 | But only warn if !quiet. | |
13896 | * common/signals-state-save-restore.h | |
13897 | (save_original_signals_state): New parameter 'quiet'. | |
13898 | * main.c (captured_main_1): Move save_original_signals_state call | |
13899 | after option handling, and pass QUIET. | |
13900 | ||
a655456c PA |
13901 | 2018-01-05 Pedro Alves <palves@redhat.com> |
13902 | ||
13903 | * spu-tdep.c (spu_catch_start): Pass | |
13904 | symbol_name_match_type::SEARCH_NAME to block_lookup_symbol. | |
13905 | ||
de63c46b PA |
13906 | 2018-01-05 Pedro Alves <palves@redhat.com> |
13907 | ||
13908 | PR gdb/22670 | |
13909 | * ada-lang.c (literal_symbol_name_matcher): New function. | |
13910 | (ada_get_symbol_name_matcher): Use it for | |
13911 | symbol_name_match_type::SEARCH_NAME. | |
13912 | * block.c (block_lookup_symbol): New parameter 'match_type'. Pass | |
13913 | it down instead of assuming symbol_name_match_type::FULL. | |
13914 | * block.h (block_lookup_symbol): New parameter 'match_type'. | |
13915 | * c-valprint.c (print_unpacked_pointer): Use | |
13916 | lookup_symbol_search_name instead of lookup_symbol. | |
13917 | * compile/compile-object-load.c (get_out_value_type): Pass down | |
13918 | symbol_name_match_type::SEARCH_NAME. | |
13919 | * cp-namespace.c (cp_basic_lookup_symbol): Pass down | |
13920 | symbol_name_match_type::FULL. | |
13921 | * cp-support.c (cp_get_symbol_name_matcher): Handle | |
13922 | symbol_name_match_type::SEARCH_NAME. | |
13923 | * infrun.c (insert_exception_resume_breakpoint): Use | |
13924 | lookup_symbol_search_name. | |
13925 | * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name. | |
13926 | * psymtab.c (maintenance_check_psymtabs): Use | |
13927 | symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME. | |
13928 | * stack.c (print_frame_args): Use lookup_symbol_search_name and | |
13929 | SYMBOL_SEARCH_NAME. | |
13930 | * symtab.c (lookup_local_symbol): Don't demangle the lookup name | |
13931 | if symbol_name_match_type::SEARCH_NAME. | |
13932 | (lookup_symbol_in_language): Pass down | |
13933 | symbol_name_match_type::FULL. | |
13934 | (lookup_symbol_search_name): New. | |
13935 | (lookup_language_this): Pass down | |
13936 | symbol_name_match_type::SEARCH_NAME. | |
13937 | (lookup_symbol_aux, lookup_local_symbol): New parameter | |
13938 | 'match_type'. Pass it down. | |
13939 | * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator. | |
13940 | (lookup_symbol_search_name): New declaration. | |
13941 | (lookup_symbol_in_block): New 'match_type' parameter. | |
13942 | ||
f98fc17b PA |
13943 | 2018-01-05 Pedro Alves <palves@redhat.com> |
13944 | ||
13945 | PR gdb/22670 | |
13946 | * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of | |
13947 | ada_lookup_symbol. | |
13948 | (ada_lookup_symbol): Reimplement in terms of | |
13949 | ada_lookup_symbol_list, bits factored out from | |
13950 | ada_lookup_encoded_symbol. | |
13951 | ||
342f8240 JB |
13952 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
13953 | ||
13954 | * ada-exp.y (write_object_renaming): When subscripting an array | |
13955 | using a symbol as the index, pass the block in call to | |
13956 | ada_lookup_encoded_symbol when looking that symbol up. | |
13957 | ||
7150d33c JG |
13958 | 2018-01-05 Jerome Guitton <guitton@adacore.com> |
13959 | ||
13960 | * ada-lang.c (ada_array_length): Use ada_index_type instead of | |
13961 | TYPE_INDEX_TYPE. | |
13962 | ||
cc0e770c JB |
13963 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
13964 | ||
13965 | * ada-lang.c (ada_to_fixed_value_create): Add handling of | |
13966 | the case where VALUE_LVAL (val0) is not lval_memory. | |
13967 | ||
f79da888 | 13968 | 2018-01-05 Xavier Roirand <roirand@adacore.com> |
e3861a03 XR |
13969 | |
13970 | * ada-valprint.c (print_optional_low_bound): Handle | |
13971 | character-indexed array printing like boolean-indexed array | |
13972 | printing. | |
13973 | ||
cd385f94 JB |
13974 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
13975 | ||
13976 | * NEWS: Create a new section for the next release branch. | |
13977 | Rename the section of the current branch, now that it has | |
13978 | been cut. | |
13979 | ||
09aca949 JB |
13980 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
13981 | ||
13982 | GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7): | |
13983 | * version.in: Bump version to 8.1.50.DATE-git. | |
13984 | ||
9f757bf7 XR |
13985 | 2018-01-03 Xavier Roirand <roirand@adacore.com> |
13986 | ||
13987 | * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>: | |
13988 | Add field. | |
13989 | * ada-lang.c (struct exception_support_info) <catch_handlers_sym>: | |
13990 | Add field. | |
13991 | (default_exception_support_info) <catch_handlers_sym>: Add field. | |
13992 | (exception_support_info_fallback) <catch_handlers_sym>: Add field. | |
13993 | (ada_exception_name_addr_1): Add "catch handlers" handling. | |
13994 | (ada_exception_catchpoint_cond_string) <ex>: New parameter. | |
13995 | Update all callers. | |
13996 | (create_excep_cond_exprs) <ex>: Add parameter. | |
13997 | (re_set_exception): Update create_excep_cond_exprs call. | |
13998 | (print_it_exception, print_one_exception, print_mention_exception) | |
13999 | (print_recreate_exception): Add "catch handler" handling. | |
14000 | (allocate_location_catch_handlers, re_set_catch_handlers) | |
14001 | (check_status_catch_handlers, print_it_catch_handlers) | |
14002 | (print_one_catch_handlers, print_mention_catch_handlers) | |
14003 | (print_recreate_catch_handlers): New function. | |
14004 | (catch_handlers_breakpoint_ops): New variable. | |
14005 | (catch_ada_exception_command_split) <is_catch_handlers_cmd>: | |
14006 | Add parameter. Add "catch handler" handling. | |
14007 | (ada_exception_sym_name, ada_exception_breakpoint_ops): | |
14008 | Add "catch handler" handling. | |
14009 | (ada_exception_catchpoint_cond_string): Add "catch handler" | |
14010 | handling. | |
14011 | (create_ada_exception_catchpoint): Update create_excep_cond_exprs | |
14012 | call. | |
14013 | (catch_ada_handlers_command): New function. | |
14014 | (initialize_ada_catchpoint_ops): Initialize "catch handlers" | |
14015 | operations structure. | |
14016 | (_initialize_ada_language): Add "catch handlers" command entry. | |
14017 | * NEWS: Document "catch handlers" feature. | |
14018 | ||
9fe561ab JB |
14019 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
14020 | ||
14021 | * ada-lang.c (ada_value_slice_from_ptr): Take array stride into | |
14022 | account when creating the array type of the slice. | |
14023 | (ada_value_slice): Likewise. | |
14024 | ||
a405673c JB |
14025 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
14026 | ||
14027 | * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>: | |
14028 | New enum value. | |
14029 | (create_array_type_with_stride): Add byte_stride_prop parameter. | |
14030 | * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>: | |
14031 | New parameter. Update all callers in this file. | |
14032 | (array_type_has_dynamic_stride): New function. | |
14033 | (is_dynamic_type_internal, resolve_dynamic_array): Add handling | |
14034 | of arrays with dynamic byte strides. | |
14035 | * dwarf2read.c (read_array_type): Add support for dynamic | |
14036 | DW_AT_byte_stride attributes. | |
14037 | ||
74a2f8ff JB |
14038 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
14039 | ||
14040 | * dwarf2read.c (read_unspecified_type): Treat | |
14041 | DW_TAG_enumeration_type DIEs from Ada units as stubs. | |
14042 | ||
e2882c85 JB |
14043 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
14044 | ||
14045 | Update copyright year range in all GDB files. | |
14046 | ||
1690bb24 JB |
14047 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
14048 | ||
14049 | * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp | |
14050 | and gdb/testsuite/gdb.base/step-line.c. | |
14051 | ||
0f0c98a8 JB |
14052 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
14053 | ||
14054 | * copyright.py (main): Dump the contents of | |
14055 | MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND, | |
14056 | even if BY_HAND is empty. | |
14057 | ||
82e1e79a JB |
14058 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
14059 | ||
14060 | * top.c (print_gdb_version): Update Copyright year in version | |
14061 | message. | |
14062 | ||
053f54e5 | 14063 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
47fea877 | 14064 | |
053f54e5 | 14065 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017. |
47fea877 | 14066 | |
053f54e5 | 14067 | For older changes see ChangeLog-2017. |
c906108c SS |
14068 | \f |
14069 | Local Variables: | |
14070 | mode: change-log | |
14071 | left-margin: 8 | |
14072 | fill-column: 74 | |
14073 | version-control: never | |
57da7796 | 14074 | coding: utf-8 |
c906108c | 14075 | End: |