Add "const" to a few locals in gdb
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b5a9bfbe
TT
12018-09-24 Tom Tromey <tom@tromey.com>
2
3 * common/pathstuff.c (get_standard_cache_dir): Make
4 "xdg_cache_home" and "home" const.
5 * top.c (init_history): Make "tmpenv" const.
6 * main.c (get_init_files): Make "homedir" const.
7
ae778caf
TT
82018-09-23 Tom Tromey <tom@tromey.com>
9
10 PR python/18852:
11 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
12
2b4ad2fe
TT
132018-09-23 Tom Tromey <tom@tromey.com>
14
15 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
16 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
17 * python/python-internal.h (gdbpy_handle_exception): Declare.
18 * python/py-utils.c (gdbpy_handle_exception): New function.
19
fd3ba736
TT
202018-09-23 Tom Tromey <tom@tromey.com>
21
22 PR python/17284:
23 * python/py-type.c (typy_template_argument): Check for negative
24 argument number.
25
39a24317
TT
262018-09-23 Tom Tromey <tom@tromey.com>
27
28 PR python/14062:
29 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
30
f5769a2c
TT
312018-09-23 Tom Tromey <tom@tromey.com>
32
33 PR python/18170:
34 * python/py-value.c (valpy_int): Allow conversion from pointer
35 type.
36
1c1e54f6
TT
372018-09-23 Tom Tromey <tom@tromey.com>
38
39 PR python/20126:
40 * python/py-value.c (valpy_int): Respect type sign.
41
fb4fa946
TT
422018-09-23 Tom Tromey <tom@tromey.com>
43
44 PR python/18352;
45 * python/py-value.c (valpy_float): Allow conversions from int or
46 char.
47 (valpy_int, valpy_long): Allow conversions from float.
48
65773341
TT
492018-09-23 Tom Tromey <tom@tromey.com>
50
51 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
52 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
53
1db88d22
RO
542018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
55
56 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
57 __sighndlr.
58 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
59
a44294f5
JT
602018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
61
62 * windows-nat.c (windows_nat_target::wait): Remove a spurious
63 target_terminal::ours().
64
0c0a40e0
SM
652018-09-23 Simon Marchi <simon.marchi@ericsson.com>
66
67 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
68 of vl to ULONGEST.
69
4daf1902
YS
702018-09-21 Yacov Simhony <ysimhony@gmail.com>
71
72 * breakpoint.c (update_inserted_breakpoint_locations): Remove
73 redundant condition.
74
c475f569
RO
752018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
76
77 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
78
79 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
80 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
81 * sol-thread.c (ps_pdmodel): Don't guard definition.
82
83 * procfs.c: Fix formatting.
84
85 * procfs.c (sysset_t_alloc): Remove.
86 (create_procinfo): Use XNEW instead of sysset_t_alloc.
87 (procfs_debug_inferior): Likewise.
88 (procfs_set_exec_trap): Likewise.
89 (proc_set_traced_sysentry): Don't allocate argp dynamically.
90 (proc_set_traced_sysexit): Likewise.
91
92 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
93 (dead_procinfo): Likewise.
94 (proc_warn): Likewise.
95 (proc_error): Likewise.
96 (proc_get_LDT_entry): Likewise.
97 (do_attach): Likewise.
98 (procfs_target::pid_to_str): Likewise.
99 (iterate_over_mappings): Likewise.
100
101 * procfs.c (create_procinfo): Fix ARI warning.
102 (proc_get_status): Likewise.
103 (proc_stop_process): Likewise.
104 (proc_run_process): Likewise.
105 (proc_kill): Likewise.
106 (proc_get_LDT_entry): Likewise.
107 (procfs_find_LDT_entry): Likewise.
108 (proc_update_threads): Likewise.
109 (proc_iterate_over_threads): Likewise.
110 (do_attach): Likewise.
111 (procfs_xfer_memory): Likewise.
112 (invalidate_cache): Likewise.
113 (procfs_target::resume): Likewise.
114 (procfs_init_inferior): Likewise.
115 (procfs_set_exec_trap): Likewise.
116 (procfs_target::thread_alive): Likewise.
117 (procfs_target::pid_to_exec_file): Likewise.
118 (iterate_over_mappings): Likewise.
119 (procfs_target::make_corefile_notes): Likewise.
120 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
121
122 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
123 (procfs_find_LDT_entry): Likewise.
124 * sol-thread.c (ps_lgetLDT): Likewise.
125
4206c05e
RO
1262018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
127
128 PR tdep/17903
129 * procfs.c (procfs_target): Declare pid_to_exec_file.
130 (procfs_target::pid_to_exec_file): New.
131
3d282ac3
RO
1322018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
133
134 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
135 renaming.
136 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
137 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
138
8c93fae6
RO
1392018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
140
141 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
142 (supply_fpregset, fill_fpregset): Move ...
143 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
144 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
145 Remove references to ioctl-based procfs.
146 Include <sys/reg.h>.
147 Remove PR_MODEL_NATIVE guards.
148 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
149 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
150
79b32f4a
XR
1512018-09-19 Xavier Roirand <roirand@adacore.com>
152
153 PR gdb/20981:
154 * solib-darwin.c (darwin_get_dyld_bfd): New function.
155 (darwin_solib_get_all_image_info_addr_at_init): Update call.
156 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
157
07147793
JB
1582018-09-19 John Baldwin <jhb@FreeBSD.org>
159
160 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
161 (fbsd_print_sockaddr_in6): Likewise.
162
23be8da7
RB
1632018-09-19 Richard Bunt <richard.bunt@arm.com>
164 Chris January <chris.january@arm.com>
165
166 * eval.c (skip_undetermined_arglist): Skip argument list helper.
167 (evaluate_subexp_standard): Return a dummy type when
168 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
169 OP_F77_UNDETERMINED_ARGLIST case.
170 * expression.h (enum noside): Update comment.
171
7307a73a
RO
1722018-09-19 George Vasick <george.vasick@oracle.com>
173
174 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
175
13db92d3
RO
1762018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
177 April Chin <april.chin@oracle.com>
178 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
179
180 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
181 uint_t lwpid_t.
182 (create_procinfo): Print pids in /proc without leading zeros.
183
3d50f170
SL
1842018-09-18 Sandra Loosemore <sandra@codesourcery.com>
185
186 * nios2-tdep.c (nios2_gcc_target_options): New.
187 (nios2_gdb_arch_init): Install new hook.
188
b567ca63
SM
1892018-09-18 Simon Marchi <simon.marchi@ericsson.com>
190
191 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
192 New file.
193 * update-gnulib.sh: Apply patch.
194 * configure: Re-generate.
195
73f1bd76
JB
1962018-09-18 John Baldwin <jhb@FreeBSD.org>
197
198 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
199 description. Make "info proc" command descriptions more
200 consistent.
201
8b113111
JB
2022018-09-18 John Baldwin <jhb@FreeBSD.org>
203
204 * NEWS: Mention 'info proc files' command.
205
7e69672e
JB
2062018-09-18 John Baldwin <jhb@FreeBSD.org>
207
208 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
209 descriptors for IP_FILES and IP_ALL.
210
57c2a98a
JB
2112018-09-18 John Baldwin <jhb@FreeBSD.org>
212
213 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
214 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
215 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
216 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
217 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
218 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
219 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
220 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
221 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
222 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
223 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
224 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
225 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
226 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
227 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
228 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
229 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
230 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
231 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
232 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
233 (struct fbsd_sockaddr_un): New types.
234 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
235 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
236 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
237 (fbsd_core_info_proc_files): New functions.
238 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
239 IP_ALL.
240 * fbsd-tdep.h (fbsd_info_proc_files_header)
241 (fbsd_info_proc_files_entry): New.
242
e98ee8c4
JB
2432018-09-18 John Baldwin <jhb@FreeBSD.org>
244
245 * defs.h (enum info_proc_what) [IP_FILES]: New value.
246 * infcmd.c (info_proc_cmd_files): New function.
247 (_initialize_infcmd): Register 'info proc files' command.
248
725e2999
JB
2492018-09-18 John Baldwin <jhb@FreeBSD.org>
250
251 * gnulib/aclocal-m4-deps.mk: Re-generate.
252 * gnulib/aclocal.m4: Re-generate.
253 * gnulib/config.in: Re-generate.
254 * gnulib/configure: Re-generate.
255 * gnulib/import/Makefile.am: Re-generate.
256 * gnulib/import/Makefile.in: Re-generate.
257 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
258 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
259 * gnulib/import/arpa_inet.in.h: New file.
260 * gnulib/import/inet_ntop.c: New file.
261 * gnulib/import/m4/arpa_inet_h.m4: New file.
262 * gnulib/import/m4/inet_ntop.m4: New file.
263 * gnulib/import/m4/netinet_in_h.m4: New file.
264 * gnulib/import/m4/socklen.m4: New file.
265 * gnulib/import/m4/sockpfaf.m4: New file.
266 * gnulib/import/m4/stdalign.m4: New file.
267 * gnulib/import/m4/sys_uio_h.m4: New file.
268 * gnulib/import/netinet_in.in.h: New file.
269 * gnulib/import/stdalign.in.h: New file.
270 * gnulib/import/sys_socket.c: New file.
271 * gnulib/import/sys_socket.in.h: New file.
272 * gnulib/import/sys_uio.in.h: New file.
273 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
274 module.
275
2afffa7f
JB
2762018-09-18 John Baldwin <jhb@FreeBSD.org>
277
278 * gnulib/aclocal-m4-deps.mk: New file.
279 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
280 deterministically.
281
9f235e09
JB
2822018-09-18 John Baldwin <jhb@FreeBSD.org>
283
284 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
285 KVE_PATH.
286
40f03055
TT
2872018-09-18 Tom Tromey <tom@tromey.com>
288
289 * compile/compile-object-load.c (struct
290 link_hash_table_cleanup_data): Add constructor and destructor.
291 Use DISABLE_COPY_AND_ASSIGN.
292 (~link_hash_table_cleanup_data): Rename from
293 link_hash_table_free. Now a destructor.
294 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
295
c9e0a7e3
TT
2962018-09-18 Tom Tromey <tom@tromey.com>
297
298 * compile/compile-object-run.c (do_module_cleanup): Use delete.
299 * compile/compile-object-load.c (struct munmap_list): Move to
300 header file.
301 (munmap_list::add): Rename from munmap_list_add; rewrite.
302 (munmap_list::~munmap_list): Rename from munmap_list_free.
303 (munmap_listp_free_cleanup): Remove.
304 (compile_object_load): Update.
305 * compile/compile-object-load.h (struct munmap_list): Move from
306 compile-object-load.c. Rewrite.
307
3ff2c72e
AH
3082018-09-18 Alan Hayward <alan.hayward@arm.com>
309
310 * aarch64-tdep.c (pass_in_v): Use register size.
311 (aarch64_extract_return_value): Likewise.
312 (aarch64_store_return_value): Likewise.
313
206c1947
RO
3142018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
315
316 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
317 rlim_t.
318
6eb5dbce
PW
3192018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
320
321 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
322 Fix short help line.
323
ae292b3a
TT
3242018-09-17 Tom Tromey <tom@tromey.com>
325
326 PR python/20445:
327 * configure: Rebuild.
328 * configure.ac: Conditionally use -DNDEBUG for Python.
329
da658607
TT
3302018-09-17 Tom Tromey <tom@tromey.com>
331
332 * configure: Rebuild.
333 * configure.ac: Use gmp as a library dependency when checking for
334 mpfr.
335
d35da542
PA
3362018-09-17 Pedro Alves <palves@redhat.com>
337
338 * python/py-inferior.c (find_inferior_object): Delete.
339
461464f2
SM
3402018-09-17 Simon Marchi <simon.marchi@ericsson.com>
341
342 * compile/compile-cplus-types.c
343 (compile_cplus_instance::enter_scope): Don't use new_scope after
344 std::move.
345
e6cd1dc1
TT
3462018-09-17 Tom Tromey <tom@tromey.com>
347
348 * common/pathstuff.c (get_standard_cache_dir): Use
349 ~/Library/Caches on macOS.
350 * common/pathstuff.h (get_standard_cache_dir): Update comment.
351
8588b356
SM
3522018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
353
354 PR python/23669
355 * breakpoint.c (commands_cmd_element): New.
356 (_initialize_breakpoint): Assign commands_cmd_element.
357 * breakpoint.h (commands_cmd_element): New.
358 * cli/cli-script.c (while_cmd_element, if_command,
359 define_cmd_element): New.
360 (command_name_equals): Remove.
361 (process_next_line): Compare commands by pointer, not by name.
362 (_initialize_cli_script): Assign the various cmd_list_element
363 variables.
364 * compile/compile.c (compile_cmd_element): New.
365 (_initialize_compile): Assign compile_cmd_element.
366 * compile/compile.h (compile_cmd_element): New.
367 * guile/guile.c (guile_cmd_element): New.
368 (install_gdb_commands): Assign guile_cmd_element.
369 * guile/guile.h (guile_cmd_element): New.
370 * python/python.c (python_cmd_element): New.
371 (_initialize_python): Assign python_cmd_element.
372 * python/python.h (python_cmd_element): New.
373 * tracepoint.c (while_stepping_cmd_element): New.
374 (_initialize_tracepoint): Assign while_stepping_cmd_element.
375 * tracepoint.h (while_stepping_cmd_element): New.
376
cb524840
TT
3772018-09-17 Tom Tromey <tom@tromey.com>
378
379 * infrun.c (save_infcall_suspend_state): Return
380 infcall_suspend_state_up.
381 (save_infcall_control_state): Return infcall_control_state_up.
382 * inferior.h (save_infcall_suspend_state)
383 (save_infcall_control_state): Declare later. Return unique
384 pointers.
385
2d844eaf
TT
3862018-09-17 Tom Tromey <tom@tromey.com>
387
388 * infrun.c (struct stop_context): Declare constructor,
389 destructor, "changed" method.
390 (stop_context::stop_context): Rename from save_stop_context.
391 (stop_context::~stop_context): Rename from
392 release_stop_context_cleanup.
393 (normal_stop): Update.
394 (stop_context::changed): Rename from stop_context_changed. Return
395 bool.
396
c7c4d3fa
TT
3972018-09-17 Tom Tromey <tom@tromey.com>
398
399 * inferior.h (struct infcall_suspend_state_deleter): New.
400 (infcall_suspend_state_up): New typedef.
401 (struct infcall_control_state_deleter): New.
402 (infcall_control_state_up): New typedef.
403 (make_cleanup_restore_infcall_suspend_state)
404 (make_cleanup_restore_infcall_control_state): Don't declare.
405 * infcall.c (call_function_by_hand_dummy): Update.
406 * infrun.c (do_restore_infcall_suspend_state_cleanup)
407 (make_cleanup_restore_infcall_suspend_state): Remove.
408 (do_restore_infcall_control_state_cleanup)
409 (make_cleanup_restore_infcall_control_state): Remove.
410
ee841dd8
TT
4112018-09-17 Tom Tromey <tom@tromey.com>
412
413 * gdbthread.h (struct thread_control_state): Add initializer.
414 (class thread_info) <control>: Remove initializer.
415 * inferior.h (struct inferior_control_state): Add initializer.
416 (class inferior) <control>: Remove initializer.
417 (exit_inferior_1): Update.
418 * infrun.c (struct infcall_control_state): Add constructors.
419 (save_infcall_control_state): Use new.
420 (restore_infcall_control_state, discard_infcall_control_state):
421 Use delete.
422
117f580a
TT
4232018-09-17 Tom Tromey <tom@tromey.com>
424
425 * infrun.c (struct infcall_suspend_state) <registers>: Now a
426 unique_ptr.
427 <siginfo_data>: Now a unique_xmalloc_ptr.
428 (save_infcall_suspend_state, restore_infcall_suspend_state)
429 (discard_infcall_suspend_state)
430 (get_infcall_suspend_state_regcache): Update.
431
dd848631
TT
4322018-09-17 Tom Tromey <tom@tromey.com>
433
434 * gdbthread.h (struct thread_suspend_state): Add initializers.
435 (class thread_info) <suspend>: Remove initializer.
436 * infrun.c (struct infcall_suspend_state): Add initializers.
437 (save_infcall_suspend_state): Use new.
438 (discard_infcall_suspend_state): Use delete.
439
1a338907
TT
4402018-09-16 Tom Tromey <tom@tromey.com>
441
442 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
443 Remove.
444 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
445 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
446 (py_varobj_iter_new): Likewise.
447 (py_varobj_get_iterator): Use gdbpy_ref.
448
4a137fec
TT
4492018-09-16 Tom Tromey <tom@tromey.com>
450
451 * python/py-threadevent.c (py_get_event_thread): Simplify.
452 * python/py-inferior.c (infpy_thread_from_thread_handle):
453 Return immediately after calling thread_to_thread_object. Use
454 Py_RETURN_NONE.
455 (thread_to_thread_object): Set the exception on a NULL return.
456
8ff03f0b
SM
4572018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
458
459 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
460
94c8b725
TT
4612018-09-16 Tom Tromey <tom@tromey.com>
462
463 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
464 Remove.
465
db1337cc
TT
4662018-09-16 Tom Tromey <tom@tromey.com>
467
468 * python/python-internal.h (thread_to_thread_object): Change
469 return type.
470 * python/py-inferior.c (thread_to_thread_object): Return a new
471 reference.
472 (infpy_thread_from_thread_handle): Update.
473 * python/py-infthread.c (gdbpy_selected_thread): Update.
474 * python/py-stopevent.c (create_stop_event_object): Update.
475 * python/py-threadevent.c (py_get_event_thread): Return a new
476 reference.
477 (py_get_event_thread): Update.
478 * python/py-event.h (py_get_event_thread): Change return type.
479 * python/py-continueevent.c (create_continue_event_object):
480 Update.
481
0a9db5ad
TT
4822018-09-16 Tom Tromey <tom@tromey.com>
483
484 * python/py-progspace.c (pspy_get_objfiles): Update.
485 * python/python-internal.h (objfile_to_objfile_object): Change
486 return type.
487 * python/py-newobjfileevent.c (create_new_objfile_event_object):
488 Update.
489 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
490 Update.
491 * python/python.c (gdbpy_get_current_objfile): Update.
492 (gdbpy_objfiles): Update.
493 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
494 Update.
495 (objfile_to_objfile_object): Return a new reference.
496 * python/py-symtab.c (stpy_get_objfile): Update.
497 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
498 Update.
499
3c7aa307
TT
5002018-09-16 Tom Tromey <tom@tromey.com>
501
502 * python/py-inferior.c (infpy_get_progspace): Update.
503 * python/python-internal.h (pspace_to_pspace_object): Change
504 return type.
505 * python/py-newobjfileevent.c
506 (create_clear_objfiles_event_object): Update.
507 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
508 Update.
509 * python/python.c (gdbpy_get_current_progspace): Update.
510 (gdbpy_progspaces): Update.
511 * python/py-progspace.c (pspace_to_pspace_object): Return a new
512 reference.
513 * python/py-objfile.c (objfpy_get_progspace): Update.
514 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
515 Update.
516
8743a9cd
TT
5172018-09-16 Tom Tromey <tom@tromey.com>
518
519 * python/lib/gdb/__init__.py (current_progspace, objfiles)
520 (solib_name, block_for_pc, find_pc_line): New functions.
521 (execute_unwinders): Update.
522 * python/py-block.c (gdbpy_block_for_pc): Remove.
523 * python/py-inferior.c (infpy_get_progspace): New function.
524 (inferior_object_getset) <progspace>: Add.
525 * python/py-progspace.c (pspy_objfiles): Rewrite.
526 (pspy_solib_name, pspy_block_for_pc)
527 (pspy_find_pc_line, pspy_is_valid): New functions.
528 (progspace_object_methods): Add entries for solib_name,
529 block_for_pc, find_pc_line, is_valid.
530 * python/python-internal.h (gdbpy_block_for_pc)
531 (build_objfiles_list): Don't declare.
532 * python/python.c: Don't include solib.h.
533 (gdbpy_solib_name, gdbpy_find_pc_line)
534 (gdbpy_get_current_progspace, build_objfiles_list)
535 (gdbpy_objfiles): Remove.
536 (GdbMethods) <current_progspace, objfiles, block_for_pc,
537 solib_name, find_pc_line>: Remove entries.
538
65e65158
TT
5392018-09-16 Tom Tromey <tom@tromey.com>
540
541 * top.c (new_ui_command): Use GNU style for metasyntactic
542 variables.
543 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
544 variables.
545 * maint.c (maintenance_translate_address): Remove "<>" around
546 text.
547 * interps.c (interpreter_exec_cmd): Use GNU style for
548 metasyntactic variables.
549 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
550 metasyntactic variables.
551 * tracepoint.c (tfind_range_command): Use GNU style for
552 metasyntactic variables.
553 (tfind_outside_command): Likewise.
554 (_initialize_tracepoint): Likewise.
555 * remote.c (extended_remote_target::create_inferior): Use GNU
556 style for metasyntactic variables.
557 * sparc64-tdep.c (adi_examine_command): Use GNU style for
558 metasyntactic variables.
559 (adi_assign_command): Likewise.
560
f4bab6ff
TT
5612018-09-16 Tom Tromey <tom@tromey.com>
562
563 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
564 metasyntactic variables. Print message if no disassembler options
565 are available.
566
cbaaa0ca
TT
5672018-09-15 Tom Tromey <tom@tromey.com>
568
569 * infcmd.c (get_inferior_args): Return const char *.
570 * inferior.h (get_inferior_args): Return type now const.
571 * linux-tdep.c (linux_fill_prpsinfo): Update.
572 * procfs.c (procfs_target::make_corefile_notes): Update.
573
a3a6aef4
TT
5742018-09-07 Tom Tromey <tom@tromey.com>
575
576 * python/python.c (execute_gdb_command): Call bpstat_do_actions
577 inside the TRY.
578
f70e088f
SL
5792018-09-14 Sandra Loosemore <sandra@codesourcery.com>
580
581 * nios2-tdep.c (nios2_type_align): New.
582 (nios2_gdb_arch_init): Install type_align hook.
583
2fabdf33
AB
5842018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
585
586 * eval.c (fake_method::fake_method): Call xzalloc directly for a
587 type that is neither object file owned, nor gdbarch owned.
588 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
589 gdbarch is non-NULL.
590 (alloc_type_instance): Allocate non-objfile owned types on the
591 gdbarch obstack.
592 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
593 using TYPE_ALLOC to ensure memory is allocated on the correct
594 obstack.
595 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
596 obstack, or the gdbarch obstack.
597 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
598
b4b08fa2
TT
5992018-09-14 Tom Tromey <tom@tromey.com>
600
601 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
602 block.
603
87b240d4
TT
6042018-09-14 Tom Tromey <tom@tromey.com>
605
606 * nat/fork-inferior.c (get_startup_shell): Remove "static".
607
7d221512
TT
6082018-09-13 Tom Tromey <tom@tromey.com>
609
610 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
611 static.
612
97e67fc6
TT
6132018-09-13 Tom Tromey <tom@tromey.com>
614
615 * exec.c (try_open_exec_file): Use std::string.
616
803c08d0
TT
6172018-09-13 Tom Tromey <tom@tromey.com>
618
619 * utils.h (gdb_bfd_errmsg): Return std::string.
620 * exec.c (exec_file_attach): Update.
621 * compile/compile-object-load.c (compile_object_load): Update.
622 * utils.c (gdb_bfd_errmsg): Return std::string.
623
5b4cbbe3
TT
6242018-09-13 Tom Tromey <tom@tromey.com>
625
626 * procfs.c (struct procinfo_deleter): New.
627 (procinfo_up): New typedef.
628 (do_destroy_procinfo_cleanup): Remove.
629 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
630
db68fbe2
TT
6312018-09-13 Tom Tromey <tom@tromey.com>
632
633 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
634
0ae1a321
SM
6352018-09-13 Simon Marchi <simon.marchi@ericsson.com>
6362018-09-13 Tom Tromey <tom@tromey.com>
637
638 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
639 (pspy_get_objfiles): New function.
640 (progspace_object_methods): New.
641 (pspace_object_type): Add tp_methods callback.
642 * python/python-internal.h (build_objfiles_list): New
643 declaration.
644 * python/python.c (build_objfiles_list): New function.
645 (gdbpy_objfiles): Implement using build_objfiles_list.
646 * NEWS: Mention the Progspace.objfiles method.
647
a40bf0c2
SM
6482018-09-13 Simon Marchi <simon.marchi@ericsson.com>
649
650 * python/py-inferior.c (infpy_get_progspace): New function.
651 (inferior_object_getset): Add progspace property.
652 * NEWS: Mention the new property.
653
4a3fe98f
TT
6542018-09-13 Tom Tromey <tom@tromey.com>
655
656 PR rust/23650:
657 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
658
098b2108
TT
6592018-09-13 Tom Tromey <tom@tromey.com>
660
661 PR rust/23626:
662 * rust-lang.c (rust_enum_variant): Now static.
663 (rust_empty_enum_p): New function.
664 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
665 Handle empty enum.
666
1256af7d
SM
6672018-09-13 Simon Marchi <simon.marchi@ericsson.com>
668
669 * python/py-inferior.c (infpy_repr): New.
670 (inferior_object_type): Register infpy_repr.
671 * python/py-objfile.c (objfpy_repr): New.
672 (objfile_object_type): Register objfpy_repr.
673
f117a62c
JB
6742018-09-12 John Baldwin <jhb@FreeBSD.org>
675
676 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
677
88f22c34
JB
6782018-09-12 John Baldwin <jhb@FreeBSD.org>
679
680 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
681 typo.
682
3c025cfe
SDJ
6832018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
684
685 * common/common-utils.c: Don't include '<sys/stat.h>'.
686 (is_regular_file): Move to...
687 * common/filestuff.c (is_regular_file): ... here.
688 * common/common-utils.h (is_regular_file): Move to...
689 * common/filestuff.h (is_regular_file): ... here.
690
3e68067f
SM
6912018-09-12 Simon Marchi <simon.marchi@ericsson.com>
692
693 * skip.c (debug_skip): New variable.
694 (skiplist_entry::do_skip_file_p): Add debug output.
695 (skiplist_entry::do_skip_gfile_p): Likewise.
696 (skiplist_entry::skip_function_p): Likewise.
697 (_initialize_step_skip): Create debug command.
698 * NEWS: Mention set/show debug skip.
699
d6be54ef
XR
7002018-09-11 Xavier Roirand <roirand@adacore.com>
701
702 * darwin-nat.c (should_disable_startup_with_shell):
703 New function.
704 (darwin_nat_target::create_inferior): Add call.
705
de1ec836
XR
7062018-09-11 Xavier Roirand <roirand@adacore.com>
707
708 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
709 inf_port, msg_state>: Initialize.
710 (struct darwin_thread_info) <signaled, single_step>: Change
711 type and initialize.
712 (struct darwin_thread_info) <event>: Initialize.
713
e2fc52e7
SDJ
7142018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
715
716 PR gdb/23555
717 PR gdb/23558
718 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
719 guesses.
720
5e8754f9
SDJ
7212018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
722
723 Revert:
724 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
725
726 PR gdb/23555
727 PR gdb/23558
728 * gnulib/aclocal.m4: Regenerate.
729 * gnulib/config.in: Regenerate.
730 * gnulib/configure: Regenerate.
731 * gnulib/import/Makefile.am: Update.
732 * gnulib/import/Makefile.in: Update.
733 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
734 * gnulib/import/_Noreturn.h: ... this.
735 * gnulib/import/alloca.in.h: Update.
736 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
737 * gnulib/import/arg-nonnull.h: ... this.
738 * gnulib/import/assure.h: Update.
739 * gnulib/import/at-func.c: Update.
740 * gnulib/import/basename-lgpl.c: Update.
741 * gnulib/import/extra/snippet/c++defs.h: Rename to...
742 * gnulib/import/c++defs.h: ... this.
743 * gnulib/import/canonicalize-lgpl.c: Update.
744 * gnulib/import/cdefs.h: Update.
745 * gnulib/import/chdir-long.c: Update.
746 * gnulib/import/chdir-long.h: Update.
747 * gnulib/import/cloexec.c: Update.
748 * gnulib/import/cloexec.h: Update.
749 * gnulib/import/close.c: Update.
750 * gnulib/import/closedir.c: Update.
751 * gnulib/import/config.charset: Update.
752 * gnulib/import/dirent-private.h: Update.
753 * gnulib/import/dirent.in.h: Update.
754 * gnulib/import/dirfd.c: Update.
755 * gnulib/import/dirname-lgpl.c: Update.
756 * gnulib/import/dirname.h: Update.
757 * gnulib/import/dosname.h: Update.
758 * gnulib/import/dup-safer-flag.c: Update.
759 * gnulib/import/dup-safer.c: Update.
760 * gnulib/import/dup.c: Update.
761 * gnulib/import/dup2.c: Update.
762 * gnulib/import/errno.in.h: Update.
763 * gnulib/import/error.c: Update.
764 * gnulib/import/error.h: Update.
765 * gnulib/import/exitfail.c: Update.
766 * gnulib/import/exitfail.h: Update.
767 * gnulib/import/extra/update-copyright: Update.
768 * gnulib/import/fchdir.c: Update.
769 * gnulib/import/fcntl.c: Update.
770 * gnulib/import/fcntl.in.h: Update.
771 * gnulib/import/fd-hook.c: Update.
772 * gnulib/import/fd-hook.h: Update.
773 * gnulib/import/fd-safer-flag.c: Update.
774 * gnulib/import/fd-safer.c: Update.
775 * gnulib/import/fdopendir.c: Update.
776 * gnulib/import/filename.h: Update.
777 * gnulib/import/filenamecat-lgpl.c: Update.
778 * gnulib/import/filenamecat.h: Update.
779 * gnulib/import/flexmember.h: Update.
780 * gnulib/import/float+.h: Update.
781 * gnulib/import/float.c: Update.
782 * gnulib/import/float.in.h: Update.
783 * gnulib/import/fnmatch.c: Update.
784 * gnulib/import/fnmatch.in.h: Update.
785 * gnulib/import/fnmatch_loop.c: Update.
786 * gnulib/import/fpucw.h: Update.
787 * gnulib/import/frexp.c: Update.
788 * gnulib/import/frexpl.c: Update.
789 * gnulib/import/fstat.c: Update.
790 * gnulib/import/fstatat.c: Update.
791 * gnulib/import/getcwd-lgpl.c: Update.
792 * gnulib/import/getcwd.c: Update.
793 * gnulib/import/getdtablesize.c: Update.
794 * gnulib/import/getlogin_r.c: Update.
795 * gnulib/import/getprogname.c: Update.
796 * gnulib/import/getprogname.h: Update.
797 * gnulib/import/gettext.h: Update.
798 * gnulib/import/gettimeofday.c: Update.
799 * gnulib/import/glob-libc.h: Update.
800 * gnulib/import/glob.c: Update.
801 * gnulib/import/glob.in.h: Update.
802 * gnulib/import/glob_internal.h: Update.
803 * gnulib/import/glob_pattern_p.c: Update.
804 * gnulib/import/globfree.c: Update.
805 * gnulib/import/hard-locale.c: Update.
806 * gnulib/import/hard-locale.h: Update.
807 * gnulib/import/intprops.h: Update.
808 * gnulib/import/inttypes.in.h: Update.
809 * gnulib/import/isnan.c: Update.
810 * gnulib/import/isnand-nolibm.h: Update.
811 * gnulib/import/isnand.c: Update.
812 * gnulib/import/isnanl-nolibm.h: Update.
813 * gnulib/import/isnanl.c: Update.
814 * gnulib/import/itold.c: Update.
815 * gnulib/import/libc-config.h: Update.
816 * gnulib/import/limits.in.h: Update.
817 * gnulib/import/localcharset.c: Update.
818 * gnulib/import/localcharset.h: Update.
819 * gnulib/import/localtime-buffer.c: Update.
820 * gnulib/import/localtime-buffer.h: Update.
821 * gnulib/import/lstat.c: Update.
822 * gnulib/import/m4/00gnulib.m4: Update.
823 * gnulib/import/m4/__inline.m4: Update.
824 * gnulib/import/m4/absolute-header.m4: Update.
825 * gnulib/import/m4/alloca.m4: Update.
826 * gnulib/import/m4/builtin-expect.m4: Update.
827 * gnulib/import/m4/canonicalize.m4: Update.
828 * gnulib/import/m4/chdir-long.m4: Update.
829 * gnulib/import/m4/close.m4: Update.
830 * gnulib/import/m4/closedir.m4: Update.
831 * gnulib/import/m4/configmake.m4: Update.
832 * gnulib/import/m4/d-ino.m4: Update.
833 * gnulib/import/m4/d-type.m4: Update.
834 * gnulib/import/m4/dirent_h.m4: Update.
835 * gnulib/import/m4/dirfd.m4: Update.
836 * gnulib/import/m4/dirname.m4: Update.
837 * gnulib/import/m4/double-slash-root.m4: Update.
838 * gnulib/import/m4/dup.m4: Update.
839 * gnulib/import/m4/dup2.m4: Update.
840 * gnulib/import/m4/eealloc.m4: Update.
841 * gnulib/import/m4/environ.m4: Update.
842 * gnulib/import/m4/errno_h.m4: Update.
843 * gnulib/import/m4/error.m4: Update.
844 * gnulib/import/m4/exponentd.m4: Update.
845 * gnulib/import/m4/exponentl.m4: Update.
846 * gnulib/import/m4/extensions.m4: Update.
847 * gnulib/import/m4/extern-inline.m4: Update.
848 * gnulib/import/m4/fchdir.m4: Update.
849 * gnulib/import/m4/fcntl-o.m4: Update.
850 * gnulib/import/m4/fcntl.m4: Update.
851 * gnulib/import/m4/fcntl_h.m4: Update.
852 * gnulib/import/m4/fdopendir.m4: Update.
853 * gnulib/import/m4/filenamecat.m4: Update.
854 * gnulib/import/m4/flexmember.m4: Update.
855 * gnulib/import/m4/float_h.m4: Update.
856 * gnulib/import/m4/fnmatch.m4: Update.
857 * gnulib/import/m4/fnmatch_h.m4: Update.
858 * gnulib/import/m4/fpieee.m4: Update.
859 * gnulib/import/m4/frexp.m4: Update.
860 * gnulib/import/m4/frexpl.m4: Update.
861 * gnulib/import/m4/fstat.m4: Update.
862 * gnulib/import/m4/fstatat.m4: Update.
863 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
864 * gnulib/import/m4/getcwd-path-max.m4: Update.
865 * gnulib/import/m4/getcwd.m4: Update.
866 * gnulib/import/m4/getdtablesize.m4: Update.
867 * gnulib/import/m4/getlogin.m4: Update.
868 * gnulib/import/m4/getlogin_r.m4: Update.
869 * gnulib/import/m4/getpagesize.m4: Update.
870 * gnulib/import/m4/getprogname.m4: Update.
871 * gnulib/import/m4/gettimeofday.m4: Update.
872 * gnulib/import/m4/glibc21.m4: Update.
873 * gnulib/import/m4/glob.m4: Update.
874 * gnulib/import/m4/glob_h.m4: Update.
875 * gnulib/import/m4/gnulib-cache.m4: Update.
876 * gnulib/import/m4/gnulib-common.m4: Update.
877 * gnulib/import/m4/gnulib-comp.m4: Update.
878 * gnulib/import/m4/gnulib-tool.m4: Update.
879 * gnulib/import/m4/hard-locale.m4: Update.
880 * gnulib/import/m4/include_next.m4: Update.
881 * gnulib/import/m4/inttypes-pri.m4: Update.
882 * gnulib/import/m4/inttypes.m4: Update.
883 * gnulib/import/m4/isnand.m4: Update.
884 * gnulib/import/m4/isnanl.m4: Update.
885 * gnulib/import/m4/largefile.m4: Update.
886 * gnulib/import/m4/limits-h.m4: Update.
887 * gnulib/import/m4/localcharset.m4: Update.
888 * gnulib/import/m4/locale-fr.m4: Update.
889 * gnulib/import/m4/locale-ja.m4: Update.
890 * gnulib/import/m4/locale-zh.m4: Update.
891 * gnulib/import/m4/localtime-buffer.m4: Update.
892 * gnulib/import/m4/longlong.m4: Update.
893 * gnulib/import/m4/lstat.m4: Update.
894 * gnulib/import/m4/malloc.m4: Update.
895 * gnulib/import/m4/malloca.m4: Update.
896 * gnulib/import/m4/math_h.m4: Update.
897 * gnulib/import/m4/mbrtowc.m4: Update.
898 * gnulib/import/m4/mbsinit.m4: Update.
899 * gnulib/import/m4/mbsrtowcs.m4: Update.
900 * gnulib/import/m4/mbstate_t.m4: Update.
901 * gnulib/import/m4/memchr.m4: Update.
902 * gnulib/import/m4/memmem.m4: Update.
903 * gnulib/import/m4/mempcpy.m4: Update.
904 * gnulib/import/m4/memrchr.m4: Update.
905 * gnulib/import/m4/mkdir.m4: Update.
906 * gnulib/import/m4/mkstemp.m4: Update.
907 * gnulib/import/m4/mmap-anon.m4: Update.
908 * gnulib/import/m4/mode_t.m4: Update.
909 * gnulib/import/m4/msvc-inval.m4: Update.
910 * gnulib/import/m4/msvc-nothrow.m4: Update.
911 * gnulib/import/m4/multiarch.m4: Update.
912 * gnulib/import/m4/nocrash.m4: Update.
913 * gnulib/import/m4/off_t.m4: Update.
914 * gnulib/import/m4/onceonly.m4: Update.
915 * gnulib/import/m4/open-cloexec.m4: Update.
916 * gnulib/import/m4/open.m4: Update.
917 * gnulib/import/m4/openat.m4: Update.
918 * gnulib/import/m4/opendir.m4: Update.
919 * gnulib/import/m4/pathmax.m4: Update.
920 * gnulib/import/m4/rawmemchr.m4: Update.
921 * gnulib/import/m4/readdir.m4: Update.
922 * gnulib/import/m4/readlink.m4: Update.
923 * gnulib/import/m4/realloc.m4: Update.
924 * gnulib/import/m4/rename.m4: Update.
925 * gnulib/import/m4/rewinddir.m4: Update.
926 * gnulib/import/m4/rmdir.m4: Update.
927 * gnulib/import/m4/save-cwd.m4: Update.
928 * gnulib/import/m4/secure_getenv.m4: Update.
929 * gnulib/import/m4/setenv.m4: Update.
930 * gnulib/import/m4/signal_h.m4: Update.
931 * gnulib/import/m4/ssize_t.m4: Update.
932 * gnulib/import/m4/stat-time.m4: Update.
933 * gnulib/import/m4/stat.m4: Update.
934 * gnulib/import/m4/std-gnu11.m4: Update.
935 * gnulib/import/m4/stdbool.m4: Update.
936 * gnulib/import/m4/stddef_h.m4: Update.
937 * gnulib/import/m4/stdint.m4: Update.
938 * gnulib/import/m4/stdio_h.m4: Update.
939 * gnulib/import/m4/stdlib_h.m4: Update.
940 * gnulib/import/m4/strchrnul.m4: Update.
941 * gnulib/import/m4/strdup.m4: Update.
942 * gnulib/import/m4/strerror.m4: Update.
943 * gnulib/import/m4/string_h.m4: Update.
944 * gnulib/import/m4/strstr.m4: Update.
945 * gnulib/import/m4/strtok_r.m4: Update.
946 * gnulib/import/m4/sys_socket_h.m4: Update.
947 * gnulib/import/m4/sys_stat_h.m4: Update.
948 * gnulib/import/m4/sys_time_h.m4: Update.
949 * gnulib/import/m4/sys_types_h.m4: Update.
950 * gnulib/import/m4/tempname.m4: Update.
951 * gnulib/import/m4/time_h.m4: Update.
952 * gnulib/import/m4/unistd-safer.m4: Update.
953 * gnulib/import/m4/unistd_h.m4: Update.
954 * gnulib/import/m4/warn-on-use.m4: Update.
955 * gnulib/import/m4/wchar_h.m4: Update.
956 * gnulib/import/m4/wchar_t.m4: Update.
957 * gnulib/import/m4/wctype_h.m4: Update.
958 * gnulib/import/m4/wint_t.m4: Update.
959 * gnulib/import/malloc.c: Update.
960 * gnulib/import/malloc/scratch_buffer.h: Update.
961 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
962 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
963 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
964 * gnulib/import/malloca.c: Update.
965 * gnulib/import/malloca.h: Update.
966 * gnulib/import/malloca.valgrind: Update.
967 * gnulib/import/math.in.h: Update.
968 * gnulib/import/mbrtowc.c: Update.
969 * gnulib/import/mbsinit.c: Update.
970 * gnulib/import/mbsrtowcs-impl.h: Update.
971 * gnulib/import/mbsrtowcs-state.c: Update.
972 * gnulib/import/mbsrtowcs.c: Update.
973 * gnulib/import/memchr.c: Update.
974 * gnulib/import/memmem.c: Update.
975 * gnulib/import/mempcpy.c: Update.
976 * gnulib/import/memrchr.c: Update.
977 * gnulib/import/mkdir.c: Update.
978 * gnulib/import/mkstemp.c: Update.
979 * gnulib/import/msvc-inval.c: Update.
980 * gnulib/import/msvc-inval.h: Update.
981 * gnulib/import/msvc-nothrow.c: Update.
982 * gnulib/import/msvc-nothrow.h: Update.
983 * gnulib/import/open.c: Update.
984 * gnulib/import/openat-die.c: Update.
985 * gnulib/import/openat-priv.h: Update.
986 * gnulib/import/openat-proc.c: Update.
987 * gnulib/import/openat.c: Update.
988 * gnulib/import/openat.h: Update.
989 * gnulib/import/opendir.c: Update.
990 * gnulib/import/pathmax.h: Update.
991 * gnulib/import/pipe-safer.c: Update.
992 * gnulib/import/rawmemchr.c: Update.
993 * gnulib/import/readdir.c: Update.
994 * gnulib/import/readlink.c: Update.
995 * gnulib/import/realloc.c: Update.
996 * gnulib/import/ref-add.sin: Update.
997 * gnulib/import/ref-del.sin: Update.
998 * gnulib/import/rename.c: Update.
999 * gnulib/import/rewinddir.c: Update.
1000 * gnulib/import/rmdir.c: Update.
1001 * gnulib/import/same-inode.h: Update.
1002 * gnulib/import/save-cwd.c: Update.
1003 * gnulib/import/save-cwd.h: Update.
1004 * gnulib/import/scratch_buffer.h: Update.
1005 * gnulib/import/secure_getenv.c: Update.
1006 * gnulib/import/setenv.c: Update.
1007 * gnulib/import/signal.in.h: Update.
1008 * gnulib/import/stat-time.c: Update.
1009 * gnulib/import/stat-time.h: Update.
1010 * gnulib/import/stat-w32.c: Update.
1011 * gnulib/import/stat-w32.h: Update.
1012 * gnulib/import/stat.c: Update.
1013 * gnulib/import/stdbool.in.h: Update.
1014 * gnulib/import/stddef.in.h: Update.
1015 * gnulib/import/stdint.in.h: Update.
1016 * gnulib/import/stdio.in.h: Update.
1017 * gnulib/import/stdlib.in.h: Update.
1018 * gnulib/import/str-two-way.h: Update.
1019 * gnulib/import/strchrnul.c: Update.
1020 * gnulib/import/strdup.c: Update.
1021 * gnulib/import/streq.h: Update.
1022 * gnulib/import/strerror-override.c: Update.
1023 * gnulib/import/strerror-override.h: Update.
1024 * gnulib/import/strerror.c: Update.
1025 * gnulib/import/string.in.h: Update.
1026 * gnulib/import/stripslash.c: Update.
1027 * gnulib/import/strnlen1.c: Update.
1028 * gnulib/import/strnlen1.h: Update.
1029 * gnulib/import/strstr.c: Update.
1030 * gnulib/import/strtok_r.c: Update.
1031 * gnulib/import/sys_stat.in.h: Update.
1032 * gnulib/import/sys_time.in.h: Update.
1033 * gnulib/import/sys_types.in.h: Update.
1034 * gnulib/import/tempname.c: Update.
1035 * gnulib/import/tempname.h: Update.
1036 * gnulib/import/time.in.h: Update.
1037 * gnulib/import/unistd--.h: Update.
1038 * gnulib/import/unistd-safer.h: Update.
1039 * gnulib/import/unistd.in.h: Update.
1040 * gnulib/import/unsetenv.c: Update.
1041 * gnulib/import/verify.h: Update.
1042 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1043 * gnulib/import/wchar.in.h: Update.
1044 * gnulib/import/wctype.in.h: Update.
1045 * gnulib/import/xalloc-oversized.h: Update.
1046 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1047 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1048
8ec23583
SM
10492018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1050
1051 * record-btrace.c (get_thread_current_frame): Remove
1052 old_inferior_ptid.
1053
1f5d1570
JG
10542018-09-10 Jerome Guitton <guitton@adacore.com>
1055
1056 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1057 with check_tag to 1 if and only if the type is tagged and the
1058 component being searched cannot been found in the current
1059 view. Otherwise, always call ada_to_fixed_type with
1060 check_tag to 0.
1061
d91e9ea8
XR
10622018-09-10 Xavier Roirand <roirand@adacore.com>
1063
1064 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1065 declaration.
1066 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1067 * ada-varobj.c (ada_varobj_get_number_of_children,
1068 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1069
cc330e39
XR
10702018-09-10 Xavier Roirand <roirand@adacore.com>
1071
1072 * ada-valprint.c (ada_value_print): Use type instead of
1073 enclosing type.
1074
b9c50e9a
XR
10752018-09-10 Xavier Roirand <roirand@adacore.com>
1076
1077 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1078 an array of access to unconstrained array.
1079
736ade86
XR
10802018-09-10 Xavier Roirand <roirand@adacore.com>
1081
1082 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1083 (ada_check_typedef): Use it.
1084
2963898f
XR
10852018-09-10 Xavier Roirand <roirand@adacore.com>
1086
1087 * ada-varobj.c (ada_varobj_describe_struct_child)
1088 (ada_varobj_describe_child): Handle union case like struct one.
1089
a154931e
TT
10902018-09-10 Tom Tromey <tom@tromey.com>
1091
1092 PR python/18380:
1093 * python/python.c (_initialize_python): Make example in "python"
1094 help work in Python 3.
1095
23c4651c
EZ
10962018-09-10 Eli Zaretskii <eliz@gnu.org>
1097
1098 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1099 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1100 $(EXEEXT) to the script, as it is not a program.
1101
a5c5eda7
SM
11022018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1103
1104 * python/py-prettyprint.c (pretty_print_one_value): Return
1105 gdbpy_ref<>.
1106 (print_string_repr): Adjust.
1107 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1108 * python/python-internal.h (apply_varobj_pretty_printer): Return
1109 gdbpy_ref<>.
1110 * varobj.c (varobj_value_get_print_value): Adjust.
1111
332cf4c9
TT
11122018-09-08 Tom Tromey <tom@tromey.com>
1113
1114 PR python/16047:
1115 * python/py-prettyprint.c (pretty_print_one_value): Check for
1116 to_string method.
1117
424da6cf
JB
11182018-09-08 Joel Brobecker <brobecker@adacore.com>
1119
1120 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1121 replace_operator_with_call.
1122
95f39a5b
JB
11232018-09-08 Joel Brobecker <brobecker@adacore.com>
1124
1125 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1126
16b9eb7b
JB
11272018-09-08 Joel Brobecker <brobecker@adacore.com>
1128
1129 * ada-typeprint.c (print_range): Print the bounds using TYPE
1130 rather than its TYPE_TARGET_TYPE.
1131
d8ce9127
JB
11322018-09-08 Joel Brobecker <brobecker@adacore.com>
1133
1134 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1135 call to ada_to_fixed_value_create.
1136
0d81f350
JG
11372018-09-08 Jerome Guitton <guitton@adacore.com>
1138
1139 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1140
57aff202
JB
11412018-09-08 Joel Brobecker <brobecker@adacore.com>
1142
1143 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1144 by calls to error.
1145
fb44b1a7
JB
11462018-09-08 Joel Brobecker <brobecker@adacore.com>
1147
1148 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1149 Move update of loop variable "fi".
1150
2a62dfa9
JB
11512018-09-08 Joel Brobecker <brobecker@adacore.com>
1152
1153 * ada-lang.c (value_assign_to_component): In the case of
1154 big-endian targets, extract the bits of the given VAL
1155 using an src_offset of zero if container is not a scalar.
1156
739ab2e9
SS
11572018-09-06 Simon Ser <contact@emersion.fr>
1158
1159 PR gdb/23105
1160 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1161 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1162 * fbsd-tdep.c (fbsd_make_note_desc): New.
1163 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1164 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1165 * target.h (enum target_object) Add FreeBSD-specific
1166 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1167
d82b3862
SM
11682018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1169
1170 * compile/compile-c.h (generate_c_for_variable_locations):
1171 Change reference to pointer.
1172 * compile/compile-c-support.c (compile_program) <compute>:
1173 Likewise.
1174 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1175 (generate_c_for_for_one_variable): Likewise
1176 (generate_c_for_variable_locations): Likewise
1177 * compile/compile-c-types.c (compile_c_instance::convert_type):
1178 Likewise
1179 * compile/compile-cplus-symbols.c (convert_one_symbol):
1180 std::move the scope passed to enter_scope.
1181 * compile/compile-cplus-types.c
1182 (compile_cplus_instance::enter_scope): Make parameter
1183 rvalue-reference.
1184 (compile_cplus_instance::new_scope): Change reference to
1185 pointer.
1186 (compile_cplus_instance::convert_type): Likewise
1187 (compile_cplus_convert_typedef): std::move the scope passed to
1188 enter_scope.
1189 (compile_cplus_convert_struct_or_union): Likewise.
1190 (compile_cplus_convert_enum): Likewise.
1191 (compile_cplus_convert_namespace): Likewise.
1192 * compile/compile-cplus.h (compile_cplus_instance)
1193 <enter_scope>: Make parameter rvalue-reference.
1194 * compile/compile-internal.h (compile_instance)
1195 <get_cached_type>: Likewise
1196 * compile/compile-loc2c.c (push): Likewise
1197 (pushf): Likewise
1198 (unary): Likewise
1199 (binary): Likewise
1200 (print_label): Likewise
1201 (pushf_register_address): Likewise
1202 (pushf_register): Likewise
1203 (do_compile_dwarf_expr_to_c): Likewise
1204 (compile_dwarf_expr_to_c): Likewise
1205 (compile_dwarf_bounds_to_c): Likewise
1206 * compile/compile.c (compile_instance::get_cached_type):
1207 Likewise
1208 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1209 (compile_dwarf_bounds_to_c): Likewise
1210 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1211 (dwarf2_compile_property_to_c): Likewise
1212 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1213 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1214 Likewise
1215
cc5a5ae5
SM
12162018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1217
1218 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1219 * tui/tui-data.c (init_content_element): Don't initialize it.
1220
137be540
SM
12212018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1222
1223 * tui/tui-data.h (struct tui_win_info)
1224 <detail::opaque>: Remove.
1225 * tui/tui-data.c (init_win_info): Remove assignment.
1226
f1628857
TT
12272018-09-05 Tom Tromey <tom@tromey.com>
1228
1229 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1230 -Wformat-nonliteral.
1231 * target-float.c (host_float_ops<T>::to_string)
1232 (host_float_ops<T>::from_string): Use
1233 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1234 * configure: Rebuild.
1235
af39b1c2
SM
12362018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1237
1238 * printcmd.c (printf_c_string): Use
1239 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1240 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1241
081bca4d
TT
12422018-09-05 Tom Tromey <tom@tromey.com>
1243
1244 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1245
e4a62c65
TV
12462018-09-05 Tom de Vries <tdevries@suse.de>
1247
1248 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1249 with resolve_abstract_p == true.
1250 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1251 defaulting to false. Propagate resolve_abstract_p to
1252 dwarf2_fetch_die_loc_sect_off.
1253 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1254 parameter, defaulting to false.
1255 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1256 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1257 parameter.
1258 * dwarf2read.h (struct die_info): Forward-declare.
1259 (die_info_ptr): New typedef.
1260 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1261
2b69821e
JB
12622018-09-05 Joel Brobecker <brobecker@adacore.com>
1263
1264 GDB 8.2 released.
1265
fcc9b044
SDJ
12662018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1267 Pedro Alves <palves@redhat.com>
1268
1269 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1270 "aclocal-m4-deps.mk". Include file here.
1271 $(srcdir)/aclocal.m4: Add "configure.ac".
1272 * gnulib/aclocal-m4-deps.mk: New file.
1273 * gnulib/update-gnulib.sh: Automatically update
1274 "aclocal-m4-deps.mk".
1275
d53d5436
TT
12762018-09-04 Tom Tromey <tom@tromey.com>
1277
1278 * configure: Rebuild.
1279 * configure.ac: Remove multi-ice code.
1280
8dc9fd87
TT
12812018-09-04 Tom Tromey <tom@tromey.com>
1282
1283 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1284 (ada-exp.o): Update.
1285
3322c5d9
TT
12862018-09-04 Tom Tromey <tom@tromey.com>
1287
1288 * Makefile.in (printcmd.o, target-float.o): Remove.
1289 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1290
ba2bf2aa
TT
12912018-09-04 Tom Tromey <tom@tromey.com>
1292
1293 * gnulib/Makefile.in: Remove obsolete comment.
1294 * Makefile.in: Remove obsolete comment.
1295
6c9d681b
AB
12962018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1297
1298 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1299 line with '+'.
1300
78a3b0fa
AB
13012018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1302
1303 * riscv-tdep.c: Add 'prologue-value.h' include.
1304 (struct riscv_unwind_cache): New struct.
1305 (riscv_debug_unwinder): New global.
1306 (riscv_scan_prologue): Update arguments, capture register details
1307 from prologue scan.
1308 (riscv_skip_prologue): Reformat arguments line, move end of
1309 prologue calculation into riscv_scan_prologue.
1310 (riscv_frame_cache): Update return type, create
1311 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1312 details.
1313 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1314 (riscv_frame_prev_register): Use the trad_frame within the
1315 riscv_unwind_cache.
1316 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1317 flag.
1318
23e60e7a
AB
13192018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1320
1321 * trad-frame.h (trad_frame_set_realreg): Declare.
1322 (trad_frame_set_addr): Declare.
1323 * trad-frame.c (trad_frame_set_realreg): Define new function.
1324 (trad_frame_set_addr): Define new function.
1325 (trad_frame_set_reg_realreg): Use new function.
1326 (trad_frame_set_reg_addr): Use new function.
1327
5c889512
KS
13282018-09-01 Keith Seitz <keiths@redhat.com>
1329
1330 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1331 pulongest instead of "%lld".
1332 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1333 ATTRIBUTE_UNUSED.
1334
c8c81635
TT
13352018-08-31 Tom Tromey <tom@tromey.com>
1336
1337 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1338 variant part type.
1339
0c888588
PA
13402018-08-31 Pedro Alves <palves@redhat.com>
1341
1342 * gdbarch.h: Regenerate.
1343
7ea65f08
PA
13442018-08-31 Pedro Alves <palves@redhat.com>
1345
1346 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1347 * target.h (Hardware watchpoint interfaces): Describe
1348 continuable/steppable/non-steppable watchpoints.
1349 * gdbarch.h, gdbarch.c: Regenerate.
1350
7eb65faf
PA
13512018-08-31 Pedro Alves <palves@redhat.com>
1352
1353 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1354 Delete.
1355 * s390-linux-nat.c
1356 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1357 * target.h (target_ops::have_continuable_watchpoint): Delete.
1358 (target_have_continuable_watchpoint): Delete.
1359 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1360 * target-delegates.c: Regenerate.
1361
dab999b1
SDJ
13622018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1363
1364 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1365 the files present in "gnulib/import/m4/".
1366
ff3a05b3
AB
13672018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1368
1369 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1370 c.sw, c.swsp, and c.sdsp.
1371
0b3f9efc
AB
13722018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1373
1374 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1375 (riscv_read_misa_reg): Don't cache value read into inferior data.
1376 (riscv_new_inferior_data): Delete.
1377 (riscv_inferior_data_cleanup): Delete.
1378 (riscv_inferior_data): Delete.
1379 (riscv_invalidate_inferior_data): Delete.
1380 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1381
a0dc02a6
SM
13822018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1383
1384 * compile/compile-cplus-types.c
1385 (compile_cplus_instance::leave_scope): Take the address of scope
1386 object.
1387 (compile_cplus_instance::convert_qualified_base): Compare quals
1388 to 0.
1389
fdad7678
KS
13902018-08-30 Keith Seitz <keiths@redhat.com>
1391
1392 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1393 Use "%s" and host_address_to_string instead of "%p" in printf.
1394
078a0207
KS
13952018-08-29 Keith Seitz <keiths@redhat.com>
1396
1397 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1398 and compile-cplus-types.c.
1399 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1400 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1401 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1402 Declare.
1403 * compile/compile-c-support.c: Include compile-cplus.h.
1404 (load_libcompile): Templatize.
1405 (get_compile_context): "New" function.
1406 (c_get_compile_context): Use get_compile_context.
1407 (cplus_get_compile_context): New function.
1408 (cplus_push_user_expression, cplus_pop_user_expression)
1409 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1410 (cplus_compute_program): Define new structs/functions.
1411 * compile/compile-cplus-symmbols.c: New file.
1412 * compile/compile-cplus-types.c: New file.
1413 * compile/compile-cplus.h: New file.
1414 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1415 Declare.
1416 * compile/compile-object-load.c (get_out_value_type): Use
1417 strncmp_iw when comparing symbol names.
1418 (compile_object_load): Add mst_bss and mst_data.
1419 * compile/compile.c (_initialize_compile): Remove
1420 -Wno-implicit-function-declaration from `compile_args'.
1421 * compile/gcc-cp-plugin.h: New file.
1422 * NEWS: Mention C++ compile support and new debug options.
1423
fcaad03c
KS
14242018-08-29 Keith Seitz <keiths@redhat.com>
1425
1426 * linespec.c (collect_info::add_symbol): Make virtual.
1427 (struct symbol_searcher_collect_info): New struct.
1428 (symbol_searcher::find_all_symbols): New method.
1429 * symtab.h (class symbol_searcher): New class.
1430
7e41c8db
KS
14312018-08-29 Keith Seitz <keiths@redhat.com>
1432
1433 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1434 Change to vector of block_symbol. Update all users.
1435 (struct collect_info) <symbols>: Likewise.
1436 (collect_info::add_symbol): Take block_symbol as argument.
1437 Update all callers.
1438 (decode_compound_collector) <m_symbols>: Change type to vector
1439 of block_symbol. Update all users.
1440 (decode_compound_collector::operator ()): Change parameter type
1441 to block_symbol.
1442 (find_method, find_function_symbols, find_linespec_symbols)
1443 (find_label_symbols_in_block, find_label_symbols): Change symbol
1444 vectors to block_symbol vectors.
1445 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1446 block_symbol.
1447
63e8c3da
KS
14482018-08-29 Keith Seitz <keiths@redhat.com>
1449
1450 * linespec.c (symbolp): Remove typedef and VEC definitions.
1451 (bound_minimal_symbol_d): Likewise.
1452
4dedf84d
KS
14532018-08-29 Keith Seitz <keiths@redhat.com>
1454
1455 * linespec.c (decode_compound_collector::decode_compound_collector):
1456 Remove initialization for `m_symtabs'.
1457 (decode_compound_collector::release_symbols): Change return type
1458 to std::vector. Update all callers.
1459 (class decode_compound_collector) <m_symbols>: Change type to
1460 std::vector.
1461 (lookup_prefix_sym): Change return type to std::vector. Update all
1462 callers.
1463 (compare_symbols): Remove.
1464 (std_compare_symbols): Rename to `compare_symbols'.
1465 (find_method): Change `sym_classes' parameter to std::vector.
1466 Update all callers. Use std::sort to sort sym_classes.
1467 (find_linespec_symbols): Remove cleanup.
1468
c2a031c5
KS
14692018-08-29 Keith Seitz <keiths@redhat.com>
1470
1471 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1472 std::vector. Update all users.
1473 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1474 (struct collect_info) <minimal_symbols>: Likewise.
1475 (compare_msymbols): Return bool. Change parameters to const
1476 bound_minimal_symbol references.
1477 (find_method, find_function_symbols, find_linespec_symbols): Change
1478 `minsyms' parameter to std::vector. Update all callers.
1479
3553eadc
KS
14802018-08-29 Keith Seitz <keiths@redhat.com>
1481
1482 * linespec.c (struct linespec) <label_symbols>: Change type to
1483 std::vector. Update all users.
1484 (find_label_symbols_in_block): Change `result' parameter to
1485 std::vector. Update all callers.
1486 (find_label_symbols): Return std::vector. Update all callers.
1487
7243d011
KS
14882018-08-29 Keith Seitz <keiths@redhat.com>
1489
1490 * linespec.c (struct linespec) <function_symbols>: Change type to
1491 std::vector. Update all users.
1492 (struct collect_info) <function_symbols>: Likewise.
1493 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1494 (std_compare_symbols): New function.
1495 (find_method, find_function_symbols, find_linespec_symbols)
1496 (find_label_symbols_in_block): Change `symbols' parameter to
1497 std::vector. Update all callers.
1498 (find_label_symbols): Likewise for `function_symbols' and
1499 `label_funcs_ret'.
1500
2a908241
KS
15012018-08-29 Keith Seitz <keiths@redhat.com>
1502
1503 * linespec.c (symtab_vector_up): Define.
1504 (struct linespec) <file_symtabs>: Change type to std::vector *.
1505 Update all uses.
1506 (struct collect_info) <file_symtabs>: Likewise.
1507 (collect_symtabs_from_filename): Return symtab_vector_up.
1508 Update all callers.
1509 (decode_objc): Remove cleanup.
1510 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1511 (symtab_collector::release_symtabs): Return symtab_vector_up.
1512 Update all callers.
1513 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1514 Update all users.
1515 (collect_symtabs_from_filename, symtabs_from_filename): Return
1516 symtab_vector_up. Update all callers.
1517
f6c4e3e8
TT
15182018-08-29 Tom Tromey <tom@tromey.com>
1519
1520 * csky-tdep.c (csky_analyze_prologue): Use
1521 core_addr_to_string_nz.
1522
73c13fe6
TT
15232018-08-29 Tom Tromey <tom@tromey.com>
1524
1525 * windows-nat.c (struct xlate_exception) <them>: Change type to
1526 DWORD.
1527 (xlate): Fix formatting. Remove last entry.
1528 (struct xlate_exception, xlate): Comment out.
1529 (windows_nat_target::resume): Use ranged for.
1530
4d3928d7
JW
15312018-08-29 Jim Wilson <jimw@sifive.com>
1532
1533 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1534 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1535 of NT_PRFPREG.
1536 (riscv_linux_nat_target::store_registers): Likewise.
1537
7a6dbc2f
SDJ
15382018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1539
1540 PR gdb/23555
1541 PR gdb/23558
1542 * gnulib/aclocal.m4: Regenerate.
1543 * gnulib/config.in: Regenerate.
1544 * gnulib/configure: Regenerate.
1545 * gnulib/import/Makefile.am: Update.
1546 * gnulib/import/Makefile.in: Update.
1547 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1548 * gnulib/import/_Noreturn.h: ... this.
1549 * gnulib/import/alloca.in.h: Update.
1550 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1551 * gnulib/import/arg-nonnull.h: ... this.
1552 * gnulib/import/assure.h: Update.
1553 * gnulib/import/at-func.c: Update.
1554 * gnulib/import/basename-lgpl.c: Update.
1555 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1556 * gnulib/import/c++defs.h: ... this.
1557 * gnulib/import/canonicalize-lgpl.c: Update.
1558 * gnulib/import/cdefs.h: Update.
1559 * gnulib/import/chdir-long.c: Update.
1560 * gnulib/import/chdir-long.h: Update.
1561 * gnulib/import/cloexec.c: Update.
1562 * gnulib/import/cloexec.h: Update.
1563 * gnulib/import/close.c: Update.
1564 * gnulib/import/closedir.c: Update.
1565 * gnulib/import/config.charset: Update.
1566 * gnulib/import/dirent-private.h: Update.
1567 * gnulib/import/dirent.in.h: Update.
1568 * gnulib/import/dirfd.c: Update.
1569 * gnulib/import/dirname-lgpl.c: Update.
1570 * gnulib/import/dirname.h: Update.
1571 * gnulib/import/dosname.h: Update.
1572 * gnulib/import/dup-safer-flag.c: Update.
1573 * gnulib/import/dup-safer.c: Update.
1574 * gnulib/import/dup.c: Update.
1575 * gnulib/import/dup2.c: Update.
1576 * gnulib/import/errno.in.h: Update.
1577 * gnulib/import/error.c: Update.
1578 * gnulib/import/error.h: Update.
1579 * gnulib/import/exitfail.c: Update.
1580 * gnulib/import/exitfail.h: Update.
1581 * gnulib/import/extra/update-copyright: Update.
1582 * gnulib/import/fchdir.c: Update.
1583 * gnulib/import/fcntl.c: Update.
1584 * gnulib/import/fcntl.in.h: Update.
1585 * gnulib/import/fd-hook.c: Update.
1586 * gnulib/import/fd-hook.h: Update.
1587 * gnulib/import/fd-safer-flag.c: Update.
1588 * gnulib/import/fd-safer.c: Update.
1589 * gnulib/import/fdopendir.c: Update.
1590 * gnulib/import/filename.h: Update.
1591 * gnulib/import/filenamecat-lgpl.c: Update.
1592 * gnulib/import/filenamecat.h: Update.
1593 * gnulib/import/flexmember.h: Update.
1594 * gnulib/import/float+.h: Update.
1595 * gnulib/import/float.c: Update.
1596 * gnulib/import/float.in.h: Update.
1597 * gnulib/import/fnmatch.c: Update.
1598 * gnulib/import/fnmatch.in.h: Update.
1599 * gnulib/import/fnmatch_loop.c: Update.
1600 * gnulib/import/fpucw.h: Update.
1601 * gnulib/import/frexp.c: Update.
1602 * gnulib/import/frexpl.c: Update.
1603 * gnulib/import/fstat.c: Update.
1604 * gnulib/import/fstatat.c: Update.
1605 * gnulib/import/getcwd-lgpl.c: Update.
1606 * gnulib/import/getcwd.c: Update.
1607 * gnulib/import/getdtablesize.c: Update.
1608 * gnulib/import/getlogin_r.c: Update.
1609 * gnulib/import/getprogname.c: Update.
1610 * gnulib/import/getprogname.h: Update.
1611 * gnulib/import/gettext.h: Update.
1612 * gnulib/import/gettimeofday.c: Update.
1613 * gnulib/import/glob-libc.h: Update.
1614 * gnulib/import/glob.c: Update.
1615 * gnulib/import/glob.in.h: Update.
1616 * gnulib/import/glob_internal.h: Update.
1617 * gnulib/import/glob_pattern_p.c: Update.
1618 * gnulib/import/globfree.c: Update.
1619 * gnulib/import/hard-locale.c: Update.
1620 * gnulib/import/hard-locale.h: Update.
1621 * gnulib/import/intprops.h: Update.
1622 * gnulib/import/inttypes.in.h: Update.
1623 * gnulib/import/isnan.c: Update.
1624 * gnulib/import/isnand-nolibm.h: Update.
1625 * gnulib/import/isnand.c: Update.
1626 * gnulib/import/isnanl-nolibm.h: Update.
1627 * gnulib/import/isnanl.c: Update.
1628 * gnulib/import/itold.c: Update.
1629 * gnulib/import/libc-config.h: Update.
1630 * gnulib/import/limits.in.h: Update.
1631 * gnulib/import/localcharset.c: Update.
1632 * gnulib/import/localcharset.h: Update.
1633 * gnulib/import/localtime-buffer.c: Update.
1634 * gnulib/import/localtime-buffer.h: Update.
1635 * gnulib/import/lstat.c: Update.
1636 * gnulib/import/m4/00gnulib.m4: Update.
1637 * gnulib/import/m4/__inline.m4: Update.
1638 * gnulib/import/m4/absolute-header.m4: Update.
1639 * gnulib/import/m4/alloca.m4: Update.
1640 * gnulib/import/m4/builtin-expect.m4: Update.
1641 * gnulib/import/m4/canonicalize.m4: Update.
1642 * gnulib/import/m4/chdir-long.m4: Update.
1643 * gnulib/import/m4/close.m4: Update.
1644 * gnulib/import/m4/closedir.m4: Update.
1645 * gnulib/import/m4/configmake.m4: Update.
1646 * gnulib/import/m4/d-ino.m4: Update.
1647 * gnulib/import/m4/d-type.m4: Update.
1648 * gnulib/import/m4/dirent_h.m4: Update.
1649 * gnulib/import/m4/dirfd.m4: Update.
1650 * gnulib/import/m4/dirname.m4: Update.
1651 * gnulib/import/m4/double-slash-root.m4: Update.
1652 * gnulib/import/m4/dup.m4: Update.
1653 * gnulib/import/m4/dup2.m4: Update.
1654 * gnulib/import/m4/eealloc.m4: Update.
1655 * gnulib/import/m4/environ.m4: Update.
1656 * gnulib/import/m4/errno_h.m4: Update.
1657 * gnulib/import/m4/error.m4: Update.
1658 * gnulib/import/m4/exponentd.m4: Update.
1659 * gnulib/import/m4/exponentl.m4: Update.
1660 * gnulib/import/m4/extensions.m4: Update.
1661 * gnulib/import/m4/extern-inline.m4: Update.
1662 * gnulib/import/m4/fchdir.m4: Update.
1663 * gnulib/import/m4/fcntl-o.m4: Update.
1664 * gnulib/import/m4/fcntl.m4: Update.
1665 * gnulib/import/m4/fcntl_h.m4: Update.
1666 * gnulib/import/m4/fdopendir.m4: Update.
1667 * gnulib/import/m4/filenamecat.m4: Update.
1668 * gnulib/import/m4/flexmember.m4: Update.
1669 * gnulib/import/m4/float_h.m4: Update.
1670 * gnulib/import/m4/fnmatch.m4: Update.
1671 * gnulib/import/m4/fnmatch_h.m4: Update.
1672 * gnulib/import/m4/fpieee.m4: Update.
1673 * gnulib/import/m4/frexp.m4: Update.
1674 * gnulib/import/m4/frexpl.m4: Update.
1675 * gnulib/import/m4/fstat.m4: Update.
1676 * gnulib/import/m4/fstatat.m4: Update.
1677 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1678 * gnulib/import/m4/getcwd-path-max.m4: Update.
1679 * gnulib/import/m4/getcwd.m4: Update.
1680 * gnulib/import/m4/getdtablesize.m4: Update.
1681 * gnulib/import/m4/getlogin.m4: Update.
1682 * gnulib/import/m4/getlogin_r.m4: Update.
1683 * gnulib/import/m4/getpagesize.m4: Update.
1684 * gnulib/import/m4/getprogname.m4: Update.
1685 * gnulib/import/m4/gettimeofday.m4: Update.
1686 * gnulib/import/m4/glibc21.m4: Update.
1687 * gnulib/import/m4/glob.m4: Update.
1688 * gnulib/import/m4/glob_h.m4: Update.
1689 * gnulib/import/m4/gnulib-cache.m4: Update.
1690 * gnulib/import/m4/gnulib-common.m4: Update.
1691 * gnulib/import/m4/gnulib-comp.m4: Update.
1692 * gnulib/import/m4/gnulib-tool.m4: Update.
1693 * gnulib/import/m4/hard-locale.m4: Update.
1694 * gnulib/import/m4/include_next.m4: Update.
1695 * gnulib/import/m4/inttypes-pri.m4: Update.
1696 * gnulib/import/m4/inttypes.m4: Update.
1697 * gnulib/import/m4/isnand.m4: Update.
1698 * gnulib/import/m4/isnanl.m4: Update.
1699 * gnulib/import/m4/largefile.m4: Update.
1700 * gnulib/import/m4/limits-h.m4: Update.
1701 * gnulib/import/m4/localcharset.m4: Update.
1702 * gnulib/import/m4/locale-fr.m4: Update.
1703 * gnulib/import/m4/locale-ja.m4: Update.
1704 * gnulib/import/m4/locale-zh.m4: Update.
1705 * gnulib/import/m4/localtime-buffer.m4: Update.
1706 * gnulib/import/m4/longlong.m4: Update.
1707 * gnulib/import/m4/lstat.m4: Update.
1708 * gnulib/import/m4/malloc.m4: Update.
1709 * gnulib/import/m4/malloca.m4: Update.
1710 * gnulib/import/m4/math_h.m4: Update.
1711 * gnulib/import/m4/mbrtowc.m4: Update.
1712 * gnulib/import/m4/mbsinit.m4: Update.
1713 * gnulib/import/m4/mbsrtowcs.m4: Update.
1714 * gnulib/import/m4/mbstate_t.m4: Update.
1715 * gnulib/import/m4/memchr.m4: Update.
1716 * gnulib/import/m4/memmem.m4: Update.
1717 * gnulib/import/m4/mempcpy.m4: Update.
1718 * gnulib/import/m4/memrchr.m4: Update.
1719 * gnulib/import/m4/mkdir.m4: Update.
1720 * gnulib/import/m4/mkstemp.m4: Update.
1721 * gnulib/import/m4/mmap-anon.m4: Update.
1722 * gnulib/import/m4/mode_t.m4: Update.
1723 * gnulib/import/m4/msvc-inval.m4: Update.
1724 * gnulib/import/m4/msvc-nothrow.m4: Update.
1725 * gnulib/import/m4/multiarch.m4: Update.
1726 * gnulib/import/m4/nocrash.m4: Update.
1727 * gnulib/import/m4/off_t.m4: Update.
1728 * gnulib/import/m4/onceonly.m4: Update.
1729 * gnulib/import/m4/open-cloexec.m4: Update.
1730 * gnulib/import/m4/open.m4: Update.
1731 * gnulib/import/m4/openat.m4: Update.
1732 * gnulib/import/m4/opendir.m4: Update.
1733 * gnulib/import/m4/pathmax.m4: Update.
1734 * gnulib/import/m4/rawmemchr.m4: Update.
1735 * gnulib/import/m4/readdir.m4: Update.
1736 * gnulib/import/m4/readlink.m4: Update.
1737 * gnulib/import/m4/realloc.m4: Update.
1738 * gnulib/import/m4/rename.m4: Update.
1739 * gnulib/import/m4/rewinddir.m4: Update.
1740 * gnulib/import/m4/rmdir.m4: Update.
1741 * gnulib/import/m4/save-cwd.m4: Update.
1742 * gnulib/import/m4/secure_getenv.m4: Update.
1743 * gnulib/import/m4/setenv.m4: Update.
1744 * gnulib/import/m4/signal_h.m4: Update.
1745 * gnulib/import/m4/ssize_t.m4: Update.
1746 * gnulib/import/m4/stat-time.m4: Update.
1747 * gnulib/import/m4/stat.m4: Update.
1748 * gnulib/import/m4/std-gnu11.m4: Update.
1749 * gnulib/import/m4/stdbool.m4: Update.
1750 * gnulib/import/m4/stddef_h.m4: Update.
1751 * gnulib/import/m4/stdint.m4: Update.
1752 * gnulib/import/m4/stdio_h.m4: Update.
1753 * gnulib/import/m4/stdlib_h.m4: Update.
1754 * gnulib/import/m4/strchrnul.m4: Update.
1755 * gnulib/import/m4/strdup.m4: Update.
1756 * gnulib/import/m4/strerror.m4: Update.
1757 * gnulib/import/m4/string_h.m4: Update.
1758 * gnulib/import/m4/strstr.m4: Update.
1759 * gnulib/import/m4/strtok_r.m4: Update.
1760 * gnulib/import/m4/sys_socket_h.m4: Update.
1761 * gnulib/import/m4/sys_stat_h.m4: Update.
1762 * gnulib/import/m4/sys_time_h.m4: Update.
1763 * gnulib/import/m4/sys_types_h.m4: Update.
1764 * gnulib/import/m4/tempname.m4: Update.
1765 * gnulib/import/m4/time_h.m4: Update.
1766 * gnulib/import/m4/unistd-safer.m4: Update.
1767 * gnulib/import/m4/unistd_h.m4: Update.
1768 * gnulib/import/m4/warn-on-use.m4: Update.
1769 * gnulib/import/m4/wchar_h.m4: Update.
1770 * gnulib/import/m4/wchar_t.m4: Update.
1771 * gnulib/import/m4/wctype_h.m4: Update.
1772 * gnulib/import/m4/wint_t.m4: Update.
1773 * gnulib/import/malloc.c: Update.
1774 * gnulib/import/malloc/scratch_buffer.h: Update.
1775 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1776 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1777 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1778 * gnulib/import/malloca.c: Update.
1779 * gnulib/import/malloca.h: Update.
1780 * gnulib/import/malloca.valgrind: Update.
1781 * gnulib/import/math.in.h: Update.
1782 * gnulib/import/mbrtowc.c: Update.
1783 * gnulib/import/mbsinit.c: Update.
1784 * gnulib/import/mbsrtowcs-impl.h: Update.
1785 * gnulib/import/mbsrtowcs-state.c: Update.
1786 * gnulib/import/mbsrtowcs.c: Update.
1787 * gnulib/import/memchr.c: Update.
1788 * gnulib/import/memmem.c: Update.
1789 * gnulib/import/mempcpy.c: Update.
1790 * gnulib/import/memrchr.c: Update.
1791 * gnulib/import/mkdir.c: Update.
1792 * gnulib/import/mkstemp.c: Update.
1793 * gnulib/import/msvc-inval.c: Update.
1794 * gnulib/import/msvc-inval.h: Update.
1795 * gnulib/import/msvc-nothrow.c: Update.
1796 * gnulib/import/msvc-nothrow.h: Update.
1797 * gnulib/import/open.c: Update.
1798 * gnulib/import/openat-die.c: Update.
1799 * gnulib/import/openat-priv.h: Update.
1800 * gnulib/import/openat-proc.c: Update.
1801 * gnulib/import/openat.c: Update.
1802 * gnulib/import/openat.h: Update.
1803 * gnulib/import/opendir.c: Update.
1804 * gnulib/import/pathmax.h: Update.
1805 * gnulib/import/pipe-safer.c: Update.
1806 * gnulib/import/rawmemchr.c: Update.
1807 * gnulib/import/readdir.c: Update.
1808 * gnulib/import/readlink.c: Update.
1809 * gnulib/import/realloc.c: Update.
1810 * gnulib/import/ref-add.sin: Update.
1811 * gnulib/import/ref-del.sin: Update.
1812 * gnulib/import/rename.c: Update.
1813 * gnulib/import/rewinddir.c: Update.
1814 * gnulib/import/rmdir.c: Update.
1815 * gnulib/import/same-inode.h: Update.
1816 * gnulib/import/save-cwd.c: Update.
1817 * gnulib/import/save-cwd.h: Update.
1818 * gnulib/import/scratch_buffer.h: Update.
1819 * gnulib/import/secure_getenv.c: Update.
1820 * gnulib/import/setenv.c: Update.
1821 * gnulib/import/signal.in.h: Update.
1822 * gnulib/import/stat-time.c: Update.
1823 * gnulib/import/stat-time.h: Update.
1824 * gnulib/import/stat-w32.c: Update.
1825 * gnulib/import/stat-w32.h: Update.
1826 * gnulib/import/stat.c: Update.
1827 * gnulib/import/stdbool.in.h: Update.
1828 * gnulib/import/stddef.in.h: Update.
1829 * gnulib/import/stdint.in.h: Update.
1830 * gnulib/import/stdio.in.h: Update.
1831 * gnulib/import/stdlib.in.h: Update.
1832 * gnulib/import/str-two-way.h: Update.
1833 * gnulib/import/strchrnul.c: Update.
1834 * gnulib/import/strdup.c: Update.
1835 * gnulib/import/streq.h: Update.
1836 * gnulib/import/strerror-override.c: Update.
1837 * gnulib/import/strerror-override.h: Update.
1838 * gnulib/import/strerror.c: Update.
1839 * gnulib/import/string.in.h: Update.
1840 * gnulib/import/stripslash.c: Update.
1841 * gnulib/import/strnlen1.c: Update.
1842 * gnulib/import/strnlen1.h: Update.
1843 * gnulib/import/strstr.c: Update.
1844 * gnulib/import/strtok_r.c: Update.
1845 * gnulib/import/sys_stat.in.h: Update.
1846 * gnulib/import/sys_time.in.h: Update.
1847 * gnulib/import/sys_types.in.h: Update.
1848 * gnulib/import/tempname.c: Update.
1849 * gnulib/import/tempname.h: Update.
1850 * gnulib/import/time.in.h: Update.
1851 * gnulib/import/unistd--.h: Update.
1852 * gnulib/import/unistd-safer.h: Update.
1853 * gnulib/import/unistd.in.h: Update.
1854 * gnulib/import/unsetenv.c: Update.
1855 * gnulib/import/verify.h: Update.
1856 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1857 * gnulib/import/wchar.in.h: Update.
1858 * gnulib/import/wctype.in.h: Update.
1859 * gnulib/import/xalloc-oversized.h: Update.
1860 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1861 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1862
b0f492b9
GB
18632018-08-16 Gary Benson <gbenson@redhat.com>
1864
1865 PR gdb/13000:
1866 * gdb/main.c (captured_main_1): Exit with nonzero status
1867 in batch mode if the last command to be executed failed.
1868 * NEWS: Mention the above.
1869
2362e7f7
SM
18702018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1871
1872 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1873 end of warning message.
1874
4f4aedeb
AH
18752018-08-29 Alan Hayward <alan.hayward@arm.com>
1876
1877 PR gdb/22943:
1878 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1879 (aarch64_extract_return_value): Use
1880 aapcs_is_vfp_call_or_return_candidate.
1881 (aarch64_return_in_memory): Likewise.
1882 (aarch64_store_return_value): Likewise.
1883
0e745c60
AH
18842018-08-29 Alan Hayward <alan.hayward@arm.com>
1885
1886 * aarch64-tdep.c
1887 (aapcs_is_vfp_call_or_return_candidate): Make static
1888 (pass_in_v_or_stack): Remove function.
1889 (pass_in_v_vfp_candidate): New function.
1890 (aarch64_push_dummy_call): Check for float register candidates.
1891
ea92689a
AH
18922018-08-29 Alan Hayward <alan.hayward@arm.com>
1893
1894 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1895 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1896 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1897
ad202fcc
SM
18982018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1899
1900 PR build/23399
1901 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1902 (struct ipa_sym_addresses): Rename to...
1903 (struct ipa_sym_addresses_common): ... this.
1904 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1905
5fe3f3e4
TT
19062018-08-28 Tom Tromey <tom@tromey.com>
1907
1908 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1909 (token_fifo): Now a std::vector.
1910 (yylex, c_parse): Update.
1911 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1912 (token_fifo): Now a std::vector.
1913 (yylex, d_parse): Update.
1914 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1915 (token_fifo): Now a std::vector.
1916 (yylex, go_parse): Update.
1917
858d8004
SM
19182018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1919
1920 * parser-defs.h (struct type_stack) <elements>: Change type to
1921 std::vector<union type_stack_elt>.
1922 <depth, size>: Remove.
1923 * parse.c (parse_exp_in_context_1): Adjust.
1924 (type_stack_reserve): Remove.
1925 (check_type_stack_depth): Remove.
1926 (insert_into_type_stack): Adjust to std::vector.
1927 (insert_type): Likewise.
1928 (push_type): Likewise.
1929 (push_type_int): Likewise.
1930 (insert_type_address_space): Likewise.
1931 (pop_type): Likewise.
1932 (pop_type_int): Likewise.
1933 (pop_typelist): Likewise.
1934 (pop_type_stack): Likewise.
1935 (append_type_stack): Likewise.
1936 (push_type_stack): Likewise.
1937 (get_type_stack): Likewise.
1938 (type_stack_cleanup): Likewise.
1939 (push_typelist): Likewise.
1940 (follow_types): Likewise.
1941 (_initialize_parse): Likewise.
1942
416a69af
HAQ
19432018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1944
1945 * NEWS: Mention csky target.
1946
9d24df82
HAQ
19472018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1948 Hafiz Abid Qadeer <abidh@codesourcery.com>
1949 Don Breazeal <donb@codesourcery.com>
1950
1951 * csky-linux-tdep.c: New file.
1952 * csky-tdep.c: Likewise.
1953 * csky-tdep.h: Likewise.
1954 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1955 csky-tdep.o.
1956 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1957 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1958 * configure.tgt: Add csky support.
1959
3bf9c013
JV
19602018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1961
1962 * python/py-framefilter.c (py_print_frame): Print frame architecture
1963 when printing on an MI output.
1964
d3d8724a
TT
19652018-08-27 Tom Tromey <tom@tromey.com>
1966
1967 PR build/23087:
1968 * configure: Rebuild.
1969 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1970
1885053b
TT
19712018-08-27 Tom Tromey <tom@tromey.com>
1972
1973 * aarch64-linux-tdep.c
1974 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1975 casts to int.
1976
8406672e
TT
19772018-08-27 Tom Tromey <tom@tromey.com>
1978
1979 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1980 unsigned.
1981 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1982 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1983 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1984 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1985 unsigned.
1986
ec40cf90
TT
19872018-08-27 Tom Tromey <tom@tromey.com>
1988
1989 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1990 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1991
7bc02706
TT
19922018-08-27 Tom Tromey <tom@tromey.com>
1993
1994 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1995 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1996 ULONGEST_MAX.
1997 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1998 ULONGEST_MAX.
1999 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2000 ULONGEST_MAX.
2001 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2002 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2003 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2004 ULONGEST_MAX.
2005 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2006 (ppc64_linux_sigaction_tramp_frame)
2007 (ppc32_linux_sighandler_tramp_frame)
2008 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2009 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2010 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2011 * mn10300-linux-tdep.c (am33_linux_sigframe)
2012 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2013 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2014 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2015 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2016 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2017 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2018 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2019 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2020 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2021 * microblaze-linux-tdep.c
2022 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2023 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2024 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2025 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2026 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2027 * common/common-types.h (ULONGEST_MAX): New define.
2028 (CORE_ADDR_MAX): Fix formatting.
2029 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2030 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2031 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2032 (arm_linux_rt_sigreturn_tramp_frame)
2033 (arm_eabi_linux_sigreturn_tramp_frame)
2034 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2035 (thumb2_eabi_linux_sigreturn_tramp_frame)
2036 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2037 (arm_linux_restart_syscall_tramp_frame)
2038 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2039 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2040 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2041 ULONGEST_MAX.
2042 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2043
70ab8ccd
TT
20442018-08-27 Tom Tromey <tom@tromey.com>
2045
2046 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2047 CORE_ADDR_MAX.
2048 * mips-tdep.c (mips_deal_with_atomic_sequence)
2049 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2050 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2051 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2052 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2053 CORE_ADDR_MAX.
2054 * aarch64-tdep.c (aarch64_software_single_step): Use
2055 CORE_ADDR_MAX.
2056
896a7aa6
TT
20572018-08-27 Tom Tromey <tom@tromey.com>
2058
2059 * linespec.c (complete_linespec_component): Add cast to "char".
2060 * completer.c (completion_tracker::build_completion_result): Add
2061 cast to "char".
2062
dd33d41d
SM
20632018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2064
2065 * solist.h (struct solist, struct target_so_ops): Fix
2066 indentation.
2067
c645cda4
SM
20682018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2069
2070 * ada-tasks.c (ada_task_info_s): Remove typedef.
2071 (DEF_VEC_O(ada_task_info_s)): Remove.
2072 (struct ada_tasks_inferior_data): Initialize fields.
2073 <task_list>: Make an std::vector.
2074 (get_ada_tasks_inferior_data): Allocate with new.
2075 (ada_get_task_number): Adjust.
2076 (get_task_number_from_id): Likewise.
2077 (valid_task_id): Likewise.
2078 (ada_get_task_info_from_ptid): Likewise.
2079 (iterate_over_live_ada_tasks): Likewise.
2080 (add_ada_task): Likewise.
2081 (read_known_tasks): Likewise.
2082 (ada_build_task_list): Likewise.
2083 (print_ada_task_info): Likewise.
2084 (info_task): Likewise.
2085 (task_command_1): Likewise.
2086
39e7af3e
SM
20872018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2088
2089 * ada-lang.c (add_angle_brackets): Return std::string.
2090
bbbbbcee
SM
20912018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2092
2093 * python/py-threadevent.c (py_get_event_thread): Initialize
2094 pythread.
2095
d98fc15b
PA
20962018-08-24 Pedro Alves <palves@redhat.com>
2097
2098 * python/py-bpevent.c (create_breakpoint_event_object): Use
2099 copy-initialization.
2100 * python/py-continueevent.c (emit_continue_event): Use
2101 copy-initialization.
2102 * python/py-exitedevent.c (create_exited_event_object): Return a
2103 gdbpy_ref<>.
2104 (emit_exited_event): Use copy-initialization.
2105 * python/py-inferior.c (python_new_inferior)
2106 (python_inferior_deleted, add_thread_object): Use
2107 copy-initialization.
2108 * python/py-infevents.c (create_inferior_call_event_object)
2109 (create_register_changed_event_object)
2110 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2111 (emit_inferior_call_event, emit_memory_changed_event)
2112 (emit_register_changed_event): Use copy-initialization.
2113 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2114 Return a gdbpy_ref<>.
2115 (emit_new_objfile_event): Use copy-initialization.
2116 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2117 (emit_clear_objfiles_event): Use copy-initialization.
2118 * python/py-signalevent.c (create_signal_event_object): Use
2119 copy-initialization.
2120 * python/py-threadevent.c (create_thread_event_object): Use
2121 copy-initialization.
2122
da3c8738
PA
21232018-08-24 Pedro Alves <palves@redhat.com>
2124 Simon Marchi <simon.marchi@ericsson.com>
2125
2126 PR gdb/23379
2127 * python/py-continueevent.c: Include "gdbthread.h".
2128 (create_continue_event_object): Add intro comment. Add 'ptid'
2129 parameter. Use it to find thread to pass to
2130 create_thread_event_object.
2131 (emit_continue_event): Pass PTID down to
2132 create_continue_event_object.
2133 * python/py-event.h (py_get_event_thread): Declare.
2134 (create_thread_event_object): Remove default from 'thread'
2135 parameter.
2136 * python/py-stopevent.c (create_stop_event_object): Use
2137 py_get_event_thread.
2138 * python/py-threadevent.c (get_event_thread): Rename to ...
2139 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2140 and use it to find the thread.
2141 (create_thread_event_object): Assert that THREAD isn't null.
2142 Don't find the event thread here.
2143
26457a9c
KB
21442018-08-23 Kevin Buettner <kevinb@redhat.com>
2145
2146 * block.h (blockrange, blockranges): New struct declarations.
2147 (struct block): Add new field named `ranges'.
2148 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2149 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2150 macros for accessing ranges in struct block.
2151 (make_blockranges): New declaration.
2152 block.c (make_blockranges): New function.
2d5f09ec
KB
2153 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2154 for block.
fc811edd
KB
2155 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2156 * blockframe.c (cache_pc_function_block): New static global.
2157 (clear_pc_function_cache): Clear cache_pc_function_block.
2158 (find_pc_partial_function): Move comment to symtab.h. Add
2159 support for non-contiguous blocks.
e9480230
KB
2160 * cli/cli-cmds.c (block.h): Include.
2161 (print_disassembly): Handle printing of non-contiguous blocks.
2162 (disassemble_current_function): Likewise.
2163 (disassemble_command): Likewise.
26457a9c 2164
2b1ffcfd
KB
2165 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2166 BLOCK_START.
2167 * blockframe.c (get_pc_function_start): Likewise.
2168 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2169 (gcc_symbol_address): Likewise.
2170 * compile/compile-object-run.c (compile_object_run): Likewise.
2171 * compile/compile.c (get_expr_block_and_pc): Likewise.
2172 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2173 (func_addr_to_tail_call_list): Likewise.
2174 * findvar.c (default_read_var_value): Likewise.
2175 * inline-frame.c (inline_frame_this_id): Likewise.
2176 (skip-inline_frames): Likewise.
2177 * infcmd.c (until_next_command): Likewise.
2178 * linespec.c (convert_linespec_to_sals): Likewise.
2179 * parse.c (parse_exp_in_context_1): Likewise.
2180 * printcmd.c (build_address_symbolic): likewise.
2181 (info_address_command): Likewise.
2182 symtab.c (find_function_start_sal): Likewise.
2183 (skip_prologue_sal): Likewise.
2184 (find_function_alias_target): Likewise.
2185 (find_gnu_ifunc): Likewise.
2186 * stack.c (find_frame_funname): Likewise.
2187 * symtab.c (fixup_symbol_section): Likewise.
2188 (find_function_start_sal): Likewise.
2189 (skip_prologue_sal): Likewsie.
2190 (find_function_alias_target): Likewise.
2191 (find_gnu_ifunc): Likewise.
2192 * tracepoint.c (info_scope_command): Likewise.
2193 * value.c (value_fn_field): Likewise.
2194
9644dc3a
KB
2195 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2196 in place of find_pc_partial_function.
2197 * blockframe.c (find_function_entry_range_from_pc): New function.
2198 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2199 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2200 for each range in a block.
2201
2202
12a0d0f6
XR
22032018-08-23 Xavier Roirand <roirand@adacore.com>
2204
2205 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2206 incrementation.
2207
d1012b8e
SM
22082018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2209
2210 * solib-svr4.c (read_program_headers_from_bfd): Return
2211 gdb::optional<gdb::byte_vector>.
2212 (svr4_exec_displacement): Adjust.
2213
17658d46
SM
22142018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2215
2216 * solib-svr4.c (read_program_header): Return
2217 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2218 (find_program_interpreter): Return
2219 gdb::optional<gdb::byte_vector>.
2220 (scan_dyntag_auxv): Adjust.
2221 (enable_break): Adjust.
2222 (svr4_exec_displacement): Adjust.
2223
ae739fe7
SM
22242018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2225
2226 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2227 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2228
467dc1e2
SM
22292018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2230
2231 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2232 string_vprintf.
2233 * guile/scm-utils.c (gdbscm_printf): Likewise.
2234 * serial.c (serial_printf): Likewise.
2235 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2236
6d52907e
JV
22372018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2238
2239 * stack.c (print_frame): Print frame architecture when printing on
2240 an MI output.
2241 * NEWS: Mention new "arch" attribute in frame output.
2242
9758a8f8
AH
22432018-08-21 Alan Hayward <alan.hayward@arm.com>
2244
2245 * arch/aarch64.h (aarch64_regnum): Update comment.
2246
1461bdac
AH
22472018-08-21 Alan Hayward <alan.hayward@arm.com>
2248
2249 * NEWS: Add SVE to 8.2 section.
2250
4895f384
PA
22512018-08-21 Pedro Alves <palves@redhat.com>
2252
2253 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2254 out from gdbscm_parse_function_args.
2255 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2256 gdbscm_parse_function_args_1.
2257
a4497d2f
SM
22582018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2259
2260 PR gdb/17816
2261 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2262 operator.
2263
c44deb73
SM
22642018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2265
2266 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2267
be2d111a
MS
22682018-08-19 Michael Spang <spang@google.com>
2269
2270 PR gdb/11786
2271 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2272 for PT_TLS segments.
2273
a6b786da
KB
22742018-08-18 Kevin Buettner <kevinb@redhat.com>
2275
2276 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2277 dwarf_variable_value.
2278 * dwarf2-frame.c (class dwarf_expr_executor):
2279 Add override for dwarf_variable_value.
2280 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2281 (class symbol_needs_eval_context): Likewise.
2282 (indirect_synthetic_pointer): Add forward declaration.
2283 (sect_variable_value): New function.
2284 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2285 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2286 for DW_OP_GNU_variable_value.
2287
89fbedf3
TT
22882018-08-16 Tom Tromey <tom@tromey.com>
2289
2290 * top.c (read_command_file): Update.
2291 (command_line_input): Remove "repeat" argument.
2292 * ada-lang.c (get_selections): Update.
2293 * linespec.c (decode_line_2): Update.
2294 * defs.h (command_line_input): Remove argument.
2295 * cli/cli-script.c (read_next_line): Update.
2296 * python/py-gdb-readline.c: Update.
2297
12582533
TT
22982018-08-17 Tom Tromey <tom@tromey.com>
2299
2300 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2301 command_line_input.
2302
49514353
TT
23032018-08-15 Tom Tromey <tom@tromey.com>
2304
2305 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2306
26fb3983
JV
23072018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2308
2309 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2310 If used, use find_pc_partial_function to find address range
2311 to disassemble.
2312 * mi/mi-main.c (mi_cmd_list_features): Report
2313 "data-disassemble-a-option" feature.
2314 * NEWS: Mention new -data-disassemble option -a.
2315
a97b53dd
TT
23162018-08-13 Tom Tromey <tom@tromey.com>
2317
2318 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2319
0c76e06d
AH
23202018-08-13 Alan Hayward <alan.hayward@arm.com>
2321
2322 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2323 (aarch64_linux_collect_sve_regset): Likewise.
2324 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2325 * regcache.h (regcache_map_entry_size): New function.
2326
b7fd65b9
AH
23272018-08-13 Alan Hayward <alan.hayward@arm.com>
2328
2329 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2330 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2331 (SVE_HEADER_VL_LENGTH): Likewise.
2332 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2333 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2334 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2335 (SVE_HEADER_SIZE_OFFSET): Likewise.
2336 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2337 (SVE_HEADER_VL_OFFSET): Likewise.
2338 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2339 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2340 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2341 (SVE_HEADER_SIZE): Likewise.
2342 (aarch64_linux_core_read_vq): Add function.
2343 (aarch64_linux_core_read_description): Check for SVE section.
2344
a616bb94
AH
23452018-08-13 Alan Hayward <alan.hayward@arm.com>
2346
2347 * aarch64-fbsd-tdep.c
2348 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2349 collect_size.
2350 * aarch64-linux-tdep.c
2351 (aarch64_linux_iterate_over_regset_sections): Likewise.
2352 * alpha-linux-tdep.c
2353 (alpha_linux_iterate_over_regset_sections):
2354 * alpha-nbsd-tdep.c
2355 (alphanbsd_iterate_over_regset_sections): Likewise.
2356 * amd64-fbsd-tdep.c
2357 (amd64fbsd_iterate_over_regset_sections): Likewise.
2358 * amd64-linux-tdep.c
2359 (amd64_linux_iterate_over_regset_sections): Likewise.
2360 * arm-bsd-tdep.c
2361 (armbsd_iterate_over_regset_sections): Likewise.
2362 * arm-fbsd-tdep.c
2363 (arm_fbsd_iterate_over_regset_sections): Likewise.
2364 * arm-linux-tdep.c
2365 (arm_linux_iterate_over_regset_sections): Likewise.
2366 * corelow.c (get_core_registers_cb): Likewise.
2367 (core_target::fetch_registers): Likewise.
2368 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2369 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2370 * gdbarch.h (void): Regenerate.
2371 * gdbarch.sh: Add supply_size and collect_size.
2372 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2373 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2374 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2375 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2376 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2377 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2378 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2379 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2380 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2381 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2382 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2383 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2384 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2385 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2386 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2387 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2388 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2389 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2390 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2391 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2392 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2393 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2394 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2395 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2396 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2397 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2398 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2399 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2400 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2401 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2402
a9925d4f
SM
24032018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2404
2405 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2406 with string_printf.
2407
ad3a68e9
KS
24082018-08-10 Keith Seitz <keiths@redhat.com>
2409
2410 * compile/compile-c-support.c (add_code_header, add_code_footer):
2411 Move into policy class.
2412 (c_push_user_expression, pop_user_expression_nop)
2413 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2414 (compile_program): New host class.
2415 (c_compile_program): New typedef.
2416 (c_compute_porgram): Use c_compile_program.
2417
0cfbf430
KS
24182018-08-10 Keith Seitz <keiths@redhat.com>
2419
2420 * compile/compile-internal.h (compile_instance::~compile_instance):
2421 Remove calls to htab_delete.
2422 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2423 * compile.c (compile_instance::compile_instance): Initialize
2424 htab unique pointers.
2425 (compile_instance::get_cached_type, compile_instance::insert_type)
2426 (compile_instance::error_symbol_once): Update for unique_ptr.
2427
946d3d10
KS
24282018-08-10 Keith Seitz <keiths@redhat.com>
2429
2430 * compile/compile-c-symbols.c (struct symbol_error)
2431 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2432 (compile_instance::insert_symbol_error)
2433 (compile_instance::error_symbol_once): Move to ...
2434 * compile/compile.c: ... here.
2435
9cdfd9a2
KS
24362018-08-10 Keith Seitz <keiths@redhat.com>
2437
2438 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2439 instead of `new_compile_instance'.
2440 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2441 Update description.
2442 If the symbol error map is not initialized, create it.
2443 (generate_c_for_for_one_symbol): Do not check/initialize
2444 the symbol error map.
2445 * compile/compile-c-types.c (compile_c_instance): Make a class.
2446 Update all callers.
2447 (compile_instance::compile_instance): Initialize the type cache.
2448 (get_cached_type): New function.
2449 (insert_type): Update description.
2450 (compile_c_instance::m_default_cflags): Define.
2451 (convert_type): Update description. Use get_cached_type.
2452 (delete_instance): Moved to destructor.
2453 (new_compile_instance): Moved to constructor.
2454 * compile/compile-c.h (compile_c_instance): Make class inheriting
2455 from compile_instance.
2456 <base>: Remove field.
2457 <type_map, symbol_err_map>: Move to base class.
2458 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2459 * compile/compile-internal.h (compile_instance): Make class.
2460 <type_map_t, symbol_err_map_t>: Define.
2461 <fe>: Rename to `m_gcc_fe'.
2462 <scope, block, gcc_target_options>: Add `m_' prefix.
2463 <m_type_map, m_symbol_err_map>: New fields, moved from
2464 compile_c_instance.
2465 <destroy>: Remove.
2466 (convert_type, new_compile_instance): Remove.
2467 * compile/compile.c (cleanup_compile_instance): Remove.
2468 (compile_to_object): Use unique_ptr to eliminate cleanups.
2469 (compile_instance::set_print_callback, compile_instance::version)
2470 (compile_instance::set_verbose)
2471 (compile_instance::set_driver_filename)
2472 (compile_instance::set_triplet_regexp)
2473 (compile_instance::set_arguments)
2474 (compile_instance::set_source_file)
2475 (compile_instance::compile): Define.
2476
18cdc6d8
KS
24772018-08-10 Keith Seitz <keiths@redhat.com>
2478
2479 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2480 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2481 gcc-c-fe.def to define C plugin.
2482 (delete_instance): Delete `c_plugin'.
2483 (new_compile_instance): Initialize `c_plugin'.
2484 * compile/compile-c.h: Include gcc_c_plugin.h.
2485 (struct compile_c_instance) <c_plugin>: New member.
2486 * gcc-c-plugin.h: New file.
2487 Update all callers with API change.
2488
b7dc48b4
KS
24892018-08-10 Keith Seitz <keiths@redhat.com>
2490
2491 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2492 (HFILES_NO_SRCDIR): ... to here.
2493 Add compile-internal.h and compile-c.h.
2494 * compile/compile-c-support.c: Include compile-c.h.
2495 * compile/compile-c-symbols.c: Include compile-c.h.
2496 (generate_c_for_variable_locations): Update comment.
2497 * compile/compile-c-types.c: Include compile-c.h.
2498 * compile/compile-c.h: New file -- moved C language declarations
2499 from other files here.
2500 * compile/compile-internal.h: Do not include hashtab.h or
2501 common/enum-flags.h.
2502 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2503 (gcc_convert_symbol, gcc_symbol_address)
2504 (generate_c_for_variable_locations, c_get_mode_for_size)
2505 (c_get_range_decl_name): Definitions moved to compile-c.h.
2506 * compile/compile-loc2c.c: Include compile-c.h.
2507
6f36b6d2
KS
25082018-08-10 Keith Seitz <keiths@redhat.com>
2509
2510 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2511 (c_symbol_substitution_name): ... this.
2512 Update all callers.
2513
bd923e51
KS
25142018-08-10 Keith Seitz <keiths@redhat.com>
2515
2516 * compile/compile-c-support.c (c_compute_program): Use
2517 unique_xmalloc_ptr to eliminate cleanup.
2518 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2519 Return a unique_xmalloc_ptr and eliminate cleanup.
2520 * compile/compile-internal.h (generate_c_for_variable_locations):
2521 Return unique_xmalloc_ptr and update description.
2522
dbd534fe
AH
25232018-08-10 Alan Hayward <alan.hayward@arm.com>
2524
2525 * corelow.c (core_target::get_core_register_section): Rename
2526 min_size to section_min_size.
2527
90ad3654
JW
25282018-08-09 Jim Wilson <jimw@sifive.com>
2529
52a187f8
JW
2530 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2531 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2532 * NEWS: Mention new GNU/Linux RISC-V target.
2533 * configure.host: Add riscv*-*-linux*.
2534 * configure.nat: Add riscv*.
2535 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 2536 * riscv-linux-nat.c: New file.
90ad3654
JW
2537 * riscv-linux-tdep.c: New file.
2538
aff4e175
AB
25392018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2540
2541 * infrun.c (resume): Make static, add forward declaration.
2542 (proceed): Update header comment.
2543 * infrun.h (resume): Delete declaration.
2544
06ab9219
TT
25452018-08-09 Tom Tromey <tom@tromey.com>
2546
2547 * riscv-tdep.h: Minor formatting fixes.
2548
83c8d318
SM
25492018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2550
2551 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2552 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2553 (test_mkdir_recursive): Likewise.
2554 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2555
5ff2bbae
AB
25562018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2557
2558 * valarith.c (value_subscripted_rvalue): If an array is not in
2559 memory, and we don't know the upper bound, then we can't know that
2560 the requested element exists or not.
2561
fdbac7d8
SM
25622018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2563
2564 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2565 (target_options_to_string): Add comment.
2566
83202f7a
TT
25672018-08-08 Tom Tromey <tom@tromey.com>
2568
2569 * unittests/scoped_mmap-selftests.c: Check result of "write".
2570
411baa47
JW
25712018-08-08 Jim Wilson <jimw@sifive.com>
2572
5c720ed8
JW
2573 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2574 (decode_register_index_short): New.
2575 (decode_j_type_insn, decode_cj_type_insn): New.
2576 (decode_b_type_insn, decode_cb_type_insn): New.
2577 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2578 local xlen. Check xlen when decoding ambiguous compressed insns. In
2579 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2580 is_c_sw_insn instead of is_sw_insn.
2581 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2582 (riscv_software_single_step): New.
2583 * riscv-tdep.h (riscv_software_single_step): Declare.
2584
411baa47
JW
2585 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2586 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2587
9d4a934c
AB
25882018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2589
2590 PR gdb/18050:
2591 * target.c (dispose_inferior): Don't dispose of inferiors that are
2592 already killed.
2593
ff36536c
SN
25942018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2595
2596 * remote.c (remote_target::download_tracepoint): Change char* to
2597 const char*.
2598
09ce46f2
SM
25992018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2600
2601 * target.h (target_options_to_string): Return an std::string.
2602 * target.c (str_comma_list_concat_elem): Return void, use
2603 std::string.
2604 (do_option): Likewise.
2605 (target_options_to_string): Return an std::string.
2606 * linux-nat.c (linux_nat_target::wait): Adjust.
2607 * target-debug.h (target_debug_print_options): Adjust.
2608
9c612964
TT
26092018-08-07 Tom Tromey <tom@tromey.com>
2610
2611 * Makefile.in (CPPFLAGS): New variable.
2612 (INTERNAL_CPPFLAGS): Use it.
2613
7d11235d
SM
26142018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2615
2616 * NEWS: Mention the index cache.
2617
87d6a7aa
SM
26182018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2619
2620 * common/pathstuff.h (get_standard_cache_dir): New.
2621 * common/pathstuff.c (get_standard_cache_dir): New.
2622 * build-id.h (build_id_to_string): New.
2623 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2624 DEBUG_STR_SUFFIX): Move to here.
2625 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2626 DEBUG_STR_SUFFIX): Move from there.
2627 (write_psymtabs_to_index): Make non-static, add basename
2628 parameter. Write to temporary files, rename when done.
2629 (save_gdb_index_command): Adjust call to
2630 write_psymtabs_to_index.
2631 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2632 field.
2633 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2634 (get_gdb_index_contents_from_cache): New.
2635 (get_gdb_index_contents_from_cache_dwz): New.
2636 (dwarf2_initialize_objfile): Read index from cache.
2637 (dwarf2_build_psymtabs): Save to index.
2638 * dwarf-index-cache.h: New file.
2639 * dwarf-index-cache.c: New file.
2640 * dwarf-index-write.h: New file.
2641
8a99096f
SM
26422018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2643
2644 * gnulib/aclocal.m4: Re-generate.
2645 * gnulib/config.in: Re-generate.
2646 * gnulib/configure: Re-generate.
2647 * gnulib/import/Makefile.am: Re-generate.
2648 * gnulib/import/Makefile.in: Re-generate.
2649 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2650 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2651 * gnulib/import/m4/mkdir.m4: New file.
2652 * gnulib/import/mkdir.c: New file.
2653 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2654 module.
2655
5c831bb1
SM
26562018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2657
2658 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2659 * common/scoped_mmap.c: New file.
2660 * common/scoped_mmap.h (destroy): New method.
2661 (~scoped_mmap, reset): Use destroy.
2662 (scoped_mmap): New move constructor.
2663 (mmap_file): New declaration.
2664 * unittests/scoped_mmap-selftests.c (test_normal,
2665 test_invalid_filename, run_tests): New functions.
2666 (_initialize_scoped_mmap_selftests): Register selftest.
2667
4485a1c1
SM
26682018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2669
2670 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2671 (read_gdb_index_from_buffer): ... this. Remove section
2672 parameter, add buffer parameter.
2673 (get_gdb_index_contents_ftype,
2674 get_gdb_index_contents_dwz_ftype): New typedefs.
2675 (dwarf2_read_gdb_index): Add callback parameters to get the
2676 index contents.
2677 (get_gdb_index_contents_from_section): New.
2678 (dwarf2_initialize_objfile): Update call to
2679 dwarf2_read_gdb_index.
2680
528e1572
SM
26812018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2682
2683 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2684 (gdb_open_cloexec): Likewise.
2685 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2686 (commandline_from_pid): Likewise.
2687 (linux_xfer_osdata_threads): Likewise.
2688 (linux_xfer_osdata_fds): Likewise.
2689 * ada-lang.c (is_package_name): Likewise.
2690 * auxv.c (procfs_xfer_auxv): Likewise.
2691 * breakpoint.c (print_one_breakpoint_location): Use
2692 uiout::field_fmt.
2693 (print_one_catch_solib): Use string_printf.
2694 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2695 (add_pe_forwarded_sym): Likewise.
2696 * dwarf2read.c (create_type_unit_group): Likewise.
2697 (build_error_marker_type): Likewise.
2698 * infcall.c (get_function_name): Likewise.
2699 * valprint.c (print_converted_chars_to_obstack): Likewise.
2700 * xtensa-tdep.c (xtensa_register_type): Likewise.
2701
a7f25a84
SM
27022018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2703
2704 * remote.c (remote_target::download_tracepoint): Fix format
2705 string errors.
2706
296956be
PFC
27072018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2708
2709 * tracefile.c: Include common/byte-vector.h.
2710 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2711 with trace_regblock_size if needed. Update uses of buf.
2712
a04b9d62
PFC
27132018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2714
2715 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2716 std::vector<unsigned char>.
2717 * tracepoint.c (collection_list::collection_list): Remove
2718 m_regs_mask initializer from initializer list. Resize
2719 m_regs_mask using the largest remote register number.
2720 (collection_list::add_remote_register): Remove size check on
2721 m_regs_mask. Use at to access element.
2722 (collection_list::stringify): Change type of temp_buf to
2723 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2724 stringify the register mask. Use pack_hex_byte for the register
2725 mask.
2726
4277c4b8
PFC
27272018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2728
2729 * tracepoint.h (class collection_list) <add_register>: Remove.
2730 <add_remote_register, add_ax_registers, add_local_register>:
2731 Declare.
2732 <add_memrange>: Add scope parameter.
2733 * tracepoint.c (encode_actions_1): Likewise.
2734 (collection_list::add_register): Rename to ...
2735 (collection_list::add_remote_register): ... this. Update
2736 comment.
2737 (collection_list::add_ax_registers, add_local_register): New
2738 methods.
2739 (collection_list::add_memrange): Add scope parameter. Call
2740 add_local_register instead of add_register.
2741 (finalize_tracepoint_aexpr): New function.
2742 (collection_list::collect_symbol): Update calls to add_memrange.
2743 Call add_local_register instead of add_register. Call
2744 add_ax_registers. Call finalize_tracepoint_aexpr.
2745 (encode_actions_1): Get remote regnos for $reg action. Call
2746 add_remote_register, add_ax_registers, and add_local_register.
2747 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2748 (validate_actionline): Call finalize_tracepoint_aexpr.
2749
3df3a985
PFC
27502018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2751
2752 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2753 Replace array buf with gdb::char_vector buf, of size
2754 get_remote_packet_size (). Replace references to buf and
2755 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2756 and xsnprintf with snprintf. Raise errors if the buffer is too
2757 small.
2758
aa6f3694
PFC
27592018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2760
2761 * remote.c (remote_target::download_tracepoint): Fix the has_more
2762 predicate in the QTDP action list iteration.
2763
05abfc39
PFC
27642018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2765
2766 * remote.c (remote_target::download_tracepoint): Fix indentation
2767 in for block.
2768
821a2682
RO
27692018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2770
2771 * proc-api.c (_initialize_proc_api): Remove c, unused.
2772 * procfs.c (procfs_init_inferior): Remove signals, unused.
2773 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2774 unused.
2775
95347337
AB
27762018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2777 Andrew Burgess <andrew.burgess@embecosm.com>
2778
2779 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2780 'W_STOPCODE (0)' as this could be ambiguous.
2781
425699f5
SDJ
27822018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2783
2784 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2785 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2786 "ai_socktype").
2787
3e1d3d8c
TT
27882018-08-02 Tom Tromey <tom@tromey.com>
2789
2790 PR symtab/16842.
2791 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2792 symbols.
2793 (process_structure_scope): Likewise.
2794
15843549
XR
27952018-08-02 Xavier Roirand <roirand@adacore.com>
2796
2797 PR gdb/22629:
2798 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2799 kill inferior.
2800
b5bddbbb
TT
28012018-08-02 Tom Tromey <tom@tromey.com>
2802
2803 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2804 (darwin_suspend_inferior, darwin_resume_inferior)
2805 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2806 (darwin_check_new_threads): Check result of get_darwin_inferior.
2807
f61cfa07
JB
28082018-07-31 Joel Brobecker <brobecker@adacore.com>
2809
2810 GDB 8.1.1 released.
2811
5abe0f0c
JV
28122018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2813
2814 * varobj.c (varobj_get_path_expr_parent): Report an error if
2815 parent is a dynamic varobj.
2816
472fa5ee
SM
28172018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2818
2819 * gnulib/aclocal.m4: Re-generate.
2820 * gnulib/config.in: Re-generate.
2821 * gnulib/configure: Re-generate.
2822 * gnulib/import/Makefile.in: Re-generate.
2823 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2824 * gnulib/import/m4/onceonly.m4: Re-generate.
2825
1c28969e
SM
28262018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2827
2828 * target-descriptions.c (struct xml_test_tdesc): New.
2829 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2830 (record_xml_tdesc): Update.
2831 (maintenance_check_xml_descriptions): Update.
2832 * target-descriptions.h (record_xml_tdesc): Update comment.
2833
c8f2dc0d
AB
28342018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2835
2836 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2837 checking array bounds are defined.
2838
463c08d1
TT
28392018-07-30 Tom Tromey <tom@tromey.com>
2840
2841 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2842 irreflexivity violation.
2843
dba7455e
TT
28442018-07-30 Tom Tromey <tom@tromey.com>
2845
2846 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2847 * value.c (unpack_long): Remove lint code.
2848 * valops.c (value_ind): Remove lint code.
2849 * valarith.c (value_x_binop, value_x_unop, value_equal)
2850 (value_pos): Remove lint code.
2851
37cc0cae
TV
28522018-07-28 Tom de Vries <tdevries@suse.de>
2853
2854 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2855 with undefined upper bound as <optimized out>.
2856
129eb0f1
SDJ
28572018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2858
2859 * gcore.in: Rename variable "name" to "prefix". Expand
2860 "usage" text.
2861
6af79d7b
JT
28622018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2863
2864 * windows-nat.c (windows_nat_target::create_inferior): Update to
2865 call close() in global namespace.
2866
79748972
TT
28672018-07-26 Tom Tromey <tom@tromey.com>
2868
2869 * dwarf-index-write.c (add_address_entry): Don't add objfile
2870 offsets.
2871 * dbxread.c (find_stab_function): Rename from
2872 find_stab_function_addr. Return a bound_minimal_symbol.
2873 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2874 Don't add objfile offsets.
2875 (end_psymtab): Use raw_text_low, raw_text_high,
2876 MSYMBOL_VALUE_RAW_ADDRESS.
2877 (read_ofile_symtab): Update.
2878 (process_one_symbol): Update.
2879 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2880 offsets.
2881 (dw2_relocate): Remove.
2882 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2883 searching addrmap.
2884 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2885 Update.
2886 (process_psymtab_comp_unit_reader, add_partial_symbol)
2887 (add_partial_subprogram, dwarf2_ranges_read): Update.
2888 (load_partial_dies): Update.
2889 (add_address_entry): Don't add objfile offsets.
2890 (dwarf2_build_include_psymtabs): Update.
2891 (create_addrmap_from_aranges): Don't add objfile offsets.
2892 (dw2_find_pc_sect_compunit_symtab): Update.
2893 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2894 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2895 Update.
2896 (parse_partial_symbols): Don't add objfile offsets. Use
2897 raw_text_low, raw_text_high. Update.
2898 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2899 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2900 or call 'relocate' quick function. Clear psymbol_map.
2901 * psympriv.h (struct partial_symbol) <address>: Add section
2902 offset.
2903 <set_unrelocated_address>: Rename from set_address.
2904 <raw_text_low, raw_text_high>: New methods.
2905 <text_low, text_high>: Add objfile parameter.
2906 (add_psymbol_to_bcache): Add 'section' parameter. Call
2907 set_unrelocated_address.
2908 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2909 (find_pc_psymbol): Update.
2910 (fixup_psymbol_section, relocate_psymtabs): Remove.
2911 (dump_psymtab, psym_functions): Update.
2912 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2913 parameter.
2914 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2915 (start_psymtab_common): Update.
2916 * symfile-debug.c (debug_qf_relocate): Remove.
2917 (debug_sym_quick_functions): Update.
2918 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2919 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2920 Update.
2921
52948f01
TT
29222018-07-26 Tom Tromey <tromey@redhat.com>
2923
2924 * dbxread.c (end_psymtab): Use text_high_valid and
2925 text_low_valid.
2926 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2927 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2928 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2929 Update comment.
2930 <text_low_valid, text_high_valid>: New fields.
2931 <set_text_low, set_text_high>: Update.
2932 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2933
4ae976d1
TT
29342018-07-26 Tom Tromey <tom@tromey.com>
2935
2936 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2937 Update.
2938 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2939 textlow and texthigh fields.
2940 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2941 Update.
2942 * mdebugread.c (parse_lines, parse_partial_symbols)
2943 (psymtab_to_symtab_1): Update.
2944 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2945 Rename fields. Update comment. Now private.
2946 <text_low, text_high, set_text_low, set_text_high>: New methods.
2947 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2948 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2949 (start_psymtab_common, maintenance_info_psymtabs)
2950 (maintenance_check_psymtabs): Update.
2951 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2952 texthigh fields.
2953 (scan_xcoff_symtab): Update.
2954
02e9e7f7
TT
29552018-07-26 Tom Tromey <tromey@redhat.com>
2956
2957 * psympriv.h (struct partial_symbol) <unrelocated_address,
2958 address, set_address>: New methods.
2959 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2960 (fixup_psymbol_section, relocate_psymtabs): Update.
2961 (print_partial_symbols): Add 'objfile' parameter. Update.
2962 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2963 Update.
2964
8a6d4234
TT
29652018-07-26 Tom Tromey <tom@tromey.com>
2966
2967 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2968 (debug_names::write_psymbols): Update.
2969 * psympriv.h (struct partial_symbol): Derive from
2970 general_symbol_info.
2971 <obj_section>: New method.
2972 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2973 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2974 (find_pc_sect_psymbol, fixup_psymbol_section)
2975 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2976 (print_partial_symbols, recursively_search_psymtabs)
2977 (compare_psymbols, psymbol_hash, psymbol_compare)
2978 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2979 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2980
08994e1d
TT
29812018-07-26 Tom Tromey <tromey@redhat.com>
2982
2983 * dbxread.c (end_psymtab): Remove dead code.
2984
3c3bb058
AB
29852018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2986
2987 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2988 DWARF unwinders are disabled.
2989 * dwarf2-frame.c: Add dwarf2read.h include.
2990 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2991 disabled.
2992 (dwarf2_frame_unwinders_enabled_p): Define.
2993 (show_dwarf_unwinders_enabled_p): New function.
2994 (_initialize_dwarf2_frame): Register switch to control DWARF
2995 unwinder use.
2996 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2997 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2998 (show_dwarf_cmdlist): Remove static keyword.
2999 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3000 (show_dwarf_cmdlist): Declare.
3001 * NEWS: Document new feature.
3002
9e7f3bbb
TV
30032018-07-26 Tom de Vries <tdevries@suse.de>
3004
3005 PR breakpoints/23366
3006 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3007
506f5c41
TV
30082018-07-26 Tom de Vries <tdevries@suse.de>
3009
3010 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3011 DW_AT_count can't be translated to a dynamic prop.
3012
16f808ec
TV
30132018-07-25 Tom de Vries <tdevries@suse.de>
3014
3015 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3016 try/catch.
3017
d7154a8d
JV
30182018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3019
3020 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3021
a45389f6
JB
30222018-07-25 Joel Brobecker <brobecker@adacore.com>
3023
3024 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3025
380618d6
KS
30262018-07-24 Keith Seitz <keiths@redhat.comt
3027
3028 PR symtab/23010
3029 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3030 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3031 instead of add_symbol_to_list.
3032 (read_file_scope): Call prepare_one_comp_unit before reading
3033 any other DIEs.
3034
4b17aefe
SM
30352018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3036
3037 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3038
29d17e47
TT
30392018-07-24 Tom Tromey <tom@tromey.com>
3040
3041 * utils.c (malloc, realloc, free): Don't declare.
3042 * configure, config.in: Rebuild.
3043 * configure.ac: Don't check for declarations of free, malloc, or
3044 realloc.
3045
cf4088a9
SM
30462018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3047
3048 * aarch64-linux-nat.c
3049 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3050 variable.
3051 * arm-linux-nat.c (fetch_regs): Likewise.
3052 (store_regs): Likewise.
3053 (fetch_vfp_regs): Likewise.
3054 (store_vfp_regs): Likewise.
3055 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3056 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3057 (arm_linux_nat_target::insert_watchpoint): Likewise.
3058 (arm_linux_nat_target::remove_watchpoint): Likewise.
3059 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3060 Likewise.
3061 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3062 Likewise.
3063 * ppc-linux-nat.c (fetch_register): Likewise.
3064 (fetch_all_gp_regs): Likewise.
3065 (fetch_ppc_registers): Likewise.
3066 (store_all_gp_regs): Likewise.
3067 (store_ppc_registers): Likewise.
3068 (hwdebug_insert_point): Likewise.
3069 (can_use_watchpoint_cond_accel): Likewise.
3070 * remote-sim.c (gdb_os_write_stdout): Likewise.
3071
a0de763e
TT
30722018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3073 Tom Tromey <tom@tromey.com>
3074
3075 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3076 test for it.
3077 * configure: Rebuild.
3078
3b20124b
TT
30792018-07-22 Tom Tromey <tom@tromey.com>
3080
3081 * regformats/regdat.sh: Define xmltarget_${name} inside
3082 #ifndef IN_PROCESS_AGENT.
3083
8c8807f4
TT
30842018-07-22 Tom Tromey <tom@tromey.com>
3085
3086 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3087
c486b610
TT
30882018-07-22 Tom Tromey <tom@tromey.com>
3089
3090 * symfile.c (reread_symbols): Notify iter, not objfile.
3091
494f80a9
TT
30922018-07-22 Tom Tromey <tom@tromey.com>
3093
3094 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3095 Use arch_ops.
3096 (ravenscar_thread_target::prepare_to_store): Likewise.
3097
c51f6a54
TT
30982018-07-22 Tom Tromey <tom@tromey.com>
3099
3100 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3101 unused variable. Call value_fetch_lazy when needed.
3102 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3103 Remove unused variable. Call value_fetch_lazy when needed.
3104
374fd1fd
TT
31052018-07-22 Tom Tromey <tom@tromey.com>
3106
3107 * m32c-tdep.c (mark_dma): Return void.
3108 (make_regs): Remove unused declarations.
3109
d5e9a511
TT
31102018-07-22 Tom Tromey <tom@tromey.com>
3111
3112 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3113 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3114 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3115 bkscm_get_valid_block_smob_arg_unsafe for effect.
3116
996d693a
TT
31172018-07-22 Tom Tromey <tom@tromey.com>
3118
3119 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3120 value_type.
3121
15766370
TT
31222018-07-22 Tom Tromey <tom@tromey.com>
3123
3124 * windows-nat.c (saved_context): Conditionally define.
3125 * remote.c (remote_target::remote_btrace_maybe_reopen):
3126 Conditionally declare "warned".
3127 * inflow.c (sigquit_ours): Conditionally define.
3128 (new_tty): Move "tty" declaration inside #if.
3129 * guile/guile.c (guile_datadir): Conditionally define.
3130 * charset.c (set_be_le_names): Move some declarations inside #if.
3131 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3132 #if.
3133 (parse_xml_btrace_conf): Likewise.
3134
f4e80e13
TT
31352018-07-22 Tom Tromey <tom@tromey.com>
3136
3137 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3138
8d49165d
TT
31392018-07-22 Tom Tromey <tom@tromey.com>
3140
3141 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3142 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3143 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3144 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3145 * stack.c (frame_apply_level_command): Remove unused variable.
3146 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3147 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3148 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3149 unused variable.
3150 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3151 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3152 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3153 variable.
3154 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3155 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3156 variable.
3157 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3158 Remove unused variable.
3159 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3160 variable.
3161 * common/tdesc.c (print_xml_feature::visit): Remove unused
3162 variable.
3163 * compile/compile-object-load.c (store_regs): Remove unused
3164 variables.
3165 * complaints.c (clear_complaints): Remove unused variable.
3166 * corelow.c (core_target_open): Remove unused variable.
3167 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3168 variable.
3169 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3170 variable.
3171 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3172 variable.
3173 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3174 variable.
3175 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3176 variable.
3177 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3178 variable.
3179 * ia64-tdep.c (examine_prologue): Remove unused variable.
3180 * infcall.c (run_inferior_call): Remove unused variable.
3181 * inferior.c (exit_inferior): Remove unused variable.
3182 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3183 * linespec.c (decode_line_2): Remove unused variable.
3184 * linux-nat.c (super_close): Remove.
3185 * linux-tdep.c (linux_info_proc): Remove unused variable.
3186 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3187 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3188 Remove unused variable.
3189 * parse.c (find_minsym_type_and_address): Remove unused variable.
3190 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3191 variable.
3192 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3193 variable.
3194 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3195 variables.
3196 * record-btrace.c (record_btrace_target::store_registers): Remove
3197 unused variable.
3198 (cmd_show_record_btrace_cpu): Remove unused variable.
3199 * riscv-tdep.c (riscv_register_reggroup_p)
3200 (riscv_push_dummy_call, riscv_return_value): Remove unused
3201 variable.
3202 * rust-exp.y (literal): Remove unused variable.
3203 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3204 unused variable.
3205 <STRUCTOP_ANONYMOUS>: Likewise.
3206 * s390-linux-tdep.c (s390_linux_init_abi_31)
3207 (s390_linux_init_abi_64): Remove unused variable.
3208 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3209 (file_select_thread, net_windows_open, _initialize_ser_windows):
3210 Remove unused variables.
3211 * symtab.c (find_pc_sect_line): Remove unused variable.
3212 * target-memory.c (compute_garbled_blocks): Remove unused
3213 variable.
3214 (target_write_memory_blocks): Remove unused variable.
3215 * target.c (target_stack::unpush): Remove unused variables.
3216 * tracepoint.c (start_tracing, all_tracepoint_actions)
3217 (merge_uploaded_trace_state_variables)
3218 (print_one_static_tracepoint_marker): Remove unused variable.
3219 * unittests/basic_string_view/element_access/char/1.cc (test01):
3220 Remove unused variable.
3221 * windows-nat.c (windows_continue, windows_add_all_dlls)
3222 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3223 Remove unused variables.
3224
17cbafdb
SM
32252018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3226
3227 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3228 attr_profile in HAVE_ELF.
3229 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3230 HAVE_ELF.
3231
0ee6c332
SM
32322018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3233
3234 * frame.c (frame_register_unwind): Change parameter name.
3235 (frame_unwind_register): Likewise.
3236 (frame_unwind_register_value): Likewise.
3237 (frame_unwind_register_signed): Likewise.
3238 (frame_unwind_register_unsigned): Likewise.
3239 * frame.h (frame_register_unwind): Likewise.
3240 (frame_unwind_register): Likewise.
3241 (frame_unwind_register_value): Likewise.
3242 (frame_unwind_register_signed): Likewise.
3243 (frame_unwind_register_unsigned): Likewise.
3244 (frame_unwind_arch): Likewise.
3245
e2e31f10
MR
32462018-07-20 Maciej W. Rozycki <macro@mips.com>
3247
3248 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3249 ISA maintenance.
3250
2d389915
MR
32512018-07-20 Maciej W. Rozycki <macro@mips.com>
3252
3253 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3254 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3255 hand.
3256
cbb09508
KS
32572018-07-20 Keith Seitz <keiths@redhat.com>
3258
3259 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3260 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3261 m_compunit_symtab, m_language>: Add "m_" prefix.
3262 Update all uses.
3263 * buildsym.c: Update all uses.
3264
bfe2e011
TT
32652018-07-20 Tom Tromey <tom@tromey.com>
3266
3267 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3268 * buildsym.h (record_line_ftype): Remove typedef.
3269
0e6f3061
TT
32702018-07-20 Tom Tromey <tom@tromey.com>
3271
3272 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3273 (end_expandable_symtab): Likewise.
3274 (end_symtab_get_static_block): Likewise.
3275 (end_symtab_from_static_block): Likewise.
3276 * buildsym-legacy.c (augment_type_symtab): Remove.
3277 (end_expandable_symtab): Remove.
3278 (end_symtab_get_static_block): Remove.
3279 (end_symtab_from_static_block): Remove.
3280
804d2729
TT
32812018-07-20 Tom Tromey <tom@tromey.com>
3282
3283 * dwarf2read.c: Include buildsym.h.
3284 (struct dwarf2_cu) <builder>: New method.
3285 (fixup_go_packaging): Update.
3286 (process_full_comp_unit, process_full_type_unit): Update. Don't
3287 use scoped_free_pendings.
3288 (using_directives): Add "cu" parameter, remove "language".
3289 (read_import_statement, setup_type_unit_groups, )
3290 (read_func_scope, read_lexical_block_scope)
3291 (dwarf2_record_block_ranges, read_namespace): Update.
3292 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3293 (lnp_state_machine::handle_end_sequence): Update.
3294 (class lnp_state_machine) <m_cu>: New member.
3295 <m_record_line_callback>: Remove.
3296 <m_currently_recording_lines>: New member.
3297 (lnp_state_machine::handle_set_file): Update.
3298 (noop_record_line): Remove.
3299 (dwarf_record_line_p): Add cu parameter.
3300 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3301 (lnp_state_machine::record_line)
3302 (lnp_state_machine::lnp_state_machine)
3303 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3304 (dwarf_decode_lines): Update.
3305 (dwarf2_start_subfile): Add cu parameter.
3306 (dwarf2_start_symtab, new_symbol): Update.
3307 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3308 Remove dwarf2_per_objfile parameter.
3309 (dwarf_decode_macros): Update.
3310
80e649fc
TT
33112018-07-20 Tom Tromey <tom@tromey.com>
3312
3313 * stabsread.c (define_symbol): Update.
3314 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3315 * dwarf2read.c (new_symbol): Update.
3316 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3317 * cp-namespace.c: Include buildsym.h.
3318 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3319 * buildsym-legacy.c (get_buildsym_compunit): New function.
3320
0baae8db
TT
33212018-07-20 Tom Tromey <tom@tromey.com>
3322
3323 * xcoffread.c: Include buildsym-legacy.h.
3324 * windows-nat.c: Include buildsym-legacy.h.
3325 * stabsread.c: Include buildsym-legacy.h.
3326 * mdebugread.c: Include buildsym-legacy.h.
3327 * buildsym-legacy.h: New file.
3328 * buildsym-legacy.c: New file, from buildsym.c.
3329 * go32-nat.c: Include buildsym-legacy.h.
3330 * dwarf2read.c: Include buildsym-legacy.h.
3331 * dbxread.c: Include buildsym-legacy.h.
3332 * cp-namespace.c: Include buildsym-legacy.h.
3333 * coffread.c: Include buildsym-legacy.h.
3334 * buildsym.h: Move some contents to buildsym-legacy.h.
3335 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3336 buildsym-legacy.c.
3337 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3338
ab209f6f
TT
33392018-07-20 Tom Tromey <tom@tromey.com>
3340
3341 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3342 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3343 (buildsym_compunit::buildsym_compunit)
3344 (buildsym_compunit::~buildsym_compunit)
3345 (buildsym_compunit::get_macro_table): Define.
3346
74c72eac
TT
33472018-07-20 Tom Tromey <tom@tromey.com>
3348
3349 * buildsym.c (reset_symtab_globals): Remove.
3350 (buildsym_compunit::end_symtab_from_static_block): Update.
3351 (buildsym_compunit::augment_type_symtab): Update.
3352 (end_symtab_from_static_block): Call free_buildsym_compunit.
3353 (augment_type_symtab, end_symtab, end_expandable_symtab):
3354 Likewise.
3355
da6580e5
TT
33562018-07-20 Tom Tromey <tom@tromey.com>
3357
3358 * arch-utils.c: Do not include buildsym.h.
3359 * mipsread.c: Do not include buildsym.h.
3360 * machoread.c: Do not include buildsym.h.
3361 * elfread.c: Do not include buildsym.h.
3362
4a2125f5
TT
33632018-07-20 Tom Tromey <tom@tromey.com>
3364
3365 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3366 initialization.
3367 (buildsym_compunit): Add new constructor.
3368 (struct buildsym_compunit) <get_last_source_file, finish_block,
3369 record_block_range, start_subfile, patch_subfile_names,
3370 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3371 set_last_source_start_addr, get_last_source_start_addr,
3372 get_local_using_directives, set_local_using_directives,
3373 get_global_using_directives, outermost_context_p,
3374 get_current_context_stack, get_context_stack_depth,
3375 get_current_subfile, get_local_symbols, get_file_symbols,
3376 get_global_symbols, record_debugformat, record_producer,
3377 push_context, pop_context, end_symtab_get_static_block,
3378 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3379 New public methods.
3380 <record_pending_block, finish_block_internal, make_blockvector,
3381 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3382 private methods.
3383 Update all users.
3384
33852018-05-22 Tom Tromey <tom@tromey.com>
3386
3387 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3388 parameter.
3389 (finish_block_internal): Update.
3390
6b213a47
TT
33912018-07-20 Tom Tromey <tom@tromey.com>
3392
3393 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3394 parameter.
3395 (finish_block_internal): Update.
3396
b80a981d
TT
33972018-07-20 Tom Tromey <tom@tromey.com>
3398
3399 * buildsym.h (EXTERN): Don't define or undef.
3400 * buildsym.c (EXTERN): Don't define.
3401
ddb70602
TT
34022018-07-20 Tom Tromey <tom@tromey.com>
3403
3404 * buildsym.c: Remove TODO comment.
3405
b37dd3bc
TT
34062018-07-20 Tom Tromey <tom@tromey.com>
3407
3408 * coffread.c (coff_symtab_read): Update.
3409 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3410 (xcoff_new_init): Update.
3411 * mipsread.c (mipscoff_new_init): Update.
3412 * mdebugread.c (mdebug_build_psymtabs): Update.
3413 * elfread.c (elf_new_init): Update.
3414 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3415 Update.
3416 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3417 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3418 (stabsect_build_psymtabs): Update.
3419 * buildsym.h (buildsym_init): Don't declare.
3420 * buildsym.c: Update comment.
3421 (prepare_for_building): Remove.
3422 (start_symtab, restart_symtab): Update.
3423 (reset_symtab_globals): Update comment.
3424 (buildsym_init): Remove.
3425
e148f09d
TT
34262018-07-20 Tom Tromey <tom@tromey.com>
3427
3428 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3429 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3430 (read_enum_type, common_block_start, common_block_end)
3431 (cleanup_undefined_types_1, finish_global_stabs): Update.
3432 * mdebugread.c (psymtab_to_symtab_1): Update.
3433 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3434 (read_lexical_block_scope, new_symbol): Update.
3435 * dbxread.c (process_one_symbol): Update.
3436 * coffread.c (coff_symtab_read, process_coff_symbol)
3437 (coff_read_enum_type): Update.
3438 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3439 declare.
3440 (get_local_symbols, get_file_symbols, get_global_symbols): New
3441 functions.
3442 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3443 m_global_symbols.
3444 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3445 (~scoped_free_pendings): Update.
3446 (finish_block, prepare_for_building, reset_symtab_globals)
3447 (end_symtab_get_static_block, end_symtab_with_blockvector)
3448 (augment_type_symtab, push_context): Update.
3449 (get_local_symbols, get_file_symbols, get_global_symbols): New
3450 functions.
3451 (buildsym_init): Update.
3452
93b8bea4
TT
34532018-07-20 Tom Tromey <tom@tromey.com>
3454
3455 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3456 (process_full_type_unit): Likewise.
3457 (dwarf2_start_symtab): Set list_in_scope.
3458
f62f6af5
TT
34592018-07-20 Tom Tromey <tom@tromey.com>
3460
3461 * dwarf2read.c (process_psymtab_comp_unit_reader)
3462 (build_type_psymtabs_reader): Do not set list_in_scope.
3463
1d376700
TT
34642018-07-20 Tom Tromey <tom@tromey.com>
3465
3466 * buildsym.c (free_pendings): Remove.
3467 (add_symbol_to_list, scoped_free_pendings)
3468 (finish_block_internal, buildsym_init): Update.
3469
c233e9c6
TT
34702018-07-20 Tom Tromey <tom@tromey.com>
3471
3472 * xcoffread.c (read_xcoff_symtab): Update.
3473 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3474 Update.
3475 * dbxread.c (process_one_symbol): Update.
3476 * coffread.c (coff_symtab_read): Update.
3477 * buildsym.h (finish_block): Update.
3478 * buildsym.c (finish_block): Remove "listhead" argument.
3479 (end_symtab_get_static_block): Update.
3480
5ac04550
TT
34812018-07-20 Tom Tromey <tom@tromey.com>
3482
3483 * buildsym.h (class scoped_free_pendings): Remove constructor.
3484 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3485 method.
3486 <m_pending_block_obstack, m_pending_blocks>: New members.
3487 (pending_block_obstack, pending_blocks): Remove.
3488 (scoped_free_pendings::scoped_free_pendings): Default.
3489 (~scoped_free_pendings): Update.
3490 (free_pending_blocks): Remove.
3491 (finish_block_internal, record_pending_block, make_blockvector)
3492 (end_symtab_get_static_block, augment_type_symtab, push_context)
3493 (buildsym_init): Update.
3494
7ea05a7b
TT
34952018-07-20 Tom Tromey <tom@tromey.com>
3496
3497 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3498 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3499 members.
3500 (pending_addrmap, pending_addrmap_obstack)
3501 (pending_addrmap_interesting): Remove.
3502 (scoped_free_pendings, record_block_range, make_blockvector)
3503 (prepare_for_building, reset_symtab_globals, buildsym_init):
3504 Update.
3505
3c65e5b3
TT
35062018-07-20 Tom Tromey <tom@tromey.com>
3507
3508 * xcoffread.c (process_linenos): Update.
3509 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3510 * mdebugread.c (psymtab_to_symtab_1): Update.
3511 * dwarf2read.c (setup_type_unit_groups)
3512 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3513 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3514 * dbxread.c (process_one_symbol): Update.
3515 * coffread.c (coff_symtab_read, enter_linenos)
3516 (process_coff_symbol): Update.
3517 * buildsym.h (current_subfile): Don't declare.
3518 (get_current_subfile): Declare.
3519 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3520 member.
3521 (start_subfile, free_buildsym_compunit, push_subfile)
3522 (prepare_for_building, start_symtab): Update.
3523 (get_current_subfile): New function.
3524
a60f3166
TT
35252018-07-20 Tom Tromey <tom@tromey.com>
3526
3527 * coffread.c (coff_symtab_read): Update.
3528 * xcoffread.c (read_xcoff_symtab): Update.
3529 * dwarf2read.c (new_symbol): Update.
3530 (read_func_scope, read_lexical_block_scope): Update.
3531 * dbxread.c (process_one_symbol): Update.
3532 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3533 (outermost_context_p): Remove macro.
3534 (outermost_context_p, get_current_context_stack)
3535 (get_context_stack_depth): Declare.
3536 (pop_context): Return struct context_stack.
3537 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3538 member.
3539 (context_stack_size): Remove.
3540 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3541 (prepare_for_building, end_symtab_get_static_block)
3542 (augment_type_symtab, push_context): Update.
3543 (pop_context): Return struct context_stack.
3544 (outermost_context_p, get_current_context_stack)
3545 (get_context_stack_depth): New functions.
3546 (buildsym_init): Update.
3547
56ba65a0
TT
35482018-07-20 Tom Tromey <tom@tromey.com>
3549
3550 * rust-exp.y: Now a pure parser. Update all rules.
3551 (%union): Move earlier.
3552 (current_parser, work_obstack): Remove globals.
3553 (rust_parser, ~rust_parser): Update.
3554 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3555 lex_character, lex_number, lex_string, lex_identifier,
3556 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3557 convert_name, convert_params_to_expression,
3558 convert_ast_to_expression, ast_basic_type, ast_operation,
3559 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3560 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3561 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3562 ast_array_type, ast_slice_type, ast_reference_type,
3563 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3564 (rust_parse): Update.
3565 (rustyyerror, rustyylex): Add parser parameter.
3566 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3567 (rust_lex_stringish_test, rust_lex_test_sequence)
3568 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3569 (rust_lex_test_push_back, rust_lex_tests): Update.
3570
4c693332
PA
35712018-07-19 Pedro Alves <palves@redhat.com>
3572
3573 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3574 gdb::unique_xmalloc_ptr.
3575 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3576 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3577 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3578 copy-initialization.
3579 * guile/scm-pretty-print.c (ppscm_print_children): Use
3580 gdb::unique_xmalloc_ptr instead of cleanups.
3581 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3582 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3583 gdb::unique_xmalloc_ptr.
3584 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3585 Adjust to use gdb::unique_xmalloc_ptr.
3586 * guile/scm-utils.c (extract_arg): Adjust.
3587 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3588 gdb::unique_xmalloc_ptr instead of a cleanup.
3589
4581dc82
TT
35902018-07-19 Tom Tromey <tom@tromey.com>
3591
3592 * utils.c (do_value_free_to_mark)
3593 (make_cleanup_value_free_to_mark): Remove.
3594 * utils.h (make_cleanup_value_free_to_mark): Remove.
3595
43cc6c3a
PA
35962018-07-19 Pedro Alves <palves@redhat.com>
3597
3598 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3599 forwarding reference.
3600
3a5f2a48
PA
36012018-07-18 Pedro Alves <palves@redhat.com>
3602
3603 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3604 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3605 cleanup.
3606
557e56be
PA
36072018-07-18 Pedro Alves <palves@redhat.com>
3608
3609 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3610 exceptions.
3611 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3612 (gdbscm_wrap): New.
3613 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3614 directly instead of a cleanup.
3615 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3616 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3617 (vlscm_binop_gdbthrow): New, factored out from ...
3618 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3619 (vlscm_rich_compare): Use gdbscm_wrap.
3620 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3621 instead of a cleanup.
3622 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3623 cleanup.
3624 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3625 Use xfree directly instead of a cleanup.
3626 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3627 Adjust to use gdbscm_wrap and scoped_value_mark.
3628 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3629 (gdbscm_value_address, gdbscm_value_dereference)
3630 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3631 scoped_value_mark.
3632 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3633 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3634 scoped_value_mark.
3635 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3636 gdbscm_wrap and scoped_value_mark.
3637 (gdbscm_value_to_string): Use xfree directly instead of a
3638 cleanup. Move 'buffer' unique_ptr to TRY scope.
3639 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3640 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3641 scoped_value_mark.
3642 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3643 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3644 scoped_value_mark.
3645 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3646 gdbscm_wrap.
3647
42dc7699
TV
36482018-07-18 Tom de Vries <tdevries@suse.de>
3649
3650 * findvar.c (default_read_var_value): Also resolve dynamic type for
3651 LOC_OPTIMIZED_OUT vars.
3652
6592ceed
MR
36532018-07-18 Maciej W. Rozycki <macro@mips.com>
3654
3655 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3656 decoding.
3657
c6c6149a
TT
36582018-07-17 Tom Tromey <tom@tromey.com>
3659
3660 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3661 (compute_enum_list, pascm_set_param_value_x)
3662 (gdbscm_parameter_value): Update.
3663 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3664 (gdbscm_scm_to_host_string): Update.
3665 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3666 Update.
3667 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3668 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3669 * guile/scm-string.c (gdbscm_scm_to_string): Return
3670 unique_xmalloc_ptr.
3671 (gdbscm_scm_to_host_string): Likewise.
3672
a1a31cb8
TT
36732018-07-17 Tom Tromey <tom@tromey.com>
3674
3675 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3676 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3677 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3678 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3679 unique_xmalloc_ptr.
3680
15bf3002
TT
36812018-07-17 Tom Tromey <tom@tromey.com>
3682
3683 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3684 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3685 Update.
3686 * guile/scm-cmd.c (cmdscm_function): Update.
3687 * guile/scm-pretty-print.c
3688 (ppscm_print_exception_unless_memory_error): Update.
3689 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3690 Return unique_xmalloc_ptr.
3691
7eb1a66c
TT
36922018-07-17 Tom Tromey <tom@tromey.com>
3693
3694 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3695 Use string_printf.
3696
ce73f310
JW
36972018-07-17 Jim Wilson <jimw@sifive.com>
3698
27724bad
JW
3699 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3700 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3701 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3702 unecessary braces after EF_RISCV_RVC test. Delete call to
3703 set_gdbarch_decr_pc_after_break.
3704
ce73f310
JW
3705 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3706 RISCV_LAST_FP_REGNUM + 1.
3707 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3708
056dec39
TT
37092018-07-17 Tom Tromey <tom@tromey.com>
3710
3711 * configure.ac: Remove --disable-gdbcli.
3712 * configure: Rebuild.
3713 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3714 (SUBDIR_CLI_CFLAGS): Remove.
3715 (SFILES): Use SUBDIR_CLI_SRCS.
3716 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3717
4735f0ed
TT
37182018-07-17 Tom Tromey <tom@tromey.com>
3719
3720 PR gdb/18624:
3721 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3722
117a0e99
JW
37232018-07-16 Jim Wilson <jimw@sifive.com>
3724
3725 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3726
8a67aaa8
SM
37272018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3728
3729 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3730 variable.
3731 (libunwind_frame_sniffer): Likewise.
3732 (libunwind_frame_prev_register): Likewise.
3733 (libunwind_sigtramp_frame_sniffer): Likewise.
3734 * ia64-tdep.c (ia64_access_reg): Likewise.
3735 (ia64_access_rse_reg): Likewise.
3736 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3737 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3738
ec74dcd8
SM
37392018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3740
3741 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3742
a700e753
SM
37432018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3744
3745 * remote-sim.c (gdbsim_target::close,
3746 gdbsim_target::mourn_inferior): Remove unused variables.
3747
8b411ff8
SM
37482018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3749
3750 * ia64-tdep.c (ktab_buf): New global.
3751 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3752 (get_kernel_table): Adjust.
3753
edb0470b
TT
37542018-07-16 Tom Tromey <tom@tromey.com>
3755
3756 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3757 * dwarf2read.c (using_directives, new_symbol): Use
3758 outermost_context_p.
3759 * dbxread.c (process_one_symbol): Use outermost_context_p.
3760 * coffread.c (coff_symtab_read): Use outermost_context_p.
3761
6cccc9a8
TT
37622018-07-16 Tom Tromey <tom@tromey.com>
3763
3764 * dwarf2read.c (using_directives, read_func_scope)
3765 (read_lexical_block_scope): Update.
3766 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3767 * buildsym.h (local_using_directives, global_using_directives):
3768 Don't declare.
3769 (get_local_using_directives, set_local_using_directives)
3770 (get_global_using_directives): Declare.
3771 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3772 m_global_using_directives>: New members.
3773 (finish_block_internal, prepare_for_building)
3774 (reset_symtab_globals, end_symtab_get_static_block)
3775 (push_context): Update.
3776 (get_local_using_directives, set_local_using_directives)
3777 (get_global_using_directives): New functions.
3778 (buildsym_init): Update.
3779
652788a7
TT
37802018-07-16 Tom Tromey <tom@tromey.com>
3781
3782 * xcoffread.c (xcoff_initial_scan): Don't call
3783 free_pending_blocks.
3784 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3785 * buildsym.h (class scoped_free_pendings): Add constructor.
3786 (free_pending_blocks): Don't declare.
3787 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3788 (free_pending_blocks): Now static.
3789
8419ee53
TT
37902018-07-16 Tom Tromey <tom@tromey.com>
3791
3792 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3793 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3794 member.
3795 (struct subfile_stack): Remove.
3796 (subfile_stack): Remove.
3797 (push_subfile, pop_subfile, buildsym_init): Update.
3798
ccdac490
TT
37992018-07-16 Tom Tromey <tom@tromey.com>
3800
3801 * buildsym.c (push_subfile): Use gdb_assert.
3802 (pop_subfile): Use gdb_assert.
3803
43130d6f
TT
38042018-07-16 Tom Tromey <tom@tromey.com>
3805
3806 * buildsym.h (merge_symbol_lists): Remove.
3807 * buildsym.c (merge_symbol_lists): Remove.
3808
77d6f1aa
TT
38092018-07-16 Tom Tromey <tom@tromey.com>
3810
3811 * stabsread.c (scan_file_globals): Update comment.
3812 * stabsread.h (scan_file_globals): Move from buildsym.h.
3813 * buildsym.h (scan_file_globals): Move to stabsread.h.
3814
2c722d18
TT
38152018-07-16 Tom Tromey <tom@tromey.com>
3816
3817 * xcoffread.c (xcoff_new_init): Update.
3818 * mipsread.c (mipscoff_new_init): Update.
3819 * mdebugread.c (mdebug_build_psymtabs): Update.
3820 * elfread.c (elf_new_init): Update.
3821 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3822 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3823 * buildsym.h (buildsym_new_init): Don't declare.
3824 * buildsym.c (buildsym_new_init): Remove.
3825
5985ac61
TT
38262018-07-16 Tom Tromey <tom@tromey.com>
3827
3828 * stabsread.h (within_function): Move from buildsym.h.
3829 * stabsread.c (start_stabs): Clear within_function.
3830 * coffread.c (coff_start_symtab): Clear within_function.
3831 * buildsym.h (within_function): Move to stabsread.h.
3832 * buildsym.c (prepare_for_building): Update.
3833
6b84eeb2
TT
38342018-07-16 Tom Tromey <tom@tromey.com>
3835
3836 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3837 * dwarf2read.c (dwarf2_start_symtab): Don't set
3838 processing_gcc_compilation.
3839 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3840
2150c3ef
TT
38412018-07-16 Tom Tromey <tom@tromey.com>
3842
3843 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3844 (next_symbol_text_func): Move from buildsym.h.
3845 * stabsread.c (hashname): Move from buildsym.c.
3846 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3847 (next_symbol_text_func, hashname): Move to stabsread.h.
3848 * buildsym.c: Don't include bcache.h
3849 (hashname): Move to stasbread.c.
3850
0ec44fc0
TT
38512018-07-16 Tom Tromey <tom@tromey.com>
3852
3853 * buildsym.h (context_stack_size): Don't declare.
3854 * buildsym.c (context_stack_size): New global.
3855
81cc346d
TT
38562018-07-16 Tom Tromey <tom@tromey.com>
3857
3858 * dbxread.c (processing_acc_compilation): New global.
3859 * buildsym.h (processing_acc_compilation): Don't declare.
3860
2c99ee5c
TT
38612018-07-16 Tom Tromey <tom@tromey.com>
3862
3863 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3864 * dbxread.c (read_ofile_symtab): Update.
3865 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3866 * buildsym.h (last_source_start_addr): Remove.
3867 (set_last_source_start_addr, get_last_source_start_addr):
3868 Declare.
3869 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3870 parameter.
3871 (struct buildsym_compunit) <m_last_source_start_addr>: New
3872 member.
3873 (prepare_for_building): Remove start_addr parameter.
3874 (start_symtab, restart_symtab, end_symtab_get_static_block)
3875 (end_symtab_with_blockvector): Update.
3876 (set_last_source_start_addr, get_last_source_start_addr): New
3877 functions.
3878
530fedbc
TT
38792018-07-16 Tom Tromey <tom@tromey.com>
3880
3881 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3882 member.
3883 (have_line_numbers): Remove.
3884 (record_line, prepare_for_building, end_symtab_get_static_block)
3885 (augment_type_symtab): Update.
3886
6a976300
TT
38872018-07-16 Tom Tromey <tom@tromey.com>
3888
3889 * buildsym.c (~buildsym_compunit): Free the macro table.
3890 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3891 methods.
3892 <m_pending_macros>: New member.
3893 (pending_macros): Remove.
3894 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3895 (reset_symtab_globals, end_symtab_get_static_block)
3896 (end_symtab_with_blockvector, augment_type_symtab)
3897 (buildsym_init): Update.
3898
c0015d44
TT
38992018-07-16 Tom Tromey <tom@tromey.com>
3900
3901 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3902 parameter.
3903 (buildsym_compunit::set_last_source_file): New method.
3904 <m_last_source_file>: New member.
3905 (prepare_for_building): Remove "name" parameter.
3906 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3907 (last_source_file): Remove.
3908 (set_last_source_file, get_last_source_file): Update.
3909
e62cca7c
TT
39102018-07-16 Tom Tromey <tom@tromey.com>
3911
3912 * buildsym.c (prepare_for_building): Add assert.
3913
905eb0e2
TT
39142018-07-16 Tom Tromey <tom@tromey.com>
3915
3916 * buildsym.c (~buildsym_compunit): Update.
3917 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3918 (start_subfile, patch_subfile_names)
3919 (end_symtab_with_blockvector): Update.
3920
b248663f
TT
39212018-07-16 Tom Tromey <tom@tromey.com>
3922
3923 * buildsym.c (struct buildsym_compunit): Add constructor,
3924 destructor, initializers.
3925 (start_buildsym_compunit): Remove.
3926 (free_buildsym_compunit): Use "delete".
3927 (start_symtab, restart_symtab): Use "new".
3928
ff27d073
SM
39292018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3930
3931 * symfile.c (set_objfile_default_section_offset): Remove struct
3932 keyword.
3933
6a15ecf5
SH
39342018-07-14 Stafford Horne <shorne@gmail.com>
3935
3936 * (Responsible Maintainers): Add myself as or1k maintainer.
3937
027a4c30
TT
39382018-07-13 Tom Tromey <tom@tromey.com>
3939
3940 * symfile.c (set_objfile_default_section_offset): Use extra braces
3941 around initializer.
3942
5c1eda30
AA
39432018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3944
3945 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3946 non-branching basr.
3947
bc7b042b
PW
39482018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3949
3950 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3951 unittests/cli-utils-selftests.c
3952 * unittests/cli-utils-selftests.c: New file.
3953
a14c4daa
PW
39542018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3955
3956 * NEWS: Mention new commands. Mention change to 'thread apply'.
3957
1fe75df7
PW
39582018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3959
3960 * thread.c (thr_try_catch_cmd): New function.
3961 (thread_apply_all_command): Handle qcs flags.
3962 (thread_apply_command): Handle qcs flags.
3963 (taas_command): New function.
3964 (tfaas_command): New function.
3965 (_initialize_thread): Update to setup the new commands 'taas
3966 and 'tfaas'. Change doc string for 'thread apply'.
3967
6a70eb7d
PW
39682018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3969
3970 * stack.c: (trailing_outermost_frame): New function, mostly
3971 extracted from backtrace_command_1.
3972 (leading_innermost_frame): New function.
3973 (backtrace_command_1): Update to call trailing_outermost_frame.
3974 (frame_apply_command_count): New function.
3975 (frame_apply_level_command): New function.
3976 (frame_apply_all_command): New function.
3977 (frame_apply_command): New function.
3978 (faas_command): New function.
3979 (frame_cmd_list): New variable.
3980 (_initialize_stack): Update to setup the new commands 'frame apply'
3981 and 'faas'.
3982
529c08b2
PW
39832018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3984
3985 * cli-utils.c (number_or_range_parser::get_number): Only handle
3986 numbers or convenience var as numbers.
3987 (parse_flags): New function.
3988 (parse_flags_qcs): New function.
3989 (number_or_range_parser::finished): Ensure parsing end is detected
3990 before end of string.
3991 * cli-utils.h (parse_flags): New function.
3992 (parse_flags_qcs): New function.
3993 (number_or_range_parser): Remove m_finished bool.
3994 (number_or_range_parser::skip_range): Set m_in_range to false.
3995
64b58472
SDJ
39962018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3997
3998 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3999 on Windows.
4000
c7ab0aef
SDJ
40012018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4002 Jan Kratochvil <jan.kratochvil@redhat.com>
4003 Paul Fertser <fercerpav@gmail.com>
4004 Tsutomu Seki <sekiriki@gmail.com>
4005 Pedro Alves <palves@redhat.com>
4006
4007 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4008 'unittests/parse-connection-spec-selftests.c'.
4009 (COMMON_SFILES): Add 'common/netstuff.c'.
4010 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4011 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4012 * common/netstuff.c: New file.
4013 * common/netstuff.h: New file.
4014 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4015 (wait_for_connect): Update comment. New parameter
4016 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4017 Use 'sock' directly instead of 'scb->fd'.
4018 (try_connect): New function, with code from 'net_open'.
4019 (net_open): Rewrite main loop to deal with multiple
4020 sockets/addresses. Handle IPv6-style hostnames; implement
4021 support for IPv6 connections.
4022 * unittests/parse-connection-spec-selftests.c: New file.
4023
4c7333b3
PA
40242018-07-11 Pedro Alves <palves@redhat.com>
4025
4026 PR gdb/23377
4027 * remote.c (remote_target::remote_detach_pid): Call
4028 set_current_process.
4029
a6f88f6e
PA
40302018-07-11 Pedro Alves <palves@redhat.com>
4031
4032 * h8300-tdep.c (h8300_gdbarch_init): Remove
4033 set_gdbarch_ecoff_reg_to_regnum calls.
4034
16ff70dd
SDJ
40352018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4036
4037 PR c++/23373
4038 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4039 offsets/sizes for static members of a class/struct.
4040
12863263
AH
40412018-07-11 Alan Hayward <alan.hayward@arm.com>
4042
4043 * target-descriptions.c (tdesc_register_bitsize): Rename.
4044 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4045 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4046 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4047
1123588c
TT
40482018-07-10 Tom Tromey <tom@tromey.com>
4049
4050 * breakpoint.c (moribund_locations): Now static and a
4051 std::vector.
4052 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4053 (build_bpstat_chain, update_global_location_list)
4054 (breakpoint_retire_moribund): Update.
4055 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4056 VEC.
4057
8c49aa89
AB
40582018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4059
4060 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4061 (riscv_register_reggroup_p): Use new function, remove unneeded
4062 parenthesis.
4063 (riscv_push_dummy_call): Extend assert to compare against xlen or
4064 flen based on register type.
4065
42ecac17
AB
40662018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4067
4068 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4069
055303e2
AB
40702018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4071
4072 * remote.c (show_hardware_watchpoint_limit): New function.
4073 (show_hardware_watchpoint_length_limit): New function.
4074 (show_hardware_breakpoint_limit): New function.
4075 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4076 where appropriate, update help text.
4077
8fd32c1c
TT
40782018-07-09 Tom Tromey <tom@tromey.com>
4079
4080 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4081 (CLIBS): Don't mention NAT_CLIBS.
4082
31278b51
TT
40832018-07-09 Tom Tromey <tom@tromey.com>
4084
4085 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4086 (LIBGDB_OBS, clean mostlyclean): Update.
4087 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4088
e5fd1493
TT
40892018-07-09 Tom Tromey <tom@tromey.com>
4090
4091 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4092 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4093 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4094
981e0c0c
TT
40952018-07-09 Tom Tromey <tom@tromey.com>
4096
4097 * Makefile.in (ALLDEPFILES): Remove exec.c.
4098 (COMMON_OBS): Remove exec.o.
4099 (COMMON_SFILES): Add exec.c.
4100
14ccceb2
TT
41012018-07-09 Tom Tromey <tom@tromey.com>
4102
4103 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4104
5d3c3a68
TT
41052018-07-09 Tom Tromey <tom@tromey.com>
4106
4107 * Makefile.in (clean mostlyclean): Remove stamp-version.
4108 (version.c): Depend on stamp-version.
4109 (stamp-version): New rule, from version.c rule.
4110
1998086d
TT
41112018-07-09 Tom Tromey <tom@tromey.com>
4112
4113 * Makefile.in (init.c): Depend on stamp-init.
4114 (stamp-init): New rule, from init.c rule.
4115 (clean mostlyclean): Remove stamp-init.
4116
4c754949
TT
41172018-07-09 Tom Tromey <tom@tromey.com>
4118
4119 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4120 SUBDIR_GCC_COMPILE_SRCS.
4121
6497f1dd
TT
41222018-07-09 Tom Tromey <tom@tromey.com>
4123
4124 * Makefile.in (init.c): Remove some unused sed rules.
4125
97a34db9
TT
41262018-07-09 Tom Tromey <tom@tromey.com>
4127
4128 * Makefile.in (TSOBS): Remove.
4129 (INIT_FILES): Update.
4130 (LIBGDB_OBS): Update.
4131 (COMMON_SFILES): Add inflow.c.
4132 (SFILES): Remove inflow.c.
4133
25289ac1
JK
41342018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4135
4136 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4137
e83f4d97
SM
41382018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4139
4869c585
SM
4140 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4141 get_saveloc_name, is_signal_frame_name, step_name,
4142 init_remote_name, create_addr_space_name,
4143 destroy_addr_space_name, search_unwind_table_name,
4144 find_dyn_list_name): Constify.
e83f4d97 4145
6821842f
SM
41462018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4147
4148 * darwin-nat.c (darwin_pthread_kill): New function.
4149 (darwin_resume_thread): Use darwin_pthread_kill.
4150
c530603c
TV
41512018-07-05 Tom de Vries <tdevries@suse.de>
4152
4153 * macroexp.c (macro_buffer) <operator=>: New member function.
4154
a7d0f0f0
TT
41552018-07-04 Tom Tromey <tom@tromey.com>
4156
4157 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4158
6242c6a6
SM
41592018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4160
4161 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4162 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4163 * maint.c: Likewise.
4164 * top.c: Likewise.
4165
4e5b2f89
JB
41662018-07-04 Joel Brobecker <brobecker@adacore.com>
4167
4168 * NEWS: Create a new section for the next release branch.
4169 Rename the section of the current branch, now that it has
4170 been cut.
4171
538ccc4a
JB
41722018-07-04 Joel Brobecker <brobecker@adacore.com>
4173
4174 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4175 * version.in: Bump version to 8.2.50.DATE-git.
4176
1b919490
VB
41772018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4178 Pedro Alves <palves@redhat.com>
4179
4180 * linux-nat.c (linux_init_ptrace): Rename to ...
4181 (linux_init_ptrace_procfs): ... this. Call
4182 linux_proc_init_warnings.
4183 (linux_nat_target::post_attach)
4184 (linux_nat_target::post_startup_inferior): Adjust.
4185 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4186 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4187
1ea5da02
TV
41882018-07-04 Tom de Vries <tdevries@suse.de>
4189
4190 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4191 check ...
4192 (read_comp_unit_head): ... here.
4193
f51e0e20
TT
41942018-07-03 Tom Tromey <tom@tromey.com>
4195
4196 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4197 (stop_tracing, tstatus_command)
4198 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4199 (print_one_static_tracepoint_marker): Update.
4200 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4201 std::vector.
4202 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4203 VEC.
4204 (all_tracepoints, static_tracepoints_here): Return std::vector.
4205
d7e15655
TT
42062018-07-03 Tom Tromey <tom@tromey.com>
4207
4208 * common/ptid.c (ptid_equal): Remove.
4209 * common/ptid.h (ptid_equal): Don't declare.
4210 * ada-tasks.c: Update.
4211 * breakpoint.c: Update.
4212 * common/agent.c: Update.
4213 * corelow.c: Update.
4214 * darwin-nat-info.c: Update.
4215 * darwin-nat.c: Update.
4216 * dcache.c: Update.
4217 * dtrace-probe.c: Update.
4218 * dummy-frame.c: Update.
4219 * fbsd-nat.c: Update.
4220 * frame.c: Update.
4221 * gdbthread.h: Update.
4222 * gnu-nat.c: Update.
4223 * go32-nat.c: Update.
4224 * inf-loop.c: Update.
4225 * inf-ptrace.c: Update.
4226 * infcall.c: Update.
4227 * infcmd.c: Update.
4228 * inflow.c: Update.
4229 * infrun.c: Update.
4230 * linux-fork.c: Update.
4231 * linux-nat.c: Update.
4232 * linux-thread-db.c: Update.
4233 * mi/mi-cmd-var.c: Update.
4234 * mi/mi-interp.c: Update.
4235 * mi/mi-main.c: Update.
4236 * nto-procfs.c: Update.
4237 * ppc-linux-tdep.c: Update.
4238 * procfs.c: Update.
4239 * python/py-inferior.c: Update.
4240 * python/py-record-btrace.c: Update.
4241 * python/py-record.c: Update.
4242 * ravenscar-thread.c: Update.
4243 * regcache.c: Update.
4244 * remote-sim.c: Update.
4245 * remote.c: Update.
4246 * sol-thread.c: Update.
4247 * solib.c: Update.
4248 * target.c: Update.
4249 * tui/tui-stack.c: Update.
4250 * varobj.c: Update.
4251 * windows-nat.c: Update.
4252 * windows-tdep.c: Update.
4253
26a57c92
TT
42542018-07-03 Tom Tromey <tom@tromey.com>
4255
4256 * common/ptid.c (ptid_match): Remove.
4257 * common/ptid.h (ptid_match): Don't declare.
4258 * fbsd-nat.c: Update.
4259 * infcmd.c: Update.
4260 * infrun.c: Update.
4261 * linux-nat.c: Update.
4262 * record-btrace.c: Update.
4263 * regcache.c: Update.
4264 * remote.c: Update.
4265
d2a107e3
TT
42662018-07-03 Tom Tromey <tom@tromey.com>
4267
4268 * common/ptid.c (ptid_tid_p): Remove.
4269 * common/ptid.h (ptid_tid_p): Don't declare.
4270 * sol-thread.c: Update.
4271
15a9e13e
TT
42722018-07-03 Tom Tromey <tom@tromey.com>
4273
4274 * common/ptid.c (ptid_lwp_p): Remove.
4275 * common/ptid.h (ptid_lwp_p): Don't declare.
4276 * fbsd-nat.c: Update.
4277 * linux-nat.c: Update.
4278 * nat/linux-procfs.c: Update.
4279 * nat/x86-linux-dregs.c: Update.
4280 * sol-thread.c: Update.
4281
0e998d96
TT
42822018-07-03 Tom Tromey <tom@tromey.com>
4283
4284 * common/ptid.c (ptid_is_pid): Remove.
4285 * common/ptid.h (ptid_is_pid): Don't declare.
4286 * infrun.c: Update.
4287 * linux-nat.c: Update.
4288 * mi/mi-interp.c: Update.
4289 * remote.c: Update.
4290 * thread.c: Update.
4291
cc6bcb54
TT
42922018-07-03 Tom Tromey <tom@tromey.com>
4293
4294 * common/ptid.c (ptid_get_tid): Remove.
4295 * common/ptid.h (ptid_get_tid): Don't declare.
4296 * ada-tasks.c: Update.
4297 * aix-thread.c: Update.
4298 * bsd-uthread.c: Update.
4299 * darwin-nat.c: Update.
4300 * fbsd-nat.c: Update.
4301 * i386-darwin-nat.c: Update.
4302 * infrun.c: Update.
4303 * linux-tdep.c: Update.
4304 * nto-procfs.c: Update.
4305 * ppc-ravenscar-thread.c: Update.
4306 * python/py-infthread.c: Update.
4307 * ravenscar-thread.c: Update.
4308 * sol-thread.c: Update.
4309 * sparc-ravenscar-thread.c: Update.
4310 * windows-nat.c: Update.
4311
e38504b3
TT
43122018-07-03 Tom Tromey <tom@tromey.com>
4313
4314 * common/ptid.c (ptid_get_lwp): Remove.
4315 * common/ptid.h (ptid_get_lwp): Don't declare.
4316 * aarch64-linux-nat.c: Update.
4317 * ada-tasks.c: Update.
4318 * aix-thread.c: Update.
4319 * amd64-linux-nat.c: Update.
4320 * arm-linux-nat.c: Update.
4321 * corelow.c: Update.
4322 * fbsd-nat.c: Update.
4323 * fbsd-tdep.c: Update.
4324 * gnu-nat.c: Update.
4325 * i386-cygwin-tdep.c: Update.
4326 * i386-gnu-nat.c: Update.
4327 * i386-linux-nat.c: Update.
4328 * ia64-linux-nat.c: Update.
4329 * inf-ptrace.c: Update.
4330 * infrun.c: Update.
4331 * linux-fork.c: Update.
4332 * linux-nat.c: Update.
4333 * linux-tdep.c: Update.
4334 * linux-thread-db.c: Update.
4335 * mips-linux-nat.c: Update.
4336 * nat/aarch64-linux-hw-point.c: Update.
4337 * nat/aarch64-linux.c: Update.
4338 * nat/linux-btrace.c: Update.
4339 * nat/linux-osdata.c: Update.
4340 * nat/linux-procfs.c: Update.
4341 * nat/x86-linux-dregs.c: Update.
4342 * obsd-nat.c: Update.
4343 * ppc-fbsd-nat.c: Update.
4344 * ppc-linux-nat.c: Update.
4345 * procfs.c: Update.
4346 * python/py-infthread.c: Update.
4347 * ravenscar-thread.c: Update.
4348 * remote.c: Update.
4349 * s390-linux-nat.c: Update.
4350 * sol-thread.c: Update.
4351 * sol2-tdep.c: Update.
4352 * spu-linux-nat.c: Update.
4353 * x86-linux-nat.c: Update.
4354 * xtensa-linux-nat.c: Update.
4355
e99b03dc
TT
43562018-07-03 Tom Tromey <tom@tromey.com>
4357
4358 * common/ptid.c (ptid_get_pid): Remove.
4359 * common/ptid.h (ptid_get_pid): Don't declare.
4360 * aarch64-linux-nat.c: Update.
4361 * ada-lang.c: Update.
4362 * aix-thread.c: Update.
4363 * alpha-bsd-nat.c: Update.
4364 * amd64-fbsd-nat.c: Update.
4365 * amd64-linux-nat.c: Update.
4366 * arm-linux-nat.c: Update.
4367 * arm-nbsd-nat.c: Update.
4368 * auxv.c: Update.
4369 * break-catch-syscall.c: Update.
4370 * breakpoint.c: Update.
4371 * bsd-uthread.c: Update.
4372 * corelow.c: Update.
4373 * ctf.c: Update.
4374 * darwin-nat.c: Update.
4375 * fbsd-nat.c: Update.
4376 * fbsd-tdep.c: Update.
4377 * gcore.c: Update.
4378 * gnu-nat.c: Update.
4379 * hppa-nbsd-nat.c: Update.
4380 * hppa-obsd-nat.c: Update.
4381 * i386-fbsd-nat.c: Update.
4382 * ia64-linux-nat.c: Update.
4383 * inf-ptrace.c: Update.
4384 * infcmd.c: Update.
4385 * inferior.c: Update.
4386 * inferior.h: Update.
4387 * inflow.c: Update.
4388 * infrun.c: Update.
4389 * linux-fork.c: Update.
4390 * linux-nat.c: Update.
4391 * linux-tdep.c: Update.
4392 * linux-thread-db.c: Update.
4393 * m68k-bsd-nat.c: Update.
4394 * mi/mi-interp.c: Update.
4395 * mi/mi-main.c: Update.
4396 * mips-linux-nat.c: Update.
4397 * mips-nbsd-nat.c: Update.
4398 * mips64-obsd-nat.c: Update.
4399 * nat/aarch64-linux-hw-point.c: Update.
4400 * nat/aarch64-linux.c: Update.
4401 * nat/linux-btrace.c: Update.
4402 * nat/linux-osdata.c: Update.
4403 * nat/linux-procfs.c: Update.
4404 * nat/x86-linux-dregs.c: Update.
4405 * nto-procfs.c: Update.
4406 * obsd-nat.c: Update.
4407 * ppc-linux-nat.c: Update.
4408 * ppc-nbsd-nat.c: Update.
4409 * ppc-obsd-nat.c: Update.
4410 * proc-service.c: Update.
4411 * procfs.c: Update.
4412 * python/py-inferior.c: Update.
4413 * python/py-infthread.c: Update.
4414 * ravenscar-thread.c: Update.
4415 * record.c: Update.
4416 * remote-sim.c: Update.
4417 * remote.c: Update.
4418 * rs6000-nat.c: Update.
4419 * s390-linux-nat.c: Update.
4420 * sh-nbsd-nat.c: Update.
4421 * sol-thread.c: Update.
4422 * sparc-nat.c: Update.
4423 * sparc64-tdep.c: Update.
4424 * spu-linux-nat.c: Update.
4425 * spu-tdep.c: Update.
4426 * target-debug.h: Update.
4427 * target.c: Update.
4428 * thread.c: Update.
4429 * tid-parse.c: Update.
4430 * tracefile-tfile.c: Update.
4431 * vax-bsd-nat.c: Update.
4432 * windows-nat.c: Update.
4433 * x86-linux-nat.c: Update.
4434 * x86-nat.c: Update.
4435
f2907e49
TT
44362018-07-03 Tom Tromey <tom@tromey.com>
4437
4438 * common/ptid.c (pid_to_ptid): Remove.
4439 * common/ptid.h (pid_to_ptid): Don't declare.
4440 * aix-thread.c: Update.
4441 * arm-linux-nat.c: Update.
4442 * common/ptid.c: Update.
4443 * common/ptid.h: Update.
4444 * corelow.c: Update.
4445 * ctf.c: Update.
4446 * darwin-nat.c: Update.
4447 * fbsd-nat.c: Update.
4448 * fork-child.c: Update.
4449 * gnu-nat.c: Update.
4450 * go32-nat.c: Update.
4451 * inf-ptrace.c: Update.
4452 * infcmd.c: Update.
4453 * inferior.c: Update.
4454 * infrun.c: Update.
4455 * linux-fork.c: Update.
4456 * linux-nat.c: Update.
4457 * nat/aarch64-linux-hw-point.c: Update.
4458 * nat/fork-inferior.c: Update.
4459 * nat/x86-linux-dregs.c: Update.
4460 * nto-procfs.c: Update.
4461 * obsd-nat.c: Update.
4462 * procfs.c: Update.
4463 * progspace.c: Update.
4464 * remote.c: Update.
4465 * rs6000-nat.c: Update.
4466 * s390-linux-nat.c: Update.
4467 * sol-thread.c: Update.
4468 * spu-linux-nat.c: Update.
4469 * target.c: Update.
4470 * top.c: Update.
4471 * tracefile-tfile.c: Update.
4472 * windows-nat.c: Update.
4473
fd79271b
TT
44742018-07-03 Tom Tromey <tom@tromey.com>
4475
4476 * common/ptid.h (ptid_build): Don't declare.
4477 * common/ptid.c (ptid_build): Remove.
4478 * aix-thread.c: Update.
4479 * bsd-kvm.c: Update.
4480 * bsd-uthread.c: Update.
4481 * common/agent.c: Update.
4482 * common/ptid.c: Update.
4483 * common/ptid.h: Update.
4484 * corelow.c: Update.
4485 * darwin-nat.c: Update.
4486 * fbsd-nat.c: Update.
4487 * gnu-nat.c: Update.
4488 * linux-fork.c: Update.
4489 * linux-nat.c: Update.
4490 * linux-thread-db.c: Update.
4491 * nat/linux-osdata.c: Update.
4492 * nat/linux-procfs.c: Update.
4493 * nto-procfs.c: Update.
4494 * obsd-nat.c: Update.
4495 * proc-service.c: Update.
4496 * procfs.c: Update.
4497 * ravenscar-thread.c: Update.
4498 * remote-sim.c: Update.
4499 * remote.c: Update.
4500 * sol-thread.c: Update.
4501 * target.c: Update.
4502 * windows-nat.c: Update.
4503
057302ce
TT
45042018-07-03 Tom Tromey <tom@tromey.com>
4505
4506 * infrun.c (follow_exec): Use exit_inferior_silent.
4507 * inferior.c (exit_inferior_num_silent): Remove.
4508 * inferior.h (exit_inferior_num_silent): Don't declare.
4509
a50c11c6
TT
45102018-07-03 Tom Tromey <tom@tromey.com>
4511
4512 PR cli/23340:
4513 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4514 inferior_ptid on error.
4515
471b9d15
MR
45162018-07-02 Maciej W. Rozycki <macro@mips.com>
4517 Simon Marchi <simon.marchi@polymtl.ca>
4518
4519 PR tdep/8282
4520 * disasm.h (gdb_disassembler): Add
4521 `m_disassembler_options_holder'. member
4522 * disasm.c (get_all_disassembler_options): New function.
4523 (gdb_disassembler::gdb_disassembler): Use it.
4524 (gdb_buffered_insn_length_init_dis): Likewise.
4525 (gdb_buffered_insn_length): Adjust accordingly.
4526 (set_disassembler_options): Handle options with arguments.
4527 (show_disassembler_options_sfunc): Likewise. Add a leading new
4528 line if showing options with descriptions.
4529 (disassembler_options_completer): Adapt to using the
4530 `disasm_options_and_args_t' structure.
4531 * mips-tdep.c (mips_disassembler_options): New variable.
4532 (mips_disassembler_options_o32): Likewise.
4533 (mips_disassembler_options_n32): Likewise.
4534 (mips_disassembler_options_n64): Likewise.
4535 (gdb_print_insn_mips): Don't set `disassembler_options'.
4536 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4537 functions.
4538 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4539 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4540 `gdbarch_disassembler_options_implicit' and
4541 `gdbarch_valid_disassembler_options'.
4542 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4543 `disasm_options_and_args_t' structure.
4544 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4545 method.
4546 (valid_disassembler_options): Switch from `disasm_options_t' to
4547 the `disasm_options_and_args_t' structure.
4548 * NEWS: Document `set disassembler-options' support for the MIPS
4549 target.
4550 * gdbarch.h: Regenerate.
4551 * gdbarch.c: Regenerate.
4552
41823f29
SH
45532018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4554
4555 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4556
41206e32
JB
45572018-06-29 Joel Brobecker <brobecker@adacore.com>
4558
4559 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4560 parameter in call to amd64_target_description.
4561 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4562 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4563 (amd64fbsd_init_abi): Likewise.
4564 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4565 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4566 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4567 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4568
de52b960
PA
45692018-06-29 Pedro Alves <palves@redhat.com>
4570
4571 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4572 "segments" parameter.
4573 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4574 (_initialize_amd64_tdep): Update call to
4575 amd64_create_target_description.
4576 (amd64_target_description): Add "segments" parameter. Adjust
4577 the implementation to use it.
4578 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4579 call to amd64_create_target_description.
4580 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4581 * gdb/arch/amd64.h (amd64_create_target_description): Add
4582 "segments" register.
4583 * gdb/arch/amd64.c (amd64_create_target_description): Add
4584 "segments" parameter. Call create_feature_i386_64bit_segments
4585 only if SEGMENTS is true.
4586 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4587 call to amd64_create_target_description.
4588
75acb486
PA
45892018-06-29 Pedro Alves <palves@redhat.com>
4590
4591 * thread.c (thread_target_id_str): New, factored out from ...
4592 (print_thread_info_1): ... here. Use it to compute the max
4593 "Target Id" column width.
4594
c76a8ea3
PA
45952018-06-29 Pedro Alves <palves@redhat.com>
4596
4597 * remote.c (remote_target::extra_thread_info): Delete
4598 'display_buf' and 'n' locals. from the cache, regardless of
4599 packet mechanims is in use. Use cache for qThreadExtra and qP
4600 methods too.
4601
cd2bb709
PA
46022018-06-29 Pedro Alves <palves@redhat.com>
4603
4604 * blockframe.c (find_pc_sect_containing_function): New function.
4605 * breakpoint.c (print_breakpoint_location): Don't call
4606 find_pc_sect_function.
4607 * linespec.c (create_sals_line_offset): Record the location's
4608 symbol in the sal.
4609 * linespec.c (convert_address_location_to_sals): Fill in sal's
4610 symbol with find_pc_sect_containing_function.
4611 * symtab.c (find_function_start_sal): Rename to ...
4612 (find_function_start_sal_1): ... this.
4613 (find_function_start_sal): Reimplement as wrapper around
4614 find_function_start_sal_1, and use
4615 find_pc_sect_containing_function to fill in the sal's symbol.
4616 (find_function_start_sal(symbol*, bool)): Adjust.
4617 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4618 comments.
4619 (find_pc_sect_containing_function): Declare.
4620
991ff292
PA
46212018-06-29 Pedro Alves <palves@redhat.com>
4622
4623 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4624 true if the the location has no symbol.
4625
44cee4fd
TT
46262018-06-28 Tom Tromey <tom@tromey.com>
4627
4628 * NEWS: Mention --enable-codesign.
4629 * silent-rules.mk (ECHO_SIGN): New variable.
4630 * configure.ac: Add --enable-codesign.
4631 * configure: Rebuild.
4632 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4633 (gdb$(EXEEXT)): Optionally invoke codesign.
4634
f2ffa92b
PA
46352018-06-28 Pedro Alves <palves@redhat.com>
4636
4637 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4638 comments.
4639 (switch_to_thread_no_regs): Adjust comment.
4640 * infcmd.c (stop_pc): Delete.
4641 (post_create_inferior, info_program_command): Replace references
4642 to stop_pc with references to thread_info->suspend.stop_pc.
4643 * inferior.h (stop_pc): Delete declaration.
4644 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4645 (handle_inferior_event_1, handle_signal_stop)
4646 (process_event_stop_test, keep_going_stepped_thread)
4647 (handle_step_into_function, handle_step_into_function_backward)
4648 (print_stop_location): Replace references to stop_pc with
4649 references to thread_info->suspend.stop_pc.
4650 (struct infcall_suspend_state) <stop_pc>: Delete field.
4651 (save_infcall_suspend_state, restore_infcall_suspend_state):
4652 Remove references to inf_stat->stop_pc.
4653 * linux-fork.c (fork_load_infrun_state): Likewise.
4654 * record-btrace.c (record_btrace_set_replay): Likewise.
4655 * record-full.c (record_full_goto_entry): Likewise.
4656 * remote.c (print_one_stopped_thread): Likewise.
4657 * target.c (target_resume): Extend comment.
4658 * thread.c (set_executing_thread): New.
4659 (set_executing): Use it.
4660 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4661 Remove references to stop_pc.
4662
ecdc3a72
PA
46632018-06-28 Pedro Alves <palves@redhat.com>
4664
4665 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4666 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4667
d95d3aef
TT
46682018-06-28 Tom Tromey <tom@tromey.com>
4669
4670 * coffread.c (coff_symfile_finish): Update.
4671 * xcoffread.c (xcoff_symfile_finish): Update.
4672 * elfread.c (elf_symfile_finish): Update.
4673 * symfile.h (dwarf2_free_objfile): Don't declare.
4674 * dwarf2read.c (_initialize_dwarf2_read): Use
4675 register_objfile_data_with_cleanup.
4676 (dwarf2_free_objfile): Now static. Change signature.
4677
291f9a96
PT
46782018-06-28 Petr Tesarik <ptesarik@suse.cz>
4679
4680 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4681 option "-o" to add-symbol-file-load to add an offset to each
4682 section's load address.
4683 * symfile.c (set_objfile_default_section_offset): New function.
4684
d81a3eaf
PT
46852018-06-28 Petr Tesarik <ptesarik@suse.cz>
4686
4687 * symfile.c (add_symbol_file_command): Make sure that sections
4688 with the same name are sorted in the same order.
4689
ed6dfe51
PT
46902018-06-28 Petr Tesarik <ptesarik@suse.cz>
4691
4692 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4693 require the second argument. If omitted, load sections at the
4694 addresses specified in the file.
4695
d4d429d5
PT
46962018-06-28 Petr Tesarik <ptesarik@suse.cz>
4697
4698 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4699 (_initialize_symfile): Add option "-o" to symbol-file to add an
4700 offset to each section of the symbol file.
4701
39b27ab6
PT
47022018-06-28 Petr Tesarik <ptesarik@suse.cz>
4703
4704 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4705
41827fc3
TT
47062018-06-27 Tom Tromey <tom@tromey.com>
4707
4708 * stack.c (_initialize_stack): Update "func" help text.
4709
0c6aef22
TT
47102018-06-27 Tom Tromey <tom@tromey.com>
4711
4712 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4713 std::vector.
4714 (unwind_infopy_str, pyuw_create_unwind_info)
4715 (unwind_infopy_add_saved_register, pyuw_sniffer)
4716 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4717 Update.
4718 (struct saved_reg): Add constructor.
4719 <value>: Now a gdbpy_ref<>.
4720
63177289
TT
47212018-06-27 Tom Tromey <tom@tromey.com>
4722
4723 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4724
e76f78a0
SM
47252018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4726
4727 * gdb-gdb.py.in: Format using autopep8.
4728
9a14af7b
SM
47292018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4730
4731 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4732 (type_lookup_function): Recognize CORE_ADDR values.
4733
189366cd
SM
47342018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4735
4736 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4737 print tag_name.
4738
68ad5fb9
SM
47392018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4740
4741 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4742 <__lt__>: Add.
4743
141ec9f6
SM
47442018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4745
4746 * gdb-gdb.py: Move to...
4747 * gdb-gdb.py.in: ... here.
4748 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4749 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4750 dependencies.
4751 (distclean): Remove gdb-gdb.py when cleaning.
4752 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4753 * configure: Re-generate.
4754
4c4e7ad4
PA
47552018-06-27 Pedro Alves <palves@redhat.com>
4756
4757 * proc-service.c (get_ps_regcache): New.
4758 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4759 (ps_lsetfpregs): Use it.
4760
7ab6656f
OJ
47612018-06-27 Omair Javaid <omair.javaid@linaro.org>
4762
4763 PR gdb/21695
4764 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4765 (dwarf_decode_lines_1): Adjust.
4766
bd583225
SM
47672018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4768
4769 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4770 override.
4771 <info_proc>: Likewise.
4772
9a325b7b
JB
47732018-06-26 Joel Brobecker <brobecker@adacore.com>
4774
4775 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4776 to windows_fetch_one_register, and only handle the case of
4777 fetching one register. Move the code that reloads the context
4778 and iterates over all registers if R is negative to...
4779 (windows_nat_target::fetch_registers): ... here.
4780 (do_windows_store_inferior_registers): Rename to
4781 windows_store_one_register, and only handle the case of storing
4782 one register. Move the code that handles the case where r is
4783 negative to...
4784 (windows_nat_target::store_registers) ... here.
4785
a33ccfc7
TT
47862018-06-26 Tom Tromey <tom@tromey.com>
4787
4788 PR rust/22574:
4789 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4790 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4791 Update.
4792 (rust_internal_print_type): Add podata parameter.
4793 (rust_print_type): Update.
4794
e0c547d1
TT
47952018-06-26 Tom Tromey <tom@tromey.com>
4796
4797 * typeprint.h (struct print_offset_data) <update, finish,
4798 maybe_print_hole>: New methods.
4799 <indentation>: New constant.
4800 * typeprint.c (print_offset_data::indentation): Define.
4801 (print_offset_data::maybe_print_hole, print_offset_data::update)
4802 (print_offset_data::finish): Move from c-typeprint.c and rename.
4803 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4804 (print_spaces_filtered_with_print_options): Update.
4805 (c_print_type_union_field_offset, maybe_print_hole)
4806 (c_print_type_struct_field_offset): Move to typeprint.c and
4807 rename.
4808 (c_type_print_base_struct_union): Update.
4809
75cbc781
PA
48102018-06-25 Pedro Alves <palves@redhat.com>
4811
4812 * gdbthread.h (thread_info_ref, delete_thread)
4813 (delete_thread_silent, first_thread_of_inferior)
4814 (any_thread_of_inferior, switch_to_thread)
4815 (enable_thread_stack_temporaries)
4816 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4817 (get_last_thread_stack_temporary)
4818 (value_in_thread_stack_temporaries, can_access_registers_thread):
4819 Spell out "struct thread_info" instead of just "thread_info".
4820 * inferior.h (notice_new_inferior): Likewise.
4821
b7a08269
PA
48222018-06-25 Pedro Alves <palves@redhat.com>
4823
4824 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4825 pass thread_info pointer to delete_thread.
4826 (windows_nat_target::detach): Pass inferior pointer to
4827 detach_inferior.
4828 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4829 delete_thread.
4830 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4831 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4832 and pass a thread_info pointer to delete_thread.
4833 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4834 pass thread_info pointer to delete_thread.
4835 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4836 delete_thread_silent call.
4837 * procfs.c (procfs_target::detach): Pass inferior pointer to
4838 detach_inferior.
4839 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4840 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4841 delete_thread_silent call.
4842 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4843 pass thread_info pointer to delete_thread.
4844 (windows_nat_target::detach): Pass inferior pointer to
4845 delete_inferior.
4846
8e7767e3
AH
48472018-06-22 Alan Hayward <alan.hayward@arm.com>
4848
4849 * regcache.c (readable_regcache::read_part): Fix asserts.
4850 (reg_buffer::raw_collect_part): New function.
4851 (regcache::write_part): Fix asserts.
4852 (reg_buffer::raw_supply_part): New function.
4853 (regcache::transfer_regset_register): New helper function.
4854 (regcache::transfer_regset): Call new functions.
4855 (regcache_supply_regset): Use gdb_byte*.
4856 (regcache::supply_regset): Likewise.
4857 (regcache_collect_regset): Likewise.
4858 (regcache::collect_regset): Likewise.
4859 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4860 (reg_buffer::raw_supply_part): Likewise.
4861 (regcache::transfer_regset_register): Likewise.
4862 (regcache::transfer_regset): Use gdb_byte*.
4863
bfd60e34
AH
48642018-06-22 Alan Hayward <alan.hayward@arm.com>
4865
4866 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4867
00431a78
PA
48682018-06-21 Pedro Alves <palves@redhat.com>
4869
4870 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4871 instead of a ptid_t. All callers adjusted.
4872 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4873 adjusted.
4874 (print_ada_task_info, display_current_task_id, task_command_1):
4875 Adjust.
4876 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4877 inferior_thread.
4878 (breakpoint_kind): Adjust.
4879 (remove_breakpoints_pid): Rename to ...
4880 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4881 pointer. All callers adjusted.
4882 (bpstat_clear_actions): Use inferior_thread.
4883 (get_bpstat_thread): New.
4884 (bpstat_do_actions): Use it.
4885 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4886 to take a thread_info pointer. All callers adjusted.
4887 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4888 (breakpoint_re_set_thread): Use inferior_thread.
4889 * breakpoint.h (struct inferior): Forward declare.
4890 (bpstat_stop_status): Update.
4891 (remove_breakpoints_pid): Delete.
4892 (remove_breakpoints_inf): New.
4893 * bsd-uthread.c (bsd_uthread_target::wait)
4894 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4895 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4896 (maint_btrace_packet_history_cmd)
4897 (maint_btrace_clear_packet_history_cmd): Adjust.
4898 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4899 inferior_thread.
4900 * cli/cli-interp.c: Include "inferior.h".
4901 * common/refcounted-object.h (struct
4902 refcounted_object_ref_policy): New.
4903 * compile/compile-object-load.c: Include gdbthread.h.
4904 (store_regs): Use inferior_thread.
4905 * corelow.c (core_target::close): Use current_inferior.
4906 (core_target_open): Adjust to use first_thread_of_inferior and use
4907 the current inferior.
4908 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4909 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4910 <thread>: ... this new field. All references adjusted.
4911 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4912 Take a thread_info pointer instead of a ptid_t.
4913 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4914 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4915 thread_info pointer instead of a ptid_t.
4916 * elfread.c: Include "inferior.h".
4917 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4918 Use inferior_thread.
4919 * eval.c (evaluate_subexp): Likewise.
4920 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4921 inferior_thread.
4922 * gdb_proc_service.h (struct thread_info): Forward declare.
4923 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4924 <thread>: ... this new field. All references adjusted.
4925 * gdbarch.h, gdbarch.c: Regenerate.
4926 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4927 'thread' parameter. All implementations and callers adjusted.
4928 * gdbthread.h (thread_info) <set_running>: New method.
4929 (delete_thread, delete_thread_silent): Take a thread_info pointer
4930 instead of a ptid.
4931 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4932 (first_thread_of_process): Delete, replaced by ...
4933 (first_thread_of_inferior): ... this new function. All callers
4934 adjusted.
4935 (any_live_thread_of_process): Delete, replaced by ...
4936 (any_live_thread_of_inferior): ... this new function. All callers
4937 adjusted.
4938 (switch_to_thread, switch_to_no_thread): Declare.
4939 (is_executing): Delete.
4940 (enable_thread_stack_temporaries): Update comment.
4941 <enable_thread_stack_temporaries>: Take a thread_info pointer
4942 instead of a ptid_t. Incref the thread.
4943 <~enable_thread_stack_temporaries>: Decref the thread.
4944 <m_ptid>: Delete
4945 <m_thr>: New.
4946 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4947 (get_last_thread_stack_temporary)
4948 (value_in_thread_stack_temporaries, can_access_registers_thread):
4949 Take a thread_info pointer instead of a ptid_t. All callers
4950 adjusted.
4951 * infcall.c (get_call_return_value): Use inferior_thread.
4952 (run_inferior_call): Work with thread pointers instead of ptid_t.
4953 (call_function_by_hand_dummy): Work with thread pointers instead
4954 of ptid_t. Use thread_info_ref.
4955 * infcmd.c (proceed_thread_callback): Access thread's state
4956 directly.
4957 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4958 access thread's state directly.
4959 (continue_command): Use inferior_thread.
4960 (info_program_command): Use find_thread_ptid and access thread
4961 state directly.
4962 (proceed_after_attach_callback): Use thread state directly.
4963 (notice_new_inferior): Take a thread_info pointer instead of a
4964 ptid_t. All callers adjusted.
4965 (exit_inferior): Take an inferior pointer instead of a pid. All
4966 callers adjusted.
4967 (exit_inferior_silent): New.
4968 (detach_inferior): Delete.
4969 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4970 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4971 (detach_inferior_command, kill_inferior_command): Use
4972 find_inferior_id instead of valid_gdb_inferior_id and
4973 gdb_inferior_id_to_pid.
4974 (inferior_command): Use inferior and thread pointers.
4975 * inferior.h (struct thread_info): Forward declare.
4976 (notice_new_inferior): Take a thread_info pointer instead of a
4977 ptid_t. All callers adjusted.
4978 (detach_inferior): Delete declaration.
4979 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4980 instead of a pid. All callers adjusted.
4981 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4982 (valid_gdb_inferior_id): Delete.
4983 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4984 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4985 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4986 ...
4987 <inf>: ... this new field.
4988 <step_ptid>: Delete, replaced by ...
4989 <step_thread>: ... this new field.
4990 (get_displaced_stepping_state): Take an inferior pointer instead
4991 of a pid. All callers adjusted.
4992 (displaced_step_in_progress_any_inferior): Adjust.
4993 (displaced_step_in_progress_thread): Take a thread pointer instead
4994 of a ptid_t. All callers adjusted.
4995 (displaced_step_in_progress, add_displaced_stepping_state): Take
4996 an inferior pointer instead of a pid. All callers adjusted.
4997 (get_displaced_step_closure_by_addr): Adjust.
4998 (remove_displaced_stepping_state): Take an inferior pointer
4999 instead of a pid. All callers adjusted.
5000 (displaced_step_prepare_throw, displaced_step_prepare)
5001 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5002 All callers adjusted.
5003 (start_step_over): Adjust.
5004 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5005 displaced step queue.
5006 (do_target_resume): Adjust.
5007 (fetch_inferior_event): Use inferior_thread.
5008 (context_switch, get_inferior_stop_soon): Take an
5009 execution_control_state pointer instead of a ptid_t. All callers
5010 adjusted.
5011 (switch_to_thread_cleanup): Delete.
5012 (stop_all_threads): Use scoped_restore_current_thread.
5013 * inline-frame.c: Include "gdbthread.h".
5014 (inline_state) <inline_state>: Take a thread pointer instead of a
5015 ptid_t. All callers adjusted.
5016 <ptid>: Delete, replaced by ...
5017 <thread>: ... this new field.
5018 (find_inline_frame_state): Take a thread pointer instead of a
5019 ptid_t. All callers adjusted.
5020 (skip_inline_frames, step_into_inline_frame)
5021 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5022 pointer instead of a ptid_t. All callers adjusted.
5023 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5024 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5025 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5026 pointers directly.
5027 * linux-nat.c (get_detach_signal): Likewise.
5028 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5029 (thread_db_notice_clone): Adjust.
5030 (thread_db_find_new_threads_silently)
5031 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5032 a thread pointer instead of a ptid_t. All callers adjusted.
5033 * mi/mi-cmd-var.c: Include "inferior.h".
5034 (mi_cmd_var_update_iter): Update to use thread pointers.
5035 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5036 inferior directly.
5037 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5038 out to ...
5039 (mi_output_running): ... this new function.
5040 (mi_on_resume_1): Adjust to use it.
5041 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5042 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5043 directly.
5044 (interrupt_thread_callback): : Adjust to use thread and inferior
5045 pointers.
5046 * proc-service.c: Include "gdbthread.h".
5047 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5048 * progspace-and-thread.c: Include "inferior.h".
5049 * progspace.c: Include "inferior.h".
5050 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5051 hold a reference to an inferior_object.
5052 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5053 inferior_thread.
5054 * python/py-inferior.c (struct inferior_object): Give the type a
5055 tag name instead of a typedef.
5056 (python_on_normal_stop): No need to check if the current thread is
5057 listed.
5058 (inferior_to_inferior_object): Change return type to
5059 inferior_object. All callers adjusted.
5060 (find_thread_object): Delete, bits factored out to ...
5061 (thread_to_thread_object): ... this new function.
5062 * python/py-infthread.c (create_thread_object): Use
5063 inferior_to_inferior_object.
5064 (thpy_is_stopped): Use thread pointer directly.
5065 (gdbpy_selected_thread): Use inferior_thread.
5066 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5067 field, replaced with ...
5068 <thread>: ... this new field. All users adjusted.
5069 (btpy_insn_or_gap_new): Drop const.
5070 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5071 callers adjusted.
5072 * python/py-record.c: Include "gdbthread.h".
5073 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5074 a ptid_t. All callers adjusted.
5075 (gdbpy_current_recording): Use inferior_thread.
5076 * python/py-record.h (recpy_record_object) <ptid>: Delete
5077 field, replaced with ...
5078 <thread>: ... this new field. All users adjusted.
5079 (recpy_element_object) <ptid>: Delete
5080 field, replaced with ...
5081 <thread>: ... this new field. All users adjusted.
5082 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5083 a ptid_t. All callers adjusted.
5084 * python/py-threadevent.c: Include "gdbthread.h".
5085 (get_event_thread): Use thread_to_thread_object.
5086 * python/python-internal.h (struct inferior_object): Forward
5087 declare.
5088 (find_thread_object, find_inferior_object): Delete declarations.
5089 (thread_to_thread_object, inferior_to_inferior_object): New
5090 declarations.
5091 * record-btrace.c: Include "inferior.h".
5092 (require_btrace_thread): Use inferior_thread.
5093 (record_btrace_frame_sniffer)
5094 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5095 (get_thread_current_frame): Use scoped_restore_current_thread and
5096 switch_to_thread.
5097 (get_thread_current_frame): Use thread pointer directly.
5098 (record_btrace_replay_at_breakpoint): Use thread's inferior
5099 pointer directly.
5100 * record-full.c: Include "inferior.h".
5101 * regcache.c: Include "gdbthread.h".
5102 (get_thread_arch_regcache): Use the inferior's address space
5103 directly.
5104 (get_thread_regcache, registers_changed_thread): New.
5105 * regcache.h (get_thread_regcache(thread_info *thread)): New
5106 overload.
5107 (registers_changed_thread): New.
5108 (remote_target) <remote_detach_1>: Swap order of parameters.
5109 (remote_add_thread): <remote_add_thread>: Return the new thread.
5110 (get_remote_thread_info(ptid_t)): New overload.
5111 (remote_target::remote_notice_new_inferior): Use thread pointers
5112 directly.
5113 (remote_target::process_initial_stop_replies): Use
5114 thread_info::set_running.
5115 (remote_target::remote_detach_1, remote_target::detach)
5116 (extended_remote_target::detach): Adjust.
5117 * stack.c (frame_show_address): Use inferior_thread.
5118 * target-debug.h (target_debug_print_thread_info_pp): New.
5119 * target-delegates.c: Regenerate.
5120 * target.c (default_thread_address_space): Delete.
5121 (memory_xfer_partial_1): Use current_inferior.
5122 (target_detach): Use current_inferior.
5123 (target_thread_address_space): Delete.
5124 (generic_mourn_inferior): Use current_inferior.
5125 * target.h (struct target_ops) <thread_address_space>: Delete.
5126 (target_thread_address_space): Delete.
5127 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5128 pointers directly.
5129 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5130 thread pointer instead of a ptid_t. Adjust all callers.
5131 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5132 (first_thread_of_process): Delete, replaced by ...
5133 (first_thread_of_inferior): ... this new function. All callers
5134 adjusted.
5135 (any_thread_of_process): Rename to ...
5136 (any_thread_of_inferior): ... this, and take an inferior pointer.
5137 (any_live_thread_of_process): Rename to ...
5138 (any_live_thread_of_inferior): ... this, and take an inferior
5139 pointer.
5140 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5141 (value_in_thread_stack_temporaries)
5142 (get_last_thread_stack_temporary): Take a thread pointer instead
5143 of a ptid_t. Adjust all callers.
5144 (thread_info::set_running): New.
5145 (validate_registers_access): Use inferior_thread.
5146 (can_access_registers_ptid): Rename to ...
5147 (can_access_registers_thread): ... this, and take a thread
5148 pointer.
5149 (print_thread_info_1): Adjust to compare thread pointers instead
5150 of ptids.
5151 (switch_to_no_thread, switch_to_thread): Make extern.
5152 (scoped_restore_current_thread::~scoped_restore_current_thread):
5153 Use m_thread pointer directly.
5154 (scoped_restore_current_thread::scoped_restore_current_thread):
5155 Use inferior_thread.
5156 (thread_command): Use thread pointer directly.
5157 (thread_num_make_value_helper): Use inferior_thread.
5158 * top.c (execute_command): Use inferior_thread.
5159 * tui/tui-interp.c: Include "inferior.h".
5160 * varobj.c (varobj_create): Use inferior_thread.
5161 (value_of_root_1): Use find_thread_global_id instead of
5162 global_thread_id_to_ptid.
5163
33bab475
AH
51642018-06-21 Alan Hayward <alan.hayward@arm.com>
5165
5166 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5167 possible.
5168 (regcache::write_part): Likewise.
5169 (readable_regcache::cooked_read_part): Update comment.
5170 (readable_regcache::cooked_write_part): Likewise.
5171 * regcache.h: (readable_regcache::read_part): Likewise.
5172 (regcache::write_part): Likewise.
5173
8363f9d5
RB
51742018-06-21 Richard Bunt <richard.bunt@arm.com>
5175 Dirk Schubert <dirk.schubert@arm.com>
5176
5177 * aarch64-linux-nat.c (post_attach): New.
5178 (aarch64_linux_nat_target::post_attach): Override post_attach to
5179 record the number of hardware debug registers.
5180
0d0b0ea2
TT
51812018-06-20 Tom Tromey <tom@tromey.com>
5182
5183 * python/py-param.c (add_setshow_generic): Make parameters const.
5184 (parmpy_init): Update.
5185
302abd6e
SM
51862018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5187
5188 * regcache.h (regcache_cooked_read_ftype): Rename to...
5189 (register_read_ftype): ...this, change type to function_view.
5190 (class reg_buffer) <save>: Remove src parameter.
5191 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5192 parameter non-const in first overload. Remove src parameter in
5193 second overload.
5194 * regcache.c (do_cooked_read): Remove.
5195 (readonly_detached_regcache::readonly_detached_regcache): Make
5196 parameter non-const, adjust call to other constructor.
5197 (reg_buffer::save): Remove src parameter.
5198 * frame.c (do_frame_register_read): Remove.
5199 (frame_save_as_regcache): Use lambda function.
5200 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5201 parameter to ppu2spu_data *.
5202 (ppu2spu_sniffer): Use lambda function.
5203
19f3f25f
SM
52042018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5205
5206 * record-full.c (record_full_target::insert_breakpoint): Remove
5207 "struct" keyword, add const.
5208
d0ac1c44
SM
52092018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5210
5211 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5212 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5213 * configure.ac: Remove AC_PREREQ, add missing quoting.
5214 * gnulib/configure.ac: Modernize usage of
5215 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5216 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5217 (AUTOMAKE_VERSION): Bump to 1.15.1.
5218 * configure: Re-generate.
5219 * config.in: Re-generate.
5220 * aclocal.m4: Re-generate.
5221 * gnulib/aclocal.m4: Re-generate.
5222 * gnulib/config.in: Re-generate.
5223 * gnulib/configure: Re-generate.
5224 * gnulib/import/Makefile.in: Re-generate.
5225
6ae50267
PA
52262018-06-19 Pedro Alves <palves@redhat.com>
5227
5228 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5229 (lookup_minimal_symbol_by_pc_section): ... here with
5230 gdb_assert_not_reached added.
5231
61b04dd0
PA
52322018-06-19 Pedro Alves <palves@redhat.com>
5233
5234 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5235 parameter with a block parameter. Compare location's block symbol
5236 with the frame's block instead of addresses.
5237 (skip_inline_frames): Pass the current block instead of the
5238 frame's address. Break out as soon as we determine the frame
5239 should not be skipped.
5240
f709fabb
TT
52412018-06-18 Tom Tromey <tom@tromey.com>
5242
5243 * solib-aix.c (solib_aix_get_section_offsets): Return
5244 unique_xmalloc_ptr.
5245 (solib_aix_solib_create_inferior_hook): Update.
5246
668eb2f0
TT
52472018-06-18 Tom Tromey <tom@tromey.com>
5248
5249 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5250
309822ca
TT
52512018-06-18 Tom Tromey <tom@tromey.com>
5252
5253 * solib-frv.c (frv_relocate_main_executable): Use
5254 unique_xmalloc_ptr.
5255 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5256 unique_xmalloc_ptr.
5257
06424eac
TT
52582018-06-18 Tom Tromey <tom@tromey.com>
5259
5260 * objfiles.h (inhibit_section_map_updates): Update.
5261 (resume_section_map_updates, resume_section_map_updates_cleanup):
5262 Remove.
5263 * solib-svr4.c (svr4_handle_solib_event): Update.
5264 * objfiles.c (inhibit_section_map_updates): Return
5265 scoped_restore_tmpl<int>.
5266 (resume_section_map_updates, resume_section_map_updates_cleanup):
5267 Remove.
5268
b4be9fad
TT
52692018-06-18 Tom Tromey <tom@tromey.com>
5270
5271 * valprint.h (read_string): Update.
5272 * valprint.c (read_string): Change type of "buffer".
5273 (val_print_string): Update.
5274 * python/py-value.c (valpy_string): Update.
5275 * language.h (struct language_defn) <la_get_string>: Change
5276 type of "buffer".
5277 (default_get_string, c_get_string): Update.
5278 * language.c (default_get_string): Change type of "buffer".
5279 * guile/scm-value.c (gdbscm_value_to_string): Update.
5280 * c-lang.c (c_get_string): Change type of "buffer".
5281
3f0dbd67
TT
52822018-06-18 Tom Tromey <tom@tromey.com>
5283
5284 * ser-mingw.c (struct pipe_state_destroyer): New.
5285 (pipe_state_up): New typedef.
5286 (cleanup_pipe_state): Remove.
5287 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5288
69d340c6
TT
52892018-06-18 Tom Tromey <tom@tromey.com>
5290
5291 * rust-lang.h (rust_yyerror): Don't declare.
5292 * rust-lang.c (rust_language_defn): Update.
5293 * rust-exp.y (yyerror): Now static.
5294 * parse.c (parse_exp_in_context_1): Update.
5295 * p-lang.h (p_yyerror): Don't declare.
5296 * p-lang.c (p_language_defn): Update.
5297 * p-exp.y (yyerror): Now static.
5298 * opencl-lang.c (opencl_language_defn): Update.
5299 * objc-lang.c (objc_language_defn): Update.
5300 * m2-lang.h (m2_yyerror): Don't declare.
5301 * m2-lang.c (m2_language_defn): Update.
5302 * m2-exp.y (yyerror): Now static.
5303 * language.h (struct language_defn) <la_error>: Remove.
5304 * language.c (unk_lang_error): Remove.
5305 (unknown_language_defn, auto_language_defn): Remove.
5306 * go-lang.h (go_yyerror): Don't declare.
5307 * go-lang.c (go_language_defn): Update.
5308 * go-exp.y (yyerror): Now static.
5309 * f-lang.h (f_yyerror): Don't declare.
5310 * f-lang.c (f_language_defn): Update.
5311 * f-exp.y (yyerror): Now static.
5312 * d-lang.h (d_yyerror): Don't declare.
5313 * d-lang.c (d_language_defn): Update.
5314 * d-exp.y (yyerror): Now static.
5315 * c-lang.h (c_yyerror): Don't declare.
5316 * c-lang.c (c_language_defn, cplus_language_defn)
5317 (asm_language_defn, minimal_language_defn): Update.
5318 * c-exp.y (yyerror): Now static.
5319 * ada-lang.h (ada_yyerror): Don't declare.
5320 * ada-lang.c (ada_language_defn): Update.
5321 * ada-exp.y (yyerror): Now static.
5322
e9902bfc
AH
53232018-06-18 Alan Hayward <alan.hayward@arm.com>
5324
5325 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5326 (store_sveregs_to_thread): Likewise.
5327 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5328 (aarch64_linux_store_inferior_registers): Likewise.
5329 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5330 function.
5331 (aarch64_sve_regs_copy_to_regcache): Likewise.
5332 (aarch64_sve_regs_copy_from_regcache): Likewise.
5333 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5334 declaration.
5335 (aarch64_sve_regs_copy_to_regcache): Likewise.
5336 (aarch64_sve_regs_copy_from_regcache): Likewise.
5337 (sve_context): Structure from Linux headers.
5338 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5339 (SVE_SIG_ZREG_SIZE): Likewise.
5340 (SVE_SIG_PREG_SIZE): Likewise.
5341 (SVE_SIG_FFR_SIZE): Likewise.
5342 (SVE_SIG_REGS_OFFSET): Likewise.
5343 (SVE_SIG_ZREGS_OFFSET): Likewise.
5344 (SVE_SIG_ZREG_OFFSET): Likewise.
5345 (SVE_SIG_ZREGS_SIZE): Likewise.
5346 (SVE_SIG_PREGS_OFFSET): Likewise.
5347 (SVE_SIG_PREG_OFFSET): Likewise.
5348 (SVE_SIG_PREGS_SIZE): Likewise.
5349 (SVE_SIG_FFR_OFFSET): Likewise.
5350 (SVE_SIG_REGS_SIZE): Likewise.
5351 (SVE_SIG_CONTEXT_SIZE): Likewise.
5352 (SVE_PT_REGS_MASK): Likewise.
5353 (SVE_PT_REGS_FPSIMD): Likewise.
5354 (SVE_PT_REGS_SVE): Likewise.
5355 (SVE_PT_VL_INHERIT): Likewise.
5356 (SVE_PT_VL_ONEXEC): Likewise.
5357 (SVE_PT_REGS_OFFSET): Likewise.
5358 (SVE_PT_FPSIMD_OFFSET): Likewise.
5359 (SVE_PT_FPSIMD_SIZE): Likewise.
5360 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5361 (SVE_PT_SVE_PREG_SIZE): Likewise.
5362 (SVE_PT_SVE_FFR_SIZE): Likewise.
5363 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5364 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5365 (__SVE_SIG_TO_PT): Likewise.
5366 (SVE_PT_SVE_OFFSET): Likewise.
5367 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5368 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5369 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5370 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5371 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5372 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5373 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5374 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5375 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5376 (SVE_PT_SVE_SIZE): Likewise.
5377 (SVE_PT_SIZE): Likewise.
5378 (HAS_SVE_STATE): New define.
5379
17a1cc89
AH
53802018-06-18 Alan Hayward <alan.hayward@arm.com>
5381
5382 * nat/aarch64-sve-linux-sigcontext.h: New file.
5383 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5384 new files.
5385 (SVE_VQ_MIN): Likewise.
5386 (SVE_VQ_MAX): Likewise.
5387 (SVE_VL_MIN): Likewise.
5388 (SVE_VL_MAX): Likewise.
5389 (SVE_NUM_ZREGS): Likewise.
5390 (SVE_NUM_PREGS): Likewise.
5391 (sve_vl_valid): Likewise.
5392 (struct user_sve_header): Likewise.
5393
7010835a
AB
53942018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5395 Richard Bunt <Richard.Bunt@arm.com>
5396
5397 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5398 was requested by GDB.
5399
479b3ef4
TV
54002018-06-15 Tom de Vries <tdevries@suse.de>
5401
5402 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5403
8199b8f4
SM
54042018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5405
5406 * gnulib/update-gnulib.sh: Print expected versions of
5407 autoconf/aclocal.
5408
55c748a1
SM
54092018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5410
5411 * arch-utils.c (default_type_align): Use type_length_units.
5412 * gdbtypes.c (type_align): Use type_length_units.
5413
87a8eca7
PW
54142018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5415
5416 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5417 of 'define' command.
5418
5d9a0608
TV
54192018-06-14 Tom de Vries <tdevries@suse.de>
5420
5421 PR cli/22573
5422 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5423 get_no_prettyformat_print_options.
5424
ab89b5a5
SM
54252018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5426
5427 * sparc-nat.h: Include target.h.
5428 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5429 <fetch_registers>: Remove this argument in function call.
5430 <store_registers>: Remove this argument in function call, remove
5431 extra semicolon.
5432 <low_forget_process>: Call sparc64_forget_process instead of
5433 sparc_forget_process.
5434
62c808ae
RO
54352018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5436
5437 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5438 (procfs_target::make_corefile_notes): Adjust to new
5439 target_read_alloc return type.
5440
1840d81a
AB
54412018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5442 Stephen Roberts <stephen.roberts@arm.com>
5443
5444 PR gdb/22882
5445 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5446 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5447 Move should_notify_stop local into more inner scope.
5448
9516f85a
AB
54492018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5450 Stephen Roberts <stephen.roberts@arm.com>
5451
5452 PR gdb/22882
5453 * infrun.c (resume_1): Add call to mark_async_event_handler.
5454
defd2172
AB
54552018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5456
5457 * infrun.c (do_target_wait): Change old version of $pc printed.
5458
7b23e087
SM
54592018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5460
5461 * dwarf2read.c (read_index_from_section): Rename to...
5462 (read_gdb_index_from_section): ... this, update all callers.
5463 (dwarf2_read_index): Rename to...
5464 (dwarf2_read_gdb_index): ... this, update all callers.
5465
69c67a0b
JDA
54662018-06-11 John David Anglin <danglin@gcc.gnu.org>
5467
5468 * gdb/hppa-linux-nat.c
5469 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5470 hppa_linux_nat_target::fetch_registers.
5471
65d4cada
AH
54722018-06-11 Alan Hayward <alan.hayward@arm.com>
5473
5474 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5475 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5476 (AARCH64_DWARF_SVE_FFR): Likewise.
5477 (AARCH64_DWARF_SVE_P0): Likewise.
5478 (AARCH64_DWARF_SVE_Z0): Likewise.
5479
f868386e
AH
54802018-06-11 Alan Hayward <alan.hayward@arm.com>
5481
5482 * common/common-regcache.h (raw_compare): New function.
5483 * regcache.c (regcache::raw_compare): Likewise.
5484 * regcache.h (regcache::raw_compare): New declaration.
5485
9c861883
AH
54862018-06-11 Alan Hayward <alan.hayward@arm.com>
5487
5488 * common/common-regcache.h (reg_buffer_common): New structure.
5489 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5490 (reg_buffer::raw_supply): Likewise.
5491 (reg_buffer::raw_supply_integer): Likewise.
5492 (reg_buffer::raw_supply_zeroed): Likewise.
5493 (reg_buffer::raw_collect): Likewise.
5494 (reg_buffer::raw_collect_integer): Likewise.
5495 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5496 (reg_buffer::raw_supply): Likewise.
5497 (reg_buffer::raw_supply_integer): Likewise.
5498 (reg_buffer::raw_supply_zeroed): Likewise.
5499 (reg_buffer::raw_collect): Likewise.
5500 (reg_buffer::raw_collect_integer): Likewise.
5501
953edf2b
TT
55022018-06-10 Tom Tromey <tom@tromey.com>
5503
5504 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5505 (class remote_state) <stop_reply_queue>: Now std::vector.
5506 (remote_state::~remote_state)
5507 (remote_target::stop_reply_queue_length): Update.
5508 (struct queue_iter_param, remove_child_of_pending_fork)
5509 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5510 (check_pending_event_prevents_wildcard_vcont_callback)
5511 (remove_stop_reply_for_inferior)
5512 (remove_stop_reply_of_remote_state)
5513 (remote_notif_remove_once_on_match)
5514 (stop_reply_match_ptid_and_ws)
5515 (remote_kill_child_of_pending_fork): Remove.
5516 (remote_target::remove_new_fork_children)
5517 (remote_target::check_pending_events_prevent_wildcard_vcont)
5518 (remote_target::discard_pending_stop_replies)
5519 (remote_target::discard_pending_stop_replies_in_queue)
5520 (remote_target::remote_notif_remove_queued_reply)
5521 (remote_target::queued_stop_reply)
5522 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5523 (remote_target::wait, remote_target::kill_new_fork_children)
5524 (remote_target::async): Update.
5525
1ddbba9d
TT
55262018-06-10 Tom Tromey <tom@tromey.com>
5527
5528 * record-full.c (record_full_arch_list_cleanups): Remove.
5529 (record_full_message): Use try/catch.
5530 (record_full_wait_cleanups): Remove.
5531 (record_full_wait_1): Use try/catch.
5532 (record_full_restore): Likewise.
5533
219605fd
TT
55342018-06-10 Tom Tromey <tom@tromey.com>
5535
5536 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5537 declare VEC. Add constructor.
5538 <in_target_beneath>: Now bool.
5539 (record_full_breakpoints): Now a std::vector, static.
5540 (record_full_sync_record_breakpoints)
5541 (record_full_init_record_breakpoints)
5542 (record_full_target::insert_breakpoint)
5543 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5544
71b73764
SM
55452018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5546
5547 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5548 * serial.c (serial_interface_lookup): Remove struct keyword.
5549
4360561f
TT
55502018-06-10 Tom Tromey <tom@tromey.com>
5551
5552 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5553 method.
5554 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5555 a method.
5556 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5557 method.
5558 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5559 "beneath" as a method.
5560 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5561 Use "beneath" as a method.
5562
d14b92bf
TT
55632018-06-10 Tom Tromey <tom@tromey.com>
5564
5565 * tracefile.c (struct trace_file_writer_deleter): New.
5566 <operator()>: Rename from trace_file_writer_xfree.
5567 (trace_file_writer_up): New typedef.
5568 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5569
835dcf92
SM
55702018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5571
5572 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5573 <m_registers, m_register_status>: Change type to
5574 std::unique_ptr.
5575 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5576 XCNEWVEC.
5577
aac0d564
SM
55782018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5579
5580 * common/common-regcache.h (enum register_status): Add
5581 underlying type "signed char".
5582 * regcache.h (reg_buffer) <m_register_status>: Change type to
5583 register_status *.
5584 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5585 register_status instead of signed char.
5586 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5587 (reg_buffer::get_register_status): Remove cast.
5588 (readable_regcache::raw_read): Remove cast.
5589 (readable_regcache::cooked_read): Remove cast.
5590
77ad7394
TT
55912018-06-09 Tom Tromey <tom@tromey.com>
5592
5593 * source.c (reverse_search_command, forward_search_command): Use
5594 scoped_fd.
5595
191cca63
TT
55962018-06-09 Tom Tromey <tom@tromey.com>
5597
5598 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5599 (serial_ops_list): Now static, std::vector.
5600 (serial_interface_lookup, serial_add_interface): Update.
5601
c5d0225d
TT
56022018-06-09 Tom Tromey <tom@tromey.com>
5603
5604 * dwarf2read.c (process_cu_includes): Update.
5605 (process_full_comp_unit): Update.
5606 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5607 std::vector.
5608
aeab5128
PK
56092018-06-08 Paul Koning <paul_koning@dell.com>
5610
5611 PR gdb/23252
5612
5613 * python/python.c (do_start_initialization):
5614 Avoid call to internal Python API.
5615 (init__gdb_module): New function.
5616
5045b3d7
GB
56172018-06-08 Gary Benson <gbenson@redhat.com>
5618
5619 * linux-thread-db.c (valprint.h): New include.
5620 (struct check_thread_db_info): New structure.
5621 (check_thread_db_on_load, tdb_testinfo): New static globals.
5622 (check_thread_db, check_thread_db_callback): New functions.
5623 (try_thread_db_load_1): Run integrity checks if requested.
5624 (maintenance_check_libthread_db): New function.
5625 (_initialize_thread_db): Register "maint check libthread-db"
5626 and "maint set/show check-libthread-db".
5627 * NEWS: Mention the above new commands.
5628
2f4f025f
TT
56292018-06-08 Tom Tromey <tom@tromey.com>
5630
5631 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5632 now a method.
5633
343b0027
TT
56342018-06-08 Tom Tromey <tom@tromey.com>
5635
5636 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5637
8dcc53b3
TT
56382018-06-08 Tom Tromey <tom@tromey.com>
5639
5640 * common/btrace-common.h (struct btrace_data): Add constructor,
5641 destructor, move assignment operator.
5642 <empty, clear, fini>: New methods.
5643 <format>: Initialize.
5644 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5645 (btrace_data_empty): Don't declare.
5646 * common/btrace-common.c (btrace_data_init): Remove.
5647 (btrace_data::fini): Rename from btrace_data_fini.
5648 (btrace_data::empty): Rename from btrace_data_empty.
5649 (btrace_data::clear): Rename from btrace_data_clear. Return
5650 bool.
5651 * btrace.h (make_cleanup_btrace_data): Don't declare.
5652 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5653 (parse_xml_btrace): Update.
5654 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5655 (maint_btrace_clear_packet_history_cmd): Update.
5656
a1740ee1
PA
56572018-06-07 Pedro Alves <palves@redhat.com>
5658
5659 * target.h (target_ops) <beneath>: Now a method. All references
5660 updated.
5661 (class target_stack): New.
5662 * target.c (g_target_stack): New.
5663 (g_current_top_target): Delete.
5664 (current_top_target): Get the top target out of g_target_stack.
5665 (target_stack::push, target_stack::unpush): New.
5666 (push_target, unpush_target): Reimplement.
5667 (target_is_pushed): Reimplement in terms of g_target_stack.
5668 (target_ops::beneath, target_stack::find_beneath): New.
5669
d6ca69cd
PA
56702018-06-07 Pedro Alves <palves@redhat.com>
5671
5672 * target.h (find_target_beneath): Delete declaration.
5673 * target.c (find_target_beneath): Delete definition.
5674 * aix-thread.c: All callers of find_target_beneath adjusted to
5675 call target_ops::beneath instead.
5676 * bsd-uthread.c: Likewise.
5677 * linux-thread-db.c: Likewise.
5678 * ravenscar-thread.c: Likewise.
5679 * sol-thread.c: Likewise.
5680 * spu-multiarch.c: Likewise.
5681
b6a8c27b
PA
56822018-06-07 Pedro Alves <palves@redhat.com>
5683
5684 * target.h (target_ops) <beneath>: Now a method. All references
5685 updated.
5686 (target_ops) <m_beneath>: New.
5687 * target.c (target_ops::beneath): New.
5688 * corelow.c: Adjust all references to target_ops::beneath.
5689 * linux-thread-db.c: Likewise.
5690 * make-target-delegates: Likewise.
5691 * record-btrace.c: Likewise.
5692 * record-full.c: Likewise.
5693 * remote.c: Likewise.
5694 * target.c: Likewise.
5695 * target-delegates.c: Regenerate.
5696
8b88a78e
PA
56972018-06-07 Pedro Alves <palves@redhat.com>
5698
5699 * target.h (target_stack): Delete.
5700 (current_top_target): Declare function.
5701 * target.c (target_stack): Delete.
5702 (g_current_top_target): New.
5703 (current_top_target): New function.
5704 * auxv.c: Use current_top_target instead of target_stack
5705 throughout.
5706 * avr-tdep.c: Likewise.
5707 * breakpoint.c: Likewise.
5708 * corefile.c: Likewise.
5709 * elfread.c: Likewise.
5710 * eval.c: Likewise.
5711 * exceptions.c: Likewise.
5712 * frame.c: Likewise.
5713 * gdbarch-selftests.c: Likewise.
5714 * gnu-v3-abi.c: Likewise.
5715 * ia64-tdep.c: Likewise.
5716 * ia64-vms-tdep.c: Likewise.
5717 * infcall.c: Likewise.
5718 * infcmd.c: Likewise.
5719 * infrun.c: Likewise.
5720 * linespec.c: Likewise.
5721 * linux-tdep.c: Likewise.
5722 * minsyms.c: Likewise.
5723 * ppc-linux-nat.c: Likewise.
5724 * ppc-linux-tdep.c: Likewise.
5725 * procfs.c: Likewise.
5726 * regcache.c: Likewise.
5727 * remote.c: Likewise.
5728 * rs6000-tdep.c: Likewise.
5729 * s390-linux-nat.c: Likewise.
5730 * s390-tdep.c: Likewise.
5731 * solib-aix.c: Likewise.
5732 * solib-darwin.c: Likewise.
5733 * solib-dsbt.c: Likewise.
5734 * solib-spu.c: Likewise.
5735 * solib-svr4.c: Likewise.
5736 * solib-target.c: Likewise.
5737 * sparc-tdep.c: Likewise.
5738 * sparc64-tdep.c: Likewise.
5739 * spu-tdep.c: Likewise.
5740 * symfile.c: Likewise.
5741 * symtab.c: Likewise.
5742 * target-descriptions.c: Likewise.
5743 * target-memory.c: Likewise.
5744 * target.c: Likewise.
5745 * target.h: Likewise.
5746 * tracefile-tfile.c: Likewise.
5747 * tracepoint.c: Likewise.
5748 * valops.c: Likewise.
5749 * valprint.c: Likewise.
5750 * value.c: Likewise.
5751 * windows-tdep.c: Likewise.
5752 * mi/mi-main.c: Likewise.
5753
c7110220
TT
57542018-06-07 Tom Tromey <tom@tromey.com>
5755
5756 * valprint.h (build_address_symbolic): Declare.
5757 * printcmd.c (print_address_symbolic): Update.
5758 (build_address_symbolic): Change "name" and "filename" to
5759 std::string.
5760 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5761 Update.
5762 * defs.h (build_address_symbolic): Remove declaration.
5763
63bad7b6
AH
57642018-06-07 Alan Hayward <alan.hayward@arm.com>
5765
5766 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5767 (aarch64_vnv_type): Add function.
5768 (aarch64_pseudo_register_name): Add V regs for SVE.
5769 (aarch64_pseudo_register_type): Likewise.
5770 (aarch64_pseudo_register_reggroup_p): Likewise.
5771 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5772 (aarch64_pseudo_read_value): Add V regs for SVE.
5773 (aarch64_pseudo_write_2): Use V0 offset for SVE
5774 (aarch64_pseudo_write): Add V regs for SVE.
5775 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5776
13e3c608
SDJ
57772018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5778
5779 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5780 (sve_vl_from_vq): Likewise.
5781
c61b06a1
TT
57822018-06-05 Tom Tromey <tom@tromey.com>
5783
5784 * cli/cli-cmds.c (show_version): Update.
5785 * top.c (print_gdb_version): Add "interactive" parameter.
5786 Update.
5787 * main.c (captured_main_1): Update.
5788 * top.h (print_gdb_version): Add "interactive" parameter and a
5789 comment.
5790
115f7325
DM
57912018-06-05 David Malcolm <dmalcolm@redhat.com>
5792
5793 * common/enum-flags.h: Add trailing semicolon to example in
5794 comment.
5795
eb6af809
TT
57962018-06-05 Tom Tromey <tom@tromey.com>
5797
5798 PR cli/12326:
5799 * NEWS: Add entry about pager.
5800 * utils.c (pagination_disabled_for_command): New global.
5801 (prompt_for_continue): Allow "c" response to prompt.
5802 (reinitialize_more_filter): Clear
5803 pagination_disabled_for_command.
5804 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5805
54d343a2
TT
58062018-06-04 Tom Tromey <tom@tromey.com>
5807
5808 * ada-lang.h (ada_lookup_symbol_list): Update.
5809 * ada-lang.c (resolve_subexp): Update.
5810 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5811 parameter.
5812 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5813 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5814 results parameter to std::vector.
5815 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5816 Update.
5817 * ada-exp.y (block_lookup): Update.
5818 (select_possible_type_sym): Change type of syms. Remove nsyms
5819 parameter.
5820 (write_var_or_type, write_name_assoc): Update.
5821
178d6a63
JB
58222018-06-04 Joel Brobecker <brobecker@adacore.com>
5823
5824 * windows-nat.c (windows_nat_target::xfer_partial): Return
5825 TARGET_XFER_E_IO if we need to delegate to the target beneath
5826 but BENEATH is NULL.
5827
baf00c2d
SM
58282018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5829
5830 * Makefile.in (config.status): Add configure.nat as a
5831 dependency.
5832
214b073c
TT
58332018-06-04 Tom Tromey <tom@tromey.com>
5834
5835 * cp-name-parser.y (cpname_state): Add method declarations.
5836 (HANDLE_QUAL): Update.
5837 (cpname_state::d_grab, cpname_state::fill_comp)
5838 (cpname_state::make_operator, cpname_state::make_dtor)
5839 (cpname_state::make_builtin_type, cpname_state::make_name)
5840 (cpname_state::d_qualify, cpname_state::d_int_type)
5841 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5842 (%union): Move earlier.
5843
62b74cb8
AH
58442018-06-04 Alan Hayward <alan.hayward@arm.com>
5845
5846 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5847
3c5cd5c3
AH
58482018-06-04 Alan Hayward <alan.hayward@arm.com>
5849
5850 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5851 (aarch64_pseudo_write_1): Likewise.
5852 (aarch64_pseudo_read_value): Use helper.
5853 (aarch64_pseudo_write): Likewise.
5854
59f413d5
PA
58552018-06-04 Pedro Alves <palves@redhat.com>
5856
5857 * darwin-nat.c (darwin_ops): Delete.
5858 (darwin_attach_pid): Use get_native_target.
5859
1332a140
AH
58602018-06-04 Alan Hayward <alan.hayward@arm.com>
5861
5862 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5863 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5864
ba2d2bb2
AH
58652018-06-04 Alan Hayward <alan.hayward@arm.com>
5866
5867 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5868 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5869 (aarch64_gdbarch_init): Check for SVE.
5870 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5871
58722018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
5873
5874 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5875 * aarch64-tdep.h (aarch64_read_description): Likewise.
5876 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5877 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5878 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5879 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5880 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5881
41c60b4b
SM
58822018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5883
5884 * value.c (value_fetch_lazy_bitfield): New.
5885 (value_fetch_lazy_memory): New.
5886 (value_fetch_lazy_register): New.
5887 (value_fetch_lazy): Factor out to smaller functions.
5888
7b640f72
TT
58892018-06-01 Tom Tromey <tom@tromey.com>
5890
5891 * cp-name-parser.y (backslashable, represented): Now const.
5892
98e69eb3
TT
58932018-06-01 Tom Tromey <tom@tromey.com>
5894
5895 * cp-name-parser.y: Include parser-defs.h.
5896 (parser_fprintf): Remove declaration.
5897
49265499
TT
58982018-06-01 Tom Tromey <tom@tromey.com>
5899
5900 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5901 %parse-param.
5902 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5903 (global_result): Remove globals.
5904 (struct cpname_state): New.
5905 (yyparse): Don't declare.
5906 (yylex, yyerror): Move declarations after %union.
5907 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5908 (make_name): Add state parameter.
5909 Update all callers.
5910 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5911 parameter.
5912 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5913 Update.
5914 (yylex): Add lvalp, state parameters.
5915 (yyerror): Add state parameter.
5916 (cp_demangled_name_to_comp): Update.
5917
55b6c984
TT
59182018-06-01 Tom Tromey <tom@tromey.com>
5919
5920 * cp-name-parser.y (parser_fprintf): Declare.
5921 (GDB_YY_REMAP_PREFIX): Define.
5922 Include yy-remap.h. Don't redefine yy* identifiers.
5923
3513a6bb
TT
59242018-06-01 Tom Tromey <tom@tromey.com>
5925
5926 * python/py-type.c (typy_legacy_template_argument): Update.
5927 * cp-support.h (cp_demangled_name_to_comp): Update.
5928 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5929 parameter to be a "std::string *".
5930 (main): Update.
5931
e9cb46ab
L
59322018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5933
5934 * ada-lex.l: Include "diagnostics.h" instead of
5935 "common/diagnostics.h".
5936 * unittests/environ-selftests.c: Likewise.
5937 * common/diagnostics.h: Moved to ../include.
5938
8e817061
JB
59392018-06-01 Joel Brobecker <brobecker@adacore.com>
5940
5941 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5942 to language_mode_manual while calling breakpoint_re_set_one.
5943
a737d952
TT
59442018-06-01 Tom Tromey <tom@tromey.com>
5945
5946 * valops.c (value_cast_structs, destructor_name_p): Update.
5947 * symtab.c (gdb_mangle_name): Update.
5948 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5949 Update.
5950 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5951 (pascal_object_print_value_fields, pascal_object_print_value):
5952 Update.
5953 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5954 * linespec.c (find_methods): Update.
5955 * gdbtypes.h (type_name_no_tag): Remove.
5956 (type_name_or_error): Rename from type_name_no_tag_or_error.
5957 * gdbtypes.c (type_name_no_tag): Remove.
5958 (type_name_or_error): Rename from type_name_no_tag_or_error.
5959 (lookup_struct_elt_type, check_typedef): Update.
5960 * expprint.c (print_subexp_standard): Update.
5961 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5962 * d-namespace.c (d_lookup_nested_symbol): Update.
5963 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5964 (cp_print_class_member): Update.
5965 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5966 * completer.c (add_struct_fields): Update.
5967 * c-typeprint.c (cp_type_print_derivation_info)
5968 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5969 Update.
5970 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5971 (ada_prefer_type, ada_is_exception_sym): Update.
5972
e86ca25f
TT
59732018-06-01 Tom Tromey <tom@tromey.com>
5974
5975 * valops.c (enum_constant_from_type, value_namespace_elt)
5976 (value_maybe_namespace_elt): Update.
5977 * valarith.c (find_size_for_pointer_math): Update.
5978 * target-descriptions.c (make_gdb_type): Update.
5979 * symmisc.c (print_symbol): Update.
5980 * stabsread.c (define_symbol, read_type)
5981 (complain_about_struct_wipeout, add_undefined_type)
5982 (cleanup_undefined_types_1): Update.
5983 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5984 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5985 (rust_internal_print_type, rust_composite_type)
5986 (rust_evaluate_funcall, rust_evaluate_subexp)
5987 (rust_inclusive_range_type_p): Update.
5988 * python/py-type.c (typy_get_tag): Update.
5989 * p-typeprint.c (pascal_type_print_base): Update.
5990 * mdebugread.c (parse_symbol, parse_type): Update.
5991 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5992 Update.
5993 * guile/scm-type.c (gdbscm_type_tag): Update.
5994 * go-lang.c (sixg_string_p): Update.
5995 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5996 Update.
5997 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5998 (TYPE_TAG_NAME): Remove.
5999 * gdbtypes.c (type_name_no_tag): Simplify.
6000 (check_typedef, check_types_equal, recursive_dump_type)
6001 (copy_type_recursive, arch_composite_type): Update.
6002 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6003 in summary mode when needed.
6004 * eval.c (evaluate_funcall): Update.
6005 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6006 (process_structure_scope, read_enumeration_type)
6007 (read_namespace_type, read_module_type, determine_prefix): Update.
6008 * cp-support.c (inspect_type): Update.
6009 * coffread.c (process_coff_symbol, decode_base_type): Update.
6010 * c-varobj.c (c_is_path_expr_parent): Update.
6011 * c-typeprint.c (c_type_print_base_struct_union): Update.
6012 (c_type_print_base_1): Update. Print struct/class/union/enum in
6013 summary when using C language.
6014 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6015 (gen_maybe_namespace_elt): Update.
6016 * ada-lang.c (ada_type_name): Simplify.
6017 (empty_record, ada_template_to_fixed_record_type_1)
6018 (template_to_static_fixed_type)
6019 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6020
c1ec8cea
TT
60212018-06-01 Tom Tromey <tom@tromey.com>
6022
6023 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6024 c_print_type.
6025 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6026 (c_print_type): Update.
6027 (c_print_type): New overload.
6028 (c_type_print_varspec_prefix, c_type_print_args)
6029 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6030 (c_type_print_base_struct_union, c_type_print_base_1)
6031 (cp_type_print_method_args): Add "language" parameter.
6032 (c_type_print_base): Update.
6033 * c-lang.h (c_print_type): Add new overload.
6034
bc8453a7
TT
60352018-06-01 Tom Tromey <tom@tromey.com>
6036
6037 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6038 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6039
739e8682
AH
60402018-06-01 Alan Hayward <alan.hayward@arm.com>
6041
6042 * aarch64-tdep.c (aarch64_sve_register_names): New const
6043 var.
6044 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6045 (AARCH64_SVE_Z_REGS_NUM): New define.
6046 (AARCH64_SVE_P_REGS_NUM): Likewise.
6047 (AARCH64_SVE_NUM_REGS): Likewise.
6048
8a60efe7
UB
60492018-05-31 Uros Bizjak <ubizjak@gmail.com>
6050
6051 * nat/linux-ptrace.h [__alpha__]
6052 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6053 definitions.
6054
4b2dfa9d
MR
60552018-05-31 Maciej W. Rozycki <macro@mips.com>
6056
6057 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6058 the endianness selected.
6059 * NEWS: Document `set endian auto' mode operation update.
6060
122394f1
AH
60612018-05-31 Alan Hayward <alan.hayward@arm.com>
6062
6063 * Makefile.in: Add new header.
6064 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6065 (sve_vl_from_vg): Likewise.
6066 (sve_vq_from_vl): Likewise.
6067 (sve_vl_from_vq): Likewise.
6068 (sve_vq_from_vg): Likewise.
6069 (sve_vg_from_vq): Likewise.
6070 * configure.nat: Add new c file.
6071 * nat/aarch64-sve-linux-ptrace.c: New file.
6072 * nat/aarch64-sve-linux-ptrace.h: New file.
6073
95228a0d
AH
60742018-05-31 Alan Hayward <alan.hayward@arm.com>
6075
6076 * aarch64-linux-nat.c (aarch64_linux_read_description):
6077 Add parmeter zero.
6078 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6079 Likewise.
6080 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6081 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6082 (aarch64_gdbarch_init): Add parmeter zero.
6083 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6084 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6085 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6086 parmeter.
6087 * doc/gdb.texinfo: Describe SVE feature
6088 * features/aarch64-sve.c: New file.
6089
5969f0db
OJ
60902018-05-31 Omair Javaid <omair.javaid@linaro.org>
6091
6092 PR gdb/23210
6093 * gdbarch.sh (significant_addr_bit): Default to zero when
6094 not set by target architecture.
6095 * gdbarch.c: Re-generated.
6096 * utils.c (address_significant): Update.
6097
61367c61
JB
60982018-05-30 Joel Brobecker <brobecker@adacore.com>
6099
6100 * stack.c (func_command): Remove trailing newline in call to error.
6101
34a79281
SM
61022018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6103
6104 * regcache.h (regcache_raw_collect): Remove, update callers to
6105 use regcache::raw_collect.
6106 * regcache.c (regcache_raw_collect): Remove.
6107
73e1c03f
SM
61082018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6109
6110 * regcache.h (regcache_raw_supply): Remove, update callers to
6111 use detached_regcache::raw_supply.
6112 * regcache.c (regcache_raw_supply): Remove.
6113
e4c4a59b
SM
61142018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6115
6116 * regcache.h (regcache_cooked_write_part): Remove, update
6117 callers to use regcache::cooked_write_part.
6118 * regcache.c (regcache_cooked_write_part): Remove.
6119
73bb0000
SM
61202018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6121
6122 * regcache.h (regcache_cooked_read_part): Remove, update callers
6123 to use readable_regcache::cooked_read_part.
6124 * regcache.c (regcache_cooked_read_part): Remove.
6125
46a45e9d
SM
61262018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6127
6128 * regcache.h (regcache_cooked_read_value): Remove, update
6129 callers to use readable_regcache::cooked_read_value.
6130 * regcache.c (regcache_cooked_read_value): Remove.
6131
b66f5587
SM
61322018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6133
6134 * regcache.h (regcache_cooked_write): Remove, update callers to
6135 use regcache::cooked_write.
6136 * regcache.c (regcache_cooked_write): Remove.
6137
6aa7d724
SM
61382018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6139
6140 * regcache.h (regcache_invalidate): Remove, update callers to
6141 use detached_regcache::invalidate instead.
6142 * regcache.c (regcache_invalidate): Remove.
6143
4f0420fd
SM
61442018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6145
6146 * regcache.h (regcache_raw_write_part): Remove, update callers
6147 to use regcache::raw_write_part instead.
6148 * regcache.c (regcache_raw_write_part): Remove.
6149
502fe83e
SM
61502018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6151
6152 * regcache.h (regcache_raw_read_part): Remove, update callers to
6153 use readable_regcache::raw_read_part instead.
6154 * regcache.c (regcache_raw_read_part): Remove.
6155
dca08e1f
SM
61562018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6157
6158 * regcache.h (regcache_cooked_read): Remove, update callers to
6159 use readable_regcache::cooked_read instead.
6160 * regcache.c (regcache_cooked_read): Remove.
6161
10eaee5f
SM
61622018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6163
6164 * regcache.h (regcache_raw_write): Remove, update callers to use
6165 regcache::raw_write instead.
6166 * regcache.c (regcache_raw_write): Remove.
6167
0b883586
SM
61682018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6169
6170 * regcache.h (regcache_raw_read): Remove, update callers to use
6171 readable_regcache::raw_read instead.
6172 * regcache.c (regcache_raw_read): Remove.
6173
0b47d985
SM
61742018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6175
6176 * regcache.h (regcache_raw_update): Remove, update callers to
6177 use readable_regcache::raw_update instead.
6178 * regcache.c (regcache_raw_update): Remove.
6179
0ec9f114
SM
61802018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6181
6182 * regcache.h (regcache_register_status): Remove, update callers
6183 to use reg_buffer::get_register_status directly instead.
6184 * regcache.c (regcache_register_status): Remove.
6185
222312d3
SM
61862018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6187
6188 * regcache.h (regcache_get_ptid): Remove, update all callers to
6189 call regcache::ptid instead.
6190 * regcache.c (regcache_get_ptid): Remove.
6191
fdbe37e3
SM
61922018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6193
6194 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6195
f7c6f423
PA
61962018-05-30 Pedro Alves <palves@redhat.com>
6197
6198 * common/common-exceptions.h (exception_rethrow): Use
6199 ATTRIBUTE_NORETURN.
6200
52941706
SM
62012018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6202
6203 * breakpoint.c (print_solib_event, check_status_catch_solib):
6204 Remove struct keyword in range-based for loops.
6205 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6206 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6207 Likewise.
6208 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6209 Likewise.
6210 * symfile.c (addr_info_make_relative): Likewise.
6211 * thread.c (value_in_thread_stack_temporaries): Likewise.
6212
bf2977b5
WP
62132018-06-12 Weimin Pan <weimin.pan@oracle.com>
6214
6215 PR gdb/16841
6216 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6217 aggregate type to get its real type before accessing it.
6218
64cc34d8
WP
62192018-05-29 Weimin Pan <weimin.pan@oracle.com>
6220
6221 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6222 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6223 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6224 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6225 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6226 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6227 * printcmd.c (info_address_command): Likewise.
6228
e7ec8713
TT
62292018-05-29 Tom Tromey <tom@tromey.com>
6230
6231 * windows-nat.c (handle_exception): Update fall-through comment.
6232
bcb430e4
TT
62332018-05-29 Tom Tromey <tom@tromey.com>
6234
6235 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6236 (struct program_space) <added_solibs>: Now a std::vector.
6237 * breakpoint.c (print_solib_event): Update.
6238 (check_status_catch_solib): Update.
6239 * progspace.c (clear_program_space_solib_cache): Update.
6240 * solib.c (update_solib_list): Update.
6241
894882e3
TT
62422018-05-29 Tom Tromey <tom@tromey.com>
6243
6244 * python/py-type.c (typy_richcompare): Update.
6245 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6246 * gdbtypes.h (types_deeply_equal): Return bool.
6247 (types_equal): Likewise.
6248 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6249 declare VEC.
6250 (check_types_equal): Change worklist to std::vector. Return
6251 bool.
6252 (struct type_equality_entry): Add constructor.
6253 (compare_maybe_null_strings): Return bool.
6254 (check_types_worklist): Return bool. Change worklist to
6255 std::vector.
6256 (types_deeply_equal): Use std::vector.
6257 (types_equal): Return bool.
6258 (compare_maybe_null_strings): Simplify.
6259
10b2ded4
TT
62602018-05-29 Tom Tromey <tom@tromey.com>
6261
6262 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6263
4f7deebe
TT
62642018-05-29 Tom Tromey <tom@tromey.com>
6265
6266 * objc-lang.h: Don't include cp-support.h.
6267 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6268 declare VEC.
6269
b8283aea
TT
62702018-05-27 Tom Tromey <tom@tromey.com>
6271
6272 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6273
41a883c8
TT
62742018-05-25 Tom Tromey <tom@tromey.com>
6275
6276 * value.c (value::location): Initialize.
6277
bf259e25
TT
62782018-05-25 Tom Tromey <tom@tromey.com>
6279
6280 * dbxread.c (init_bincl_list): Remove.
6281 (bincl_list): Now a std::vector.
6282 (bincls_allocated, next_bincl): Remove.
6283 (free_bincl_list, do_free_bincl_list_cleanup)
6284 (make_cleanup_free_bincl_list): Remove.
6285 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6286 unique_xmalloc_ptr.
6287 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6288 (struct header_file_location): Add constructor.
6289 (add_bincl_to_list): Remove.
6290
d525a99b
TT
62912018-05-25 Tom Tromey <tom@tromey.com>
6292
6293 * tui/tui.c (tui_enable): Update.
6294 * mi/mi-interp.c (mi_interp::init): Update.
6295 * interps.h (class interp) <name>: New method.
6296 <m_name>: Rename from name.
6297 (~scoped_restore_interp): Update.
6298 * interps.c (interp::interp): Update.
6299 (interp_add, interp_set, interp_lookup_existing)
6300 (current_interp_named_p): Update.
6301
da505cff
TT
63022018-05-25 Tom Tromey <tom@tromey.com>
6303
6304 * interps.c (interp_name): Remove.
6305 * mi/mi-interp.c (mi_interp::init): Update.
6306 * interps.h (interp_name): Remove.
6307 (~scoped_restore_interp): Update.
6308 * tui/tui.c (tui_enable): Update.
6309
29f94340
TT
63102018-05-25 Tom Tromey <tom@tromey.com>
6311
6312 * utils.c (fputs_maybe_filtered): Update.
6313 * linespec.c (decode_line_full): Update.
6314 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6315 (mi_print_breakpoint_for_event, mi_solib_loaded)
6316 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6317 (mi_user_selected_context_changed): Update.
6318 * mi/mi-main.c (mi_execute_command): Update.
6319 * cli/cli-script.c (execute_control_command): Update.
6320 * python/python.c (execute_gdb_command): Update.
6321 * solib.c (info_sharedlibrary_command): Update.
6322 * interps.c (interp_ui_out): Remove.
6323 * interps.h (interp_ui_out): Remove.
6324
716b8bc5
TT
63252018-05-25 Tom Tromey <tom@tromey.com>
6326
6327 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6328 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6329 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6330
753ff9bd
TT
63312018-05-25 Tom Tromey <tom@tromey.com>
6332
6333 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6334 * interps.c (interp_exec): Use scoped_restore.
6335
5ca3b260
TT
63362018-05-25 Tom Tromey <tom@tromey.com>
6337
6338 * remote.c (remote_target::remote_file_get): Use
6339 gdb::byte_vector.
6340 (remote_target::remote_file_put): Likewise.
6341
3173aa2f
TT
63422018-05-25 Tom Tromey <tom@tromey.com>
6343
6344 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6345 a std::string.
6346 (get_pe_section_index, add_pe_exported_sym): Update.
6347 (read_pe_exported_syms): Use gdb::def_vector.
6348
09a5e1b5
TT
63492018-05-25 Tom Tromey <tom@tromey.com>
6350
6351 * frame.c (remove_prev_frame): Remove.
6352 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6353
d8dab6c3
MR
63542018-05-25 Maciej W. Rozycki <macro@mips.com>
6355
6356 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6357 Remove prototypes.
6358 * mips-linux-nat.c (supply_fpregset): Always call
6359 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6360 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6361 `mips_fill_fpregset'.
6362 * mips-linux-tdep.c (mips_supply_fpregset)
6363 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6364 (mips_fill_fpregset_wrapper): Remove functions.
6365 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6366 (mips_linux_fpregset): Remove variable.
6367 (mips_linux_iterate_over_regset_sections): Use
6368 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6369 (mips_linux_o32_sigframe_init): Remove comment.
6370
3c69da40
PA
63712018-05-25 Pedro Alves <palves@redhat.com>
6372
6373 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6374 (struct readahead_cache, struct packet_reg, struct
6375 remote_arch_state, class remote_state): Move higher up in the
6376 file.
6377 (remote_target::m_remote_state): Now an object instead of a pointer.
6378 (remote_target::get_remote_state): Adjust.
6379
39f0c204
AB
63802018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6381
6382 * stack.c (select_and_print_frame): Delete.
6383 (struct function_bounds): Move struct within function.
6384 (func_command): Most content moved into new function
6385 find_frame_for_function, use new function, print result, add
6386 function comment.
6387 (find_frame_for_function): New function, now returns a result.
6388
d392224a
PW
63892018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6390
6391 * stack.c (iterate_over_block_arg_vars): Fix comment.
6392 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6393
45f25d6c
AB
63942018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6395
6396 PR gdb/23203
6397 * frame.c
6398 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6399 Define.
6400 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6401 Define.
6402 * frame.h (class scoped_restore_selected_frame): New class.
6403 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6404 of any exception, use scoped_restore_selected_frame to restore the
6405 frame instead.
6406
da05d921
PA
64072018-05-24 Pedro Alves <palves@redhat.com>
6408
6409 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6410 override.
6411
a8be540e
TT
64122018-05-23 Tom Tromey <tom@tromey.com>
6413
6414 * complaints.c (struct complaints): Remove.
6415 (symfile_complaint_book): Remove.
6416 (series): New global.
6417 (complaint_internal): Update.
6418 (clear_complaints): Update.
6419
ff1cf532
TT
64202018-05-23 Tom Tromey <tom@tromey.com>
6421
6422 * complaints.c (counters): New global.
6423 (struct complain): Remove.
6424 (struct complaints) <root>: Remove.
6425 (complaint_sentinel): Remove.
6426 (symfile_complaint_book): Update.
6427 (find_complaint) Remove.
6428 (complaint_internal, clear_complaints): Update.
6429
7ff88174
TT
64302018-05-23 Tom Tromey <tom@tromey.com>
6431
6432 * complaints.c (struct complain) <file, line>: Remove.
6433 (find_complaint): Remove file, line parameters.
6434 (complaint_internal): Update.
6435
de54e1a5
TT
64362018-05-23 Tom Tromey <tom@tromey.com>
6437
6438 * complaints.c (vcomplaint): Remove.
6439 (complaint_internal) Merge in contents of vcomplaint.
6440
2ac237e5
TT
64412018-05-23 Tom Tromey <tom@tromey.com>
6442
6443 * complaints.c (struct complaints) <explanation>: Remove.
6444 (symfile_explanations): Remove.
6445 (symfile_complaint_book): Update.
6446 (vcomplaint): Update.
6447 (struct explanation): Remove.
6448
b98664d3
TT
64492018-05-23 Tom Tromey <tom@tromey.com>
6450
6451 * complaints.c (symfile_complaints): Remove.
6452 (complaint_internal): Remove "complaints" parameter.
6453 (clear_complaints, vcomplaint): Remove "c" parameter.
6454 (get_complaints): Remove.
6455 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6456 (dwarf2_debug_line_missing_file_complaint)
6457 (dwarf2_debug_line_missing_end_sequence_complaint)
6458 (dwarf2_complex_location_expr_complaint)
6459 (dwarf2_const_value_length_mismatch_complaint)
6460 (dwarf2_section_buffer_overflow_complaint)
6461 (dwarf2_macro_malformed_definition_complaint)
6462 (dwarf2_invalid_attrib_class_complaint)
6463 (create_addrmap_from_index, dw2_symtab_iter_next)
6464 (dw2_expand_marked_cus)
6465 (dw2_debug_names_iterator::find_vec_in_debug_names)
6466 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6467 (create_debug_type_hash_table, init_cutu_and_read_dies)
6468 (partial_die_parent_scope, add_partial_enumeration)
6469 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6470 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6471 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6472 (create_cus_hash_table, create_dwp_hash_table)
6473 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6474 (dwarf2_rnglists_process, dwarf2_ranges_process)
6475 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6476 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6477 (handle_struct_member_die, process_structure_scope)
6478 (read_array_type, read_common_block, read_module_type)
6479 (read_tag_pointer_type, read_typedef, read_base_type)
6480 (read_subrange_type, load_partial_dies, partial_die_info::read)
6481 (partial_die_info::read, partial_die_info::read)
6482 (partial_die_info::read, read_checked_initial_length_and_offset)
6483 (dwarf2_string_attr, read_formatted_entries)
6484 (dwarf_decode_line_header)
6485 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6486 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6487 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6488 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6489 (get_signatured_type, get_DW_AT_signature_type)
6490 (decode_locdesc, file_file_name, consume_improper_spaces)
6491 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6492 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6493 (dwarf2_symbol_mark_computed, set_die_type)
6494 (read_attribute_value): Update.
6495 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6496 Update.
6497 * dbxread.c (unknown_symtype_complaint)
6498 (lbrac_mismatch_complaint, repeated_header_complaint)
6499 (set_namestring, function_outside_compilation_unit_complaint)
6500 (read_dbx_symtab, process_one_symbol): Update.
6501 * gdbtypes.c (stub_noname_complaint): Update.
6502 * windows-nat.c (handle_unload_dll): Update.
6503 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6504 (decode_base_type): Update.
6505 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6506 (eb_complaint, record_include_begin, record_include_end)
6507 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6508 (process_xcoff_symbol, read_symbol)
6509 (function_outside_compilation_unit_complaint)
6510 (scan_xcoff_symtab): Update.
6511 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6512 * buildsym.c (finish_block_internal, make_blockvector)
6513 (end_symtab_get_static_block, augment_type_symtab): Update.
6514 * dtrace-probe.c (dtrace_process_dof)
6515 (dtrace_static_probe_ops::get_probes): Update.
6516 * complaints.h (struct complaint): Don't declare.
6517 (symfile_complaints): Remove.
6518 (complaint_internal): Remove "complaints" parameter.
6519 (complaint): Likewise.
6520 (clear_complaints): Likewise.
6521 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6522 (reread_symbols): Update.
6523 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6524 (dwarf2_frame_cache, decode_frame_entry): Update.
6525 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6526 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6527 (info_selectors_command): Update.
6528 * macrotab.c (macro_include, check_for_redefinition)
6529 (macro_undef): Update.
6530 * objfiles.c (filter_overlapping_sections): Update.
6531 * stabsread.c (invalid_cpp_abbrev_complaint)
6532 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6533 (define_symbol, error_type, read_type, rs6000_builtin_type)
6534 (stabs_method_name_from_physname, read_member_functions)
6535 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6536 (attach_fields_to_type, complain_about_struct_wipeout)
6537 (read_range_type, read_args, common_block_start)
6538 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6539 Update.
6540 * mdebugread.c (index_complaint, unknown_ext_complaint)
6541 (basic_type_complaint, bad_tag_guess_complaint)
6542 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6543 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6544 (parse_procedure, parse_lines)
6545 (function_outside_compilation_unit_complaint)
6546 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6547 (bad_tag_guess_complaint, reg_value_complaint): Update.
6548 * cp-support.c (demangled_name_complaint): Update.
6549 * macroscope.c (sal_macro_scope): Update.
6550 * dwarf-index-write.c (class debug_names): Update.
6551
4e9668d0
TT
65522018-05-23 Tom Tromey <tom@tromey.com>
6553
6554 * complaints.c (clear_complaints): Remove "noisy" parameter.
6555 * complaints.h (clear_complaints): Update.
6556 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6557 (reread_symbols): Update.
6558
43ba33c7
TT
65592018-05-23 Tom Tromey <tom@tromey.com>
6560
6561 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6562 SUBSEQUENT_MESSAGE.
6563 (vcomplaint, clear_complaints): Update.
6564 (symfile_explanations): Remove some messages.
6565
2b9496b2
TT
65662018-05-23 Tom Tromey <tom@tromey.com>
6567
6568 * complaints.c (internal_complaint): Remove.
6569 * complaints.h (internal_complaint): Remove.
6570
35f1fea3
MR
65712018-05-22 Maciej W. Rozycki <macro@mips.com>
6572
6573 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6574
6b8edb51
PA
65752018-05-22 Pedro Alves <palves@redhat.com>
6576
6577 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6578 (remote_fileio_badfd, remote_fileio_return_errno)
6579 (remote_fileio_return_success, remote_fileio_func_open)
6580 (remote_fileio_func_open, remote_fileio_func_close)
6581 (remote_fileio_func_read, remote_fileio_func_write)
6582 (remote_fileio_func_lseek, remote_fileio_func_rename)
6583 (remote_fileio_func_unlink, remote_fileio_func_stat)
6584 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6585 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6586 remote_target parameter.
6587 (remote_fio_func_map) <func>: Add remote_target parameter.
6588 (do_remote_fileio_request, remote_fileio_request):
6589 * remote-fileio.h (remote_fileio_request):
6590 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6591 remote_target parameter.
6592 (remote_notif_process, handle_notification): Adjust to pass down
6593 the remote.
6594 (remote_notif_state_allocate): Add remote_target parameter. Save
6595 it.
6596 * remote-notif.h (struct remote_target): Forward declare.
6597 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6598 remote_target parameter.
6599 (struct remote_notif_state) <remote>: New field.
6600 (remote_notif_ack, remote_notif_parse): Add remote_target
6601 parameter.
6602 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6603 remote_target parameter.
6604 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6605 (threads_listing_context, rmt_thread_action, protocol_feature)
6606 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6607 (packet_result, struct threads_listing_context, remote_state):
6608 Move definitions and declarations higher up.
6609 (remote_target) <~remote_target>: Declare.
6610 (remote_download_command_source, remote_file_put, remote_file_get)
6611 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6612 (remote_hostio_pread_vFile, remote_hostio_send_command)
6613 (remote_hostio_set_filesystem, remote_hostio_open)
6614 (remote_hostio_close, remote_hostio_unlink, remote_state)
6615 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6616 (get_memory_write_packet_size, get_memory_read_packet_size)
6617 (append_pending_thread_resumptions, remote_detach_1)
6618 (append_resumption, remote_resume_with_vcont)
6619 (add_current_inferior_and_thread, wait_ns, wait_as)
6620 (process_stop_reply, remote_notice_new_inferior)
6621 (process_initial_stop_replies, remote_add_thread)
6622 (btrace_sync_conf, remote_btrace_maybe_reopen)
6623 (remove_new_fork_children, kill_new_fork_children)
6624 (discard_pending_stop_replies, stop_reply_queue_length)
6625 (check_pending_events_prevent_wildcard_vcont)
6626 (discard_pending_stop_replies_in_queue, stop_reply)
6627 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6628 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6629 (remote_interrupt_as, remote_interrupt_ns)
6630 (remote_get_noisy_reply, remote_query_attached)
6631 (remote_add_inferior, remote_current_thread, get_current_thread)
6632 (set_thread, set_general_thread, set_continue_thread)
6633 (set_general_process, write_ptid)
6634 (remote_unpack_thread_info_response, remote_get_threadinfo)
6635 (parse_threadlist_response, remote_get_threadlist)
6636 (remote_threadlist_iterator, remote_get_threads_with_ql)
6637 (remote_get_threads_with_qxfer)
6638 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6639 (get_offsets, remote_check_symbols, remote_supported_packet)
6640 (remote_query_supported, remote_packet_size)
6641 (remote_serial_quit_handler, remote_detach_pid)
6642 (remote_vcont_probe, remote_resume_with_hc)
6643 (send_interrupt_sequence, interrupt_query)
6644 (remote_notif_get_pending_events, fetch_register_using_p)
6645 (send_g_packet, process_g_packet, fetch_registers_using_g)
6646 (store_register_using_P, store_registers_using_G)
6647 (set_remote_traceframe, check_binary_download)
6648 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6649 (remote_xfer_live_readonly_partial, remote_read_bytes)
6650 (remote_send_printf, remote_flash_write, readchar)
6651 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6652 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6653 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6654 (extended_remote_disable_randomization, extended_remote_run)
6655 (send_environment_packet, extended_remote_environment_support)
6656 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6657 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6658 (packet_command): Now methods of ...
6659 (remote_target): ... this class.
6660 (m_remote_state) <remote_target>: New field.
6661 (struct remote_state) <stop_reply_queue,
6662 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6663 fields.
6664 (remote_state::remote_state): Allocate stop_reply_queue.
6665 (remote_state): Delete global.
6666 (get_remote_state_raw): Delete.
6667 (remote_target::get_remote_state): Allocate m_remote_state on
6668 demand.
6669 (get_current_remote_target): New.
6670 (remote_ops, extended_remote_ops): Delete.
6671 (wait_forever_enabled_p, remote_async_inferior_event_token):
6672 Delete, moved to struct remote_state.
6673 (remote_target::close): Delete self. Destruction bits split to
6674 ...
6675 (remote_target::~remote_target): ... this.
6676 (show_memory_packet_size): Adjust to use
6677 get_current_remote_target.
6678 (struct protocol_feature) <func>: Add remote_target parameter.
6679 All callers adjusted.
6680 (curr_quit_handler_target): New.
6681 (remote_serial_quit_handler): Reimplement.
6682 (remote_target::open_1): Adjust to use get_current_remote_target.
6683 Heap-allocate remote_target/extended_remote_target instances.
6684 (vcont_builder::vcont_builder): Add remote_target parameter, and
6685 save it in m_remote. All callers adjusted.
6686 (vcont_builder::m_remote): New field.
6687 (vcont_builder::restart, vcont_builder::flush)
6688 (vcont_builder::push_action): Use it.
6689 (remote_target::commit_resume): Use it.
6690 (struct queue_iter_param) <remote>: New field.
6691 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6692 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6693 (check_pending_event_prevents_wildcard_vcont_callback)
6694 (remote_target::check_pending_events_prevent_wildcard_vcont)
6695 (remote_target::discard_pending_stop_replies)
6696 (remote_target::discard_pending_stop_replies_in_queue)
6697 (remote_target::remote_notif_remove_queued_reply): Fill in
6698 'remote' field.
6699 (remote_notif_get_pending_events): New.
6700 (remote_target::readchar, remote_target::remote_serial_write):
6701 Save/restore curr_quit_handler_target.
6702 (putpkt): New.
6703 (kill_new_fork_children): Fill in 'remote' field.
6704 (packet_command): Use get_current_remote_target, defer to
6705 remote_target method of same name.
6706 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6707 parameter, and save it in m_remote. All callers adjusted.
6708 (scoped_remote_fd::release): Use m_remote.
6709 (scoped_remote_fd::m_remote): New field.
6710 (remote_file_put, remote_file_get, remote_file_delete): Use
6711 get_current_remote_target, defer to remote_target method of same
6712 name.
6713 (remote_btrace_reset): Add remote_state paremeter. Update all
6714 callers.
6715 (remote_async_inferior_event_handler). Pass down 'data'.
6716 (remote_new_objfile): Use get_current_remote_target.
6717 (remote_target::vcont_r_supported): New.
6718 (set_range_stepping): Use get_current_remote_target and
6719 remote_target::vcont_r_supported.
6720 (_initialize_remote): Don't allocate 'remote_state' and
6721 'stop_reply_queue' globals.
6722 * remote.h (struct remote_target): Forward declare.
6723 (getpkt, putpkt, remote_notif_get_pending_events): Add
6724 'remote_target' parameter.
6725
f5db4863
PA
67262018-05-22 Pedro Alves <palves@redhat.com>
6727
6728 * remote.c (vcont_builder): Now a class. Make all data members
6729 private.
6730 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6731 Declare methods.
6732 (vcont_builder_restart): Rename to ...
6733 (vcont_builder::restart): ... this.
6734 (vcont_builder_flush): Rename to ...
6735 (vcont_builder::flush): ... this.
6736 (vcont_builder_push_action): Rename to ...
6737 (vcont_builder::push_action): ... this.
6738 (remote_target::commit_resume): Adjust.
6739
cc0be08f
PA
67402018-05-22 Pedro Alves <palves@redhat.com>
6741
6742 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6743 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6744 (get_fixed_memory_packet_size): New.
6745 (get_memory_packet_size): Use it.
6746 (set_memory_packet_size): Don't override the config size with
6747 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6748 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6749 Don't refer to get_memory_packet_size if not connected to a remote
6750 target. Show "(default)" if configured size is 0.
6751
9607784a
PA
67522018-05-22 Pedro Alves <palves@redhat.com>
6753
6754 * remote.c (remote_target::mourn_inferior): Move
6755 discard_pending_stop_replies call here from ...
6756 (_initialize_remote): ... here.
6757
0e9a6b2f
PA
67582018-05-22 Pedro Alves <palves@redhat.com>
6759
6760 * remote.c (compare_section_command): Remove set_general_process
6761 call.
6762
43c3a0e4
PA
67632018-05-22 Pedro Alves <palves@redhat.com>
6764
6765 * remote.c (struct packet_reg, struct remote_arch_state):
6766 Move higher up in the file.
6767 (remote_state) <m_arch_states>: Store remote_arch_state values
6768 instead of remote_arch_state pointers.
6769 (remote_state::get_remote_arch_state): Adjust.
6770
9d6eea31
PA
67712018-05-22 Pedro Alves <palves@redhat.com>
6772
6773 * remote.c: Include <unordered_map>.
6774 (remote_state): Now a class.
6775 (remote_state) <get_remote_arch_state>: Declare method.
6776 <get_remote_arch_state>: New field.
6777 (remote_arch_state) <remote_arch_state>: Declare ctor.
6778 <regs>: Now a unique_ptr.
6779 (remote_gdbarch_data_handle): Delete.
6780 (get_remote_arch_state): Delete.
6781 (remote_state::get_remote_arch_state): New.
6782 (get_remote_state): Adjust to call remote_state's
6783 get_remote_arch_state method.
6784 (init_remote_state): Delete, bits factored out to ...
6785 (remote_arch_state::remote_arch_state): ... this new method.
6786 (get_remote_packet_size, get_memory_packet_size)
6787 (process_g_packet, remote_target::fetch_registers)
6788 (remote_target::prepare_to_store, store_registers_using_G)
6789 (remote_target::store_registers, remote_target::get_trace_status):
6790 Adjust to call remote_state's method.
6791 (_initialize_remote): Remove reference to
6792 remote_gdbarch_data_handle.
6793
dd194f6b
PA
67942018-05-22 Pedro Alves <palves@redhat.com>
6795
6796 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6797 pread>: New method declarations.
6798 (remote_target::open_1): Adjust.
6799 (readahead_cache_invalidate): Rename to ...
6800 (readahead_cache::invalidate): ... this, and adjust to be a class
6801 method.
6802 (readahead_cache_invalidate_fd): Rename to ...
6803 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6804 class method.
6805 (remote_hostio_pwrite): Adjust.
6806 (remote_hostio_pread_from_cache): Rename to ...
6807 (readahead_cache::pread): ... this, and adjust to be a class
6808 method.
6809 (remote_hostio_close): Adjust.
6810
440b7aec
PA
68112018-05-22 Pedro Alves <palves@redhat.com>
6812
6813 * remote.c (remote_hostio_close_cleanup): Delete.
6814 (class scoped_remote_fd): New.
6815 (remote_file_put, remote_file_get): Use it.
6816
de44f5a7
PA
68172018-05-22 Pedro Alves <palves@redhat.com>
6818
6819 (struct vCont_action_support): Use bool and initialize all fields.
6820 (struct readahead_cache): Initialize all fields.
6821 (remote_state): Use bool and initialize all fields.
6822 (remote_state::remote_state, remote_state::~remote_state): New.
6823 (new_remote_state): Delete.
6824 (_initialize_remote): Use new to allocate remote_state.
6825
b1b60145
PA
68262018-05-22 Pedro Alves <palves@redhat.com>
6827 張俊芝 <zjz@zjz.name>
6828
6829 PR gdb/22973
6830 * c-exp.y: Include "c-support.h".
6831 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6832 of tolower. Use c_ident_is_alpha to scan names.
6833 * c-lang.c: Include "c-support.h".
6834 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6835 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6836 * c-support.h: New file, with bits factored out from ...
6837 * cp-name-parser.y: ... this file.
6838 Include "c-support.h".
6839 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6840 c-support.h and renamed.
6841 (symbol_end, yylex): Adjust.
6842
0ec848ad
PFC
68432018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6844
6845 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6846 parameter type to CORE_ADDR.
6847 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6848 parameter type in declaration to CORE_ADDR.
6849 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6850 target_auxv_search to get AT_HWCAP and use the result to get the
6851 target description.
6852 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6853 to CORE_ADDR. Remove the cast of the return value to unsigned
6854 long. Fix error predicate of target_auxv_search.
6855 (ppc_linux_nat_target::read_description): Change the type of the
6856 hwcap variable to CORE_ADDR.
6857
0fb2aaa1
PFC
68582018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6859
6860 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6861 if the size of fpscr is larger than 32 bits.
6862
2c3305f6
PFC
68632018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6864
6865 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6866 (ppc32_linux_vsxregmap): New global.
6867 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6868 regcache_supply_regset, and regcache_collect_regset.
6869 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6870 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6871 (fetch_vsx_register, store_vsx_register): Remove.
6872 (fetch_vsx_registers): Add regno parameter. Get regset using
6873 ppc_linux_vsxregset. Use regset to supply registers.
6874 (store_vsx_registers): Add regno parameter. Get regset using
6875 ppc_linux_vsxregset. Use regset to collect registers.
6876 (fetch_register): Call fetch_vsx_registers instead of
6877 fetch_vsx_register.
6878 (store_register): Call store_vsx_registers instead of
6879 store_vsx_register.
6880 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6881 new regno parameter.
6882 (store_ppc_registers): Call store_vsx_registers with -1 for the
6883 new regno parameter.
6884 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6885 (ppc_collect_vsxregset): Remove.
6886
1d75a658
PFC
68872018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6888
6889 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6890 offset fields.
6891 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6892 for vector register offset fields.
6893 (ppc64_fbsd_reg_offsets): Likewise.
6894 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6895 to vector register offset fields.
6896 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6897 to vector register offset fields.
6898 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6899 vector register offset fields.
6900 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6901 initializers for vector register offset fields.
6902 (rs6000_aix64_reg_offsets): Likewise.
6903 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6904 (ppc_supply_vrregset): Remove.
6905 (ppc_collect_vrregset): Remove.
6906 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6907 (ppc_linux_vrregset) : New function.
6908 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6909 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6910 (ppc32_linux_vrregset): Remove.
6911 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6912 and use result instead of ppc32_linux_vrregset.
6913 (ppc32_linux_reg_offsets): Remove initializers for vector register
6914 offset fields.
6915 (ppc64_linux_reg_offsets): Likewise.
6916 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6917 * ppc-linux-nat.c: Include regset.h.
6918 (gdb_vrregset_t): Adjust comment to account for little-endian
6919 mode.
6920 (supply_vrregset, fill_vrregset): Remove.
6921 (fetch_altivec_register, store_altivec_register): Remove.
6922 (fetch_altivec_registers): Add regno parameter. Get regset using
6923 ppc_linux_vrregset. Use regset to supply registers.
6924 (store_altivec_registers): Add regno parameter. Get regset using
6925 ppc_linux_vrregset. Use regset to collect registers.
6926 (fetch_register): Call fetch_altivec_registers instead of
6927 fetch_altivec_register.
6928 (store_register): Call store_altivec_registers instead of
6929 store_altivec_register.
6930 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6931 the new regno parameter.
6932 (store_ppc_registers): Call store_altivec_registers with -1 for
6933 the new regno parameter.
6934
d078308a
PFC
69352018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6936
6937 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6938 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6939 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6940 (gdb_vrregset_t): Change array type size to
6941 PPC_LINUX_SIZEOF_VRREGSET.
6942 (gdb_vsxregset_t): Change array type size to
6943 PPC_LINUX_SIZEOF_VSXREGSET.
6944 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6945 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6946 PPC_LINUX_SIZEOF_VSXREGSET.
6947
2e077f5e
PFC
69482018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6949
6950 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6951 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6952 nat/ppc-linux.c.
6953 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6954 ppc_linux_target_wordsize with tid.
6955 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6956 wordsize with tid.
6957 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6958 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6959 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6960 tid parameter. Remove static specifier.
6961 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6962 (ppc_linux_target_wordsize): New declaration.
6963
bd64614e
PFC
69642018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6965
6966 * arch/ppc-linux-common.c: New file.
6967 * arch/ppc-linux-common.h: New file.
6968 * arch/ppc-linux-tdesc.h: New file.
6969 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6970 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6971 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6972 arch/ppc-linux-tdesc.h.
6973 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6974 arch/ppc-linux-tdesc.h.
6975 (ppc_linux_nat_target::read_description): Remove target
6976 description matching code. Fill a ppc_linux_features struct and
6977 call ppc_linux_match_description with it. Move comment about ISA
6978 2.05 to ppc-linux-common.c.
6979 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6980 arch/ppc-linux-tdesc.h.
6981 (ppc_linux_core_read_description): Remove target description
6982 matching code. Fill a ppc_linux_features struct and call
6983 ppc_linux_match_description with it.
6984 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6985 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6986 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6987 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6988 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6989 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6990 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6991 (tdesc_powerpc_e500l): Remove.
6992
241db429
JB
69932018-05-22 Joel Brobecker <brobecker@adacore.com>
6994
6995 * ada-lang.c (catch_assert_command): Pass empty string instead
6996 of NULL for excep_string argument.
6997
75d74cca
MR
69982018-05-22 Maciej W. Rozycki <macro@mips.com>
6999
7000 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7001 the width of the requested register exceeds the width of the
7002 `ptrace' data type.
7003
122b53ea
TT
70042018-05-21 Tom Tromey <tom@tromey.com>
7005
7006 * printcmd.c (output_command): Remove.
7007 (output_command_const): Rename to output_command.
7008 * valprint.h (output_command): Rename from output_command_const.
7009 * tracepoint.c (trace_dump_actions): Call output_command.
7010
bc18fbb5
TT
70112018-05-21 Tom Tromey <tom@tromey.com>
7012
7013 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7014 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7015 * ada-lang.h (create_ada_exception_catchpoint): Update.
7016 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7017 std::string.
7018 (create_excep_cond_exprs, ~ada_catchpoint)
7019 (should_stop_exception, print_one_exception)
7020 (print_mention_exception, print_recreate_exception): Update.
7021 (ada_get_next_arg): Remove.
7022 (catch_ada_exception_command_split): Use std::string. Change type
7023 of "excep_string", "cond_string".
7024 (catch_ada_exception_command): Update.
7025 (create_ada_exception_catchpoint): Change type of excep_string.
7026 (ada_exception_sal): Remove excep_string parameter.
7027 (~ada_catchpoint): Remove.
7028
790217f6
TT
70292018-05-21 Tom Tromey <tom@tromey.com>
7030
7031 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7032 cleanup.
7033
6f46ac85
TT
70342018-05-21 Tom Tromey <tom@tromey.com>
7035
7036 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7037 Return unique_xmalloc_ptr.
7038 (print_it_exception): Update.
7039
15b6611c
TT
70402018-05-21 Tom Tromey <tom@tromey.com>
7041
7042 * tracepoint.c (trace_dump_actions): Use std::string.
7043
c0c9f665
TT
70442018-05-21 Tom Tromey <tom@tromey.com>
7045
7046 * symfile.c (reread_symbols): Use std::string for original_name.
7047
22ca247e
TT
70482018-05-21 Tom Tromey <tom@tromey.com>
7049
7050 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7051 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7052 constructor.
7053
184cde75
SM
70542018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7055
7056 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7057 instance to...
7058 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7059 * objfiles.c (get_objfile_bfd_data): Allocate
7060 objfile_per_bfd_storage with obstack_new when allocating on
7061 obstack.
7062
e39db4db
SM
70632018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7064
7065 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7066 OBSTACK_ZALLOC.
7067 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7068 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7069 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7070 (add_pending): Likewise.
7071 (parse_symbol): Likewise.
7072 (parse_partial_symbols): Likewise.
7073 (psymtab_to_symtab_1): Likewise.
7074 (new_psymtab): Likewise.
7075 (elfmdebug_build_psymtabs): Likewise.
7076 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7077 * objfiles.c (get_objfile_bfd_data): Likewise.
7078 (objfile_register_static_link): Likewise.
7079 * psymtab.c (allocate_psymtab): Likewise.
7080 * stabsread.c (read_member_functions): Likewise.
7081 * xcoffread.c (xcoff_end_psymtab): Likewise.
7082
284a0e3c
SM
70832018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7084
7085 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7086 compiler supports std::is_trivially_constructible.
7087 * common/poison.h: Include obstack.h.
7088 (IsMallocable): Define to is_trivially_constructible if the
7089 compiler supports it, define to true_type otherwise.
7090 (xobnew): New.
7091 (XOBNEW): Redefine.
7092 (xobnewvec): New.
7093 (XOBNEWVEC): Redefine.
7094 * gdb_obstack.h (obstack_zalloc): New.
7095 (OBSTACK_ZALLOC): Redefine.
7096 (obstack_calloc): New.
7097 (OBSTACK_CALLOC): Redefine.
7098 (obstack_new): New.
7099 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7100 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7101 gdbarch.c.
7102 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7103 obstack_calloc/obstack_zalloc.
7104 (gdbarch_obstack_zalloc): Remove.
7105 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7106
59f66be3
PW
71072018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7108
7109 * stack.c (backtrace_command_1): Remove useless variable int i.
7110
50c65c2d
PW
71112018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7112
7113 * stack.c (print_frame_info): Fix comment.
7114
7ff8cb8c
TT
71152018-05-18 Tom Tromey <tom@tromey.com>
7116
7117 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7118 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7119 (~dwarf2_per_objfile): Update
7120 (dwarf2_get_dwz_file): Use new.
7121 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7122 unique_ptr.
7123
400174b1
TT
71242018-05-18 Tom Tromey <tom@tromey.com>
7125
7126 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7127 unique_ptr.
7128 * dwarf2read.c (struct dwp_file): Add constructor and
7129 initializers.
7130 (open_and_init_dwp_file): Return a unique_ptr.
7131 (dwarf2_per_objfile, create_dwp_hash_table)
7132 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7133 (lookup_dwo_unit_in_dwp): Update.
7134 (open_and_init_dwp_file, get_dwp_file): Update.
7135
3063847f
TT
71362018-05-18 Tom Tromey <tom@tromey.com>
7137
7138 * dwarf2read.c (dwarf2_per_objfile): Update.
7139 (struct mapped_index): Add initializers.
7140 (dwarf2_read_index): Use new.
7141 (dw2_symtab_iter_init): Update.
7142 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7143 unique_ptr.
7144
d3d02dee
SM
71452018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7146
7147 * dwarf2read.c (mapped_index) <total_size>: Remove.
7148
1d143c36
SM
71492018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7150
7151 * unittests/format_pieces-selftests.c (test_format_specifier):
7152 Add ARI comments.
7153
ce1e8424
TT
71542018-05-18 Tom Tromey <tom@tromey.com>
7155
7156 * c-typeprint.c (maybe_print_hole): New function.
7157 (c_print_type_struct_field_offset): Update.
7158 (c_type_print_base_struct_union): Call maybe_print_hole.
7159
ddfe970e
KS
71602018-05-17 Keith Seitz <keiths@redhat.com>
7161
7162 * breakpoint.c (build_bpstat_chain): New function, moved from
7163 bpstat_stop_status.
7164 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7165 If no stop chain is passed, call build_bpstat_chain to build it.
7166 * breakpoint.h (build_bpstat_chain): Declare.
7167 (bpstat_stop_status): Move documentation here from breakpoint.c.
7168 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7169 build the stop chain and pass it to skip_inline_frames.
7170 Pass this stop chain to bpstat_stop_status.
7171 * inline-frame.c: Include breakpoint.h.
7172 (stopped_by_user_bp_inline_frame): New function.
7173 (skip_inline_frames): Add parameter `stop_chain'.
7174 Move documention to inline-frame.h.
7175 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7176 whether the frame should be elided.
7177 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7178 Add moved documentation and update for new parameter.
7179
b17992c1
SM
71802018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7181
7182 PR cli/14975
7183 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7184 unittests/format_pieces-selftests.c.
7185 * common/format.h (format_piece) <operator==>: New.
7186 (format_pieces) <operator[]>: Remove.
7187 * common/format.c (format_pieces::format_pieces): Handle \e.
7188 * unittests/format_pieces-selftests.c: New.
7189
58f0c718
TT
71902018-05-17 Tom Tromey <tom@tromey.com>
7191
7192 PR symtab/23010:
7193 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7194 (dw2_instantiate_symtab): Add skip_partial parameter.
7195 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7196 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7197 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7198 (dw2_expand_symtabs_matching_one)
7199 (dw2_find_pc_sect_compunit_symtab)
7200 (dw2_debug_names_lookup_symbol)
7201 (dw2_debug_names_expand_symtabs_for_function): Update.
7202 (init_cutu_and_read_dies): Add skip_partial parameter.
7203 (process_psymtab_comp_unit, build_type_psymtabs_1)
7204 (process_skeletonless_type_unit, load_partial_comp_unit)
7205 (psymtab_to_symtab_1): Update.
7206 (load_full_comp_unit): Add skip_partial parameter.
7207 (process_imported_unit_die, dwarf2_read_addr_index)
7208 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7209 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7210 (read_signatured_type): Update.
7211
3e618834
SM
72122018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7213
7214 * value.c (release_value): Remove unused variable.
7215 (record_latest_value): Likewise.
7216 (access_value_history): Likewise.
7217 (preserve_values): Likewise.
7218
fe10fe31
TT
72192018-05-17 Tom Tromey <tom@tromey.com>
7220
7221 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7222 Initialize.
7223
1d761124
MR
72242018-05-16 Maciej W. Rozycki <macro@mips.com>
7225
7226 PR gdb/22286
7227 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7228 Also handle registers whose width is not a multiple of
7229 PTRACE_TYPE_RET.
7230 (linux_nat_trad_target::store_register): Likewise.
7231
06333fea
TT
72322018-05-16 Tom Tromey <tom@tromey.com>
7233
7234 * gdbcore.h (core_bfd): Redefine.
7235 * corelow.c (core_target::close): Update.
7236 (core_target_open): Update.
7237 * progspace.h (struct program_space) <cbfd>: Now a
7238 gdb_bfd_ref_ptr.
7239
921222e2
TT
72402018-05-16 Tom Tromey <tom@tromey.com>
7241
7242 PR cli/19551:
7243 * symfile-add-flags.h (enum symfile_add_flags)
7244 <SYMFILE_NOT_FILENAME>: New constant.
7245 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7246 objfile name from BFD.
7247 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7248 * minidebug.c (find_separate_debug_file_in_section): Put
7249 ".gnu_debugdata" into BFD's file name.
7250
3acb7083
SM
72512018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7252
7253 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7254 Remove.
7255
561a72d4
TC
72562018-05-15 Tamar Christina <tamar.christina@arm.com>
7257
7258 PR binutils/21446
7259 * aarch64-tdep.c (aarch64_analyze_prologue,
7260 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7261 Indicate not interested in errors.
7262
4e6ff0e1
MR
72632018-05-15 Maciej W. Rozycki <macro@mips.com>
7264
7265 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7266 Supply the MIPS_ZERO_REGNUM register.
7267
ea33cd92
MR
72682018-05-15 Maciej W. Rozycki <macro@mips.com>
7269
7270 * mips-tdep.c (mask_address_var): Make variable static.
7271
2d79090e
TT
72722018-05-14 Tom Tromey <tom@tromey.com>
7273
7274 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7275
cf4912ae
AB
72762018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7277
7278 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7279 FXSAVE_ADDR for the mxcsr register.
7280
67e6f569
MF
72812018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7282
7283 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7284
15244507
PA
72852018-05-11 Pedro Alves <palves@redhat.com>
7286
7287 * corelow.c (core_target) <core_target>: No longer inline.
7288 Initialize m_core_gdbarch, m_core_vec and build the section table
7289 here.
7290 <~core_target>: New.
7291 <core_gdbarch, get_core_register_section>: New methods.
7292 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7293 factored out from ...
7294 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7295 (core_ops): Delete.
7296 (sniff_core_bfd): Add gdbarch parameter.
7297 (core_close): Delete, merged into ...
7298 (core_target::close): ... here. Delete self.
7299 (core_close_cleanup): Delete.
7300 (core_target_open): Allocate a core_target on the heap. Use a
7301 unique_ptr instead of a cleanup. Bits moved into the core_target
7302 ctor. Adjust to use core_target methods instead of globals.
7303 (get_core_register_section): Rename to ...
7304 (core_target::get_core_register_section): ... this and adjust.
7305 (struct get_core_registers_cb_data): New.
7306 (get_core_registers_cb): Use it. Use bool.
7307 (core_target::fetch_registers, core_target::files_info)
7308 (core_target::xfer_partial, core_target::read_description)
7309 (core_target::pid_to, core_target::thread_name): Adjust to
7310 reference class fields instead of globals.
7311 * target.h (struct target_ops_deleter, target_ops_up): New.
7312
451953fa
PA
73132018-05-11 Pedro Alves <palves@redhat.com>
7314
7315 * corefile.c (core_file_command): Move to corelow.c.
7316 * corelow.c (the_core_target): Delete.
7317 (core_file_command): Moved from corefile.c. Check exec_bfd
7318 instead of the_core_target. Use target_detach instead of calling
7319 into the_core_target directly.
7320 (maybe_say_no_core_file_now): New.
7321 (core_target::detach): Use it.
7322 (_initialize_corelow): Remove references to the_core_target.
7323 * gdbcore.h (the_core_target): Delete.
7324
e540a5a2 73252018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 7326 Pedro Alves <palves@redhat.com>
e540a5a2
TT
7327
7328 * corefile.c (core_bfd): Remove.
7329 * gdbcore.h (core_bfd): Now a macro.
7330 * progspace.h (struct program_space) <cbfd>: New field.
7331
633cf254
TT
73322018-05-11 Tom Tromey <tom@tromey.com>
7333
7334 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7335 gdb::def_vector.
7336
1a34f210
TT
73372018-05-10 Tom Tromey <tom@tromey.com>
7338
7339 * configure: Rebuild.
7340 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7341
190852c8
JB
73422018-05-10 Joel Brobecker <brobecker@adacore.com>
7343
7344 PR server/23158:
7345 * regformats/regdat.sh: Adjust script, following the addition
7346 of the new expedite_regs parameter to init_target_desc.
7347
8727de56
OJ
73482018-05-10 Omair Javaid <omair.javaid@linaro.org>
7349
7350 PR gdb/23127
7351 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7352 set_gdbarch_significant_addr_bit.
7353 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7354 set_gdbarch_significant_addr_bit.
7355 * utils.c (address_significant): Update to sign extend addr.
7356
37d9e062
MF
73572018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7358
7359 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7360 (xtensa_linux_init_abi): Limit tdep->num_regs by
7361 tdep->num_nopriv_regs.
7362 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7363 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7364 not initialized.
7365
7402fbca
SM
73662018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7367
7368 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7369
8ee22052
AB
73702018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7371
7372 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7373 (I387_MXCSR_INIT_VAL): New constant.
7374 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7375 buffer if it was supplied by the inferior.
7376 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7377 (i387_xsave_get_clear_bv): New function.
7378 (i387_supply_xsave): Only read x87 control registers from the
7379 xsave buffer if the feature is enabled, and the state will have
7380 been written, otherwise, provide a suitable default.
7381 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7382 including x87 control registers. Update control registers if they
7383 have changed from the default value, and mark features as enabled
7384 as required.
7385 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7386
968ae51b
UW
73872018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7388
7389 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7390
aff689d3
TT
73912018-05-07 Tom Tromey <tom@tromey.com>
7392
7393 * configure: Rebuild.
7394 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7395
ce887586
TT
73962018-05-07 Tom Tromey <tom@tromey.com>
7397
7398 PR tdep/20362:
7399 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7400 bit. Use correct value for VDIV.
7401
85e26832
TT
74022018-05-04 Tom Tromey <tom@tromey.com>
7403
7404 * configure: Rebuild.
7405 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7406
449b1ac7
TT
74072018-05-04 Tom Tromey <tom@tromey.com>
7408
7409 * linux-record.c (record_linux_system_call) <case
7410 RECORD_SYS_RECVFROM>: Add "break".
7411
15c9ffd6
TT
74122018-05-04 Tom Tromey <tom@tromey.com>
7413
7414 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7415 Add missing "break".
7416 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7417 Add missing "break".
7418
e3829d13
TT
74192018-05-04 Tom Tromey <tom@tromey.com>
7420
7421 * rs6000-tdep.c (ppc_process_record_op4)
7422 (ppc_process_record_op63): Add fall-through comment.
7423
da0e1563
TT
74242018-05-04 Tom Tromey <tom@tromey.com>
7425
7426 * i386-tdep.c (i386_process_record): Add fall-through comment.
7427
0019cd49
TT
74282018-05-04 Tom Tromey <tom@tromey.com>
7429
7430 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7431 comment.
7432
565e0eda
TT
74332018-05-04 Tom Tromey <tom@tromey.com>
7434
7435 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7436 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7437 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7438 comment.
7439 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7440 comment.
7441 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7442 comment.
7443
621846f4
TT
74442018-05-04 Tom Tromey <tom@tromey.com>
7445
7446 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7447
86a73007
TT
74482018-05-04 Tom Tromey <tom@tromey.com>
7449
7450 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7451 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7452 * symfile.c (section_is_mapped): Fix fall-through comment.
7453 * stabsread.c (define_symbol, read_member_functions): Fix
7454 fall-through comment.
7455 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7456 comment.
7457 * remote.c (remote_wait_as): Fix fall-through comment.
7458 * p-exp.y (yylex): Fix fall-through comment.
7459 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7460 comment.
7461 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7462 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7463 * jv-exp.y (yylex): Fix fall-through comment.
7464 * go-exp.y (lex_one_token): Fix fall-through comment.
7465 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7466 fall-through comment.
7467 * f-exp.y (yylex): Fix fall-through comment.
7468 * dwarf2read.c (process_die): Fix fall-through comments.
7469 * dbxread.c (process_one_symbol): Fix fall-through comment.
7470 * d-exp.y (lex_one_token): Fix fall-through comment.
7471 * cp-name-parser.y (yylex): Fix fall-through comment.
7472 * coffread.c (coff_symtab_read): Fix fall-through comment.
7473 * c-exp.y (lex_one_token): Fix fall-through comment.
7474 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7475 comment.
7476 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7477 comment.
7478
56bcdbea
TT
74792018-05-04 Tom Tromey <tom@tromey.com>
7480
7481 PR python/22730:
7482 * NEWS: Mention gdb.execute change.
7483 * gdbcmd.h (execute_control_command): Don't declare.
7484 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7485 execute_control_commands, execute_control_commands_to_string.
7486 * cli/cli-script.h (execute_control_commands)
7487 (execute_control_commands_to_string): Declare.
7488 (execute_control_command): Add from_tty parameter.
7489 * cli/cli-script.c (execute_control_commands)
7490 (execute_control_commands_to_string): New functions.
7491 (execute_user_command): Use execute_control_commands.
7492 (execute_control_command_1): Add "from_tty" parameter. Update.
7493 (execute_control_command): Likewise.
7494
a913fffb
TT
74952018-05-04 Tom Tromey <tom@tromey.com>
7496
7497 PR python/22731:
7498 * NEWS: Mention that breakpoint commands are writable.
7499 * python/py-breakpoint.c (bppy_set_commands): New function.
7500 (breakpoint_object_getset) <"commands">: Use it.
7501
60b3cef2
TT
75022018-05-04 Tom Tromey <tom@tromey.com>
7503
7504 * tracepoint.c (actions_command): Update.
7505 * mi/mi-cmd-break.c (mi_command_line_array)
7506 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7507 (mi_read_next_line): Remove.
7508 (mi_cmd_break_commands): Update.
7509 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7510 function_view.
7511 * cli/cli-script.c (get_command_line): Update.
7512 (process_next_line): Use function_view. Constify.
7513 (recurse_read_control_structure, read_command_lines)
7514 (read_command_lines_1): Change argument types to function_view.
7515 (do_define_command, document_command): Update.
7516 * breakpoint.h (check_tracepoint_command): Don't declare.
7517 * breakpoint.c (check_tracepoint_command): Remove.
7518 (commands_command_1, create_tracepoint_from_upload): Update.
7519
7a2c85f2
TT
75202018-05-04 Tom Tromey <tom@tromey.com>
7521
7522 PR gdb/11750:
7523 * cli/cli-script.h (enum command_control_type) <define_control>:
7524 New constant.
7525 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7526 (build_command_line, execute_control_command_1)
7527 (process_next_line): Likewise.
7528 (do_define_command): New function, extracted from define_command.
7529 (define_command): Use it.
7530
295dc222
TT
75312018-05-04 Tom Tromey <tom@tromey.com>
7532
7533 * tracepoint.c (actions_command): Update.
7534 * cli/cli-script.h (read_command_lines): Update.
7535 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7536 (MAX_TMPBUF): Remove define.
7537 (define_command): Use string_printf.
7538 (document_command): Likewise.
7539 * breakpoint.c (commands_command_1): Update.
7540
1263a9d5
TT
75412018-05-04 Tom Tromey <tom@tromey.com>
7542
7543 * top.c (execute_command): Update.
7544 * cli/cli-script.h (print_command_lines): Now varargs.
7545 * cli/cli-script.c (print_command_lines): Now varargs.
7546 (execute_control_command_1) <case while_control, case if_control>:
7547 Update.
7548
12973681
TT
75492018-05-04 Tom Tromey <tom@tromey.com>
7550
7551 * tracepoint.c (all_tracepoint_actions): Rename from
7552 all_tracepoint_actions_and_cleanup. Change return type.
7553 (actions_command, encode_actions_1, encode_actions)
7554 (trace_dump_actions, tdump_command): Update.
7555 * remote.c (remote_download_command_source): Update.
7556 * python/python.c (gdbpy_eval_from_control_command)
7557 (python_command, python_interactive_command): Update.
7558 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7559 * guile/guile.c (guile_command)
7560 (gdbscm_eval_from_control_command, guile_command): Update.
7561 * compile/compile.c (compile_code_command)
7562 (compile_print_command, compile_to_object): Update.
7563 * cli/cli-script.h (struct command_lines_deleter): New.
7564 (counted_command_line): New typedef.
7565 (struct command_line): Add constructor, destructor.
7566 <body_list>: Remove.
7567 <body_list_0, body_list_1>: New members.
7568 (command_line_up): Remove typedef.
7569 (read_command_lines, read_command_lines_1, get_command_line):
7570 Update.
7571 (copy_command_lines): Don't declare.
7572 * cli/cli-script.c (build_command_line): Use "new".
7573 (get_command_line): Return counted_command_line.
7574 (print_command_lines, execute_user_command)
7575 (execute_control_command_1, while_command, if_command): Update.
7576 (realloc_body_list): Remove.
7577 (process_next_line, recurse_read_control_structure): Update.
7578 (read_command_lines, read_command_lines_1): Return counted_command_line.
7579 (free_command_lines): Use "delete".
7580 (copy_command_lines): Remove.
7581 (define_command, document_command, show_user_1): Update.
7582 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7583 a counted_command_line.
7584 * breakpoint.h (counted_command_line): Remove typedef.
7585 (breakpoint_set_commands): Update.
7586 * breakpoint.c (check_no_tracepoint_commands)
7587 (validate_commands_for_breakpoint): Update.
7588 (breakpoint_set_commands): Change commands to be a
7589 counted_command_line.
7590 (commands_command_1, update_dprintf_command_list)
7591 (create_tracepoint_from_upload): Update.
7592
e2fc72e2
TT
75932018-05-04 Tom Tromey <tom@tromey.com>
7594
7595 * cli/cli-decode.h (cmd_list_element): New constructor.
7596 (~cmd_list_element): New destructor.
7597 (struct cmd_list_element): Add initializers.
7598 * cli/cli-decode.c (do_add_cmd): Use "new".
7599 (delete_cmd): Use "delete".
7600
a3b60e45
JK
76012018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7602 Pedro Alves <palves@redhat.com>
7603
7604 PR breakpoints/19806 and support for PR external/20207.
7605 * NEWS: Mention Aarch64 watchpoint improvements.
7606 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7607 watchpoints and PR external/20207 watchpoints.
7608 * nat/aarch64-linux-hw-point.c
7609 (kernel_supports_any_contiguous_range): New.
7610 (aarch64_watchpoint_offset): New.
7611 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7612 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7613 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7614 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7615 next_addr_orig_p. Support PR external/20207 watchpoints.
7616 (aarch64_downgrade_regs): New.
7617 (aarch64_dr_state_insert_one_point): New parameters offset and
7618 addr_orig.
7619 (aarch64_dr_state_remove_one_point): Likewise.
7620 (aarch64_handle_breakpoint): Update caller.
7621 (aarch64_handle_aligned_watchpoint): Likewise.
7622 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7623 aligned_offset.
7624 (aarch64_linux_set_debug_regs): Remove const from state. Call
7625 aarch64_downgrade_regs.
7626 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7627 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7628 (DR_CONTROL_MASK): ... this.
7629 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7630 (unsigned int aarch64_watchpoint_offset): New prototype.
7631 (aarch64_linux_set_debug_regs): Remove const from state.
7632 * utils.c (align_up, align_down): Move to ...
7633 * common/common-utils.c (align_up, align_down): ... here.
7634 * utils.h (align_up, align_down): Move to ...
7635 * common/common-utils.h (align_up, align_down): ... here.
7636
05bc7456
JB
76372018-05-04 Joel Brobecker <brobecker@adacore.com>
7638
7639 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7640 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7641 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7642 Re-implement to match the ABI as summarized in GCC's
7643 gcc/config/sparc/sparc.c. All callers updated.
7644 (sparc32_store_arguments): Remove assertion.
7645
2f433492
TT
76462018-05-04 Tom Tromey <tom@tromey.com>
7647
7648 * printcmd.c: Don't include tui.h.
7649 (decode_format): Use skip_spaces.
7650
9be2ae8f
TT
76512018-05-04 Tom Tromey <tom@tromey.com>
7652
7653 PR gdb/22619:
7654 * printcmd.c (last_count): New global.
7655 (x_command): Use saved count when repeating.
7656
f0b3976b
TT
76572018-05-04 Tom Tromey <tom@tromey.com>
7658
7659 * nto-procfs.c (do_closedir_cleanup): Remove.
7660 (procfs_pidlist): Use gdb_dir_up.
7661 * procfs.c (do_closedir_cleanup): Remove.
7662 (proc_update_threads): Use gdb_dir_up.
7663 * common/filestuff.h (struct gdb_dir_deleter): New.
7664 (gdb_dir_up): New typedef.
7665
862d101a
TT
76662018-05-04 Tom Tromey <tom@tromey.com>
7667
7668 * ada-lang.c (print_mention_exception): Use std::string.
7669
cb7de75e
TT
76702018-05-04 Tom Tromey <tom@tromey.com>
7671
7672 * ada-lang.c (create_excep_cond_exprs): Update.
7673 (ada_exception_catchpoint_cond_string): Use std::string.
7674
49d83361
TT
76752018-05-04 Tom Tromey <tom@tromey.com>
7676
7677 * ada-lang.c (xget_renaming_scope): Return std::string.
7678 (old_renaming_is_invisible): Update.
7679
ade72a34
TT
76802018-05-04 Tom Tromey <tom@tromey.com>
7681
7682 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7683 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7684
2be4d7f0
UW
76852018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7686
7687 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7688
69b6ecb0
TT
76892018-05-04 Tom Tromey <tom@tromey.com>
7690
7691 * remote.c (remote_query_supported_append): Change type.
7692 (remote_check_symbols): Update.
7693
bf27f0e2
PP
76942018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7695
7696 PR gdb/11420
7697 * configure.ac: Prepend libpython.
7698 * python/python-config.py: Likewise.
7699 * configure: Regenerate.
7700
4ea17de8
SM
77012018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7702
7703 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7704
bd732259
PA
77052018-05-03 Pedro Alves <palves@redhat.com>
7706
7707 * s390-linux-nat.c
7708 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7709 override. Write 'true' instead of '1'.
7710 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7711 declaration.
7712
d9f719f1
PA
77132018-05-02 Pedro Alves <palves@redhat.com>
7714
7715 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7716 add_inf_child_target.
7717 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7718 add_inf_child_target.
7719 * aix-thread.c (aix_thread_target_info): New.
7720 (aix_thread_target) <shortname, longname, doc>: Delete.
7721 <info>: New.
7722 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7723 add_inf_child_target.
7724 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7725 add_inf_child_target.
7726 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7727 add_inf_child_target.
7728 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7729 add_inf_child_target.
7730 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7731 add_inf_child_target.
7732 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7733 add_inf_child_target.
7734 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7735 add_inf_child_target.
7736 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7737 add_inf_child_target.
7738 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7739 add_inf_child_target.
7740 * bfd-target.c (target_bfd_target_info): New.
7741 (target_bfd) <shortname, longname, doc>: Delete.
7742 <info>: New.
7743 * bsd-kvm.c (bsd_kvm_target_info): New.
7744 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7745 <info>: New.
7746 (bsd_kvm_target::open): Rename to ...
7747 (bsd_kvm_target_open): ... this. Adjust.
7748 * bsd-uthread.c (bsd_uthread_target_info): New.
7749 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7750 <info>: New.
7751 * corefile.c (core_file_command): Adjust.
7752 * corelow.c (core_target_info): New.
7753 (core_target) <shortname, longname, doc>: Delete.
7754 <info>: New.
7755 (core_target::open): Rename to ...
7756 (core_target_open): ... this. Adjust.
7757 * ctf.c (ctf_target_info): New.
7758 (ctf_target) <shortname, longname, doc>: Delete.
7759 <info>: New.
7760 (ctf_target::open): Rename to ...
7761 (ctf_target_open): ... this.
7762 (_initialize_ctf): Adjust.
7763 * exec.c (exec_target_info): New.
7764 (exec_target) <shortname, longname, doc>: Delete.
7765 <info>: New.
7766 (exec_target::open): Rename to ...
7767 (exec_target_open): ... this.
7768 * gdbcore.h (core_target_open): Declare.
7769 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7770 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7771 add_inf_child_target.
7772 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7773 add_inf_child_target.
7774 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7775 add_inf_child_target.
7776 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7777 add_inf_child_target.
7778 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7779 add_inf_child_target.
7780 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7781 add_inf_child_target.
7782 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7783 add_inf_child_target.
7784 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7785 add_inf_child_target.
7786 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7787 add_inf_child_target.
7788 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7789 add_inf_child_target.
7790 * inf-child.c (inf_child_target_info): New.
7791 (inf_child_target::info): New.
7792 (inf_child_open_target): Remove 'target' parameter. Use
7793 get_native_target instead.
7794 (inf_child_target::open): Delete.
7795 (add_inf_child_target): New.
7796 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7797 Delete.
7798 <info>: New.
7799 (add_inf_child_target): Declare.
7800 (inf_child_open_target): Declare.
7801 * linux-thread-db.c (thread_db_target_info): New.
7802 (thread_db_target) <shortname, longname, doc>: Delete.
7803 <info>: New.
7804 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7805 add_inf_child_target.
7806 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7807 add_inf_child_target.
7808 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7809 add_inf_child_target.
7810 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7811 add_inf_child_target.
7812 * make-target-delegates (print_class): Adjust.
7813 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7814 add_inf_child_target.
7815 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7816 add_inf_child_target.
7817 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7818 add_inf_child_target.
7819 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7820 add_inf_child_target.
7821 * nto-procfs.c (nto_native_target_info): New.
7822 (nto_procfs_target_native) <shortname, longname, doc>:
7823 Delete.
7824 <info>: New.
7825 (nto_procfs_target_info): New.
7826 (nto_procfs_target_procfs) <shortname, longname, doc>:
7827 Delete.
7828 <info>: New.
7829 (init_procfs_targets): Adjust.
7830 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7831 add_inf_child_target.
7832 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7833 add_inf_child_target.
7834 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7835 add_inf_child_target.
7836 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7837 add_inf_child_target.
7838 * ravenscar-thread.c (ravenscar_target_info): New.
7839 (ravenscar_thread_target) <shortname, longname, doc>:
7840 Delete.
7841 <info>: New.
7842 * record-btrace.c (record_btrace_target_info):
7843 (record_btrace_target) <shortname, longname, doc>: Delete.
7844 <info>: New.
7845 (record_btrace_target::open): Rename to ...
7846 (record_btrace_target_open): ... this. Adjust.
7847 * record-full.c (record_longname, record_doc): New.
7848 (record_full_base_target) <shortname, longname, doc>: Delete.
7849 <info>: New.
7850 (record_full_target_info): New.
7851 (record_full_target): <shortname>: Delete.
7852 <info>: New.
7853 (record_full_core_open_1, record_full_open_1): Update comments.
7854 (record_full_base_target::open): Rename to ...
7855 (record_full_open): ... this.
7856 (cmd_record_full_restore): Update.
7857 (_initialize_record_full): Update.
7858 * remote-sim.c (remote_sim_target_info): New.
7859 (gdbsim_target) <shortname, longname, doc>: Delete.
7860 <info>: New.
7861 (gdbsim_target::open): Rename to ...
7862 (gdbsim_target_open): ... this.
7863 (_initialize_remote_sim): Adjust.
7864 * remote.c (remote_doc): New.
7865 (remote_target_info): New.
7866 (remote_target) <shortname, longname, doc>: Delete.
7867 <info>: New.
7868 (extended_remote_target_info): New.
7869 (extended_remote_target) <shortname, longname, doc>: Delete.
7870 <info>: New.
7871 (remote_target::open_1): Make static. Adjust.
7872 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7873 * s390-linux-nat.c (_initialize_s390_nat): Use
7874 add_inf_child_target.
7875 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7876 add_inf_child_target.
7877 * sol-thread.c (thread_db_target_info): New.
7878 (sol_thread_target) <shortname, longname, doc>: Delete.
7879 <info>: New.
7880 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7881 add_inf_child_target.
7882 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7883 add_inf_child_target.
7884 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7885 add_inf_child_target.
7886 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7887 add_inf_child_target.
7888 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7889 add_inf_child_target.
7890 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7891 add_inf_child_target.
7892 * spu-linux-nat.c (_initialize_spu_nat): Use
7893 add_inf_child_target.
7894 * spu-multiarch.c (spu_multiarch_target_info): New.
7895 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7896 <info>: New.
7897 * target-delegates.c: Regenerate.
7898 * target.c: Include <unordered_map>.
7899 (target_ops_p): Delete.
7900 (DEF_VEC_P(target_ops_p)): Delete.
7901 (target_factories): New.
7902 (test_target_info): New.
7903 (test_target_ops::info): New.
7904 (open_target): Adjust to use target_factories.
7905 (add_target_with_completer): Rename to ...
7906 (add_target): ... this. Change prototype. Register target_info
7907 and open callback in target_factories. Register target_info in
7908 command context instead of target_ops.
7909 (add_target): Delete old implementation.
7910 (add_deprecated_target_alias): Change prototype. Adjust.
7911 (the_native_target): New.
7912 (set_native_target, get_native_target): New.
7913 (find_default_run_target): Use the_native_target.
7914 (find_attach_target, find_run_target): Simplify.
7915 (target_ops::open): Delete.
7916 (dummy_target_info): New.
7917 (dummy_target::shortname, dummy_target::longname)
7918 (dummy_target::doc): Delete.
7919 (dummy_target::info): New.
7920 (debug_target::shortname, debug_target::longname)
7921 (debug_target::doc): Delete.
7922 (debug_target::info): New.
7923 * target.h (struct target_info): New.
7924 (target_ops::~target_ops): Add comment.
7925 (target_ops::info): New.
7926 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7927 longer virtual. Implement in terms of target_info.
7928 (set_native_target, get_native_target): Declare.
7929 (target_open_ftype): New.
7930 (add_target, add_target_with_completer)
7931 (add_deprecated_target_alias): Change prototype.
7932 (test_target) <shortname, longname, doc>: Delete.
7933 <info>: New.
7934 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7935 add_inf_child_target.
7936 * tracefile-tfile.c (tfile_target_info): New.
7937 (tfile_target) <shortname, longname, doc>: Delete.
7938 <info>: New.
7939 (tfile_target::open): Rename to ...
7940 (tfile_target_open): ... this.
7941 (_initialize_tracefile_tfile): Adjust.
7942 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7943 add_inf_child_target.
7944 * windows-nat.c (_initialize_windows_nat): Use
7945 add_inf_child_target.
7946 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7947 add_inf_child_target.
7948
135340af
PA
79492018-05-02 Pedro Alves <palves@redhat.com>
7950
7951 * linux-nat.h (linux_nat_target) <low_new_thread,
7952 low_delete_thread, low_new_fork, low_forget_process,
7953 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7954 New virtual methods.
7955 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7956 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7957 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7958 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7959 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7960 Delete.
7961 * linux-fork.c (delete_fork): Adjust to call low method.
7962 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7963 (linux_nat_new_fork, linux_nat_forget_process_hook)
7964 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7965 (linux_nat_status_is_event):
7966 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7967 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7968 to call low method.
7969 (sigtrap_is_event): Rename to ...
7970 (linux_nat_target::low_status_is_event): ... this.
7971 (linux_nat_set_status_is_event): Delete.
7972 (save_stop_reason, linux_nat_wait_1)
7973 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7974 low methods.
7975 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7976 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7977 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7978 (linux_nat_set_prepare_to_resume): Delete.
7979 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7980 low virtual methods.
7981 * amd64-linux-nat.c: Likewise.
7982 * arm-linux-nat.c: Likewise.
7983 * i386-linux-nat.c: Likewise.
7984 * ia64-linux-nat.c: Likewise.
7985 * mips-linux-nat.c: Likewise.
7986 * ppc-linux-nat.c: Likewise.
7987 * s390-linux-nat.c: Likewise.
7988 * sparc64-linux-nat.c: Likewise.
7989 * x86-linux-nat.c: Likewise.
7990 * x86-linux-nat.h: Include "nat/x86-linux.h".
7991 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7992 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7993 Override methods.
7994
57810aa7
PA
79952018-05-02 Pedro Alves <palves@redhat.com>
7996
7997 * target.h (target_ops)
7998 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7999 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8000 stopped_by_watchpoint, have_continuable_watchpoint,
8001 stopped_data_address, watchpoint_addr_within_range,
8002 can_accel_watchpoint_condition, can_run, thread_alive,
8003 has_all_memory, has_memory, has_stack, has_registers,
8004 has_execution, can_async_p, is_async_p, supports_non_stop,
8005 always_non_stop_p, can_execute_reverse, supports_multi_process,
8006 supports_enable_disable_tracepoint,
8007 supports_disable_randomization, supports_string_tracing,
8008 supports_evaluation_of_breakpoint_conditions,
8009 can_run_breakpoint_commands, filesystem_is_local,
8010 can_download_tracepoint, get_trace_state_variable_value,
8011 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8012 record_is_replaying, record_will_replay,
8013 augmented_libraries_svr4_read>: Adjust to return bool.
8014 * aarch64-linux-nat.c: All implementations adjusted.
8015 * aix-thread.c: All implementations adjusted.
8016 * arm-linux-nat.c: All implementations adjusted.
8017 * breakpoint.c: All implementations adjusted.
8018 * bsd-kvm.c: All implementations adjusted.
8019 * bsd-uthread.c: All implementations adjusted.
8020 * corelow.c: All implementations adjusted.
8021 * ctf.c: All implementations adjusted.
8022 * darwin-nat.c: All implementations adjusted.
8023 * darwin-nat.h: All implementations adjusted.
8024 * exec.c: All implementations adjusted.
8025 * fbsd-nat.c: All implementations adjusted.
8026 * fbsd-nat.h: All implementations adjusted.
8027 * gnu-nat.c: All implementations adjusted.
8028 * gnu-nat.h: All implementations adjusted.
8029 * go32-nat.c: All implementations adjusted.
8030 * ia64-linux-nat.c: All implementations adjusted.
8031 * inf-child.c: All implementations adjusted.
8032 * inf-child.h: All implementations adjusted.
8033 * inf-ptrace.c: All implementations adjusted.
8034 * inf-ptrace.h: All implementations adjusted.
8035 * linux-nat.c: All implementations adjusted.
8036 * linux-nat.h: All implementations adjusted.
8037 * mips-linux-nat.c: All implementations adjusted.
8038 * nto-procfs.c: All implementations adjusted.
8039 * ppc-linux-nat.c: All implementations adjusted.
8040 * procfs.c: All implementations adjusted.
8041 * ravenscar-thread.c: All implementations adjusted.
8042 * record-btrace.c: All implementations adjusted.
8043 * record-full.c: All implementations adjusted.
8044 * remote-sim.c: All implementations adjusted.
8045 * remote.c: All implementations adjusted.
8046 * s390-linux-nat.c: All implementations adjusted.
8047 * sol-thread.c: All implementations adjusted.
8048 * spu-multiarch.c: All implementations adjusted.
8049 * target-delegates.c: All implementations adjusted.
8050 * target.c: All implementations adjusted.
8051 * target.h: All implementations adjusted.
8052 * tracefile-tfile.c: All implementations adjusted.
8053 * tracefile.c: All implementations adjusted.
8054 * tracefile.h: All implementations adjusted.
8055 * windows-nat.c: All implementations adjusted.
8056 * x86-linux-nat.h: All implementations adjusted.
8057 * x86-nat.h: All implementations adjusted.
8058
ad6a4e2d
PA
80592018-05-02 Pedro Alves <palves@redhat.com>
8060
8061 * make-target-delegates (scan_target_h): Don't trim lines here.
8062 Replace sequences of tabs and/or whitespace with a single
8063 whitespace.
8064 (top level, parsing methods): Trim each line before processing it
8065 here.
8066
f6ac5f3d
PA
80672018-05-02 Pedro Alves <palves@redhat.com>
8068 John Baldwin <jhb@freebsd.org>
8069
8070 * target.h (enum strata) <debug_stratum>: New.
8071 (struct target_ops) <all delegation methods>: Replace by C++
8072 virtual methods, and drop "to_" prefix. All references updated
8073 throughout.
8074 <to_shortname, to_longname, to_doc, to_data,
8075 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8076 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8077 virtual methods. All references updated throughout.
8078 <can_attach, supports_terminal_ours, can_create_inferior,
8079 get_thread_control_capabilities, attach_no_wait>: New
8080 virtual methods.
8081 <insert_breakpoint, remove_breakpoint>: Now
8082 TARGET_DEFAULT_NORETURN methods.
8083 <info_proc>: Now returns bool.
8084 <to_magic>: Delete.
8085 (OPS_MAGIC): Delete.
8086 (current_target): Delete. All references replaced by references
8087 to ...
8088 (target_stack): ... this. New.
8089 (target_shortname, target_longname): Adjust.
8090 (target_can_run): Now a function declaration.
8091 (default_child_has_all_memory, default_child_has_memory)
8092 (default_child_has_stack, default_child_has_registers)
8093 (default_child_has_execution): Remove target_ops parameter.
8094 (complete_target_initialization): Delete.
8095 (memory_breakpoint_target): New template class.
8096 (test_target_ops): Refactor as a C++ class with virtual methods.
8097 * make-target-delegates (NAME_PART): Tighten.
8098 (POINTER_PART, CP_SYMBOL): New.
8099 (SIMPLE_RETURN_PART): Reimplement.
8100 (VEC_RETURN_PART): Expect less.
8101 (RETURN_PART, VIRTUAL_PART): New.
8102 (METHOD): Adjust to C++ virtual methods.
8103 (scan_target_h): Remove reference to C99.
8104 (dname): Output "target_ops::" prefix.
8105 (write_function_header): Adjust to output a C++ class method.
8106 (write_declaration): New.
8107 (write_delegator): Adjust to output a C++ class method.
8108 (tdname): Output "dummy_target::" prefix.
8109 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8110 method.
8111 (tdefault_names, debug_names): Delete.
8112 (return_types, tdefaults, styles, argtypes_array): New.
8113 (top level): All methods are delegators.
8114 (print_class): New.
8115 (top level): Print dummy_target and debug_target classes.
8116 * target-delegates.c: Regenerate.
8117 * target-debug.h (target_debug_print_enum_info_proc_what)
8118 (target_debug_print_thread_control_capabilities)
8119 (target_debug_print_thread_info_p): New.
8120 * target.c (dummy_target): Delete.
8121 (the_dummy_target, the_debug_target): New.
8122 (target_stack): Now extern.
8123 (set_targetdebug): Push/unpush debug target.
8124 (default_child_has_all_memory, default_child_has_memory)
8125 (default_child_has_stack, default_child_has_registers)
8126 (default_child_has_execution): Remove target_ops parameter.
8127 (complete_target_initialization): Delete.
8128 (add_target_with_completer): No longer call
8129 complete_target_initialization.
8130 (target_supports_terminal_ours): Use regular delegation.
8131 (update_current_target): Delete.
8132 (push_target): No longer check magic number. Don't call
8133 update_current_target.
8134 (unpush_target): Don't call update_current_target.
8135 (target_is_pushed): No longer check magic number.
8136 (target_require_runnable): Skip for all stratums over
8137 process_stratum.
8138 (target_ops::info_proc): New.
8139 (target_info_proc): Use find_target_at and
8140 find_default_run_target.
8141 (target_supports_disable_randomization): Use regular delegation.
8142 (target_get_osdata): Use find_target_at.
8143 (target_ops::open, target_ops::close, target_ops::can_attach)
8144 (target_ops::attach, target_ops::can_create_inferior)
8145 (target_ops::create_inferior, target_ops::can_run)
8146 (target_can_run): New.
8147 (default_fileio_target): Use regular delegation.
8148 (target_ops::fileio_open, target_ops::fileio_pwrite)
8149 (target_ops::fileio_pread, target_ops::fileio_fstat)
8150 (target_ops::fileio_close, target_ops::fileio_unlink)
8151 (target_ops::fileio_readlink): New.
8152 (target_fileio_open_1, target_fileio_unlink)
8153 (target_fileio_readlink): Always call the target method. Handle
8154 FILEIO_ENOSYS.
8155 (return_zero, return_zero_has_execution): Delete.
8156 (init_dummy_target): Delete.
8157 (dummy_target::dummy_target, dummy_target::shortname)
8158 (dummy_target::longname, dummy_target::doc)
8159 (debug_target::debug_target, debug_target::shortname)
8160 (debug_target::longname, debug_target::doc): New.
8161 (target_supports_delete_record): Use regular delegation.
8162 (setup_target_debug): Delete.
8163 (maintenance_print_target_stack): Skip debug_stratum.
8164 (initialize_targets): Instantiate the_dummy_target and
8165 the_debug_target.
8166 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8167 use target_stack.
8168 (target_auxv_search, fprint_target_auxv): Adjust.
8169 (info_auxv_command): Adjust to use target_stack.
8170 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8171 * exceptions.c (print_flush): Handle a NULL target_stack.
8172 * regcache.c (target_ops_no_register): Refactor as class with
8173 virtual methods.
8174
8175 * exec.c (exec_target): New class.
8176 (exec_ops): Now an exec_target.
8177 (exec_open, exec_close_1, exec_get_section_table)
8178 (exec_xfer_partial, exec_files_info, exec_has_memory)
8179 (exec_make_note_section): Refactor as exec_target methods.
8180 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8181 Delete.
8182 (exec_target::find_memory_regions): New.
8183 (_initialize_exec): Don't call init_exec_ops.
8184 * gdbcore.h (exec_file_clear): Delete.
8185
8186 * corefile.c (core_target): Delete.
8187 (core_file_command): Adjust.
8188 * corelow.c (core_target): New class.
8189 (the_core_target): New.
8190 (core_close): Remove target_ops parameter.
8191 (core_close_cleanup): Adjust.
8192 (core_target::close): New.
8193 (core_open, core_detach, get_core_registers, core_files_info)
8194 (core_xfer_partial, core_thread_alive, core_read_description)
8195 (core_pid_to_str, core_thread_name, core_has_memory)
8196 (core_has_stack, core_has_registers, core_info_proc): Rework as
8197 core_target methods.
8198 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8199 (_initialize_corelow): Initialize the_core_target.
8200 * gdbcore.h (core_target): Delete.
8201 (the_core_target): New.
8202
8203 * ctf.c: (ctf_target): New class.
8204 (ctf_ops): Now a ctf_target.
8205 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8206 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8207 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8208 methods.
8209 (init_ctf_ops): Delete.
8210 (_initialize_ctf): Don't call it.
8211 * tracefile-tfile.c (tfile_target): New class.
8212 (tfile_ops): Now a tfile_target.
8213 (tfile_open, tfile_close, tfile_files_info)
8214 (tfile_get_tracepoint_status, tfile_trace_find)
8215 (tfile_fetch_registers, tfile_xfer_partial)
8216 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8217 Refactor as tfile_target methods.
8218 (tfile_xfer_partial_features): Remove target_ops parameter.
8219 (init_tfile_ops): Delete.
8220 (_initialize_tracefile_tfile): Don't call it.
8221 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8222 (tracefile_has_stack, tracefile_has_registers)
8223 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8224 tracefile_target methods.
8225 (init_tracefile_ops): Delete.
8226 (tracefile_target::tracefile_target): New.
8227 * tracefile.h: Include "target.h".
8228 (tracefile_target): New class.
8229 (init_tracefile_ops): Delete.
8230
8231 * spu-multiarch.c (spu_multiarch_target): New class.
8232 (spu_ops): Now a spu_multiarch_target.
8233 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8234 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8235 (spu_search_memory, spu_mourn_inferior): Refactor as
8236 spu_multiarch_target methods.
8237 (init_spu_ops): Delete.
8238 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8239 complete_target_initialization.
8240
8241 * ravenscar-thread.c (ravenscar_thread_target): New class.
8242 (ravenscar_ops): Now a ravenscar_thread_target.
8243 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8244 (ravenscar_thread_alive, ravenscar_pid_to_str)
8245 (ravenscar_fetch_registers, ravenscar_store_registers)
8246 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8247 (ravenscar_stopped_by_hw_breakpoint)
8248 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8249 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8250 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8251 methods.
8252 (init_ravenscar_thread_ops): Delete.
8253 (_initialize_ravenscar): Remove references to
8254 init_ravenscar_thread_ops and complete_target_initialization.
8255
8256 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8257 (bsd_uthread_target): New class.
8258 (bsd_uthread_ops): Now a bsd_uthread_target.
8259 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8260 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8261 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8262 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8263 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8264 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8265 (bsd_uthread_target): Delete function.
8266 (_initialize_bsd_uthread): Remove reference to
8267 complete_target_initialization.
8268
8269 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8270 (target_bfd): ... this new class.
8271 (target_bfd_xfer_partial, target_bfd_get_section_table)
8272 (target_bfd_close): Refactor as target_bfd methods.
8273 (target_bfd::~target_bfd): New.
8274 (target_bfd_reopen): Adjust.
8275 (target_bfd::close): New.
8276
8277 * record-btrace.c (record_btrace_target): New class.
8278 (record_btrace_ops): Now a record_btrace_target.
8279 (record_btrace_open, record_btrace_stop_recording)
8280 (record_btrace_disconnect, record_btrace_close)
8281 (record_btrace_async, record_btrace_info)
8282 (record_btrace_insn_history, record_btrace_insn_history_range)
8283 (record_btrace_insn_history_from, record_btrace_call_history)
8284 (record_btrace_call_history_range)
8285 (record_btrace_call_history_from, record_btrace_record_method)
8286 (record_btrace_is_replaying, record_btrace_will_replay)
8287 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8288 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8289 (record_btrace_store_registers, record_btrace_prepare_to_store)
8290 (record_btrace_to_get_unwinder)
8291 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8292 (record_btrace_commit_resume, record_btrace_wait)
8293 (record_btrace_stop, record_btrace_can_execute_reverse)
8294 (record_btrace_stopped_by_sw_breakpoint)
8295 (record_btrace_supports_stopped_by_sw_breakpoint)
8296 (record_btrace_stopped_by_hw_breakpoint)
8297 (record_btrace_supports_stopped_by_hw_breakpoint)
8298 (record_btrace_update_thread_list, record_btrace_thread_alive)
8299 (record_btrace_goto_begin, record_btrace_goto_end)
8300 (record_btrace_goto, record_btrace_stop_replaying_all)
8301 (record_btrace_execution_direction)
8302 (record_btrace_prepare_to_generate_core)
8303 (record_btrace_done_generating_core): Refactor as
8304 record_btrace_target methods.
8305 (init_record_btrace_ops): Delete.
8306 (_initialize_record_btrace): Remove reference to
8307 init_record_btrace_ops.
8308 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8309 the execution_direction global.
8310 (record_full_base_target, record_full_target)
8311 (record_full_core_target): New classes.
8312 (record_full_ops): Now a record_full_target.
8313 (record_full_core_ops): Now a record_full_core_target.
8314 (record_full_target::detach, record_full_target::disconnect)
8315 (record_full_core_target::disconnect)
8316 (record_full_target::mourn_inferior, record_full_target::kill):
8317 New.
8318 (record_full_open, record_full_close, record_full_async): Refactor
8319 as methods of the record_full_base_target class.
8320 (record_full_resume, record_full_commit_resume): Refactor
8321 as methods of the record_full_target class.
8322 (record_full_wait, record_full_stopped_by_watchpoint)
8323 (record_full_stopped_data_address)
8324 (record_full_stopped_by_sw_breakpoint)
8325 (record_full_supports_stopped_by_sw_breakpoint)
8326 (record_full_stopped_by_hw_breakpoint)
8327 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8328 methods of the record_full_base_target class.
8329 (record_full_store_registers, record_full_xfer_partial)
8330 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8331 Refactor as methods of the record_full_target class.
8332 (record_full_can_execute_reverse, record_full_get_bookmark)
8333 (record_full_goto_bookmark, record_full_execution_direction)
8334 (record_full_record_method, record_full_info, record_full_delete)
8335 (record_full_is_replaying, record_full_will_replay)
8336 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8337 (record_full_stop_replaying): Refactor as methods of the
8338 record_full_base_target class.
8339 (record_full_core_resume, record_full_core_kill)
8340 (record_full_core_fetch_registers)
8341 (record_full_core_prepare_to_store)
8342 (record_full_core_store_registers, record_full_core_xfer_partial)
8343 (record_full_core_insert_breakpoint)
8344 (record_full_core_remove_breakpoint)
8345 (record_full_core_has_execution): Refactor
8346 as methods of the record_full_core_target class.
8347 (record_full_base_target::supports_delete_record): New.
8348 (init_record_full_ops): Delete.
8349 (init_record_full_core_ops): Delete.
8350 (record_full_save): Refactor as method of the
8351 record_full_base_target class.
8352 (_initialize_record_full): Remove references to
8353 init_record_full_ops and init_record_full_core_ops.
8354
8355 * remote.c (remote_target, extended_remote_target): New classes.
8356 (remote_ops): Now a remote_target.
8357 (extended_remote_ops): Now an extended_remote_target.
8358 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8359 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8360 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8361 (remote_pass_signals, remote_set_syscall_catchpoint)
8362 (remote_program_signals, )
8363 (remote_thread_always_alive): Remove target_ops parameter.
8364 (remote_thread_alive, remote_thread_name)
8365 (remote_update_thread_list, remote_threads_extra_info)
8366 (remote_static_tracepoint_marker_at)
8367 (remote_static_tracepoint_markers_by_strid)
8368 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8369 (remote_open): Refactor as methods of remote_target.
8370 (extended_remote_open, extended_remote_detach)
8371 (extended_remote_attach, extended_remote_post_attach):
8372 (extended_remote_supports_disable_randomization)
8373 (extended_remote_create_inferior): : Refactor as method of
8374 extended_remote_target.
8375 (remote_set_permissions, remote_open_1, remote_detach)
8376 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8377 (remote_resume, remote_commit_resume, remote_stop)
8378 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8379 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8380 (remote_prepare_to_store, remote_store_registers)
8381 (remote_flash_erase, remote_flash_done, remote_files_info)
8382 (remote_kill, remote_mourn, remote_insert_breakpoint)
8383 (remote_remove_breakpoint, remote_insert_watchpoint)
8384 (remote_watchpoint_addr_within_range)
8385 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8386 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8387 (remote_supports_stopped_by_sw_breakpoint)
8388 (remote_stopped_by_hw_breakpoint)
8389 (remote_supports_stopped_by_hw_breakpoint)
8390 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8391 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8392 (remote_verify_memory): Refactor as methods of remote_target.
8393 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8394 parameter.
8395 (remote_xfer_partial, remote_get_memory_xfer_limit)
8396 (remote_search_memory, remote_rcmd, remote_memory_map)
8397 (remote_pid_to_str, remote_get_thread_local_address)
8398 (remote_get_tib_address, remote_read_description): Refactor as
8399 methods of remote_target.
8400 (remote_target::fileio_open, remote_target::fileio_pwrite)
8401 (remote_target::fileio_pread, remote_target::fileio_close): New.
8402 (remote_hostio_readlink, remote_hostio_fstat)
8403 (remote_filesystem_is_local, remote_can_execute_reverse)
8404 (remote_supports_non_stop, remote_supports_disable_randomization)
8405 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8406 (remote_supports_enable_disable_tracepoint)
8407 (remote_supports_string_tracing)
8408 (remote_can_run_breakpoint_commands, remote_trace_init)
8409 (remote_download_tracepoint, remote_can_download_tracepoint)
8410 (remote_download_trace_state_variable, remote_enable_tracepoint)
8411 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8412 (remote_trace_start, remote_get_trace_status)
8413 (remote_get_tracepoint_status, remote_trace_stop)
8414 (remote_trace_find, remote_get_trace_state_variable_value)
8415 (remote_save_trace_data, remote_get_raw_trace_data)
8416 (remote_set_disconnected_tracing, remote_core_of_thread)
8417 (remote_set_circular_trace_buffer, remote_traceframe_info)
8418 (remote_get_min_fast_tracepoint_insn_len)
8419 (remote_set_trace_buffer_size, remote_set_trace_notes)
8420 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8421 (remote_disable_btrace, remote_teardown_btrace)
8422 (remote_read_btrace, remote_btrace_conf)
8423 (remote_augmented_libraries_svr4_read, remote_load)
8424 (remote_pid_to_exec_file, remote_can_do_single_step)
8425 (remote_execution_direction, remote_thread_handle_to_thread_info):
8426 Refactor as methods of remote_target.
8427 (init_remote_ops, init_extended_remote_ops): Delete.
8428 (remote_can_async_p, remote_is_async_p, remote_async)
8429 (remote_thread_events, remote_upload_tracepoints)
8430 (remote_upload_trace_state_variables): Refactor as methods of
8431 remote_target.
8432 (_initialize_remote): Remove references to init_remote_ops and
8433 init_extended_remote_ops.
8434
8435 * remote-sim.c (gdbsim_target): New class.
8436 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8437 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8438 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8439 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8440 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8441 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8442 Refactor as methods of gdbsim_target.
8443 (gdbsim_ops): Now a gdbsim_target.
8444 (init_gdbsim_ops): Delete.
8445 (gdbsim_cntrl_c): Adjust.
8446 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8447
8448 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8449 (the_amd64_linux_nat_target): New.
8450 (amd64_linux_fetch_inferior_registers)
8451 (amd64_linux_store_inferior_registers): Refactor as methods of
8452 amd64_linux_nat_target.
8453 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8454 * i386-linux-nat.c: Don't include "linux-nat.h".
8455 (i386_linux_nat_target): New class.
8456 (the_i386_linux_nat_target): New.
8457 (i386_linux_fetch_inferior_registers)
8458 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8459 as methods of i386_linux_nat_target.
8460 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8461 * inf-child.c (inf_child_ops): Delete.
8462 (inf_child_fetch_inferior_registers)
8463 (inf_child_store_inferior_registers): Delete.
8464 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8465 methods of inf_child_target.
8466 (inf_child_target::supports_terminal_ours)
8467 (inf_child_target::terminal_init)
8468 (inf_child_target::terminal_inferior)
8469 (inf_child_target::terminal_ours_for_output)
8470 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8471 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8472 New.
8473 (inf_child_open, inf_child_disconnect, inf_child_close)
8474 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8475 (inf_child_post_startup_inferior, inf_child_can_run)
8476 (inf_child_pid_to_exec_file): Refactor as methods of
8477 inf_child_target.
8478 (inf_child_follow_fork): Delete.
8479 (inf_child_target::can_create_inferior)
8480 (inf_child_target::can_attach): New.
8481 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8482 (inf_child_target::has_stack, inf_child_target::has_registers)
8483 (inf_child_target::has_execution): New.
8484 (inf_child_fileio_open, inf_child_fileio_pwrite)
8485 (inf_child_fileio_pread, inf_child_fileio_fstat)
8486 (inf_child_fileio_close, inf_child_fileio_unlink)
8487 (inf_child_fileio_readlink, inf_child_use_agent)
8488 (inf_child_can_use_agent): Refactor as methods of
8489 inf_child_target.
8490 (return_zero, inf_child_target): Delete.
8491 (inf_child_target::inf_child_target): New.
8492 * inf-child.h: Include "target.h".
8493 (inf_child_target): Delete function prototype.
8494 (inf_child_target): New class.
8495 (inf_child_open_target, inf_child_mourn_inferior)
8496 (inf_child_maybe_unpush_target): Delete.
8497 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8498 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8499 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8500 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8501 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8502 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8503 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8504 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8505 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8506 methods of inf_ptrace_target.
8507 (inf_ptrace_target): Delete function.
8508 * inf-ptrace.h: Include "inf-child.h".
8509 (inf_ptrace_target): Delete function declaration.
8510 (inf_ptrace_target): New class.
8511 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8512 * linux-nat.c (linux_target): New.
8513 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8514 (linux_nat_target::~linux_nat_target): New.
8515 (linux_child_post_attach, linux_child_post_startup_inferior)
8516 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8517 (linux_child_remove_fork_catchpoint)
8518 (linux_child_insert_vfork_catchpoint)
8519 (linux_child_remove_vfork_catchpoint)
8520 (linux_child_insert_exec_catchpoint)
8521 (linux_child_remove_exec_catchpoint)
8522 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8523 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8524 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8525 (linux_nat_stopped_data_address)
8526 (linux_nat_stopped_by_sw_breakpoint)
8527 (linux_nat_supports_stopped_by_sw_breakpoint)
8528 (linux_nat_stopped_by_hw_breakpoint)
8529 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8530 (linux_nat_kill, linux_nat_mourn_inferior)
8531 (linux_nat_xfer_partial, linux_nat_thread_alive)
8532 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8533 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8534 (linux_child_static_tracepoint_markers_by_strid)
8535 (linux_nat_is_async_p, linux_nat_can_async_p)
8536 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8537 (linux_nat_supports_multi_process)
8538 (linux_nat_supports_disable_randomization, linux_nat_async)
8539 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8540 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8541 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8542 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8543 methods of linux_nat_target.
8544 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8545 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8546 parameter.
8547 (check_stopped_by_watchpoint): Adjust.
8548 (linux_xfer_partial): Delete.
8549 (linux_target_install_ops, linux_target, linux_nat_add_target):
8550 Delete.
8551 (linux_nat_target::linux_nat_target): New.
8552 * linux-nat.h: Include "inf-ptrace.h".
8553 (linux_nat_target): New.
8554 (linux_target, linux_target_install_ops, linux_nat_add_target):
8555 Delete function declarations.
8556 (linux_target): Declare global.
8557 * linux-thread-db.c (thread_db_target): New.
8558 (thread_db_target::thread_db_target): New.
8559 (thread_db_ops): Delete.
8560 (the_thread_db_target): New.
8561 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8562 (thread_db_update_thread_list, thread_db_pid_to_str)
8563 (thread_db_extra_thread_info)
8564 (thread_db_thread_handle_to_thread_info)
8565 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8566 (thread_db_resume): Refactor as methods of thread_db_target.
8567 (init_thread_db_ops): Delete.
8568 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8569 * x86-linux-nat.c: Don't include "linux-nat.h".
8570 (super_post_startup_inferior): Delete.
8571 (x86_linux_nat_target::~x86_linux_nat_target): New.
8572 (x86_linux_child_post_startup_inferior)
8573 (x86_linux_read_description, x86_linux_enable_btrace)
8574 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8575 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8576 methods of x86_linux_nat_target.
8577 (x86_linux_create_target): Delete. Bits folded ...
8578 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8579 pointer.
8580 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8581 (x86_linux_nat_target): New class.
8582 (x86_linux_create_target): Delete.
8583 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8584 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8585 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8586 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8587 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8588 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8589 make extern.
8590 (x86_use_watchpoints): Delete.
8591 * x86-nat.h: Include "breakpoint.h" and "target.h".
8592 (x86_use_watchpoints): Delete.
8593 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8594 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8595 (x86_insert_watchpoint, x86_remove_watchpoint)
8596 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8597 (x86_stopped_by_hw_breakpoint): New declarations.
8598 (x86_nat_target): New template class.
8599
8600 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8601 (the_ppc_linux_nat_target): New.
8602 (ppc_linux_fetch_inferior_registers)
8603 (ppc_linux_can_use_hw_breakpoint)
8604 (ppc_linux_region_ok_for_hw_watchpoint)
8605 (ppc_linux_ranged_break_num_registers)
8606 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8607 (ppc_linux_insert_mask_watchpoint)
8608 (ppc_linux_remove_mask_watchpoint)
8609 (ppc_linux_can_accel_watchpoint_condition)
8610 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8611 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8612 (ppc_linux_watchpoint_addr_within_range)
8613 (ppc_linux_masked_watch_num_registers)
8614 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8615 (ppc_linux_read_description): Refactor as methods of
8616 ppc_linux_nat_target.
8617 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8618
8619 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8620 (procfs_target): New class.
8621 (the_procfs_target): New.
8622 (procfs_target): Delete function.
8623 (procfs_auxv_parse, procfs_attach, procfs_detach)
8624 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8625 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8626 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8627 (procfs_create_inferior, procfs_update_thread_list)
8628 (procfs_thread_alive, procfs_pid_to_str)
8629 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8630 (procfs_stopped_data_address, procfs_insert_watchpoint)
8631 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8632 (proc_find_memory_regions, procfs_info_proc)
8633 (procfs_make_note_section): Refactor as methods of procfs_target.
8634 (_initialize_procfs): Adjust.
8635 * sol-thread.c (sol_thread_target): New class.
8636 (sol_thread_ops): Now a sol_thread_target.
8637 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8638 (sol_thread_fetch_registers, sol_thread_store_registers)
8639 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8640 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8641 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8642 (init_sol_thread_ops): Delete.
8643 (_initialize_sol_thread): Adjust. Remove references to
8644 init_sol_thread_ops and complete_target_initialization.
8645
8646 * windows-nat.c (windows_nat_target): New class.
8647 (windows_fetch_inferior_registers)
8648 (windows_store_inferior_registers, windows_resume, windows_wait)
8649 (windows_attach, windows_detach, windows_pid_to_exec_file)
8650 (windows_files_info, windows_create_inferior)
8651 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8652 (windows_close, windows_pid_to_str, windows_xfer_partial)
8653 (windows_get_tib_address, windows_get_ada_task_ptid)
8654 (windows_thread_name, windows_thread_alive): Refactor as
8655 windows_nat_target methods.
8656 (do_initial_windows_stuff): Adjust.
8657 (windows_target): Delete function.
8658 (_initialize_windows_nat): Adjust.
8659
8660 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8661 (darwin_mourn_inferior, darwin_kill_inferior)
8662 (darwin_create_inferior, darwin_attach, darwin_detach)
8663 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8664 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8665 (darwin_supports_multi_process): Refactor as darwin_nat_target
8666 methods.
8667 (darwin_resume_to, darwin_files_info): Delete.
8668 (_initialize_darwin_inferior): Rename to ...
8669 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8670 * darwin-nat.h: Include "inf-child.h".
8671 (darwin_nat_target): New class.
8672 (darwin_complete_target): Delete.
8673 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8674 (darwin_target): New.
8675 (i386_darwin_fetch_inferior_registers)
8676 (i386_darwin_store_inferior_registers): Refactor as methods of
8677 darwin_nat_target.
8678 (darwin_complete_target): Delete, with ...
8679 (_initialize_i386_darwin_nat): ... bits factored out here.
8680
8681 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8682 (the_alpha_linux_nat_target): New.
8683 (alpha_linux_register_u_offset): Refactor as
8684 alpha_linux_nat_target method.
8685 (_initialize_alpha_linux_nat): Adjust.
8686 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8687 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8688 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8689 methods of linux_nat_trad_target.
8690 (linux_trad_target): Delete.
8691 * linux-nat-trad.h (linux_trad_target): Delete function.
8692 (linux_nat_trad_target): New class.
8693 * mips-linux-nat.c (mips_linux_nat_target): New class.
8694 (super_fetch_registers, super_store_registers, super_close):
8695 Delete.
8696 (the_mips_linux_nat_target): New.
8697 (mips64_linux_regsets_fetch_registers)
8698 (mips64_linux_regsets_store_registers)
8699 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8700 (mips_linux_register_u_offset, mips_linux_read_description)
8701 (mips_linux_can_use_hw_breakpoint)
8702 (mips_linux_stopped_by_watchpoint)
8703 (mips_linux_stopped_data_address)
8704 (mips_linux_region_ok_for_hw_watchpoint)
8705 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8706 (mips_linux_close): Refactor as methods of mips_linux_nat.
8707 (_initialize_mips_linux_nat): Adjust to C++ification.
8708
8709 * aix-thread.c (aix_thread_target): New class.
8710 (aix_thread_ops): Now an aix_thread_target.
8711 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8712 (aix_thread_fetch_registers, aix_thread_store_registers)
8713 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8714 (aix_thread_thread_alive, aix_thread_pid_to_str)
8715 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8716 Refactor as methods of aix_thread_target.
8717 (init_aix_thread_ops): Delete.
8718 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8719 and complete_target_initialization.
8720 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8721 (rs6000_nat_target): New class.
8722 (the_rs6000_nat_target): New.
8723 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8724 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8725 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8726 (super_create_inferior): Delete.
8727 (_initialize_rs6000_nat): Adjust to C++ification.
8728
8729 * arm-linux-nat.c (arm_linux_nat_target): New class.
8730 (the_arm_linux_nat_target): New.
8731 (arm_linux_fetch_inferior_registers)
8732 (arm_linux_store_inferior_registers, arm_linux_read_description)
8733 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8734 (arm_linux_remove_hw_breakpoint)
8735 (arm_linux_region_ok_for_hw_watchpoint)
8736 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8737 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8738 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8739 arm_linux_nat_target.
8740 (_initialize_arm_linux_nat): Adjust to C++ification.
8741
8742 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8743 (the_aarch64_linux_nat_target): New.
8744 (aarch64_linux_fetch_inferior_registers)
8745 (aarch64_linux_store_inferior_registers)
8746 (aarch64_linux_child_post_startup_inferior)
8747 (aarch64_linux_read_description)
8748 (aarch64_linux_can_use_hw_breakpoint)
8749 (aarch64_linux_insert_hw_breakpoint)
8750 (aarch64_linux_remove_hw_breakpoint)
8751 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8752 (aarch64_linux_region_ok_for_hw_watchpoint)
8753 (aarch64_linux_stopped_data_address)
8754 (aarch64_linux_stopped_by_watchpoint)
8755 (aarch64_linux_watchpoint_addr_within_range)
8756 (aarch64_linux_can_do_single_step): Refactor as methods of
8757 aarch64_linux_nat_target.
8758 (super_post_startup_inferior): Delete.
8759 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8760
8761 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8762 (the_hppa_linux_nat_target): New.
8763 (hppa_linux_fetch_inferior_registers)
8764 (hppa_linux_store_inferior_registers): Refactor as methods of
8765 hppa_linux_nat_target.
8766 (_initialize_hppa_linux_nat): Adjust to C++ification.
8767
8768 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8769 (the_ia64_linux_nat_target): New.
8770 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8771 (ia64_linux_stopped_data_address)
8772 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8773 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8774 ia64_linux_nat_target methods.
8775 (super_xfer_partial): Delete.
8776 (_initialize_ia64_linux_nat): Adjust to C++ification.
8777
8778 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8779 (the_m32r_linux_nat_target): New.
8780 (m32r_linux_fetch_inferior_registers)
8781 (m32r_linux_store_inferior_registers): Refactor as
8782 m32r_linux_nat_target methods.
8783 (_initialize_m32r_linux_nat): Adjust to C++ification.
8784
8785 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8786 (the_m68k_linux_nat_target): New.
8787 (m68k_linux_fetch_inferior_registers)
8788 (m68k_linux_store_inferior_registers): Refactor as
8789 m68k_linux_nat_target methods.
8790 (_initialize_m68k_linux_nat): Adjust to C++ification.
8791
8792 * s390-linux-nat.c (s390_linux_nat_target): New class.
8793 (the_s390_linux_nat_target): New.
8794 (s390_linux_fetch_inferior_registers)
8795 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8796 (s390_insert_watchpoint, s390_remove_watchpoint)
8797 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8798 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8799 (s390_auxv_parse, s390_read_description): Refactor as methods of
8800 s390_linux_nat_target.
8801 (_initialize_s390_nat): Adjust to C++ification.
8802
8803 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8804 (the_sparc_linux_nat_target): New.
8805 (_initialize_sparc_linux_nat): Adjust to C++ification.
8806 * sparc-nat.c (sparc_fetch_inferior_registers)
8807 (sparc_store_inferior_registers): Remove target_ops parameter.
8808 * sparc-nat.h (sparc_fetch_inferior_registers)
8809 (sparc_store_inferior_registers): Remove target_ops parameter.
8810 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8811 (the_sparc64_linux_nat_target): New.
8812 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8813
8814 * spu-linux-nat.c (spu_linux_nat_target): New class.
8815 (the_spu_linux_nat_target): New.
8816 (spu_child_post_startup_inferior, spu_child_post_attach)
8817 (spu_child_wait, spu_fetch_inferior_registers)
8818 (spu_store_inferior_registers, spu_xfer_partial)
8819 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8820 methods.
8821 (_initialize_spu_nat): Adjust to C++ification.
8822
8823 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8824 (the_tilegx_linux_nat_target): New.
8825 (fetch_inferior_registers, store_inferior_registers):
8826 Refactor as methods.
8827 (_initialize_tile_linux_nat): Adjust to C++ification.
8828
8829 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8830 (the_xtensa_linux_nat_target): New.
8831 (xtensa_linux_fetch_inferior_registers)
8832 (xtensa_linux_store_inferior_registers): Refactor as
8833 xtensa_linux_nat_target methods.
8834 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8835
8836 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8837 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8838 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8839 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8840 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8841 (fbsd_stopped_by_sw_breakpoint)
8842 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8843 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8844 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8845 (fbsd_post_startup_inferior, fbsd_post_attach)
8846 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8847 (fbsd_set_syscall_catchpoint)
8848 (super_xfer_partial, super_resume, super_wait)
8849 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8850 (fbsd_handle_debug_trap): Remove target_ops parameter.
8851 (fbsd_nat_add_target): Delete.
8852 * fbsd-nat.h: Include "inf-ptrace.h".
8853 (fbsd_nat_add_target): Delete.
8854 (USE_SIGTRAP_SIGINFO): Define.
8855 (fbsd_nat_target): New class.
8856
8857 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8858 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8859 (amd64bsd_target): Delete.
8860 * amd64-bsd-nat.h: New file.
8861 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8862 "x86-bsd-nat.h".
8863 (amd64_fbsd_nat_target): New class.
8864 (the_amd64_fbsd_nat_target): New.
8865 (amd64fbsd_read_description): Refactor as method of
8866 amd64_fbsd_nat_target.
8867 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8868 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8869 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8870 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8871 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8872 (i386bsd_target): Delete.
8873 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8874 (i386bsd_fetch_inferior_registers)
8875 (i386bsd_store_inferior_registers): Declare.
8876 (i386_bsd_nat_target): New class.
8877 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8878 (the_i386_fbsd_nat_target): New.
8879 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8880 i386_fbsd_nat_target methods.
8881 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8882 (_initialize_i386fbsd_nat): Adjust to C++ification.
8883 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8884 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8885 (_initialize_x86_bsd_nat): Adjust to C++ification.
8886 * x86-bsd-nat.h: Include "x86-nat.h".
8887 (x86bsd_target): Delete declaration.
8888 (x86bsd_nat_target): New class.
8889
8890 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8891 (the_aarch64_fbsd_nat_target): New.
8892 (aarch64_fbsd_fetch_inferior_registers)
8893 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8894 aarch64_fbsd_nat_target.
8895 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8896 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8897 (the_alpha_bsd_nat_target): New.
8898 (alphabsd_fetch_inferior_registers)
8899 (alphabsd_store_inferior_registers): Refactor as
8900 alpha_bsd_nat_target methods.
8901 (_initialize_alphabsd_nat): Refactor as methods of
8902 alpha_bsd_nat_target.
8903 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8904 (the_amd64_nbsd_nat_target): New.
8905 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8906 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8907 (the_amd64_obsd_nat_target): New.
8908 (_initialize_amd64obsd_nat): Adjust to C++ification.
8909 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8910 (the_arm_fbsd_nat_target): New.
8911 (arm_fbsd_fetch_inferior_registers)
8912 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8913 (_initialize_arm_fbsd_nat): Refactor as methods of
8914 arm_fbsd_nat_target.
8915 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8916 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8917 (the_arm_netbsd_nat_target): New.
8918 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8919 arm_netbsd_nat_target.
8920 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8921 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8922 (the_hppa_nbsd_nat_target): New.
8923 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8924 hppa_nbsd_nat_target methods.
8925 (_initialize_hppanbsd_nat): Adjust to C++ification.
8926 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8927 (the_hppa_obsd_nat_target): New.
8928 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8929 methods of hppa_obsd_nat_target.
8930 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8931 add_target.
8932 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8933 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8934 add_target.
8935 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8936 (_initialize_i386obsd_nat): Use add_target.
8937 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8938 (the_m68k_bsd_nat_target): New.
8939 (m68kbsd_fetch_inferior_registers)
8940 (m68kbsd_store_inferior_registers): Refactor as methods of
8941 m68k_bsd_nat_target.
8942 (_initialize_m68kbsd_nat): Adjust to C++ification.
8943 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8944 (the_mips_fbsd_nat_target): New.
8945 (mips_fbsd_fetch_inferior_registers)
8946 (mips_fbsd_store_inferior_registers): Refactor as methods of
8947 mips_fbsd_nat_target.
8948 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8949 add_target.
8950 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8951 (the_mips_nbsd_nat_target): New.
8952 (mipsnbsd_fetch_inferior_registers)
8953 (mipsnbsd_store_inferior_registers): Refactor as methods of
8954 mips_nbsd_nat_target.
8955 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8956 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8957 (the_mips64_obsd_nat_target): New.
8958 (mips64obsd_fetch_inferior_registers)
8959 (mips64obsd_store_inferior_registers): Refactor as methods of
8960 mips64_obsd_nat_target.
8961 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8962 add_target.
8963 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8964 nbsd_nat_target.
8965 * nbsd-nat.h: Include "inf-ptrace.h".
8966 (nbsd_nat_target): New class.
8967 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8968 (obsd_wait): Refactor as methods of obsd_nat_target.
8969 (obsd_add_target): Delete.
8970 * obsd-nat.h: Include "inf-ptrace.h".
8971 (obsd_nat_target): New class.
8972 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8973 (the_ppc_fbsd_nat_target): New.
8974 (ppcfbsd_fetch_inferior_registers)
8975 (ppcfbsd_store_inferior_registers): Refactor as methods of
8976 ppc_fbsd_nat_target.
8977 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8978 add_target.
8979 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8980 (the_ppc_nbsd_nat_target): New.
8981 (ppcnbsd_fetch_inferior_registers)
8982 (ppcnbsd_store_inferior_registers): Refactor as methods of
8983 ppc_nbsd_nat_target.
8984 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8985 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8986 (the_ppc_obsd_nat_target): New.
8987 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8988 methods of ppc_obsd_nat_target.
8989 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8990 add_target.
8991 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8992 (the_sh_nbsd_nat_target): New.
8993 (shnbsd_fetch_inferior_registers)
8994 (shnbsd_store_inferior_registers): Refactor as methods of
8995 sh_nbsd_nat_target.
8996 (_initialize_shnbsd_nat): Adjust to C++ification.
8997 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8998 (inf_ptrace_xfer_partial): Delete.
8999 (sparc_xfer_partial, sparc_target): Delete.
9000 * sparc-nat.h (sparc_fetch_inferior_registers)
9001 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9002 (sparc_target): Delete function declaration.
9003 (sparc_target): New template class.
9004 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9005 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9006 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9007 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9008 add_target.
9009 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9010 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9011 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9012 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9013 add_target.
9014 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9015 (the_vax_bsd_nat_target): New.
9016 (vaxbsd_fetch_inferior_registers)
9017 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9018 methods.
9019 (_initialize_vaxbsd_nat): Adjust to C++ification.
9020
9021 * bsd-kvm.c (bsd_kvm_target): New class.
9022 (bsd_kvm_ops): Now a bsd_kvm_target.
9023 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9024 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9025 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9026 bsd_kvm_target.
9027 (bsd_kvm_return_one): Delete.
9028 (bsd_kvm_add_target): Adjust to C++ification.
9029
9030 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9031 (nto_procfs_target_procfs): New classes.
9032 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9033 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9034 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9035 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9036 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9037 (procfs_remove_hw_breakpoint, procfs_resume)
9038 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9039 (procfs_kill_inferior, procfs_store_registers)
9040 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9041 as methods of nto_procfs_target.
9042 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9043 (nto_native_ops): Delete.
9044 (procfs_open, procfs_native_open): Delete.
9045 (nto_native_ops): Now an nto_procfs_target_native.
9046 (init_procfs_targets): Adjust to C++ification.
9047 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9048 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9049 Refactor as methods of nto_procfs_target.
9050
9051 * go32-nat.c (go32_nat_target): New class.
9052 (the_go32_nat_target): New.
9053 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9054 (go32_store_registers, go32_xfer_partial, go32_files_info)
9055 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9056 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9057 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9058 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9059 (go32_target): Delete.
9060 (_initialize_go32_nat): Adjust to C++ification.
9061
9062 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9063 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9064 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9065 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9066 gnu_nat_target.
9067 (gnu_target): Delete.
9068 * gnu-nat.h (gnu_target): Delete.
9069 (gnu_nat_target): New class.
9070 * i386-gnu-nat.c (gnu_base_target): New.
9071 (i386_gnu_nat_target): New class.
9072 (the_i386_gnu_nat_target): New.
9073 (_initialize_i386gnu_nat): Adjust to C++ification.
9074
3fffc070
PA
90752018-05-02 Pedro Alves <palves@redhat.com>
9076
9077 * bfd-target.c (target_bfd_xclose): Rename to ...
9078 (target_bfd_close): ... this.
9079 (target_bfd_reopen): Adjust.
9080 * target.c (target_close): Remove references to to_xclose.
9081 * target.h (target_ops::to_xclose): Delete.
9082 (target_ops::to_close): Update comments.
9083
6798487f
PA
90842018-05-02 Pedro Alves <palves@redhat.com>
9085
9086 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9087 "linux-nat.h".
9088 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9089 * inf-ptrace.c (inf_ptrace_register_u_offset)
9090 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9091 (inf_ptrace_store_register, inf_ptrace_store_registers)
9092 (inf_ptrace_trad_target): Move to ...
9093 * linux-nat-trad.c: ... this new file.
9094 * linux-nat-trad.h: New file.
9095 * linux-nat.c (linux_target_install_ops): Make extern.
9096 (linux_trad_target): Delete.
9097 * linux-nat.h (linux_trad_target): Delete declaration.
9098 (linux_target_install_ops): Declare.
9099 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9100 "linux-nat.h".
9101
c1955e17
PA
91022018-05-02 Pedro Alves <palves@redhat.com>
9103
9104 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9105 procfs_target/add_target here.
9106 * procfs.c (procfs_target): Make static.
9107 (_initialize_procfs): Call add_target here.
9108 * procfs.h (struct target_ops): Remove forward declaration.
9109 (procfs_target): Remove declaration.
9110 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9111
b5c8fcb1
PA
91122018-05-02 Pedro Alves <palves@redhat.com>
9113
9114 * procfs.c (procfs_stopped_by_watchpoint)
9115 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9116 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9117 Forward declare.
9118 (procfs_use_watchpoints): Delete, move contents...
9119 (procfs_target): ... here.
9120 * procfs.h (procfs_use_watchpoints): Delete declaration.
9121 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9122 procfs_use_watchpoints.
9123 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9124 procfs_use_watchpoints.
9125
0489430a
TT
91262018-05-02 Tom Tromey <tom@tromey.com>
9127
9128 PR python/20084:
9129 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9130 and var_zuinteger_unlimited.
9131 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9132 and PARAM_ZUINTEGER_UNLIMITED.
9133 (set_parameter_value): Handle var_zuinteger and
9134 var_zuinteger_unlimited.
9135 (add_setshow_generic): Likewise.
9136 (parmpy_init): Likewise.
9137
1632f8ba
DR
91382018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9139
9140 PR rust/23124
9141 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9142 pointer is not null before dereferencing it.
9143
76761936
TT
91442018-04-30 Tom Tromey <tom@tromey.com>
9145
9146 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9147 is_mi_like_p.
9148
2d33446d
TT
91492018-04-30 Tom Tromey <tom@tromey.com>
9150
9151 * breakpoint.c (mention): Remove use of is_mi_like_p.
9152 (print_mention_ranged_breakpoint): Likewise.
9153 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9154 of is_mi_like_p.
9155
f3c6abab
TT
91562018-04-30 Tom Tromey <tom@tromey.com>
9157
9158 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9159
40c03530
TT
91602018-04-30 Tom Tromey <tom@tromey.com>
9161
9162 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9163 (info_spu_event_command): Remove some uses of is_mi_like_p.
9164
2038b7fd
TT
91652018-04-30 Tom Tromey <tom@tromey.com>
9166
9167 * python/py-framefilter.c (py_print_single_arg)
9168 (enumerate_locals, py_print_args, py_print_frame): Remove some
9169 uses of is_mi_like_p.
9170
4904c3c6
TT
91712018-04-30 Tom Tromey <tom@tromey.com>
9172
9173 * ui-out.c: Update.
9174 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9175 * ui-out.h (ui_out::is_mi_like_p): Now const.
9176 (ui_out::do_is_mi_like_p): Now const.
9177 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9178
7c66fffc
TT
91792018-04-30 Tom Tromey <tom@tromey.com>
9180
9181 * varobj.c (varobj_set_visualizer): Use new_reference.
9182 * python/python.c (gdbpy_decode_line): Use new_reference.
9183 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9184 new_reference.
9185
bbfa6f00
TT
91862018-04-30 Tom Tromey <tom@tromey.com>
9187
9188 * varobj.c (install_new_value): Use new_reference.
9189 * value.h (value_incref): Return void. Swap intro comment with
9190 value_decref.
9191 * value.c (set_value_parent): Use new_reference.
9192 (value_incref): Return void. Update intro comment.
9193 (release_value): Use new_reference.
9194 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9195
1831a9f9
TT
91962018-04-30 Tom Tromey <tom@tromey.com>
9197
9198 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9199 * gdb_bfd.h (new_bfd_ref): Remove.
9200 (gdb_bfd_open): Update comment.
9201 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9202 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9203 (gdb_bfd_fdopenr): Use new_reference.
9204 * exec.c (exec_file_attach): Use new_reference.
9205
7c1b5f3d
TT
92062018-04-30 Tom Tromey <tom@tromey.com>
9207
9208 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9209 method.
9210
e11fb955
TT
92112018-04-30 Tom Tromey <tom@tromey.com>
9212
9213 * jit.c (jit_read_code_entry): Use type_align.
9214 * i386-tdep.c (i386_gdbarch_init): Don't call
9215 set_gdbarch_long_long_align_bit.
9216 * gdbarch.sh: Remove long_long_align_bit.
9217 * gdbarch.c, gdbarch.h: Rebuild.
9218 * arc-tdep.c (arc_type_align): New function.
9219 (arc_gdbarch_init): Use arc_type_align. Don't call
9220 set_gdbarch_long_long_align_bit.
9221
2fff16dd
TT
92222018-04-30 Tom Tromey <tom@tromey.com>
9223
9224 * rust-lang.c (rust_type_alignment): Remove.
9225 (rust_composite_type): Use type_align.
9226
6d7bb824
TT
92272018-04-30 Tom Tromey <tom@tromey.com>
9228
9229 * NEWS: Mention Type.align.
9230 * python/py-type.c (typy_get_alignof): New function.
9231 (type_object_getset): Add "alignof".
9232
007e1530
TT
92332018-04-30 Tom Tromey <tom@tromey.com>
9234
9235 PR exp/17095:
9236 * NEWS: Update.
9237 * std-operator.def (UNOP_ALIGNOF): New operator.
9238 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9239 New.
9240 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9241 * c-lang.c (c_op_print_tab): Add alignof.
9242 * c-exp.y (ALIGNOF): New token.
9243 (exp): Add "ALIGNOF" production.
9244 (ident_tokens): Add _Alignof and alignof.
9245
2b4424c3
TT
92462018-04-30 Tom Tromey <tom@tromey.com>
9247
9248 * i386-tdep.c (i386_type_align): New function.
9249 (i386_gdbarch_init): Update.
9250 * gdbarch.sh (type_align): New method.
9251 * gdbarch.c, gdbarch.h: Rebuild.
9252 * arch-utils.h (default_type_align): Declare.
9253 * arch-utils.c (default_type_align): New function.
9254 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9255 (struct type) <align_log2>: New field.
9256 <instance_flags>: Now a bitfield.
9257 (TYPE_RAW_ALIGN): New macro.
9258 (type_align, type_raw_align, set_type_align): Declare.
9259 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9260 functions.
9261 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9262 (get_alignment, maybe_set_alignment): New functions.
9263 (read_structure_type, read_enumeration_type, read_array_type)
9264 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9265 (read_subrange_type, read_base_type): Set type alignment.
9266
d33bc52e
SM
92672018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9268
9269 * dwarf2read.c (read_index_from_section): Use bool.
9270
e28b63a9
FG
92712018-04-29 Fabian Groffen <grobian@gentoo.org>
9272
9273 PR gdb/22950
9274 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9275 with #ifdef.
9276
cd8c76e4
JR
92772018-04-29 John Reiser <jreiser@BitWagon.com>
9278
9279 PR build/22873
9280 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9281 last step, and do it atomically.
9282
476d250e
AO
92832018-04-27 Alexandre Oliva <aoliva@redhat.com>
9284
9285 * compile/compile-c-types.c (convert_int, convert_float):
9286 Update for C FE v1.
9287
6873858b
TT
92882018-04-27 Tom Tromey <tom@tromey.com>
9289
9290 PR rust/22545:
9291 * rust-lang.c (rust_inclusive_range_type_p): New function.
9292 (rust_range): Handle inclusive ranges.
9293 (rust_compute_range): Likewise.
9294 * rust-exp.y (struct rust_op) <inclusive>: New field.
9295 (DOTDOTEQ): New constant.
9296 (range_expr): Add "..=" productions.
9297 (operator_tokens): Add "..=" token.
9298 (ast_range): Add "inclusive" parameter.
9299 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9300 ranges.
9301 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9302 bounds values.
9303 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9304 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9305 Update comments.
9306 * expprint.c (print_subexp_standard): Handle new bounds values.
9307 (dump_subexp_body_standard): Likewise.
9308
632e107b
TT
93092018-04-27 Tom Tromey <tom@tromey.com>
9310
9311 * configure: Rebuild.
9312 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9313 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9314 "OVERRIDE".
9315 (class symbol_needs_eval_context): Likewise.
9316 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9317 (mock_mapped_index::symbol_name_at): Use "override". Remove
9318 "virtual".
9319 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9320 "override".
9321 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9322 * aarch64-tdep.c (instruction_reader::read): Use "override".
9323 (instruction_reader_test::read): Likewise.
9324 * arm-tdep.c (instruction_reader::read): Use "override".
9325 (instruction_reader_thumb::read): Likewise.
9326
b75abf5b
AK
93272018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9328
9329 PR remote/9665
9330 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9331 instead of remote_send.
9332 (remote_send): Remove.
9333
79188d8d
PA
93342018-04-26 Pedro Alves <palves@redhat.com>
9335
9336 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9337 find_function_start_sal instead of find_pc_line.
9338
f50776aa
PA
93392018-04-26 Pedro Alves <palves@redhat.com>
9340
9341 * breakpoint.c (set_breakpoint_location_function): Handle
9342 mst_data_gnu_ifunc.
9343 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9344 * elfread.c (elf_symtab_read): Give data symbols with
9345 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9346 (elf_rel_plt_read): Update comment.
9347 * linespec.c (convert_linespec_to_sals): Handle
9348 mst_data_gnu_ifunc.
9349 (minsym_found): Handle mst_data_gnu_ifunc.
9350 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9351 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9352 * parse.c (find_minsym_type_and_address): Handle
9353 mst_data_gnu_ifunc.
9354 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9355 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9356 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9357 comment.
9358 <mst_data_gnu_ifunc>: New enumerator.
9359
20944a6e
PA
93602018-04-26 Pedro Alves <palves@redhat.com>
9361
9362 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9363 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9364 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9365 Handle it.
9366 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9367 (lookup_minimal_symbol_by_pc): Adjust.
9368 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9369 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9370 * minsyms.h (lookup_msym_prefer): New enum.
9371 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9372 parameter by a lookup_msym_prefer parameter.
9373
1adeb822
PA
93742018-04-26 Pedro Alves <palves@redhat.com>
9375
9376 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9377 ends in "@plt" instead of looking at the symbol's section.
9378
a0aca7b0
PA
93792018-04-26 Pedro Alves <palves@redhat.com>
9380
9381 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9382 all references.
9383 (find_pc_partial_function_gnu_ifunc): Rename to ...
9384 (find_pc_partial_function): ... this, and remove references to
9385 'is_gnu_ifunc_p'.
9386 (find_pc_partial_function): Delete old implementation.
9387 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9388
76af0f26
PA
93892018-04-26 Pedro Alves <palves@redhat.com>
9390
9391 * linespec.c (struct bound_minimal_symbol_search_key): New.
9392 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9393 skip first line if we found a GNU ifunc minimal symbol by name.
9394 (compare_msymbols): Change parameters to work with a destructured
9395 lhs minsym.
9396 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9397 functions.
9398
3467ec66
PA
93992018-04-26 Pedro Alves <palves@redhat.com>
9400
9401 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9402 ifunc targets here. Instead, if we have an ifunc minsym, use its
9403 address/name.
9404 (add_location_to_breakpoint): Store the minsym and the objfile in
9405 the breakpoint location.
9406 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9407 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9408 Record the minsym in the sal.
9409 * symtab.h (symtab_and_line) <msymbol>: New field.
9410
28f4fa4d
PA
94112018-04-26 Pedro Alves <palves@redhat.com>
9412
9413 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9414 unless we actually resolved the ifunc.
9415
ca31ab1d
PA
94162018-04-26 Pedro Alves <palves@redhat.com>
9417
9418 * c-exp.y (variable production): Prefer ifunc minsyms over
9419 regular function symbols.
9420 * symtab.c (find_gnu_ifunc): New function.
9421 * minsyms.h (lookup_msym_prefer): New enum.
9422 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9423 parameter by a lookup_msym_prefer parameter.
9424 * symtab.h (find_gnu_ifunc): New declaration.
9425
8388016d
PA
94262018-04-26 Pedro Alves <palves@redhat.com>
9427
9428 * blockframe.c (find_gnu_ifunc_target_type): New function.
9429 (find_function_type): New.
9430 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9431 return a value with a memory address.
9432 (eval_call): For calls to GNU ifunc functions, try to find the
9433 type of the target function from the type that the resolver
9434 returns.
9435 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9436 symbols.
9437 * infcall.c (find_function_return_type): Delete.
9438 (find_function_addr): Add 'function_type' parameter. For calls to
9439 GNU ifunc functions, try to find the type of the target function
9440 from the type that the resolver returns, and return it via
9441 FUNCTION_TYPE.
9442 (call_function_by_hand_dummy): Adjust to use the function type
9443 returned by find_function_addr.
9444 (find_function_addr): Add 'function_type' parameter and move
9445 description here.
9446 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9447 declarations.
9448
a376e11d
PA
94492018-04-26 Pedro Alves <palves@redhat.com>
9450
9451 * c-exp.y (variable production): Skip finding an alias for ifunc
9452 symbols.
9453
02e169e2
PA
94542018-04-26 Pedro Alves <palves@redhat.com>
9455
9456 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9457
249b5733
PA
94582018-04-25 Pedro Alves <palves@redhat.com>
9459
9460 * infcmd.c (kill_command): Print the pid as string, not the whole
9461 thread's ptid. Add comment. s/has been killed/killed/ in output
9462 message.
9463 * remote.c (remote_detach_1): Print the pid as string, not the
9464 whole thread's ptid.
9465
f67c0c91
SDJ
94662018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9467 Sergio Durigan Junior <sergiodj@redhat.com>
9468 Pedro Alves <palves@redhat.com>
9469
9470 * infcmd.c (kill_command): Print message when inferior has
9471 been killed.
9472 * inferior.c (print_inferior_events): Remove 'static'. Set as
9473 '1'.
9474 (add_inferior): Improve message printed when
9475 'print_inferior_events' is on.
9476 (exit_inferior): Remove message printed when
9477 'print_inferior_events' is on.
9478 (detach_inferior): Improve message printed when
9479 'print_inferior_events' is on.
9480 (initialize_inferiors): Use 'add_inferior_silent' to set
9481 'current_inferior_'.
9482 * inferior.h (print_inferior_events): Declare here as
9483 'extern'.
9484 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9485 '[Detaching...]' messages when 'print_inferior_events' is on.
9486 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9487 as prefix/suffix for messages. Remove periods. Fix erroneous
9488 'Detaching after fork from child...', replace it by '... from
9489 parent...'.
9490 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9491 prefix/suffix when printing 'Detaching...' messages. Print
9492 them when 'print_inferior_events' is on.
9493 * remote.c (remote_detach_1): Print message when detaching
9494 from inferior and '!is_fork_parent'.
9495
e427af18
TT
94962018-04-24 Tom Tromey <tom@tromey.com>
9497
9498 * cli-out.h: Reindent.
9499
05b1d8d6
TT
95002018-04-24 Tom Tromey <tom@tromey.com>
9501
9502 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9503 (cli_ui_out::do_field_string): Use fputs_filtered.
9504 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9505
a95c7dab
TT
95062018-04-23 Tom Tromey <tom@tromey.com>
9507
9508 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9509 gdb::unique_xmalloc_ptr.
9510
458412c3
TT
95112018-04-23 Tom Tromey <tom@tromey.com>
9512
9513 * configure: Rebuild.
9514
db86b02b
RS
95152018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9516
9517 PR gdb/23095
9518 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9519 prepare_for_testing. Set normal_bp to r_debug_state if target
9520 is bsd.
9521
00aecdcf
PA
95222018-04-21 Pedro Alves <palves@redhat.com>
9523 Rajendra SY <rajendra.sy@gmail.com>
9524
9525 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9526 * remote.c (extended_remote_attach): In all-stop mode, mark the
9527 thread as executing.
9528
224608c3
PW
95292018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9530
9531 * thread.c (thread_apply_all_command): Fix comment.
9532 (thread_command): Fix comment.
9533
3b74854b
AH
95342018-04-10 Alan Hayward <alan.hayward@arm.com>
9535
9536 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9537 parameter.
9538 * features/aarch64-core.c (create_feature_aarch64_core):
9539 Regenerate.
9540 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9541 Likewise.
9542 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9543 Likewise.
9544 * features/i386/32bit-avx512.c
9545 (create_feature_i386_32bit_avx512): Likewise.
9546 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9547 Likewise.
9548 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9549 Likewise.
9550 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9551 Likewise.
9552 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9553 Likewise.
9554 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9555 Likewise.
9556 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9557 Likewise.
9558 * features/i386/64bit-avx512.c
9559 (create_feature_i386_64bit_avx512): Likewise.
9560 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9561 Likewise.
9562 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9563 Likewise.
9564 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9565 Likewise.
9566 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9567 Likewise.
9568 * features/i386/64bit-segments.c
9569 (create_feature_i386_64bit_segments): Likewise.
9570 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9571 Likewise.
9572 * features/i386/x32-core.c
9573 (create_feature_i386_x32_core): Likewise.
9574 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9575 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9576 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9577 * target-descriptions.c: In generated code, don't pass xml
9578 filename.
9579
e98577a9
AH
95802018-04-18 Alan Hayward <alan.hayward@arm.com>
9581
9582 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9583 (print_xml_feature::visit_post): Likewise.
9584 (print_xml_feature::visit): Likewise.
9585 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9586 (print_xml_feature): Add new class.
9587 * regformats/regdat.sh: Null xmltarget on feature targets.
9588 * target-descriptions.c (struct target_desc): Add xmltarget.
9589 (maintenance_check_tdesc_xml_convert): Add unittest function.
9590 (tdesc_get_features_xml): Add function to get xml.
9591 (maintenance_check_xml_descriptions): Test xml generation.
9592 * xml-tdesc.c (string_read_description_xml): Add function.
9593 * xml-tdesc.h (string_read_description_xml): Add declaration.
9594
ad7fc756
AH
95952018-04-18 Alan Hayward <alan.hayward@arm.com>
9596
9597 * features/Makefile: Add feature marker to targets with new style
9598 target descriptions.
9599 * regformats/aarch64.dat: Regenerate.
9600 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9601 * regformats/i386/amd64-avx-linux.dat: Likewise.
9602 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9603 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9604 * regformats/i386/amd64-linux.dat: Likewise.
9605 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9606 * regformats/i386/amd64.dat: Likewise.
9607 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9608 * regformats/i386/i386-avx-linux.dat: Likewise.
9609 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9610 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9611 * regformats/i386/i386-linux.dat: Likewise.
9612 * regformats/i386/i386-mmx-linux.dat: Likewise.
9613 * regformats/i386/i386-mpx-linux.dat: Likewise.
9614 * regformats/i386/i386.dat: Likewise.
9615 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9616 * regformats/i386/x32-avx-linux.dat: Likewise.
9617 * regformats/i386/x32-linux.dat: Likewise.
9618 * regformats/tic6x-c62x-linux.dat: Likewise.
9619 * regformats/tic6x-c64x-linux.dat: Likewise.
9620 * regformats/tic6x-c64xp-linux.dat: Likewise.
9621 * regformats/regdat.sh: Parse feature marker.
9622
d278f585
AH
96232018-04-18 Alan Hayward <alan.hayward@arm.com>
9624
9625 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9626 (tdesc_osabi_name): Likewise.
9627 * target-descriptions.c (tdesc_architecture_name): Add new
9628 function.
9629 (tdesc_osabi_name): Likewise.
9630
eee8a18d
AH
96312018-04-18 Alan Hayward <alan.hayward@arm.com>
9632
9633 * common/tdesc.c (tdesc_predefined_type): Move to here.
9634 (tdesc_named_type): Likewise.
9635 (tdesc_create_vector): Likewise.
9636 (tdesc_create_struct): Likewise.
9637 (tdesc_set_struct_size): Likewise.
9638 (tdesc_create_union): Likewise.
9639 (tdesc_create_flags): Likewise.
9640 (tdesc_create_enum): Likewise.
9641 (tdesc_add_field): Likewise.
9642 (tdesc_add_typed_bitfield): Likewise.
9643 (tdesc_add_bitfield): Likewise.
9644 (tdesc_add_flag): Likewise.
9645 (tdesc_add_enum_value): Likewise.
9646 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9647 (struct tdesc_type_vector): Likewise.
9648 (struct tdesc_type_field): Likewise.
9649 (struct tdesc_type_with_fields): Likewise.
9650 (tdesc_create_enum): Add declaration.
9651 (tdesc_add_typed_bitfield): Likewise.
9652 (tdesc_add_enum_value): Likewise.
9653 * target-descriptions.c (tdesc_type_field): Move from here.
9654 (tdesc_type_builtin): Likewise.
9655 (tdesc_type_vector): Likewise.
9656 (tdesc_type_with_fields): Likewise.
9657 (tdesc_predefined_types): Likewise.
9658 (tdesc_named_type): Likewise.
9659 (tdesc_create_vector): Likewise.
9660 (tdesc_create_struct): Likewise.
9661 (tdesc_set_struct_size): Likewise.
9662 (tdesc_create_union): Likewise.
9663 (tdesc_create_flags): Likewise.
9664 (tdesc_create_enum): Likewise.
9665 (tdesc_add_field): Likewise.
9666 (tdesc_add_typed_bitfield): Likewise.
9667 (tdesc_add_bitfield): Likewise.
9668 (tdesc_add_flag): Likewise.
9669 (tdesc_add_enum_value): Likewise.
9670 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9671 (tdesc_add_typed_bitfield): Likewise.
9672 (tdesc_add_enum_value): Likewise.
9673
82ec9bc7
AH
96742018-04-18 Alan Hayward <alan.hayward@arm.com>
9675
9676 * common/tdesc.c (tdesc_feature::accept): Move to here.
9677 (tdesc_feature::operator==): Likewise.
9678 (tdesc_create_reg): Likewise.
9679 * common/tdesc.h (tdesc_type_kind): Likewise.
9680 (struct tdesc_type): Likewise.
9681 (struct tdesc_feature): Likewise.
9682 * regformats/regdat.sh: Create a feature.
9683 * target-descriptions.c (tdesc_type_kind): Move from here.
9684 (tdesc_type): Likewise.
9685 (tdesc_type_up): Likewise.
9686 (tdesc_feature): Likewise.
9687 (tdesc_create_reg): Likewise.
9688
ea3e7d71
AH
96892018-04-18 Alan Hayward <alan.hayward@arm.com>
9690
9691 * Makefile.in: Add arch/tdesc.c
9692 * common/tdesc.c: New file.
9693 * common/tdesc.h (tdesc_element_visitor): Move to here.
9694 (tdesc_element): Likewise.
9695 (tdesc_reg): Likewise.
9696 (tdesc_reg_up): Likewise.
9697 * regformats/regdef.h (reg): Add offset to constructors.
9698 * target-descriptions.c (tdesc_element_visitor): Move from here.
9699 (tdesc_element): Likewise.
9700 (tdesc_reg): Likewise.
9701 (tdesc_reg_up): Likewise.
9702
bedda9ac
TT
97032018-04-17 Tom Tromey <tom@tromey.com>
9704
9705 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9706 discriminant field.
9707
a037790e
TT
97082018-04-17 Tom Tromey <tom@tromey.com>
9709
9710 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9711
c7dcbf88
AA
97122018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9713
9714 * symtab.c (print_symbol_info): Skip printing filename and line
9715 number when `last' is NULL.
9716 (symtab_symbol_info): Use empty string instead of NULL for first
9717 invocation of print_symbol_info.
9718 (rbreak_command): Pass NULL to `last' parameter of
9719 print_symbol_info.
9720
07d28c77
SM
97212018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9722
9723 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9724 instead of nullptr.
9725
8a3de5e1
PA
97262018-04-16 Pedro Alves <palves@redhat.com>
9727
9728 * MAINTAINERS (sh): Remove.
9729 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9730 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9731 (ALLDEPFILES): Remove sh64-tdep.c.
9732 * NEWS: Mentions that support for SH-5/SH64 is removed.
9733 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9734 (sh*-*-openbsd*): Ditto.
9735 (sh64-*-elf*): Remove.
9736 (sh*): Remove.
9737 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9738 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9739 * sh-tdep.c: No longer include "sh64-tdep.h".
9740 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9741 * sh64-tdep.c, sh64-tdep.h: Remove files.
9742
a2a79012
PA
97432018-04-16 Pedro Alves <palves@redhat.com>
9744
9745 * MAINTAINERS: Remove m88k.
9746 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9747 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9748 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9749 * NEWS: Mention that support for m88k was removed.
9750 * configure.host (m88*-*-*): Remove support.
9751 * configure.nat (m88k-*-*): Remove support.
9752 * configure.tgt (m88*-*-openbsd*): Remove.
9753 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9754
eda4efb1
SM
97552018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9756
9757 * configure.tgt (x86_tobjs): New variable.
9758 (amd64_tobjs, i386_tobjs): Use it.
9759
b744723f
AA
97602018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9761
9762 * symtab.c (print_symbol_info): Precede the symbol definition by
9763 the line number when available.
9764 * NEWS: Advertise this enhancement.
9765
4a4495d6
MM
97662018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9767
9768 * NEWS (New options): announce set/show record btrace cpu.
9769 * btrace.c: Include record-btrace.h.
9770 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9771 the vendor is unknown.
9772 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9773 Maybe overwrite the btrace configuration's cpu.
9774 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9775 (btrace_fetch): Add cpu parameter. Update callers.
9776 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9777 Maybe overwrite the btrace configuration's cpu. Skip enabling
9778 errata workarounds if the vendor is unknown.
9779 * python/py-record-btrace.c: Include record-btrace.h.
9780 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9781 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9782 * record-btrace.c (record_btrace_cpu_state_kind): New.
9783 (record_btrace_cpu): New.
9784 (set_record_btrace_cpu_cmdlist): New.
9785 (record_btrace_get_cpu): New.
9786 (require_btrace_thread, record_btrace_info)
9787 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9788 (cmd_set_record_btrace_cpu_none): New.
9789 (cmd_set_record_btrace_cpu_auto): New.
9790 (cmd_set_record_btrace_cpu): New.
9791 (cmd_show_record_btrace_cpu): New.
9792 (_initialize_record_btrace): Initialize set/show record btrace cpu
9793 commands.
9794 * record-btrace.h (record_btrace_get_cpu): New.
9795
69f90c75
MM
97962018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9797
9798 * record.c (set_record_command): Fix typo in message.
9799
b85310e1
MM
98002018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9801
9802 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9803
1d509aa6
MM
98042018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9805
9806 * infrun.c (process_event_stop_test): Call
9807 gdbarch_in_indirect_branch_thunk.
9808 * gdbarch.sh (in_indirect_branch_thunk): New.
9809 * gdbarch.c: Regenerated.
9810 * gdbarch.h: Regenerated.
9811 * x86-tdep.h: New.
9812 * x86-tdep.c: New.
9813 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9814 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9815 (ALLDEPFILES): Add x86-tdep.c.
9816 * arch-utils.h (default_in_indirect_branch_thunk): New.
9817 * arch-utils.c (default_in_indirect_branch_thunk): New.
9818 * i386-tdep: Include x86-tdep.h.
9819 (i386_in_indirect_branch_thunk): New.
9820 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9821 function.
9822 * amd64-tdep: Include x86-tdep.h.
9823 (amd64_in_indirect_branch_thunk): New.
9824 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9825
b4be9bfd
JK
98262018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9827
9828 PR gdb/23053
9829 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9830 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9831 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9832 regression.
9833
53d7df28
TT
98342018-04-12 Tom Tromey <tom@tromey.com>
9835
9836 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9837 (rust_evaluate_subexp): Likewise.
9838
70b33f19
PA
98392018-04-12 Pedro Alves <palves@redhat.com>
9840
9841 * procfs.c (procfs_detach): Make forward declaration's prototype
9842 match definition's protototype.
9843 (proc_get_LDT_entry): Remove stale do_cleanups call.
9844
436411b1
PA
98452018-04-12 Pedro Alves <palves@redhat.com>
9846
9847 * target.h (target_ops::to_has_exited): Delete.
9848 (target_has_exited): Delete.
9849 * target-delegates.c: Regenerate.
9850
20db9c52
PA
98512018-04-11 Pedro Alves <palves@redhat.com>
9852
9853 * target.c (fileio_fh_t::t): Add comment.
9854 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9855 (target_fileio_close): Handle a NULL target.
9856 (invalidate_fileio_fh): New.
9857 (target_close): Call it.
9858 * remote.c (remote_hostio_send_command): No longer check whether
9859 remote_desc is open.
9860
5ff79300
PA
98612018-04-11 Pedro Alves <palves@redhat.com>
9862
9863 * target.c (fileio_fh_t): Make it a named struct instead of a
9864 typedef.
9865 (fileio_fh_t::is_closed): New method.
9866 (DEF_VEC_O (fileio_fh_t)): Remove.
9867 (fileio_fhandles): Now a std::vector.
9868 (is_closed_fileio_fh): Delete.
9869 (acquire_fileio_fd): Adjust. Rename parameters.
9870 (release_fileio_fd): Adjust.
9871 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9872 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9873 (target_fileio_close): Adjust.
9874
6e22e10d
SM
98752018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9876
9877 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9878 index.
9879
731f534f
PA
98802018-04-10 Pedro Alves <palves@redhat.com>
9881
9882 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9883 (scoped_finish_thread_state): New class.
9884 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9885 cleanup.
9886 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9887 (fetch_inferior_event, normal_stop): Likewise.
9888 * thread.c (finish_thread_state_cleanup): Delete.
9889
d5f4488f
SM
98902018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9891 Pedro Alves <palves@redhat.com>
9892
9893 * value.c: Include "selftest.h" and "common/array-view.h".
9894 (struct range) <operator ==>: New.
9895 (test_ranges_contain): New.
9896 (check_ranges_vector): New.
9897 (test_insert_into_bit_range_vector): New.
9898 (_initialize_values): Register selftests.
9899 * common/array-view.h (operator==, operator!=): New.
9900
b24531ed
SM
99012018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9902
9903 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9904 an iterator.
9905 * inline-frame.c: Include <algorithm>.
9906 (struct inline_state): Add constructor.
9907 (inline_state_s): Remove.
9908 (DEF_VEC_O(inline_state_s)): Remove.
9909 (inline_states): Change type to std::vector.
9910 (find_inline_frame_state): Adjust to std::vector.
9911 (allocate_inline_frame_state): Remove.
9912 (clear_inline_frame_state): Adjust to std::vector.
9913 (skip_inline_frames): Adjust to std::vector.
9914
c252925c
SM
99152018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9916
9917 * tracepoint.h (struct trace_state_variable): Add constructor.
9918 <name>: Change type to std::string.
9919 * tracepoint.c (tsv_s): Remove.
9920 (DEF_VEC_O(tsv_s)): Remove.
9921 (tvariables): Change to std::vector.
9922 (create_trace_state_variable): Adjust to std::vector.
9923 (find_trace_state_variable): Likewise.
9924 (find_trace_state_variable_by_number): Likewise.
9925 (delete_trace_state_variable): Likewise.
9926 (trace_variable_command): Adjust to std::string.
9927 (delete_trace_variable_command): Likewise.
9928 (tvariables_info_1): Adjust to std::vector.
9929 (save_trace_state_variables): Likewise.
9930 (start_tracing): Likewise.
9931 (merge_uploaded_trace_state_variables): Adjust to std::vector
9932 and std::string.
9933 * target.h (struct target_ops)
9934 <to_download_trace_state_variable>: Pass reference to
9935 trace_state_variable.
9936 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9937 * target-delegates.c: Re-generate.
9938 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9939 (mi_tsv_deleted): Likewise.
9940 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9941 * remote.c (remote_download_trace_state_variable): Change
9942 pointer to reference and adjust.
9943 * make-target-delegates (parse_argtypes): Handle references.
9944 (write_function_header): Likewise.
9945 (munge_type): Likewise.
9946
c9638d26
SM
99472018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9948
9949 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9950 string_view-selftests.c.
9951 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9952 testsuite.
9953 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9954 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9955 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9956 * unittests/basic_string_view/element_access/char/1.cc:
9957 Likewise.
9958 * unittests/basic_string_view/element_access/char/empty.cc:
9959 Likewise.
9960 * unittests/basic_string_view/element_access/char/front_back.cc:
9961 Likewise.
9962 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9963 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9964 Likewise.
9965 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9966 Likewise.
9967 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9968 Likewise.
9969 * unittests/basic_string_view/operations/compare/char/1.cc:
9970 Likewise.
9971 * unittests/basic_string_view/operations/compare/char/13650.cc:
9972 Likewise.
9973 * unittests/basic_string_view/operations/copy/char/1.cc:
9974 Likewise.
9975 * unittests/basic_string_view/operations/data/char/1.cc:
9976 Likewise.
9977 * unittests/basic_string_view/operations/find/char/1.cc:
9978 Likewise.
9979 * unittests/basic_string_view/operations/find/char/2.cc:
9980 Likewise.
9981 * unittests/basic_string_view/operations/find/char/3.cc:
9982 Likewise.
9983 * unittests/basic_string_view/operations/find/char/4.cc:
9984 Likewise.
9985 * unittests/basic_string_view/operations/rfind/char/1.cc:
9986 Likewise.
9987 * unittests/basic_string_view/operations/rfind/char/2.cc:
9988 Likewise.
9989 * unittests/basic_string_view/operations/rfind/char/3.cc:
9990 Likewise.
9991 * unittests/basic_string_view/operations/substr/char/1.cc:
9992 Likewise.
9993 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9994 * unittests/string_view-selftests.c: New file.
9995
fdc11678
SM
99962018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9997
9998 * unittests/basic_string_view/capacity/1.cc: New file.
9999 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10000 * unittests/basic_string_view/cons/char/1.cc: New file.
10001 * unittests/basic_string_view/cons/char/2.cc: New file.
10002 * unittests/basic_string_view/cons/char/3.cc: New file.
10003 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10004 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10005 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10006 * unittests/basic_string_view/element_access/char/1.cc: New file.
10007 * unittests/basic_string_view/element_access/char/2.cc: New file.
10008 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10009 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10010 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10011 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10012 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10013 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10014 * unittests/basic_string_view/include.cc: New file.
10015 * unittests/basic_string_view/inserters/char/1.cc: New file.
10016 * unittests/basic_string_view/inserters/char/2.cc: New file.
10017 * unittests/basic_string_view/inserters/char/3.cc: New file.
10018 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10019 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10020 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10021 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10022 * unittests/basic_string_view/literals/types.cc: New file.
10023 * unittests/basic_string_view/literals/values.cc: New file.
10024 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10025 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10026 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10027 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10028 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10029 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10030 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10031 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10032 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10033 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10034 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10035 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10036 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10037 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10038 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10039 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10040 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10041 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10042 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10043 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10044 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10045 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10046 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10047 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10048 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10049 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10050 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10051 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10052 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10053 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10054 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10055 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10056 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10057 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10058 * unittests/basic_string_view/operators/char/2.cc: New file.
10059 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10060 * unittests/basic_string_view/range_access/char/1.cc: New file.
10061 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10062 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10063 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10064 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10065 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10066 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10067 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10068 * unittests/basic_string_view/typedefs.cc: New file.
10069 * unittests/basic_string_view/types/1.cc: New file.
10070
8345c4a2
SM
100712018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10072
10073 * common/gdb_string_view.h: Remove libstdc++ implementation
10074 details, adjust to gdb reality.
10075 * common/gdb_string_view.tcc: Likewise.
10076 * cli/cli-script.c (struct string_view): Remove.
10077 (user_args) <m_args>: Change element type to gdb::string_view.
10078 (user_args::insert_args): Adjust.
10079
7adcdf08
SM
100802018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10081
10082 * common/gdb_string_view.h: New file.
10083 * common/gdb_string_view.tcc: New file.
10084
41260ac2
SM
100852018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10086
10087 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10088 * configure: Re-generate.
10089
0bee6dd4
PA
100902018-04-09 Pedro Alves <palves@redhat.com>
10091
10092 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10093 (set_target_gdbarch): Call
10094 gdb::observers::architecture_changed.notify instead of
10095 observer_notify_architecture_changed.
10096
6f14adc5
SM
100972018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10098
10099 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10100 (do_restore_current_traceframe_cleanup): Remove.
10101 (restore_current_traceframe_cleanup_dtor): Remove.
10102 (make_cleanup_restore_current_traceframe): Remove.
10103 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10104 New.
10105 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10106 * infrun.c (fetch_inferior_event): Use
10107 scoped_restore_current_traceframe.
10108
b2bdb8cf
SM
101092018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10110
10111 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10112 Remove.
10113 <n_allocated_type_units>: Remove.
10114 <all_type_units>: Change to std::vector.
10115 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10116 to std::vector change.
10117 (dwarf2_per_objfile::get_cutu): Likewise.
10118 (dwarf2_per_objfile::get_tu): Likewise.
10119 (create_signatured_type_table_from_index): Likewise.
10120 (create_signatured_type_table_from_debug_names): Likewise.
10121 (dw2_symtab_iter_next): Likewise.
10122 (dw2_print_stats): Likewise.
10123 (dw2_expand_all_symtabs): Likewise.
10124 (dw2_expand_marked_cus): Likewise.
10125 (dw2_debug_names_iterator::next): Likewise.
10126 (dwarf2_initialize_objfile): Likewise.
10127 (add_signatured_type_cu_to_table): Likewise.
10128 (create_all_type_units): Likewise.
10129 (add_type_unit): Likewise.
10130 (struct tu_abbrev_offset): Add constructor.
10131 (build_type_psymtabs_1): Adjust to std::vector change.
10132 (print_tu_stats): Likewise.
10133 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10134 (write_debug_names): Likewise.
10135
b76e467d
SM
101362018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10137
10138 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10139 Make an std::vector.
10140 <n_comp_units>: Remove.
10141 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10142 to std::vector change.
10143 (dwarf2_per_objfile::get_cutu): Likewise.
10144 (dwarf2_per_objfile::get_cu): Likewise.
10145 (create_cus_from_index): Likewise.
10146 (create_addrmap_from_index): Likewise.
10147 (create_addrmap_from_aranges): Likewise.
10148 (dwarf2_read_index): Likewise.
10149 (dw2_find_last_source_symtab): Likewise.
10150 (dw2_map_symtabs_matching_filename): Likewise.
10151 (dw2_symtab_iter_next): Likewise.
10152 (dw2_print_stats): Likewise.
10153 (dw2_expand_all_symtabs): Likewise.
10154 (dw2_expand_symtabs_with_fullname): Likewise.
10155 (dw2_expand_marked_cus): Likewise.
10156 (dw2_map_symbol_filenames): Likewise.
10157 (create_cus_from_debug_names): Likewise.
10158 (dwarf2_read_debug_names): Likewise.
10159 (dw2_debug_names_iterator::next): Likewise.
10160 (dwarf2_initialize_objfile): Likewise.
10161 (set_partial_user): Likewise.
10162 (dwarf2_build_psymtabs_hard): Likewise.
10163 (read_comp_units_from_section): Remove arguments, adjust to
10164 std::vector change.
10165 (create_all_comp_units): Adjust to std::vector and
10166 read_comp_units_from_section changes.
10167 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10168 change.
10169 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10170 (psyms_seen_size): Likewise.
10171 (write_gdbindex): Likewise.
10172 (write_debug_names): Likewise.
10173
12359b5e
SM
101742018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10175
10176 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10177 with dwarf2_per_objfile.
10178 (create_cus_from_index): Likewise.
10179 (create_signatured_type_table_from_index): Likewise.
10180 (dwarf2_read_index): Likewise.
10181 (dwarf2_initialize_objfile): Likewise.
10182 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10183 per_cu rather than get_dwarf2_per_objfile.
10184
ff4c9fec
SM
101852018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10186
10187 * dwarf2read.h (struct signatured_type): Forward declare.
10188 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10189 New methods.
10190 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10191 (dw2_get_cutu): ...this.
10192 (dwarf2_per_objfile::get_cu): Rename from...
10193 (dw2_get_cu): ...this.
10194 (dwarf2_per_objfile::get_tu): New.
10195 (create_addrmap_from_index): Adjust.
10196 (create_addrmap_from_aranges): Adjust.
10197 (dw2_find_last_source_symtab): Adjust.
10198 (dw2_map_symtabs_matching_filename): Adjust.
10199 (dw2_symtab_iter_next): Adjust.
10200 (dw2_print_stats): Adjust.
10201 (dw2_expand_all_symtabs): Adjust.
10202 (dw2_expand_symtabs_with_fullname): Adjust.
10203 (dw2_expand_marked_cus): Adjust.
10204 (dw_expand_symtabs_matching_file_matcher): Adjust.
10205 (dw2_map_symbol_filenames): Adjust.
10206 (dw2_debug_names_iterator::next): Adjust.
10207 (dwarf2_initialize_objfile): Adjust.
10208 (set_partial_user): Adjust.
10209 (dwarf2_build_psymtabs_hard): Adjust.
10210
5ca3fcb6
SM
102112018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10212
10213 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10214 Remove unused variables.
10215 (dw2_map_symtabs_matching_filename): Likewise.
10216 (dwarf2_record_block_ranges): Likewise.
10217 (dwarf2_read_addr_index): Likewise.
10218 (follow_die_offset): Likewise.
10219
b2e586e8
SM
102202018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10221
10222 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10223 to symbol_file_add_main.
10224
7c4e78cf
SM
102252018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10226
10227 PR mi/22299
10228 * mi/mi-console.c (do_fputc_async_safe): New.
10229 (mi_console_file::write_async_safe): New.
10230 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10231 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10232 New.
10233 * ui-file.c (ui_file::putstrn): Adjust call to
10234 fputstrn_unfiltered.
10235 * utils.c (printchar): Replace do_fputs and do_fprintf
10236 parameters by do_fputc.
10237 (fputstr_filtered): Adjust call to printchar.
10238 (fputstr_unfiltered): Likewise.
10239 (fputstrn_filtered): Likewise.
10240 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10241 printchar.
10242 * utils.h (do_fputc_ftype): New typedef.
10243 (fputstrn_unfiltered): Add do_fputc parameter.
10244
5dc026d3
SM
102452018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10246
10247 * regformats/i386/i386-avx.dat: Remove.
10248
c912f608
SM
102492018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10250
10251 PR gdb/22979
10252 * amd64-tdep.c (amd64_none_init_abi): New function.
10253 (amd64_x32_none_init_abi): New function.
10254 (_initialize_amd64_tdep): Register handlers for x86-64 and
10255 x64_32 with GDB_OSABI_NONE.
10256 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10257 GDB_OSABI_NONE osabi.
10258
26540402
SM
102592018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10260
10261 PR gdb/22980
10262 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10263 GDB_OSABI_NONE.
10264 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10265 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10266
9018be22
SM
102672018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10268
10269 * common/byte-vector.h (char_vector): New type.
10270 * target.h (target_read_alloc): Return
10271 gdb::optional<byte_vector>.
10272 (target_read_stralloc): Return gdb::optional<char_vector>.
10273 (target_get_osdata): Return gdb::optional<char_vector>.
10274 * target.c (target_read_alloc_1): Templatize. Replacement
10275 manual memory management with vector.
10276 (target_read_alloc): Change return type, adjust.
10277 (target_read_stralloc): Change return type, adjust.
10278 (target_get_osdata): Change return type, adjust.
10279 * auxv.c (struct auxv_info) <length>: Remove.
10280 <data>: Change type to gdb::optional<byte_vector>.
10281 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10282 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10283 (target_auxv_search): Adjust.
10284 (fprint_target_auxv): Adjust.
10285 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10286 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10287 (linux_make_corefile_notes): Adjust.
10288 * osdata.c (get_osdata): Adjust.
10289 * remote.c (remote_get_threads_with_qxfer): Adjust.
10290 (remote_memory_map): Adjust.
10291 (remote_traceframe_info): Adjust.
10292 (btrace_read_config): Adjust.
10293 (remote_read_btrace): Adjust.
10294 (remote_pid_to_exec_file): Adjust.
10295 * solib-aix.c (solib_aix_get_library_list): Adjust.
10296 * solib-dsbt.c (decode_loadmap): Don't free buf.
10297 (dsbt_get_initial_loadmaps): Adjust.
10298 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10299 * solib-target.c (solib_target_current_sos): Adjust.
10300 * tracepoint.c (sdata_make_value): Adjust.
10301 * xml-support.c (xinclude_start_include): Adjust.
10302 (xml_fetch_content_from_file): Adjust.
10303 * xml-support.h (xml_fetch_another): Change return type.
10304 (xml_fetch_content_from_file): Change return type.
10305 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10306 * xml-tdesc.c (file_read_description_xml): Adjust.
10307 (fetch_available_features_from_target): Change return type.
10308 (target_fetch_description_xml): Adjust.
10309 (target_read_description_xml): Adjust.
10310
14c88955
TT
103112018-04-06 Tom Tromey <tom@tromey.com>
10312
10313 * value.c (~value): Update.
10314 (struct value) <contents>: Now unique_xmalloc_ptr.
10315 (value_contents_bits_eq, allocate_value_contents)
10316 (value_contents_raw, value_contents_all_raw)
10317 (value_contents_for_printing, value_contents_for_printing_const)
10318 (set_value_enclosing_type): Update.
10319
0c7e6dd8
TT
103202018-04-06 Tom Tromey <tom@tromey.com>
10321
10322 * value.c (range_s): Remove typedef, VEC.
10323 (struct range): Add operator<.
10324 (range_lessthan): Remove.
10325 (ranges_contain): Change type.
10326 (~value): Update.
10327 (struct value) <unavailable, optimized_out>: Now std::vector.
10328 (value_entirely_available)
10329 (value_entirely_covered_by_range_vector)
10330 (value_entirely_unavailable, value_entirely_optimized_out):
10331 Update.
10332 (insert_into_bit_range_vector): Change argument type.
10333 (find_first_range_overlap): Likewise.
10334 (struct ranges_and_idx, value_contents_bits_eq)
10335 (require_not_optimized_out, require_available): Update.
10336 (ranges_copy_adjusted): Change argument types.
10337 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10338
2c8331b9
TT
103392018-04-06 Tom Tromey <tom@tromey.com>
10340
10341 * value.c (~value): Update.
10342 (struct value) <parent>: Now a value_ref_ptr.
10343 (value_parent, set_value_parent, value_address, value_copy):
10344 Update.
10345
466ce3ae
TT
103462018-04-06 Tom Tromey <tom@tromey.com>
10347
10348 * value.c (struct value): Add constructor, destructor, and member
10349 initializers.
10350 (allocate_value_lazy, value_decref): Update.
10351
062d818d
TT
103522018-04-06 Tom Tromey <tom@tromey.com>
10353
10354 * value.c (struct value) <released, next>: Remove.
10355 (all_values): Now a std::vector.
10356 (allocate_value_lazy): Update.
10357 (value_next): Remove.
10358 (value_mark, value_free_to_mark, release_value)
10359 (value_release_to_mark): Update.
10360
a6535de1
TT
103612018-04-06 Tom Tromey <tom@tromey.com>
10362
10363 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10364 (free_value_chain): Remove.
10365 * value.c (free_value_chain): Remove.
10366 (value_release_to_mark): Return a std::vector.
10367 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10368 std::vector.
10369 (check_condition): Update.
10370 * eval.c (fetch_subexp_value): Change "val_chain" to a
10371 std::vector.
10372 * breakpoint.c (update_watchpoint): Update.
10373 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10374
b5621201
TT
103752018-04-06 Tom Tromey <tom@tromey.com>
10376
10377 * value.h (free_all_values): Remove.
10378 * value.c (free_all_values): Remove.
10379
4d0266a0
TT
103802018-04-06 Tom Tromey <tom@tromey.com>
10381
10382 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10383 (value_history_chain, value_history_count): Remove.
10384 (value_history): New global.
10385 (record_latest_value, access_value_history, show_values)
10386 (preserve_values): Update.
10387
b4d61099
TT
103882018-04-06 Tom Tromey <tom@tromey.com>
10389
10390 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10391 * varobj.c (varobj_set_display_format, varobj_set_value)
10392 (install_default_visualizer, construct_visualizer)
10393 (install_new_value, ~varobj, varobj_get_value_type)
10394 (my_value_of_variable, varobj_editable_p): Update.
10395 * c-varobj.c (c_describe_child, c_value_of_variable)
10396 (cplus_number_of_children, cplus_describe_child): Update.
10397 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10398 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10399 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10400
9b558729
TT
104012018-04-06 Tom Tromey <tom@tromey.com>
10402
10403 * printcmd.c (last_examine_address): Change type to
10404 value_ref_ptr.
10405 (do_examine, x_command): Update.
10406
850645cf
TT
104072018-04-06 Tom Tromey <tom@tromey.com>
10408
10409 * value.c (release_value): Update.
10410 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10411 (struct bpstats) <val>: Now a value_ref_ptr.
10412 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10413 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10414 (~watchpoint, print_it_watchpoint, watch_command_1)
10415 (invalidate_bp_value_on_memory_change): Update.
10416
22bc8444
TT
104172018-04-06 Tom Tromey <tom@tromey.com>
10418
10419 * varobj.c (varobj_clear_saved_item)
10420 (update_dynamic_varobj_children, install_new_value, ~varobj):
10421 Update.
10422 * value.h (value_incref): Move declaration earlier.
10423 (value_decref): Rename from value_free.
10424 (struct value_ref_policy): New.
10425 (value_ref_ptr): New typedef.
10426 (struct value_deleter): Remove.
10427 (gdb_value_up): Remove typedef.
10428 (release_value): Change return type.
10429 (release_value_or_incref): Remove.
10430 * value.c (set_value_parent): Update.
10431 (value_incref): Change return type.
10432 (value_decref): Rename from value_free.
10433 (value_free_to_mark, free_all_values, free_value_chain): Update.
10434 (release_value): Return value_ref_ptr.
10435 (release_value_or_incref): Remove.
10436 (record_latest_value, set_internalvar, clear_internalvar):
10437 Update.
10438 * stack.c (info_frame_command): Don't call value_free.
10439 * python/py-value.c (valpy_dealloc, valpy_new)
10440 (value_to_value_object): Update.
10441 * printcmd.c (do_examine): Update.
10442 * opencl-lang.c (lval_func_free_closure): Update.
10443 * mi/mi-main.c (register_changed_p): Don't call value_free.
10444 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10445 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10446 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10447 value_free.
10448 * guile/scm-value.c (vlscm_free_value_smob)
10449 (vlscm_scm_from_value): Update.
10450 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10451 (frame_unwind_register_unsigned, get_frame_register_bytes)
10452 (put_frame_register_bytes): Don't call value_free.
10453 * findvar.c (address_from_register): Don't call value_free.
10454 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10455 * dwarf2loc.c (entry_data_value_free_closure)
10456 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10457 (dwarf2_evaluate_loc_desc_full): Update.
10458 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10459 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10460 (~watchpoint, watch_command_1)
10461 (invalidate_bp_value_on_memory_change): Update.
10462 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10463
7f8a5d38
SM
104642018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10465
10466 PR gdb/23022
10467 * warning.m4: Add -Wno-error=deprecated-register.
10468 * configure: Re-generate.
10469
8a76bd3b
TT
104702018-04-05 Tom Tromey <tom@tromey.com>
10471
10472 * linespec.h: Remove include of "vec.h".
10473
8e8d776e
TT
104742018-04-05 Tom Tromey <tom@tromey.com>
10475
10476 * linespec.c (typep): Remove typedef.
10477 (find_methods, find_superclass_methods): Take a std::vector.
10478 (find_method): Use std::vector.
10479
9b2f8581
TT
104802018-04-05 Tom Tromey <tom@tromey.com>
10481
10482 * utils.c (compare_strings): Remove.
10483 * utils.h (compare_strings): Remove.
10484 * objc-lang.h (find_imps): Update.
10485 * objc-lang.c (find_methods): Take a std::vector.
10486 (uniquify_strings, find_imps): Likewise.
10487 * linespec.c (find_methods): Take a std::vector.
10488 (decode_objc): Use std::vector.
10489 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10490 a std::vector.
10491 (find_method, find_function_symbols): Use std::vector.
10492
459a2e4c
TT
104932018-04-05 Tom Tromey <tom@tromey.com>
10494
10495 * completer.c (completion_tracker::completion_tracker): Remove
10496 cast.
10497 (completion_tracker::discard_completions): Likewise.
10498 * breakpoint.c (ambiguous_names_p): Remove cast.
10499 * ada-lang.c (_initialize_ada_language): Remove cast.
10500 * utils.h (streq): Update.
10501 (streq_hash): Add new declaration.
10502 * utils.c (streq): Return bool.
10503 (streq_hash): New function.
10504
9be2c17a
TT
105052018-04-05 Tom Tromey <tom@tromey.com>
10506
10507 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10508 Remove a string copy.
10509
f73c6ece
TT
105102018-04-05 Tom Tromey <tom@tromey.com>
10511
10512 * linespec.c (filter_results): Use std::vector.
10513 (decode_line_2, decode_line_full): Update.
10514
53a0f8a2
TT
105152018-04-05 Tom Tromey <tom@tromey.com>
10516
10517 * linespec.c (canonical_to_fullform): Return std::string.
10518 (filter_results): Update.
10519 (struct decode_line_2_item): Add constructor.
10520 <fullform, displayform>: Now std::string.
10521 (decode_line_2_compare_items): Now a std::sort comparator.
10522 (decode_line_2): Update.
10523
a5b5adf5
TT
105242018-04-05 Tom Tromey <tom@tromey.com>
10525
10526 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10527 (unexpected_linespec_error): Update.
10528 (linespec_parse_basic, parse_linespec): Update.
10529
6a307fc5
TT
105302018-04-05 Tom Tromey <tom@tromey.com>
10531
10532 * linespec.c (linespec_parse_basic): Reindent.
10533
41c1efc6
TT
105342018-04-05 Tom Tromey <tom@tromey.com>
10535
10536 * minsyms.h (iterate_over_minimal_symbols): Update.
10537 * minsyms.c (iterate_over_minimal_symbols): Take a
10538 gdb::function_view.
10539 * linespec.c (struct collect_minsyms): Remove.
10540 (compare_msyms): Now a std::sort comparator.
10541 (add_minsym): Add parameters.
10542 (search_minsyms_for_name): Update. Use std::vector.
10543
c5edbf3d
TT
105442018-04-03 Tom Tromey <tom@tromey.com>
10545
10546 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10547 gdb::byte_vector.
10548
b39efc48
WP
105492018-04-02 Weimin Pan <weimin.pan@oracle.com>
10550
10551 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10552
121ad66c 105532018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
10554
10555 PR gdb/16959
10556 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10557 printing static type.
10558
09473be8
TT
105592018-04-01 Tom Tromey <tom@tromey.com>
10560
10561 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10562 (rs6000_xfer_shared_libraries): Update.
10563
ec1f2d91
SM
105642018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10565
10566 * common/gdb_vecs.h (char_ptr): Remove.
10567 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10568
d8611974
SM
105692018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10570
10571 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10572 with std::vector.
10573 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10574
a18ba4e4
SM
105752018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10576
10577 * tracepoint.h (struct uploaded_tp): Initialize fields.
10578 <actions, step_actions, cmd_strings>: Change type to
10579 std::vector<char *>.
10580 * tracepoint.c (get_uploaded_tp): Allocate with new.
10581 (free_uploaded_tps): Free with delete.
10582 (parse_tracepoint_definition): Adjust to std::vector change.
10583 * breakpoint.c (read_uploaded_action): Likewise.
10584 (create_tracepoint_from_upload): Likewise.
10585 * ctf.c (ctf_write_uploaded_tp): Likewise.
10586 (SET_ARRAY_FIELD): Likewise.
10587 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10588
a7961323
TT
105892018-03-30 Tom Tromey <tom@tromey.com>
10590
10591 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10592 std::unique_ptr.
10593 (svr4_keep_data_in_core): Update.
10594 (svr4_read_so_list): Update.
10595
e83e4e24
TT
105962018-03-30 Tom Tromey <tom@tromey.com>
10597
10598 * windows-nat.c (handle_output_debug_string, handle_exception):
10599 Update.
10600 * target.h (target_read_string): Update.
10601 * target.c (target_read_string): Change "string" to
10602 unique_xmalloc_ptr.
10603 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10604 Update.
10605 * solib-frv.c (frv_current_sos): Update.
10606 * solib-dsbt.c (dsbt_current_sos): Update.
10607 * solib-darwin.c (darwin_current_sos): Update.
10608 * linux-thread-db.c (inferior_has_bug): Update.
10609 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10610 Update. Remove alloca.
10611 * ada-lang.c (ada_main_name): Update.
10612
263db9a1
TT
106132018-03-30 Tom Tromey <tom@tromey.com>
10614
10615 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10616 (struct dwo_file_deleter): New.
10617 (dwo_file_up): New typedef.
10618 (open_and_init_dwo_file): Use dwo_file_up.
10619 (free_dwo_file_cleanup): Remove.
10620
5dafb3d1
TT
106212018-03-30 Tom Tromey <tom@tromey.com>
10622
10623 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10624 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10625
11ed8cad
TT
106262018-03-30 Tom Tromey <tom@tromey.com>
10627
10628 * dwarf2read.c (class free_cached_comp_units): New class.
10629 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10630 (free_cached_comp_units): Remove function.
10631
9ae79dac
TT
106322018-03-30 Tom Tromey <tom@tromey.com>
10633
10634 * utils.h (make_cleanup_unpush_target): Remove.
10635 * inf-ptrace.c (struct target_unpusher): New.
10636 (target_unpush_up) New typedef.
10637 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10638 target_unpush_up.
10639 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10640
5aa89276
TT
106412018-03-27 Tom Tromey <tom@tromey.com>
10642
10643 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10644
1dbeed45
TT
106452018-03-27 Pedro Alves <palves@redhat.com>
10646 Tom Tromey <tom@tromey.com>
10647
10648 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10649 destructor. Now a class.
10650 (gdb_readline_wrapper_cleanup): Remove function.
10651 (gdb_readline_wrapper): Remove cleanups.
10652
c819b2c0
TT
106532018-03-27 Tom Tromey <tom@tromey.com>
10654
10655 * typeprint.h (struct type_print_options) <local_typedefs,
10656 global_typedefs>: Remove "struct" keyword.
10657 (class typedef_hash_table): New class.
10658 (recursively_update_typedef_hash, add_template_parameters)
10659 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10660 (find_typedef_in_hash): Don't declare.
10661 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10662 (typedef_hash_table::recursively_update): Rename from
10663 recursively_update_typedef_hash. Now a member.
10664 (typedef_hash_table::add_template_parameters): Rename from
10665 add_template_parameters. Now a member.
10666 (typedef_hash_table::typedef_hash_table): Now a constructor;
10667 rename from create_typedef_hash.
10668 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10669 rename from free_typedef_hash.
10670 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10671 (do_free_global_table): Remove.
10672 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10673 from copy_type_recursive.
10674 (create_global_typedef_table): Remove.
10675 (typedef_hash_table::find_global_typedef): Now a member of
10676 typedef_hash_table.
10677 (typedef_hash_table::find_typedef): Rename from
10678 find_typedef_in_hash; now a member.
10679 (whatis_exp): Update.
10680 * extension.h (struct ext_lang_type_printers): Add constructor and
10681 destructor.
10682 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10683 declare.
10684 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10685 Now a constructor; rename from start_ext_lang_type_printers.
10686 (ext_lang_type_printers): Now a destructor; rename from
10687 free_ext_lang_type_printers.
10688 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10689 Update.
10690 (c_type_print_base_struct_union): Update. Remove cleanups.
10691
608219fb
TT
106922018-03-27 Tom Tromey <tom@tromey.com>
10693
10694 * dwarf-index-write.c: Include <cmath>.
10695
3fcded8f
JB
106962018-03-27 Joel Brobecker <brobecker@adacore.com>
10697
10698 * NEWS: Add entry describing new "set|show varsize-limit" command.
10699 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10700 command.
10701 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10702 "set variable".
10703
cd4fb1b2
SM
107042018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10705
10706 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10707 dwarf-index-write.c
10708 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10709 * dwarf-index-common.c: New file.
10710 * dwarf-index-common.h: New file.
10711 * dwarf-index-write.c: New file.
10712 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10713 (struct dwarf2_section_info): Move from here.
10714 (dwarf2_section_info_def): Likewise.
10715 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10716 (offset_type): Likewise.
10717 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10718 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10719 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10720 (byte_swap): Likewise.
10721 (MAYBE_SWAP): Likewise.
10722 (dwarf2_per_cu_ptr): Likewise.
10723 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10724 (struct tu_stats): Likewise.
10725 (struct dwarf2_per_objfile): Likewise.
10726 (struct dwarf2_per_cu_data): Likewise.
10727 (struct signatured_type): Likewise.
10728 (sig_type_ptr): Likewise.
10729 (DEF_VEC_P (sig_type_ptr)): Likewise.
10730 (INDEX4_SUFFIX): Likewise.
10731 (INDEX5_SUFFIX): Likewise.
10732 (DEBUG_STR_SUFFIX): Likewise.
10733 (dwarf2_read_section): Make non-static.
10734 (mapped_index_string_hash): Move from here.
10735 (dwarf5_djb_hash): Likewise.
10736 (file_write): Likewise.
10737 (class data_buf): Likewise.
10738 (struct symtab_index_entry): Likewise.
10739 (struct mapped_symtab): Likewise.
10740 (find_slot): Likewise.
10741 (hash_expand): Likewise.
10742 (add_index_entry): Likewise.
10743 (uniquify_cu_indices): Likewise.
10744 (class c_str_view): Likewise.
10745 (class c_str_view_hasher): Likewise.
10746 (class vector_hasher): Likewise.
10747 (write_hash_table): Likewise.
10748 (psym_index_map): Likewise.
10749 (struct addrmap_index_data): Likewise.
10750 (add_address_entry): Likewise.
10751 (add_address_entry_worker): Likewise.
10752 (write_address_map): Likewise.
10753 (symbol_kind): Likewise.
10754 (write_psymbols): Likewise.
10755 (struct signatured_type_index_data): Likewise.
10756 (write_one_signatured_type): Likewise.
10757 (recursively_count_psymbols): Likewise.
10758 (recursively_write_psymbols): Likewise.
10759 (class debug_names): Likewise.
10760 (check_dwarf64_offsets): Likewise.
10761 (psyms_seen_size): Likewise.
10762 (write_gdbindex): Likewise.
10763 (write_debug_names): Likewise.
10764 (assert_file_size): Likewise.
10765 (write_psymtabs_to_index): Likewise.
10766 (save_gdb_index_command): Likewise.
10767 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10768 command.
10769 * dwarf2read.h: New file.
10770
59cc4834
JB
107712018-03-27 Joel Brobecker <brobecker@adacore.com>
10772
10773 PR gdb/22670
10774 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10775 symbol name if the CU's language stores symbol names in linkage
10776 format.
10777 * language.h (struct language_defn)
10778 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10779 all instances of this struct.
10780
67501539
TT
107812018-03-26 Tom Tromey <tom@tromey.com>
10782
10783 * stack.c (backtrace_command_1): Remove verbose code.
10784
76c939ac
TT
107852018-03-26 Tom Tromey <tom@tromey.com>
10786
10787 * python/py-framefilter.c (py_print_type): Don't catch
10788 exceptions. Return void.
10789 (py_print_value): Likewise.
10790 (py_print_single_arg): Likewise.
10791 (enumerate_args): Don't catch exceptions.
10792 (py_print_args): Likewise.
10793 (py_print_frame): Likewise.
10794 (gdbpy_apply_frame_filter): Catch exceptions here.
10795
9507b29c
TT
107962018-03-26 Tom Tromey <tom@tromey.com>
10797
10798 * stack.c (_initialize_stack): Remove trailing newlines from help
10799 text. Add "Usage" line to "backtrace" help.
10800
eb68e487
TT
108012018-03-26 Tom Tromey <tom@tromey.com>
10802
10803 PR python/16486:
10804 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10805
1f111921
TT
108062018-03-26 Tom Tromey <tom@tromey.com>
10807
10808 * python/py-framefilter.c (py_print_single_arg): Return
10809 EXT_LANG_BT_ERROR from catch.
10810
fb7eb8b5
TT
108112018-03-26 Tom Tromey <tom@tromey.com>
10812
10813 PR backtrace/15584:
10814 * stack.c (backtrace_command_1): Move some code into no-filters
10815 "if".
10816
4ca59a9f
TT
108172018-03-26 Tom Tromey <tom@tromey.com>
10818
10819 * python/py-framefilter.c (throw_quit_or_print_exception): New
10820 function.
10821 (gdbpy_apply_frame_filter): Use it.
10822
92256134
TT
108232018-03-26 Tom Tromey <tom@tromey.com>
10824
10825 PR cli/17716:
10826 * python/py-framefilter.c (py_print_type, py_print_value)
10827 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10828 RETURN_MASK_ERROR.
10829
7a630bc2
TT
108302018-03-26 Tom Tromey <tom@tromey.com>
10831
10832 * python/py-framefilter.c (enumerate_args): Use
10833 gdb::unique_xmalloc_ptr.
10834
63283d4a
TT
108352018-03-26 Tom Tromey <tom@tromey.com>
10836
10837 * python/py-framefilter.c (py_print_frame): Return
10838 EXT_LANG_BT_OK.
10839 (gdbpy_apply_frame_filter): Update comment.
10840 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10841 Remove.
10842 <EXT_LANG_BT_NO_FILTERS>: Change value.
10843
978d6c75
TT
108442018-03-26 Tom Tromey <tom@tromey.com>
10845
10846 PR backtrace/15582:
10847 * stack.c (backtrace_command): Parse "hide" argument.
10848 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10849 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10850 constant.
10851
1cf7e640
TT
108522018-03-26 Tom Tromey <tom@tromey.com>
10853
10854 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10855 add "flags".
10856 (backtrace_command): Remove "fulltrace", add "flags".
10857
ea3b0687
TT
108582018-03-26 Tom Tromey <tom@tromey.com>
10859
10860 * stack.c (backtrace_command): Rewrite command line parsing.
10861
9f034d75
SM
108622018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10863
10864 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10865
ce1459e5
SM
108662018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10867
10868 * filename-seen-cache.h: Add include guard.
10869
4f7ae6f5
KS
108702018-03-26 Keith Seitz <keiths@redhat.com>
10871
10872 * symfile.c (place_section): Remove "struct" from section_addr_info
10873 in comment.
10874 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10875 "struct" keyword from section_addr_info.
10876
5cd3e386
AH
108772018-03-26 Alan Hayward <alan.hayward@arm.com>
10878
10879 * regformats/regdef.h (reg): Add constructors.
10880
3e5ef9a4
PA
108812018-03-25 Pedro Alves <palves@redhat.com>
10882
10883 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10884 if then/else bodies in var_func_name extraction.
10885
c88d2fcc 108862018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
10887
10888 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10889 lookup_minimal_symbol() to find symbol entry.
10890 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10891
b7fee5a3
KS
108922018-03-23 Keith Seitz <keiths@redhat.com>
10893
10894 PR c++/22968
10895 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10896 nested type definitions for C++, too.
10897
2cc9b304
TT
108982018-03-23 Tom Tromey <tom@tromey.com>
10899
10900 * machoread.c (struct oso_el): Add a constructor. Don't define as
10901 a typedef.
10902 (macho_register_oso): Remove.
10903 (macho_symtab_read): Take a std::vector.
10904 (oso_el_compare_name): Now a std::sort comparator.
10905 (macho_symfile_read_all_oso): Take a std::vector.
10906 (macho_symfile_read): Use std::vector. Remove cleanups.
10907
a2b2bc12
TT
109082018-03-22 Tom Tromey <tom@tromey.com>
10909
10910 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10911 (record_full_goto_bookmark): Use std::string.
10912
7a8f494c
PFC
109132018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10914
10915 PR tdep/18295
10916 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10917 a single mask.
10918
dd6d677f
PFC
109192018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10920
10921 * rs6000-tdep.c (store_insn_p): New function.
10922 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10923 and cr_reg to their unshifted values. Use store_insn_p to
10924 match LR saves using either R1 or fdata->alloca_reg. Use
10925 store_insn_p to match CR saves. Set alloca_reg_offset
10926 when alloca_reg and framep are set. Remove lr_reg shift
10927 when assigning to fdata->lr_register.
10928
26d6cec4
AA
109292018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10930
10931 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10932 command line args instead of emitting a warning.
10933
5d9310c4
SM
109342018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10935
10936 * tracepoint.h (struct static_tracepoint_marker): Initialize
10937 fields, define default constructor, move constructor and move
10938 assignment, disable the rest.
10939 <str_id, extra>: Make std::string.
10940 (release_static_tracepoint_marker): Remove.
10941 (free_current_marker): Remove.
10942 * tracepoint.c (free_current_marker): Remove.
10943 (parse_static_tracepoint_marker_definition): Adjust to
10944 std::string, use new hex2str overload.
10945 (release_static_tracepoint_marker): Remove.
10946 (print_one_static_tracepoint_marker): Get marker by reference
10947 and adjust to std::string.
10948 (info_static_tracepoint_markers_command): Adjust to std::vector
10949 changes
10950 * target.h (static_tracepoint_marker_p): Remove typedef.
10951 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10952 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10953 bool.
10954 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10955 * target-debug.h
10956 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10957 (target_debug_print_std_vector_static_tracepoint_marker): New.
10958 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10959 to...
10960 (target_debug_print_static_tracepoint_marker_p): ... this.
10961 * target-delegates.c: Re-generate.
10962 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10963 Make std::string.
10964 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10965 (decode_static_tracepoint_spec): Adjust to std::vector.
10966 (tracepoint_print_one_detail): Adjust to std::string.
10967 (strace_marker_decode_location): Adjust to std::string.
10968 (update_static_tracepoint): Adjust to std::string, remove call
10969 to release_static_tracepoint_marker.
10970 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10971 Adjust to std::vector.
10972 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10973 (remote_static_tracepoint_markers_by_strid): Adjust to
10974 std::vector.
10975 * common/rsp-low.h (hex2str): New overload with explicit count
10976 of bytes.
10977 * common/rsp-low.c (hex2str): New overload with explicit count
10978 of bytes.
10979 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10980 (_initialize_rsp_low_selftests): Add test_hex2str test.
10981 * unittests/tracepoint-selftests.c
10982 (test_parse_static_tracepoint_marker_definition): Adjust to
10983 std::string.
10984
62c222b6
SM
109852018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10986
10987 * tracepoint.c (parse_static_tracepoint_marker_definition):
10988 Consider case where the definition is followed by more
10989 definitions.
10990 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10991 tracepoint-selftests.c.
10992 * unittests/tracepoint-selftests.c: New.
10993
7eb2418f
PFC
109942018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10995
10996 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10997 Carvalho.
10998
7cbe16e9
SR
109992018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11000
3d6b3b82 11001 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 11002
4ee89e90
SR
110032018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11004
3d6b3b82 11005 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 11006
92630041
TT
110072018-03-19 Tom Tromey <tom@tromey.com>
11008
11009 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11010 "IDENT" production.
11011
76727919
TT
110122018-03-19 Pedro Alves <palves@redhat.com>
11013 Tom Tromey <tom@tromey.com>
11014
11015 * unittests/observable-selftests.c: New file.
11016 * common/observable.h: New file.
11017 * observable.h: New file.
11018 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11019 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11020 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11021 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11022 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11023 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11024 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11025 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11026 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11027 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11028 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11029 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11030 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11031 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11032 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11033 tui/tui-interp.c, valops.c: Update all users.
11034 * tui/tui-hooks.c (tui_bp_created_observer)
11035 (tui_bp_deleted_observer, tui_bp_modified_observer)
11036 (tui_inferior_exit_observer, tui_before_prompt_observer)
11037 (tui_normal_stop_observer, tui_register_changed_observer):
11038 Remove.
11039 (tui_observers_token): New global.
11040 (attach_or_detach, tui_attach_detach_observers): New functions.
11041 (tui_install_hooks, tui_remove_hooks): Use
11042 tui_attach_detach_observers.
11043 * record-btrace.c (record_btrace_thread_observer): Remove.
11044 (record_btrace_thread_observer_token): New global.
11045 * observer.sh: Remove.
11046 * observer.c: Rename to observable.c.
11047 * observable.c (namespace gdb_observers): Define new objects.
11048 (observer_debug): Move into gdb_observers namespace.
11049 (struct observer, struct observer_list, xalloc_observer_list_node)
11050 (xfree_observer_list_node, generic_observer_attach)
11051 (generic_observer_detach, generic_observer_notify): Remove.
11052 (_initialize_observer): Update.
11053 Don't include observer.inc.
11054 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11055 (clean mostlyclean): Likewise.
11056 (observer.h, observer.inc): Remove targets.
11057 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11058 (COMMON_SFILES): Use observable.c, not observer.c.
11059 * .gitignore: Remove observer.h.
11060
1cb1f3da
TT
110612018-03-18 Tom Tromey <tom@tromey.com>
11062
11063 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11064 gdb::def_vector.
11065 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11066
a06ab151
TT
110672018-03-17 Tom Tromey <tom@tromey.com>
11068
11069 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11070
770623f7
TT
110712018-03-17 Tom Tromey <tom@tromey.com>
11072
11073 * target.c (class scoped_target_fd): New.
11074 (target_fileio_close_cleanup): Remove.
11075 (target_fileio_read_alloc_1): Use scoped_target_fd.
11076
39be3c7e
SM
110772018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11078
11079 * silent-rules.mk: New.
11080 * Makefile.in: Include silent-rules.mk
11081 (srcdir, VPATH, top_srcdir): Move up.
11082 (COMPILE): Add ECHO_CXX.
11083 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11084 (init.c): Add ECHO_INIT_C.
11085 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11086 (version.c): Add ECHO_GEN.
11087 (printcmd.o): Add ECHO_CXX.
11088 (target-float.o): Add ECHO_CXX.
11089 (ada-exp.o): Add ECHO_CXX.
11090 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11091 (insight$(EXEEXT)): Add ECHO_CXXLD.
11092 * gnulib/configure.ac: Add AM_SILENT_RULES.
11093 * gnulib/aclocal.m4: Re-generate.
11094 * gnulib/configure: Re-generate.
11095 * gnulib/import/Makefile.in: Re-generate.
11096
37e136b1
TT
110972018-03-16 Tom Tromey <tom@tromey.com>
11098
11099 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11100 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11101 * utils.c (do_free_section_addr_info)
11102 (make_cleanup_free_section_addr_info): Remove.
11103 * symfile.h (struct other_sections): Add constructor.
11104 (struct section_addr_info): Remove.
11105 (section_addr_info): New typedef.
11106 (struct sym_fns) <sym_offsets>: Change type of parameter.
11107 (build_section_addr_info_from_objfile)
11108 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11109 (default_symfile_offsets, symbol_file_add)
11110 (symbol_file_add_from_bfd)
11111 (build_section_addr_info_from_section_table): Update.
11112 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11113 * symfile.c (alloc_section_addr_info): Remove.
11114 (build_section_addr_info_from_section_table): Change return type.
11115 Update.
11116 (build_section_addr_info_from_bfd)
11117 (build_section_addr_info_from_objfile): Likewise.
11118 (free_section_addr_info): Remove.
11119 (relative_addr_info_to_section_offsets): Change type of "addrs".
11120 (addrs_section_compar): Now a std::sort comparator.
11121 (addrs_section_sort): Change return type.
11122 (addr_info_make_relative): Change type of "addrs". Update.
11123 (default_symfile_offsets, syms_from_objfile_1)
11124 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11125 (symbol_file_add_separate): Update.
11126 (symbol_file_add): Change type of "addrs". Update.
11127 (add_symbol_file_command): Update. Remove cleanups.
11128 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11129 cleanups.
11130 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11131 * solib.c (solib_read_symbols): Update.
11132 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11133 * machoread.c (macho_symfile_offsets): Update.
11134 * jit.c (jit_bfd_try_read_symtab): Update.
11135
03afa6ef
SM
111362018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11137
11138 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11139 unittests/utils-selftests.c.
11140 * unittests/utils-selftests.c: New file.
11141
3ae9ce5d
TT
111422018-03-14 Tom Tromey <tom@tromey.com>
11143
11144 PR cli/14977:
11145 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11146 for NULL.
11147
b8c2339b
TT
111482018-03-14 Tom Tromey <tom@tromey.com>
11149
11150 PR cli/19918:
11151 * printcmd.c (printf_pointer): Allow "-" in format.
11152
80ae639d
TT
111532018-03-14 Tom Tromey <tom@tromey.com>
11154
11155 * printcmd.c (_initialize_printcmd): Add usage to printf.
11156
0d671d99
YQ
111572018-03-14 Yao Qi <qiyao@sourceware.org>
11158
11159 * MAINTAINERS: Update my email address.
11160
b577b6af
TT
111612018-03-13 Tom Tromey <tom@tromey.com>
11162
11163 * machoread.c (macho_check_dsym): Change filenamep to a
11164 std::string*.
11165 (macho_symfile_read): Update.
11166 * symfile.c (load_command): Use std::string.
11167
89a3b63e
AB
111682018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11169
11170 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11171 to error message string.
11172 (riscv_register_name): Use xsnprintf instead of sprintf.
11173 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11174 internal_error.
11175 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11176 error.
11177 (riscv_push_dummy_call): Likewise.
11178
984c7238
TT
111792018-03-12 Tom Tromey <tom@tromey.com>
11180
11181 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11182 Use gdb::byte_vector.
11183 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11184
933522d1
YQ
111852018-03-12 Yao Qi <yao.qi@linaro.org>
11186
11187 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11188 parameter type to readable_regcache.
11189 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11190 the declaration.
11191
be2daae6
TT
111922018-03-11 Tom Tromey <tom@tromey.com>
11193
11194 * dwarf2read.c (struct nextfield): Add initializers.
11195 (struct nextfnfield): Remove.
11196 (struct fnfieldlist): Add initializers. Remove "length" and
11197 "head", use std::vector.
11198 (struct decl_field_list): Remove.
11199 (struct field_info): Add initializers.
11200 <fields, baseclasses>: Now std::vector.
11201 <nbaseclasses, nfnfields, typedef_field_list_count,
11202 nested_types_list_count>: Remove.
11203 (dwarf2_add_field, dwarf2_add_type_defn)
11204 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11205 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11206 (process_structure_scope): Update.
11207
484cf504
TT
112082018-03-11 Tom Tromey <tom@tromey.com>
11209
11210 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11211 for use by std::sort.
11212 (build_type_psymtabs_1): Use std::vector.
11213
9bd8e0b0
EZ
112142018-03-09 Eli Zaretskii <eliz@gnu.org>
11215
11216 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11217 and LIBMPFR in the printed configuration.
11218
5dc1a704
TT
112192018-03-08 Tom Tromey <tom@tromey.com>
11220
11221 * source.c (get_filename_and_charpos): Use scoped_fd.
11222 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11223 (procfs_pidlist): Likewise.
11224 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11225 (iterate_over_mappings): Likewise.
11226
fdf07f3a
TT
112272018-03-08 Tom Tromey <tom@tromey.com>
11228
11229 * infcall.c (struct call_return_meta_info)
11230 <stack_temporaries_enabled>: Remove.
11231 (get_call_return_value, call_function_by_hand_dummy): Update.
11232 * thread.c (disable_thread_stack_temporaries): Remove.
11233 (enable_thread_stack_temporaries): Remove.
11234 (thread_stack_temporaries_enabled_p): Return bool.
11235 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11236 (get_last_thread_stack_temporary): Update.
11237 * eval.c (evaluate_subexp): Update.
11238 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11239 class, not a function.
11240 (value_ptr, value_vec): Remove typedefs.
11241 (class thread_info) <stack_temporaries_enabled>: Now bool.
11242 <stack_temporaries>: Now a std::vector.
11243 (thread_stack_temporaries_enabled_p)
11244 (value_in_thread_stack_temporaries): Return bool.
11245
567a3e54
SM
112462018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11247
11248 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11249 (getpkt_or_notif_sane_1): Likewise.
11250
00b40057
SM
112512018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11252
11253 * build-id.c (build_id_to_debug_bfd): Use std::string.
11254
a8dbfd58
SM
112552018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11256
11257 * build-id.c (find_separate_debug_file_by_buildid): Return
11258 std::string.
11259 * build-id.h (find_separate_debug_file_by_buildid): Return
11260 std::string.
11261 * coffread.c (coff_symfile_read): Adjust to std::string.
11262 * elfread.c (elf_symfile_read): Adjust to std::string.
11263 * symfile.c (separate_debug_file_exists): Change parameter to
11264 std::string.
11265 (find_separate_debug_file): Return std::string.
11266 (find_separate_debug_file_by_debuglink): Return std::string.
11267 * symfile.h (find_separate_debug_file_by_debuglink): Return
11268 std::string.
11269
e6a58aa8
SM
112702018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11271
11272 * common/xml-utils.c (xml_escape_text): Move code to...
11273 (xml_escape_text_append): ... this new function.
11274 * common/xml-utils.h (xml_escape_text_append): New declaration.
11275 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11276 New function.
11277 (_initialize_xml_utils): register test_xml_escape_text_append as
11278 a selftest.
11279
4ef0bef6
AH
112802018-03-07 Alan Hayward <alan.hayward@arm.com>
11281
11282 * defs.h: Remove MAX_REGISTER_SIZE.
11283 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11284 asserts.
11285 * python/py-unwind.c (pyuw_sniffer): Likewise.
11286
e0d3522b
TT
112872018-03-07 Tom Tromey <tom@tromey.com>
11288
11289 * linux-tdep.c (linux_info_proc): Update.
11290 * target.h (struct target_ops) <to_fileio_readlink>: Return
11291 optional<string>.
11292 (target_fileio_readlink): Return optional<string>.
11293 * remote.c (remote_hostio_readlink): Return optional<string>.
11294 * inf-child.c (inf_child_fileio_readlink): Return
11295 optional<string>.
11296 * target.c (target_fileio_readlink): Return optional<string>.
11297
ea005f31
AB
112982018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11299
11300 * regcache.c (cooked_read_test): Add riscv to the list of
11301 architectures that have a save_reggroup.
11302
e95a97d4
AA
113032018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11304
11305 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11306 value is not a dynamic class object.
11307
d8344f3d
TT
113082018-03-06 Tom Tromey <tom@tromey.com>
11309
11310 * rust-exp.y: Formatting fixes.
11311
9add17f2
AB
113122018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11313
11314 * riscv-tdep.c (riscv_register_name): Remove target description
11315 support.
11316 (riscv_gdbarch_init): Remove target description check.
11317
c9486dfe
AB
113182018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11319
11320 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11321 comment.
11322 * riscv-tdep.h: Likewise.
11323
d74aff3d
AB
113242018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11325
11326 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11327 (riscv_pseudo_register_write): Delete.
11328 (riscv_gdbarch_init): Remove all use of pseudo registers.
11329
7ea78b59
SM
113302018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11331
11332 * record-btrace.c (btrace_print_lines): Replace cleanup
11333 parameter with RAII equivalents.
11334 (btrace_insn_history): Replace cleanup with RAII equivalents.
11335 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11336 make_cleanup_ui_out_tuple_begin_end): Remove.
11337 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11338 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11339 make_cleanup_ui_out_list_begin_end): Remove.
11340
53127008
SM
113412018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11342
11343 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11344 parameter types to std::vector. Use bool.
11345 (record_btrace_wait): Replace VEC(tp_t) with
11346 std::vector<thread_info *>.
11347 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11348
228f1508
SM
113492018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11350
11351 * record-btrace.c (record_btrace_disable_callback): Remove.
11352 (struct scoped_btrace_disable): New.
11353 (record_btrace_open): Use scoped_btrace_disable.
11354
b2970c23
AB
113552018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11356
11357 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11358 reading values from registers.
11359
fb294655
AB
113602018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11361
11362 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11363 where appropriate.
11364
cab5bb9d
AB
113652018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11366
11367 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11368 change parameter type. Use GDB's print functions, and use
11369 core_addr_to_string where appropriate.
11370 (riscv_push_dummy_call): Use core_addr_to_string where
11371 appropriate, update call to riscv_print_arg_location, and reindent
11372 a few lines.
11373 (riscv_return_value): Update call to riscv_print_arg_location.
11374
dbbb1059
AB
113752018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11376 Tim Newsome <tim@sifive.com>
11377 Albert Ou <a0u@eecs.berkeley.edu>
11378 Darius Rad <darius@bluespec.com>
11379
11380 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11381 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11382 (ALLDEPFILES): Add riscv-tdep.c
11383 * configure.tgt: Add riscv support.
11384 * riscv-tdep.c: New file.
11385 * riscv-tdep.h: New file.
11386 * NEWS: Mention new target.
11387 * MAINTAINERS: Add entry for riscv.
11388
5dc43913
AB
113892018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11390
11391 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11392 fields within aggregates.
11393
3dea1ef7
SM
113942018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11395
11396 * record-btrace.c (btrace_print_lines): Change type of flags to
11397 gdb_disassembly_flags.
11398
7efba073
JB
113992018-03-04 John Baldwin <jhb@FreeBSD.org>
11400
11401 * fbsd-nat.c: Include "inf-ptrace.h".
11402 (USE_SIGTRAP_SIGINFO): Conditionally define.
11403 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11404 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11405 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11406 function.
11407 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11408 Likewise.
11409 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11410 Likewise.
11411 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11412 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11413 "supports_stopped_by_hw_breakpoint" target methods.
11414
386a8676
JB
114152018-03-04 John Baldwin <jhb@FreeBSD.org>
11416
11417 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11418 * fbsd-nat.c (debug_fbsd_nat): New variable.
11419 (show_fbsd_nat_debug): New function.
11420 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11421 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11422
12279366
JB
114232018-03-04 John Baldwin <jhb@FreeBSD.org>
11424
11425 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11426 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11427 prototype.
11428 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11429 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11430 method.
11431
54693cf5
SM
114322018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11433
11434 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11435 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11436
ccb2231c
SM
114372018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11438
11439 * charset.c (struct charset_vector): New.
11440 (charsets): Change type to charset_vector.
11441 (find_charset_names): Adjust.
11442 (add_one): Adjust.
11443 (_initialize_charset): Adjust.
11444
6fb16ce6
SM
114452018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11446
11447 * progspace.h (struct program_space) <deleted_solibs>: Change
11448 type to std::vector<std::string>.
11449 * progspace.c (clear_program_space_solib_cache): Adjust.
11450 * breakpoint.c (print_solib_event): Adjust.
11451 (check_status_catch_solib): Adjust.
11452 * solib.c (update_solib_list): Adjust.
11453 * ui-out.h (class ui_out) <field_string>: New overload.
11454 * ui-out.c (ui_out::field_string): New overload.
11455
564b1e3f
SM
114562018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11457
11458 * progspace.h (struct program_space): Add constructor and
11459 destructor, initialize fields.
11460 (add_program_space): Remove.
11461 * progspace.c (add_program_space): Rename to...
11462 (program_space::program_space): ... this.
11463 (release_program_space): Rename to...
11464 (program_space::~program_space): ... this.
11465 (delete_program_space): Use delete to delete program_space.
11466 (initialize_progspace): Use new to allocate program_space.
11467 * inferior.c (add_inferior_with_spaces): Likewise.
11468 (clone_inferior_command): Likewise.
11469 * infrun.c (follow_fork_inferior): Likewise.
11470 (handle_vfork_child_exec_or_exit): Likewise.
11471
e80aaf61
SM
114722018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11473
11474 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11475 (delim_string_to_char_ptr_vec): Return std::vector of
11476 gdb::unique_xmalloc_ptr.
11477 (dirnames_to_char_ptr_vec_append): Take std::vector of
11478 gdb::unique_xmalloc_ptr.
11479 (dirnames_to_char_ptr_vec): Return std::vector of
11480 gdb::unique_xmalloc_ptr.
11481 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11482 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11483 (delim_string_to_char_ptr_vec): Return an std::vector of
11484 gdb::unique_xmalloc_ptr, adjust the code.
11485 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11486 gdb::unique_xmalloc_ptr, adjust the code.
11487 (dirnames_to_char_ptr_vec): Return an std::vector of
11488 gdb::unique_xmalloc_ptr, adjust the code.
11489 * auto-load.c (auto_load_safe_path_vec): Change type to
11490 std::vector of gdb::unique_xmalloc_ptr.
11491 (auto_load_expand_dir_vars): Return an std::vector of
11492 gdb::unique_xmalloc_ptr, adjust the code.
11493 (auto_load_safe_path_vec_update): Adjust.
11494 (filename_is_in_auto_load_safe_path_vec): Adjust.
11495 (auto_load_objfile_script_1): Adjust.
11496 * build-id.c (build_id_to_debug_bfd): Adjust.
11497 * linux-thread-db.c (thread_db_load_search): Adjust.
11498 * source.c (add_path): Adjust.
11499 (openp): Adjust.
11500 * symfile.c (find_separate_debug_file): Adjust.
11501 * utils.c (do_free_char_ptr_vec): Remove.
11502 (make_cleanup_free_char_ptr_vec): Remove.
11503
ab818ade
SDJ
115042018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11505
11506 PR gdb/22907
11507 * common/pathstuff.c: Conditionally include "<windows.h>".
11508
e1e6f073
GS
115092018-03-01 Georg Sauthoff <mail@georg.so>
11510
11511 PR gdb/22888
11512 * gcore.in: Quote variables and switch interpreter to bash.
11513
c7b15a66
TT
115142018-03-01 Tom Tromey <tom@tromey.com>
11515
11516 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11517 assertion. Add assertion for discriminant_index.
11518 (quirk_rust_enum): Use correct base type name in univariant case.
11519
0cb7c7b0
SM
115202018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11521
11522 * record.c (get_call_history_modifiers): Return a
11523 record_print_flags.
11524 (cmd_record_call_history): Adjust.
11525 * record-btrace.c (record_btrace_call_history): Adjust.
11526 (record_btrace_call_history_range): Adjust.
11527 (record_btrace_call_history_from): Adjust.
11528 * target-debug.h (target_debug_print_record_print_flags): New.
11529 * target-delegates.c: Re-generate.
11530 * target.c (target_call_history): Change flags type.
11531 (target_call_history_from): Likewise.
11532 (target_call_history_range): Likewise.
11533 * target.h (struct target_ops) <target_call_history>: Likewise.
11534 (target_call_history_from): Likewise.
11535 (target_call_history_range): Likewise.
11536
25e3c82c
SDJ
115372018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11538 Simon Marchi <simon.marchi@polymtl.ca>
11539
11540 * common/common-utils.c: Include "sys/stat.h".
11541 (is_regular_file): Move here from "source.c"; change return
11542 type to "bool".
11543 * common/common-utils.h (is_regular_file): New prototype.
11544 * common/pathstuff.c (contains_dir_separator): New function.
11545 * common/pathstuff.h (contains_dir_separator): New prototype.
11546 * source.c: Don't include "sys/stat.h".
11547 (is_regular_file): Move to "common/common-utils.c".
11548
b4987c95
SDJ
115492018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11550
11551 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11552 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11553 * auto-load.c: Include "common/pathstuff.h".
11554 * common/common-def.h (current_directory): Move here.
11555 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11556 function.
11557 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11558 prototype.
11559 * common/pathstuff.c: New file.
11560 * common/pathstuff.h: New file.
11561 * compile/compile.c: Include "common/pathstuff.h".
11562 * defs.h (current_directory): Move to "common/common-defs.h".
11563 * dwarf2read.c: Include "common/pathstuff.h".
11564 * exec.c: Likewise.
11565 * guile/scm-safe-call.c: Likewise.
11566 * linux-thread-db.c: Likewise.
11567 * main.c: Likewise.
11568 * nto-tdep.c: Likewise.
11569 * objfiles.c: Likewise.
11570 * source.c: Likewise.
11571 * symtab.c: Likewise.
11572 * utils.c: Include "common/pathstuff.h".
11573 (gdb_realpath): Move to "common/pathstuff.c".
11574 (gdb_realpath_keepfile): Likewise.
11575 (gdb_abspath): Likewise.
11576 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11577 (gdb_realpath_keepfile): Likewise.
11578 (gdb_abspath): Likewise.
11579
f169cfdc
JB
115802018-02-28 John Baldwin <jhb@FreeBSD.org>
11581
11582 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11583 wildcard process pid for super_resume for kernels with a
11584 specific bug.
11585
e05cac70
PM
115862018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11587
11588 * compile/compile.c (get_args): Add additional comments
11589 explaining function.
11590
55089490
TT
115912018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11592 Tom Tromey <tom@tromey.com>
11593
11594 * target.h (memory_write_request_s): Remove typedef. Don't define
11595 VEC.
11596 (target_write_memory_blocks): Change argument to std::vector.
11597 (struct memory_write_request): Add constructor.
11598 * target-memory.c (compare_block_starting_address): Return bool.
11599 Change argument types.
11600 (claim_memory): Change arguments to use std::vector.
11601 (split_regular_and_flash_blocks, blocks_to_erase)
11602 (compute_garbled_blocks): Likewise.
11603 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11604 (target_write_memory_blocks): Change argument to std::vector.
11605 * symfile.c (struct load_section_data): Add constructor and
11606 destructor. Use std::vector for "requests".
11607 (struct load_progress_data): Add initializers.
11608 (load_section_callback): Update. Use "new".
11609 (clear_memory_write_data): Remove.
11610 (generic_load): Update.
11611
0c305b61
AH
116122018-02-27 Alan Hayward <alan.hayward@arm.com>
11613
11614 * arch/aarch64.h: Use common/tdesc.h.
11615
c5196c92
MR
116162018-02-26 Maciej W. Rozycki <macro@mips.com>
11617
11618 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11619 architecture with a 64-bit ABI.
11620
37c33887
MR
116212018-02-26 Maciej W. Rozycki <macro@mips.com>
11622
11623 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11624 ahead of target description loading.
11625
d4dd3282
TT
116262018-02-26 Tom Tromey <tom@tromey.com>
11627
11628 * stack.c (backtrace_command_1): Update.
11629 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11630 of "flags".
11631 * python/py-framefilter.c (py_print_frame)
11632 (gdbpy_apply_frame_filter): Change type of "flags".
11633 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11634 of "flags".
11635 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11636 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11637 * extension.h (enum frame_filter_flag): Rename from
11638 frame_filter_flags.
11639 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11640 (apply_ext_lang_frame_filter): Change type of "flags".
11641 * extension.c (apply_ext_lang_frame_filter): Change type of
11642 "flags".
11643 * extension-priv.h (struct extension_language_ops)
11644 <apply_frame_filter>: Change type of "flags".
11645
6893c19a
TT
116462018-02-26 Tom Tromey <tom@tromey.com>
11647
11648 PR python/16497:
11649 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11650 off-by-one in py_end computation.
11651 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11652 PRINT_MORE_FRAMES.
11653 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11654 constant.
11655
2ddeaf8a
TT
116562018-02-26 Tom Tromey <tom@tromey.com>
11657
11658 * dwarf2read.c (struct variant_field): New.
11659 (struct nextfield) <variant>: New field.
11660 (dwarf2_add_field): Handle DW_TAG_variant_part.
11661 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11662 discriminated union.
11663 (read_structure_type): Handle DW_TAG_variant_part.
11664 (handle_struct_member_die): New function, extracted from
11665 process_structure_scope. Handle DW_TAG_variant.
11666 (process_structure_scope): Handle discriminated unions. Call
11667 handle_struct_member_die.
11668
c9317f21
TT
116692018-02-26 Tom Tromey <tom@tromey.com>
11670
11671 * rust-lang.h (rust_last_path_segment): Declare.
11672 * rust-lang.c (rust_last_path_segment): Now public. Change
11673 contract.
11674 (struct disr_info): Remove.
11675 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11676 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11677 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11678 (rust_enum_p, rust_enum_variant): New function.
11679 (rust_underscore_fields): Remove "offset" parameter.
11680 (rust_print_enum): New function.
11681 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11682 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11683 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11684 enums.
11685 (rust_internal_print_type): New function, from rust_print_type.
11686 Remove enum code.
11687 (rust_print_type): Call rust_internal_print_type.
11688 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11689 Update enum handling.
11690 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11691 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11692 (rust_union_quirks): New functions.
11693 (process_full_comp_unit, process_full_type_unit): Call
11694 rust_union_quirks.
11695 (process_structure_scope): Update rust_unions if necessary.
11696
7c22600a
TT
116972018-02-26 Tom Tromey <tom@tromey.com>
11698
11699 * value.h (value_union_variant): Declare.
11700 * valops.c (value_union_variant): New function.
11701 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11702 (struct discriminant_info): New.
11703 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11704 enumerator.
11705 (struct main_type) <flag_discriminated_union>: New field.
11706
15ce8941
TT
117072018-02-26 Tom Tromey <tom@tromey.com>
11708
11709 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11710 unittests/unpack-selftests.c.
11711 * unittests/unpack-selftests.c: New file.
11712 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11713
48fbe735
YQ
117142018-02-26 Yao Qi <yao.qi@linaro.org>
11715
11716 * dwarf2read.c (struct partial_die_info) <read>: New method.
11717 (read_partial_die): Remove the declaration.
11718 (load_partial_dies): Update.
11719 (partial_die_info::partial_die_info):
11720 (read_partial_die): Change it to partial_die_info::read.
11721
52356b79
YQ
117222018-02-26 Yao Qi <yao.qi@linaro.org>
11723
11724 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11725 (fixup_partial_die): Remove declaration.
11726 (scan_partial_symbols): Update.
11727 (partial_die_parent_scope): Likewise.
11728 (partial_die_full_name): Likewise.
11729 (fixup_partial_die): Change it to partial_die_info::fixup.
11730
35cc7ed7
YQ
117312018-02-26 Yao Qi <yao.qi@linaro.org>
11732
11733 * dwarf2read.c (read_partial_die): Update the declaration.
11734 (load_partial_dies): Caller update.
11735 (read_partial_die): Remove one argument abbrev_len.
11736
6f06d47b
YQ
117372018-02-26 Yao Qi <yao.qi@linaro.org>
11738
11739 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11740 assignment operator.
11741 (load_partial_dies): Use ctor and copy ctor.
11742 (read_partial_die): Update.
11743 (dwarf2_cu::find_partial_die): Use ctor.
11744
d590ff25
YQ
117452018-02-26 Yao Qi <yao.qi@linaro.org>
11746
11747 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11748 (find_partial_die_in_comp_unit): Change it to
11749 dwarf2_cu::find_partial_die.
11750 (find_partial_die): Update.
11751
fd0a254f
YQ
117522018-02-26 Yao Qi <yao.qi@linaro.org>
11753
11754 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11755 is NULL.
11756
cd9983dd
YQ
117572018-02-26 Yao Qi <yao.qi@linaro.org>
11758
11759 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11760
f46cd62a
AH
117612018-02-26 Alan Hayward <alan.hayward@arm.com>
11762
11763 * arch/amd64.h: Use common/tdesc.h.
11764 * arch/i386.c: Likewise.
11765 * arch/i386.h: Likewise.
11766 * arch/tic6x.c: Likewise.
11767 * arch/tdesc.h: Move file from here...
11768 * common/tdesc.h: ...to here.
11769 * features/aarch64-core.c: Regenerate.
11770 * features/aarch64-fpu.c: Regenerate.
11771 * features/i386/32bit-avx.c: Regenerate.
11772 * features/i386/32bit-avx512.c: Regenerate.
11773 * features/i386/32bit-core.c: Regenerate.
11774 * features/i386/32bit-linux.c: Regenerate.
11775 * features/i386/32bit-mpx.c: Regenerate.
11776 * features/i386/32bit-pkeys.c: Regenerate.
11777 * features/i386/32bit-sse.c: Regenerate.
11778 * features/i386/64bit-avx.c: Regenerate.
11779 * features/i386/64bit-avx512.c: Regenerate.
11780 * features/i386/64bit-core.c: Regenerate.
11781 * features/i386/64bit-linux.c: Regenerate.
11782 * features/i386/64bit-mpx.c: Regenerate.
11783 * features/i386/64bit-pkeys.c: Regenerate.
11784 * features/i386/64bit-segments.c: Regenerate.
11785 * features/i386/64bit-sse.c: Regenerate.
11786 * features/i386/x32-core.c: Regenerate.
11787 * features/tic6x-c6xp.c: Regenerate.
11788 * features/tic6x-core.c: Regenerate.
11789 * features/tic6x-gp.c: Regenerate.
11790 * target-descriptions.c: Use common/tdesc.h.
11791 * target-descriptions.h: Likewise.
11792
9b292f68
TT
117932018-02-24 Tom Tromey <tom@tromey.com>
11794
11795 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11796 (try_thread_db_load_from_dir, thread_db_load_search): Use
11797 std::string.
11798 (info_auto_load_libthread_db_compare): Return bool. Change
11799 argument types.
11800 (info_auto_load_libthread_db): Use std::vector, std::string.
11801 Remove cleanups.
11802
281d762b
TT
118032018-02-24 Tom Tromey <tom@tromey.com>
11804
11805 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11806 std::string.
11807 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11808 std::string*.
11809 * gdbarch.c: Rebuild.
11810 * gdbarch.h: Rebuild.
11811 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11812 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11813 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11814 std::string*.
11815
9d8780f0
SM
118162018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11817
11818 * gdbtypes.h (sect_offset): Change type to uint64_t.
11819 (sect_offset_str): New function.
11820 * dwarf2read.c (create_addrmap_from_aranges): Use
11821 sect_offset_str.
11822 (error_check_comp_unit_head): Likewise.
11823 (create_debug_type_hash_table): Likewise.
11824 (read_cutu_die_from_dwo): Likewise.
11825 (init_cutu_and_read_dies): Likewise.
11826 (init_cutu_and_read_dies_no_follow): Likewise.
11827 (process_psymtab_comp_unit_reader): Likewise.
11828 (partial_die_parent_scope): Likewise.
11829 (peek_die_abbrev): Likewise.
11830 (process_queue): Likewise.
11831 (dwarf2_physname): Likewise.
11832 (read_namespace_alias): Likewise.
11833 (read_import_statement): Likewise.
11834 (create_dwo_cu_reader): Likewise.
11835 (create_cus_hash_table): Likewise.
11836 (lookup_dwo_cutu): Likewise.
11837 (inherit_abstract_dies): Likewise.
11838 (read_func_scope): Likewise.
11839 (read_call_site_scope): Likewise.
11840 (dwarf2_add_member_fn): Likewise.
11841 (read_common_block): Likewise.
11842 (read_module_type): Likewise.
11843 (read_typedef): Likewise.
11844 (read_subrange_type): Likewise.
11845 (load_partial_dies): Likewise.
11846 (read_partial_die): Likewise.
11847 (find_partial_die): Likewise.
11848 (read_str_index): Likewise.
11849 (dwarf2_string_attr): Likewise.
11850 (build_error_marker_type): Likewise.
11851 (lookup_die_type): Likewise.
11852 (dump_die_shallow): Likewise.
11853 (follow_die_ref): Likewise.
11854 (dwarf2_fetch_die_loc_sect_off): Likewise.
11855 (dwarf2_fetch_constant_bytes): Likewise.
11856 (follow_die_sig): Likewise.
11857 (get_signatured_type): Likewise.
11858 (get_DW_AT_signature_type): Likewise.
11859 (dwarf2_find_containing_comp_unit): Likewise.
11860 (set_die_type): Likewise.
11861
8ec57239
JB
118622018-02-21 John Baldwin <jhb@FreeBSD.org>
11863
11864 * arch/aarch64.c: Include "common-defs.h".
11865 * arch/amd64.c: Likewise.
11866 * arch/i386.c: Likewise.
11867
3eac2b65
TT
118682018-02-21 Tom Tromey <tom@tromey.com>
11869
11870 * value.h: (extract_field_op): Update.
11871 * eval.c (extract_field_op): Return a const char *.
11872 * expression.h (parse_expression_for_completion): Update.
11873 * completer.c (complete_expression): Update.
11874 (add_struct_fields): Make fieldname const.
11875 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11876 (mark_completion_tag, parse_exp_in_context_1): Update.
11877 (parse_expression_for_completion): Change "name" to
11878 unique_xmalloc_ptr*.
11879
6ccb583f
TT
118802018-02-21 Tom Tromey <tom@tromey.com>
11881
11882 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11883
c113ed0c
YQ
118842018-02-21 Yao Qi <yao.qi@linaro.org>
11885
11886 * avr-tdep.c (avr_read_pc): Change parameter type to
11887 readable_regcache.
11888 * gdbarch.sh (read_pc): Likewise.
11889 * gdbarch.c: Re-generated.
11890 * gdbarch.h: Re-generated.
11891 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11892 readable_regcache.
11893 * ia64-tdep.c (ia64_read_pc): Likewise.
11894 * mips-tdep.c (mips_read_pc): Likewise.
11895 * spu-tdep.c (spu_read_pc): Likewise.
11896
4c74fe6b
YQ
118972018-02-21 Yao Qi <yao.qi@linaro.org>
11898
11899 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11900 * regcache-dump.c: New file.
11901 * regcache.c: Move register_dump to regcache-dump.c.
11902 (maintenance_print_registers): Likewise.
11903 (maintenance_print_raw_registers): Likewise.
11904 (maintenance_print_cooked_registers): Likewise.
11905 (maintenance_print_register_groups): Likewise.
11906 (maintenance_print_remote_registers): Likewise.
11907 (_initialize_regcache): Likewise.
11908 * regcache.h (register_dump): Moved from regcache.c.
11909
796bb026
YQ
119102018-02-21 Yao Qi <yao.qi@linaro.org>
11911
11912 * regcache.c (regcache::regcache): Update.
11913 (regcache::invalidate): Move it to detached_regcache::invalidate.
11914 (get_thread_arch_aspace_regcache): Update.
11915 (regcache::raw_update): Update.
11916 (regcache::cooked_read): Remove some code.
11917 (regcache::cooked_read_value): Likewise.
11918 (regcache::raw_write): Remove assert on m_readonly_p.
11919 (regcache::raw_supply_integer): Move it to
11920 detached_regcache::raw_supply_integer.
11921 (regcache::raw_supply_zeroed): Likewise.
11922 * regcache.h (detached_regcache) <raw_supply_integer>: New
11923 declaration.
11924 <raw_supply_zeroed, invalidate>: Likewise.
11925 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11926 <invalidate>: Likewise.
11927 <m_readonly_p>: Removed.
11928
215c69dc
YQ
119292018-02-21 Yao Qi <yao.qi@linaro.org>
11930
11931 * infcmd.c (get_return_value): Let stop_regs point to
11932 get_current_regcache.
11933 * regcache.c (regcache::regcache): Remove.
11934 (register_dump_reg_buffer): New class.
11935 (regcache_print): Adjust.
11936 * regcache.h (regcache): Remove constructors.
11937
f3384e66
YQ
119382018-02-21 Yao Qi <yao.qi@linaro.org>
11939
11940 * regcache.c (class register_dump): New class.
11941 (register_dump_regcache, register_dump_none): New class.
11942 (register_dump_remote, register_dump_groups): New class.
11943 (regcache_print): Update.
11944 * regcache.h (regcache_dump_what): Move it to regcache.c.
11945 (regcache) <dump>: Remove.
11946
c8ec2f33
YQ
119472018-02-21 Yao Qi <yao.qi@linaro.org>
11948
11949 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11950 reg_buffer_rw *.
11951 (jit_unwind_reg_set_impl): Call raw_supply.
11952 (jit_frame_sniffer): Use reg_buffer_rw.
11953 * record-full.c (record_full_core_regbuf): Change its type.
11954 (record_full_core_open_1): Use reg_buffer_rw.
11955 (record_full_close): Likewise.
11956 (record_full_core_fetch_registers): Use regcache->raw_supply.
11957 (record_full_core_store_registers): Likewise.
11958 * regcache.c (regcache::get_register_status): Move it to
11959 reg_buffer.
11960 (regcache_raw_set_cached_value): Remove.
11961 (regcache::raw_set_cached_value): Remove.
11962 (regcache::raw_write): Call raw_supply.
11963 (regcache::raw_supply): Move it to reg_buffer_rw.
11964 * regcache.h (regcache_raw_set_cached_value): Remove.
11965 (reg_buffer_rw): New class.
11966
daf6667d
YQ
119672018-02-21 Yao Qi <yao.qi@linaro.org>
11968
11969 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11970 readonly_detached_regcache.
11971 (dummy_frame_prev_register): Use regcache->cooked_read.
11972 * frame.c (frame_save_as_regcache): Change return type.
11973 (frame_pop): Update.
11974 * frame.h (frame_save_as_regcache): Update declaration.
11975 * inferior.h (get_infcall_suspend_state_regcache): Update
11976 declaration.
11977 * infrun.c (infcall_suspend_state) <registers>: use
11978 readonly_detached_regcache.
11979 (save_infcall_suspend_state): Don't use regcache_dup.
11980 (get_infcall_suspend_state_regcache): Change return type.
11981 * linux-fork.c (struct fork_info) <savedregs>: Change to
11982 readonly_detached_regcache.
11983 <pc>: New field.
11984 (fork_save_infrun_state): Don't use regcache_dup.
11985 (info_checkpoints_command): Adjust.
11986 * mi/mi-main.c (register_changed_p): Update declaration.
11987 (mi_cmd_data_list_changed_registers): Use
11988 readonly_detached_regcache.
11989 (register_changed_p): Change parameter type to
11990 readonly_detached_regcache.
11991 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11992 readonly_detached_regcache.
11993 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11994 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11995 New.
11996 (regcache::save): Move it to reg_buffer.
11997 (regcache::restore): Change parameter type.
11998 (regcache_dup): Remove.
11999 * regcache.h (reg_buffer) <save>: New method.
12000 (readonly_detached_regcache): New class.
12001 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12002 readonly_detached_regcache.
12003 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12004
fc5b8736
YQ
120052018-02-21 Yao Qi <yao.qi@linaro.org>
12006
12007 * frame.c (frame_save_as_regcache): Use regcache method save.
12008 (frame_pop): Use regcache method restore.
12009 * infrun.c (restore_infcall_suspend_state): Likewise.
12010 * linux-fork.c (fork_load_infrun_state): Likewise.
12011 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12012 save.
12013 * regcache.c (regcache_save): Remove.
12014 (regcache::restore): More asserts.
12015 (regcache_cpy): Remove.
12016 * regcache.h (regcache_save): Remove the declaration.
12017 (regcache::restore): Move from private to public.
12018 Remove the friend declaration of regcache_cpy.
12019 (regcache_cpy): Remove declaration.
12020
849d0ba8
YQ
120212018-02-21 Yao Qi <yao.qi@linaro.org>
12022
12023 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12024 parameter type to 'readable_regcache *'.
12025 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12026 * arm-tdep.c (arm_neon_quad_read): Likewise.
12027 (arm_pseudo_read): Likewise.
12028 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12029 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12030 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12031 * gdbarch.c: Re-generated.
12032 * gdbarch.h: Re-generated.
12033 * gdbarch.sh (pseudo_register_read): Change parameter type to
12034 'readable_regcache *'.
12035 (pseudo_register_read_value): Likewise.
12036 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12037 (h8300_pseudo_register_read): Likewise.
12038 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12039 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12040 (i386_pseudo_register_read_into_value): Likewise.
12041 (i386_pseudo_register_read_value): Likewise.
12042 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12043 declaration.
12044 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12045 * m32c-tdep.c (m32c_raw_read): Likewise.
12046 (m32c_read_flg): Likewise.
12047 (m32c_banked_register): Likewise.
12048 (m32c_banked_read): Likewise.
12049 (m32c_sb_read): Likewise.
12050 (m32c_part_read): Likewise.
12051 (m32c_cat_read): Likewise.
12052 (m32c_r3r2r1r0_read): Likewise.
12053 (m32c_pseudo_register_read): Likewise.
12054 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12055 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12056 (mep_pseudo_cr64_read): Likewise.
12057 (mep_pseudo_register_read): Likewise.
12058 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12059 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12060 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12061 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12062 (regcache::cooked_read): Likewise.
12063 (regcache::cooked_read_value): Likewise.
12064 (regcache_cooked_read_signed):
12065 (regcache::cooked_read): Likewise.
12066 * regcache.h (readable_regcache): New class.
12067 (regcache): Inherit readable_regcache. Move some methods to
12068 readable_regcache.
12069 * rl78-tdep.c (rl78_pseudo_register_read): Change
12070 parameter type to 'readable_regcache *'.
12071 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12072 (e500_pseudo_register_read): Change parameter type to
12073 'readable_regcache *'.
12074 (dfp_pseudo_register_read): Likewise.
12075 (vsx_pseudo_register_read): Likewise.
12076 (efpr_pseudo_register_read): Likewise.
12077 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12078 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12079 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12080 (sh64_pseudo_register_read): Likewise.
12081 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12082 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12083 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12084 (spu_pseudo_register_read): Likewise.
12085 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12086 (xtensa_pseudo_register_read): Likewise.
12087
31716595
YQ
120882018-02-21 Yao Qi <yao.qi@linaro.org>
12089
12090 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12091 (regcache::arch): Move it to reg_buffer::arch.
12092 (regcache::register_buffer): Likewise.
12093 (regcache::assert_regnum): Likewise.
12094 (regcache::num_raw_registers): Likewise.
12095 * regcache.h (reg_buffer): New class.
12096 (regcache): Inherit reg_buffer.
12097
7104e59b
SM
120982018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12099
12100 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12101 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12102
2d8adcbd
MM
121032018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12104
12105 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12106
b5884fa7
AH
121072018-02-19 Alan Hayward <alan.hayward@arm.com>
12108
12109 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12110 (SFILES): Remove common/*.c files.
12111 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12112 * common/common.host: Add common reference.
12113 * configure.ac: Likewise.
12114 * configure: Regenerate.
12115
fd90ace4
YQ
121162018-02-16 Yao Qi <yao.qi@linaro.org>
12117
12118 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12119 (block_initialize_namespace): Use new.
12120 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12121 (dwarf2_free_objfile): Use delete.
12122 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12123 (copy_type_recursive): Use new.
12124 * gdb_obstack.h (allocate_on_obstack): New.
12125
85046ae2
YQ
121262018-02-15 Yao Qi <yao.qi@linaro.org>
12127
12128 PR gdb/22849
12129 * inferior.c (exit_inferior_1): Reset inf->control.
12130
355c559b
JB
121312018-02-15 Joel Brobecker <brobecker@adacore.com>
12132
12133 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12134 declaration.
12135
980548fd
PA
121362018-02-14 Pedro Alves <palves@redhat.com>
12137
12138 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12139 frame_cleanup_after_sniffer on exception.
12140
692d6f97
TT
121412018-02-14 Tom Tromey <tom@tromey.com>
12142
12143 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12144 const.
12145 (solib_bfd_open): Make pathname const.
12146 * solib.c (solib_bfd_open): Make pathname const.
12147 * solib-spu.c (spu_bfd_fopen): Make name const.
12148 (spu_bfd_open): Make pathname const.
12149 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12150 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12151
e0cc99a6
TT
121522018-02-14 Tom Tromey <tom@tromey.com>
12153
12154 * symfile.c (symfile_bfd_open): Update.
12155 * source.h (openp, source_full_path_of, find_and_open_source):
12156 Change argument type to unique_xmalloc_ptr.
12157 * source.c (openp): Take a unique_xmalloc_ptr.
12158 (source_full_path_of, find_and_open_source): Likewise.
12159 (open_source_file, symtab_to_fullname): Update.
12160 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12161 unique_xmalloc_ptr.
12162 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12163 (exec_file_find): Update.
12164 * psymtab.c (psymtab_to_fullname): Update.
12165 * nto-tdep.h (nto_find_and_open_solib): Update.
12166 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12167 unique_xmalloc_ptr.
12168 * exec.c (exec_file_attach): Update.
12169 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12170 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12171
b46a8d7c
TT
121722018-02-14 Tom Tromey <tom@tromey.com>
12173
12174 * solib.c: Include source.h.
12175 * nto-tdep.c: Include source.h.
12176 * mi/mi-cmd-env.c: Include source.h.
12177 * infcmd.c: Include source.h.
12178 * exec.c: Include source.h.
12179 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12180 (add_path, directory_switch, source_path, init_source_path): Move
12181 declarations...
12182 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12183 (add_path, directory_switch, source_path, init_source_path):
12184 ...here.
12185
797bc1cb
TT
121862018-02-14 Tom Tromey <tom@tromey.com>
12187
12188 * solist.h (exec_file_find, solib_find): Return
12189 unique_xmalloc_ptr.
12190 (solib_bfd_fopen): Take a const char *.
12191 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12192 (exec_file_find, solib_find): Likewise.
12193 (solib_bfd_fopen): Do not take ownership of "pathname".
12194 (solib_bfd_open): Use unique_xmalloc_ptr.
12195 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12196 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12197 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12198 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12199
f98b2e33
JB
122002018-02-14 Joel Brobecker <brobecker@adacore.com>
12201
12202 * ada-lang.c (name_match_type_from_name): Remove reference to
12203 ada_name_for_lookup in function's documentation.
12204 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12205
24b9144d
SM
122062018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12207
12208 * defs.h (enum openp_flags): New enum.
12209 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12210 Move to enum openp_flags.
12211 (openp_flags): New enum flags.
12212 (openp): Change parameter type to openp_flags.
12213 * source.c (openp): Change parameter type to openp_flags.
12214 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12215 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12216
387cd15b
SM
122172018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12218
12219 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12220 per-command.
12221
b303c6f6
AB
122222018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12223
12224 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12225 into...
12226 (class dwarf2_queue_guard): ...the destructor of this new class.
12227 (dw2_do_instantiate_symtab): Create instance of the new class
12228 dwarf2_queue_guard, remove cleanup.
12229
9c3630e9
TT
122302018-02-09 Tom Tromey <tom@tromey.com>
12231
12232 * source.c (find_source_lines): Don't reference past the end of
12233 the vector.
12234
c4e12631
MM
122352018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12236
12237 * remote.c (remote_btrace_maybe_reopen): Change error message.
12238 * btrace.c (btrace_enable): Likewise.
12239 (parse_xml_btrace): Likewise.
12240 (parse_xml_btrace_conf): Likewise.
12241
88711fbf
MM
122422018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12243
12244 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12245 (linux_enable_pt, linux_enable_bts): Call
12246 diagnose_perf_event_open_fail.
12247
17ad2a4f
MM
122482018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12249
12250 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12251 Remove parameter and change return type. Update callers. Move it.
12252 (linux_enable_bts, linux_enable_pt): Improve error message.
12253 (linux_enable_pt): Remove zero buffer size check.
12254 (linux_enable_btrace): Improve error messages. Remove NULL return
12255 check.
12256
de6242d3
MM
122572018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12258
12259 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12260 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12261 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12262 (linux_supports_pt, linux_supports_btrace): Remove.
12263 (linux_enable_bts): Call cpu_supports_bts.
12264 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12265 * remote.c (remote_supports_btrace): Remove.
12266 (init_remote_ops): Remove remote_supports_btrace.
12267 * target-delegates.c: Regenerated.
12268 * target.c (target_supports_btrace): Remove.
12269 * target.h (target_ops) <to_supports_btrace>: Remove
12270 (target_supports_btrace): Remove.
12271 * x86-linux-nat.c (x86_linux_create_target): Remove
12272 linux_supports_btrace.
12273
9ee23a85
MM
122742018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12275
12276 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12277 btrace failed.
12278 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12279 exception and use message in own exception.
12280
5c3284c1
MM
122812018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12282
12283 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12284 (perf_event_pt_event_type): Use gdb_file_up.
12285 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12286 scoped_fd, and scoped_mmap.
12287
84696f37
MM
122882018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12289
12290 * common/scoped_mmap.h: New.
12291 * unittests/scoped_mmap-selftest.c: New.
12292 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12293 unittests/scoped_mmap-selftest.c.
12294
ea4a0888
MM
122952018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12296
12297 * common/scoped_fd.h: New.
12298 * unittests/scoped_fd-selftest.c: New.
12299 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12300 unittests/scoped_fd-selftest.c.
12301
869e8290
TT
123022018-02-09 Tom Tromey <tom@tromey.com>
12303
12304 * auto-load.c (auto_load_section_scripts): Use
12305 gdb::unique_xmalloc_ptr.
12306
a37a2ae7
TT
123072018-02-09 Tom Tromey <tom@tromey.com>
12308
12309 * auto-load.c (execute_script_contents): Use std::string.
12310
4e725347
JB
123112018-02-09 Joel Brobecker <brobecker@adacore.com>
12312
12313 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12314 Python function, rather than a new command.
12315
9a897d43
TT
123162018-02-08 Tom Tromey <tom@tromey.com>
12317
12318 * solib.c (solib_find_1): Use std::string.
12319 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12320
58ef3771
TT
123212018-02-08 Tom Tromey <tom@tromey.com>
12322
12323 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12324
a9abc434
TT
123252018-02-08 Tom Tromey <tom@tromey.com>
12326
12327 * source.c (find_source_lines): Use gdb::def_vector.
12328
84f27c6f
TT
123292018-02-08 Tom Tromey <tom@tromey.com>
12330
12331 * macrocmd.c (struct temporary_macro_definition): New.
12332 (macro_define_command): Use temporary_macro_definition. Remove
12333 cleanups.
12334 (free_macro_definition_ptr): Remove.
12335
0354904b
TT
123362018-02-08 Tom Tromey <tom@tromey.com>
12337
12338 * macroexp.c (maybe_expand): Use std::string.
12339
1739cf24
TT
123402018-02-08 Tom Tromey <tom@tromey.com>
12341
12342 * macroexp.c (struct macro_buffer): Add initializers for some
12343 members.
12344 (init_buffer, init_shared_buffer, free_buffer)
12345 (free_buffer_return_text): Remove.
12346 (macro_buffer): New constructors.
12347 (~macro_buffer): New destructor.
12348 (macro_buffer::set_shared): New method.
12349 (macro_buffer::resize_buffer, macro_buffer::appendc)
12350 (macro_buffer::appendmem): Now methods, not free functions.
12351 (set_token, append_tokens_without_splicing, stringify)
12352 (macro_stringify): Update.
12353 (gather_arguments): Change return type. Remove argc_p argument,
12354 add args_ptr argument. Use std::vector.
12355 (substitute_args): Remove argc argument. Accept std::vector.
12356 (expand): Update. Use std::vector.
12357 (scan, macro_expand, macro_expand_next): Update.
12358
f6c2623e
TT
123592018-02-08 Tom Tromey <tom@tromey.com>
12360
12361 * symtab.c (default_collect_symbol_completion_matches_break_on):
12362 Use unique_xmalloc_ptr.
12363 * macroscope.h: (sal_macro_scope, user_macro_scope)
12364 (default_macro_scope): Return unique_xmalloc_ptr.
12365 * macroscope.c (sal_macro_scope, user_macro_scope)
12366 (default_macro_scope): Return unique_xmalloc_ptr.
12367 * macroexp.h (macro_expand, macro_expand_once): Return
12368 unique_xmalloc_ptr.
12369 * macroexp.c (macro_expand, macro_expand_once): Return
12370 unique_xmalloc_ptr.
12371 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12372 (info_macro_command, info_macros_command): Use
12373 unique_xmalloc_ptr.
12374 * compile/compile-c-support.c (write_macro_definitions): Use
12375 unique_xmalloc_ptr.
12376 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12377
c2e0e465
SM
123782018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12379
12380 * value.c (value_static_field): Assign field type instead of
12381 containing type when returning an optimized out value.
12382
3f8c94b4
YQ
123832018-02-06 Yao Qi <yao.qi@linaro.org>
12384
12385 * ft32-tdep.c (ft32_read_pc): Remove.
12386 (ft32_write_pc): Remove.
12387 (ft32_gdbarch_init): Update.
12388 * m32r-tdep.c (m32r_read_pc): Remove.
12389 (m32r_gdbarch_init): Update.
12390 * mep-tdep.c (mep_read_pc): Remove.
12391 (mep_gdbarch_init): Update.
12392 * microblaze-tdep.c (microblaze_write_pc): Remove.
12393 (microblaze_gdbarch_init): Update.
12394 * mn10300-tdep.c (mn10300_read_pc): Remove.
12395 (mn10300_write_pc): Remove.
12396 (mn10300_gdbarch_init): Update.
12397 * moxie-tdep.c (moxie_read_pc): Remove.
12398 (moxie_write_pc): Remove.
12399 (moxie_gdbarch_init): Update.
12400
bca65a23
YQ
124012018-02-06 Yao Qi <yao.qi@linaro.org>
12402
12403 * expprint.c (print_subexp_standard): Handle
12404 OP_F77_UNDETERMINED_ARGLIST.
12405 (dump_subexp_body_standard): Likewise.
12406
583e3f90 124072018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 12408
583e3f90
YQ
12409 * target-descriptions.c (tdesc_element_visitor) Add empty
12410 implementations.
b8df6ca7
AH
12411 (tdesc_type): Move make_gdb_type from here.
12412 (tdesc_type_builtin): Likewise.
12413 (tdesc_type_vector): Likewise.
12414 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12415 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12416 (make_gdb_type_union): Likewise.
12417 (make_gdb_type_flags): Likewise.
12418 (make_gdb_type_enum): Likewise.
12419 (make_gdb_type): New function.
12420 (tdesc_register_type): Use static make_gdb_type.
12421
e813d34a
RK
124222018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12423
12424 * infcmd.c (default_print_one_register_info): Align natural-format
12425 column values consistently one under another.
12426 (pad_to_column): New function.
12427
0eb876f5
JB
124282018-02-05 Joel Brobecker <brobecker@adacore.com>
12429
12430 * dwarf2read.c (dwarf2_physname): Move commment.
12431
0625771b
LS
124322018-02-01 Leszek Swirski <leszeks@google.com>
12433
12434 * varobj.c (varobj_formatted_print_options): Allow recursive
12435 pretty printing if pretty printing is enabled.
12436
59498c30
LS
124372018-02-01 Leszek Swirski <leszeks@google.com>
12438
12439 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12440 names after a structop as a filename.
12441
2d9e6acb
YQ
124422018-02-01 Yao Qi <yao.qi@linaro.org>
12443
12444 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12445 (arm_record_coproc_data_proc): Likewise.
12446
df95a9cf
YQ
124472018-02-01 Yao Qi <yao.qi@linaro.org>
12448
12449 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12450
07e5f5cf
NP
124512018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12452
12453 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12454 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12455
3045b475
PA
124562018-01-31 Pedro Alves <palves@redhat.com>
12457
12458 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12459 * inflow.c (child_terminal_save_inferior): Wrap reference to
12460 tcgetpgrp in HAVE_TERMIOS_H.
12461 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12462 _WIN32.
12463 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12464 always iterate over all inferiors.
12465 (gdbsim_cntrl_c): Adjust.
12466 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12467
929b5ad4
JB
124682018-01-31 Joel Brobecker <brobecker@adacore.com>
12469
12470 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12471 index type is objfile-owned if the element type is as well.
12472
29236ca2
JB
124732018-01-31 Joel Brobecker <brobecker@adacore.com>
12474
12475 GDB 8.1 released.
12476
c81e8879
PR
124772018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12478
12479 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12480 "features/s390x-linux64.c".
12481 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12482 s390_linux32 and s390x_linux64.
12483 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12484 default tdesc.
12485 * s390-tdep.c: Include "features/s390-linux32.c" and
12486 "features/s390x-linux64.c".
12487 (s390_tdesc_valid): Add check for tdesc_has_registers.
12488 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12489 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12490 tdesc_s390x_linux64.
12491 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12492 tdesc_s390x_linux64 to...
12493 * s390-tdep.h: ...here.
12494
e671cd59
PA
124952018-01-30 Pedro Alves <palves@redhat.com>
12496
12497 PR gdb/13211
12498 * config.in, configure: Regenerate.
12499 * configure.ac: Check for getpgid.
12500 * go32-nat.c (go32_pass_ctrlc): New.
12501 (go32_target): Install it.
12502 * inf-child.c (inf_child_target): Install
12503 child_terminal_save_inferior, child_pass_ctrlc and
12504 child_interrupt.
12505 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12506 (inf_ptrace_target): No longer install it.
12507 * infcmd.c (interrupt_target_1): Adjust.
12508 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12509 (child_interrupt): Declare.
12510 (inferior::terminal_state): New.
12511 * inflow.c (struct terminal_info): Update comments.
12512 (inferior_process_group): Delete.
12513 (terminal_is_ours): Delete.
12514 (gdb_tty_state): New.
12515 (child_terminal_init): Adjust.
12516 (is_gdb_terminal, sharing_input_terminal_1)
12517 (sharing_input_terminal): New functions.
12518 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12519 Set the process's actual process group in the foreground if
12520 possible. Handle is_ours_for_output/is_ours distinction. Don't
12521 mark terminal as the inferior's if not sharing GDB's terminal.
12522 Don't check attach_flag.
12523 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12524 pass down a target_terminal_state.
12525 (child_terminal_save_inferior): New, factored out from ...
12526 (child_terminal_ours_1): ... this. Handle
12527 target_terminal_state::is_ours_for_output.
12528 (child_interrupt, child_pass_ctrlc): New.
12529 (inflow_inferior_exit): Clear the inferior's terminal_state.
12530 (copy_terminal_info): Copy the inferior's terminal state.
12531 (_initialize_inflow): Remove reference to terminal_is_ours.
12532 * inflow.h (inferior_process_group): Delete.
12533 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12534 * procfs.c (procfs_target): Don't install procfs_interrupt.
12535 (procfs_interrupt): Delete.
12536 * remote.c (remote_serial_quit_handler): Adjust.
12537 (remote_interrupt): Remove ptid parameter. Adjust.
12538 * target-delegates.c: Regenerate.
12539 * target.c: Include "terminal.h".
12540 (target_terminal::terminal_state): Rename to ...
12541 (target_terminal::m_terminal_state): ... this.
12542 (target_terminal::init): Adjust.
12543 (target_terminal::inferior): Adjust to per-inferior
12544 terminal_state.
12545 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12546 (target_terminal::ours, target_terminal::ours_for_output): Use
12547 target_terminal_is_ours_kind.
12548 (target_interrupt): Remove ptid parameter. Adjust.
12549 (default_target_pass_ctrlc): Adjust.
12550 * target.h (target_ops::to_terminal_save_inferior): New field.
12551 (target_ops::to_interrupt): Remove ptid_t parameter.
12552 (target_interrupt): Remove ptid_t parameter. Update comment.
12553 (target_pass_ctrlc): Update comment.
12554 * target/target.h (target_terminal_state): New scoped enum,
12555 factored out of ...
12556 (target_terminal::terminal_state): ... here.
12557 (target_terminal::inferior): Update comments.
12558 (target_terminal::restore_inferior): New.
12559 (target_terminal::is_inferior, target_terminal::is_ours)
12560 (target_terminal::is_ours_for_output): Adjust.
12561 (target_terminal::scoped_restore_terminal_state): Adjust to
12562 rename, and call restore_inferior() instead of inferior().
12563 (target_terminal::scoped_restore_terminal_state::m_state): Change
12564 type.
12565 (target_terminal::terminal_state): Rename to ...
12566 (target_terminal::m_terminal_state): ... this and change type.
12567
9c3a5d93
PA
125682018-01-30 Pedro Alves <palves@redhat.com>
12569
12570 * linux-nat.c (wait_for_signal): New function.
12571 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12572 directly.
12573 (async_terminal_is_ours)
12574 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12575 (linux_nat_add_target): Don't override
12576 to_terminal_inferior/to_terminal_ours.
12577
69ab5edb
SDJ
125782018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12579
12580 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12581
fc8e7e75
SM
125822018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12583
12584 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12585 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12586 dwarf2_per_objfile_free here.
12587 (dwarf2_per_objfile_free): Remove.
12588 (_initialize_dwarf2_read): Don't register
12589 dwarf2_per_objfile_free as a registry cleanup.
12590
b2a426e2
EZ
125912018-01-27 Eli Zaretskii <eliz@gnu.org>
12592
12593 Avoid compilation errors in MinGW native builds
12594
12595 The error is triggered by including python-internal.h, and the
12596 error message is:
12597
12598 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12599 from build-gnulib/import/math.h:27,
12600 from d:/usr/Python26/include/pyport.h:235,
12601 from d:/usr/Python26/include/Python.h:58,
12602 from python/python-internal.h:94,
12603 from python/py-arch.c:24:
12604 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12605 using ::hypot;
12606 ^~~~~
12607
12608 This happens because Python headers define 'hypot' to expand t
12609 '_hypot' in the Windows builds.
12610 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12611 'hypoth'. This avoids a compilation error.
12612
0bdd8eac
AH
126132018-01-26 Alan Hayward <alan.hayward@arm.com>
12614
12615 * MAINTAINERS (Write After Approval): Fix ordering.
12616
56ae9dc3
AH
126172018-01-26 Alan Hayward <alan.hayward@arm.com>
12618
12619 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12620
7433498b
AM
126212018-01-26 Alan Modra <amodra@gmail.com>
12622
12623 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12624 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12625 Remove nop. Make const. Comment.
12626 (powerpc32_plt_stub_so_2): New.
12627 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12628 Correct count. Update uses.
12629 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12630 Move common code reading PLT entry word. Correct
12631 powerpc32_plt_stub PLT address calculation.
12632 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12633 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12634 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12635 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12636 (ppc64_standard_linkage8): Likewise.
12637 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12638 Correct insns description.
12639 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12640
0f59d5fc
PA
126412018-01-24 Pedro Alves <palves@redhat.com>
12642
12643 GCC PR libstdc++/83906
12644 * gdbtypes.c (operator==(const dynamic_prop &,
12645 const dynamic_prop &)): New.
12646 (operator==(const range_bounds &, const range_bounds &)): New.
12647 (check_types_equal): Use them instead of memcmp.
12648 * gdbtypes.h (operator==(const dynamic_prop &,
12649 const dynamic_prop &)): Declare.
12650 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12651 (operator==(const range_bounds &, const range_bounds &)): Declare.
12652 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12653
ef8914a4
PR
126542018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12655
12656 * s390-linux-tdep.c (s390_record_address_mask)
12657 (s390_record_calc_disp_common, s390_record_calc_disp)
12658 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12659 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12660 (s390_process_record): Move to s390-tdep.c.
12661 (s390_linux_init_abi_any): Adjust.
12662 * s390-tdep.c (s390_record_address_mask)
12663 (s390_record_calc_disp_common, s390_record_calc_disp)
12664 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12665 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12666 (s390_process_record): Moved from s390-linux-tdep.c
12667 (s390_gdbarch_init): Adjust.
12668
d6e58945
PR
126692018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12670
12671 * s390-linux-nat.c (s390-tdep.h): New include.
12672 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12673 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12674 (ALLDEPFILES): Add s390-tdep.c.
12675 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12676 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12677 * s390-tdep.h: ...this. New file.
12678 * s390-linux-tdep.c (s390-tdep.h): New include.
12679 (_initialize_s390_tdep): Rename to...
12680 (_initialize_s390_linux_tdep): ...this and adjust.
12681 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12682 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12683 s390-tdep.h.
12684 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12685 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12686 (s390_is_partial_instruction, s390_software_single_step)
12687 (is_non_branch_ril, s390_displaced_step_copy_insn)
12688 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12689 (s390_prologue_data, s390_addr, s390_store, s390_load)
12690 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12691 (s390_register_call_saved, s390_guess_tracepoint_registers)
12692 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12693 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12694 (s390_pseudo_register_name, s390_pseudo_register_type)
12695 (s390_pseudo_register_read, s390_pseudo_register_write)
12696 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12697 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12698 (s390_addr_bits_remove, s390_address_class_type_flags)
12699 (s390_address_class_type_flags_to_name)
12700 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12701 (s390_function_arg_float, s390_function_arg_vector)
12702 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12703 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12704 (s390_frame_align, s390_register_return_value, s390_return_value)
12705 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12706 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12707 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12708 (s390_trad_frame_prev_register, s390_unwind_cache)
12709 (s390_prologue_frame_unwind_cache)
12710 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12711 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12712 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12713 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12714 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12715 (s390_frame_base_address, s390_local_base_address)
12716 (s390_frame_base, s390_gcc_target_options)
12717 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12718 (s390_validate_reg_range, s390_tdesc_valid)
12719 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12720 * s390-tdep.c: ...this. New file.
12721
9c0b896e
PR
127222018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12723
12724 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12725 (s390_process_record, s390_gdbarch_tdep_alloc)
12726 (s390_linux_init_abi_any): Use/set new hook.
12727
7042632b
PR
127282018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12729
12730 * s390-linux-tdep.c (osabi.h): New include.
12731 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12732 (s390_linux_init_abi_any): New functions.
12733 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12734
650f5e13
PR
127352018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12736
12737 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12738 tdesc_has_registers check
12739
47c9317e
PR
127402018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12741
12742 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12743 (s390_validate_reg_range): New macro.
12744 (s390_gdbarch_init): Adjust.
12745
095085d8
PR
127462018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12747
12748 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12749 (s390_gdbarch_tdep_alloc): Adjust.
12750 (s390_gdbarch_init): Adjust.
12751
ab9bcc67
PR
127522018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12753
12754 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12755 <have_tdb>: Change type to bool.
12756 (s390_gdbarch_tdep_alloc): Adjust.
12757 (s390_gdbarch_init): Adjust.
12758
21f6f5ff
PR
127592018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12760
12761 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12762 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12763 (s390_gdbarch_tdep_alloc): New function.
12764 (s390_gdbarch_init): Allocate tdep at start and use its fields
12765 instead of separate variables.
12766
0eb97953
PR
127672018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12768
12769 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12770 when looking for cached gdbarch and add comment for remaining.
12771
5c319bb2
PA
127722018-01-22 Pedro Alves <palves@redhat.com>
12773 Sergio Durigan Junior <sergiodj@redhat.com>
12774
12775 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12776 case.
12777
d65ce302
MR
127782018-01-22 Maciej W. Rozycki <macro@mips.com>
12779
12780 * MAINTAINERS: Update my company e-mail address.
12781
ec7a5fcb
YQ
127822018-01-22 Yao Qi <yao.qi@linaro.org>
12783
12784 * regcache.c (cooked_write_test): New function.
12785 (_initialize_regcache): Register the test.
12786
11f57cb6
YQ
127872018-01-22 Yao Qi <yao.qi@linaro.org>
12788
12789 * ia64-tdep.c (ia64_pseudo_register_read): Call
12790 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12791 * m32c-tdep.c (m32c_cat_read): Likewise.
12792 (m32c_r3r2r1r0_read): Likewise.
12793 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12794 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12795
03f50fc8
YQ
127962018-01-22 Yao Qi <yao.qi@linaro.org>
12797
12798 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12799 method raw_read instead of regcache_raw_read.
12800 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12801 * arm-tdep.c (arm_neon_quad_read): Likewise.
12802 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12803 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12804 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12805 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12806 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12807 (i386_pseudo_register_read_into_value): Likewise.
12808 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12809 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12810 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12811 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12812 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12813 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12814 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12815 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12816 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12817
dc711524
YQ
128182018-01-22 Yao Qi <yao.qi@linaro.org>
12819
12820 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12821 * configure.tgt: Remove target mt.
12822 * mt-tdep.c: Remove.
12823 * regcache.c (cooked_read_test): Remove the check for mt.
12824
3f5a868b
YQ
128252018-01-22 Yao Qi <yao.qi@linaro.org>
12826
12827 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12828 instead of gdbarch_pseudo_register_read_value.
12829
de4cb04a
JB
128302018-01-22 Joel Brobecker <brobecker@adacore.com>
12831
12832 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12833 language is Ada.
12834
a9e40818
JB
128352018-01-22 Joel Brobecker <brobecker@adacore.com>
12836
12837 * linespec.c (create_sals_line_offset): Remove code that preserved
12838 the symtab_and_line's line number.
12839
e707fc44
AB
128402018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12841
12842 * varobj.c (varobj_create): Don't set valid_block when creating a
12843 floating varobj.
12844
03d0bf7b
AB
128452018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12846
12847 * varobj.c (varobj_create): Remove out of date comment.
12848
ae451627
AB
128492018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12850
12851 PR mi/20395
12852 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12853 updating innermost block.
12854 * parse.c (innermost_block_tracker::update): Take extra type
12855 parameter, and check types match before updating innermost block.
12856 (write_dollar_variable): Update innermost block for registers.
12857 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12858 (innermost_block_tracker::innermost_block_tracker): Initialise
12859 m_types member.
12860 (innermost_block_tracker::reset): Take type parameter.
12861 (innermost_block_tracker::update): Take type parameter, and pass
12862 type through as needed.
12863 (innermost_block_tracker::m_types): New member.
12864 * varobj.c (varobj_create): Pass type when reseting innermost
12865 block.
12866
aee1fcdf
AB
128672018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12868
12869 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12870 * ada-lang.c (resolve_subexp): Likewise.
12871 * breakpoint.c (set_breakpoint_condition) Likewise.
12872 (watch_command_1) Likewise.
12873 * c-exp.y (variable): Likewise.
12874 * d-exp.y (PrimaryExpression): Likewise.
12875 * f-exp.y (variable): Likewise.
12876 * go-exp.y (variable): Likewise.
12877 * m2-exp.y (variable): Likewise.
12878 * objfiles.c (objfile::~objfile): Likewise.
12879 * p-exp.y (variable): Likewise.
12880 * parse.c (innermost_block): Change type.
12881 * parser-defs.h (class innermost_block_tracker): New.
12882 (innermost_block): Change to innermost_block_tracker.
12883 * printcmd.c (display_command): Switch to innermost_block API.
12884 (do_one_display): Likewise.
12885 * rust-exp.y (do_one_display): Likewise.
12886 * symfile.c (clear_symtab_users): Likewise.
12887 * varobj.c (varobj_create): Switch to innermost_block API, replace
12888 use of innermost_block with block stored on varobj object.
12889
396af9a1
AB
128902018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12891
12892 * expression.h (innermost_block): Remove declaration.
12893 * varobj.c: Add 'parser-defs.h' include.
12894
fcfcc376
TT
128952018-01-19 Tom Tromey <tom@tromey.com>
12896
12897 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12898 symbols in the static and global blocks.
12899
5a6c3296
JC
129002018-01-19 James Clarke <jrtc27@jrtc27.com>
12901
12902 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12903 gdb_ptrace.h, and move including gdb_wait.h ...
12904 * nat/linux-ptrace.h: ... to here.
12905
bc09b0c1
SM
129062018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12907
12908 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12909 inf_ptrace_detach_success.
12910 (inf_ptrace_detach_success): Add inferior parameter, use it
12911 instead of inferior_ptid, pass it to detach_inferior.
12912 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12913 parameter.
12914 * inferior.c (detach_inferior): Add overload that takes an
12915 inferior object.
12916 * inferior.h (detach_inferior): Likewise.
12917 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12918 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12919 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12920
6e1e1966
SM
129212018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12922
12923 * target.h (struct target_ops) <to_detach>: Add inferior
12924 parameter.
12925 (target_detach): Likewise.
12926 * target.c (dispose_inferior): Pass inferior down.
12927 (target_detach): Pass inferior down. Assert that it is equal to
12928 the current inferior.
12929 * aix-thread.c (aix_thread_detach): Pass inferior down.
12930 * corefile.c (core_file_command): Pass current_inferior() down.
12931 * corelow.c (core_detach): Add inferior parameter.
12932 * darwin-nat.c (darwin_detach): Likewise.
12933 * gnu-nat.c (gnu_detach): Likewise.
12934 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12935 * infcmd.c (detach_command): Pass current_inferior() down to
12936 target_detach.
12937 * infrun.c (follow_fork_inferior): Pass parent_inf to
12938 target_detach.
12939 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12940 target_detach.
12941 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12942 * linux-thread-db.c (thread_db_detach): Likewise.
12943 * nto-procfs.c (procfs_detach): Likewise.
12944 * procfs.c (procfs_detach): Likewise.
12945 * record.c (record_detach): Likewise.
12946 * record.h (struct inferior): Forward-declare.
12947 (record_detach): Add inferior parameter.
12948 * remote-sim.c (gdbsim_detach): Likewise.
12949 * remote.c (remote_detach_1): Likewise.
12950 (remote_detach): Likewise.
12951 (extended_remote_detach): Likewise.
12952 * sol-thread.c (sol_thread_detach): Likewise.
12953 * target-debug.h (target_debug_print_inferior_p): New macro.
12954 * target-delegates.c: Re-generate.
12955 * top.c (kill_or_detach): Pass inferior down to target_detach.
12956 * windows-nat.c (windows_detach): Add inferior parameter.
12957
6bd6f3b6
SM
129582018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12959
12960 * target.h (struct target_ops) <to_detach>: Remove args
12961 parameter.
12962 (target_detach): Likewise.
12963 * target.c (dispose_inferior): Adjust.
12964 (target_detach): Remove args parameter, adjust.
12965 * aix-thread.c (aix_thread_detach): Adjust.
12966 * corefile.c (core_file_command): Adjust.
12967 * corelow.c (core_detach): Adjust.
12968 * darwin-nat.c (darwin_detach): Adjust.
12969 * gnu-nat.c (gnu_detach): Adjust.
12970 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12971 * infcmd.c (detach_command): Adjust
12972 * infrun.c (follow_fork_inferior): Adjust.
12973 (handle_vfork_child_exec_or_exit): Adjust.
12974 * linux-fork.c (linux_fork_detach): Remove args parameter.
12975 * linux-fork.h (linux_fork_detach): Likewise.
12976 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12977 * linux-thread-db.c (thread_db_detach): Likewise.
12978 * nto-procfs.c (procfs_detach): Likewise.
12979 * procfs.c (procfs_detach): Likewise.
12980 (do_detach): Remove signo parameter.
12981 * record.c (record_detach): Remove args parameter.
12982 * record.h (record_detach): Likewise.
12983 * remote-sim.c (gdbsim_detach): Likewise.
12984 * remote.c (remote_detach_1): Likewise.
12985 (remote_detach): Likewise.
12986 (extended_remote_detach): Likewise.
12987 * sol-thread.c (sol_thread_detach): Likewise.
12988 * target-delegates.c: Re-generate.
12989 * top.c (struct qt_args) <args>: Remove field.
12990 (kill_or_detach): Don't pass args.
12991 (quit_force): Don't set args.
12992 * windows-nat.c (windows_detach): Remove args parameter.
12993
88af8ea8
YQ
129942018-01-19 Yao Qi <yao.qi@linaro.org>
12995
12996 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12997 (arm_linux_init_abi): Install it.
12998
dea445b9
YQ
129992018-01-19 Yao Qi <yao.qi@linaro.org>
13000
13001 * osabi.c (gdb_osabi_names): Extend the regexp for
13002 arm-linux-gnueabihf.
13003
4a17f768
YQ
130042018-01-18 Yao Qi <yao.qi@linaro.org>
13005
13006 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13007 m_abbrevs.
13008 (abbrev_table::add_abbrev): Update.
13009 (abbrev_table::lookup_abbrev): Update.
13010
d679c21a
YQ
130112018-01-18 Yao Qi <yao.qi@linaro.org>
13012
13013 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13014
7d937cad
SDJ
130152018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13016
13017 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13018 to "std::string".
13019
9e14690d
TT
130202018-01-17 Tom Tromey <tom@tromey.com>
13021
13022 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13023
50a82047
TT
130242018-01-17 Tom Tromey <tom@tromey.com>
13025
13026 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13027 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13028 (create_array_type_with_stride): Update.
13029 * dwarf2read.c (set_die_type): Update.
13030
c89b44cd
TT
130312018-01-17 Tom Tromey <tom@tromey.com>
13032
13033 * dwarf2read.c (delayed_method_info): Remove typedef.
13034 (dwarf2_cu::method_info): Now a std::vector.
13035 (add_to_method_list): Update.
13036 (free_delayed_list): Remove.
13037 (compute_delayed_physnames): Update.
13038 (process_full_comp_unit, process_full_type_unit): Clear the method
13039 list. Remove cleanups.
13040 (psymtab_include_file_name): Add name_holder parameter. Use
13041 unique_xmalloc_ptr.
13042 (dwarf_decode_lines): Update.
13043
fcd3b13d
SM
130442018-01-17 Tom Tromey <tom@tromey.com>
13045 Simon Marchi <simon.marchi@ericsson.com>
13046
13047 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13048 (dwarf2_per_objfile::free_cached_comp_units)
13049 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13050 (init_cutu_and_read_dies_no_follow): Update.
13051 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13052 (dwarf2_cu::~dwarf2_cu): New.
13053 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13054 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13055
685af9cd
TT
130562018-01-17 Tom Tromey <tom@tromey.com>
13057 Simon Marchi <simon.marchi@ericsson.com>
13058
13059 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13060 (struct die_reader_specs) <abbrev_table>: New member.
13061 (struct abbrev_table): Add constructor.
13062 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13063 <abbrev_obstack>: Now an auto_obstack.
13064 (abbrev_table_up): New typedef.
13065 (init_cu_die_reader): Add abbrev_table parameter.
13066 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13067 Add result_dwo_abbrev_table.
13068 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13069 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13070 Update.
13071 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13072 parameter.
13073 (skip_children): Update.
13074 (abbrev_table::alloc_abbrev): Rename from
13075 abbrev_table_alloc_abbrev.
13076 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13077 (abbrev_table::lookup_abbrev): Rename from
13078 abbrev_table_lookup_abbrev.
13079 (abbrev_table_read_table): Return abbrev_table_up.
13080 (abbrev_table_free, abbrev_table_free_cleanup)
13081 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13082 (load_partial_dies): Update.
13083
5e2db402
TT
130842018-01-17 Tom Tromey <tom@tromey.com>
13085
13086 * dwarf2read.c (dwarf2_compute_name): Update comment.
13087 (read_func_scope, read_variable): Update.
13088 (new_symbol): Remove.
13089 (new_symbol_full): Rename to new_symbol.
13090
ee7f689e 130912018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
13092
13093 PR gdb/16577
13094 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13095 a warning instead of throwing an error, set section size to 0 and return
13096 NULL.
13097 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13098
4d9b86e1
SM
130992018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13100
13101 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13102 std::string.
13103 (linux_ptrace_attach_fail_reason_string): Likewise.
13104 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13105 Likewise.
13106 (linux_ptrace_attach_fail_reason_string): Likewise.
13107 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13108
a7b2d0fb
SM
131092018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13110
13111 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13112
f517c180
EA
131132018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13114
13115 PR gdb/21559
13116 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13117 checking for fs_base/gs_base fields in struct user_regs_struct.
13118 * configure: Regenerate.
13119
7045b1ca
YQ
131202018-01-17 Yao Qi <yao.qi@linaro.org>
13121
13122 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13123 function.
13124 (aarch64_linux_init_abi): Install it to gdbarch hook
13125 gcc_target_options.
13126
db422fb2
PA
131272018-01-15 Pedro Alves <palves@redhat.com>
13128
13129 * common/signals-state-save-restore.c
13130 (save_original_signals_state): Fix typos.
13131
ba643918
SDJ
131322017-01-12 Tom Tromey <tom@tromey.com>
13133 Sergio Durigan Junior <sergiodj@redhat.com>
13134
13135 * Makefile.in (install-only): Install gdb-add-index.
13136
906b4aac
JB
131372018-01-12 John Baldwin <jhb@FreeBSD.org>
13138
13139 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13140
bdf2a94a
AA
131412018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13142
13143 * infrun.c (keep_going_pass_signal): Clear step-over info when
13144 insert_breakpoints fails.
13145
71d378ae
PA
131462018-01-11 Pedro Alves <palves@redhat.com>
13147
13148 PR gdb/22583
13149 * infrun.c (resume): Rename to ...
13150 (resume_1): ... this.
13151 (resume): Reimplement as wrapper around resume_1.
13152
3cada740
PA
131532018-01-11 Pedro Alves <palves@redhat.com>
13154
13155 PR remote/22597
13156 * remote.c (remote_parse_stop_reply): Default to the last-set
13157 general thread instead of to 'magic_null_ptid'.
13158
618daa93
PA
131592018-01-10 Pedro Alves <palves@redhat.com>
13160
13161 * language.h (language_get_symbol_name_matcher): Rename ...
13162 (get_symbol_name_matcher): ... this.
13163 * language.c (language_get_symbol_name_matcher): Ditto.
13164 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13165 callers adjusted.
13166
c63d3e8d
PA
131672018-01-10 Pedro Alves <palves@redhat.com>
13168
13169 PR gdb/22670
13170 * dwarf2read.c
13171 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13172 Adjust to use language_get_symbol_name_matcher instead of
13173 language_defn::la_get_symbol_name_matcher.
13174 * language.c (language_get_symbol_name_matcher): If in Ada mode
13175 and the lookup name is a verbatim match, return Ada's matcher.
13176 * language.h (language_get_symbol_name_matcher): Adjust comment.
13177 (ada_lookup_name_info::verbatim_p):: New method.
13178
d4c2a405
PA
131792018-01-10 Pedro Alves <palves@redhat.com>
13180
13181 PR gdb/22670
13182 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13183 minsym's language is language_auto or language_cplus, pass down
13184 language_ada instead.
13185 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13186
8825213e
PA
131872018-01-10 Pedro Alves <palves@redhat.com>
13188
13189 PR gdb/22670
13190 * minsyms.c (linkage_name_str): New function.
13191 (iterate_over_minimal_symbols): Use it.
13192
2d97a5d9
JB
131932018-01-09 John Baldwin <jhb@FreeBSD.org>
13194
13195 * NEWS: Document that 'info proc' now works on FreeBSD.
13196
92fce24d
JB
131972018-01-09 John Baldwin <jhb@FreeBSD.org>
13198
13199 * configure.ac: Check for kinfo_getfile in libutil.
13200 * configure: Regenerate.
13201 * config.in: Regenerate.
13202 * fbsd-nat.c: Include "fbsd-tdep.h".
13203 (fbsd_fetch_cmdline): New.
13204 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13205 rather than calling error.
13206 (fbsd_info_proc): New.
13207 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13208 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13209 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13210
262f62f5
JB
132112018-01-09 John Baldwin <jhb@FreeBSD.org>
13212
13213 * fbsd-nat.c (struct free_deleter): Remove.
13214 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13215
b999e203
JB
132162018-01-09 John Baldwin <jhb@FreeBSD.org>
13217
13218 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13219 NULL for an empty pathname.
13220
d2176225
JB
132212018-01-09 John Baldwin <jhb@FreeBSD.org>
13222
13223 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13224 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13225 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13226 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13227 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13228 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13229 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13230 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13231 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13232 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13233 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13234 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13235 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13236 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13237 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13238
9c4ac400
ST
132392018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13240
13241 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13242 (gnu_xfer_auxv): New function.
13243 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13244 TARGET_OBJECT_AUXV.
13245
1e5ded6c
YQ
132462018-01-08 Yao Qi <yao.qi@linaro.org>
13247 Simon Marchi <simon.marchi@ericsson.com>
13248
13249 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13250 common/selftest.c.
13251 (COMMON_OBS): Remove selftest.o.
13252 * configure.ac: Append selftest-arch.c and common/selftest.c to
13253 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13254 * configure: Re-generated.
13255 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13256 GDB_SELF_TEST.
13257 (maintenance_info_selftests): Likewise.
13258
04bafb1e
XR
132592018-01-08 Xavier Roirand <roirand@adacore.com>
13260
13261 * ada-valprint.c (val_print_packed_array_elements): Use
13262 proper number of elements when printing an array indexed
13263 by an enumeration type.
13264
518817b3
SM
132652018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13266
13267 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13268 (dw2_get_file_names_reader): Adjust.
13269 (lookup_dwo_signatured_type): Adjust.
13270 (lookup_dwp_signatured_type): Adjust.
13271 (lookup_signatured_type): Adjust.
13272 (create_type_unit_group): Adjust.
13273 (get_type_unit_group): Adjust.
13274 (process_psymtab_comp_unit_reader): Adjust.
13275 (build_type_psymtabs_reader): Adjust.
13276 (scan_partial_symbols): Adjust.
13277 (add_partial_symbol): Adjust.
13278 (add_partial_subprogram): Adjust.
13279 (peek_die_abbrev): Adjust.
13280 (fixup_go_packaging): Adjust.
13281 (process_imported_unit_die): Adjust.
13282 (dwarf2_compute_name): Adjust.
13283 (dwarf2_physname): Adjust.
13284 (read_import_statement): Adjust.
13285 (handle_DW_AT_stmt_list): Adjust.
13286 (read_file_scope): Adjust.
13287 (read_func_scope): Adjust.
13288 (read_lexical_block_scope): Adjust.
13289 (read_call_site_scope): Adjust.
13290 (read_variable): Adjust.
13291 (dwarf2_rnglists_process): Adjust.
13292 (dwarf2_ranges_process): Adjust.
13293 (dwarf2_ranges_read): Adjust.
13294 (dwarf2_get_pc_bounds): Adjust.
13295 (dwarf2_record_block_ranges): Adjust.
13296 (dwarf2_add_field): Adjust.
13297 (dwarf2_add_member_fn): Adjust.
13298 (read_structure_type): Adjust.
13299 (process_structure_scope): Adjust.
13300 (read_enumeration_type): Adjust.
13301 (read_array_type): Adjust.
13302 (mark_common_block_symbol_computed): Adjust.
13303 (read_common_block): Adjust.
13304 (read_namespace_type): Adjust.
13305 (read_namespace): Adjust.
13306 (read_module_type): Adjust.
13307 (read_tag_pointer_type): Adjust.
13308 (read_tag_ptr_to_member_type): Adjust.
13309 (read_tag_string_type): Adjust.
13310 (read_subroutine_type): Adjust.
13311 (read_typedef): Adjust.
13312 (read_base_type): Adjust.
13313 (attr_to_dynamic_prop): Adjust.
13314 (read_subrange_type): Adjust.
13315 (read_unspecified_type): Adjust.
13316 (dwarf2_read_abbrevs): Adjust.
13317 (load_partial_dies): Adjust.
13318 (read_partial_die): Adjust.
13319 (find_partial_die): Adjust.
13320 (guess_partial_die_structure_name): Adjust.
13321 (fixup_partial_die): Adjust.
13322 (read_attribute_value): Adjust.
13323 (read_addr_index): Adjust.
13324 (read_addr_index_from_leb128): Adjust.
13325 (read_str_index): Adjust.
13326 (dwarf2_string_attr): Adjust.
13327 (get_debug_line_section): Adjust.
13328 (dwarf_decode_line_header): Adjust.
13329 (lnp_state_machine::check_line_address): Adjust.
13330 (dwarf_decode_lines_1): Adjust.
13331 (dwarf_decode_lines): Adjust.
13332 (dwarf2_start_symtab): Adjust.
13333 (var_decode_location): Adjust.
13334 (new_symbol_full): Adjust.
13335 (dwarf2_const_value_data): Adjust.
13336 (dwarf2_const_value_attr): Adjust.
13337 (dwarf2_const_value): Adjust.
13338 (die_type): Adjust.
13339 (die_containing_type): Adjust.
13340 (build_error_marker_type): Adjust.
13341 (lookup_die_type): Adjust.
13342 (guess_full_die_structure_name): Adjust.
13343 (anonymous_struct_prefix): Adjust.
13344 (determine_prefix): Adjust.
13345 (dwarf2_name): Adjust.
13346 (follow_die_ref_or_sig): Adjust.
13347 (follow_die_offset): Adjust.
13348 (follow_die_ref): Adjust.
13349 (follow_die_sig_1): Adjust.
13350 (follow_die_sig): Adjust.
13351 (get_signatured_type): Adjust.
13352 (get_DW_AT_signature_type): Adjust.
13353 (decode_locdesc): Adjust.
13354 (dwarf_decode_macros): Adjust.
13355 (cu_debug_loc_section): Adjust.
13356 (fill_in_loclist_baton): Adjust.
13357 (dwarf2_symbol_mark_computed): Adjust.
13358 (init_one_comp_unit): Don't assign
13359 dwarf2_cu::dwarf2_per_objfile.
13360 (set_die_type): Adjust.
13361
ed2dc618
SM
133622018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13363
13364 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13365 <dwarf2_per_objfile>: New field.
13366 (dwarf2_per_objfile): Remove global.
13367 (get_dwarf2_per_objfile): New function.
13368 (set_dwarf2_per_objfile): New function.
13369 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13370 dwarf2_per_objfile.
13371 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13372 (read_abbrev_offset): Likewise.
13373 (read_indirect_string): Likewise.
13374 (read_indirect_line_string): Likewise.
13375 (read_indirect_string_at_offset): Likewise.
13376 (read_indirect_string_from_dwz): Likewise.
13377 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13378 dwarf2_per_objfile.
13379 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13380 (create_all_comp_units): Change objfile parameter to
13381 dwarf2_per_objfile.
13382 (create_all_type_units): Likewise.
13383 (process_queue): Add dwarf2_per_objfile parameter.
13384 (read_and_check_comp_unit_head): Likewise.
13385 (lookup_dwo_unit_in_dwp): Likewise.
13386 (get_dwp_file): Likewise.
13387 (process_cu_includes): Likewise.
13388 (struct free_dwo_file_cleanup_data): New struct.
13389 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13390 set_dwarf2_per_objfile.
13391 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13392 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13393 context, adjust calls.
13394 (dw2_instantiate_symtab): Likewise.
13395 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13396 (dw2_get_cu): Likewise.
13397 (create_cu_from_index_list): Change objfile parameter to
13398 dwarf2_per_objfile.
13399 (create_cus_from_index_list): Get dwarf2_per_objfile from
13400 context, adjust calls.
13401 (create_cus_from_index): Likewise.
13402 (create_signatured_type_table_from_index): Change objfile
13403 parameter to dwarf2_per_objfile.
13404 (create_signatured_type_table_from_debug_names): Change objfile
13405 parameter to dwarf2_per_objfile.
13406 (create_addrmap_from_index): Likewise.
13407 (create_addrmap_from_aranges): Likewise.
13408 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13409 (dw2_setup): Remove.
13410 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13411 context.
13412 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13413 get_dwarf2_per_objfile.
13414 (dw2_forget_cached_source_info): Likewise.
13415 (dw2_map_symtabs_matching_filename): Likewise.
13416 (struct dw2_symtab_iterator) <index>: Remove.
13417 <dwarf2_per_objfile>: New field.
13418 (dw2_symtab_iter_init): Replace index parameter with
13419 dwarf2_per_objfile.
13420 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13421 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13422 (dw2_print_stats): Likewise.
13423 (dw2_dump): Likewise.
13424 (dw2_expand_symtabs_for_function): Likewise.
13425 (dw2_expand_all_symtabs): Likewise.
13426 (dw2_expand_symtabs_with_fullname): Likewise.
13427 (dw2_expand_marked_cus): Replace index and objfile parameters
13428 with dwarf2_per_objfile.
13429 (dw_expand_symtabs_matching_file_matcher): Add
13430 dwarf2_per_objfile parameter and adjust calls.
13431 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13432 adjust calls.
13433 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13434 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13435 adjust calls.
13436 (create_cus_from_debug_names_list): Replace objfile parameter
13437 with dwarf2_per_objfile and adjust calls.
13438 (create_cus_from_debug_names): Likewise.
13439 (dwarf2_read_debug_names): Likewise.
13440 (mapped_debug_names::namei_to_name): Adjust call.
13441 (dw2_debug_names_iterator::next): Likewise.
13442 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13443 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13444 (dw2_debug_names_dump): Likewise.
13445 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13446 (dw2_debug_names_expand_symtabs_matching): Likewise.
13447 (dwarf2_initialize_objfile): Likewise.
13448 (dwarf2_build_psymtabs): Likewise.
13449 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13450 this_cu.
13451 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13452 (read_and_check_comp_unit_head): Likewise.
13453 (read_abbrev_offset): Likewise.
13454 (create_debug_type_hash_table): Likewise.
13455 (create_debug_types_hash_table): Likewise.
13456 (create_all_type_units): Replace objfile parameter with
13457 dwarf2_per_objfile.
13458 (add_type_unit): Add dwarf2_per_objfile parameter.
13459 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13460 with dwarf2_per_objfile.
13461 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13462 (lookup_dwp_signatured_type): Likewise.
13463 (lookup_signatured_type): Likewise.
13464 (read_cutu_die_from_dwo): Likewise.
13465 (init_tu_and_read_dwo_dies): Likewise.
13466 (init_cutu_and_read_dies): Likewise.
13467 (init_cutu_and_read_dies_no_follow): Likewise.
13468 (allocate_type_unit_groups_table): Add objfile parameter.
13469 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13470 (get_type_unit_group): Likewise.
13471 (process_psymtab_comp_unit): Update call.
13472 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13473 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13474 (print_tu_stats): Likewise.
13475 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13476 in void* parameter.
13477 (build_type_psymtabs): Change objfile parameter to
13478 dwarf2_per_objfile.
13479 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13480 passed in void* parameter.
13481 (process_skeletonless_type_units): Change objfile parameter to
13482 dwarf2_per_objfile.
13483 (set_partial_user): Likewise.
13484 (dwarf2_build_psymtabs_hard): Likewise.
13485 (read_comp_units_from_section): Likewise.
13486 (create_all_comp_units): Likewise.
13487 (scan_partial_symbols): Update calls.
13488 (add_partial_symbol): Likewise.
13489 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13490 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13491 (process_queue): Add dwarf2_per_objfile parameter.
13492 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13493 (compute_compunit_symtab_includes): Likewise.
13494 (process_cu_includes): Add dwarf2_per_objfile parameter.
13495 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13496 (process_full_type_unit): Likewise.
13497 (process_imported_unit_die): Update call.
13498 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13499 (read_file_scope): Likewise.
13500 (allocate_dwo_file_hash_table): Add objfile parameter.
13501 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13502 (create_cus_hash_table): Likewise.
13503 (create_dwp_hash_table): Likewise.
13504 (create_dwo_unit_in_dwp_v1): Likewise.
13505 (create_dwp_v2_section): Likewise.
13506 (create_dwo_unit_in_dwp_v2): Likewise.
13507 (lookup_dwo_unit_in_dwp): Likewise.
13508 (try_open_dwop_file): Likewise.
13509 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13510 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13511 cleanup to include a reference to dwarf2_per_objfile.
13512 (open_dwp_file): Add dwarf2_per_objfile parameter.
13513 (open_and_init_dwp_file): Likewise.
13514 (get_dwp_file): Likewise.
13515 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13516 (queue_and_load_all_dwo_tus): Update call.
13517 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13518 data.
13519 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13520 (dwarf2_ranges_process): Likewise.
13521 (dwarf2_get_pc_bounds): Likewise.
13522 (mark_common_block_symbol_computed): Likewise.
13523 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13524 (dwarf2_read_abbrevs): Update call.
13525 (read_partial_die): Use dwarf2_per_objfile from cu.
13526 (find_partial_die): Likewise.
13527 (fixup_partial_die): Likewise.
13528 (read_attribute_value): Likewise.
13529 (read_indirect_string_at_offset_from): Add objfile parameter.
13530 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13531 parameter.
13532 (read_indirect_string_from_dwz): Add objfile parameter.
13533 (read_indirect_string): Add objfile parameter.
13534 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13535 (read_addr_index): Use dwarf2_per_objfile from cu.
13536 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13537 call dw2_setup.
13538 (read_str_index): Use dwarf2_per_objfile from cu.
13539 (get_debug_line_section): Likewise.
13540 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13541 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13542 (new_symbol_full): Use dwarf2_per_objfile from cu.
13543 (build_error_marker_type): Likewise.
13544 (lookup_die_type): Likewise.
13545 (determine_prefix): Likewise.
13546 (follow_die_offset): Likewise.
13547 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13548 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13549 (dwarf2_fetch_die_type_sect_off): Likewise.
13550 (dwarf2_get_die_type): Likewise.
13551 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13552 (get_signatured_type): Likewise.
13553 (get_DW_AT_signature_type): Likewise.
13554 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13555 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13556 (cu_debug_loc_section): Likewise.
13557 (fill_in_loclist_baton): Likewise.
13558 (dwarf2_symbol_mark_computed): Likewise.
13559 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13560 dwarf2_per_objfile.
13561 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13562 parameter.
13563 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13564 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13565 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13566 (set_die_type): Use dwarf2_free_objfile from cu.
13567 (get_die_type_at_offset): Likewise.
13568 (dwarf2_per_objfile_free): Don't assign global variable.
13569 (debug_names) <constructor>: Add dwarf2_per_objfile
13570 parameter, update m_debugstrlookup construction.
13571 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13572 parameter.
13573 <m_dwarf2_per_objfile>: New field.
13574 <lookup>: Use m_dwarf2_per_objfile.
13575 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13576 (psyms_seen_size): Likewise.
13577 (write_gdbindex): Replace objfile parameter with
13578 dwarf2_per_objfile.
13579 (write_debug_names): Likewise.
13580 (write_psymtabs_to_index): Likewise.
13581 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13582 calls.
13583
e3b94546
SM
135842018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13585
13586 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13587 <dwarf2_per_objfile>: New field.
13588 (struct dwarf2_per_cu_data) <objfile>: Remove.
13589 <dwarf2_per_objfile>: New field.
13590 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13591 of objfile.
13592 (create_signatured_type_table_from_index): Likewise.
13593 (create_debug_type_hash_table): Likewise.
13594 (fill_in_sig_entry_from_dwo_entry): Likewise.
13595 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13596 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13597 objfile.
13598 (create_partial_symtab): Access objfile through
13599 dwarf2_per_objfile.
13600 (process_psymtab_comp_unit_reader): Likewise.
13601 (read_comp_units_from_section): Likewise.
13602 (scan_partial_symbols): Likewise.
13603 (add_partial_symbol): Likewise.
13604 (add_partial_subprogram): Likewise.
13605 (peek_die_abbrev): Likewise.
13606 (fixup_go_packaging): Likewise.
13607 (process_full_comp_unit): Likewise.
13608 (process_full_type_unit): Likewise.
13609 (process_imported_unit_die): Likewise.
13610 (dwarf2_compute_name): Likewise.
13611 (dwarf2_physname): Likewise.
13612 (read_import_statement): Likewise.
13613 (create_cus_hash_table): Assign dwarf2_physname instead of
13614 objfile.
13615 (read_func_scope): Access objfile through dwarf2_per_objfile.
13616 (read_lexical_block_scope): Likewise.
13617 (read_call_site_scope): Likewise.
13618 (read_variable): Likewise.
13619 (dwarf2_rnglists_process): Likewise.
13620 (dwarf2_ranges_process): Likewise.
13621 (dwarf2_ranges_read): Likewise.
13622 (dwarf2_record_block_ranges): Likewise.
13623 (dwarf2_add_field): Likewise.
13624 (dwarf2_add_member_fn): Likewise.
13625 (read_structure_type): Likewise.
13626 (process_structure_scope): Likewise.
13627 (read_enumeration_type): Likewise.
13628 (read_array_type): Likewise.
13629 (read_common_block): Likewise.
13630 (read_namespace_type): Likewise.
13631 (read_namespace): Likewise.
13632 (read_module_type): Likewise.
13633 (read_tag_pointer_type): Likewise.
13634 (read_tag_ptr_to_member_type): Likewise.
13635 (read_tag_string_type): Likewise.
13636 (read_subroutine_type): Likewise.
13637 (read_typedef): Likewise.
13638 (read_base_type): Likewise.
13639 (attr_to_dynamic_prop): Likewise.
13640 (read_subrange_type): Likewise.
13641 (read_unspecified_type): Likewise.
13642 (load_partial_dies): Likewise.
13643 (read_partial_die): Likewise.
13644 (find_partial_die): Likewise.
13645 (guess_partial_die_structure_name): Likewise.
13646 (fixup_partial_die): Likewise.
13647 (read_attribute_value): Likewise.
13648 (read_addr_index_from_leb128): Likewise.
13649 (dwarf2_read_addr_index): Likewise.
13650 (dwarf2_string_attr): Likewise.
13651 (lnp_state_machine::check_line_address): Likewise.
13652 (dwarf_decode_lines_1): Likewise.
13653 (dwarf_decode_lines): Likewise.
13654 (dwarf2_start_symtab): Likewise.
13655 (var_decode_location): Likewise.
13656 (new_symbol_full): Likewise.
13657 (dwarf2_const_value_data): Likewise.
13658 (dwarf2_const_value_attr): Likewise.
13659 (dwarf2_const_value): Likewise.
13660 (die_type): Likewise.
13661 (die_containing_type): Likewise.
13662 (lookup_die_type): Likewise.
13663 (guess_full_die_structure_name): Likewise.
13664 (anonymous_struct_prefix): Likewise.
13665 (dwarf2_name): Likewise.
13666 (follow_die_ref_or_sig): Likewise.
13667 (follow_die_offset): Likewise.
13668 (follow_die_ref): Likewise.
13669 (dwarf2_fetch_die_loc_sect_off): Likewise.
13670 (dwarf2_fetch_constant_bytes): Likewise.
13671 (dwarf2_fetch_die_type_sect_off): Likewise.
13672 (dwarf2_get_die_type): Likewise.
13673 (follow_die_sig): Likewise.
13674 (decode_locdesc): Likewise.
13675 (dwarf2_per_cu_objfile): Likewise.
13676 (dwarf2_per_cu_text_offset): Likewise.
13677 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13678 objfile.
13679 (set_die_type): Access objfile through
13680 dwarf2_per_objfile.
13681
b01ba14d
SM
136822018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13683
13684 * valprint.c (converted_character_d): Remove typedef.
13685 (DEF_VEC_O (converted_character_d)): Remove.
13686 (count_next_character): Use std::vector.
13687 (print_converted_chars_to_obstack): Likewise.
13688 (generic_printstr): Likewise.
13689
4d0fdd9b
SM
136902018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13691
13692 * xml-support.h (struct gdb_xml_value): Add constructor.
13693 <value>: Change type to unique_xmalloc_ptr.
13694 (gdb_xml_value_s): Remove typedef.
13695 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13696 (gdb_xml_element_start_handler): Change parameter type to
13697 std::vector.
13698 (xml_find_attribute): Likewise.
13699 * xml-support.c (xml_find_attribute): Change parameter type to
13700 std::vector and adjust.
13701 (gdb_xml_values_cleanup): Remove.
13702 (gdb_xml_parser::start_element): Adjust to std::vector.
13703 (xinclude_start_include): Change paraeter type to std::vector
13704 and adjust.
13705 * btrace.c (check_xml_btrace_version): Likewise.
13706 (parse_xml_btrace_block): Likewise.
13707 (parse_xml_btrace_pt_config_cpu): Likewise.
13708 (parse_xml_btrace_pt): Likewise.
13709 (parse_xml_btrace_conf_bts): Likewise.
13710 (parse_xml_btrace_conf_pt): Likewise.
13711 * memory-map.c (memory_map_start_memory): Likewise.
13712 (memory_map_start_property): Likewise.
13713 * osdata.c (osdata_start_osdata): Likewise.
13714 (osdata_start_item): Likewise.
13715 (osdata_start_column): Likewise.
13716 * remote.c (start_thread): Likewise.
13717 * solib-aix.c (library_list_start_library): Likewise.
13718 (library_list_start_list): Likewise.
13719 * solib-svr4.c (library_list_start_library): Likewise.
13720 (svr4_library_list_start_list): Likewise.
13721 * solib-target.c (library_list_start_segment): Likewise.
13722 (library_list_start_section): Likewise.
13723 (library_list_start_library): Likewise.
13724 (library_list_start_list): Likewise.
13725 * tracepoint.c (traceframe_info_start_memory): Likewise.
13726 (traceframe_info_start_tvar): Likewise.
13727 * xml-syscall.c (syscall_start_syscall): Likewise.
13728 * xml-tdesc.c (tdesc_start_target): Likewise.
13729 (tdesc_start_feature): Likewise.
13730 (tdesc_start_reg): Likewise.
13731 (tdesc_start_union): Likewise.
13732 (tdesc_start_struct): Likewise.
13733 (tdesc_start_flags): Likewise.
13734 (tdesc_start_enum): Likewise.
13735 (tdesc_start_field): Likewise.
13736 (tdesc_start_enum_value): Likewise.
13737 (tdesc_start_vector): Likewise.
13738
f979c73f
SM
137392018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13740
13741 * extension.h (struct xmethod_worker) <clone>: Remove.
13742 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13743 Remove.
13744 (python_xmethod_worker::clone): Remove.
13745 * valops.c (find_overload_match): Use std::move instead of
13746 clone.
13747
ba18742c
SM
137482018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13749
13750 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13751 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13752 <free_xmethod_worker_data>: Remove.
13753 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13754 <get_xmethod_arg_types>: Remove.
13755 <get_xmethod_result_type>: Remove.
13756 <invoke_xmethod>: Remove.
13757 * extension.c (new_xmethod_worker): Remove.
13758 (clone_xmethod_worker): Remove.
13759 (get_matching_xmethod_workers): Return void, pass std::vector by
13760 pointer.
13761 (get_xmethod_arg_types): Rename to...
13762 (xmethod_worker::get_arg_types): ... this, and adjust.
13763 (get_xmethod_result_type): Rename to...
13764 (xmethod_worker::get_result_type): ... this, and adjust.
13765 (invoke_xmethod): Remove.
13766 (free_xmethod_worker): Remove.
13767 (free_xmethod_worker_vec): Remove.
13768 * extension.h (enum ext_lang_rc): Move here from
13769 extension-priv.h.
13770 (struct xmethod_worker): Add constructor and destructor.
13771 <data>: Remove.
13772 <value>: Remove.
13773 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13774 virtual pure methods.
13775 <get_arg_types, get_result_type>: New methods.
13776 (xmethod_worker_ptr): Remove typedef.
13777 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13778 (xmethod_worker_vec): Remove typedef.
13779 (xmethod_worker_up): New typedef.
13780 (invoke_xmethod): Remove.
13781 (clone_xmethod_worker): Remove.
13782 (free_xmethod_worker): Remove.
13783 (free_xmethod_worker_vec): Remove.
13784 (get_xmethod_arg_types): Remove.
13785 (get_xmethod_result_type): Remove.
13786 * valops.c (find_method_list): Use std::vector, don't use
13787 intermediate vector.
13788 (value_find_oload_method_list): Use std::vector.
13789 (find_overload_match): Use std::vector.
13790 (find_oload_champ): Use std::vector.
13791 * value.c (value_free): Use operator delete.
13792 (value_of_xmethod): Rename to...
13793 (value_from_xmethod): ... this. Don't assign
13794 xmethod_worker::value, take rvalue-reference.
13795 (result_type_of_xmethod): Adjust.
13796 (call_xmethod): Adjust.
13797 * value.h: Include extension.h.
13798 (struct xmethod_worker): Don't forward-declare.
13799 (value_of_xmethod): Rename to...
13800 (value_from_xmethod): ... this, take rvalue-reference.
13801 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13802 (struct python_xmethod_worker): ... this, add constructor and
13803 destructor.
13804 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13805 (gdbpy_free_xmethod_worker_data): Rename to...
13806 (python_xmethod_worker::~python_xmethod_worker): ... this and
13807 adjust.
13808 (gdbpy_clone_xmethod_worker_data): Rename to...
13809 (python_xmethod_worker::clone): ... this and adjust.
13810 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13811 temporary vector.
13812 (gdbpy_get_xmethod_arg_types): Rename to...
13813 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13814 (gdbpy_get_xmethod_result_type): Rename to...
13815 (python_xmethod_worker::do_get_result_type): ... this and
13816 adjust.
13817 (gdbpy_invoke_xmethod): Rename to...
13818 (python_xmethod_worker::invoke): ... this and adjust.
13819 (new_python_xmethod_worker): Rename to...
13820 (python_xmethod_worker::python_xmethod_worker): ... this and
13821 adjust.
13822 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13823 Remove.
13824 (gdbpy_free_xmethod_worker_data): Remove.
13825 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13826 (gdbpy_get_xmethod_arg_types): Remove.
13827 (gdbpy_get_xmethod_result_type): Remove.
13828 (gdbpy_invoke_xmethod): Remove.
13829 * python/python.c (python_extension_ops): Remove obsolete
13830 callbacks.
13831
e379cee6
PA
138322018-01-05 Pedro Alves <palves@redhat.com>
13833
13834 PR gdb/18653
13835 * common/signals-state-save-restore.c
13836 (save_original_signals_state): New parameter 'quiet'. Warn if we
13837 find a custom handler preinstalled, instead of internal erroring.
13838 But only warn if !quiet.
13839 * common/signals-state-save-restore.h
13840 (save_original_signals_state): New parameter 'quiet'.
13841 * main.c (captured_main_1): Move save_original_signals_state call
13842 after option handling, and pass QUIET.
13843
a655456c
PA
138442018-01-05 Pedro Alves <palves@redhat.com>
13845
13846 * spu-tdep.c (spu_catch_start): Pass
13847 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13848
de63c46b
PA
138492018-01-05 Pedro Alves <palves@redhat.com>
13850
13851 PR gdb/22670
13852 * ada-lang.c (literal_symbol_name_matcher): New function.
13853 (ada_get_symbol_name_matcher): Use it for
13854 symbol_name_match_type::SEARCH_NAME.
13855 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13856 it down instead of assuming symbol_name_match_type::FULL.
13857 * block.h (block_lookup_symbol): New parameter 'match_type'.
13858 * c-valprint.c (print_unpacked_pointer): Use
13859 lookup_symbol_search_name instead of lookup_symbol.
13860 * compile/compile-object-load.c (get_out_value_type): Pass down
13861 symbol_name_match_type::SEARCH_NAME.
13862 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13863 symbol_name_match_type::FULL.
13864 * cp-support.c (cp_get_symbol_name_matcher): Handle
13865 symbol_name_match_type::SEARCH_NAME.
13866 * infrun.c (insert_exception_resume_breakpoint): Use
13867 lookup_symbol_search_name.
13868 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13869 * psymtab.c (maintenance_check_psymtabs): Use
13870 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13871 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13872 SYMBOL_SEARCH_NAME.
13873 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13874 if symbol_name_match_type::SEARCH_NAME.
13875 (lookup_symbol_in_language): Pass down
13876 symbol_name_match_type::FULL.
13877 (lookup_symbol_search_name): New.
13878 (lookup_language_this): Pass down
13879 symbol_name_match_type::SEARCH_NAME.
13880 (lookup_symbol_aux, lookup_local_symbol): New parameter
13881 'match_type'. Pass it down.
13882 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13883 (lookup_symbol_search_name): New declaration.
13884 (lookup_symbol_in_block): New 'match_type' parameter.
13885
f98fc17b
PA
138862018-01-05 Pedro Alves <palves@redhat.com>
13887
13888 PR gdb/22670
13889 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13890 ada_lookup_symbol.
13891 (ada_lookup_symbol): Reimplement in terms of
13892 ada_lookup_symbol_list, bits factored out from
13893 ada_lookup_encoded_symbol.
13894
342f8240
JB
138952018-01-05 Joel Brobecker <brobecker@adacore.com>
13896
13897 * ada-exp.y (write_object_renaming): When subscripting an array
13898 using a symbol as the index, pass the block in call to
13899 ada_lookup_encoded_symbol when looking that symbol up.
13900
7150d33c
JG
139012018-01-05 Jerome Guitton <guitton@adacore.com>
13902
13903 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13904 TYPE_INDEX_TYPE.
13905
cc0e770c
JB
139062018-01-05 Joel Brobecker <brobecker@adacore.com>
13907
13908 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13909 the case where VALUE_LVAL (val0) is not lval_memory.
13910
f79da888 139112018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
13912
13913 * ada-valprint.c (print_optional_low_bound): Handle
13914 character-indexed array printing like boolean-indexed array
13915 printing.
13916
cd385f94
JB
139172018-01-05 Joel Brobecker <brobecker@adacore.com>
13918
13919 * NEWS: Create a new section for the next release branch.
13920 Rename the section of the current branch, now that it has
13921 been cut.
13922
09aca949
JB
139232018-01-05 Joel Brobecker <brobecker@adacore.com>
13924
13925 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13926 * version.in: Bump version to 8.1.50.DATE-git.
13927
9f757bf7
XR
139282018-01-03 Xavier Roirand <roirand@adacore.com>
13929
13930 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13931 Add field.
13932 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13933 Add field.
13934 (default_exception_support_info) <catch_handlers_sym>: Add field.
13935 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13936 (ada_exception_name_addr_1): Add "catch handlers" handling.
13937 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13938 Update all callers.
13939 (create_excep_cond_exprs) <ex>: Add parameter.
13940 (re_set_exception): Update create_excep_cond_exprs call.
13941 (print_it_exception, print_one_exception, print_mention_exception)
13942 (print_recreate_exception): Add "catch handler" handling.
13943 (allocate_location_catch_handlers, re_set_catch_handlers)
13944 (check_status_catch_handlers, print_it_catch_handlers)
13945 (print_one_catch_handlers, print_mention_catch_handlers)
13946 (print_recreate_catch_handlers): New function.
13947 (catch_handlers_breakpoint_ops): New variable.
13948 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13949 Add parameter. Add "catch handler" handling.
13950 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13951 Add "catch handler" handling.
13952 (ada_exception_catchpoint_cond_string): Add "catch handler"
13953 handling.
13954 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13955 call.
13956 (catch_ada_handlers_command): New function.
13957 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13958 operations structure.
13959 (_initialize_ada_language): Add "catch handlers" command entry.
13960 * NEWS: Document "catch handlers" feature.
13961
9fe561ab
JB
139622018-01-02 Joel Brobecker <brobecker@adacore.com>
13963
13964 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13965 account when creating the array type of the slice.
13966 (ada_value_slice): Likewise.
13967
a405673c
JB
139682018-01-02 Joel Brobecker <brobecker@adacore.com>
13969
13970 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13971 New enum value.
13972 (create_array_type_with_stride): Add byte_stride_prop parameter.
13973 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13974 New parameter. Update all callers in this file.
13975 (array_type_has_dynamic_stride): New function.
13976 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13977 of arrays with dynamic byte strides.
13978 * dwarf2read.c (read_array_type): Add support for dynamic
13979 DW_AT_byte_stride attributes.
13980
74a2f8ff
JB
139812018-01-02 Joel Brobecker <brobecker@adacore.com>
13982
13983 * dwarf2read.c (read_unspecified_type): Treat
13984 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13985
e2882c85
JB
139862018-01-01 Joel Brobecker <brobecker@adacore.com>
13987
13988 Update copyright year range in all GDB files.
13989
1690bb24
JB
139902018-01-01 Joel Brobecker <brobecker@adacore.com>
13991
13992 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13993 and gdb/testsuite/gdb.base/step-line.c.
13994
0f0c98a8
JB
139952018-01-01 Joel Brobecker <brobecker@adacore.com>
13996
13997 * copyright.py (main): Dump the contents of
13998 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13999 even if BY_HAND is empty.
14000
82e1e79a
JB
140012018-01-01 Joel Brobecker <brobecker@adacore.com>
14002
14003 * top.c (print_gdb_version): Update Copyright year in version
14004 message.
14005
053f54e5 140062018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 14007
053f54e5 14008 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 14009
053f54e5 14010For older changes see ChangeLog-2017.
c906108c
SS
14011\f
14012Local Variables:
14013mode: change-log
14014left-margin: 8
14015fill-column: 74
14016version-control: never
57da7796 14017coding: utf-8
c906108c 14018End:
This page took 2.760706 seconds and 4 git commands to generate.