Remove dead definition from valops.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
896ee098
TT
12018-09-26 Tom Tromey <tom@tromey.com>
2
3 * valops.c (auto_abandon): Remove dead code.
4
57dbb3af
TT
52018-09-26 Tom Tromey <tom@tromey.com>
6
7 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
8
b5a9bfbe
TT
92018-09-24 Tom Tromey <tom@tromey.com>
10
11 * common/pathstuff.c (get_standard_cache_dir): Make
12 "xdg_cache_home" and "home" const.
13 * top.c (init_history): Make "tmpenv" const.
14 * main.c (get_init_files): Make "homedir" const.
15
ae778caf
TT
162018-09-23 Tom Tromey <tom@tromey.com>
17
18 PR python/18852:
19 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
20
2b4ad2fe
TT
212018-09-23 Tom Tromey <tom@tromey.com>
22
23 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
24 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
25 * python/python-internal.h (gdbpy_handle_exception): Declare.
26 * python/py-utils.c (gdbpy_handle_exception): New function.
27
fd3ba736
TT
282018-09-23 Tom Tromey <tom@tromey.com>
29
30 PR python/17284:
31 * python/py-type.c (typy_template_argument): Check for negative
32 argument number.
33
39a24317
TT
342018-09-23 Tom Tromey <tom@tromey.com>
35
36 PR python/14062:
37 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
38
f5769a2c
TT
392018-09-23 Tom Tromey <tom@tromey.com>
40
41 PR python/18170:
42 * python/py-value.c (valpy_int): Allow conversion from pointer
43 type.
44
1c1e54f6
TT
452018-09-23 Tom Tromey <tom@tromey.com>
46
47 PR python/20126:
48 * python/py-value.c (valpy_int): Respect type sign.
49
fb4fa946
TT
502018-09-23 Tom Tromey <tom@tromey.com>
51
52 PR python/18352;
53 * python/py-value.c (valpy_float): Allow conversions from int or
54 char.
55 (valpy_int, valpy_long): Allow conversions from float.
56
65773341
TT
572018-09-23 Tom Tromey <tom@tromey.com>
58
59 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
60 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
61
1db88d22
RO
622018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
63
64 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
65 __sighndlr.
66 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
67
a44294f5
JT
682018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
69
70 * windows-nat.c (windows_nat_target::wait): Remove a spurious
71 target_terminal::ours().
72
0c0a40e0
SM
732018-09-23 Simon Marchi <simon.marchi@ericsson.com>
74
75 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
76 of vl to ULONGEST.
77
4daf1902
YS
782018-09-21 Yacov Simhony <ysimhony@gmail.com>
79
80 * breakpoint.c (update_inserted_breakpoint_locations): Remove
81 redundant condition.
82
c475f569
RO
832018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
84
85 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
86
87 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
88 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
89 * sol-thread.c (ps_pdmodel): Don't guard definition.
90
91 * procfs.c: Fix formatting.
92
93 * procfs.c (sysset_t_alloc): Remove.
94 (create_procinfo): Use XNEW instead of sysset_t_alloc.
95 (procfs_debug_inferior): Likewise.
96 (procfs_set_exec_trap): Likewise.
97 (proc_set_traced_sysentry): Don't allocate argp dynamically.
98 (proc_set_traced_sysexit): Likewise.
99
100 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
101 (dead_procinfo): Likewise.
102 (proc_warn): Likewise.
103 (proc_error): Likewise.
104 (proc_get_LDT_entry): Likewise.
105 (do_attach): Likewise.
106 (procfs_target::pid_to_str): Likewise.
107 (iterate_over_mappings): Likewise.
108
109 * procfs.c (create_procinfo): Fix ARI warning.
110 (proc_get_status): Likewise.
111 (proc_stop_process): Likewise.
112 (proc_run_process): Likewise.
113 (proc_kill): Likewise.
114 (proc_get_LDT_entry): Likewise.
115 (procfs_find_LDT_entry): Likewise.
116 (proc_update_threads): Likewise.
117 (proc_iterate_over_threads): Likewise.
118 (do_attach): Likewise.
119 (procfs_xfer_memory): Likewise.
120 (invalidate_cache): Likewise.
121 (procfs_target::resume): Likewise.
122 (procfs_init_inferior): Likewise.
123 (procfs_set_exec_trap): Likewise.
124 (procfs_target::thread_alive): Likewise.
125 (procfs_target::pid_to_exec_file): Likewise.
126 (iterate_over_mappings): Likewise.
127 (procfs_target::make_corefile_notes): Likewise.
128 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
129
130 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
131 (procfs_find_LDT_entry): Likewise.
132 * sol-thread.c (ps_lgetLDT): Likewise.
133
4206c05e
RO
1342018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
135
136 PR tdep/17903
137 * procfs.c (procfs_target): Declare pid_to_exec_file.
138 (procfs_target::pid_to_exec_file): New.
139
3d282ac3
RO
1402018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
141
142 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
143 renaming.
144 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
145 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
146
8c93fae6
RO
1472018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
148
149 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
150 (supply_fpregset, fill_fpregset): Move ...
151 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
152 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
153 Remove references to ioctl-based procfs.
154 Include <sys/reg.h>.
155 Remove PR_MODEL_NATIVE guards.
156 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
157 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
158
79b32f4a
XR
1592018-09-19 Xavier Roirand <roirand@adacore.com>
160
161 PR gdb/20981:
162 * solib-darwin.c (darwin_get_dyld_bfd): New function.
163 (darwin_solib_get_all_image_info_addr_at_init): Update call.
164 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
165
07147793
JB
1662018-09-19 John Baldwin <jhb@FreeBSD.org>
167
168 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
169 (fbsd_print_sockaddr_in6): Likewise.
170
23be8da7
RB
1712018-09-19 Richard Bunt <richard.bunt@arm.com>
172 Chris January <chris.january@arm.com>
173
174 * eval.c (skip_undetermined_arglist): Skip argument list helper.
175 (evaluate_subexp_standard): Return a dummy type when
176 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
177 OP_F77_UNDETERMINED_ARGLIST case.
178 * expression.h (enum noside): Update comment.
179
7307a73a
RO
1802018-09-19 George Vasick <george.vasick@oracle.com>
181
182 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
183
13db92d3
RO
1842018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
185 April Chin <april.chin@oracle.com>
186 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
187
188 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
189 uint_t lwpid_t.
190 (create_procinfo): Print pids in /proc without leading zeros.
191
3d50f170
SL
1922018-09-18 Sandra Loosemore <sandra@codesourcery.com>
193
194 * nios2-tdep.c (nios2_gcc_target_options): New.
195 (nios2_gdb_arch_init): Install new hook.
196
b567ca63
SM
1972018-09-18 Simon Marchi <simon.marchi@ericsson.com>
198
199 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
200 New file.
201 * update-gnulib.sh: Apply patch.
202 * configure: Re-generate.
203
73f1bd76
JB
2042018-09-18 John Baldwin <jhb@FreeBSD.org>
205
206 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
207 description. Make "info proc" command descriptions more
208 consistent.
209
8b113111
JB
2102018-09-18 John Baldwin <jhb@FreeBSD.org>
211
212 * NEWS: Mention 'info proc files' command.
213
7e69672e
JB
2142018-09-18 John Baldwin <jhb@FreeBSD.org>
215
216 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
217 descriptors for IP_FILES and IP_ALL.
218
57c2a98a
JB
2192018-09-18 John Baldwin <jhb@FreeBSD.org>
220
221 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
222 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
223 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
224 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
225 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
226 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
227 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
228 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
229 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
230 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
231 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
232 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
233 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
234 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
235 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
236 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
237 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
238 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
239 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
240 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
241 (struct fbsd_sockaddr_un): New types.
242 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
243 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
244 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
245 (fbsd_core_info_proc_files): New functions.
246 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
247 IP_ALL.
248 * fbsd-tdep.h (fbsd_info_proc_files_header)
249 (fbsd_info_proc_files_entry): New.
250
e98ee8c4
JB
2512018-09-18 John Baldwin <jhb@FreeBSD.org>
252
253 * defs.h (enum info_proc_what) [IP_FILES]: New value.
254 * infcmd.c (info_proc_cmd_files): New function.
255 (_initialize_infcmd): Register 'info proc files' command.
256
725e2999
JB
2572018-09-18 John Baldwin <jhb@FreeBSD.org>
258
259 * gnulib/aclocal-m4-deps.mk: Re-generate.
260 * gnulib/aclocal.m4: Re-generate.
261 * gnulib/config.in: Re-generate.
262 * gnulib/configure: Re-generate.
263 * gnulib/import/Makefile.am: Re-generate.
264 * gnulib/import/Makefile.in: Re-generate.
265 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
266 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
267 * gnulib/import/arpa_inet.in.h: New file.
268 * gnulib/import/inet_ntop.c: New file.
269 * gnulib/import/m4/arpa_inet_h.m4: New file.
270 * gnulib/import/m4/inet_ntop.m4: New file.
271 * gnulib/import/m4/netinet_in_h.m4: New file.
272 * gnulib/import/m4/socklen.m4: New file.
273 * gnulib/import/m4/sockpfaf.m4: New file.
274 * gnulib/import/m4/stdalign.m4: New file.
275 * gnulib/import/m4/sys_uio_h.m4: New file.
276 * gnulib/import/netinet_in.in.h: New file.
277 * gnulib/import/stdalign.in.h: New file.
278 * gnulib/import/sys_socket.c: New file.
279 * gnulib/import/sys_socket.in.h: New file.
280 * gnulib/import/sys_uio.in.h: New file.
281 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
282 module.
283
2afffa7f
JB
2842018-09-18 John Baldwin <jhb@FreeBSD.org>
285
286 * gnulib/aclocal-m4-deps.mk: New file.
287 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
288 deterministically.
289
9f235e09
JB
2902018-09-18 John Baldwin <jhb@FreeBSD.org>
291
292 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
293 KVE_PATH.
294
40f03055
TT
2952018-09-18 Tom Tromey <tom@tromey.com>
296
297 * compile/compile-object-load.c (struct
298 link_hash_table_cleanup_data): Add constructor and destructor.
299 Use DISABLE_COPY_AND_ASSIGN.
300 (~link_hash_table_cleanup_data): Rename from
301 link_hash_table_free. Now a destructor.
302 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
303
c9e0a7e3
TT
3042018-09-18 Tom Tromey <tom@tromey.com>
305
306 * compile/compile-object-run.c (do_module_cleanup): Use delete.
307 * compile/compile-object-load.c (struct munmap_list): Move to
308 header file.
309 (munmap_list::add): Rename from munmap_list_add; rewrite.
310 (munmap_list::~munmap_list): Rename from munmap_list_free.
311 (munmap_listp_free_cleanup): Remove.
312 (compile_object_load): Update.
313 * compile/compile-object-load.h (struct munmap_list): Move from
314 compile-object-load.c. Rewrite.
315
3ff2c72e
AH
3162018-09-18 Alan Hayward <alan.hayward@arm.com>
317
318 * aarch64-tdep.c (pass_in_v): Use register size.
319 (aarch64_extract_return_value): Likewise.
320 (aarch64_store_return_value): Likewise.
321
206c1947
RO
3222018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
323
324 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
325 rlim_t.
326
6eb5dbce
PW
3272018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
328
329 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
330 Fix short help line.
331
ae292b3a
TT
3322018-09-17 Tom Tromey <tom@tromey.com>
333
334 PR python/20445:
335 * configure: Rebuild.
336 * configure.ac: Conditionally use -DNDEBUG for Python.
337
da658607
TT
3382018-09-17 Tom Tromey <tom@tromey.com>
339
340 * configure: Rebuild.
341 * configure.ac: Use gmp as a library dependency when checking for
342 mpfr.
343
d35da542
PA
3442018-09-17 Pedro Alves <palves@redhat.com>
345
346 * python/py-inferior.c (find_inferior_object): Delete.
347
461464f2
SM
3482018-09-17 Simon Marchi <simon.marchi@ericsson.com>
349
350 * compile/compile-cplus-types.c
351 (compile_cplus_instance::enter_scope): Don't use new_scope after
352 std::move.
353
e6cd1dc1
TT
3542018-09-17 Tom Tromey <tom@tromey.com>
355
356 * common/pathstuff.c (get_standard_cache_dir): Use
357 ~/Library/Caches on macOS.
358 * common/pathstuff.h (get_standard_cache_dir): Update comment.
359
8588b356
SM
3602018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
361
362 PR python/23669
363 * breakpoint.c (commands_cmd_element): New.
364 (_initialize_breakpoint): Assign commands_cmd_element.
365 * breakpoint.h (commands_cmd_element): New.
366 * cli/cli-script.c (while_cmd_element, if_command,
367 define_cmd_element): New.
368 (command_name_equals): Remove.
369 (process_next_line): Compare commands by pointer, not by name.
370 (_initialize_cli_script): Assign the various cmd_list_element
371 variables.
372 * compile/compile.c (compile_cmd_element): New.
373 (_initialize_compile): Assign compile_cmd_element.
374 * compile/compile.h (compile_cmd_element): New.
375 * guile/guile.c (guile_cmd_element): New.
376 (install_gdb_commands): Assign guile_cmd_element.
377 * guile/guile.h (guile_cmd_element): New.
378 * python/python.c (python_cmd_element): New.
379 (_initialize_python): Assign python_cmd_element.
380 * python/python.h (python_cmd_element): New.
381 * tracepoint.c (while_stepping_cmd_element): New.
382 (_initialize_tracepoint): Assign while_stepping_cmd_element.
383 * tracepoint.h (while_stepping_cmd_element): New.
384
cb524840
TT
3852018-09-17 Tom Tromey <tom@tromey.com>
386
387 * infrun.c (save_infcall_suspend_state): Return
388 infcall_suspend_state_up.
389 (save_infcall_control_state): Return infcall_control_state_up.
390 * inferior.h (save_infcall_suspend_state)
391 (save_infcall_control_state): Declare later. Return unique
392 pointers.
393
2d844eaf
TT
3942018-09-17 Tom Tromey <tom@tromey.com>
395
396 * infrun.c (struct stop_context): Declare constructor,
397 destructor, "changed" method.
398 (stop_context::stop_context): Rename from save_stop_context.
399 (stop_context::~stop_context): Rename from
400 release_stop_context_cleanup.
401 (normal_stop): Update.
402 (stop_context::changed): Rename from stop_context_changed. Return
403 bool.
404
c7c4d3fa
TT
4052018-09-17 Tom Tromey <tom@tromey.com>
406
407 * inferior.h (struct infcall_suspend_state_deleter): New.
408 (infcall_suspend_state_up): New typedef.
409 (struct infcall_control_state_deleter): New.
410 (infcall_control_state_up): New typedef.
411 (make_cleanup_restore_infcall_suspend_state)
412 (make_cleanup_restore_infcall_control_state): Don't declare.
413 * infcall.c (call_function_by_hand_dummy): Update.
414 * infrun.c (do_restore_infcall_suspend_state_cleanup)
415 (make_cleanup_restore_infcall_suspend_state): Remove.
416 (do_restore_infcall_control_state_cleanup)
417 (make_cleanup_restore_infcall_control_state): Remove.
418
ee841dd8
TT
4192018-09-17 Tom Tromey <tom@tromey.com>
420
421 * gdbthread.h (struct thread_control_state): Add initializer.
422 (class thread_info) <control>: Remove initializer.
423 * inferior.h (struct inferior_control_state): Add initializer.
424 (class inferior) <control>: Remove initializer.
425 (exit_inferior_1): Update.
426 * infrun.c (struct infcall_control_state): Add constructors.
427 (save_infcall_control_state): Use new.
428 (restore_infcall_control_state, discard_infcall_control_state):
429 Use delete.
430
117f580a
TT
4312018-09-17 Tom Tromey <tom@tromey.com>
432
433 * infrun.c (struct infcall_suspend_state) <registers>: Now a
434 unique_ptr.
435 <siginfo_data>: Now a unique_xmalloc_ptr.
436 (save_infcall_suspend_state, restore_infcall_suspend_state)
437 (discard_infcall_suspend_state)
438 (get_infcall_suspend_state_regcache): Update.
439
dd848631
TT
4402018-09-17 Tom Tromey <tom@tromey.com>
441
442 * gdbthread.h (struct thread_suspend_state): Add initializers.
443 (class thread_info) <suspend>: Remove initializer.
444 * infrun.c (struct infcall_suspend_state): Add initializers.
445 (save_infcall_suspend_state): Use new.
446 (discard_infcall_suspend_state): Use delete.
447
1a338907
TT
4482018-09-16 Tom Tromey <tom@tromey.com>
449
450 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
451 Remove.
452 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
453 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
454 (py_varobj_iter_new): Likewise.
455 (py_varobj_get_iterator): Use gdbpy_ref.
456
4a137fec
TT
4572018-09-16 Tom Tromey <tom@tromey.com>
458
459 * python/py-threadevent.c (py_get_event_thread): Simplify.
460 * python/py-inferior.c (infpy_thread_from_thread_handle):
461 Return immediately after calling thread_to_thread_object. Use
462 Py_RETURN_NONE.
463 (thread_to_thread_object): Set the exception on a NULL return.
464
8ff03f0b
SM
4652018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
466
467 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
468
94c8b725
TT
4692018-09-16 Tom Tromey <tom@tromey.com>
470
471 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
472 Remove.
473
db1337cc
TT
4742018-09-16 Tom Tromey <tom@tromey.com>
475
476 * python/python-internal.h (thread_to_thread_object): Change
477 return type.
478 * python/py-inferior.c (thread_to_thread_object): Return a new
479 reference.
480 (infpy_thread_from_thread_handle): Update.
481 * python/py-infthread.c (gdbpy_selected_thread): Update.
482 * python/py-stopevent.c (create_stop_event_object): Update.
483 * python/py-threadevent.c (py_get_event_thread): Return a new
484 reference.
485 (py_get_event_thread): Update.
486 * python/py-event.h (py_get_event_thread): Change return type.
487 * python/py-continueevent.c (create_continue_event_object):
488 Update.
489
0a9db5ad
TT
4902018-09-16 Tom Tromey <tom@tromey.com>
491
492 * python/py-progspace.c (pspy_get_objfiles): Update.
493 * python/python-internal.h (objfile_to_objfile_object): Change
494 return type.
495 * python/py-newobjfileevent.c (create_new_objfile_event_object):
496 Update.
497 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
498 Update.
499 * python/python.c (gdbpy_get_current_objfile): Update.
500 (gdbpy_objfiles): Update.
501 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
502 Update.
503 (objfile_to_objfile_object): Return a new reference.
504 * python/py-symtab.c (stpy_get_objfile): Update.
505 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
506 Update.
507
3c7aa307
TT
5082018-09-16 Tom Tromey <tom@tromey.com>
509
510 * python/py-inferior.c (infpy_get_progspace): Update.
511 * python/python-internal.h (pspace_to_pspace_object): Change
512 return type.
513 * python/py-newobjfileevent.c
514 (create_clear_objfiles_event_object): Update.
515 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
516 Update.
517 * python/python.c (gdbpy_get_current_progspace): Update.
518 (gdbpy_progspaces): Update.
519 * python/py-progspace.c (pspace_to_pspace_object): Return a new
520 reference.
521 * python/py-objfile.c (objfpy_get_progspace): Update.
522 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
523 Update.
524
8743a9cd
TT
5252018-09-16 Tom Tromey <tom@tromey.com>
526
527 * python/lib/gdb/__init__.py (current_progspace, objfiles)
528 (solib_name, block_for_pc, find_pc_line): New functions.
529 (execute_unwinders): Update.
530 * python/py-block.c (gdbpy_block_for_pc): Remove.
531 * python/py-inferior.c (infpy_get_progspace): New function.
532 (inferior_object_getset) <progspace>: Add.
533 * python/py-progspace.c (pspy_objfiles): Rewrite.
534 (pspy_solib_name, pspy_block_for_pc)
535 (pspy_find_pc_line, pspy_is_valid): New functions.
536 (progspace_object_methods): Add entries for solib_name,
537 block_for_pc, find_pc_line, is_valid.
538 * python/python-internal.h (gdbpy_block_for_pc)
539 (build_objfiles_list): Don't declare.
540 * python/python.c: Don't include solib.h.
541 (gdbpy_solib_name, gdbpy_find_pc_line)
542 (gdbpy_get_current_progspace, build_objfiles_list)
543 (gdbpy_objfiles): Remove.
544 (GdbMethods) <current_progspace, objfiles, block_for_pc,
545 solib_name, find_pc_line>: Remove entries.
546
65e65158
TT
5472018-09-16 Tom Tromey <tom@tromey.com>
548
549 * top.c (new_ui_command): Use GNU style for metasyntactic
550 variables.
551 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
552 variables.
553 * maint.c (maintenance_translate_address): Remove "<>" around
554 text.
555 * interps.c (interpreter_exec_cmd): Use GNU style for
556 metasyntactic variables.
557 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
558 metasyntactic variables.
559 * tracepoint.c (tfind_range_command): Use GNU style for
560 metasyntactic variables.
561 (tfind_outside_command): Likewise.
562 (_initialize_tracepoint): Likewise.
563 * remote.c (extended_remote_target::create_inferior): Use GNU
564 style for metasyntactic variables.
565 * sparc64-tdep.c (adi_examine_command): Use GNU style for
566 metasyntactic variables.
567 (adi_assign_command): Likewise.
568
f4bab6ff
TT
5692018-09-16 Tom Tromey <tom@tromey.com>
570
571 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
572 metasyntactic variables. Print message if no disassembler options
573 are available.
574
cbaaa0ca
TT
5752018-09-15 Tom Tromey <tom@tromey.com>
576
577 * infcmd.c (get_inferior_args): Return const char *.
578 * inferior.h (get_inferior_args): Return type now const.
579 * linux-tdep.c (linux_fill_prpsinfo): Update.
580 * procfs.c (procfs_target::make_corefile_notes): Update.
581
a3a6aef4
TT
5822018-09-07 Tom Tromey <tom@tromey.com>
583
584 * python/python.c (execute_gdb_command): Call bpstat_do_actions
585 inside the TRY.
586
f70e088f
SL
5872018-09-14 Sandra Loosemore <sandra@codesourcery.com>
588
589 * nios2-tdep.c (nios2_type_align): New.
590 (nios2_gdb_arch_init): Install type_align hook.
591
2fabdf33
AB
5922018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
593
594 * eval.c (fake_method::fake_method): Call xzalloc directly for a
595 type that is neither object file owned, nor gdbarch owned.
596 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
597 gdbarch is non-NULL.
598 (alloc_type_instance): Allocate non-objfile owned types on the
599 gdbarch obstack.
600 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
601 using TYPE_ALLOC to ensure memory is allocated on the correct
602 obstack.
603 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
604 obstack, or the gdbarch obstack.
605 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
606
b4b08fa2
TT
6072018-09-14 Tom Tromey <tom@tromey.com>
608
609 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
610 block.
611
87b240d4
TT
6122018-09-14 Tom Tromey <tom@tromey.com>
613
614 * nat/fork-inferior.c (get_startup_shell): Remove "static".
615
7d221512
TT
6162018-09-13 Tom Tromey <tom@tromey.com>
617
618 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
619 static.
620
97e67fc6
TT
6212018-09-13 Tom Tromey <tom@tromey.com>
622
623 * exec.c (try_open_exec_file): Use std::string.
624
803c08d0
TT
6252018-09-13 Tom Tromey <tom@tromey.com>
626
627 * utils.h (gdb_bfd_errmsg): Return std::string.
628 * exec.c (exec_file_attach): Update.
629 * compile/compile-object-load.c (compile_object_load): Update.
630 * utils.c (gdb_bfd_errmsg): Return std::string.
631
5b4cbbe3
TT
6322018-09-13 Tom Tromey <tom@tromey.com>
633
634 * procfs.c (struct procinfo_deleter): New.
635 (procinfo_up): New typedef.
636 (do_destroy_procinfo_cleanup): Remove.
637 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
638
db68fbe2
TT
6392018-09-13 Tom Tromey <tom@tromey.com>
640
641 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
642
0ae1a321
SM
6432018-09-13 Simon Marchi <simon.marchi@ericsson.com>
6442018-09-13 Tom Tromey <tom@tromey.com>
645
646 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
647 (pspy_get_objfiles): New function.
648 (progspace_object_methods): New.
649 (pspace_object_type): Add tp_methods callback.
650 * python/python-internal.h (build_objfiles_list): New
651 declaration.
652 * python/python.c (build_objfiles_list): New function.
653 (gdbpy_objfiles): Implement using build_objfiles_list.
654 * NEWS: Mention the Progspace.objfiles method.
655
a40bf0c2
SM
6562018-09-13 Simon Marchi <simon.marchi@ericsson.com>
657
658 * python/py-inferior.c (infpy_get_progspace): New function.
659 (inferior_object_getset): Add progspace property.
660 * NEWS: Mention the new property.
661
4a3fe98f
TT
6622018-09-13 Tom Tromey <tom@tromey.com>
663
664 PR rust/23650:
665 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
666
098b2108
TT
6672018-09-13 Tom Tromey <tom@tromey.com>
668
669 PR rust/23626:
670 * rust-lang.c (rust_enum_variant): Now static.
671 (rust_empty_enum_p): New function.
672 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
673 Handle empty enum.
674
1256af7d
SM
6752018-09-13 Simon Marchi <simon.marchi@ericsson.com>
676
677 * python/py-inferior.c (infpy_repr): New.
678 (inferior_object_type): Register infpy_repr.
679 * python/py-objfile.c (objfpy_repr): New.
680 (objfile_object_type): Register objfpy_repr.
681
f117a62c
JB
6822018-09-12 John Baldwin <jhb@FreeBSD.org>
683
684 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
685
88f22c34
JB
6862018-09-12 John Baldwin <jhb@FreeBSD.org>
687
688 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
689 typo.
690
3c025cfe
SDJ
6912018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
692
693 * common/common-utils.c: Don't include '<sys/stat.h>'.
694 (is_regular_file): Move to...
695 * common/filestuff.c (is_regular_file): ... here.
696 * common/common-utils.h (is_regular_file): Move to...
697 * common/filestuff.h (is_regular_file): ... here.
698
3e68067f
SM
6992018-09-12 Simon Marchi <simon.marchi@ericsson.com>
700
701 * skip.c (debug_skip): New variable.
702 (skiplist_entry::do_skip_file_p): Add debug output.
703 (skiplist_entry::do_skip_gfile_p): Likewise.
704 (skiplist_entry::skip_function_p): Likewise.
705 (_initialize_step_skip): Create debug command.
706 * NEWS: Mention set/show debug skip.
707
d6be54ef
XR
7082018-09-11 Xavier Roirand <roirand@adacore.com>
709
710 * darwin-nat.c (should_disable_startup_with_shell):
711 New function.
712 (darwin_nat_target::create_inferior): Add call.
713
de1ec836
XR
7142018-09-11 Xavier Roirand <roirand@adacore.com>
715
716 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
717 inf_port, msg_state>: Initialize.
718 (struct darwin_thread_info) <signaled, single_step>: Change
719 type and initialize.
720 (struct darwin_thread_info) <event>: Initialize.
721
e2fc52e7
SDJ
7222018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
723
724 PR gdb/23555
725 PR gdb/23558
726 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
727 guesses.
728
5e8754f9
SDJ
7292018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
730
731 Revert:
732 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
733
734 PR gdb/23555
735 PR gdb/23558
736 * gnulib/aclocal.m4: Regenerate.
737 * gnulib/config.in: Regenerate.
738 * gnulib/configure: Regenerate.
739 * gnulib/import/Makefile.am: Update.
740 * gnulib/import/Makefile.in: Update.
741 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
742 * gnulib/import/_Noreturn.h: ... this.
743 * gnulib/import/alloca.in.h: Update.
744 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
745 * gnulib/import/arg-nonnull.h: ... this.
746 * gnulib/import/assure.h: Update.
747 * gnulib/import/at-func.c: Update.
748 * gnulib/import/basename-lgpl.c: Update.
749 * gnulib/import/extra/snippet/c++defs.h: Rename to...
750 * gnulib/import/c++defs.h: ... this.
751 * gnulib/import/canonicalize-lgpl.c: Update.
752 * gnulib/import/cdefs.h: Update.
753 * gnulib/import/chdir-long.c: Update.
754 * gnulib/import/chdir-long.h: Update.
755 * gnulib/import/cloexec.c: Update.
756 * gnulib/import/cloexec.h: Update.
757 * gnulib/import/close.c: Update.
758 * gnulib/import/closedir.c: Update.
759 * gnulib/import/config.charset: Update.
760 * gnulib/import/dirent-private.h: Update.
761 * gnulib/import/dirent.in.h: Update.
762 * gnulib/import/dirfd.c: Update.
763 * gnulib/import/dirname-lgpl.c: Update.
764 * gnulib/import/dirname.h: Update.
765 * gnulib/import/dosname.h: Update.
766 * gnulib/import/dup-safer-flag.c: Update.
767 * gnulib/import/dup-safer.c: Update.
768 * gnulib/import/dup.c: Update.
769 * gnulib/import/dup2.c: Update.
770 * gnulib/import/errno.in.h: Update.
771 * gnulib/import/error.c: Update.
772 * gnulib/import/error.h: Update.
773 * gnulib/import/exitfail.c: Update.
774 * gnulib/import/exitfail.h: Update.
775 * gnulib/import/extra/update-copyright: Update.
776 * gnulib/import/fchdir.c: Update.
777 * gnulib/import/fcntl.c: Update.
778 * gnulib/import/fcntl.in.h: Update.
779 * gnulib/import/fd-hook.c: Update.
780 * gnulib/import/fd-hook.h: Update.
781 * gnulib/import/fd-safer-flag.c: Update.
782 * gnulib/import/fd-safer.c: Update.
783 * gnulib/import/fdopendir.c: Update.
784 * gnulib/import/filename.h: Update.
785 * gnulib/import/filenamecat-lgpl.c: Update.
786 * gnulib/import/filenamecat.h: Update.
787 * gnulib/import/flexmember.h: Update.
788 * gnulib/import/float+.h: Update.
789 * gnulib/import/float.c: Update.
790 * gnulib/import/float.in.h: Update.
791 * gnulib/import/fnmatch.c: Update.
792 * gnulib/import/fnmatch.in.h: Update.
793 * gnulib/import/fnmatch_loop.c: Update.
794 * gnulib/import/fpucw.h: Update.
795 * gnulib/import/frexp.c: Update.
796 * gnulib/import/frexpl.c: Update.
797 * gnulib/import/fstat.c: Update.
798 * gnulib/import/fstatat.c: Update.
799 * gnulib/import/getcwd-lgpl.c: Update.
800 * gnulib/import/getcwd.c: Update.
801 * gnulib/import/getdtablesize.c: Update.
802 * gnulib/import/getlogin_r.c: Update.
803 * gnulib/import/getprogname.c: Update.
804 * gnulib/import/getprogname.h: Update.
805 * gnulib/import/gettext.h: Update.
806 * gnulib/import/gettimeofday.c: Update.
807 * gnulib/import/glob-libc.h: Update.
808 * gnulib/import/glob.c: Update.
809 * gnulib/import/glob.in.h: Update.
810 * gnulib/import/glob_internal.h: Update.
811 * gnulib/import/glob_pattern_p.c: Update.
812 * gnulib/import/globfree.c: Update.
813 * gnulib/import/hard-locale.c: Update.
814 * gnulib/import/hard-locale.h: Update.
815 * gnulib/import/intprops.h: Update.
816 * gnulib/import/inttypes.in.h: Update.
817 * gnulib/import/isnan.c: Update.
818 * gnulib/import/isnand-nolibm.h: Update.
819 * gnulib/import/isnand.c: Update.
820 * gnulib/import/isnanl-nolibm.h: Update.
821 * gnulib/import/isnanl.c: Update.
822 * gnulib/import/itold.c: Update.
823 * gnulib/import/libc-config.h: Update.
824 * gnulib/import/limits.in.h: Update.
825 * gnulib/import/localcharset.c: Update.
826 * gnulib/import/localcharset.h: Update.
827 * gnulib/import/localtime-buffer.c: Update.
828 * gnulib/import/localtime-buffer.h: Update.
829 * gnulib/import/lstat.c: Update.
830 * gnulib/import/m4/00gnulib.m4: Update.
831 * gnulib/import/m4/__inline.m4: Update.
832 * gnulib/import/m4/absolute-header.m4: Update.
833 * gnulib/import/m4/alloca.m4: Update.
834 * gnulib/import/m4/builtin-expect.m4: Update.
835 * gnulib/import/m4/canonicalize.m4: Update.
836 * gnulib/import/m4/chdir-long.m4: Update.
837 * gnulib/import/m4/close.m4: Update.
838 * gnulib/import/m4/closedir.m4: Update.
839 * gnulib/import/m4/configmake.m4: Update.
840 * gnulib/import/m4/d-ino.m4: Update.
841 * gnulib/import/m4/d-type.m4: Update.
842 * gnulib/import/m4/dirent_h.m4: Update.
843 * gnulib/import/m4/dirfd.m4: Update.
844 * gnulib/import/m4/dirname.m4: Update.
845 * gnulib/import/m4/double-slash-root.m4: Update.
846 * gnulib/import/m4/dup.m4: Update.
847 * gnulib/import/m4/dup2.m4: Update.
848 * gnulib/import/m4/eealloc.m4: Update.
849 * gnulib/import/m4/environ.m4: Update.
850 * gnulib/import/m4/errno_h.m4: Update.
851 * gnulib/import/m4/error.m4: Update.
852 * gnulib/import/m4/exponentd.m4: Update.
853 * gnulib/import/m4/exponentl.m4: Update.
854 * gnulib/import/m4/extensions.m4: Update.
855 * gnulib/import/m4/extern-inline.m4: Update.
856 * gnulib/import/m4/fchdir.m4: Update.
857 * gnulib/import/m4/fcntl-o.m4: Update.
858 * gnulib/import/m4/fcntl.m4: Update.
859 * gnulib/import/m4/fcntl_h.m4: Update.
860 * gnulib/import/m4/fdopendir.m4: Update.
861 * gnulib/import/m4/filenamecat.m4: Update.
862 * gnulib/import/m4/flexmember.m4: Update.
863 * gnulib/import/m4/float_h.m4: Update.
864 * gnulib/import/m4/fnmatch.m4: Update.
865 * gnulib/import/m4/fnmatch_h.m4: Update.
866 * gnulib/import/m4/fpieee.m4: Update.
867 * gnulib/import/m4/frexp.m4: Update.
868 * gnulib/import/m4/frexpl.m4: Update.
869 * gnulib/import/m4/fstat.m4: Update.
870 * gnulib/import/m4/fstatat.m4: Update.
871 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
872 * gnulib/import/m4/getcwd-path-max.m4: Update.
873 * gnulib/import/m4/getcwd.m4: Update.
874 * gnulib/import/m4/getdtablesize.m4: Update.
875 * gnulib/import/m4/getlogin.m4: Update.
876 * gnulib/import/m4/getlogin_r.m4: Update.
877 * gnulib/import/m4/getpagesize.m4: Update.
878 * gnulib/import/m4/getprogname.m4: Update.
879 * gnulib/import/m4/gettimeofday.m4: Update.
880 * gnulib/import/m4/glibc21.m4: Update.
881 * gnulib/import/m4/glob.m4: Update.
882 * gnulib/import/m4/glob_h.m4: Update.
883 * gnulib/import/m4/gnulib-cache.m4: Update.
884 * gnulib/import/m4/gnulib-common.m4: Update.
885 * gnulib/import/m4/gnulib-comp.m4: Update.
886 * gnulib/import/m4/gnulib-tool.m4: Update.
887 * gnulib/import/m4/hard-locale.m4: Update.
888 * gnulib/import/m4/include_next.m4: Update.
889 * gnulib/import/m4/inttypes-pri.m4: Update.
890 * gnulib/import/m4/inttypes.m4: Update.
891 * gnulib/import/m4/isnand.m4: Update.
892 * gnulib/import/m4/isnanl.m4: Update.
893 * gnulib/import/m4/largefile.m4: Update.
894 * gnulib/import/m4/limits-h.m4: Update.
895 * gnulib/import/m4/localcharset.m4: Update.
896 * gnulib/import/m4/locale-fr.m4: Update.
897 * gnulib/import/m4/locale-ja.m4: Update.
898 * gnulib/import/m4/locale-zh.m4: Update.
899 * gnulib/import/m4/localtime-buffer.m4: Update.
900 * gnulib/import/m4/longlong.m4: Update.
901 * gnulib/import/m4/lstat.m4: Update.
902 * gnulib/import/m4/malloc.m4: Update.
903 * gnulib/import/m4/malloca.m4: Update.
904 * gnulib/import/m4/math_h.m4: Update.
905 * gnulib/import/m4/mbrtowc.m4: Update.
906 * gnulib/import/m4/mbsinit.m4: Update.
907 * gnulib/import/m4/mbsrtowcs.m4: Update.
908 * gnulib/import/m4/mbstate_t.m4: Update.
909 * gnulib/import/m4/memchr.m4: Update.
910 * gnulib/import/m4/memmem.m4: Update.
911 * gnulib/import/m4/mempcpy.m4: Update.
912 * gnulib/import/m4/memrchr.m4: Update.
913 * gnulib/import/m4/mkdir.m4: Update.
914 * gnulib/import/m4/mkstemp.m4: Update.
915 * gnulib/import/m4/mmap-anon.m4: Update.
916 * gnulib/import/m4/mode_t.m4: Update.
917 * gnulib/import/m4/msvc-inval.m4: Update.
918 * gnulib/import/m4/msvc-nothrow.m4: Update.
919 * gnulib/import/m4/multiarch.m4: Update.
920 * gnulib/import/m4/nocrash.m4: Update.
921 * gnulib/import/m4/off_t.m4: Update.
922 * gnulib/import/m4/onceonly.m4: Update.
923 * gnulib/import/m4/open-cloexec.m4: Update.
924 * gnulib/import/m4/open.m4: Update.
925 * gnulib/import/m4/openat.m4: Update.
926 * gnulib/import/m4/opendir.m4: Update.
927 * gnulib/import/m4/pathmax.m4: Update.
928 * gnulib/import/m4/rawmemchr.m4: Update.
929 * gnulib/import/m4/readdir.m4: Update.
930 * gnulib/import/m4/readlink.m4: Update.
931 * gnulib/import/m4/realloc.m4: Update.
932 * gnulib/import/m4/rename.m4: Update.
933 * gnulib/import/m4/rewinddir.m4: Update.
934 * gnulib/import/m4/rmdir.m4: Update.
935 * gnulib/import/m4/save-cwd.m4: Update.
936 * gnulib/import/m4/secure_getenv.m4: Update.
937 * gnulib/import/m4/setenv.m4: Update.
938 * gnulib/import/m4/signal_h.m4: Update.
939 * gnulib/import/m4/ssize_t.m4: Update.
940 * gnulib/import/m4/stat-time.m4: Update.
941 * gnulib/import/m4/stat.m4: Update.
942 * gnulib/import/m4/std-gnu11.m4: Update.
943 * gnulib/import/m4/stdbool.m4: Update.
944 * gnulib/import/m4/stddef_h.m4: Update.
945 * gnulib/import/m4/stdint.m4: Update.
946 * gnulib/import/m4/stdio_h.m4: Update.
947 * gnulib/import/m4/stdlib_h.m4: Update.
948 * gnulib/import/m4/strchrnul.m4: Update.
949 * gnulib/import/m4/strdup.m4: Update.
950 * gnulib/import/m4/strerror.m4: Update.
951 * gnulib/import/m4/string_h.m4: Update.
952 * gnulib/import/m4/strstr.m4: Update.
953 * gnulib/import/m4/strtok_r.m4: Update.
954 * gnulib/import/m4/sys_socket_h.m4: Update.
955 * gnulib/import/m4/sys_stat_h.m4: Update.
956 * gnulib/import/m4/sys_time_h.m4: Update.
957 * gnulib/import/m4/sys_types_h.m4: Update.
958 * gnulib/import/m4/tempname.m4: Update.
959 * gnulib/import/m4/time_h.m4: Update.
960 * gnulib/import/m4/unistd-safer.m4: Update.
961 * gnulib/import/m4/unistd_h.m4: Update.
962 * gnulib/import/m4/warn-on-use.m4: Update.
963 * gnulib/import/m4/wchar_h.m4: Update.
964 * gnulib/import/m4/wchar_t.m4: Update.
965 * gnulib/import/m4/wctype_h.m4: Update.
966 * gnulib/import/m4/wint_t.m4: Update.
967 * gnulib/import/malloc.c: Update.
968 * gnulib/import/malloc/scratch_buffer.h: Update.
969 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
970 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
971 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
972 * gnulib/import/malloca.c: Update.
973 * gnulib/import/malloca.h: Update.
974 * gnulib/import/malloca.valgrind: Update.
975 * gnulib/import/math.in.h: Update.
976 * gnulib/import/mbrtowc.c: Update.
977 * gnulib/import/mbsinit.c: Update.
978 * gnulib/import/mbsrtowcs-impl.h: Update.
979 * gnulib/import/mbsrtowcs-state.c: Update.
980 * gnulib/import/mbsrtowcs.c: Update.
981 * gnulib/import/memchr.c: Update.
982 * gnulib/import/memmem.c: Update.
983 * gnulib/import/mempcpy.c: Update.
984 * gnulib/import/memrchr.c: Update.
985 * gnulib/import/mkdir.c: Update.
986 * gnulib/import/mkstemp.c: Update.
987 * gnulib/import/msvc-inval.c: Update.
988 * gnulib/import/msvc-inval.h: Update.
989 * gnulib/import/msvc-nothrow.c: Update.
990 * gnulib/import/msvc-nothrow.h: Update.
991 * gnulib/import/open.c: Update.
992 * gnulib/import/openat-die.c: Update.
993 * gnulib/import/openat-priv.h: Update.
994 * gnulib/import/openat-proc.c: Update.
995 * gnulib/import/openat.c: Update.
996 * gnulib/import/openat.h: Update.
997 * gnulib/import/opendir.c: Update.
998 * gnulib/import/pathmax.h: Update.
999 * gnulib/import/pipe-safer.c: Update.
1000 * gnulib/import/rawmemchr.c: Update.
1001 * gnulib/import/readdir.c: Update.
1002 * gnulib/import/readlink.c: Update.
1003 * gnulib/import/realloc.c: Update.
1004 * gnulib/import/ref-add.sin: Update.
1005 * gnulib/import/ref-del.sin: Update.
1006 * gnulib/import/rename.c: Update.
1007 * gnulib/import/rewinddir.c: Update.
1008 * gnulib/import/rmdir.c: Update.
1009 * gnulib/import/same-inode.h: Update.
1010 * gnulib/import/save-cwd.c: Update.
1011 * gnulib/import/save-cwd.h: Update.
1012 * gnulib/import/scratch_buffer.h: Update.
1013 * gnulib/import/secure_getenv.c: Update.
1014 * gnulib/import/setenv.c: Update.
1015 * gnulib/import/signal.in.h: Update.
1016 * gnulib/import/stat-time.c: Update.
1017 * gnulib/import/stat-time.h: Update.
1018 * gnulib/import/stat-w32.c: Update.
1019 * gnulib/import/stat-w32.h: Update.
1020 * gnulib/import/stat.c: Update.
1021 * gnulib/import/stdbool.in.h: Update.
1022 * gnulib/import/stddef.in.h: Update.
1023 * gnulib/import/stdint.in.h: Update.
1024 * gnulib/import/stdio.in.h: Update.
1025 * gnulib/import/stdlib.in.h: Update.
1026 * gnulib/import/str-two-way.h: Update.
1027 * gnulib/import/strchrnul.c: Update.
1028 * gnulib/import/strdup.c: Update.
1029 * gnulib/import/streq.h: Update.
1030 * gnulib/import/strerror-override.c: Update.
1031 * gnulib/import/strerror-override.h: Update.
1032 * gnulib/import/strerror.c: Update.
1033 * gnulib/import/string.in.h: Update.
1034 * gnulib/import/stripslash.c: Update.
1035 * gnulib/import/strnlen1.c: Update.
1036 * gnulib/import/strnlen1.h: Update.
1037 * gnulib/import/strstr.c: Update.
1038 * gnulib/import/strtok_r.c: Update.
1039 * gnulib/import/sys_stat.in.h: Update.
1040 * gnulib/import/sys_time.in.h: Update.
1041 * gnulib/import/sys_types.in.h: Update.
1042 * gnulib/import/tempname.c: Update.
1043 * gnulib/import/tempname.h: Update.
1044 * gnulib/import/time.in.h: Update.
1045 * gnulib/import/unistd--.h: Update.
1046 * gnulib/import/unistd-safer.h: Update.
1047 * gnulib/import/unistd.in.h: Update.
1048 * gnulib/import/unsetenv.c: Update.
1049 * gnulib/import/verify.h: Update.
1050 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1051 * gnulib/import/wchar.in.h: Update.
1052 * gnulib/import/wctype.in.h: Update.
1053 * gnulib/import/xalloc-oversized.h: Update.
1054 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1055 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1056
8ec23583
SM
10572018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1058
1059 * record-btrace.c (get_thread_current_frame): Remove
1060 old_inferior_ptid.
1061
1f5d1570
JG
10622018-09-10 Jerome Guitton <guitton@adacore.com>
1063
1064 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1065 with check_tag to 1 if and only if the type is tagged and the
1066 component being searched cannot been found in the current
1067 view. Otherwise, always call ada_to_fixed_type with
1068 check_tag to 0.
1069
d91e9ea8
XR
10702018-09-10 Xavier Roirand <roirand@adacore.com>
1071
1072 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1073 declaration.
1074 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1075 * ada-varobj.c (ada_varobj_get_number_of_children,
1076 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1077
cc330e39
XR
10782018-09-10 Xavier Roirand <roirand@adacore.com>
1079
1080 * ada-valprint.c (ada_value_print): Use type instead of
1081 enclosing type.
1082
b9c50e9a
XR
10832018-09-10 Xavier Roirand <roirand@adacore.com>
1084
1085 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1086 an array of access to unconstrained array.
1087
736ade86
XR
10882018-09-10 Xavier Roirand <roirand@adacore.com>
1089
1090 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1091 (ada_check_typedef): Use it.
1092
2963898f
XR
10932018-09-10 Xavier Roirand <roirand@adacore.com>
1094
1095 * ada-varobj.c (ada_varobj_describe_struct_child)
1096 (ada_varobj_describe_child): Handle union case like struct one.
1097
a154931e
TT
10982018-09-10 Tom Tromey <tom@tromey.com>
1099
1100 PR python/18380:
1101 * python/python.c (_initialize_python): Make example in "python"
1102 help work in Python 3.
1103
23c4651c
EZ
11042018-09-10 Eli Zaretskii <eliz@gnu.org>
1105
1106 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1107 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1108 $(EXEEXT) to the script, as it is not a program.
1109
a5c5eda7
SM
11102018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1111
1112 * python/py-prettyprint.c (pretty_print_one_value): Return
1113 gdbpy_ref<>.
1114 (print_string_repr): Adjust.
1115 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1116 * python/python-internal.h (apply_varobj_pretty_printer): Return
1117 gdbpy_ref<>.
1118 * varobj.c (varobj_value_get_print_value): Adjust.
1119
332cf4c9
TT
11202018-09-08 Tom Tromey <tom@tromey.com>
1121
1122 PR python/16047:
1123 * python/py-prettyprint.c (pretty_print_one_value): Check for
1124 to_string method.
1125
424da6cf
JB
11262018-09-08 Joel Brobecker <brobecker@adacore.com>
1127
1128 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1129 replace_operator_with_call.
1130
95f39a5b
JB
11312018-09-08 Joel Brobecker <brobecker@adacore.com>
1132
1133 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1134
16b9eb7b
JB
11352018-09-08 Joel Brobecker <brobecker@adacore.com>
1136
1137 * ada-typeprint.c (print_range): Print the bounds using TYPE
1138 rather than its TYPE_TARGET_TYPE.
1139
d8ce9127
JB
11402018-09-08 Joel Brobecker <brobecker@adacore.com>
1141
1142 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1143 call to ada_to_fixed_value_create.
1144
0d81f350
JG
11452018-09-08 Jerome Guitton <guitton@adacore.com>
1146
1147 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1148
57aff202
JB
11492018-09-08 Joel Brobecker <brobecker@adacore.com>
1150
1151 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1152 by calls to error.
1153
fb44b1a7
JB
11542018-09-08 Joel Brobecker <brobecker@adacore.com>
1155
1156 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1157 Move update of loop variable "fi".
1158
2a62dfa9
JB
11592018-09-08 Joel Brobecker <brobecker@adacore.com>
1160
1161 * ada-lang.c (value_assign_to_component): In the case of
1162 big-endian targets, extract the bits of the given VAL
1163 using an src_offset of zero if container is not a scalar.
1164
739ab2e9
SS
11652018-09-06 Simon Ser <contact@emersion.fr>
1166
1167 PR gdb/23105
1168 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1169 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1170 * fbsd-tdep.c (fbsd_make_note_desc): New.
1171 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1172 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1173 * target.h (enum target_object) Add FreeBSD-specific
1174 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1175
d82b3862
SM
11762018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1177
1178 * compile/compile-c.h (generate_c_for_variable_locations):
1179 Change reference to pointer.
1180 * compile/compile-c-support.c (compile_program) <compute>:
1181 Likewise.
1182 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1183 (generate_c_for_for_one_variable): Likewise
1184 (generate_c_for_variable_locations): Likewise
1185 * compile/compile-c-types.c (compile_c_instance::convert_type):
1186 Likewise
1187 * compile/compile-cplus-symbols.c (convert_one_symbol):
1188 std::move the scope passed to enter_scope.
1189 * compile/compile-cplus-types.c
1190 (compile_cplus_instance::enter_scope): Make parameter
1191 rvalue-reference.
1192 (compile_cplus_instance::new_scope): Change reference to
1193 pointer.
1194 (compile_cplus_instance::convert_type): Likewise
1195 (compile_cplus_convert_typedef): std::move the scope passed to
1196 enter_scope.
1197 (compile_cplus_convert_struct_or_union): Likewise.
1198 (compile_cplus_convert_enum): Likewise.
1199 (compile_cplus_convert_namespace): Likewise.
1200 * compile/compile-cplus.h (compile_cplus_instance)
1201 <enter_scope>: Make parameter rvalue-reference.
1202 * compile/compile-internal.h (compile_instance)
1203 <get_cached_type>: Likewise
1204 * compile/compile-loc2c.c (push): Likewise
1205 (pushf): Likewise
1206 (unary): Likewise
1207 (binary): Likewise
1208 (print_label): Likewise
1209 (pushf_register_address): Likewise
1210 (pushf_register): Likewise
1211 (do_compile_dwarf_expr_to_c): Likewise
1212 (compile_dwarf_expr_to_c): Likewise
1213 (compile_dwarf_bounds_to_c): Likewise
1214 * compile/compile.c (compile_instance::get_cached_type):
1215 Likewise
1216 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1217 (compile_dwarf_bounds_to_c): Likewise
1218 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1219 (dwarf2_compile_property_to_c): Likewise
1220 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1221 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1222 Likewise
1223
cc5a5ae5
SM
12242018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1225
1226 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1227 * tui/tui-data.c (init_content_element): Don't initialize it.
1228
137be540
SM
12292018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1230
1231 * tui/tui-data.h (struct tui_win_info)
1232 <detail::opaque>: Remove.
1233 * tui/tui-data.c (init_win_info): Remove assignment.
1234
f1628857
TT
12352018-09-05 Tom Tromey <tom@tromey.com>
1236
1237 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1238 -Wformat-nonliteral.
1239 * target-float.c (host_float_ops<T>::to_string)
1240 (host_float_ops<T>::from_string): Use
1241 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1242 * configure: Rebuild.
1243
af39b1c2
SM
12442018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1245
1246 * printcmd.c (printf_c_string): Use
1247 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1248 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1249
081bca4d
TT
12502018-09-05 Tom Tromey <tom@tromey.com>
1251
1252 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1253
e4a62c65
TV
12542018-09-05 Tom de Vries <tdevries@suse.de>
1255
1256 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1257 with resolve_abstract_p == true.
1258 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1259 defaulting to false. Propagate resolve_abstract_p to
1260 dwarf2_fetch_die_loc_sect_off.
1261 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1262 parameter, defaulting to false.
1263 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1264 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1265 parameter.
1266 * dwarf2read.h (struct die_info): Forward-declare.
1267 (die_info_ptr): New typedef.
1268 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1269
2b69821e
JB
12702018-09-05 Joel Brobecker <brobecker@adacore.com>
1271
1272 GDB 8.2 released.
1273
fcc9b044
SDJ
12742018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1275 Pedro Alves <palves@redhat.com>
1276
1277 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1278 "aclocal-m4-deps.mk". Include file here.
1279 $(srcdir)/aclocal.m4: Add "configure.ac".
1280 * gnulib/aclocal-m4-deps.mk: New file.
1281 * gnulib/update-gnulib.sh: Automatically update
1282 "aclocal-m4-deps.mk".
1283
d53d5436
TT
12842018-09-04 Tom Tromey <tom@tromey.com>
1285
1286 * configure: Rebuild.
1287 * configure.ac: Remove multi-ice code.
1288
8dc9fd87
TT
12892018-09-04 Tom Tromey <tom@tromey.com>
1290
1291 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1292 (ada-exp.o): Update.
1293
3322c5d9
TT
12942018-09-04 Tom Tromey <tom@tromey.com>
1295
1296 * Makefile.in (printcmd.o, target-float.o): Remove.
1297 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1298
ba2bf2aa
TT
12992018-09-04 Tom Tromey <tom@tromey.com>
1300
1301 * gnulib/Makefile.in: Remove obsolete comment.
1302 * Makefile.in: Remove obsolete comment.
1303
6c9d681b
AB
13042018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1305
1306 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1307 line with '+'.
1308
78a3b0fa
AB
13092018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1310
1311 * riscv-tdep.c: Add 'prologue-value.h' include.
1312 (struct riscv_unwind_cache): New struct.
1313 (riscv_debug_unwinder): New global.
1314 (riscv_scan_prologue): Update arguments, capture register details
1315 from prologue scan.
1316 (riscv_skip_prologue): Reformat arguments line, move end of
1317 prologue calculation into riscv_scan_prologue.
1318 (riscv_frame_cache): Update return type, create
1319 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1320 details.
1321 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1322 (riscv_frame_prev_register): Use the trad_frame within the
1323 riscv_unwind_cache.
1324 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1325 flag.
1326
23e60e7a
AB
13272018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1328
1329 * trad-frame.h (trad_frame_set_realreg): Declare.
1330 (trad_frame_set_addr): Declare.
1331 * trad-frame.c (trad_frame_set_realreg): Define new function.
1332 (trad_frame_set_addr): Define new function.
1333 (trad_frame_set_reg_realreg): Use new function.
1334 (trad_frame_set_reg_addr): Use new function.
1335
5c889512
KS
13362018-09-01 Keith Seitz <keiths@redhat.com>
1337
1338 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1339 pulongest instead of "%lld".
1340 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1341 ATTRIBUTE_UNUSED.
1342
c8c81635
TT
13432018-08-31 Tom Tromey <tom@tromey.com>
1344
1345 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1346 variant part type.
1347
0c888588
PA
13482018-08-31 Pedro Alves <palves@redhat.com>
1349
1350 * gdbarch.h: Regenerate.
1351
7ea65f08
PA
13522018-08-31 Pedro Alves <palves@redhat.com>
1353
1354 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1355 * target.h (Hardware watchpoint interfaces): Describe
1356 continuable/steppable/non-steppable watchpoints.
1357 * gdbarch.h, gdbarch.c: Regenerate.
1358
7eb65faf
PA
13592018-08-31 Pedro Alves <palves@redhat.com>
1360
1361 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1362 Delete.
1363 * s390-linux-nat.c
1364 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1365 * target.h (target_ops::have_continuable_watchpoint): Delete.
1366 (target_have_continuable_watchpoint): Delete.
1367 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1368 * target-delegates.c: Regenerate.
1369
dab999b1
SDJ
13702018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1371
1372 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1373 the files present in "gnulib/import/m4/".
1374
ff3a05b3
AB
13752018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1376
1377 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1378 c.sw, c.swsp, and c.sdsp.
1379
0b3f9efc
AB
13802018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1381
1382 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1383 (riscv_read_misa_reg): Don't cache value read into inferior data.
1384 (riscv_new_inferior_data): Delete.
1385 (riscv_inferior_data_cleanup): Delete.
1386 (riscv_inferior_data): Delete.
1387 (riscv_invalidate_inferior_data): Delete.
1388 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1389
a0dc02a6
SM
13902018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1391
1392 * compile/compile-cplus-types.c
1393 (compile_cplus_instance::leave_scope): Take the address of scope
1394 object.
1395 (compile_cplus_instance::convert_qualified_base): Compare quals
1396 to 0.
1397
fdad7678
KS
13982018-08-30 Keith Seitz <keiths@redhat.com>
1399
1400 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1401 Use "%s" and host_address_to_string instead of "%p" in printf.
1402
078a0207
KS
14032018-08-29 Keith Seitz <keiths@redhat.com>
1404
1405 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1406 and compile-cplus-types.c.
1407 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1408 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1409 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1410 Declare.
1411 * compile/compile-c-support.c: Include compile-cplus.h.
1412 (load_libcompile): Templatize.
1413 (get_compile_context): "New" function.
1414 (c_get_compile_context): Use get_compile_context.
1415 (cplus_get_compile_context): New function.
1416 (cplus_push_user_expression, cplus_pop_user_expression)
1417 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1418 (cplus_compute_program): Define new structs/functions.
1419 * compile/compile-cplus-symmbols.c: New file.
1420 * compile/compile-cplus-types.c: New file.
1421 * compile/compile-cplus.h: New file.
1422 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1423 Declare.
1424 * compile/compile-object-load.c (get_out_value_type): Use
1425 strncmp_iw when comparing symbol names.
1426 (compile_object_load): Add mst_bss and mst_data.
1427 * compile/compile.c (_initialize_compile): Remove
1428 -Wno-implicit-function-declaration from `compile_args'.
1429 * compile/gcc-cp-plugin.h: New file.
1430 * NEWS: Mention C++ compile support and new debug options.
1431
fcaad03c
KS
14322018-08-29 Keith Seitz <keiths@redhat.com>
1433
1434 * linespec.c (collect_info::add_symbol): Make virtual.
1435 (struct symbol_searcher_collect_info): New struct.
1436 (symbol_searcher::find_all_symbols): New method.
1437 * symtab.h (class symbol_searcher): New class.
1438
7e41c8db
KS
14392018-08-29 Keith Seitz <keiths@redhat.com>
1440
1441 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1442 Change to vector of block_symbol. Update all users.
1443 (struct collect_info) <symbols>: Likewise.
1444 (collect_info::add_symbol): Take block_symbol as argument.
1445 Update all callers.
1446 (decode_compound_collector) <m_symbols>: Change type to vector
1447 of block_symbol. Update all users.
1448 (decode_compound_collector::operator ()): Change parameter type
1449 to block_symbol.
1450 (find_method, find_function_symbols, find_linespec_symbols)
1451 (find_label_symbols_in_block, find_label_symbols): Change symbol
1452 vectors to block_symbol vectors.
1453 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1454 block_symbol.
1455
63e8c3da
KS
14562018-08-29 Keith Seitz <keiths@redhat.com>
1457
1458 * linespec.c (symbolp): Remove typedef and VEC definitions.
1459 (bound_minimal_symbol_d): Likewise.
1460
4dedf84d
KS
14612018-08-29 Keith Seitz <keiths@redhat.com>
1462
1463 * linespec.c (decode_compound_collector::decode_compound_collector):
1464 Remove initialization for `m_symtabs'.
1465 (decode_compound_collector::release_symbols): Change return type
1466 to std::vector. Update all callers.
1467 (class decode_compound_collector) <m_symbols>: Change type to
1468 std::vector.
1469 (lookup_prefix_sym): Change return type to std::vector. Update all
1470 callers.
1471 (compare_symbols): Remove.
1472 (std_compare_symbols): Rename to `compare_symbols'.
1473 (find_method): Change `sym_classes' parameter to std::vector.
1474 Update all callers. Use std::sort to sort sym_classes.
1475 (find_linespec_symbols): Remove cleanup.
1476
c2a031c5
KS
14772018-08-29 Keith Seitz <keiths@redhat.com>
1478
1479 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1480 std::vector. Update all users.
1481 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1482 (struct collect_info) <minimal_symbols>: Likewise.
1483 (compare_msymbols): Return bool. Change parameters to const
1484 bound_minimal_symbol references.
1485 (find_method, find_function_symbols, find_linespec_symbols): Change
1486 `minsyms' parameter to std::vector. Update all callers.
1487
3553eadc
KS
14882018-08-29 Keith Seitz <keiths@redhat.com>
1489
1490 * linespec.c (struct linespec) <label_symbols>: Change type to
1491 std::vector. Update all users.
1492 (find_label_symbols_in_block): Change `result' parameter to
1493 std::vector. Update all callers.
1494 (find_label_symbols): Return std::vector. Update all callers.
1495
7243d011
KS
14962018-08-29 Keith Seitz <keiths@redhat.com>
1497
1498 * linespec.c (struct linespec) <function_symbols>: Change type to
1499 std::vector. Update all users.
1500 (struct collect_info) <function_symbols>: Likewise.
1501 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1502 (std_compare_symbols): New function.
1503 (find_method, find_function_symbols, find_linespec_symbols)
1504 (find_label_symbols_in_block): Change `symbols' parameter to
1505 std::vector. Update all callers.
1506 (find_label_symbols): Likewise for `function_symbols' and
1507 `label_funcs_ret'.
1508
2a908241
KS
15092018-08-29 Keith Seitz <keiths@redhat.com>
1510
1511 * linespec.c (symtab_vector_up): Define.
1512 (struct linespec) <file_symtabs>: Change type to std::vector *.
1513 Update all uses.
1514 (struct collect_info) <file_symtabs>: Likewise.
1515 (collect_symtabs_from_filename): Return symtab_vector_up.
1516 Update all callers.
1517 (decode_objc): Remove cleanup.
1518 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1519 (symtab_collector::release_symtabs): Return symtab_vector_up.
1520 Update all callers.
1521 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1522 Update all users.
1523 (collect_symtabs_from_filename, symtabs_from_filename): Return
1524 symtab_vector_up. Update all callers.
1525
f6c4e3e8
TT
15262018-08-29 Tom Tromey <tom@tromey.com>
1527
1528 * csky-tdep.c (csky_analyze_prologue): Use
1529 core_addr_to_string_nz.
1530
73c13fe6
TT
15312018-08-29 Tom Tromey <tom@tromey.com>
1532
1533 * windows-nat.c (struct xlate_exception) <them>: Change type to
1534 DWORD.
1535 (xlate): Fix formatting. Remove last entry.
1536 (struct xlate_exception, xlate): Comment out.
1537 (windows_nat_target::resume): Use ranged for.
1538
4d3928d7
JW
15392018-08-29 Jim Wilson <jimw@sifive.com>
1540
1541 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1542 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1543 of NT_PRFPREG.
1544 (riscv_linux_nat_target::store_registers): Likewise.
1545
7a6dbc2f
SDJ
15462018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1547
1548 PR gdb/23555
1549 PR gdb/23558
1550 * gnulib/aclocal.m4: Regenerate.
1551 * gnulib/config.in: Regenerate.
1552 * gnulib/configure: Regenerate.
1553 * gnulib/import/Makefile.am: Update.
1554 * gnulib/import/Makefile.in: Update.
1555 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1556 * gnulib/import/_Noreturn.h: ... this.
1557 * gnulib/import/alloca.in.h: Update.
1558 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1559 * gnulib/import/arg-nonnull.h: ... this.
1560 * gnulib/import/assure.h: Update.
1561 * gnulib/import/at-func.c: Update.
1562 * gnulib/import/basename-lgpl.c: Update.
1563 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1564 * gnulib/import/c++defs.h: ... this.
1565 * gnulib/import/canonicalize-lgpl.c: Update.
1566 * gnulib/import/cdefs.h: Update.
1567 * gnulib/import/chdir-long.c: Update.
1568 * gnulib/import/chdir-long.h: Update.
1569 * gnulib/import/cloexec.c: Update.
1570 * gnulib/import/cloexec.h: Update.
1571 * gnulib/import/close.c: Update.
1572 * gnulib/import/closedir.c: Update.
1573 * gnulib/import/config.charset: Update.
1574 * gnulib/import/dirent-private.h: Update.
1575 * gnulib/import/dirent.in.h: Update.
1576 * gnulib/import/dirfd.c: Update.
1577 * gnulib/import/dirname-lgpl.c: Update.
1578 * gnulib/import/dirname.h: Update.
1579 * gnulib/import/dosname.h: Update.
1580 * gnulib/import/dup-safer-flag.c: Update.
1581 * gnulib/import/dup-safer.c: Update.
1582 * gnulib/import/dup.c: Update.
1583 * gnulib/import/dup2.c: Update.
1584 * gnulib/import/errno.in.h: Update.
1585 * gnulib/import/error.c: Update.
1586 * gnulib/import/error.h: Update.
1587 * gnulib/import/exitfail.c: Update.
1588 * gnulib/import/exitfail.h: Update.
1589 * gnulib/import/extra/update-copyright: Update.
1590 * gnulib/import/fchdir.c: Update.
1591 * gnulib/import/fcntl.c: Update.
1592 * gnulib/import/fcntl.in.h: Update.
1593 * gnulib/import/fd-hook.c: Update.
1594 * gnulib/import/fd-hook.h: Update.
1595 * gnulib/import/fd-safer-flag.c: Update.
1596 * gnulib/import/fd-safer.c: Update.
1597 * gnulib/import/fdopendir.c: Update.
1598 * gnulib/import/filename.h: Update.
1599 * gnulib/import/filenamecat-lgpl.c: Update.
1600 * gnulib/import/filenamecat.h: Update.
1601 * gnulib/import/flexmember.h: Update.
1602 * gnulib/import/float+.h: Update.
1603 * gnulib/import/float.c: Update.
1604 * gnulib/import/float.in.h: Update.
1605 * gnulib/import/fnmatch.c: Update.
1606 * gnulib/import/fnmatch.in.h: Update.
1607 * gnulib/import/fnmatch_loop.c: Update.
1608 * gnulib/import/fpucw.h: Update.
1609 * gnulib/import/frexp.c: Update.
1610 * gnulib/import/frexpl.c: Update.
1611 * gnulib/import/fstat.c: Update.
1612 * gnulib/import/fstatat.c: Update.
1613 * gnulib/import/getcwd-lgpl.c: Update.
1614 * gnulib/import/getcwd.c: Update.
1615 * gnulib/import/getdtablesize.c: Update.
1616 * gnulib/import/getlogin_r.c: Update.
1617 * gnulib/import/getprogname.c: Update.
1618 * gnulib/import/getprogname.h: Update.
1619 * gnulib/import/gettext.h: Update.
1620 * gnulib/import/gettimeofday.c: Update.
1621 * gnulib/import/glob-libc.h: Update.
1622 * gnulib/import/glob.c: Update.
1623 * gnulib/import/glob.in.h: Update.
1624 * gnulib/import/glob_internal.h: Update.
1625 * gnulib/import/glob_pattern_p.c: Update.
1626 * gnulib/import/globfree.c: Update.
1627 * gnulib/import/hard-locale.c: Update.
1628 * gnulib/import/hard-locale.h: Update.
1629 * gnulib/import/intprops.h: Update.
1630 * gnulib/import/inttypes.in.h: Update.
1631 * gnulib/import/isnan.c: Update.
1632 * gnulib/import/isnand-nolibm.h: Update.
1633 * gnulib/import/isnand.c: Update.
1634 * gnulib/import/isnanl-nolibm.h: Update.
1635 * gnulib/import/isnanl.c: Update.
1636 * gnulib/import/itold.c: Update.
1637 * gnulib/import/libc-config.h: Update.
1638 * gnulib/import/limits.in.h: Update.
1639 * gnulib/import/localcharset.c: Update.
1640 * gnulib/import/localcharset.h: Update.
1641 * gnulib/import/localtime-buffer.c: Update.
1642 * gnulib/import/localtime-buffer.h: Update.
1643 * gnulib/import/lstat.c: Update.
1644 * gnulib/import/m4/00gnulib.m4: Update.
1645 * gnulib/import/m4/__inline.m4: Update.
1646 * gnulib/import/m4/absolute-header.m4: Update.
1647 * gnulib/import/m4/alloca.m4: Update.
1648 * gnulib/import/m4/builtin-expect.m4: Update.
1649 * gnulib/import/m4/canonicalize.m4: Update.
1650 * gnulib/import/m4/chdir-long.m4: Update.
1651 * gnulib/import/m4/close.m4: Update.
1652 * gnulib/import/m4/closedir.m4: Update.
1653 * gnulib/import/m4/configmake.m4: Update.
1654 * gnulib/import/m4/d-ino.m4: Update.
1655 * gnulib/import/m4/d-type.m4: Update.
1656 * gnulib/import/m4/dirent_h.m4: Update.
1657 * gnulib/import/m4/dirfd.m4: Update.
1658 * gnulib/import/m4/dirname.m4: Update.
1659 * gnulib/import/m4/double-slash-root.m4: Update.
1660 * gnulib/import/m4/dup.m4: Update.
1661 * gnulib/import/m4/dup2.m4: Update.
1662 * gnulib/import/m4/eealloc.m4: Update.
1663 * gnulib/import/m4/environ.m4: Update.
1664 * gnulib/import/m4/errno_h.m4: Update.
1665 * gnulib/import/m4/error.m4: Update.
1666 * gnulib/import/m4/exponentd.m4: Update.
1667 * gnulib/import/m4/exponentl.m4: Update.
1668 * gnulib/import/m4/extensions.m4: Update.
1669 * gnulib/import/m4/extern-inline.m4: Update.
1670 * gnulib/import/m4/fchdir.m4: Update.
1671 * gnulib/import/m4/fcntl-o.m4: Update.
1672 * gnulib/import/m4/fcntl.m4: Update.
1673 * gnulib/import/m4/fcntl_h.m4: Update.
1674 * gnulib/import/m4/fdopendir.m4: Update.
1675 * gnulib/import/m4/filenamecat.m4: Update.
1676 * gnulib/import/m4/flexmember.m4: Update.
1677 * gnulib/import/m4/float_h.m4: Update.
1678 * gnulib/import/m4/fnmatch.m4: Update.
1679 * gnulib/import/m4/fnmatch_h.m4: Update.
1680 * gnulib/import/m4/fpieee.m4: Update.
1681 * gnulib/import/m4/frexp.m4: Update.
1682 * gnulib/import/m4/frexpl.m4: Update.
1683 * gnulib/import/m4/fstat.m4: Update.
1684 * gnulib/import/m4/fstatat.m4: Update.
1685 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1686 * gnulib/import/m4/getcwd-path-max.m4: Update.
1687 * gnulib/import/m4/getcwd.m4: Update.
1688 * gnulib/import/m4/getdtablesize.m4: Update.
1689 * gnulib/import/m4/getlogin.m4: Update.
1690 * gnulib/import/m4/getlogin_r.m4: Update.
1691 * gnulib/import/m4/getpagesize.m4: Update.
1692 * gnulib/import/m4/getprogname.m4: Update.
1693 * gnulib/import/m4/gettimeofday.m4: Update.
1694 * gnulib/import/m4/glibc21.m4: Update.
1695 * gnulib/import/m4/glob.m4: Update.
1696 * gnulib/import/m4/glob_h.m4: Update.
1697 * gnulib/import/m4/gnulib-cache.m4: Update.
1698 * gnulib/import/m4/gnulib-common.m4: Update.
1699 * gnulib/import/m4/gnulib-comp.m4: Update.
1700 * gnulib/import/m4/gnulib-tool.m4: Update.
1701 * gnulib/import/m4/hard-locale.m4: Update.
1702 * gnulib/import/m4/include_next.m4: Update.
1703 * gnulib/import/m4/inttypes-pri.m4: Update.
1704 * gnulib/import/m4/inttypes.m4: Update.
1705 * gnulib/import/m4/isnand.m4: Update.
1706 * gnulib/import/m4/isnanl.m4: Update.
1707 * gnulib/import/m4/largefile.m4: Update.
1708 * gnulib/import/m4/limits-h.m4: Update.
1709 * gnulib/import/m4/localcharset.m4: Update.
1710 * gnulib/import/m4/locale-fr.m4: Update.
1711 * gnulib/import/m4/locale-ja.m4: Update.
1712 * gnulib/import/m4/locale-zh.m4: Update.
1713 * gnulib/import/m4/localtime-buffer.m4: Update.
1714 * gnulib/import/m4/longlong.m4: Update.
1715 * gnulib/import/m4/lstat.m4: Update.
1716 * gnulib/import/m4/malloc.m4: Update.
1717 * gnulib/import/m4/malloca.m4: Update.
1718 * gnulib/import/m4/math_h.m4: Update.
1719 * gnulib/import/m4/mbrtowc.m4: Update.
1720 * gnulib/import/m4/mbsinit.m4: Update.
1721 * gnulib/import/m4/mbsrtowcs.m4: Update.
1722 * gnulib/import/m4/mbstate_t.m4: Update.
1723 * gnulib/import/m4/memchr.m4: Update.
1724 * gnulib/import/m4/memmem.m4: Update.
1725 * gnulib/import/m4/mempcpy.m4: Update.
1726 * gnulib/import/m4/memrchr.m4: Update.
1727 * gnulib/import/m4/mkdir.m4: Update.
1728 * gnulib/import/m4/mkstemp.m4: Update.
1729 * gnulib/import/m4/mmap-anon.m4: Update.
1730 * gnulib/import/m4/mode_t.m4: Update.
1731 * gnulib/import/m4/msvc-inval.m4: Update.
1732 * gnulib/import/m4/msvc-nothrow.m4: Update.
1733 * gnulib/import/m4/multiarch.m4: Update.
1734 * gnulib/import/m4/nocrash.m4: Update.
1735 * gnulib/import/m4/off_t.m4: Update.
1736 * gnulib/import/m4/onceonly.m4: Update.
1737 * gnulib/import/m4/open-cloexec.m4: Update.
1738 * gnulib/import/m4/open.m4: Update.
1739 * gnulib/import/m4/openat.m4: Update.
1740 * gnulib/import/m4/opendir.m4: Update.
1741 * gnulib/import/m4/pathmax.m4: Update.
1742 * gnulib/import/m4/rawmemchr.m4: Update.
1743 * gnulib/import/m4/readdir.m4: Update.
1744 * gnulib/import/m4/readlink.m4: Update.
1745 * gnulib/import/m4/realloc.m4: Update.
1746 * gnulib/import/m4/rename.m4: Update.
1747 * gnulib/import/m4/rewinddir.m4: Update.
1748 * gnulib/import/m4/rmdir.m4: Update.
1749 * gnulib/import/m4/save-cwd.m4: Update.
1750 * gnulib/import/m4/secure_getenv.m4: Update.
1751 * gnulib/import/m4/setenv.m4: Update.
1752 * gnulib/import/m4/signal_h.m4: Update.
1753 * gnulib/import/m4/ssize_t.m4: Update.
1754 * gnulib/import/m4/stat-time.m4: Update.
1755 * gnulib/import/m4/stat.m4: Update.
1756 * gnulib/import/m4/std-gnu11.m4: Update.
1757 * gnulib/import/m4/stdbool.m4: Update.
1758 * gnulib/import/m4/stddef_h.m4: Update.
1759 * gnulib/import/m4/stdint.m4: Update.
1760 * gnulib/import/m4/stdio_h.m4: Update.
1761 * gnulib/import/m4/stdlib_h.m4: Update.
1762 * gnulib/import/m4/strchrnul.m4: Update.
1763 * gnulib/import/m4/strdup.m4: Update.
1764 * gnulib/import/m4/strerror.m4: Update.
1765 * gnulib/import/m4/string_h.m4: Update.
1766 * gnulib/import/m4/strstr.m4: Update.
1767 * gnulib/import/m4/strtok_r.m4: Update.
1768 * gnulib/import/m4/sys_socket_h.m4: Update.
1769 * gnulib/import/m4/sys_stat_h.m4: Update.
1770 * gnulib/import/m4/sys_time_h.m4: Update.
1771 * gnulib/import/m4/sys_types_h.m4: Update.
1772 * gnulib/import/m4/tempname.m4: Update.
1773 * gnulib/import/m4/time_h.m4: Update.
1774 * gnulib/import/m4/unistd-safer.m4: Update.
1775 * gnulib/import/m4/unistd_h.m4: Update.
1776 * gnulib/import/m4/warn-on-use.m4: Update.
1777 * gnulib/import/m4/wchar_h.m4: Update.
1778 * gnulib/import/m4/wchar_t.m4: Update.
1779 * gnulib/import/m4/wctype_h.m4: Update.
1780 * gnulib/import/m4/wint_t.m4: Update.
1781 * gnulib/import/malloc.c: Update.
1782 * gnulib/import/malloc/scratch_buffer.h: Update.
1783 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1784 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1785 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1786 * gnulib/import/malloca.c: Update.
1787 * gnulib/import/malloca.h: Update.
1788 * gnulib/import/malloca.valgrind: Update.
1789 * gnulib/import/math.in.h: Update.
1790 * gnulib/import/mbrtowc.c: Update.
1791 * gnulib/import/mbsinit.c: Update.
1792 * gnulib/import/mbsrtowcs-impl.h: Update.
1793 * gnulib/import/mbsrtowcs-state.c: Update.
1794 * gnulib/import/mbsrtowcs.c: Update.
1795 * gnulib/import/memchr.c: Update.
1796 * gnulib/import/memmem.c: Update.
1797 * gnulib/import/mempcpy.c: Update.
1798 * gnulib/import/memrchr.c: Update.
1799 * gnulib/import/mkdir.c: Update.
1800 * gnulib/import/mkstemp.c: Update.
1801 * gnulib/import/msvc-inval.c: Update.
1802 * gnulib/import/msvc-inval.h: Update.
1803 * gnulib/import/msvc-nothrow.c: Update.
1804 * gnulib/import/msvc-nothrow.h: Update.
1805 * gnulib/import/open.c: Update.
1806 * gnulib/import/openat-die.c: Update.
1807 * gnulib/import/openat-priv.h: Update.
1808 * gnulib/import/openat-proc.c: Update.
1809 * gnulib/import/openat.c: Update.
1810 * gnulib/import/openat.h: Update.
1811 * gnulib/import/opendir.c: Update.
1812 * gnulib/import/pathmax.h: Update.
1813 * gnulib/import/pipe-safer.c: Update.
1814 * gnulib/import/rawmemchr.c: Update.
1815 * gnulib/import/readdir.c: Update.
1816 * gnulib/import/readlink.c: Update.
1817 * gnulib/import/realloc.c: Update.
1818 * gnulib/import/ref-add.sin: Update.
1819 * gnulib/import/ref-del.sin: Update.
1820 * gnulib/import/rename.c: Update.
1821 * gnulib/import/rewinddir.c: Update.
1822 * gnulib/import/rmdir.c: Update.
1823 * gnulib/import/same-inode.h: Update.
1824 * gnulib/import/save-cwd.c: Update.
1825 * gnulib/import/save-cwd.h: Update.
1826 * gnulib/import/scratch_buffer.h: Update.
1827 * gnulib/import/secure_getenv.c: Update.
1828 * gnulib/import/setenv.c: Update.
1829 * gnulib/import/signal.in.h: Update.
1830 * gnulib/import/stat-time.c: Update.
1831 * gnulib/import/stat-time.h: Update.
1832 * gnulib/import/stat-w32.c: Update.
1833 * gnulib/import/stat-w32.h: Update.
1834 * gnulib/import/stat.c: Update.
1835 * gnulib/import/stdbool.in.h: Update.
1836 * gnulib/import/stddef.in.h: Update.
1837 * gnulib/import/stdint.in.h: Update.
1838 * gnulib/import/stdio.in.h: Update.
1839 * gnulib/import/stdlib.in.h: Update.
1840 * gnulib/import/str-two-way.h: Update.
1841 * gnulib/import/strchrnul.c: Update.
1842 * gnulib/import/strdup.c: Update.
1843 * gnulib/import/streq.h: Update.
1844 * gnulib/import/strerror-override.c: Update.
1845 * gnulib/import/strerror-override.h: Update.
1846 * gnulib/import/strerror.c: Update.
1847 * gnulib/import/string.in.h: Update.
1848 * gnulib/import/stripslash.c: Update.
1849 * gnulib/import/strnlen1.c: Update.
1850 * gnulib/import/strnlen1.h: Update.
1851 * gnulib/import/strstr.c: Update.
1852 * gnulib/import/strtok_r.c: Update.
1853 * gnulib/import/sys_stat.in.h: Update.
1854 * gnulib/import/sys_time.in.h: Update.
1855 * gnulib/import/sys_types.in.h: Update.
1856 * gnulib/import/tempname.c: Update.
1857 * gnulib/import/tempname.h: Update.
1858 * gnulib/import/time.in.h: Update.
1859 * gnulib/import/unistd--.h: Update.
1860 * gnulib/import/unistd-safer.h: Update.
1861 * gnulib/import/unistd.in.h: Update.
1862 * gnulib/import/unsetenv.c: Update.
1863 * gnulib/import/verify.h: Update.
1864 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1865 * gnulib/import/wchar.in.h: Update.
1866 * gnulib/import/wctype.in.h: Update.
1867 * gnulib/import/xalloc-oversized.h: Update.
1868 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1869 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1870
b0f492b9
GB
18712018-08-16 Gary Benson <gbenson@redhat.com>
1872
1873 PR gdb/13000:
1874 * gdb/main.c (captured_main_1): Exit with nonzero status
1875 in batch mode if the last command to be executed failed.
1876 * NEWS: Mention the above.
1877
2362e7f7
SM
18782018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1879
1880 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1881 end of warning message.
1882
4f4aedeb
AH
18832018-08-29 Alan Hayward <alan.hayward@arm.com>
1884
1885 PR gdb/22943:
1886 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1887 (aarch64_extract_return_value): Use
1888 aapcs_is_vfp_call_or_return_candidate.
1889 (aarch64_return_in_memory): Likewise.
1890 (aarch64_store_return_value): Likewise.
1891
0e745c60
AH
18922018-08-29 Alan Hayward <alan.hayward@arm.com>
1893
1894 * aarch64-tdep.c
1895 (aapcs_is_vfp_call_or_return_candidate): Make static
1896 (pass_in_v_or_stack): Remove function.
1897 (pass_in_v_vfp_candidate): New function.
1898 (aarch64_push_dummy_call): Check for float register candidates.
1899
ea92689a
AH
19002018-08-29 Alan Hayward <alan.hayward@arm.com>
1901
1902 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1903 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1904 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1905
ad202fcc
SM
19062018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1907
1908 PR build/23399
1909 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1910 (struct ipa_sym_addresses): Rename to...
1911 (struct ipa_sym_addresses_common): ... this.
1912 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1913
5fe3f3e4
TT
19142018-08-28 Tom Tromey <tom@tromey.com>
1915
1916 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1917 (token_fifo): Now a std::vector.
1918 (yylex, c_parse): Update.
1919 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1920 (token_fifo): Now a std::vector.
1921 (yylex, d_parse): Update.
1922 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1923 (token_fifo): Now a std::vector.
1924 (yylex, go_parse): Update.
1925
858d8004
SM
19262018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1927
1928 * parser-defs.h (struct type_stack) <elements>: Change type to
1929 std::vector<union type_stack_elt>.
1930 <depth, size>: Remove.
1931 * parse.c (parse_exp_in_context_1): Adjust.
1932 (type_stack_reserve): Remove.
1933 (check_type_stack_depth): Remove.
1934 (insert_into_type_stack): Adjust to std::vector.
1935 (insert_type): Likewise.
1936 (push_type): Likewise.
1937 (push_type_int): Likewise.
1938 (insert_type_address_space): Likewise.
1939 (pop_type): Likewise.
1940 (pop_type_int): Likewise.
1941 (pop_typelist): Likewise.
1942 (pop_type_stack): Likewise.
1943 (append_type_stack): Likewise.
1944 (push_type_stack): Likewise.
1945 (get_type_stack): Likewise.
1946 (type_stack_cleanup): Likewise.
1947 (push_typelist): Likewise.
1948 (follow_types): Likewise.
1949 (_initialize_parse): Likewise.
1950
416a69af
HAQ
19512018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1952
1953 * NEWS: Mention csky target.
1954
9d24df82
HAQ
19552018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1956 Hafiz Abid Qadeer <abidh@codesourcery.com>
1957 Don Breazeal <donb@codesourcery.com>
1958
1959 * csky-linux-tdep.c: New file.
1960 * csky-tdep.c: Likewise.
1961 * csky-tdep.h: Likewise.
1962 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1963 csky-tdep.o.
1964 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1965 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1966 * configure.tgt: Add csky support.
1967
3bf9c013
JV
19682018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1969
1970 * python/py-framefilter.c (py_print_frame): Print frame architecture
1971 when printing on an MI output.
1972
d3d8724a
TT
19732018-08-27 Tom Tromey <tom@tromey.com>
1974
1975 PR build/23087:
1976 * configure: Rebuild.
1977 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1978
1885053b
TT
19792018-08-27 Tom Tromey <tom@tromey.com>
1980
1981 * aarch64-linux-tdep.c
1982 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1983 casts to int.
1984
8406672e
TT
19852018-08-27 Tom Tromey <tom@tromey.com>
1986
1987 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1988 unsigned.
1989 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1990 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1991 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1992 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1993 unsigned.
1994
ec40cf90
TT
19952018-08-27 Tom Tromey <tom@tromey.com>
1996
1997 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1998 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1999
7bc02706
TT
20002018-08-27 Tom Tromey <tom@tromey.com>
2001
2002 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2003 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2004 ULONGEST_MAX.
2005 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2006 ULONGEST_MAX.
2007 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2008 ULONGEST_MAX.
2009 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2010 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2011 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2012 ULONGEST_MAX.
2013 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2014 (ppc64_linux_sigaction_tramp_frame)
2015 (ppc32_linux_sighandler_tramp_frame)
2016 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2017 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2018 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2019 * mn10300-linux-tdep.c (am33_linux_sigframe)
2020 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2021 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2022 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2023 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2024 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2025 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2026 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2027 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2028 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2029 * microblaze-linux-tdep.c
2030 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2031 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2032 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2033 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2034 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2035 * common/common-types.h (ULONGEST_MAX): New define.
2036 (CORE_ADDR_MAX): Fix formatting.
2037 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2038 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2039 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2040 (arm_linux_rt_sigreturn_tramp_frame)
2041 (arm_eabi_linux_sigreturn_tramp_frame)
2042 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2043 (thumb2_eabi_linux_sigreturn_tramp_frame)
2044 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2045 (arm_linux_restart_syscall_tramp_frame)
2046 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2047 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2048 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2049 ULONGEST_MAX.
2050 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2051
70ab8ccd
TT
20522018-08-27 Tom Tromey <tom@tromey.com>
2053
2054 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2055 CORE_ADDR_MAX.
2056 * mips-tdep.c (mips_deal_with_atomic_sequence)
2057 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2058 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2059 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2060 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2061 CORE_ADDR_MAX.
2062 * aarch64-tdep.c (aarch64_software_single_step): Use
2063 CORE_ADDR_MAX.
2064
896a7aa6
TT
20652018-08-27 Tom Tromey <tom@tromey.com>
2066
2067 * linespec.c (complete_linespec_component): Add cast to "char".
2068 * completer.c (completion_tracker::build_completion_result): Add
2069 cast to "char".
2070
dd33d41d
SM
20712018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2072
2073 * solist.h (struct solist, struct target_so_ops): Fix
2074 indentation.
2075
c645cda4
SM
20762018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2077
2078 * ada-tasks.c (ada_task_info_s): Remove typedef.
2079 (DEF_VEC_O(ada_task_info_s)): Remove.
2080 (struct ada_tasks_inferior_data): Initialize fields.
2081 <task_list>: Make an std::vector.
2082 (get_ada_tasks_inferior_data): Allocate with new.
2083 (ada_get_task_number): Adjust.
2084 (get_task_number_from_id): Likewise.
2085 (valid_task_id): Likewise.
2086 (ada_get_task_info_from_ptid): Likewise.
2087 (iterate_over_live_ada_tasks): Likewise.
2088 (add_ada_task): Likewise.
2089 (read_known_tasks): Likewise.
2090 (ada_build_task_list): Likewise.
2091 (print_ada_task_info): Likewise.
2092 (info_task): Likewise.
2093 (task_command_1): Likewise.
2094
39e7af3e
SM
20952018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2096
2097 * ada-lang.c (add_angle_brackets): Return std::string.
2098
bbbbbcee
SM
20992018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2100
2101 * python/py-threadevent.c (py_get_event_thread): Initialize
2102 pythread.
2103
d98fc15b
PA
21042018-08-24 Pedro Alves <palves@redhat.com>
2105
2106 * python/py-bpevent.c (create_breakpoint_event_object): Use
2107 copy-initialization.
2108 * python/py-continueevent.c (emit_continue_event): Use
2109 copy-initialization.
2110 * python/py-exitedevent.c (create_exited_event_object): Return a
2111 gdbpy_ref<>.
2112 (emit_exited_event): Use copy-initialization.
2113 * python/py-inferior.c (python_new_inferior)
2114 (python_inferior_deleted, add_thread_object): Use
2115 copy-initialization.
2116 * python/py-infevents.c (create_inferior_call_event_object)
2117 (create_register_changed_event_object)
2118 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2119 (emit_inferior_call_event, emit_memory_changed_event)
2120 (emit_register_changed_event): Use copy-initialization.
2121 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2122 Return a gdbpy_ref<>.
2123 (emit_new_objfile_event): Use copy-initialization.
2124 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2125 (emit_clear_objfiles_event): Use copy-initialization.
2126 * python/py-signalevent.c (create_signal_event_object): Use
2127 copy-initialization.
2128 * python/py-threadevent.c (create_thread_event_object): Use
2129 copy-initialization.
2130
da3c8738
PA
21312018-08-24 Pedro Alves <palves@redhat.com>
2132 Simon Marchi <simon.marchi@ericsson.com>
2133
2134 PR gdb/23379
2135 * python/py-continueevent.c: Include "gdbthread.h".
2136 (create_continue_event_object): Add intro comment. Add 'ptid'
2137 parameter. Use it to find thread to pass to
2138 create_thread_event_object.
2139 (emit_continue_event): Pass PTID down to
2140 create_continue_event_object.
2141 * python/py-event.h (py_get_event_thread): Declare.
2142 (create_thread_event_object): Remove default from 'thread'
2143 parameter.
2144 * python/py-stopevent.c (create_stop_event_object): Use
2145 py_get_event_thread.
2146 * python/py-threadevent.c (get_event_thread): Rename to ...
2147 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2148 and use it to find the thread.
2149 (create_thread_event_object): Assert that THREAD isn't null.
2150 Don't find the event thread here.
2151
26457a9c
KB
21522018-08-23 Kevin Buettner <kevinb@redhat.com>
2153
2154 * block.h (blockrange, blockranges): New struct declarations.
2155 (struct block): Add new field named `ranges'.
2156 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2157 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2158 macros for accessing ranges in struct block.
2159 (make_blockranges): New declaration.
2160 block.c (make_blockranges): New function.
2d5f09ec
KB
2161 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2162 for block.
fc811edd
KB
2163 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2164 * blockframe.c (cache_pc_function_block): New static global.
2165 (clear_pc_function_cache): Clear cache_pc_function_block.
2166 (find_pc_partial_function): Move comment to symtab.h. Add
2167 support for non-contiguous blocks.
e9480230
KB
2168 * cli/cli-cmds.c (block.h): Include.
2169 (print_disassembly): Handle printing of non-contiguous blocks.
2170 (disassemble_current_function): Likewise.
2171 (disassemble_command): Likewise.
26457a9c 2172
2b1ffcfd
KB
2173 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2174 BLOCK_START.
2175 * blockframe.c (get_pc_function_start): Likewise.
2176 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2177 (gcc_symbol_address): Likewise.
2178 * compile/compile-object-run.c (compile_object_run): Likewise.
2179 * compile/compile.c (get_expr_block_and_pc): Likewise.
2180 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2181 (func_addr_to_tail_call_list): Likewise.
2182 * findvar.c (default_read_var_value): Likewise.
2183 * inline-frame.c (inline_frame_this_id): Likewise.
2184 (skip-inline_frames): Likewise.
2185 * infcmd.c (until_next_command): Likewise.
2186 * linespec.c (convert_linespec_to_sals): Likewise.
2187 * parse.c (parse_exp_in_context_1): Likewise.
2188 * printcmd.c (build_address_symbolic): likewise.
2189 (info_address_command): Likewise.
2190 symtab.c (find_function_start_sal): Likewise.
2191 (skip_prologue_sal): Likewise.
2192 (find_function_alias_target): Likewise.
2193 (find_gnu_ifunc): Likewise.
2194 * stack.c (find_frame_funname): Likewise.
2195 * symtab.c (fixup_symbol_section): Likewise.
2196 (find_function_start_sal): Likewise.
2197 (skip_prologue_sal): Likewsie.
2198 (find_function_alias_target): Likewise.
2199 (find_gnu_ifunc): Likewise.
2200 * tracepoint.c (info_scope_command): Likewise.
2201 * value.c (value_fn_field): Likewise.
2202
9644dc3a
KB
2203 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2204 in place of find_pc_partial_function.
2205 * blockframe.c (find_function_entry_range_from_pc): New function.
2206 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2207 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2208 for each range in a block.
2209
2210
12a0d0f6
XR
22112018-08-23 Xavier Roirand <roirand@adacore.com>
2212
2213 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2214 incrementation.
2215
d1012b8e
SM
22162018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2217
2218 * solib-svr4.c (read_program_headers_from_bfd): Return
2219 gdb::optional<gdb::byte_vector>.
2220 (svr4_exec_displacement): Adjust.
2221
17658d46
SM
22222018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2223
2224 * solib-svr4.c (read_program_header): Return
2225 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2226 (find_program_interpreter): Return
2227 gdb::optional<gdb::byte_vector>.
2228 (scan_dyntag_auxv): Adjust.
2229 (enable_break): Adjust.
2230 (svr4_exec_displacement): Adjust.
2231
ae739fe7
SM
22322018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2233
2234 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2235 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2236
467dc1e2
SM
22372018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2238
2239 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2240 string_vprintf.
2241 * guile/scm-utils.c (gdbscm_printf): Likewise.
2242 * serial.c (serial_printf): Likewise.
2243 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2244
6d52907e
JV
22452018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2246
2247 * stack.c (print_frame): Print frame architecture when printing on
2248 an MI output.
2249 * NEWS: Mention new "arch" attribute in frame output.
2250
9758a8f8
AH
22512018-08-21 Alan Hayward <alan.hayward@arm.com>
2252
2253 * arch/aarch64.h (aarch64_regnum): Update comment.
2254
1461bdac
AH
22552018-08-21 Alan Hayward <alan.hayward@arm.com>
2256
2257 * NEWS: Add SVE to 8.2 section.
2258
4895f384
PA
22592018-08-21 Pedro Alves <palves@redhat.com>
2260
2261 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2262 out from gdbscm_parse_function_args.
2263 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2264 gdbscm_parse_function_args_1.
2265
a4497d2f
SM
22662018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2267
2268 PR gdb/17816
2269 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2270 operator.
2271
c44deb73
SM
22722018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2273
2274 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2275
be2d111a
MS
22762018-08-19 Michael Spang <spang@google.com>
2277
2278 PR gdb/11786
2279 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2280 for PT_TLS segments.
2281
a6b786da
KB
22822018-08-18 Kevin Buettner <kevinb@redhat.com>
2283
2284 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2285 dwarf_variable_value.
2286 * dwarf2-frame.c (class dwarf_expr_executor):
2287 Add override for dwarf_variable_value.
2288 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2289 (class symbol_needs_eval_context): Likewise.
2290 (indirect_synthetic_pointer): Add forward declaration.
2291 (sect_variable_value): New function.
2292 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2293 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2294 for DW_OP_GNU_variable_value.
2295
89fbedf3
TT
22962018-08-16 Tom Tromey <tom@tromey.com>
2297
2298 * top.c (read_command_file): Update.
2299 (command_line_input): Remove "repeat" argument.
2300 * ada-lang.c (get_selections): Update.
2301 * linespec.c (decode_line_2): Update.
2302 * defs.h (command_line_input): Remove argument.
2303 * cli/cli-script.c (read_next_line): Update.
2304 * python/py-gdb-readline.c: Update.
2305
12582533
TT
23062018-08-17 Tom Tromey <tom@tromey.com>
2307
2308 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2309 command_line_input.
2310
49514353
TT
23112018-08-15 Tom Tromey <tom@tromey.com>
2312
2313 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2314
26fb3983
JV
23152018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2316
2317 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2318 If used, use find_pc_partial_function to find address range
2319 to disassemble.
2320 * mi/mi-main.c (mi_cmd_list_features): Report
2321 "data-disassemble-a-option" feature.
2322 * NEWS: Mention new -data-disassemble option -a.
2323
a97b53dd
TT
23242018-08-13 Tom Tromey <tom@tromey.com>
2325
2326 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2327
0c76e06d
AH
23282018-08-13 Alan Hayward <alan.hayward@arm.com>
2329
2330 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2331 (aarch64_linux_collect_sve_regset): Likewise.
2332 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2333 * regcache.h (regcache_map_entry_size): New function.
2334
b7fd65b9
AH
23352018-08-13 Alan Hayward <alan.hayward@arm.com>
2336
2337 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2338 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2339 (SVE_HEADER_VL_LENGTH): Likewise.
2340 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2341 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2342 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2343 (SVE_HEADER_SIZE_OFFSET): Likewise.
2344 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2345 (SVE_HEADER_VL_OFFSET): Likewise.
2346 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2347 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2348 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2349 (SVE_HEADER_SIZE): Likewise.
2350 (aarch64_linux_core_read_vq): Add function.
2351 (aarch64_linux_core_read_description): Check for SVE section.
2352
a616bb94
AH
23532018-08-13 Alan Hayward <alan.hayward@arm.com>
2354
2355 * aarch64-fbsd-tdep.c
2356 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2357 collect_size.
2358 * aarch64-linux-tdep.c
2359 (aarch64_linux_iterate_over_regset_sections): Likewise.
2360 * alpha-linux-tdep.c
2361 (alpha_linux_iterate_over_regset_sections):
2362 * alpha-nbsd-tdep.c
2363 (alphanbsd_iterate_over_regset_sections): Likewise.
2364 * amd64-fbsd-tdep.c
2365 (amd64fbsd_iterate_over_regset_sections): Likewise.
2366 * amd64-linux-tdep.c
2367 (amd64_linux_iterate_over_regset_sections): Likewise.
2368 * arm-bsd-tdep.c
2369 (armbsd_iterate_over_regset_sections): Likewise.
2370 * arm-fbsd-tdep.c
2371 (arm_fbsd_iterate_over_regset_sections): Likewise.
2372 * arm-linux-tdep.c
2373 (arm_linux_iterate_over_regset_sections): Likewise.
2374 * corelow.c (get_core_registers_cb): Likewise.
2375 (core_target::fetch_registers): Likewise.
2376 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2377 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2378 * gdbarch.h (void): Regenerate.
2379 * gdbarch.sh: Add supply_size and collect_size.
2380 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2381 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2382 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2383 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2384 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2385 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2386 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2387 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2388 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2389 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2390 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2391 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2392 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2393 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2394 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2395 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2396 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2397 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2398 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2399 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2400 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2401 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2402 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2403 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2404 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2405 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2406 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2407 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2408 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2409 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2410
a9925d4f
SM
24112018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2412
2413 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2414 with string_printf.
2415
ad3a68e9
KS
24162018-08-10 Keith Seitz <keiths@redhat.com>
2417
2418 * compile/compile-c-support.c (add_code_header, add_code_footer):
2419 Move into policy class.
2420 (c_push_user_expression, pop_user_expression_nop)
2421 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2422 (compile_program): New host class.
2423 (c_compile_program): New typedef.
2424 (c_compute_porgram): Use c_compile_program.
2425
0cfbf430
KS
24262018-08-10 Keith Seitz <keiths@redhat.com>
2427
2428 * compile/compile-internal.h (compile_instance::~compile_instance):
2429 Remove calls to htab_delete.
2430 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2431 * compile.c (compile_instance::compile_instance): Initialize
2432 htab unique pointers.
2433 (compile_instance::get_cached_type, compile_instance::insert_type)
2434 (compile_instance::error_symbol_once): Update for unique_ptr.
2435
946d3d10
KS
24362018-08-10 Keith Seitz <keiths@redhat.com>
2437
2438 * compile/compile-c-symbols.c (struct symbol_error)
2439 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2440 (compile_instance::insert_symbol_error)
2441 (compile_instance::error_symbol_once): Move to ...
2442 * compile/compile.c: ... here.
2443
9cdfd9a2
KS
24442018-08-10 Keith Seitz <keiths@redhat.com>
2445
2446 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2447 instead of `new_compile_instance'.
2448 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2449 Update description.
2450 If the symbol error map is not initialized, create it.
2451 (generate_c_for_for_one_symbol): Do not check/initialize
2452 the symbol error map.
2453 * compile/compile-c-types.c (compile_c_instance): Make a class.
2454 Update all callers.
2455 (compile_instance::compile_instance): Initialize the type cache.
2456 (get_cached_type): New function.
2457 (insert_type): Update description.
2458 (compile_c_instance::m_default_cflags): Define.
2459 (convert_type): Update description. Use get_cached_type.
2460 (delete_instance): Moved to destructor.
2461 (new_compile_instance): Moved to constructor.
2462 * compile/compile-c.h (compile_c_instance): Make class inheriting
2463 from compile_instance.
2464 <base>: Remove field.
2465 <type_map, symbol_err_map>: Move to base class.
2466 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2467 * compile/compile-internal.h (compile_instance): Make class.
2468 <type_map_t, symbol_err_map_t>: Define.
2469 <fe>: Rename to `m_gcc_fe'.
2470 <scope, block, gcc_target_options>: Add `m_' prefix.
2471 <m_type_map, m_symbol_err_map>: New fields, moved from
2472 compile_c_instance.
2473 <destroy>: Remove.
2474 (convert_type, new_compile_instance): Remove.
2475 * compile/compile.c (cleanup_compile_instance): Remove.
2476 (compile_to_object): Use unique_ptr to eliminate cleanups.
2477 (compile_instance::set_print_callback, compile_instance::version)
2478 (compile_instance::set_verbose)
2479 (compile_instance::set_driver_filename)
2480 (compile_instance::set_triplet_regexp)
2481 (compile_instance::set_arguments)
2482 (compile_instance::set_source_file)
2483 (compile_instance::compile): Define.
2484
18cdc6d8
KS
24852018-08-10 Keith Seitz <keiths@redhat.com>
2486
2487 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2488 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2489 gcc-c-fe.def to define C plugin.
2490 (delete_instance): Delete `c_plugin'.
2491 (new_compile_instance): Initialize `c_plugin'.
2492 * compile/compile-c.h: Include gcc_c_plugin.h.
2493 (struct compile_c_instance) <c_plugin>: New member.
2494 * gcc-c-plugin.h: New file.
2495 Update all callers with API change.
2496
b7dc48b4
KS
24972018-08-10 Keith Seitz <keiths@redhat.com>
2498
2499 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2500 (HFILES_NO_SRCDIR): ... to here.
2501 Add compile-internal.h and compile-c.h.
2502 * compile/compile-c-support.c: Include compile-c.h.
2503 * compile/compile-c-symbols.c: Include compile-c.h.
2504 (generate_c_for_variable_locations): Update comment.
2505 * compile/compile-c-types.c: Include compile-c.h.
2506 * compile/compile-c.h: New file -- moved C language declarations
2507 from other files here.
2508 * compile/compile-internal.h: Do not include hashtab.h or
2509 common/enum-flags.h.
2510 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2511 (gcc_convert_symbol, gcc_symbol_address)
2512 (generate_c_for_variable_locations, c_get_mode_for_size)
2513 (c_get_range_decl_name): Definitions moved to compile-c.h.
2514 * compile/compile-loc2c.c: Include compile-c.h.
2515
6f36b6d2
KS
25162018-08-10 Keith Seitz <keiths@redhat.com>
2517
2518 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2519 (c_symbol_substitution_name): ... this.
2520 Update all callers.
2521
bd923e51
KS
25222018-08-10 Keith Seitz <keiths@redhat.com>
2523
2524 * compile/compile-c-support.c (c_compute_program): Use
2525 unique_xmalloc_ptr to eliminate cleanup.
2526 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2527 Return a unique_xmalloc_ptr and eliminate cleanup.
2528 * compile/compile-internal.h (generate_c_for_variable_locations):
2529 Return unique_xmalloc_ptr and update description.
2530
dbd534fe
AH
25312018-08-10 Alan Hayward <alan.hayward@arm.com>
2532
2533 * corelow.c (core_target::get_core_register_section): Rename
2534 min_size to section_min_size.
2535
90ad3654
JW
25362018-08-09 Jim Wilson <jimw@sifive.com>
2537
52a187f8
JW
2538 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2539 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2540 * NEWS: Mention new GNU/Linux RISC-V target.
2541 * configure.host: Add riscv*-*-linux*.
2542 * configure.nat: Add riscv*.
2543 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 2544 * riscv-linux-nat.c: New file.
90ad3654
JW
2545 * riscv-linux-tdep.c: New file.
2546
aff4e175
AB
25472018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2548
2549 * infrun.c (resume): Make static, add forward declaration.
2550 (proceed): Update header comment.
2551 * infrun.h (resume): Delete declaration.
2552
06ab9219
TT
25532018-08-09 Tom Tromey <tom@tromey.com>
2554
2555 * riscv-tdep.h: Minor formatting fixes.
2556
83c8d318
SM
25572018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2558
2559 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2560 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2561 (test_mkdir_recursive): Likewise.
2562 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2563
5ff2bbae
AB
25642018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2565
2566 * valarith.c (value_subscripted_rvalue): If an array is not in
2567 memory, and we don't know the upper bound, then we can't know that
2568 the requested element exists or not.
2569
fdbac7d8
SM
25702018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2571
2572 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2573 (target_options_to_string): Add comment.
2574
83202f7a
TT
25752018-08-08 Tom Tromey <tom@tromey.com>
2576
2577 * unittests/scoped_mmap-selftests.c: Check result of "write".
2578
411baa47
JW
25792018-08-08 Jim Wilson <jimw@sifive.com>
2580
5c720ed8
JW
2581 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2582 (decode_register_index_short): New.
2583 (decode_j_type_insn, decode_cj_type_insn): New.
2584 (decode_b_type_insn, decode_cb_type_insn): New.
2585 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2586 local xlen. Check xlen when decoding ambiguous compressed insns. In
2587 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2588 is_c_sw_insn instead of is_sw_insn.
2589 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2590 (riscv_software_single_step): New.
2591 * riscv-tdep.h (riscv_software_single_step): Declare.
2592
411baa47
JW
2593 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2594 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2595
9d4a934c
AB
25962018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2597
2598 PR gdb/18050:
2599 * target.c (dispose_inferior): Don't dispose of inferiors that are
2600 already killed.
2601
ff36536c
SN
26022018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2603
2604 * remote.c (remote_target::download_tracepoint): Change char* to
2605 const char*.
2606
09ce46f2
SM
26072018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2608
2609 * target.h (target_options_to_string): Return an std::string.
2610 * target.c (str_comma_list_concat_elem): Return void, use
2611 std::string.
2612 (do_option): Likewise.
2613 (target_options_to_string): Return an std::string.
2614 * linux-nat.c (linux_nat_target::wait): Adjust.
2615 * target-debug.h (target_debug_print_options): Adjust.
2616
9c612964
TT
26172018-08-07 Tom Tromey <tom@tromey.com>
2618
2619 * Makefile.in (CPPFLAGS): New variable.
2620 (INTERNAL_CPPFLAGS): Use it.
2621
7d11235d
SM
26222018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2623
2624 * NEWS: Mention the index cache.
2625
87d6a7aa
SM
26262018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2627
2628 * common/pathstuff.h (get_standard_cache_dir): New.
2629 * common/pathstuff.c (get_standard_cache_dir): New.
2630 * build-id.h (build_id_to_string): New.
2631 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2632 DEBUG_STR_SUFFIX): Move to here.
2633 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2634 DEBUG_STR_SUFFIX): Move from there.
2635 (write_psymtabs_to_index): Make non-static, add basename
2636 parameter. Write to temporary files, rename when done.
2637 (save_gdb_index_command): Adjust call to
2638 write_psymtabs_to_index.
2639 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2640 field.
2641 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2642 (get_gdb_index_contents_from_cache): New.
2643 (get_gdb_index_contents_from_cache_dwz): New.
2644 (dwarf2_initialize_objfile): Read index from cache.
2645 (dwarf2_build_psymtabs): Save to index.
2646 * dwarf-index-cache.h: New file.
2647 * dwarf-index-cache.c: New file.
2648 * dwarf-index-write.h: New file.
2649
8a99096f
SM
26502018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2651
2652 * gnulib/aclocal.m4: Re-generate.
2653 * gnulib/config.in: Re-generate.
2654 * gnulib/configure: Re-generate.
2655 * gnulib/import/Makefile.am: Re-generate.
2656 * gnulib/import/Makefile.in: Re-generate.
2657 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2658 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2659 * gnulib/import/m4/mkdir.m4: New file.
2660 * gnulib/import/mkdir.c: New file.
2661 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2662 module.
2663
5c831bb1
SM
26642018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2665
2666 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2667 * common/scoped_mmap.c: New file.
2668 * common/scoped_mmap.h (destroy): New method.
2669 (~scoped_mmap, reset): Use destroy.
2670 (scoped_mmap): New move constructor.
2671 (mmap_file): New declaration.
2672 * unittests/scoped_mmap-selftests.c (test_normal,
2673 test_invalid_filename, run_tests): New functions.
2674 (_initialize_scoped_mmap_selftests): Register selftest.
2675
4485a1c1
SM
26762018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2677
2678 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2679 (read_gdb_index_from_buffer): ... this. Remove section
2680 parameter, add buffer parameter.
2681 (get_gdb_index_contents_ftype,
2682 get_gdb_index_contents_dwz_ftype): New typedefs.
2683 (dwarf2_read_gdb_index): Add callback parameters to get the
2684 index contents.
2685 (get_gdb_index_contents_from_section): New.
2686 (dwarf2_initialize_objfile): Update call to
2687 dwarf2_read_gdb_index.
2688
528e1572
SM
26892018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2690
2691 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2692 (gdb_open_cloexec): Likewise.
2693 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2694 (commandline_from_pid): Likewise.
2695 (linux_xfer_osdata_threads): Likewise.
2696 (linux_xfer_osdata_fds): Likewise.
2697 * ada-lang.c (is_package_name): Likewise.
2698 * auxv.c (procfs_xfer_auxv): Likewise.
2699 * breakpoint.c (print_one_breakpoint_location): Use
2700 uiout::field_fmt.
2701 (print_one_catch_solib): Use string_printf.
2702 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2703 (add_pe_forwarded_sym): Likewise.
2704 * dwarf2read.c (create_type_unit_group): Likewise.
2705 (build_error_marker_type): Likewise.
2706 * infcall.c (get_function_name): Likewise.
2707 * valprint.c (print_converted_chars_to_obstack): Likewise.
2708 * xtensa-tdep.c (xtensa_register_type): Likewise.
2709
a7f25a84
SM
27102018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2711
2712 * remote.c (remote_target::download_tracepoint): Fix format
2713 string errors.
2714
296956be
PFC
27152018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2716
2717 * tracefile.c: Include common/byte-vector.h.
2718 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2719 with trace_regblock_size if needed. Update uses of buf.
2720
a04b9d62
PFC
27212018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2722
2723 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2724 std::vector<unsigned char>.
2725 * tracepoint.c (collection_list::collection_list): Remove
2726 m_regs_mask initializer from initializer list. Resize
2727 m_regs_mask using the largest remote register number.
2728 (collection_list::add_remote_register): Remove size check on
2729 m_regs_mask. Use at to access element.
2730 (collection_list::stringify): Change type of temp_buf to
2731 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2732 stringify the register mask. Use pack_hex_byte for the register
2733 mask.
2734
4277c4b8
PFC
27352018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2736
2737 * tracepoint.h (class collection_list) <add_register>: Remove.
2738 <add_remote_register, add_ax_registers, add_local_register>:
2739 Declare.
2740 <add_memrange>: Add scope parameter.
2741 * tracepoint.c (encode_actions_1): Likewise.
2742 (collection_list::add_register): Rename to ...
2743 (collection_list::add_remote_register): ... this. Update
2744 comment.
2745 (collection_list::add_ax_registers, add_local_register): New
2746 methods.
2747 (collection_list::add_memrange): Add scope parameter. Call
2748 add_local_register instead of add_register.
2749 (finalize_tracepoint_aexpr): New function.
2750 (collection_list::collect_symbol): Update calls to add_memrange.
2751 Call add_local_register instead of add_register. Call
2752 add_ax_registers. Call finalize_tracepoint_aexpr.
2753 (encode_actions_1): Get remote regnos for $reg action. Call
2754 add_remote_register, add_ax_registers, and add_local_register.
2755 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2756 (validate_actionline): Call finalize_tracepoint_aexpr.
2757
3df3a985
PFC
27582018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2759
2760 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2761 Replace array buf with gdb::char_vector buf, of size
2762 get_remote_packet_size (). Replace references to buf and
2763 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2764 and xsnprintf with snprintf. Raise errors if the buffer is too
2765 small.
2766
aa6f3694
PFC
27672018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2768
2769 * remote.c (remote_target::download_tracepoint): Fix the has_more
2770 predicate in the QTDP action list iteration.
2771
05abfc39
PFC
27722018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2773
2774 * remote.c (remote_target::download_tracepoint): Fix indentation
2775 in for block.
2776
821a2682
RO
27772018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2778
2779 * proc-api.c (_initialize_proc_api): Remove c, unused.
2780 * procfs.c (procfs_init_inferior): Remove signals, unused.
2781 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2782 unused.
2783
95347337
AB
27842018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2785 Andrew Burgess <andrew.burgess@embecosm.com>
2786
2787 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2788 'W_STOPCODE (0)' as this could be ambiguous.
2789
425699f5
SDJ
27902018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2791
2792 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2793 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2794 "ai_socktype").
2795
3e1d3d8c
TT
27962018-08-02 Tom Tromey <tom@tromey.com>
2797
2798 PR symtab/16842.
2799 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2800 symbols.
2801 (process_structure_scope): Likewise.
2802
15843549
XR
28032018-08-02 Xavier Roirand <roirand@adacore.com>
2804
2805 PR gdb/22629:
2806 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2807 kill inferior.
2808
b5bddbbb
TT
28092018-08-02 Tom Tromey <tom@tromey.com>
2810
2811 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2812 (darwin_suspend_inferior, darwin_resume_inferior)
2813 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2814 (darwin_check_new_threads): Check result of get_darwin_inferior.
2815
f61cfa07
JB
28162018-07-31 Joel Brobecker <brobecker@adacore.com>
2817
2818 GDB 8.1.1 released.
2819
5abe0f0c
JV
28202018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2821
2822 * varobj.c (varobj_get_path_expr_parent): Report an error if
2823 parent is a dynamic varobj.
2824
472fa5ee
SM
28252018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2826
2827 * gnulib/aclocal.m4: Re-generate.
2828 * gnulib/config.in: Re-generate.
2829 * gnulib/configure: Re-generate.
2830 * gnulib/import/Makefile.in: Re-generate.
2831 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2832 * gnulib/import/m4/onceonly.m4: Re-generate.
2833
1c28969e
SM
28342018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2835
2836 * target-descriptions.c (struct xml_test_tdesc): New.
2837 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2838 (record_xml_tdesc): Update.
2839 (maintenance_check_xml_descriptions): Update.
2840 * target-descriptions.h (record_xml_tdesc): Update comment.
2841
c8f2dc0d
AB
28422018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2843
2844 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2845 checking array bounds are defined.
2846
463c08d1
TT
28472018-07-30 Tom Tromey <tom@tromey.com>
2848
2849 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2850 irreflexivity violation.
2851
dba7455e
TT
28522018-07-30 Tom Tromey <tom@tromey.com>
2853
2854 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2855 * value.c (unpack_long): Remove lint code.
2856 * valops.c (value_ind): Remove lint code.
2857 * valarith.c (value_x_binop, value_x_unop, value_equal)
2858 (value_pos): Remove lint code.
2859
37cc0cae
TV
28602018-07-28 Tom de Vries <tdevries@suse.de>
2861
2862 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2863 with undefined upper bound as <optimized out>.
2864
129eb0f1
SDJ
28652018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2866
2867 * gcore.in: Rename variable "name" to "prefix". Expand
2868 "usage" text.
2869
6af79d7b
JT
28702018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2871
2872 * windows-nat.c (windows_nat_target::create_inferior): Update to
2873 call close() in global namespace.
2874
79748972
TT
28752018-07-26 Tom Tromey <tom@tromey.com>
2876
2877 * dwarf-index-write.c (add_address_entry): Don't add objfile
2878 offsets.
2879 * dbxread.c (find_stab_function): Rename from
2880 find_stab_function_addr. Return a bound_minimal_symbol.
2881 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2882 Don't add objfile offsets.
2883 (end_psymtab): Use raw_text_low, raw_text_high,
2884 MSYMBOL_VALUE_RAW_ADDRESS.
2885 (read_ofile_symtab): Update.
2886 (process_one_symbol): Update.
2887 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2888 offsets.
2889 (dw2_relocate): Remove.
2890 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2891 searching addrmap.
2892 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2893 Update.
2894 (process_psymtab_comp_unit_reader, add_partial_symbol)
2895 (add_partial_subprogram, dwarf2_ranges_read): Update.
2896 (load_partial_dies): Update.
2897 (add_address_entry): Don't add objfile offsets.
2898 (dwarf2_build_include_psymtabs): Update.
2899 (create_addrmap_from_aranges): Don't add objfile offsets.
2900 (dw2_find_pc_sect_compunit_symtab): Update.
2901 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2902 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2903 Update.
2904 (parse_partial_symbols): Don't add objfile offsets. Use
2905 raw_text_low, raw_text_high. Update.
2906 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2907 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2908 or call 'relocate' quick function. Clear psymbol_map.
2909 * psympriv.h (struct partial_symbol) <address>: Add section
2910 offset.
2911 <set_unrelocated_address>: Rename from set_address.
2912 <raw_text_low, raw_text_high>: New methods.
2913 <text_low, text_high>: Add objfile parameter.
2914 (add_psymbol_to_bcache): Add 'section' parameter. Call
2915 set_unrelocated_address.
2916 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2917 (find_pc_psymbol): Update.
2918 (fixup_psymbol_section, relocate_psymtabs): Remove.
2919 (dump_psymtab, psym_functions): Update.
2920 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2921 parameter.
2922 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2923 (start_psymtab_common): Update.
2924 * symfile-debug.c (debug_qf_relocate): Remove.
2925 (debug_sym_quick_functions): Update.
2926 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2927 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2928 Update.
2929
52948f01
TT
29302018-07-26 Tom Tromey <tromey@redhat.com>
2931
2932 * dbxread.c (end_psymtab): Use text_high_valid and
2933 text_low_valid.
2934 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2935 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2936 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2937 Update comment.
2938 <text_low_valid, text_high_valid>: New fields.
2939 <set_text_low, set_text_high>: Update.
2940 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2941
4ae976d1
TT
29422018-07-26 Tom Tromey <tom@tromey.com>
2943
2944 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2945 Update.
2946 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2947 textlow and texthigh fields.
2948 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2949 Update.
2950 * mdebugread.c (parse_lines, parse_partial_symbols)
2951 (psymtab_to_symtab_1): Update.
2952 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2953 Rename fields. Update comment. Now private.
2954 <text_low, text_high, set_text_low, set_text_high>: New methods.
2955 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2956 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2957 (start_psymtab_common, maintenance_info_psymtabs)
2958 (maintenance_check_psymtabs): Update.
2959 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2960 texthigh fields.
2961 (scan_xcoff_symtab): Update.
2962
02e9e7f7
TT
29632018-07-26 Tom Tromey <tromey@redhat.com>
2964
2965 * psympriv.h (struct partial_symbol) <unrelocated_address,
2966 address, set_address>: New methods.
2967 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2968 (fixup_psymbol_section, relocate_psymtabs): Update.
2969 (print_partial_symbols): Add 'objfile' parameter. Update.
2970 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2971 Update.
2972
8a6d4234
TT
29732018-07-26 Tom Tromey <tom@tromey.com>
2974
2975 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2976 (debug_names::write_psymbols): Update.
2977 * psympriv.h (struct partial_symbol): Derive from
2978 general_symbol_info.
2979 <obj_section>: New method.
2980 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2981 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2982 (find_pc_sect_psymbol, fixup_psymbol_section)
2983 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2984 (print_partial_symbols, recursively_search_psymtabs)
2985 (compare_psymbols, psymbol_hash, psymbol_compare)
2986 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2987 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2988
08994e1d
TT
29892018-07-26 Tom Tromey <tromey@redhat.com>
2990
2991 * dbxread.c (end_psymtab): Remove dead code.
2992
3c3bb058
AB
29932018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2994
2995 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2996 DWARF unwinders are disabled.
2997 * dwarf2-frame.c: Add dwarf2read.h include.
2998 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2999 disabled.
3000 (dwarf2_frame_unwinders_enabled_p): Define.
3001 (show_dwarf_unwinders_enabled_p): New function.
3002 (_initialize_dwarf2_frame): Register switch to control DWARF
3003 unwinder use.
3004 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3005 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3006 (show_dwarf_cmdlist): Remove static keyword.
3007 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3008 (show_dwarf_cmdlist): Declare.
3009 * NEWS: Document new feature.
3010
9e7f3bbb
TV
30112018-07-26 Tom de Vries <tdevries@suse.de>
3012
3013 PR breakpoints/23366
3014 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3015
506f5c41
TV
30162018-07-26 Tom de Vries <tdevries@suse.de>
3017
3018 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3019 DW_AT_count can't be translated to a dynamic prop.
3020
16f808ec
TV
30212018-07-25 Tom de Vries <tdevries@suse.de>
3022
3023 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3024 try/catch.
3025
d7154a8d
JV
30262018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3027
3028 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3029
a45389f6
JB
30302018-07-25 Joel Brobecker <brobecker@adacore.com>
3031
3032 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3033
380618d6
KS
30342018-07-24 Keith Seitz <keiths@redhat.comt
3035
3036 PR symtab/23010
3037 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3038 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3039 instead of add_symbol_to_list.
3040 (read_file_scope): Call prepare_one_comp_unit before reading
3041 any other DIEs.
3042
4b17aefe
SM
30432018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3044
3045 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3046
29d17e47
TT
30472018-07-24 Tom Tromey <tom@tromey.com>
3048
3049 * utils.c (malloc, realloc, free): Don't declare.
3050 * configure, config.in: Rebuild.
3051 * configure.ac: Don't check for declarations of free, malloc, or
3052 realloc.
3053
cf4088a9
SM
30542018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3055
3056 * aarch64-linux-nat.c
3057 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3058 variable.
3059 * arm-linux-nat.c (fetch_regs): Likewise.
3060 (store_regs): Likewise.
3061 (fetch_vfp_regs): Likewise.
3062 (store_vfp_regs): Likewise.
3063 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3064 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3065 (arm_linux_nat_target::insert_watchpoint): Likewise.
3066 (arm_linux_nat_target::remove_watchpoint): Likewise.
3067 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3068 Likewise.
3069 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3070 Likewise.
3071 * ppc-linux-nat.c (fetch_register): Likewise.
3072 (fetch_all_gp_regs): Likewise.
3073 (fetch_ppc_registers): Likewise.
3074 (store_all_gp_regs): Likewise.
3075 (store_ppc_registers): Likewise.
3076 (hwdebug_insert_point): Likewise.
3077 (can_use_watchpoint_cond_accel): Likewise.
3078 * remote-sim.c (gdb_os_write_stdout): Likewise.
3079
a0de763e
TT
30802018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3081 Tom Tromey <tom@tromey.com>
3082
3083 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3084 test for it.
3085 * configure: Rebuild.
3086
3b20124b
TT
30872018-07-22 Tom Tromey <tom@tromey.com>
3088
3089 * regformats/regdat.sh: Define xmltarget_${name} inside
3090 #ifndef IN_PROCESS_AGENT.
3091
8c8807f4
TT
30922018-07-22 Tom Tromey <tom@tromey.com>
3093
3094 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3095
c486b610
TT
30962018-07-22 Tom Tromey <tom@tromey.com>
3097
3098 * symfile.c (reread_symbols): Notify iter, not objfile.
3099
494f80a9
TT
31002018-07-22 Tom Tromey <tom@tromey.com>
3101
3102 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3103 Use arch_ops.
3104 (ravenscar_thread_target::prepare_to_store): Likewise.
3105
c51f6a54
TT
31062018-07-22 Tom Tromey <tom@tromey.com>
3107
3108 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3109 unused variable. Call value_fetch_lazy when needed.
3110 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3111 Remove unused variable. Call value_fetch_lazy when needed.
3112
374fd1fd
TT
31132018-07-22 Tom Tromey <tom@tromey.com>
3114
3115 * m32c-tdep.c (mark_dma): Return void.
3116 (make_regs): Remove unused declarations.
3117
d5e9a511
TT
31182018-07-22 Tom Tromey <tom@tromey.com>
3119
3120 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3121 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3122 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3123 bkscm_get_valid_block_smob_arg_unsafe for effect.
3124
996d693a
TT
31252018-07-22 Tom Tromey <tom@tromey.com>
3126
3127 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3128 value_type.
3129
15766370
TT
31302018-07-22 Tom Tromey <tom@tromey.com>
3131
3132 * windows-nat.c (saved_context): Conditionally define.
3133 * remote.c (remote_target::remote_btrace_maybe_reopen):
3134 Conditionally declare "warned".
3135 * inflow.c (sigquit_ours): Conditionally define.
3136 (new_tty): Move "tty" declaration inside #if.
3137 * guile/guile.c (guile_datadir): Conditionally define.
3138 * charset.c (set_be_le_names): Move some declarations inside #if.
3139 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3140 #if.
3141 (parse_xml_btrace_conf): Likewise.
3142
f4e80e13
TT
31432018-07-22 Tom Tromey <tom@tromey.com>
3144
3145 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3146
8d49165d
TT
31472018-07-22 Tom Tromey <tom@tromey.com>
3148
3149 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3150 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3151 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3152 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3153 * stack.c (frame_apply_level_command): Remove unused variable.
3154 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3155 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3156 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3157 unused variable.
3158 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3159 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3160 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3161 variable.
3162 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3163 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3164 variable.
3165 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3166 Remove unused variable.
3167 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3168 variable.
3169 * common/tdesc.c (print_xml_feature::visit): Remove unused
3170 variable.
3171 * compile/compile-object-load.c (store_regs): Remove unused
3172 variables.
3173 * complaints.c (clear_complaints): Remove unused variable.
3174 * corelow.c (core_target_open): Remove unused variable.
3175 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3176 variable.
3177 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3178 variable.
3179 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3180 variable.
3181 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3182 variable.
3183 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3184 variable.
3185 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3186 variable.
3187 * ia64-tdep.c (examine_prologue): Remove unused variable.
3188 * infcall.c (run_inferior_call): Remove unused variable.
3189 * inferior.c (exit_inferior): Remove unused variable.
3190 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3191 * linespec.c (decode_line_2): Remove unused variable.
3192 * linux-nat.c (super_close): Remove.
3193 * linux-tdep.c (linux_info_proc): Remove unused variable.
3194 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3195 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3196 Remove unused variable.
3197 * parse.c (find_minsym_type_and_address): Remove unused variable.
3198 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3199 variable.
3200 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3201 variable.
3202 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3203 variables.
3204 * record-btrace.c (record_btrace_target::store_registers): Remove
3205 unused variable.
3206 (cmd_show_record_btrace_cpu): Remove unused variable.
3207 * riscv-tdep.c (riscv_register_reggroup_p)
3208 (riscv_push_dummy_call, riscv_return_value): Remove unused
3209 variable.
3210 * rust-exp.y (literal): Remove unused variable.
3211 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3212 unused variable.
3213 <STRUCTOP_ANONYMOUS>: Likewise.
3214 * s390-linux-tdep.c (s390_linux_init_abi_31)
3215 (s390_linux_init_abi_64): Remove unused variable.
3216 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3217 (file_select_thread, net_windows_open, _initialize_ser_windows):
3218 Remove unused variables.
3219 * symtab.c (find_pc_sect_line): Remove unused variable.
3220 * target-memory.c (compute_garbled_blocks): Remove unused
3221 variable.
3222 (target_write_memory_blocks): Remove unused variable.
3223 * target.c (target_stack::unpush): Remove unused variables.
3224 * tracepoint.c (start_tracing, all_tracepoint_actions)
3225 (merge_uploaded_trace_state_variables)
3226 (print_one_static_tracepoint_marker): Remove unused variable.
3227 * unittests/basic_string_view/element_access/char/1.cc (test01):
3228 Remove unused variable.
3229 * windows-nat.c (windows_continue, windows_add_all_dlls)
3230 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3231 Remove unused variables.
3232
17cbafdb
SM
32332018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3234
3235 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3236 attr_profile in HAVE_ELF.
3237 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3238 HAVE_ELF.
3239
0ee6c332
SM
32402018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3241
3242 * frame.c (frame_register_unwind): Change parameter name.
3243 (frame_unwind_register): Likewise.
3244 (frame_unwind_register_value): Likewise.
3245 (frame_unwind_register_signed): Likewise.
3246 (frame_unwind_register_unsigned): Likewise.
3247 * frame.h (frame_register_unwind): Likewise.
3248 (frame_unwind_register): Likewise.
3249 (frame_unwind_register_value): Likewise.
3250 (frame_unwind_register_signed): Likewise.
3251 (frame_unwind_register_unsigned): Likewise.
3252 (frame_unwind_arch): Likewise.
3253
e2e31f10
MR
32542018-07-20 Maciej W. Rozycki <macro@mips.com>
3255
3256 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3257 ISA maintenance.
3258
2d389915
MR
32592018-07-20 Maciej W. Rozycki <macro@mips.com>
3260
3261 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3262 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3263 hand.
3264
cbb09508
KS
32652018-07-20 Keith Seitz <keiths@redhat.com>
3266
3267 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3268 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3269 m_compunit_symtab, m_language>: Add "m_" prefix.
3270 Update all uses.
3271 * buildsym.c: Update all uses.
3272
bfe2e011
TT
32732018-07-20 Tom Tromey <tom@tromey.com>
3274
3275 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3276 * buildsym.h (record_line_ftype): Remove typedef.
3277
0e6f3061
TT
32782018-07-20 Tom Tromey <tom@tromey.com>
3279
3280 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3281 (end_expandable_symtab): Likewise.
3282 (end_symtab_get_static_block): Likewise.
3283 (end_symtab_from_static_block): Likewise.
3284 * buildsym-legacy.c (augment_type_symtab): Remove.
3285 (end_expandable_symtab): Remove.
3286 (end_symtab_get_static_block): Remove.
3287 (end_symtab_from_static_block): Remove.
3288
804d2729
TT
32892018-07-20 Tom Tromey <tom@tromey.com>
3290
3291 * dwarf2read.c: Include buildsym.h.
3292 (struct dwarf2_cu) <builder>: New method.
3293 (fixup_go_packaging): Update.
3294 (process_full_comp_unit, process_full_type_unit): Update. Don't
3295 use scoped_free_pendings.
3296 (using_directives): Add "cu" parameter, remove "language".
3297 (read_import_statement, setup_type_unit_groups, )
3298 (read_func_scope, read_lexical_block_scope)
3299 (dwarf2_record_block_ranges, read_namespace): Update.
3300 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3301 (lnp_state_machine::handle_end_sequence): Update.
3302 (class lnp_state_machine) <m_cu>: New member.
3303 <m_record_line_callback>: Remove.
3304 <m_currently_recording_lines>: New member.
3305 (lnp_state_machine::handle_set_file): Update.
3306 (noop_record_line): Remove.
3307 (dwarf_record_line_p): Add cu parameter.
3308 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3309 (lnp_state_machine::record_line)
3310 (lnp_state_machine::lnp_state_machine)
3311 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3312 (dwarf_decode_lines): Update.
3313 (dwarf2_start_subfile): Add cu parameter.
3314 (dwarf2_start_symtab, new_symbol): Update.
3315 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3316 Remove dwarf2_per_objfile parameter.
3317 (dwarf_decode_macros): Update.
3318
80e649fc
TT
33192018-07-20 Tom Tromey <tom@tromey.com>
3320
3321 * stabsread.c (define_symbol): Update.
3322 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3323 * dwarf2read.c (new_symbol): Update.
3324 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3325 * cp-namespace.c: Include buildsym.h.
3326 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3327 * buildsym-legacy.c (get_buildsym_compunit): New function.
3328
0baae8db
TT
33292018-07-20 Tom Tromey <tom@tromey.com>
3330
3331 * xcoffread.c: Include buildsym-legacy.h.
3332 * windows-nat.c: Include buildsym-legacy.h.
3333 * stabsread.c: Include buildsym-legacy.h.
3334 * mdebugread.c: Include buildsym-legacy.h.
3335 * buildsym-legacy.h: New file.
3336 * buildsym-legacy.c: New file, from buildsym.c.
3337 * go32-nat.c: Include buildsym-legacy.h.
3338 * dwarf2read.c: Include buildsym-legacy.h.
3339 * dbxread.c: Include buildsym-legacy.h.
3340 * cp-namespace.c: Include buildsym-legacy.h.
3341 * coffread.c: Include buildsym-legacy.h.
3342 * buildsym.h: Move some contents to buildsym-legacy.h.
3343 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3344 buildsym-legacy.c.
3345 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3346
ab209f6f
TT
33472018-07-20 Tom Tromey <tom@tromey.com>
3348
3349 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3350 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3351 (buildsym_compunit::buildsym_compunit)
3352 (buildsym_compunit::~buildsym_compunit)
3353 (buildsym_compunit::get_macro_table): Define.
3354
74c72eac
TT
33552018-07-20 Tom Tromey <tom@tromey.com>
3356
3357 * buildsym.c (reset_symtab_globals): Remove.
3358 (buildsym_compunit::end_symtab_from_static_block): Update.
3359 (buildsym_compunit::augment_type_symtab): Update.
3360 (end_symtab_from_static_block): Call free_buildsym_compunit.
3361 (augment_type_symtab, end_symtab, end_expandable_symtab):
3362 Likewise.
3363
da6580e5
TT
33642018-07-20 Tom Tromey <tom@tromey.com>
3365
3366 * arch-utils.c: Do not include buildsym.h.
3367 * mipsread.c: Do not include buildsym.h.
3368 * machoread.c: Do not include buildsym.h.
3369 * elfread.c: Do not include buildsym.h.
3370
4a2125f5
TT
33712018-07-20 Tom Tromey <tom@tromey.com>
3372
3373 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3374 initialization.
3375 (buildsym_compunit): Add new constructor.
3376 (struct buildsym_compunit) <get_last_source_file, finish_block,
3377 record_block_range, start_subfile, patch_subfile_names,
3378 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3379 set_last_source_start_addr, get_last_source_start_addr,
3380 get_local_using_directives, set_local_using_directives,
3381 get_global_using_directives, outermost_context_p,
3382 get_current_context_stack, get_context_stack_depth,
3383 get_current_subfile, get_local_symbols, get_file_symbols,
3384 get_global_symbols, record_debugformat, record_producer,
3385 push_context, pop_context, end_symtab_get_static_block,
3386 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3387 New public methods.
3388 <record_pending_block, finish_block_internal, make_blockvector,
3389 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3390 private methods.
3391 Update all users.
3392
33932018-05-22 Tom Tromey <tom@tromey.com>
3394
3395 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3396 parameter.
3397 (finish_block_internal): Update.
3398
6b213a47
TT
33992018-07-20 Tom Tromey <tom@tromey.com>
3400
3401 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3402 parameter.
3403 (finish_block_internal): Update.
3404
b80a981d
TT
34052018-07-20 Tom Tromey <tom@tromey.com>
3406
3407 * buildsym.h (EXTERN): Don't define or undef.
3408 * buildsym.c (EXTERN): Don't define.
3409
ddb70602
TT
34102018-07-20 Tom Tromey <tom@tromey.com>
3411
3412 * buildsym.c: Remove TODO comment.
3413
b37dd3bc
TT
34142018-07-20 Tom Tromey <tom@tromey.com>
3415
3416 * coffread.c (coff_symtab_read): Update.
3417 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3418 (xcoff_new_init): Update.
3419 * mipsread.c (mipscoff_new_init): Update.
3420 * mdebugread.c (mdebug_build_psymtabs): Update.
3421 * elfread.c (elf_new_init): Update.
3422 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3423 Update.
3424 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3425 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3426 (stabsect_build_psymtabs): Update.
3427 * buildsym.h (buildsym_init): Don't declare.
3428 * buildsym.c: Update comment.
3429 (prepare_for_building): Remove.
3430 (start_symtab, restart_symtab): Update.
3431 (reset_symtab_globals): Update comment.
3432 (buildsym_init): Remove.
3433
e148f09d
TT
34342018-07-20 Tom Tromey <tom@tromey.com>
3435
3436 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3437 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3438 (read_enum_type, common_block_start, common_block_end)
3439 (cleanup_undefined_types_1, finish_global_stabs): Update.
3440 * mdebugread.c (psymtab_to_symtab_1): Update.
3441 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3442 (read_lexical_block_scope, new_symbol): Update.
3443 * dbxread.c (process_one_symbol): Update.
3444 * coffread.c (coff_symtab_read, process_coff_symbol)
3445 (coff_read_enum_type): Update.
3446 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3447 declare.
3448 (get_local_symbols, get_file_symbols, get_global_symbols): New
3449 functions.
3450 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3451 m_global_symbols.
3452 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3453 (~scoped_free_pendings): Update.
3454 (finish_block, prepare_for_building, reset_symtab_globals)
3455 (end_symtab_get_static_block, end_symtab_with_blockvector)
3456 (augment_type_symtab, push_context): Update.
3457 (get_local_symbols, get_file_symbols, get_global_symbols): New
3458 functions.
3459 (buildsym_init): Update.
3460
93b8bea4
TT
34612018-07-20 Tom Tromey <tom@tromey.com>
3462
3463 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3464 (process_full_type_unit): Likewise.
3465 (dwarf2_start_symtab): Set list_in_scope.
3466
f62f6af5
TT
34672018-07-20 Tom Tromey <tom@tromey.com>
3468
3469 * dwarf2read.c (process_psymtab_comp_unit_reader)
3470 (build_type_psymtabs_reader): Do not set list_in_scope.
3471
1d376700
TT
34722018-07-20 Tom Tromey <tom@tromey.com>
3473
3474 * buildsym.c (free_pendings): Remove.
3475 (add_symbol_to_list, scoped_free_pendings)
3476 (finish_block_internal, buildsym_init): Update.
3477
c233e9c6
TT
34782018-07-20 Tom Tromey <tom@tromey.com>
3479
3480 * xcoffread.c (read_xcoff_symtab): Update.
3481 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3482 Update.
3483 * dbxread.c (process_one_symbol): Update.
3484 * coffread.c (coff_symtab_read): Update.
3485 * buildsym.h (finish_block): Update.
3486 * buildsym.c (finish_block): Remove "listhead" argument.
3487 (end_symtab_get_static_block): Update.
3488
5ac04550
TT
34892018-07-20 Tom Tromey <tom@tromey.com>
3490
3491 * buildsym.h (class scoped_free_pendings): Remove constructor.
3492 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3493 method.
3494 <m_pending_block_obstack, m_pending_blocks>: New members.
3495 (pending_block_obstack, pending_blocks): Remove.
3496 (scoped_free_pendings::scoped_free_pendings): Default.
3497 (~scoped_free_pendings): Update.
3498 (free_pending_blocks): Remove.
3499 (finish_block_internal, record_pending_block, make_blockvector)
3500 (end_symtab_get_static_block, augment_type_symtab, push_context)
3501 (buildsym_init): Update.
3502
7ea05a7b
TT
35032018-07-20 Tom Tromey <tom@tromey.com>
3504
3505 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3506 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3507 members.
3508 (pending_addrmap, pending_addrmap_obstack)
3509 (pending_addrmap_interesting): Remove.
3510 (scoped_free_pendings, record_block_range, make_blockvector)
3511 (prepare_for_building, reset_symtab_globals, buildsym_init):
3512 Update.
3513
3c65e5b3
TT
35142018-07-20 Tom Tromey <tom@tromey.com>
3515
3516 * xcoffread.c (process_linenos): Update.
3517 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3518 * mdebugread.c (psymtab_to_symtab_1): Update.
3519 * dwarf2read.c (setup_type_unit_groups)
3520 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3521 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3522 * dbxread.c (process_one_symbol): Update.
3523 * coffread.c (coff_symtab_read, enter_linenos)
3524 (process_coff_symbol): Update.
3525 * buildsym.h (current_subfile): Don't declare.
3526 (get_current_subfile): Declare.
3527 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3528 member.
3529 (start_subfile, free_buildsym_compunit, push_subfile)
3530 (prepare_for_building, start_symtab): Update.
3531 (get_current_subfile): New function.
3532
a60f3166
TT
35332018-07-20 Tom Tromey <tom@tromey.com>
3534
3535 * coffread.c (coff_symtab_read): Update.
3536 * xcoffread.c (read_xcoff_symtab): Update.
3537 * dwarf2read.c (new_symbol): Update.
3538 (read_func_scope, read_lexical_block_scope): Update.
3539 * dbxread.c (process_one_symbol): Update.
3540 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3541 (outermost_context_p): Remove macro.
3542 (outermost_context_p, get_current_context_stack)
3543 (get_context_stack_depth): Declare.
3544 (pop_context): Return struct context_stack.
3545 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3546 member.
3547 (context_stack_size): Remove.
3548 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3549 (prepare_for_building, end_symtab_get_static_block)
3550 (augment_type_symtab, push_context): Update.
3551 (pop_context): Return struct context_stack.
3552 (outermost_context_p, get_current_context_stack)
3553 (get_context_stack_depth): New functions.
3554 (buildsym_init): Update.
3555
56ba65a0
TT
35562018-07-20 Tom Tromey <tom@tromey.com>
3557
3558 * rust-exp.y: Now a pure parser. Update all rules.
3559 (%union): Move earlier.
3560 (current_parser, work_obstack): Remove globals.
3561 (rust_parser, ~rust_parser): Update.
3562 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3563 lex_character, lex_number, lex_string, lex_identifier,
3564 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3565 convert_name, convert_params_to_expression,
3566 convert_ast_to_expression, ast_basic_type, ast_operation,
3567 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3568 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3569 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3570 ast_array_type, ast_slice_type, ast_reference_type,
3571 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3572 (rust_parse): Update.
3573 (rustyyerror, rustyylex): Add parser parameter.
3574 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3575 (rust_lex_stringish_test, rust_lex_test_sequence)
3576 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3577 (rust_lex_test_push_back, rust_lex_tests): Update.
3578
4c693332
PA
35792018-07-19 Pedro Alves <palves@redhat.com>
3580
3581 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3582 gdb::unique_xmalloc_ptr.
3583 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3584 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3585 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3586 copy-initialization.
3587 * guile/scm-pretty-print.c (ppscm_print_children): Use
3588 gdb::unique_xmalloc_ptr instead of cleanups.
3589 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3590 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3591 gdb::unique_xmalloc_ptr.
3592 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3593 Adjust to use gdb::unique_xmalloc_ptr.
3594 * guile/scm-utils.c (extract_arg): Adjust.
3595 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3596 gdb::unique_xmalloc_ptr instead of a cleanup.
3597
4581dc82
TT
35982018-07-19 Tom Tromey <tom@tromey.com>
3599
3600 * utils.c (do_value_free_to_mark)
3601 (make_cleanup_value_free_to_mark): Remove.
3602 * utils.h (make_cleanup_value_free_to_mark): Remove.
3603
43cc6c3a
PA
36042018-07-19 Pedro Alves <palves@redhat.com>
3605
3606 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3607 forwarding reference.
3608
3a5f2a48
PA
36092018-07-18 Pedro Alves <palves@redhat.com>
3610
3611 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3612 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3613 cleanup.
3614
557e56be
PA
36152018-07-18 Pedro Alves <palves@redhat.com>
3616
3617 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3618 exceptions.
3619 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3620 (gdbscm_wrap): New.
3621 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3622 directly instead of a cleanup.
3623 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3624 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3625 (vlscm_binop_gdbthrow): New, factored out from ...
3626 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3627 (vlscm_rich_compare): Use gdbscm_wrap.
3628 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3629 instead of a cleanup.
3630 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3631 cleanup.
3632 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3633 Use xfree directly instead of a cleanup.
3634 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3635 Adjust to use gdbscm_wrap and scoped_value_mark.
3636 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3637 (gdbscm_value_address, gdbscm_value_dereference)
3638 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3639 scoped_value_mark.
3640 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3641 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3642 scoped_value_mark.
3643 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3644 gdbscm_wrap and scoped_value_mark.
3645 (gdbscm_value_to_string): Use xfree directly instead of a
3646 cleanup. Move 'buffer' unique_ptr to TRY scope.
3647 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3648 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3649 scoped_value_mark.
3650 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3651 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3652 scoped_value_mark.
3653 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3654 gdbscm_wrap.
3655
42dc7699
TV
36562018-07-18 Tom de Vries <tdevries@suse.de>
3657
3658 * findvar.c (default_read_var_value): Also resolve dynamic type for
3659 LOC_OPTIMIZED_OUT vars.
3660
6592ceed
MR
36612018-07-18 Maciej W. Rozycki <macro@mips.com>
3662
3663 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3664 decoding.
3665
c6c6149a
TT
36662018-07-17 Tom Tromey <tom@tromey.com>
3667
3668 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3669 (compute_enum_list, pascm_set_param_value_x)
3670 (gdbscm_parameter_value): Update.
3671 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3672 (gdbscm_scm_to_host_string): Update.
3673 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3674 Update.
3675 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3676 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3677 * guile/scm-string.c (gdbscm_scm_to_string): Return
3678 unique_xmalloc_ptr.
3679 (gdbscm_scm_to_host_string): Likewise.
3680
a1a31cb8
TT
36812018-07-17 Tom Tromey <tom@tromey.com>
3682
3683 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3684 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3685 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3686 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3687 unique_xmalloc_ptr.
3688
15bf3002
TT
36892018-07-17 Tom Tromey <tom@tromey.com>
3690
3691 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3692 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3693 Update.
3694 * guile/scm-cmd.c (cmdscm_function): Update.
3695 * guile/scm-pretty-print.c
3696 (ppscm_print_exception_unless_memory_error): Update.
3697 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3698 Return unique_xmalloc_ptr.
3699
7eb1a66c
TT
37002018-07-17 Tom Tromey <tom@tromey.com>
3701
3702 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3703 Use string_printf.
3704
ce73f310
JW
37052018-07-17 Jim Wilson <jimw@sifive.com>
3706
27724bad
JW
3707 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3708 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3709 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3710 unecessary braces after EF_RISCV_RVC test. Delete call to
3711 set_gdbarch_decr_pc_after_break.
3712
ce73f310
JW
3713 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3714 RISCV_LAST_FP_REGNUM + 1.
3715 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3716
056dec39
TT
37172018-07-17 Tom Tromey <tom@tromey.com>
3718
3719 * configure.ac: Remove --disable-gdbcli.
3720 * configure: Rebuild.
3721 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3722 (SUBDIR_CLI_CFLAGS): Remove.
3723 (SFILES): Use SUBDIR_CLI_SRCS.
3724 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3725
4735f0ed
TT
37262018-07-17 Tom Tromey <tom@tromey.com>
3727
3728 PR gdb/18624:
3729 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3730
117a0e99
JW
37312018-07-16 Jim Wilson <jimw@sifive.com>
3732
3733 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3734
8a67aaa8
SM
37352018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3736
3737 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3738 variable.
3739 (libunwind_frame_sniffer): Likewise.
3740 (libunwind_frame_prev_register): Likewise.
3741 (libunwind_sigtramp_frame_sniffer): Likewise.
3742 * ia64-tdep.c (ia64_access_reg): Likewise.
3743 (ia64_access_rse_reg): Likewise.
3744 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3745 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3746
ec74dcd8
SM
37472018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3748
3749 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3750
a700e753
SM
37512018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3752
3753 * remote-sim.c (gdbsim_target::close,
3754 gdbsim_target::mourn_inferior): Remove unused variables.
3755
8b411ff8
SM
37562018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3757
3758 * ia64-tdep.c (ktab_buf): New global.
3759 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3760 (get_kernel_table): Adjust.
3761
edb0470b
TT
37622018-07-16 Tom Tromey <tom@tromey.com>
3763
3764 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3765 * dwarf2read.c (using_directives, new_symbol): Use
3766 outermost_context_p.
3767 * dbxread.c (process_one_symbol): Use outermost_context_p.
3768 * coffread.c (coff_symtab_read): Use outermost_context_p.
3769
6cccc9a8
TT
37702018-07-16 Tom Tromey <tom@tromey.com>
3771
3772 * dwarf2read.c (using_directives, read_func_scope)
3773 (read_lexical_block_scope): Update.
3774 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3775 * buildsym.h (local_using_directives, global_using_directives):
3776 Don't declare.
3777 (get_local_using_directives, set_local_using_directives)
3778 (get_global_using_directives): Declare.
3779 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3780 m_global_using_directives>: New members.
3781 (finish_block_internal, prepare_for_building)
3782 (reset_symtab_globals, end_symtab_get_static_block)
3783 (push_context): Update.
3784 (get_local_using_directives, set_local_using_directives)
3785 (get_global_using_directives): New functions.
3786 (buildsym_init): Update.
3787
652788a7
TT
37882018-07-16 Tom Tromey <tom@tromey.com>
3789
3790 * xcoffread.c (xcoff_initial_scan): Don't call
3791 free_pending_blocks.
3792 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3793 * buildsym.h (class scoped_free_pendings): Add constructor.
3794 (free_pending_blocks): Don't declare.
3795 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3796 (free_pending_blocks): Now static.
3797
8419ee53
TT
37982018-07-16 Tom Tromey <tom@tromey.com>
3799
3800 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3801 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3802 member.
3803 (struct subfile_stack): Remove.
3804 (subfile_stack): Remove.
3805 (push_subfile, pop_subfile, buildsym_init): Update.
3806
ccdac490
TT
38072018-07-16 Tom Tromey <tom@tromey.com>
3808
3809 * buildsym.c (push_subfile): Use gdb_assert.
3810 (pop_subfile): Use gdb_assert.
3811
43130d6f
TT
38122018-07-16 Tom Tromey <tom@tromey.com>
3813
3814 * buildsym.h (merge_symbol_lists): Remove.
3815 * buildsym.c (merge_symbol_lists): Remove.
3816
77d6f1aa
TT
38172018-07-16 Tom Tromey <tom@tromey.com>
3818
3819 * stabsread.c (scan_file_globals): Update comment.
3820 * stabsread.h (scan_file_globals): Move from buildsym.h.
3821 * buildsym.h (scan_file_globals): Move to stabsread.h.
3822
2c722d18
TT
38232018-07-16 Tom Tromey <tom@tromey.com>
3824
3825 * xcoffread.c (xcoff_new_init): Update.
3826 * mipsread.c (mipscoff_new_init): Update.
3827 * mdebugread.c (mdebug_build_psymtabs): Update.
3828 * elfread.c (elf_new_init): Update.
3829 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3830 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3831 * buildsym.h (buildsym_new_init): Don't declare.
3832 * buildsym.c (buildsym_new_init): Remove.
3833
5985ac61
TT
38342018-07-16 Tom Tromey <tom@tromey.com>
3835
3836 * stabsread.h (within_function): Move from buildsym.h.
3837 * stabsread.c (start_stabs): Clear within_function.
3838 * coffread.c (coff_start_symtab): Clear within_function.
3839 * buildsym.h (within_function): Move to stabsread.h.
3840 * buildsym.c (prepare_for_building): Update.
3841
6b84eeb2
TT
38422018-07-16 Tom Tromey <tom@tromey.com>
3843
3844 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3845 * dwarf2read.c (dwarf2_start_symtab): Don't set
3846 processing_gcc_compilation.
3847 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3848
2150c3ef
TT
38492018-07-16 Tom Tromey <tom@tromey.com>
3850
3851 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3852 (next_symbol_text_func): Move from buildsym.h.
3853 * stabsread.c (hashname): Move from buildsym.c.
3854 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3855 (next_symbol_text_func, hashname): Move to stabsread.h.
3856 * buildsym.c: Don't include bcache.h
3857 (hashname): Move to stasbread.c.
3858
0ec44fc0
TT
38592018-07-16 Tom Tromey <tom@tromey.com>
3860
3861 * buildsym.h (context_stack_size): Don't declare.
3862 * buildsym.c (context_stack_size): New global.
3863
81cc346d
TT
38642018-07-16 Tom Tromey <tom@tromey.com>
3865
3866 * dbxread.c (processing_acc_compilation): New global.
3867 * buildsym.h (processing_acc_compilation): Don't declare.
3868
2c99ee5c
TT
38692018-07-16 Tom Tromey <tom@tromey.com>
3870
3871 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3872 * dbxread.c (read_ofile_symtab): Update.
3873 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3874 * buildsym.h (last_source_start_addr): Remove.
3875 (set_last_source_start_addr, get_last_source_start_addr):
3876 Declare.
3877 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3878 parameter.
3879 (struct buildsym_compunit) <m_last_source_start_addr>: New
3880 member.
3881 (prepare_for_building): Remove start_addr parameter.
3882 (start_symtab, restart_symtab, end_symtab_get_static_block)
3883 (end_symtab_with_blockvector): Update.
3884 (set_last_source_start_addr, get_last_source_start_addr): New
3885 functions.
3886
530fedbc
TT
38872018-07-16 Tom Tromey <tom@tromey.com>
3888
3889 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3890 member.
3891 (have_line_numbers): Remove.
3892 (record_line, prepare_for_building, end_symtab_get_static_block)
3893 (augment_type_symtab): Update.
3894
6a976300
TT
38952018-07-16 Tom Tromey <tom@tromey.com>
3896
3897 * buildsym.c (~buildsym_compunit): Free the macro table.
3898 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3899 methods.
3900 <m_pending_macros>: New member.
3901 (pending_macros): Remove.
3902 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3903 (reset_symtab_globals, end_symtab_get_static_block)
3904 (end_symtab_with_blockvector, augment_type_symtab)
3905 (buildsym_init): Update.
3906
c0015d44
TT
39072018-07-16 Tom Tromey <tom@tromey.com>
3908
3909 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3910 parameter.
3911 (buildsym_compunit::set_last_source_file): New method.
3912 <m_last_source_file>: New member.
3913 (prepare_for_building): Remove "name" parameter.
3914 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3915 (last_source_file): Remove.
3916 (set_last_source_file, get_last_source_file): Update.
3917
e62cca7c
TT
39182018-07-16 Tom Tromey <tom@tromey.com>
3919
3920 * buildsym.c (prepare_for_building): Add assert.
3921
905eb0e2
TT
39222018-07-16 Tom Tromey <tom@tromey.com>
3923
3924 * buildsym.c (~buildsym_compunit): Update.
3925 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3926 (start_subfile, patch_subfile_names)
3927 (end_symtab_with_blockvector): Update.
3928
b248663f
TT
39292018-07-16 Tom Tromey <tom@tromey.com>
3930
3931 * buildsym.c (struct buildsym_compunit): Add constructor,
3932 destructor, initializers.
3933 (start_buildsym_compunit): Remove.
3934 (free_buildsym_compunit): Use "delete".
3935 (start_symtab, restart_symtab): Use "new".
3936
ff27d073
SM
39372018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3938
3939 * symfile.c (set_objfile_default_section_offset): Remove struct
3940 keyword.
3941
6a15ecf5
SH
39422018-07-14 Stafford Horne <shorne@gmail.com>
3943
3944 * (Responsible Maintainers): Add myself as or1k maintainer.
3945
027a4c30
TT
39462018-07-13 Tom Tromey <tom@tromey.com>
3947
3948 * symfile.c (set_objfile_default_section_offset): Use extra braces
3949 around initializer.
3950
5c1eda30
AA
39512018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3952
3953 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3954 non-branching basr.
3955
bc7b042b
PW
39562018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3957
3958 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3959 unittests/cli-utils-selftests.c
3960 * unittests/cli-utils-selftests.c: New file.
3961
a14c4daa
PW
39622018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3963
3964 * NEWS: Mention new commands. Mention change to 'thread apply'.
3965
1fe75df7
PW
39662018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3967
3968 * thread.c (thr_try_catch_cmd): New function.
3969 (thread_apply_all_command): Handle qcs flags.
3970 (thread_apply_command): Handle qcs flags.
3971 (taas_command): New function.
3972 (tfaas_command): New function.
3973 (_initialize_thread): Update to setup the new commands 'taas
3974 and 'tfaas'. Change doc string for 'thread apply'.
3975
6a70eb7d
PW
39762018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3977
3978 * stack.c: (trailing_outermost_frame): New function, mostly
3979 extracted from backtrace_command_1.
3980 (leading_innermost_frame): New function.
3981 (backtrace_command_1): Update to call trailing_outermost_frame.
3982 (frame_apply_command_count): New function.
3983 (frame_apply_level_command): New function.
3984 (frame_apply_all_command): New function.
3985 (frame_apply_command): New function.
3986 (faas_command): New function.
3987 (frame_cmd_list): New variable.
3988 (_initialize_stack): Update to setup the new commands 'frame apply'
3989 and 'faas'.
3990
529c08b2
PW
39912018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3992
3993 * cli-utils.c (number_or_range_parser::get_number): Only handle
3994 numbers or convenience var as numbers.
3995 (parse_flags): New function.
3996 (parse_flags_qcs): New function.
3997 (number_or_range_parser::finished): Ensure parsing end is detected
3998 before end of string.
3999 * cli-utils.h (parse_flags): New function.
4000 (parse_flags_qcs): New function.
4001 (number_or_range_parser): Remove m_finished bool.
4002 (number_or_range_parser::skip_range): Set m_in_range to false.
4003
64b58472
SDJ
40042018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4005
4006 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4007 on Windows.
4008
c7ab0aef
SDJ
40092018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4010 Jan Kratochvil <jan.kratochvil@redhat.com>
4011 Paul Fertser <fercerpav@gmail.com>
4012 Tsutomu Seki <sekiriki@gmail.com>
4013 Pedro Alves <palves@redhat.com>
4014
4015 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4016 'unittests/parse-connection-spec-selftests.c'.
4017 (COMMON_SFILES): Add 'common/netstuff.c'.
4018 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4019 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4020 * common/netstuff.c: New file.
4021 * common/netstuff.h: New file.
4022 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4023 (wait_for_connect): Update comment. New parameter
4024 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4025 Use 'sock' directly instead of 'scb->fd'.
4026 (try_connect): New function, with code from 'net_open'.
4027 (net_open): Rewrite main loop to deal with multiple
4028 sockets/addresses. Handle IPv6-style hostnames; implement
4029 support for IPv6 connections.
4030 * unittests/parse-connection-spec-selftests.c: New file.
4031
4c7333b3
PA
40322018-07-11 Pedro Alves <palves@redhat.com>
4033
4034 PR gdb/23377
4035 * remote.c (remote_target::remote_detach_pid): Call
4036 set_current_process.
4037
a6f88f6e
PA
40382018-07-11 Pedro Alves <palves@redhat.com>
4039
4040 * h8300-tdep.c (h8300_gdbarch_init): Remove
4041 set_gdbarch_ecoff_reg_to_regnum calls.
4042
16ff70dd
SDJ
40432018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4044
4045 PR c++/23373
4046 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4047 offsets/sizes for static members of a class/struct.
4048
12863263
AH
40492018-07-11 Alan Hayward <alan.hayward@arm.com>
4050
4051 * target-descriptions.c (tdesc_register_bitsize): Rename.
4052 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4053 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4054 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4055
1123588c
TT
40562018-07-10 Tom Tromey <tom@tromey.com>
4057
4058 * breakpoint.c (moribund_locations): Now static and a
4059 std::vector.
4060 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4061 (build_bpstat_chain, update_global_location_list)
4062 (breakpoint_retire_moribund): Update.
4063 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4064 VEC.
4065
8c49aa89
AB
40662018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4067
4068 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4069 (riscv_register_reggroup_p): Use new function, remove unneeded
4070 parenthesis.
4071 (riscv_push_dummy_call): Extend assert to compare against xlen or
4072 flen based on register type.
4073
42ecac17
AB
40742018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4075
4076 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4077
055303e2
AB
40782018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4079
4080 * remote.c (show_hardware_watchpoint_limit): New function.
4081 (show_hardware_watchpoint_length_limit): New function.
4082 (show_hardware_breakpoint_limit): New function.
4083 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4084 where appropriate, update help text.
4085
8fd32c1c
TT
40862018-07-09 Tom Tromey <tom@tromey.com>
4087
4088 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4089 (CLIBS): Don't mention NAT_CLIBS.
4090
31278b51
TT
40912018-07-09 Tom Tromey <tom@tromey.com>
4092
4093 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4094 (LIBGDB_OBS, clean mostlyclean): Update.
4095 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4096
e5fd1493
TT
40972018-07-09 Tom Tromey <tom@tromey.com>
4098
4099 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4100 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4101 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4102
981e0c0c
TT
41032018-07-09 Tom Tromey <tom@tromey.com>
4104
4105 * Makefile.in (ALLDEPFILES): Remove exec.c.
4106 (COMMON_OBS): Remove exec.o.
4107 (COMMON_SFILES): Add exec.c.
4108
14ccceb2
TT
41092018-07-09 Tom Tromey <tom@tromey.com>
4110
4111 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4112
5d3c3a68
TT
41132018-07-09 Tom Tromey <tom@tromey.com>
4114
4115 * Makefile.in (clean mostlyclean): Remove stamp-version.
4116 (version.c): Depend on stamp-version.
4117 (stamp-version): New rule, from version.c rule.
4118
1998086d
TT
41192018-07-09 Tom Tromey <tom@tromey.com>
4120
4121 * Makefile.in (init.c): Depend on stamp-init.
4122 (stamp-init): New rule, from init.c rule.
4123 (clean mostlyclean): Remove stamp-init.
4124
4c754949
TT
41252018-07-09 Tom Tromey <tom@tromey.com>
4126
4127 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4128 SUBDIR_GCC_COMPILE_SRCS.
4129
6497f1dd
TT
41302018-07-09 Tom Tromey <tom@tromey.com>
4131
4132 * Makefile.in (init.c): Remove some unused sed rules.
4133
97a34db9
TT
41342018-07-09 Tom Tromey <tom@tromey.com>
4135
4136 * Makefile.in (TSOBS): Remove.
4137 (INIT_FILES): Update.
4138 (LIBGDB_OBS): Update.
4139 (COMMON_SFILES): Add inflow.c.
4140 (SFILES): Remove inflow.c.
4141
25289ac1
JK
41422018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4143
4144 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4145
e83f4d97
SM
41462018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4147
4869c585
SM
4148 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4149 get_saveloc_name, is_signal_frame_name, step_name,
4150 init_remote_name, create_addr_space_name,
4151 destroy_addr_space_name, search_unwind_table_name,
4152 find_dyn_list_name): Constify.
e83f4d97 4153
6821842f
SM
41542018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4155
4156 * darwin-nat.c (darwin_pthread_kill): New function.
4157 (darwin_resume_thread): Use darwin_pthread_kill.
4158
c530603c
TV
41592018-07-05 Tom de Vries <tdevries@suse.de>
4160
4161 * macroexp.c (macro_buffer) <operator=>: New member function.
4162
a7d0f0f0
TT
41632018-07-04 Tom Tromey <tom@tromey.com>
4164
4165 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4166
6242c6a6
SM
41672018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4168
4169 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4170 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4171 * maint.c: Likewise.
4172 * top.c: Likewise.
4173
4e5b2f89
JB
41742018-07-04 Joel Brobecker <brobecker@adacore.com>
4175
4176 * NEWS: Create a new section for the next release branch.
4177 Rename the section of the current branch, now that it has
4178 been cut.
4179
538ccc4a
JB
41802018-07-04 Joel Brobecker <brobecker@adacore.com>
4181
4182 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4183 * version.in: Bump version to 8.2.50.DATE-git.
4184
1b919490
VB
41852018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4186 Pedro Alves <palves@redhat.com>
4187
4188 * linux-nat.c (linux_init_ptrace): Rename to ...
4189 (linux_init_ptrace_procfs): ... this. Call
4190 linux_proc_init_warnings.
4191 (linux_nat_target::post_attach)
4192 (linux_nat_target::post_startup_inferior): Adjust.
4193 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4194 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4195
1ea5da02
TV
41962018-07-04 Tom de Vries <tdevries@suse.de>
4197
4198 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4199 check ...
4200 (read_comp_unit_head): ... here.
4201
f51e0e20
TT
42022018-07-03 Tom Tromey <tom@tromey.com>
4203
4204 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4205 (stop_tracing, tstatus_command)
4206 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4207 (print_one_static_tracepoint_marker): Update.
4208 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4209 std::vector.
4210 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4211 VEC.
4212 (all_tracepoints, static_tracepoints_here): Return std::vector.
4213
d7e15655
TT
42142018-07-03 Tom Tromey <tom@tromey.com>
4215
4216 * common/ptid.c (ptid_equal): Remove.
4217 * common/ptid.h (ptid_equal): Don't declare.
4218 * ada-tasks.c: Update.
4219 * breakpoint.c: Update.
4220 * common/agent.c: Update.
4221 * corelow.c: Update.
4222 * darwin-nat-info.c: Update.
4223 * darwin-nat.c: Update.
4224 * dcache.c: Update.
4225 * dtrace-probe.c: Update.
4226 * dummy-frame.c: Update.
4227 * fbsd-nat.c: Update.
4228 * frame.c: Update.
4229 * gdbthread.h: Update.
4230 * gnu-nat.c: Update.
4231 * go32-nat.c: Update.
4232 * inf-loop.c: Update.
4233 * inf-ptrace.c: Update.
4234 * infcall.c: Update.
4235 * infcmd.c: Update.
4236 * inflow.c: Update.
4237 * infrun.c: Update.
4238 * linux-fork.c: Update.
4239 * linux-nat.c: Update.
4240 * linux-thread-db.c: Update.
4241 * mi/mi-cmd-var.c: Update.
4242 * mi/mi-interp.c: Update.
4243 * mi/mi-main.c: Update.
4244 * nto-procfs.c: Update.
4245 * ppc-linux-tdep.c: Update.
4246 * procfs.c: Update.
4247 * python/py-inferior.c: Update.
4248 * python/py-record-btrace.c: Update.
4249 * python/py-record.c: Update.
4250 * ravenscar-thread.c: Update.
4251 * regcache.c: Update.
4252 * remote-sim.c: Update.
4253 * remote.c: Update.
4254 * sol-thread.c: Update.
4255 * solib.c: Update.
4256 * target.c: Update.
4257 * tui/tui-stack.c: Update.
4258 * varobj.c: Update.
4259 * windows-nat.c: Update.
4260 * windows-tdep.c: Update.
4261
26a57c92
TT
42622018-07-03 Tom Tromey <tom@tromey.com>
4263
4264 * common/ptid.c (ptid_match): Remove.
4265 * common/ptid.h (ptid_match): Don't declare.
4266 * fbsd-nat.c: Update.
4267 * infcmd.c: Update.
4268 * infrun.c: Update.
4269 * linux-nat.c: Update.
4270 * record-btrace.c: Update.
4271 * regcache.c: Update.
4272 * remote.c: Update.
4273
d2a107e3
TT
42742018-07-03 Tom Tromey <tom@tromey.com>
4275
4276 * common/ptid.c (ptid_tid_p): Remove.
4277 * common/ptid.h (ptid_tid_p): Don't declare.
4278 * sol-thread.c: Update.
4279
15a9e13e
TT
42802018-07-03 Tom Tromey <tom@tromey.com>
4281
4282 * common/ptid.c (ptid_lwp_p): Remove.
4283 * common/ptid.h (ptid_lwp_p): Don't declare.
4284 * fbsd-nat.c: Update.
4285 * linux-nat.c: Update.
4286 * nat/linux-procfs.c: Update.
4287 * nat/x86-linux-dregs.c: Update.
4288 * sol-thread.c: Update.
4289
0e998d96
TT
42902018-07-03 Tom Tromey <tom@tromey.com>
4291
4292 * common/ptid.c (ptid_is_pid): Remove.
4293 * common/ptid.h (ptid_is_pid): Don't declare.
4294 * infrun.c: Update.
4295 * linux-nat.c: Update.
4296 * mi/mi-interp.c: Update.
4297 * remote.c: Update.
4298 * thread.c: Update.
4299
cc6bcb54
TT
43002018-07-03 Tom Tromey <tom@tromey.com>
4301
4302 * common/ptid.c (ptid_get_tid): Remove.
4303 * common/ptid.h (ptid_get_tid): Don't declare.
4304 * ada-tasks.c: Update.
4305 * aix-thread.c: Update.
4306 * bsd-uthread.c: Update.
4307 * darwin-nat.c: Update.
4308 * fbsd-nat.c: Update.
4309 * i386-darwin-nat.c: Update.
4310 * infrun.c: Update.
4311 * linux-tdep.c: Update.
4312 * nto-procfs.c: Update.
4313 * ppc-ravenscar-thread.c: Update.
4314 * python/py-infthread.c: Update.
4315 * ravenscar-thread.c: Update.
4316 * sol-thread.c: Update.
4317 * sparc-ravenscar-thread.c: Update.
4318 * windows-nat.c: Update.
4319
e38504b3
TT
43202018-07-03 Tom Tromey <tom@tromey.com>
4321
4322 * common/ptid.c (ptid_get_lwp): Remove.
4323 * common/ptid.h (ptid_get_lwp): Don't declare.
4324 * aarch64-linux-nat.c: Update.
4325 * ada-tasks.c: Update.
4326 * aix-thread.c: Update.
4327 * amd64-linux-nat.c: Update.
4328 * arm-linux-nat.c: Update.
4329 * corelow.c: Update.
4330 * fbsd-nat.c: Update.
4331 * fbsd-tdep.c: Update.
4332 * gnu-nat.c: Update.
4333 * i386-cygwin-tdep.c: Update.
4334 * i386-gnu-nat.c: Update.
4335 * i386-linux-nat.c: Update.
4336 * ia64-linux-nat.c: Update.
4337 * inf-ptrace.c: Update.
4338 * infrun.c: Update.
4339 * linux-fork.c: Update.
4340 * linux-nat.c: Update.
4341 * linux-tdep.c: Update.
4342 * linux-thread-db.c: Update.
4343 * mips-linux-nat.c: Update.
4344 * nat/aarch64-linux-hw-point.c: Update.
4345 * nat/aarch64-linux.c: Update.
4346 * nat/linux-btrace.c: Update.
4347 * nat/linux-osdata.c: Update.
4348 * nat/linux-procfs.c: Update.
4349 * nat/x86-linux-dregs.c: Update.
4350 * obsd-nat.c: Update.
4351 * ppc-fbsd-nat.c: Update.
4352 * ppc-linux-nat.c: Update.
4353 * procfs.c: Update.
4354 * python/py-infthread.c: Update.
4355 * ravenscar-thread.c: Update.
4356 * remote.c: Update.
4357 * s390-linux-nat.c: Update.
4358 * sol-thread.c: Update.
4359 * sol2-tdep.c: Update.
4360 * spu-linux-nat.c: Update.
4361 * x86-linux-nat.c: Update.
4362 * xtensa-linux-nat.c: Update.
4363
e99b03dc
TT
43642018-07-03 Tom Tromey <tom@tromey.com>
4365
4366 * common/ptid.c (ptid_get_pid): Remove.
4367 * common/ptid.h (ptid_get_pid): Don't declare.
4368 * aarch64-linux-nat.c: Update.
4369 * ada-lang.c: Update.
4370 * aix-thread.c: Update.
4371 * alpha-bsd-nat.c: Update.
4372 * amd64-fbsd-nat.c: Update.
4373 * amd64-linux-nat.c: Update.
4374 * arm-linux-nat.c: Update.
4375 * arm-nbsd-nat.c: Update.
4376 * auxv.c: Update.
4377 * break-catch-syscall.c: Update.
4378 * breakpoint.c: Update.
4379 * bsd-uthread.c: Update.
4380 * corelow.c: Update.
4381 * ctf.c: Update.
4382 * darwin-nat.c: Update.
4383 * fbsd-nat.c: Update.
4384 * fbsd-tdep.c: Update.
4385 * gcore.c: Update.
4386 * gnu-nat.c: Update.
4387 * hppa-nbsd-nat.c: Update.
4388 * hppa-obsd-nat.c: Update.
4389 * i386-fbsd-nat.c: Update.
4390 * ia64-linux-nat.c: Update.
4391 * inf-ptrace.c: Update.
4392 * infcmd.c: Update.
4393 * inferior.c: Update.
4394 * inferior.h: Update.
4395 * inflow.c: Update.
4396 * infrun.c: Update.
4397 * linux-fork.c: Update.
4398 * linux-nat.c: Update.
4399 * linux-tdep.c: Update.
4400 * linux-thread-db.c: Update.
4401 * m68k-bsd-nat.c: Update.
4402 * mi/mi-interp.c: Update.
4403 * mi/mi-main.c: Update.
4404 * mips-linux-nat.c: Update.
4405 * mips-nbsd-nat.c: Update.
4406 * mips64-obsd-nat.c: Update.
4407 * nat/aarch64-linux-hw-point.c: Update.
4408 * nat/aarch64-linux.c: Update.
4409 * nat/linux-btrace.c: Update.
4410 * nat/linux-osdata.c: Update.
4411 * nat/linux-procfs.c: Update.
4412 * nat/x86-linux-dregs.c: Update.
4413 * nto-procfs.c: Update.
4414 * obsd-nat.c: Update.
4415 * ppc-linux-nat.c: Update.
4416 * ppc-nbsd-nat.c: Update.
4417 * ppc-obsd-nat.c: Update.
4418 * proc-service.c: Update.
4419 * procfs.c: Update.
4420 * python/py-inferior.c: Update.
4421 * python/py-infthread.c: Update.
4422 * ravenscar-thread.c: Update.
4423 * record.c: Update.
4424 * remote-sim.c: Update.
4425 * remote.c: Update.
4426 * rs6000-nat.c: Update.
4427 * s390-linux-nat.c: Update.
4428 * sh-nbsd-nat.c: Update.
4429 * sol-thread.c: Update.
4430 * sparc-nat.c: Update.
4431 * sparc64-tdep.c: Update.
4432 * spu-linux-nat.c: Update.
4433 * spu-tdep.c: Update.
4434 * target-debug.h: Update.
4435 * target.c: Update.
4436 * thread.c: Update.
4437 * tid-parse.c: Update.
4438 * tracefile-tfile.c: Update.
4439 * vax-bsd-nat.c: Update.
4440 * windows-nat.c: Update.
4441 * x86-linux-nat.c: Update.
4442 * x86-nat.c: Update.
4443
f2907e49
TT
44442018-07-03 Tom Tromey <tom@tromey.com>
4445
4446 * common/ptid.c (pid_to_ptid): Remove.
4447 * common/ptid.h (pid_to_ptid): Don't declare.
4448 * aix-thread.c: Update.
4449 * arm-linux-nat.c: Update.
4450 * common/ptid.c: Update.
4451 * common/ptid.h: Update.
4452 * corelow.c: Update.
4453 * ctf.c: Update.
4454 * darwin-nat.c: Update.
4455 * fbsd-nat.c: Update.
4456 * fork-child.c: Update.
4457 * gnu-nat.c: Update.
4458 * go32-nat.c: Update.
4459 * inf-ptrace.c: Update.
4460 * infcmd.c: Update.
4461 * inferior.c: Update.
4462 * infrun.c: Update.
4463 * linux-fork.c: Update.
4464 * linux-nat.c: Update.
4465 * nat/aarch64-linux-hw-point.c: Update.
4466 * nat/fork-inferior.c: Update.
4467 * nat/x86-linux-dregs.c: Update.
4468 * nto-procfs.c: Update.
4469 * obsd-nat.c: Update.
4470 * procfs.c: Update.
4471 * progspace.c: Update.
4472 * remote.c: Update.
4473 * rs6000-nat.c: Update.
4474 * s390-linux-nat.c: Update.
4475 * sol-thread.c: Update.
4476 * spu-linux-nat.c: Update.
4477 * target.c: Update.
4478 * top.c: Update.
4479 * tracefile-tfile.c: Update.
4480 * windows-nat.c: Update.
4481
fd79271b
TT
44822018-07-03 Tom Tromey <tom@tromey.com>
4483
4484 * common/ptid.h (ptid_build): Don't declare.
4485 * common/ptid.c (ptid_build): Remove.
4486 * aix-thread.c: Update.
4487 * bsd-kvm.c: Update.
4488 * bsd-uthread.c: Update.
4489 * common/agent.c: Update.
4490 * common/ptid.c: Update.
4491 * common/ptid.h: Update.
4492 * corelow.c: Update.
4493 * darwin-nat.c: Update.
4494 * fbsd-nat.c: Update.
4495 * gnu-nat.c: Update.
4496 * linux-fork.c: Update.
4497 * linux-nat.c: Update.
4498 * linux-thread-db.c: Update.
4499 * nat/linux-osdata.c: Update.
4500 * nat/linux-procfs.c: Update.
4501 * nto-procfs.c: Update.
4502 * obsd-nat.c: Update.
4503 * proc-service.c: Update.
4504 * procfs.c: Update.
4505 * ravenscar-thread.c: Update.
4506 * remote-sim.c: Update.
4507 * remote.c: Update.
4508 * sol-thread.c: Update.
4509 * target.c: Update.
4510 * windows-nat.c: Update.
4511
057302ce
TT
45122018-07-03 Tom Tromey <tom@tromey.com>
4513
4514 * infrun.c (follow_exec): Use exit_inferior_silent.
4515 * inferior.c (exit_inferior_num_silent): Remove.
4516 * inferior.h (exit_inferior_num_silent): Don't declare.
4517
a50c11c6
TT
45182018-07-03 Tom Tromey <tom@tromey.com>
4519
4520 PR cli/23340:
4521 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4522 inferior_ptid on error.
4523
471b9d15
MR
45242018-07-02 Maciej W. Rozycki <macro@mips.com>
4525 Simon Marchi <simon.marchi@polymtl.ca>
4526
4527 PR tdep/8282
4528 * disasm.h (gdb_disassembler): Add
4529 `m_disassembler_options_holder'. member
4530 * disasm.c (get_all_disassembler_options): New function.
4531 (gdb_disassembler::gdb_disassembler): Use it.
4532 (gdb_buffered_insn_length_init_dis): Likewise.
4533 (gdb_buffered_insn_length): Adjust accordingly.
4534 (set_disassembler_options): Handle options with arguments.
4535 (show_disassembler_options_sfunc): Likewise. Add a leading new
4536 line if showing options with descriptions.
4537 (disassembler_options_completer): Adapt to using the
4538 `disasm_options_and_args_t' structure.
4539 * mips-tdep.c (mips_disassembler_options): New variable.
4540 (mips_disassembler_options_o32): Likewise.
4541 (mips_disassembler_options_n32): Likewise.
4542 (mips_disassembler_options_n64): Likewise.
4543 (gdb_print_insn_mips): Don't set `disassembler_options'.
4544 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4545 functions.
4546 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4547 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4548 `gdbarch_disassembler_options_implicit' and
4549 `gdbarch_valid_disassembler_options'.
4550 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4551 `disasm_options_and_args_t' structure.
4552 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4553 method.
4554 (valid_disassembler_options): Switch from `disasm_options_t' to
4555 the `disasm_options_and_args_t' structure.
4556 * NEWS: Document `set disassembler-options' support for the MIPS
4557 target.
4558 * gdbarch.h: Regenerate.
4559 * gdbarch.c: Regenerate.
4560
41823f29
SH
45612018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4562
4563 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4564
41206e32
JB
45652018-06-29 Joel Brobecker <brobecker@adacore.com>
4566
4567 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4568 parameter in call to amd64_target_description.
4569 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4570 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4571 (amd64fbsd_init_abi): Likewise.
4572 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4573 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4574 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4575 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4576
de52b960
PA
45772018-06-29 Pedro Alves <palves@redhat.com>
4578
4579 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4580 "segments" parameter.
4581 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4582 (_initialize_amd64_tdep): Update call to
4583 amd64_create_target_description.
4584 (amd64_target_description): Add "segments" parameter. Adjust
4585 the implementation to use it.
4586 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4587 call to amd64_create_target_description.
4588 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4589 * gdb/arch/amd64.h (amd64_create_target_description): Add
4590 "segments" register.
4591 * gdb/arch/amd64.c (amd64_create_target_description): Add
4592 "segments" parameter. Call create_feature_i386_64bit_segments
4593 only if SEGMENTS is true.
4594 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4595 call to amd64_create_target_description.
4596
75acb486
PA
45972018-06-29 Pedro Alves <palves@redhat.com>
4598
4599 * thread.c (thread_target_id_str): New, factored out from ...
4600 (print_thread_info_1): ... here. Use it to compute the max
4601 "Target Id" column width.
4602
c76a8ea3
PA
46032018-06-29 Pedro Alves <palves@redhat.com>
4604
4605 * remote.c (remote_target::extra_thread_info): Delete
4606 'display_buf' and 'n' locals. from the cache, regardless of
4607 packet mechanims is in use. Use cache for qThreadExtra and qP
4608 methods too.
4609
cd2bb709
PA
46102018-06-29 Pedro Alves <palves@redhat.com>
4611
4612 * blockframe.c (find_pc_sect_containing_function): New function.
4613 * breakpoint.c (print_breakpoint_location): Don't call
4614 find_pc_sect_function.
4615 * linespec.c (create_sals_line_offset): Record the location's
4616 symbol in the sal.
4617 * linespec.c (convert_address_location_to_sals): Fill in sal's
4618 symbol with find_pc_sect_containing_function.
4619 * symtab.c (find_function_start_sal): Rename to ...
4620 (find_function_start_sal_1): ... this.
4621 (find_function_start_sal): Reimplement as wrapper around
4622 find_function_start_sal_1, and use
4623 find_pc_sect_containing_function to fill in the sal's symbol.
4624 (find_function_start_sal(symbol*, bool)): Adjust.
4625 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4626 comments.
4627 (find_pc_sect_containing_function): Declare.
4628
991ff292
PA
46292018-06-29 Pedro Alves <palves@redhat.com>
4630
4631 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4632 true if the the location has no symbol.
4633
44cee4fd
TT
46342018-06-28 Tom Tromey <tom@tromey.com>
4635
4636 * NEWS: Mention --enable-codesign.
4637 * silent-rules.mk (ECHO_SIGN): New variable.
4638 * configure.ac: Add --enable-codesign.
4639 * configure: Rebuild.
4640 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4641 (gdb$(EXEEXT)): Optionally invoke codesign.
4642
f2ffa92b
PA
46432018-06-28 Pedro Alves <palves@redhat.com>
4644
4645 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4646 comments.
4647 (switch_to_thread_no_regs): Adjust comment.
4648 * infcmd.c (stop_pc): Delete.
4649 (post_create_inferior, info_program_command): Replace references
4650 to stop_pc with references to thread_info->suspend.stop_pc.
4651 * inferior.h (stop_pc): Delete declaration.
4652 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4653 (handle_inferior_event_1, handle_signal_stop)
4654 (process_event_stop_test, keep_going_stepped_thread)
4655 (handle_step_into_function, handle_step_into_function_backward)
4656 (print_stop_location): Replace references to stop_pc with
4657 references to thread_info->suspend.stop_pc.
4658 (struct infcall_suspend_state) <stop_pc>: Delete field.
4659 (save_infcall_suspend_state, restore_infcall_suspend_state):
4660 Remove references to inf_stat->stop_pc.
4661 * linux-fork.c (fork_load_infrun_state): Likewise.
4662 * record-btrace.c (record_btrace_set_replay): Likewise.
4663 * record-full.c (record_full_goto_entry): Likewise.
4664 * remote.c (print_one_stopped_thread): Likewise.
4665 * target.c (target_resume): Extend comment.
4666 * thread.c (set_executing_thread): New.
4667 (set_executing): Use it.
4668 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4669 Remove references to stop_pc.
4670
ecdc3a72
PA
46712018-06-28 Pedro Alves <palves@redhat.com>
4672
4673 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4674 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4675
d95d3aef
TT
46762018-06-28 Tom Tromey <tom@tromey.com>
4677
4678 * coffread.c (coff_symfile_finish): Update.
4679 * xcoffread.c (xcoff_symfile_finish): Update.
4680 * elfread.c (elf_symfile_finish): Update.
4681 * symfile.h (dwarf2_free_objfile): Don't declare.
4682 * dwarf2read.c (_initialize_dwarf2_read): Use
4683 register_objfile_data_with_cleanup.
4684 (dwarf2_free_objfile): Now static. Change signature.
4685
291f9a96
PT
46862018-06-28 Petr Tesarik <ptesarik@suse.cz>
4687
4688 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4689 option "-o" to add-symbol-file-load to add an offset to each
4690 section's load address.
4691 * symfile.c (set_objfile_default_section_offset): New function.
4692
d81a3eaf
PT
46932018-06-28 Petr Tesarik <ptesarik@suse.cz>
4694
4695 * symfile.c (add_symbol_file_command): Make sure that sections
4696 with the same name are sorted in the same order.
4697
ed6dfe51
PT
46982018-06-28 Petr Tesarik <ptesarik@suse.cz>
4699
4700 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4701 require the second argument. If omitted, load sections at the
4702 addresses specified in the file.
4703
d4d429d5
PT
47042018-06-28 Petr Tesarik <ptesarik@suse.cz>
4705
4706 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4707 (_initialize_symfile): Add option "-o" to symbol-file to add an
4708 offset to each section of the symbol file.
4709
39b27ab6
PT
47102018-06-28 Petr Tesarik <ptesarik@suse.cz>
4711
4712 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4713
41827fc3
TT
47142018-06-27 Tom Tromey <tom@tromey.com>
4715
4716 * stack.c (_initialize_stack): Update "func" help text.
4717
0c6aef22
TT
47182018-06-27 Tom Tromey <tom@tromey.com>
4719
4720 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4721 std::vector.
4722 (unwind_infopy_str, pyuw_create_unwind_info)
4723 (unwind_infopy_add_saved_register, pyuw_sniffer)
4724 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4725 Update.
4726 (struct saved_reg): Add constructor.
4727 <value>: Now a gdbpy_ref<>.
4728
63177289
TT
47292018-06-27 Tom Tromey <tom@tromey.com>
4730
4731 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4732
e76f78a0
SM
47332018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4734
4735 * gdb-gdb.py.in: Format using autopep8.
4736
9a14af7b
SM
47372018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4738
4739 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4740 (type_lookup_function): Recognize CORE_ADDR values.
4741
189366cd
SM
47422018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4743
4744 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4745 print tag_name.
4746
68ad5fb9
SM
47472018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4748
4749 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4750 <__lt__>: Add.
4751
141ec9f6
SM
47522018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4753
4754 * gdb-gdb.py: Move to...
4755 * gdb-gdb.py.in: ... here.
4756 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4757 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4758 dependencies.
4759 (distclean): Remove gdb-gdb.py when cleaning.
4760 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4761 * configure: Re-generate.
4762
4c4e7ad4
PA
47632018-06-27 Pedro Alves <palves@redhat.com>
4764
4765 * proc-service.c (get_ps_regcache): New.
4766 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4767 (ps_lsetfpregs): Use it.
4768
7ab6656f
OJ
47692018-06-27 Omair Javaid <omair.javaid@linaro.org>
4770
4771 PR gdb/21695
4772 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4773 (dwarf_decode_lines_1): Adjust.
4774
bd583225
SM
47752018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4776
4777 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4778 override.
4779 <info_proc>: Likewise.
4780
9a325b7b
JB
47812018-06-26 Joel Brobecker <brobecker@adacore.com>
4782
4783 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4784 to windows_fetch_one_register, and only handle the case of
4785 fetching one register. Move the code that reloads the context
4786 and iterates over all registers if R is negative to...
4787 (windows_nat_target::fetch_registers): ... here.
4788 (do_windows_store_inferior_registers): Rename to
4789 windows_store_one_register, and only handle the case of storing
4790 one register. Move the code that handles the case where r is
4791 negative to...
4792 (windows_nat_target::store_registers) ... here.
4793
a33ccfc7
TT
47942018-06-26 Tom Tromey <tom@tromey.com>
4795
4796 PR rust/22574:
4797 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4798 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4799 Update.
4800 (rust_internal_print_type): Add podata parameter.
4801 (rust_print_type): Update.
4802
e0c547d1
TT
48032018-06-26 Tom Tromey <tom@tromey.com>
4804
4805 * typeprint.h (struct print_offset_data) <update, finish,
4806 maybe_print_hole>: New methods.
4807 <indentation>: New constant.
4808 * typeprint.c (print_offset_data::indentation): Define.
4809 (print_offset_data::maybe_print_hole, print_offset_data::update)
4810 (print_offset_data::finish): Move from c-typeprint.c and rename.
4811 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4812 (print_spaces_filtered_with_print_options): Update.
4813 (c_print_type_union_field_offset, maybe_print_hole)
4814 (c_print_type_struct_field_offset): Move to typeprint.c and
4815 rename.
4816 (c_type_print_base_struct_union): Update.
4817
75cbc781
PA
48182018-06-25 Pedro Alves <palves@redhat.com>
4819
4820 * gdbthread.h (thread_info_ref, delete_thread)
4821 (delete_thread_silent, first_thread_of_inferior)
4822 (any_thread_of_inferior, switch_to_thread)
4823 (enable_thread_stack_temporaries)
4824 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4825 (get_last_thread_stack_temporary)
4826 (value_in_thread_stack_temporaries, can_access_registers_thread):
4827 Spell out "struct thread_info" instead of just "thread_info".
4828 * inferior.h (notice_new_inferior): Likewise.
4829
b7a08269
PA
48302018-06-25 Pedro Alves <palves@redhat.com>
4831
4832 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4833 pass thread_info pointer to delete_thread.
4834 (windows_nat_target::detach): Pass inferior pointer to
4835 detach_inferior.
4836 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4837 delete_thread.
4838 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4839 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4840 and pass a thread_info pointer to delete_thread.
4841 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4842 pass thread_info pointer to delete_thread.
4843 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4844 delete_thread_silent call.
4845 * procfs.c (procfs_target::detach): Pass inferior pointer to
4846 detach_inferior.
4847 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4848 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4849 delete_thread_silent call.
4850 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4851 pass thread_info pointer to delete_thread.
4852 (windows_nat_target::detach): Pass inferior pointer to
4853 delete_inferior.
4854
8e7767e3
AH
48552018-06-22 Alan Hayward <alan.hayward@arm.com>
4856
4857 * regcache.c (readable_regcache::read_part): Fix asserts.
4858 (reg_buffer::raw_collect_part): New function.
4859 (regcache::write_part): Fix asserts.
4860 (reg_buffer::raw_supply_part): New function.
4861 (regcache::transfer_regset_register): New helper function.
4862 (regcache::transfer_regset): Call new functions.
4863 (regcache_supply_regset): Use gdb_byte*.
4864 (regcache::supply_regset): Likewise.
4865 (regcache_collect_regset): Likewise.
4866 (regcache::collect_regset): Likewise.
4867 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4868 (reg_buffer::raw_supply_part): Likewise.
4869 (regcache::transfer_regset_register): Likewise.
4870 (regcache::transfer_regset): Use gdb_byte*.
4871
bfd60e34
AH
48722018-06-22 Alan Hayward <alan.hayward@arm.com>
4873
4874 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4875
00431a78
PA
48762018-06-21 Pedro Alves <palves@redhat.com>
4877
4878 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4879 instead of a ptid_t. All callers adjusted.
4880 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4881 adjusted.
4882 (print_ada_task_info, display_current_task_id, task_command_1):
4883 Adjust.
4884 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4885 inferior_thread.
4886 (breakpoint_kind): Adjust.
4887 (remove_breakpoints_pid): Rename to ...
4888 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4889 pointer. All callers adjusted.
4890 (bpstat_clear_actions): Use inferior_thread.
4891 (get_bpstat_thread): New.
4892 (bpstat_do_actions): Use it.
4893 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4894 to take a thread_info pointer. All callers adjusted.
4895 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4896 (breakpoint_re_set_thread): Use inferior_thread.
4897 * breakpoint.h (struct inferior): Forward declare.
4898 (bpstat_stop_status): Update.
4899 (remove_breakpoints_pid): Delete.
4900 (remove_breakpoints_inf): New.
4901 * bsd-uthread.c (bsd_uthread_target::wait)
4902 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4903 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4904 (maint_btrace_packet_history_cmd)
4905 (maint_btrace_clear_packet_history_cmd): Adjust.
4906 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4907 inferior_thread.
4908 * cli/cli-interp.c: Include "inferior.h".
4909 * common/refcounted-object.h (struct
4910 refcounted_object_ref_policy): New.
4911 * compile/compile-object-load.c: Include gdbthread.h.
4912 (store_regs): Use inferior_thread.
4913 * corelow.c (core_target::close): Use current_inferior.
4914 (core_target_open): Adjust to use first_thread_of_inferior and use
4915 the current inferior.
4916 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4917 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4918 <thread>: ... this new field. All references adjusted.
4919 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4920 Take a thread_info pointer instead of a ptid_t.
4921 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4922 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4923 thread_info pointer instead of a ptid_t.
4924 * elfread.c: Include "inferior.h".
4925 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4926 Use inferior_thread.
4927 * eval.c (evaluate_subexp): Likewise.
4928 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4929 inferior_thread.
4930 * gdb_proc_service.h (struct thread_info): Forward declare.
4931 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4932 <thread>: ... this new field. All references adjusted.
4933 * gdbarch.h, gdbarch.c: Regenerate.
4934 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4935 'thread' parameter. All implementations and callers adjusted.
4936 * gdbthread.h (thread_info) <set_running>: New method.
4937 (delete_thread, delete_thread_silent): Take a thread_info pointer
4938 instead of a ptid.
4939 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4940 (first_thread_of_process): Delete, replaced by ...
4941 (first_thread_of_inferior): ... this new function. All callers
4942 adjusted.
4943 (any_live_thread_of_process): Delete, replaced by ...
4944 (any_live_thread_of_inferior): ... this new function. All callers
4945 adjusted.
4946 (switch_to_thread, switch_to_no_thread): Declare.
4947 (is_executing): Delete.
4948 (enable_thread_stack_temporaries): Update comment.
4949 <enable_thread_stack_temporaries>: Take a thread_info pointer
4950 instead of a ptid_t. Incref the thread.
4951 <~enable_thread_stack_temporaries>: Decref the thread.
4952 <m_ptid>: Delete
4953 <m_thr>: New.
4954 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4955 (get_last_thread_stack_temporary)
4956 (value_in_thread_stack_temporaries, can_access_registers_thread):
4957 Take a thread_info pointer instead of a ptid_t. All callers
4958 adjusted.
4959 * infcall.c (get_call_return_value): Use inferior_thread.
4960 (run_inferior_call): Work with thread pointers instead of ptid_t.
4961 (call_function_by_hand_dummy): Work with thread pointers instead
4962 of ptid_t. Use thread_info_ref.
4963 * infcmd.c (proceed_thread_callback): Access thread's state
4964 directly.
4965 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4966 access thread's state directly.
4967 (continue_command): Use inferior_thread.
4968 (info_program_command): Use find_thread_ptid and access thread
4969 state directly.
4970 (proceed_after_attach_callback): Use thread state directly.
4971 (notice_new_inferior): Take a thread_info pointer instead of a
4972 ptid_t. All callers adjusted.
4973 (exit_inferior): Take an inferior pointer instead of a pid. All
4974 callers adjusted.
4975 (exit_inferior_silent): New.
4976 (detach_inferior): Delete.
4977 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4978 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4979 (detach_inferior_command, kill_inferior_command): Use
4980 find_inferior_id instead of valid_gdb_inferior_id and
4981 gdb_inferior_id_to_pid.
4982 (inferior_command): Use inferior and thread pointers.
4983 * inferior.h (struct thread_info): Forward declare.
4984 (notice_new_inferior): Take a thread_info pointer instead of a
4985 ptid_t. All callers adjusted.
4986 (detach_inferior): Delete declaration.
4987 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4988 instead of a pid. All callers adjusted.
4989 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4990 (valid_gdb_inferior_id): Delete.
4991 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4992 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4993 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4994 ...
4995 <inf>: ... this new field.
4996 <step_ptid>: Delete, replaced by ...
4997 <step_thread>: ... this new field.
4998 (get_displaced_stepping_state): Take an inferior pointer instead
4999 of a pid. All callers adjusted.
5000 (displaced_step_in_progress_any_inferior): Adjust.
5001 (displaced_step_in_progress_thread): Take a thread pointer instead
5002 of a ptid_t. All callers adjusted.
5003 (displaced_step_in_progress, add_displaced_stepping_state): Take
5004 an inferior pointer instead of a pid. All callers adjusted.
5005 (get_displaced_step_closure_by_addr): Adjust.
5006 (remove_displaced_stepping_state): Take an inferior pointer
5007 instead of a pid. All callers adjusted.
5008 (displaced_step_prepare_throw, displaced_step_prepare)
5009 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5010 All callers adjusted.
5011 (start_step_over): Adjust.
5012 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5013 displaced step queue.
5014 (do_target_resume): Adjust.
5015 (fetch_inferior_event): Use inferior_thread.
5016 (context_switch, get_inferior_stop_soon): Take an
5017 execution_control_state pointer instead of a ptid_t. All callers
5018 adjusted.
5019 (switch_to_thread_cleanup): Delete.
5020 (stop_all_threads): Use scoped_restore_current_thread.
5021 * inline-frame.c: Include "gdbthread.h".
5022 (inline_state) <inline_state>: Take a thread pointer instead of a
5023 ptid_t. All callers adjusted.
5024 <ptid>: Delete, replaced by ...
5025 <thread>: ... this new field.
5026 (find_inline_frame_state): Take a thread pointer instead of a
5027 ptid_t. All callers adjusted.
5028 (skip_inline_frames, step_into_inline_frame)
5029 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5030 pointer instead of a ptid_t. All callers adjusted.
5031 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5032 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5033 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5034 pointers directly.
5035 * linux-nat.c (get_detach_signal): Likewise.
5036 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5037 (thread_db_notice_clone): Adjust.
5038 (thread_db_find_new_threads_silently)
5039 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5040 a thread pointer instead of a ptid_t. All callers adjusted.
5041 * mi/mi-cmd-var.c: Include "inferior.h".
5042 (mi_cmd_var_update_iter): Update to use thread pointers.
5043 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5044 inferior directly.
5045 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5046 out to ...
5047 (mi_output_running): ... this new function.
5048 (mi_on_resume_1): Adjust to use it.
5049 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5050 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5051 directly.
5052 (interrupt_thread_callback): : Adjust to use thread and inferior
5053 pointers.
5054 * proc-service.c: Include "gdbthread.h".
5055 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5056 * progspace-and-thread.c: Include "inferior.h".
5057 * progspace.c: Include "inferior.h".
5058 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5059 hold a reference to an inferior_object.
5060 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5061 inferior_thread.
5062 * python/py-inferior.c (struct inferior_object): Give the type a
5063 tag name instead of a typedef.
5064 (python_on_normal_stop): No need to check if the current thread is
5065 listed.
5066 (inferior_to_inferior_object): Change return type to
5067 inferior_object. All callers adjusted.
5068 (find_thread_object): Delete, bits factored out to ...
5069 (thread_to_thread_object): ... this new function.
5070 * python/py-infthread.c (create_thread_object): Use
5071 inferior_to_inferior_object.
5072 (thpy_is_stopped): Use thread pointer directly.
5073 (gdbpy_selected_thread): Use inferior_thread.
5074 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5075 field, replaced with ...
5076 <thread>: ... this new field. All users adjusted.
5077 (btpy_insn_or_gap_new): Drop const.
5078 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5079 callers adjusted.
5080 * python/py-record.c: Include "gdbthread.h".
5081 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5082 a ptid_t. All callers adjusted.
5083 (gdbpy_current_recording): Use inferior_thread.
5084 * python/py-record.h (recpy_record_object) <ptid>: Delete
5085 field, replaced with ...
5086 <thread>: ... this new field. All users adjusted.
5087 (recpy_element_object) <ptid>: Delete
5088 field, replaced with ...
5089 <thread>: ... this new field. All users adjusted.
5090 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5091 a ptid_t. All callers adjusted.
5092 * python/py-threadevent.c: Include "gdbthread.h".
5093 (get_event_thread): Use thread_to_thread_object.
5094 * python/python-internal.h (struct inferior_object): Forward
5095 declare.
5096 (find_thread_object, find_inferior_object): Delete declarations.
5097 (thread_to_thread_object, inferior_to_inferior_object): New
5098 declarations.
5099 * record-btrace.c: Include "inferior.h".
5100 (require_btrace_thread): Use inferior_thread.
5101 (record_btrace_frame_sniffer)
5102 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5103 (get_thread_current_frame): Use scoped_restore_current_thread and
5104 switch_to_thread.
5105 (get_thread_current_frame): Use thread pointer directly.
5106 (record_btrace_replay_at_breakpoint): Use thread's inferior
5107 pointer directly.
5108 * record-full.c: Include "inferior.h".
5109 * regcache.c: Include "gdbthread.h".
5110 (get_thread_arch_regcache): Use the inferior's address space
5111 directly.
5112 (get_thread_regcache, registers_changed_thread): New.
5113 * regcache.h (get_thread_regcache(thread_info *thread)): New
5114 overload.
5115 (registers_changed_thread): New.
5116 (remote_target) <remote_detach_1>: Swap order of parameters.
5117 (remote_add_thread): <remote_add_thread>: Return the new thread.
5118 (get_remote_thread_info(ptid_t)): New overload.
5119 (remote_target::remote_notice_new_inferior): Use thread pointers
5120 directly.
5121 (remote_target::process_initial_stop_replies): Use
5122 thread_info::set_running.
5123 (remote_target::remote_detach_1, remote_target::detach)
5124 (extended_remote_target::detach): Adjust.
5125 * stack.c (frame_show_address): Use inferior_thread.
5126 * target-debug.h (target_debug_print_thread_info_pp): New.
5127 * target-delegates.c: Regenerate.
5128 * target.c (default_thread_address_space): Delete.
5129 (memory_xfer_partial_1): Use current_inferior.
5130 (target_detach): Use current_inferior.
5131 (target_thread_address_space): Delete.
5132 (generic_mourn_inferior): Use current_inferior.
5133 * target.h (struct target_ops) <thread_address_space>: Delete.
5134 (target_thread_address_space): Delete.
5135 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5136 pointers directly.
5137 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5138 thread pointer instead of a ptid_t. Adjust all callers.
5139 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5140 (first_thread_of_process): Delete, replaced by ...
5141 (first_thread_of_inferior): ... this new function. All callers
5142 adjusted.
5143 (any_thread_of_process): Rename to ...
5144 (any_thread_of_inferior): ... this, and take an inferior pointer.
5145 (any_live_thread_of_process): Rename to ...
5146 (any_live_thread_of_inferior): ... this, and take an inferior
5147 pointer.
5148 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5149 (value_in_thread_stack_temporaries)
5150 (get_last_thread_stack_temporary): Take a thread pointer instead
5151 of a ptid_t. Adjust all callers.
5152 (thread_info::set_running): New.
5153 (validate_registers_access): Use inferior_thread.
5154 (can_access_registers_ptid): Rename to ...
5155 (can_access_registers_thread): ... this, and take a thread
5156 pointer.
5157 (print_thread_info_1): Adjust to compare thread pointers instead
5158 of ptids.
5159 (switch_to_no_thread, switch_to_thread): Make extern.
5160 (scoped_restore_current_thread::~scoped_restore_current_thread):
5161 Use m_thread pointer directly.
5162 (scoped_restore_current_thread::scoped_restore_current_thread):
5163 Use inferior_thread.
5164 (thread_command): Use thread pointer directly.
5165 (thread_num_make_value_helper): Use inferior_thread.
5166 * top.c (execute_command): Use inferior_thread.
5167 * tui/tui-interp.c: Include "inferior.h".
5168 * varobj.c (varobj_create): Use inferior_thread.
5169 (value_of_root_1): Use find_thread_global_id instead of
5170 global_thread_id_to_ptid.
5171
33bab475
AH
51722018-06-21 Alan Hayward <alan.hayward@arm.com>
5173
5174 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5175 possible.
5176 (regcache::write_part): Likewise.
5177 (readable_regcache::cooked_read_part): Update comment.
5178 (readable_regcache::cooked_write_part): Likewise.
5179 * regcache.h: (readable_regcache::read_part): Likewise.
5180 (regcache::write_part): Likewise.
5181
8363f9d5
RB
51822018-06-21 Richard Bunt <richard.bunt@arm.com>
5183 Dirk Schubert <dirk.schubert@arm.com>
5184
5185 * aarch64-linux-nat.c (post_attach): New.
5186 (aarch64_linux_nat_target::post_attach): Override post_attach to
5187 record the number of hardware debug registers.
5188
0d0b0ea2
TT
51892018-06-20 Tom Tromey <tom@tromey.com>
5190
5191 * python/py-param.c (add_setshow_generic): Make parameters const.
5192 (parmpy_init): Update.
5193
302abd6e
SM
51942018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5195
5196 * regcache.h (regcache_cooked_read_ftype): Rename to...
5197 (register_read_ftype): ...this, change type to function_view.
5198 (class reg_buffer) <save>: Remove src parameter.
5199 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5200 parameter non-const in first overload. Remove src parameter in
5201 second overload.
5202 * regcache.c (do_cooked_read): Remove.
5203 (readonly_detached_regcache::readonly_detached_regcache): Make
5204 parameter non-const, adjust call to other constructor.
5205 (reg_buffer::save): Remove src parameter.
5206 * frame.c (do_frame_register_read): Remove.
5207 (frame_save_as_regcache): Use lambda function.
5208 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5209 parameter to ppu2spu_data *.
5210 (ppu2spu_sniffer): Use lambda function.
5211
19f3f25f
SM
52122018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5213
5214 * record-full.c (record_full_target::insert_breakpoint): Remove
5215 "struct" keyword, add const.
5216
d0ac1c44
SM
52172018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5218
5219 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5220 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5221 * configure.ac: Remove AC_PREREQ, add missing quoting.
5222 * gnulib/configure.ac: Modernize usage of
5223 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5224 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5225 (AUTOMAKE_VERSION): Bump to 1.15.1.
5226 * configure: Re-generate.
5227 * config.in: Re-generate.
5228 * aclocal.m4: Re-generate.
5229 * gnulib/aclocal.m4: Re-generate.
5230 * gnulib/config.in: Re-generate.
5231 * gnulib/configure: Re-generate.
5232 * gnulib/import/Makefile.in: Re-generate.
5233
6ae50267
PA
52342018-06-19 Pedro Alves <palves@redhat.com>
5235
5236 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5237 (lookup_minimal_symbol_by_pc_section): ... here with
5238 gdb_assert_not_reached added.
5239
61b04dd0
PA
52402018-06-19 Pedro Alves <palves@redhat.com>
5241
5242 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5243 parameter with a block parameter. Compare location's block symbol
5244 with the frame's block instead of addresses.
5245 (skip_inline_frames): Pass the current block instead of the
5246 frame's address. Break out as soon as we determine the frame
5247 should not be skipped.
5248
f709fabb
TT
52492018-06-18 Tom Tromey <tom@tromey.com>
5250
5251 * solib-aix.c (solib_aix_get_section_offsets): Return
5252 unique_xmalloc_ptr.
5253 (solib_aix_solib_create_inferior_hook): Update.
5254
668eb2f0
TT
52552018-06-18 Tom Tromey <tom@tromey.com>
5256
5257 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5258
309822ca
TT
52592018-06-18 Tom Tromey <tom@tromey.com>
5260
5261 * solib-frv.c (frv_relocate_main_executable): Use
5262 unique_xmalloc_ptr.
5263 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5264 unique_xmalloc_ptr.
5265
06424eac
TT
52662018-06-18 Tom Tromey <tom@tromey.com>
5267
5268 * objfiles.h (inhibit_section_map_updates): Update.
5269 (resume_section_map_updates, resume_section_map_updates_cleanup):
5270 Remove.
5271 * solib-svr4.c (svr4_handle_solib_event): Update.
5272 * objfiles.c (inhibit_section_map_updates): Return
5273 scoped_restore_tmpl<int>.
5274 (resume_section_map_updates, resume_section_map_updates_cleanup):
5275 Remove.
5276
b4be9fad
TT
52772018-06-18 Tom Tromey <tom@tromey.com>
5278
5279 * valprint.h (read_string): Update.
5280 * valprint.c (read_string): Change type of "buffer".
5281 (val_print_string): Update.
5282 * python/py-value.c (valpy_string): Update.
5283 * language.h (struct language_defn) <la_get_string>: Change
5284 type of "buffer".
5285 (default_get_string, c_get_string): Update.
5286 * language.c (default_get_string): Change type of "buffer".
5287 * guile/scm-value.c (gdbscm_value_to_string): Update.
5288 * c-lang.c (c_get_string): Change type of "buffer".
5289
3f0dbd67
TT
52902018-06-18 Tom Tromey <tom@tromey.com>
5291
5292 * ser-mingw.c (struct pipe_state_destroyer): New.
5293 (pipe_state_up): New typedef.
5294 (cleanup_pipe_state): Remove.
5295 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5296
69d340c6
TT
52972018-06-18 Tom Tromey <tom@tromey.com>
5298
5299 * rust-lang.h (rust_yyerror): Don't declare.
5300 * rust-lang.c (rust_language_defn): Update.
5301 * rust-exp.y (yyerror): Now static.
5302 * parse.c (parse_exp_in_context_1): Update.
5303 * p-lang.h (p_yyerror): Don't declare.
5304 * p-lang.c (p_language_defn): Update.
5305 * p-exp.y (yyerror): Now static.
5306 * opencl-lang.c (opencl_language_defn): Update.
5307 * objc-lang.c (objc_language_defn): Update.
5308 * m2-lang.h (m2_yyerror): Don't declare.
5309 * m2-lang.c (m2_language_defn): Update.
5310 * m2-exp.y (yyerror): Now static.
5311 * language.h (struct language_defn) <la_error>: Remove.
5312 * language.c (unk_lang_error): Remove.
5313 (unknown_language_defn, auto_language_defn): Remove.
5314 * go-lang.h (go_yyerror): Don't declare.
5315 * go-lang.c (go_language_defn): Update.
5316 * go-exp.y (yyerror): Now static.
5317 * f-lang.h (f_yyerror): Don't declare.
5318 * f-lang.c (f_language_defn): Update.
5319 * f-exp.y (yyerror): Now static.
5320 * d-lang.h (d_yyerror): Don't declare.
5321 * d-lang.c (d_language_defn): Update.
5322 * d-exp.y (yyerror): Now static.
5323 * c-lang.h (c_yyerror): Don't declare.
5324 * c-lang.c (c_language_defn, cplus_language_defn)
5325 (asm_language_defn, minimal_language_defn): Update.
5326 * c-exp.y (yyerror): Now static.
5327 * ada-lang.h (ada_yyerror): Don't declare.
5328 * ada-lang.c (ada_language_defn): Update.
5329 * ada-exp.y (yyerror): Now static.
5330
e9902bfc
AH
53312018-06-18 Alan Hayward <alan.hayward@arm.com>
5332
5333 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5334 (store_sveregs_to_thread): Likewise.
5335 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5336 (aarch64_linux_store_inferior_registers): Likewise.
5337 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5338 function.
5339 (aarch64_sve_regs_copy_to_regcache): Likewise.
5340 (aarch64_sve_regs_copy_from_regcache): Likewise.
5341 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5342 declaration.
5343 (aarch64_sve_regs_copy_to_regcache): Likewise.
5344 (aarch64_sve_regs_copy_from_regcache): Likewise.
5345 (sve_context): Structure from Linux headers.
5346 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5347 (SVE_SIG_ZREG_SIZE): Likewise.
5348 (SVE_SIG_PREG_SIZE): Likewise.
5349 (SVE_SIG_FFR_SIZE): Likewise.
5350 (SVE_SIG_REGS_OFFSET): Likewise.
5351 (SVE_SIG_ZREGS_OFFSET): Likewise.
5352 (SVE_SIG_ZREG_OFFSET): Likewise.
5353 (SVE_SIG_ZREGS_SIZE): Likewise.
5354 (SVE_SIG_PREGS_OFFSET): Likewise.
5355 (SVE_SIG_PREG_OFFSET): Likewise.
5356 (SVE_SIG_PREGS_SIZE): Likewise.
5357 (SVE_SIG_FFR_OFFSET): Likewise.
5358 (SVE_SIG_REGS_SIZE): Likewise.
5359 (SVE_SIG_CONTEXT_SIZE): Likewise.
5360 (SVE_PT_REGS_MASK): Likewise.
5361 (SVE_PT_REGS_FPSIMD): Likewise.
5362 (SVE_PT_REGS_SVE): Likewise.
5363 (SVE_PT_VL_INHERIT): Likewise.
5364 (SVE_PT_VL_ONEXEC): Likewise.
5365 (SVE_PT_REGS_OFFSET): Likewise.
5366 (SVE_PT_FPSIMD_OFFSET): Likewise.
5367 (SVE_PT_FPSIMD_SIZE): Likewise.
5368 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5369 (SVE_PT_SVE_PREG_SIZE): Likewise.
5370 (SVE_PT_SVE_FFR_SIZE): Likewise.
5371 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5372 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5373 (__SVE_SIG_TO_PT): Likewise.
5374 (SVE_PT_SVE_OFFSET): Likewise.
5375 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5376 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5377 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5378 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5379 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5380 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5381 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5382 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5383 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5384 (SVE_PT_SVE_SIZE): Likewise.
5385 (SVE_PT_SIZE): Likewise.
5386 (HAS_SVE_STATE): New define.
5387
17a1cc89
AH
53882018-06-18 Alan Hayward <alan.hayward@arm.com>
5389
5390 * nat/aarch64-sve-linux-sigcontext.h: New file.
5391 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5392 new files.
5393 (SVE_VQ_MIN): Likewise.
5394 (SVE_VQ_MAX): Likewise.
5395 (SVE_VL_MIN): Likewise.
5396 (SVE_VL_MAX): Likewise.
5397 (SVE_NUM_ZREGS): Likewise.
5398 (SVE_NUM_PREGS): Likewise.
5399 (sve_vl_valid): Likewise.
5400 (struct user_sve_header): Likewise.
5401
7010835a
AB
54022018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5403 Richard Bunt <Richard.Bunt@arm.com>
5404
5405 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5406 was requested by GDB.
5407
479b3ef4
TV
54082018-06-15 Tom de Vries <tdevries@suse.de>
5409
5410 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5411
8199b8f4
SM
54122018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5413
5414 * gnulib/update-gnulib.sh: Print expected versions of
5415 autoconf/aclocal.
5416
55c748a1
SM
54172018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5418
5419 * arch-utils.c (default_type_align): Use type_length_units.
5420 * gdbtypes.c (type_align): Use type_length_units.
5421
87a8eca7
PW
54222018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5423
5424 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5425 of 'define' command.
5426
5d9a0608
TV
54272018-06-14 Tom de Vries <tdevries@suse.de>
5428
5429 PR cli/22573
5430 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5431 get_no_prettyformat_print_options.
5432
ab89b5a5
SM
54332018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5434
5435 * sparc-nat.h: Include target.h.
5436 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5437 <fetch_registers>: Remove this argument in function call.
5438 <store_registers>: Remove this argument in function call, remove
5439 extra semicolon.
5440 <low_forget_process>: Call sparc64_forget_process instead of
5441 sparc_forget_process.
5442
62c808ae
RO
54432018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5444
5445 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5446 (procfs_target::make_corefile_notes): Adjust to new
5447 target_read_alloc return type.
5448
1840d81a
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 (fetch_inferior_event): If GDB is not proceeding then
5454 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5455 Move should_notify_stop local into more inner scope.
5456
9516f85a
AB
54572018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5458 Stephen Roberts <stephen.roberts@arm.com>
5459
5460 PR gdb/22882
5461 * infrun.c (resume_1): Add call to mark_async_event_handler.
5462
defd2172
AB
54632018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5464
5465 * infrun.c (do_target_wait): Change old version of $pc printed.
5466
7b23e087
SM
54672018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5468
5469 * dwarf2read.c (read_index_from_section): Rename to...
5470 (read_gdb_index_from_section): ... this, update all callers.
5471 (dwarf2_read_index): Rename to...
5472 (dwarf2_read_gdb_index): ... this, update all callers.
5473
69c67a0b
JDA
54742018-06-11 John David Anglin <danglin@gcc.gnu.org>
5475
5476 * gdb/hppa-linux-nat.c
5477 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5478 hppa_linux_nat_target::fetch_registers.
5479
65d4cada
AH
54802018-06-11 Alan Hayward <alan.hayward@arm.com>
5481
5482 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5483 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5484 (AARCH64_DWARF_SVE_FFR): Likewise.
5485 (AARCH64_DWARF_SVE_P0): Likewise.
5486 (AARCH64_DWARF_SVE_Z0): Likewise.
5487
f868386e
AH
54882018-06-11 Alan Hayward <alan.hayward@arm.com>
5489
5490 * common/common-regcache.h (raw_compare): New function.
5491 * regcache.c (regcache::raw_compare): Likewise.
5492 * regcache.h (regcache::raw_compare): New declaration.
5493
9c861883
AH
54942018-06-11 Alan Hayward <alan.hayward@arm.com>
5495
5496 * common/common-regcache.h (reg_buffer_common): New structure.
5497 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5498 (reg_buffer::raw_supply): Likewise.
5499 (reg_buffer::raw_supply_integer): Likewise.
5500 (reg_buffer::raw_supply_zeroed): Likewise.
5501 (reg_buffer::raw_collect): Likewise.
5502 (reg_buffer::raw_collect_integer): Likewise.
5503 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5504 (reg_buffer::raw_supply): Likewise.
5505 (reg_buffer::raw_supply_integer): Likewise.
5506 (reg_buffer::raw_supply_zeroed): Likewise.
5507 (reg_buffer::raw_collect): Likewise.
5508 (reg_buffer::raw_collect_integer): Likewise.
5509
953edf2b
TT
55102018-06-10 Tom Tromey <tom@tromey.com>
5511
5512 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5513 (class remote_state) <stop_reply_queue>: Now std::vector.
5514 (remote_state::~remote_state)
5515 (remote_target::stop_reply_queue_length): Update.
5516 (struct queue_iter_param, remove_child_of_pending_fork)
5517 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5518 (check_pending_event_prevents_wildcard_vcont_callback)
5519 (remove_stop_reply_for_inferior)
5520 (remove_stop_reply_of_remote_state)
5521 (remote_notif_remove_once_on_match)
5522 (stop_reply_match_ptid_and_ws)
5523 (remote_kill_child_of_pending_fork): Remove.
5524 (remote_target::remove_new_fork_children)
5525 (remote_target::check_pending_events_prevent_wildcard_vcont)
5526 (remote_target::discard_pending_stop_replies)
5527 (remote_target::discard_pending_stop_replies_in_queue)
5528 (remote_target::remote_notif_remove_queued_reply)
5529 (remote_target::queued_stop_reply)
5530 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5531 (remote_target::wait, remote_target::kill_new_fork_children)
5532 (remote_target::async): Update.
5533
1ddbba9d
TT
55342018-06-10 Tom Tromey <tom@tromey.com>
5535
5536 * record-full.c (record_full_arch_list_cleanups): Remove.
5537 (record_full_message): Use try/catch.
5538 (record_full_wait_cleanups): Remove.
5539 (record_full_wait_1): Use try/catch.
5540 (record_full_restore): Likewise.
5541
219605fd
TT
55422018-06-10 Tom Tromey <tom@tromey.com>
5543
5544 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5545 declare VEC. Add constructor.
5546 <in_target_beneath>: Now bool.
5547 (record_full_breakpoints): Now a std::vector, static.
5548 (record_full_sync_record_breakpoints)
5549 (record_full_init_record_breakpoints)
5550 (record_full_target::insert_breakpoint)
5551 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5552
71b73764
SM
55532018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5554
5555 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5556 * serial.c (serial_interface_lookup): Remove struct keyword.
5557
4360561f
TT
55582018-06-10 Tom Tromey <tom@tromey.com>
5559
5560 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5561 method.
5562 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5563 a method.
5564 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5565 method.
5566 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5567 "beneath" as a method.
5568 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5569 Use "beneath" as a method.
5570
d14b92bf
TT
55712018-06-10 Tom Tromey <tom@tromey.com>
5572
5573 * tracefile.c (struct trace_file_writer_deleter): New.
5574 <operator()>: Rename from trace_file_writer_xfree.
5575 (trace_file_writer_up): New typedef.
5576 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5577
835dcf92
SM
55782018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5579
5580 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5581 <m_registers, m_register_status>: Change type to
5582 std::unique_ptr.
5583 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5584 XCNEWVEC.
5585
aac0d564
SM
55862018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5587
5588 * common/common-regcache.h (enum register_status): Add
5589 underlying type "signed char".
5590 * regcache.h (reg_buffer) <m_register_status>: Change type to
5591 register_status *.
5592 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5593 register_status instead of signed char.
5594 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5595 (reg_buffer::get_register_status): Remove cast.
5596 (readable_regcache::raw_read): Remove cast.
5597 (readable_regcache::cooked_read): Remove cast.
5598
77ad7394
TT
55992018-06-09 Tom Tromey <tom@tromey.com>
5600
5601 * source.c (reverse_search_command, forward_search_command): Use
5602 scoped_fd.
5603
191cca63
TT
56042018-06-09 Tom Tromey <tom@tromey.com>
5605
5606 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5607 (serial_ops_list): Now static, std::vector.
5608 (serial_interface_lookup, serial_add_interface): Update.
5609
c5d0225d
TT
56102018-06-09 Tom Tromey <tom@tromey.com>
5611
5612 * dwarf2read.c (process_cu_includes): Update.
5613 (process_full_comp_unit): Update.
5614 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5615 std::vector.
5616
aeab5128
PK
56172018-06-08 Paul Koning <paul_koning@dell.com>
5618
5619 PR gdb/23252
5620
5621 * python/python.c (do_start_initialization):
5622 Avoid call to internal Python API.
5623 (init__gdb_module): New function.
5624
5045b3d7
GB
56252018-06-08 Gary Benson <gbenson@redhat.com>
5626
5627 * linux-thread-db.c (valprint.h): New include.
5628 (struct check_thread_db_info): New structure.
5629 (check_thread_db_on_load, tdb_testinfo): New static globals.
5630 (check_thread_db, check_thread_db_callback): New functions.
5631 (try_thread_db_load_1): Run integrity checks if requested.
5632 (maintenance_check_libthread_db): New function.
5633 (_initialize_thread_db): Register "maint check libthread-db"
5634 and "maint set/show check-libthread-db".
5635 * NEWS: Mention the above new commands.
5636
2f4f025f
TT
56372018-06-08 Tom Tromey <tom@tromey.com>
5638
5639 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5640 now a method.
5641
343b0027
TT
56422018-06-08 Tom Tromey <tom@tromey.com>
5643
5644 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5645
8dcc53b3
TT
56462018-06-08 Tom Tromey <tom@tromey.com>
5647
5648 * common/btrace-common.h (struct btrace_data): Add constructor,
5649 destructor, move assignment operator.
5650 <empty, clear, fini>: New methods.
5651 <format>: Initialize.
5652 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5653 (btrace_data_empty): Don't declare.
5654 * common/btrace-common.c (btrace_data_init): Remove.
5655 (btrace_data::fini): Rename from btrace_data_fini.
5656 (btrace_data::empty): Rename from btrace_data_empty.
5657 (btrace_data::clear): Rename from btrace_data_clear. Return
5658 bool.
5659 * btrace.h (make_cleanup_btrace_data): Don't declare.
5660 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5661 (parse_xml_btrace): Update.
5662 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5663 (maint_btrace_clear_packet_history_cmd): Update.
5664
a1740ee1
PA
56652018-06-07 Pedro Alves <palves@redhat.com>
5666
5667 * target.h (target_ops) <beneath>: Now a method. All references
5668 updated.
5669 (class target_stack): New.
5670 * target.c (g_target_stack): New.
5671 (g_current_top_target): Delete.
5672 (current_top_target): Get the top target out of g_target_stack.
5673 (target_stack::push, target_stack::unpush): New.
5674 (push_target, unpush_target): Reimplement.
5675 (target_is_pushed): Reimplement in terms of g_target_stack.
5676 (target_ops::beneath, target_stack::find_beneath): New.
5677
d6ca69cd
PA
56782018-06-07 Pedro Alves <palves@redhat.com>
5679
5680 * target.h (find_target_beneath): Delete declaration.
5681 * target.c (find_target_beneath): Delete definition.
5682 * aix-thread.c: All callers of find_target_beneath adjusted to
5683 call target_ops::beneath instead.
5684 * bsd-uthread.c: Likewise.
5685 * linux-thread-db.c: Likewise.
5686 * ravenscar-thread.c: Likewise.
5687 * sol-thread.c: Likewise.
5688 * spu-multiarch.c: Likewise.
5689
b6a8c27b
PA
56902018-06-07 Pedro Alves <palves@redhat.com>
5691
5692 * target.h (target_ops) <beneath>: Now a method. All references
5693 updated.
5694 (target_ops) <m_beneath>: New.
5695 * target.c (target_ops::beneath): New.
5696 * corelow.c: Adjust all references to target_ops::beneath.
5697 * linux-thread-db.c: Likewise.
5698 * make-target-delegates: Likewise.
5699 * record-btrace.c: Likewise.
5700 * record-full.c: Likewise.
5701 * remote.c: Likewise.
5702 * target.c: Likewise.
5703 * target-delegates.c: Regenerate.
5704
8b88a78e
PA
57052018-06-07 Pedro Alves <palves@redhat.com>
5706
5707 * target.h (target_stack): Delete.
5708 (current_top_target): Declare function.
5709 * target.c (target_stack): Delete.
5710 (g_current_top_target): New.
5711 (current_top_target): New function.
5712 * auxv.c: Use current_top_target instead of target_stack
5713 throughout.
5714 * avr-tdep.c: Likewise.
5715 * breakpoint.c: Likewise.
5716 * corefile.c: Likewise.
5717 * elfread.c: Likewise.
5718 * eval.c: Likewise.
5719 * exceptions.c: Likewise.
5720 * frame.c: Likewise.
5721 * gdbarch-selftests.c: Likewise.
5722 * gnu-v3-abi.c: Likewise.
5723 * ia64-tdep.c: Likewise.
5724 * ia64-vms-tdep.c: Likewise.
5725 * infcall.c: Likewise.
5726 * infcmd.c: Likewise.
5727 * infrun.c: Likewise.
5728 * linespec.c: Likewise.
5729 * linux-tdep.c: Likewise.
5730 * minsyms.c: Likewise.
5731 * ppc-linux-nat.c: Likewise.
5732 * ppc-linux-tdep.c: Likewise.
5733 * procfs.c: Likewise.
5734 * regcache.c: Likewise.
5735 * remote.c: Likewise.
5736 * rs6000-tdep.c: Likewise.
5737 * s390-linux-nat.c: Likewise.
5738 * s390-tdep.c: Likewise.
5739 * solib-aix.c: Likewise.
5740 * solib-darwin.c: Likewise.
5741 * solib-dsbt.c: Likewise.
5742 * solib-spu.c: Likewise.
5743 * solib-svr4.c: Likewise.
5744 * solib-target.c: Likewise.
5745 * sparc-tdep.c: Likewise.
5746 * sparc64-tdep.c: Likewise.
5747 * spu-tdep.c: Likewise.
5748 * symfile.c: Likewise.
5749 * symtab.c: Likewise.
5750 * target-descriptions.c: Likewise.
5751 * target-memory.c: Likewise.
5752 * target.c: Likewise.
5753 * target.h: Likewise.
5754 * tracefile-tfile.c: Likewise.
5755 * tracepoint.c: Likewise.
5756 * valops.c: Likewise.
5757 * valprint.c: Likewise.
5758 * value.c: Likewise.
5759 * windows-tdep.c: Likewise.
5760 * mi/mi-main.c: Likewise.
5761
c7110220
TT
57622018-06-07 Tom Tromey <tom@tromey.com>
5763
5764 * valprint.h (build_address_symbolic): Declare.
5765 * printcmd.c (print_address_symbolic): Update.
5766 (build_address_symbolic): Change "name" and "filename" to
5767 std::string.
5768 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5769 Update.
5770 * defs.h (build_address_symbolic): Remove declaration.
5771
63bad7b6
AH
57722018-06-07 Alan Hayward <alan.hayward@arm.com>
5773
5774 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5775 (aarch64_vnv_type): Add function.
5776 (aarch64_pseudo_register_name): Add V regs for SVE.
5777 (aarch64_pseudo_register_type): Likewise.
5778 (aarch64_pseudo_register_reggroup_p): Likewise.
5779 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5780 (aarch64_pseudo_read_value): Add V regs for SVE.
5781 (aarch64_pseudo_write_2): Use V0 offset for SVE
5782 (aarch64_pseudo_write): Add V regs for SVE.
5783 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5784
13e3c608
SDJ
57852018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5786
5787 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5788 (sve_vl_from_vq): Likewise.
5789
c61b06a1
TT
57902018-06-05 Tom Tromey <tom@tromey.com>
5791
5792 * cli/cli-cmds.c (show_version): Update.
5793 * top.c (print_gdb_version): Add "interactive" parameter.
5794 Update.
5795 * main.c (captured_main_1): Update.
5796 * top.h (print_gdb_version): Add "interactive" parameter and a
5797 comment.
5798
115f7325
DM
57992018-06-05 David Malcolm <dmalcolm@redhat.com>
5800
5801 * common/enum-flags.h: Add trailing semicolon to example in
5802 comment.
5803
eb6af809
TT
58042018-06-05 Tom Tromey <tom@tromey.com>
5805
5806 PR cli/12326:
5807 * NEWS: Add entry about pager.
5808 * utils.c (pagination_disabled_for_command): New global.
5809 (prompt_for_continue): Allow "c" response to prompt.
5810 (reinitialize_more_filter): Clear
5811 pagination_disabled_for_command.
5812 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5813
54d343a2
TT
58142018-06-04 Tom Tromey <tom@tromey.com>
5815
5816 * ada-lang.h (ada_lookup_symbol_list): Update.
5817 * ada-lang.c (resolve_subexp): Update.
5818 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5819 parameter.
5820 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5821 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5822 results parameter to std::vector.
5823 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5824 Update.
5825 * ada-exp.y (block_lookup): Update.
5826 (select_possible_type_sym): Change type of syms. Remove nsyms
5827 parameter.
5828 (write_var_or_type, write_name_assoc): Update.
5829
178d6a63
JB
58302018-06-04 Joel Brobecker <brobecker@adacore.com>
5831
5832 * windows-nat.c (windows_nat_target::xfer_partial): Return
5833 TARGET_XFER_E_IO if we need to delegate to the target beneath
5834 but BENEATH is NULL.
5835
baf00c2d
SM
58362018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5837
5838 * Makefile.in (config.status): Add configure.nat as a
5839 dependency.
5840
214b073c
TT
58412018-06-04 Tom Tromey <tom@tromey.com>
5842
5843 * cp-name-parser.y (cpname_state): Add method declarations.
5844 (HANDLE_QUAL): Update.
5845 (cpname_state::d_grab, cpname_state::fill_comp)
5846 (cpname_state::make_operator, cpname_state::make_dtor)
5847 (cpname_state::make_builtin_type, cpname_state::make_name)
5848 (cpname_state::d_qualify, cpname_state::d_int_type)
5849 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5850 (%union): Move earlier.
5851
62b74cb8
AH
58522018-06-04 Alan Hayward <alan.hayward@arm.com>
5853
5854 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5855
3c5cd5c3
AH
58562018-06-04 Alan Hayward <alan.hayward@arm.com>
5857
5858 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5859 (aarch64_pseudo_write_1): Likewise.
5860 (aarch64_pseudo_read_value): Use helper.
5861 (aarch64_pseudo_write): Likewise.
5862
59f413d5
PA
58632018-06-04 Pedro Alves <palves@redhat.com>
5864
5865 * darwin-nat.c (darwin_ops): Delete.
5866 (darwin_attach_pid): Use get_native_target.
5867
1332a140
AH
58682018-06-04 Alan Hayward <alan.hayward@arm.com>
5869
5870 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5871 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5872
ba2d2bb2
AH
58732018-06-04 Alan Hayward <alan.hayward@arm.com>
5874
5875 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5876 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5877 (aarch64_gdbarch_init): Check for SVE.
5878 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5879
58802018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
5881
5882 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5883 * aarch64-tdep.h (aarch64_read_description): Likewise.
5884 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5885 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5886 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5887 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5888 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5889
41c60b4b
SM
58902018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5891
5892 * value.c (value_fetch_lazy_bitfield): New.
5893 (value_fetch_lazy_memory): New.
5894 (value_fetch_lazy_register): New.
5895 (value_fetch_lazy): Factor out to smaller functions.
5896
7b640f72
TT
58972018-06-01 Tom Tromey <tom@tromey.com>
5898
5899 * cp-name-parser.y (backslashable, represented): Now const.
5900
98e69eb3
TT
59012018-06-01 Tom Tromey <tom@tromey.com>
5902
5903 * cp-name-parser.y: Include parser-defs.h.
5904 (parser_fprintf): Remove declaration.
5905
49265499
TT
59062018-06-01 Tom Tromey <tom@tromey.com>
5907
5908 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5909 %parse-param.
5910 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5911 (global_result): Remove globals.
5912 (struct cpname_state): New.
5913 (yyparse): Don't declare.
5914 (yylex, yyerror): Move declarations after %union.
5915 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5916 (make_name): Add state parameter.
5917 Update all callers.
5918 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5919 parameter.
5920 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5921 Update.
5922 (yylex): Add lvalp, state parameters.
5923 (yyerror): Add state parameter.
5924 (cp_demangled_name_to_comp): Update.
5925
55b6c984
TT
59262018-06-01 Tom Tromey <tom@tromey.com>
5927
5928 * cp-name-parser.y (parser_fprintf): Declare.
5929 (GDB_YY_REMAP_PREFIX): Define.
5930 Include yy-remap.h. Don't redefine yy* identifiers.
5931
3513a6bb
TT
59322018-06-01 Tom Tromey <tom@tromey.com>
5933
5934 * python/py-type.c (typy_legacy_template_argument): Update.
5935 * cp-support.h (cp_demangled_name_to_comp): Update.
5936 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5937 parameter to be a "std::string *".
5938 (main): Update.
5939
e9cb46ab
L
59402018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5941
5942 * ada-lex.l: Include "diagnostics.h" instead of
5943 "common/diagnostics.h".
5944 * unittests/environ-selftests.c: Likewise.
5945 * common/diagnostics.h: Moved to ../include.
5946
8e817061
JB
59472018-06-01 Joel Brobecker <brobecker@adacore.com>
5948
5949 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5950 to language_mode_manual while calling breakpoint_re_set_one.
5951
a737d952
TT
59522018-06-01 Tom Tromey <tom@tromey.com>
5953
5954 * valops.c (value_cast_structs, destructor_name_p): Update.
5955 * symtab.c (gdb_mangle_name): Update.
5956 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5957 Update.
5958 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5959 (pascal_object_print_value_fields, pascal_object_print_value):
5960 Update.
5961 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5962 * linespec.c (find_methods): Update.
5963 * gdbtypes.h (type_name_no_tag): Remove.
5964 (type_name_or_error): Rename from type_name_no_tag_or_error.
5965 * gdbtypes.c (type_name_no_tag): Remove.
5966 (type_name_or_error): Rename from type_name_no_tag_or_error.
5967 (lookup_struct_elt_type, check_typedef): Update.
5968 * expprint.c (print_subexp_standard): Update.
5969 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5970 * d-namespace.c (d_lookup_nested_symbol): Update.
5971 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5972 (cp_print_class_member): Update.
5973 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5974 * completer.c (add_struct_fields): Update.
5975 * c-typeprint.c (cp_type_print_derivation_info)
5976 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5977 Update.
5978 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5979 (ada_prefer_type, ada_is_exception_sym): Update.
5980
e86ca25f
TT
59812018-06-01 Tom Tromey <tom@tromey.com>
5982
5983 * valops.c (enum_constant_from_type, value_namespace_elt)
5984 (value_maybe_namespace_elt): Update.
5985 * valarith.c (find_size_for_pointer_math): Update.
5986 * target-descriptions.c (make_gdb_type): Update.
5987 * symmisc.c (print_symbol): Update.
5988 * stabsread.c (define_symbol, read_type)
5989 (complain_about_struct_wipeout, add_undefined_type)
5990 (cleanup_undefined_types_1): Update.
5991 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5992 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5993 (rust_internal_print_type, rust_composite_type)
5994 (rust_evaluate_funcall, rust_evaluate_subexp)
5995 (rust_inclusive_range_type_p): Update.
5996 * python/py-type.c (typy_get_tag): Update.
5997 * p-typeprint.c (pascal_type_print_base): Update.
5998 * mdebugread.c (parse_symbol, parse_type): Update.
5999 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6000 Update.
6001 * guile/scm-type.c (gdbscm_type_tag): Update.
6002 * go-lang.c (sixg_string_p): Update.
6003 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6004 Update.
6005 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6006 (TYPE_TAG_NAME): Remove.
6007 * gdbtypes.c (type_name_no_tag): Simplify.
6008 (check_typedef, check_types_equal, recursive_dump_type)
6009 (copy_type_recursive, arch_composite_type): Update.
6010 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6011 in summary mode when needed.
6012 * eval.c (evaluate_funcall): Update.
6013 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6014 (process_structure_scope, read_enumeration_type)
6015 (read_namespace_type, read_module_type, determine_prefix): Update.
6016 * cp-support.c (inspect_type): Update.
6017 * coffread.c (process_coff_symbol, decode_base_type): Update.
6018 * c-varobj.c (c_is_path_expr_parent): Update.
6019 * c-typeprint.c (c_type_print_base_struct_union): Update.
6020 (c_type_print_base_1): Update. Print struct/class/union/enum in
6021 summary when using C language.
6022 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6023 (gen_maybe_namespace_elt): Update.
6024 * ada-lang.c (ada_type_name): Simplify.
6025 (empty_record, ada_template_to_fixed_record_type_1)
6026 (template_to_static_fixed_type)
6027 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6028
c1ec8cea
TT
60292018-06-01 Tom Tromey <tom@tromey.com>
6030
6031 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6032 c_print_type.
6033 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6034 (c_print_type): Update.
6035 (c_print_type): New overload.
6036 (c_type_print_varspec_prefix, c_type_print_args)
6037 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6038 (c_type_print_base_struct_union, c_type_print_base_1)
6039 (cp_type_print_method_args): Add "language" parameter.
6040 (c_type_print_base): Update.
6041 * c-lang.h (c_print_type): Add new overload.
6042
bc8453a7
TT
60432018-06-01 Tom Tromey <tom@tromey.com>
6044
6045 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6046 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6047
739e8682
AH
60482018-06-01 Alan Hayward <alan.hayward@arm.com>
6049
6050 * aarch64-tdep.c (aarch64_sve_register_names): New const
6051 var.
6052 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6053 (AARCH64_SVE_Z_REGS_NUM): New define.
6054 (AARCH64_SVE_P_REGS_NUM): Likewise.
6055 (AARCH64_SVE_NUM_REGS): Likewise.
6056
8a60efe7
UB
60572018-05-31 Uros Bizjak <ubizjak@gmail.com>
6058
6059 * nat/linux-ptrace.h [__alpha__]
6060 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6061 definitions.
6062
4b2dfa9d
MR
60632018-05-31 Maciej W. Rozycki <macro@mips.com>
6064
6065 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6066 the endianness selected.
6067 * NEWS: Document `set endian auto' mode operation update.
6068
122394f1
AH
60692018-05-31 Alan Hayward <alan.hayward@arm.com>
6070
6071 * Makefile.in: Add new header.
6072 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6073 (sve_vl_from_vg): Likewise.
6074 (sve_vq_from_vl): Likewise.
6075 (sve_vl_from_vq): Likewise.
6076 (sve_vq_from_vg): Likewise.
6077 (sve_vg_from_vq): Likewise.
6078 * configure.nat: Add new c file.
6079 * nat/aarch64-sve-linux-ptrace.c: New file.
6080 * nat/aarch64-sve-linux-ptrace.h: New file.
6081
95228a0d
AH
60822018-05-31 Alan Hayward <alan.hayward@arm.com>
6083
6084 * aarch64-linux-nat.c (aarch64_linux_read_description):
6085 Add parmeter zero.
6086 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6087 Likewise.
6088 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6089 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6090 (aarch64_gdbarch_init): Add parmeter zero.
6091 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6092 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6093 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6094 parmeter.
6095 * doc/gdb.texinfo: Describe SVE feature
6096 * features/aarch64-sve.c: New file.
6097
5969f0db
OJ
60982018-05-31 Omair Javaid <omair.javaid@linaro.org>
6099
6100 PR gdb/23210
6101 * gdbarch.sh (significant_addr_bit): Default to zero when
6102 not set by target architecture.
6103 * gdbarch.c: Re-generated.
6104 * utils.c (address_significant): Update.
6105
61367c61
JB
61062018-05-30 Joel Brobecker <brobecker@adacore.com>
6107
6108 * stack.c (func_command): Remove trailing newline in call to error.
6109
34a79281
SM
61102018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6111
6112 * regcache.h (regcache_raw_collect): Remove, update callers to
6113 use regcache::raw_collect.
6114 * regcache.c (regcache_raw_collect): Remove.
6115
73e1c03f
SM
61162018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6117
6118 * regcache.h (regcache_raw_supply): Remove, update callers to
6119 use detached_regcache::raw_supply.
6120 * regcache.c (regcache_raw_supply): Remove.
6121
e4c4a59b
SM
61222018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6123
6124 * regcache.h (regcache_cooked_write_part): Remove, update
6125 callers to use regcache::cooked_write_part.
6126 * regcache.c (regcache_cooked_write_part): Remove.
6127
73bb0000
SM
61282018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6129
6130 * regcache.h (regcache_cooked_read_part): Remove, update callers
6131 to use readable_regcache::cooked_read_part.
6132 * regcache.c (regcache_cooked_read_part): Remove.
6133
46a45e9d
SM
61342018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6135
6136 * regcache.h (regcache_cooked_read_value): Remove, update
6137 callers to use readable_regcache::cooked_read_value.
6138 * regcache.c (regcache_cooked_read_value): Remove.
6139
b66f5587
SM
61402018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6141
6142 * regcache.h (regcache_cooked_write): Remove, update callers to
6143 use regcache::cooked_write.
6144 * regcache.c (regcache_cooked_write): Remove.
6145
6aa7d724
SM
61462018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6147
6148 * regcache.h (regcache_invalidate): Remove, update callers to
6149 use detached_regcache::invalidate instead.
6150 * regcache.c (regcache_invalidate): Remove.
6151
4f0420fd
SM
61522018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6153
6154 * regcache.h (regcache_raw_write_part): Remove, update callers
6155 to use regcache::raw_write_part instead.
6156 * regcache.c (regcache_raw_write_part): Remove.
6157
502fe83e
SM
61582018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6159
6160 * regcache.h (regcache_raw_read_part): Remove, update callers to
6161 use readable_regcache::raw_read_part instead.
6162 * regcache.c (regcache_raw_read_part): Remove.
6163
dca08e1f
SM
61642018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6165
6166 * regcache.h (regcache_cooked_read): Remove, update callers to
6167 use readable_regcache::cooked_read instead.
6168 * regcache.c (regcache_cooked_read): Remove.
6169
10eaee5f
SM
61702018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6171
6172 * regcache.h (regcache_raw_write): Remove, update callers to use
6173 regcache::raw_write instead.
6174 * regcache.c (regcache_raw_write): Remove.
6175
0b883586
SM
61762018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6177
6178 * regcache.h (regcache_raw_read): Remove, update callers to use
6179 readable_regcache::raw_read instead.
6180 * regcache.c (regcache_raw_read): Remove.
6181
0b47d985
SM
61822018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6183
6184 * regcache.h (regcache_raw_update): Remove, update callers to
6185 use readable_regcache::raw_update instead.
6186 * regcache.c (regcache_raw_update): Remove.
6187
0ec9f114
SM
61882018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6189
6190 * regcache.h (regcache_register_status): Remove, update callers
6191 to use reg_buffer::get_register_status directly instead.
6192 * regcache.c (regcache_register_status): Remove.
6193
222312d3
SM
61942018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6195
6196 * regcache.h (regcache_get_ptid): Remove, update all callers to
6197 call regcache::ptid instead.
6198 * regcache.c (regcache_get_ptid): Remove.
6199
fdbe37e3
SM
62002018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6201
6202 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6203
f7c6f423
PA
62042018-05-30 Pedro Alves <palves@redhat.com>
6205
6206 * common/common-exceptions.h (exception_rethrow): Use
6207 ATTRIBUTE_NORETURN.
6208
52941706
SM
62092018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6210
6211 * breakpoint.c (print_solib_event, check_status_catch_solib):
6212 Remove struct keyword in range-based for loops.
6213 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6214 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6215 Likewise.
6216 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6217 Likewise.
6218 * symfile.c (addr_info_make_relative): Likewise.
6219 * thread.c (value_in_thread_stack_temporaries): Likewise.
6220
bf2977b5
WP
62212018-06-12 Weimin Pan <weimin.pan@oracle.com>
6222
6223 PR gdb/16841
6224 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6225 aggregate type to get its real type before accessing it.
6226
64cc34d8
WP
62272018-05-29 Weimin Pan <weimin.pan@oracle.com>
6228
6229 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6230 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6231 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6232 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6233 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6234 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6235 * printcmd.c (info_address_command): Likewise.
6236
e7ec8713
TT
62372018-05-29 Tom Tromey <tom@tromey.com>
6238
6239 * windows-nat.c (handle_exception): Update fall-through comment.
6240
bcb430e4
TT
62412018-05-29 Tom Tromey <tom@tromey.com>
6242
6243 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6244 (struct program_space) <added_solibs>: Now a std::vector.
6245 * breakpoint.c (print_solib_event): Update.
6246 (check_status_catch_solib): Update.
6247 * progspace.c (clear_program_space_solib_cache): Update.
6248 * solib.c (update_solib_list): Update.
6249
894882e3
TT
62502018-05-29 Tom Tromey <tom@tromey.com>
6251
6252 * python/py-type.c (typy_richcompare): Update.
6253 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6254 * gdbtypes.h (types_deeply_equal): Return bool.
6255 (types_equal): Likewise.
6256 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6257 declare VEC.
6258 (check_types_equal): Change worklist to std::vector. Return
6259 bool.
6260 (struct type_equality_entry): Add constructor.
6261 (compare_maybe_null_strings): Return bool.
6262 (check_types_worklist): Return bool. Change worklist to
6263 std::vector.
6264 (types_deeply_equal): Use std::vector.
6265 (types_equal): Return bool.
6266 (compare_maybe_null_strings): Simplify.
6267
10b2ded4
TT
62682018-05-29 Tom Tromey <tom@tromey.com>
6269
6270 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6271
4f7deebe
TT
62722018-05-29 Tom Tromey <tom@tromey.com>
6273
6274 * objc-lang.h: Don't include cp-support.h.
6275 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6276 declare VEC.
6277
b8283aea
TT
62782018-05-27 Tom Tromey <tom@tromey.com>
6279
6280 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6281
41a883c8
TT
62822018-05-25 Tom Tromey <tom@tromey.com>
6283
6284 * value.c (value::location): Initialize.
6285
bf259e25
TT
62862018-05-25 Tom Tromey <tom@tromey.com>
6287
6288 * dbxread.c (init_bincl_list): Remove.
6289 (bincl_list): Now a std::vector.
6290 (bincls_allocated, next_bincl): Remove.
6291 (free_bincl_list, do_free_bincl_list_cleanup)
6292 (make_cleanup_free_bincl_list): Remove.
6293 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6294 unique_xmalloc_ptr.
6295 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6296 (struct header_file_location): Add constructor.
6297 (add_bincl_to_list): Remove.
6298
d525a99b
TT
62992018-05-25 Tom Tromey <tom@tromey.com>
6300
6301 * tui/tui.c (tui_enable): Update.
6302 * mi/mi-interp.c (mi_interp::init): Update.
6303 * interps.h (class interp) <name>: New method.
6304 <m_name>: Rename from name.
6305 (~scoped_restore_interp): Update.
6306 * interps.c (interp::interp): Update.
6307 (interp_add, interp_set, interp_lookup_existing)
6308 (current_interp_named_p): Update.
6309
da505cff
TT
63102018-05-25 Tom Tromey <tom@tromey.com>
6311
6312 * interps.c (interp_name): Remove.
6313 * mi/mi-interp.c (mi_interp::init): Update.
6314 * interps.h (interp_name): Remove.
6315 (~scoped_restore_interp): Update.
6316 * tui/tui.c (tui_enable): Update.
6317
29f94340
TT
63182018-05-25 Tom Tromey <tom@tromey.com>
6319
6320 * utils.c (fputs_maybe_filtered): Update.
6321 * linespec.c (decode_line_full): Update.
6322 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6323 (mi_print_breakpoint_for_event, mi_solib_loaded)
6324 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6325 (mi_user_selected_context_changed): Update.
6326 * mi/mi-main.c (mi_execute_command): Update.
6327 * cli/cli-script.c (execute_control_command): Update.
6328 * python/python.c (execute_gdb_command): Update.
6329 * solib.c (info_sharedlibrary_command): Update.
6330 * interps.c (interp_ui_out): Remove.
6331 * interps.h (interp_ui_out): Remove.
6332
716b8bc5
TT
63332018-05-25 Tom Tromey <tom@tromey.com>
6334
6335 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6336 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6337 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6338
753ff9bd
TT
63392018-05-25 Tom Tromey <tom@tromey.com>
6340
6341 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6342 * interps.c (interp_exec): Use scoped_restore.
6343
5ca3b260
TT
63442018-05-25 Tom Tromey <tom@tromey.com>
6345
6346 * remote.c (remote_target::remote_file_get): Use
6347 gdb::byte_vector.
6348 (remote_target::remote_file_put): Likewise.
6349
3173aa2f
TT
63502018-05-25 Tom Tromey <tom@tromey.com>
6351
6352 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6353 a std::string.
6354 (get_pe_section_index, add_pe_exported_sym): Update.
6355 (read_pe_exported_syms): Use gdb::def_vector.
6356
09a5e1b5
TT
63572018-05-25 Tom Tromey <tom@tromey.com>
6358
6359 * frame.c (remove_prev_frame): Remove.
6360 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6361
d8dab6c3
MR
63622018-05-25 Maciej W. Rozycki <macro@mips.com>
6363
6364 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6365 Remove prototypes.
6366 * mips-linux-nat.c (supply_fpregset): Always call
6367 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6368 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6369 `mips_fill_fpregset'.
6370 * mips-linux-tdep.c (mips_supply_fpregset)
6371 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6372 (mips_fill_fpregset_wrapper): Remove functions.
6373 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6374 (mips_linux_fpregset): Remove variable.
6375 (mips_linux_iterate_over_regset_sections): Use
6376 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6377 (mips_linux_o32_sigframe_init): Remove comment.
6378
3c69da40
PA
63792018-05-25 Pedro Alves <palves@redhat.com>
6380
6381 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6382 (struct readahead_cache, struct packet_reg, struct
6383 remote_arch_state, class remote_state): Move higher up in the
6384 file.
6385 (remote_target::m_remote_state): Now an object instead of a pointer.
6386 (remote_target::get_remote_state): Adjust.
6387
39f0c204
AB
63882018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6389
6390 * stack.c (select_and_print_frame): Delete.
6391 (struct function_bounds): Move struct within function.
6392 (func_command): Most content moved into new function
6393 find_frame_for_function, use new function, print result, add
6394 function comment.
6395 (find_frame_for_function): New function, now returns a result.
6396
d392224a
PW
63972018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6398
6399 * stack.c (iterate_over_block_arg_vars): Fix comment.
6400 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6401
45f25d6c
AB
64022018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6403
6404 PR gdb/23203
6405 * frame.c
6406 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6407 Define.
6408 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6409 Define.
6410 * frame.h (class scoped_restore_selected_frame): New class.
6411 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6412 of any exception, use scoped_restore_selected_frame to restore the
6413 frame instead.
6414
da05d921
PA
64152018-05-24 Pedro Alves <palves@redhat.com>
6416
6417 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6418 override.
6419
a8be540e
TT
64202018-05-23 Tom Tromey <tom@tromey.com>
6421
6422 * complaints.c (struct complaints): Remove.
6423 (symfile_complaint_book): Remove.
6424 (series): New global.
6425 (complaint_internal): Update.
6426 (clear_complaints): Update.
6427
ff1cf532
TT
64282018-05-23 Tom Tromey <tom@tromey.com>
6429
6430 * complaints.c (counters): New global.
6431 (struct complain): Remove.
6432 (struct complaints) <root>: Remove.
6433 (complaint_sentinel): Remove.
6434 (symfile_complaint_book): Update.
6435 (find_complaint) Remove.
6436 (complaint_internal, clear_complaints): Update.
6437
7ff88174
TT
64382018-05-23 Tom Tromey <tom@tromey.com>
6439
6440 * complaints.c (struct complain) <file, line>: Remove.
6441 (find_complaint): Remove file, line parameters.
6442 (complaint_internal): Update.
6443
de54e1a5
TT
64442018-05-23 Tom Tromey <tom@tromey.com>
6445
6446 * complaints.c (vcomplaint): Remove.
6447 (complaint_internal) Merge in contents of vcomplaint.
6448
2ac237e5
TT
64492018-05-23 Tom Tromey <tom@tromey.com>
6450
6451 * complaints.c (struct complaints) <explanation>: Remove.
6452 (symfile_explanations): Remove.
6453 (symfile_complaint_book): Update.
6454 (vcomplaint): Update.
6455 (struct explanation): Remove.
6456
b98664d3
TT
64572018-05-23 Tom Tromey <tom@tromey.com>
6458
6459 * complaints.c (symfile_complaints): Remove.
6460 (complaint_internal): Remove "complaints" parameter.
6461 (clear_complaints, vcomplaint): Remove "c" parameter.
6462 (get_complaints): Remove.
6463 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6464 (dwarf2_debug_line_missing_file_complaint)
6465 (dwarf2_debug_line_missing_end_sequence_complaint)
6466 (dwarf2_complex_location_expr_complaint)
6467 (dwarf2_const_value_length_mismatch_complaint)
6468 (dwarf2_section_buffer_overflow_complaint)
6469 (dwarf2_macro_malformed_definition_complaint)
6470 (dwarf2_invalid_attrib_class_complaint)
6471 (create_addrmap_from_index, dw2_symtab_iter_next)
6472 (dw2_expand_marked_cus)
6473 (dw2_debug_names_iterator::find_vec_in_debug_names)
6474 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6475 (create_debug_type_hash_table, init_cutu_and_read_dies)
6476 (partial_die_parent_scope, add_partial_enumeration)
6477 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6478 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6479 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6480 (create_cus_hash_table, create_dwp_hash_table)
6481 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6482 (dwarf2_rnglists_process, dwarf2_ranges_process)
6483 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6484 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6485 (handle_struct_member_die, process_structure_scope)
6486 (read_array_type, read_common_block, read_module_type)
6487 (read_tag_pointer_type, read_typedef, read_base_type)
6488 (read_subrange_type, load_partial_dies, partial_die_info::read)
6489 (partial_die_info::read, partial_die_info::read)
6490 (partial_die_info::read, read_checked_initial_length_and_offset)
6491 (dwarf2_string_attr, read_formatted_entries)
6492 (dwarf_decode_line_header)
6493 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6494 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6495 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6496 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6497 (get_signatured_type, get_DW_AT_signature_type)
6498 (decode_locdesc, file_file_name, consume_improper_spaces)
6499 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6500 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6501 (dwarf2_symbol_mark_computed, set_die_type)
6502 (read_attribute_value): Update.
6503 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6504 Update.
6505 * dbxread.c (unknown_symtype_complaint)
6506 (lbrac_mismatch_complaint, repeated_header_complaint)
6507 (set_namestring, function_outside_compilation_unit_complaint)
6508 (read_dbx_symtab, process_one_symbol): Update.
6509 * gdbtypes.c (stub_noname_complaint): Update.
6510 * windows-nat.c (handle_unload_dll): Update.
6511 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6512 (decode_base_type): Update.
6513 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6514 (eb_complaint, record_include_begin, record_include_end)
6515 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6516 (process_xcoff_symbol, read_symbol)
6517 (function_outside_compilation_unit_complaint)
6518 (scan_xcoff_symtab): Update.
6519 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6520 * buildsym.c (finish_block_internal, make_blockvector)
6521 (end_symtab_get_static_block, augment_type_symtab): Update.
6522 * dtrace-probe.c (dtrace_process_dof)
6523 (dtrace_static_probe_ops::get_probes): Update.
6524 * complaints.h (struct complaint): Don't declare.
6525 (symfile_complaints): Remove.
6526 (complaint_internal): Remove "complaints" parameter.
6527 (complaint): Likewise.
6528 (clear_complaints): Likewise.
6529 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6530 (reread_symbols): Update.
6531 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6532 (dwarf2_frame_cache, decode_frame_entry): Update.
6533 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6534 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6535 (info_selectors_command): Update.
6536 * macrotab.c (macro_include, check_for_redefinition)
6537 (macro_undef): Update.
6538 * objfiles.c (filter_overlapping_sections): Update.
6539 * stabsread.c (invalid_cpp_abbrev_complaint)
6540 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6541 (define_symbol, error_type, read_type, rs6000_builtin_type)
6542 (stabs_method_name_from_physname, read_member_functions)
6543 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6544 (attach_fields_to_type, complain_about_struct_wipeout)
6545 (read_range_type, read_args, common_block_start)
6546 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6547 Update.
6548 * mdebugread.c (index_complaint, unknown_ext_complaint)
6549 (basic_type_complaint, bad_tag_guess_complaint)
6550 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6551 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6552 (parse_procedure, parse_lines)
6553 (function_outside_compilation_unit_complaint)
6554 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6555 (bad_tag_guess_complaint, reg_value_complaint): Update.
6556 * cp-support.c (demangled_name_complaint): Update.
6557 * macroscope.c (sal_macro_scope): Update.
6558 * dwarf-index-write.c (class debug_names): Update.
6559
4e9668d0
TT
65602018-05-23 Tom Tromey <tom@tromey.com>
6561
6562 * complaints.c (clear_complaints): Remove "noisy" parameter.
6563 * complaints.h (clear_complaints): Update.
6564 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6565 (reread_symbols): Update.
6566
43ba33c7
TT
65672018-05-23 Tom Tromey <tom@tromey.com>
6568
6569 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6570 SUBSEQUENT_MESSAGE.
6571 (vcomplaint, clear_complaints): Update.
6572 (symfile_explanations): Remove some messages.
6573
2b9496b2
TT
65742018-05-23 Tom Tromey <tom@tromey.com>
6575
6576 * complaints.c (internal_complaint): Remove.
6577 * complaints.h (internal_complaint): Remove.
6578
35f1fea3
MR
65792018-05-22 Maciej W. Rozycki <macro@mips.com>
6580
6581 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6582
6b8edb51
PA
65832018-05-22 Pedro Alves <palves@redhat.com>
6584
6585 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6586 (remote_fileio_badfd, remote_fileio_return_errno)
6587 (remote_fileio_return_success, remote_fileio_func_open)
6588 (remote_fileio_func_open, remote_fileio_func_close)
6589 (remote_fileio_func_read, remote_fileio_func_write)
6590 (remote_fileio_func_lseek, remote_fileio_func_rename)
6591 (remote_fileio_func_unlink, remote_fileio_func_stat)
6592 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6593 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6594 remote_target parameter.
6595 (remote_fio_func_map) <func>: Add remote_target parameter.
6596 (do_remote_fileio_request, remote_fileio_request):
6597 * remote-fileio.h (remote_fileio_request):
6598 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6599 remote_target parameter.
6600 (remote_notif_process, handle_notification): Adjust to pass down
6601 the remote.
6602 (remote_notif_state_allocate): Add remote_target parameter. Save
6603 it.
6604 * remote-notif.h (struct remote_target): Forward declare.
6605 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6606 remote_target parameter.
6607 (struct remote_notif_state) <remote>: New field.
6608 (remote_notif_ack, remote_notif_parse): Add remote_target
6609 parameter.
6610 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6611 remote_target parameter.
6612 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6613 (threads_listing_context, rmt_thread_action, protocol_feature)
6614 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6615 (packet_result, struct threads_listing_context, remote_state):
6616 Move definitions and declarations higher up.
6617 (remote_target) <~remote_target>: Declare.
6618 (remote_download_command_source, remote_file_put, remote_file_get)
6619 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6620 (remote_hostio_pread_vFile, remote_hostio_send_command)
6621 (remote_hostio_set_filesystem, remote_hostio_open)
6622 (remote_hostio_close, remote_hostio_unlink, remote_state)
6623 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6624 (get_memory_write_packet_size, get_memory_read_packet_size)
6625 (append_pending_thread_resumptions, remote_detach_1)
6626 (append_resumption, remote_resume_with_vcont)
6627 (add_current_inferior_and_thread, wait_ns, wait_as)
6628 (process_stop_reply, remote_notice_new_inferior)
6629 (process_initial_stop_replies, remote_add_thread)
6630 (btrace_sync_conf, remote_btrace_maybe_reopen)
6631 (remove_new_fork_children, kill_new_fork_children)
6632 (discard_pending_stop_replies, stop_reply_queue_length)
6633 (check_pending_events_prevent_wildcard_vcont)
6634 (discard_pending_stop_replies_in_queue, stop_reply)
6635 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6636 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6637 (remote_interrupt_as, remote_interrupt_ns)
6638 (remote_get_noisy_reply, remote_query_attached)
6639 (remote_add_inferior, remote_current_thread, get_current_thread)
6640 (set_thread, set_general_thread, set_continue_thread)
6641 (set_general_process, write_ptid)
6642 (remote_unpack_thread_info_response, remote_get_threadinfo)
6643 (parse_threadlist_response, remote_get_threadlist)
6644 (remote_threadlist_iterator, remote_get_threads_with_ql)
6645 (remote_get_threads_with_qxfer)
6646 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6647 (get_offsets, remote_check_symbols, remote_supported_packet)
6648 (remote_query_supported, remote_packet_size)
6649 (remote_serial_quit_handler, remote_detach_pid)
6650 (remote_vcont_probe, remote_resume_with_hc)
6651 (send_interrupt_sequence, interrupt_query)
6652 (remote_notif_get_pending_events, fetch_register_using_p)
6653 (send_g_packet, process_g_packet, fetch_registers_using_g)
6654 (store_register_using_P, store_registers_using_G)
6655 (set_remote_traceframe, check_binary_download)
6656 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6657 (remote_xfer_live_readonly_partial, remote_read_bytes)
6658 (remote_send_printf, remote_flash_write, readchar)
6659 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6660 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6661 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6662 (extended_remote_disable_randomization, extended_remote_run)
6663 (send_environment_packet, extended_remote_environment_support)
6664 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6665 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6666 (packet_command): Now methods of ...
6667 (remote_target): ... this class.
6668 (m_remote_state) <remote_target>: New field.
6669 (struct remote_state) <stop_reply_queue,
6670 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6671 fields.
6672 (remote_state::remote_state): Allocate stop_reply_queue.
6673 (remote_state): Delete global.
6674 (get_remote_state_raw): Delete.
6675 (remote_target::get_remote_state): Allocate m_remote_state on
6676 demand.
6677 (get_current_remote_target): New.
6678 (remote_ops, extended_remote_ops): Delete.
6679 (wait_forever_enabled_p, remote_async_inferior_event_token):
6680 Delete, moved to struct remote_state.
6681 (remote_target::close): Delete self. Destruction bits split to
6682 ...
6683 (remote_target::~remote_target): ... this.
6684 (show_memory_packet_size): Adjust to use
6685 get_current_remote_target.
6686 (struct protocol_feature) <func>: Add remote_target parameter.
6687 All callers adjusted.
6688 (curr_quit_handler_target): New.
6689 (remote_serial_quit_handler): Reimplement.
6690 (remote_target::open_1): Adjust to use get_current_remote_target.
6691 Heap-allocate remote_target/extended_remote_target instances.
6692 (vcont_builder::vcont_builder): Add remote_target parameter, and
6693 save it in m_remote. All callers adjusted.
6694 (vcont_builder::m_remote): New field.
6695 (vcont_builder::restart, vcont_builder::flush)
6696 (vcont_builder::push_action): Use it.
6697 (remote_target::commit_resume): Use it.
6698 (struct queue_iter_param) <remote>: New field.
6699 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6700 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6701 (check_pending_event_prevents_wildcard_vcont_callback)
6702 (remote_target::check_pending_events_prevent_wildcard_vcont)
6703 (remote_target::discard_pending_stop_replies)
6704 (remote_target::discard_pending_stop_replies_in_queue)
6705 (remote_target::remote_notif_remove_queued_reply): Fill in
6706 'remote' field.
6707 (remote_notif_get_pending_events): New.
6708 (remote_target::readchar, remote_target::remote_serial_write):
6709 Save/restore curr_quit_handler_target.
6710 (putpkt): New.
6711 (kill_new_fork_children): Fill in 'remote' field.
6712 (packet_command): Use get_current_remote_target, defer to
6713 remote_target method of same name.
6714 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6715 parameter, and save it in m_remote. All callers adjusted.
6716 (scoped_remote_fd::release): Use m_remote.
6717 (scoped_remote_fd::m_remote): New field.
6718 (remote_file_put, remote_file_get, remote_file_delete): Use
6719 get_current_remote_target, defer to remote_target method of same
6720 name.
6721 (remote_btrace_reset): Add remote_state paremeter. Update all
6722 callers.
6723 (remote_async_inferior_event_handler). Pass down 'data'.
6724 (remote_new_objfile): Use get_current_remote_target.
6725 (remote_target::vcont_r_supported): New.
6726 (set_range_stepping): Use get_current_remote_target and
6727 remote_target::vcont_r_supported.
6728 (_initialize_remote): Don't allocate 'remote_state' and
6729 'stop_reply_queue' globals.
6730 * remote.h (struct remote_target): Forward declare.
6731 (getpkt, putpkt, remote_notif_get_pending_events): Add
6732 'remote_target' parameter.
6733
f5db4863
PA
67342018-05-22 Pedro Alves <palves@redhat.com>
6735
6736 * remote.c (vcont_builder): Now a class. Make all data members
6737 private.
6738 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6739 Declare methods.
6740 (vcont_builder_restart): Rename to ...
6741 (vcont_builder::restart): ... this.
6742 (vcont_builder_flush): Rename to ...
6743 (vcont_builder::flush): ... this.
6744 (vcont_builder_push_action): Rename to ...
6745 (vcont_builder::push_action): ... this.
6746 (remote_target::commit_resume): Adjust.
6747
cc0be08f
PA
67482018-05-22 Pedro Alves <palves@redhat.com>
6749
6750 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6751 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6752 (get_fixed_memory_packet_size): New.
6753 (get_memory_packet_size): Use it.
6754 (set_memory_packet_size): Don't override the config size with
6755 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6756 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6757 Don't refer to get_memory_packet_size if not connected to a remote
6758 target. Show "(default)" if configured size is 0.
6759
9607784a
PA
67602018-05-22 Pedro Alves <palves@redhat.com>
6761
6762 * remote.c (remote_target::mourn_inferior): Move
6763 discard_pending_stop_replies call here from ...
6764 (_initialize_remote): ... here.
6765
0e9a6b2f
PA
67662018-05-22 Pedro Alves <palves@redhat.com>
6767
6768 * remote.c (compare_section_command): Remove set_general_process
6769 call.
6770
43c3a0e4
PA
67712018-05-22 Pedro Alves <palves@redhat.com>
6772
6773 * remote.c (struct packet_reg, struct remote_arch_state):
6774 Move higher up in the file.
6775 (remote_state) <m_arch_states>: Store remote_arch_state values
6776 instead of remote_arch_state pointers.
6777 (remote_state::get_remote_arch_state): Adjust.
6778
9d6eea31
PA
67792018-05-22 Pedro Alves <palves@redhat.com>
6780
6781 * remote.c: Include <unordered_map>.
6782 (remote_state): Now a class.
6783 (remote_state) <get_remote_arch_state>: Declare method.
6784 <get_remote_arch_state>: New field.
6785 (remote_arch_state) <remote_arch_state>: Declare ctor.
6786 <regs>: Now a unique_ptr.
6787 (remote_gdbarch_data_handle): Delete.
6788 (get_remote_arch_state): Delete.
6789 (remote_state::get_remote_arch_state): New.
6790 (get_remote_state): Adjust to call remote_state's
6791 get_remote_arch_state method.
6792 (init_remote_state): Delete, bits factored out to ...
6793 (remote_arch_state::remote_arch_state): ... this new method.
6794 (get_remote_packet_size, get_memory_packet_size)
6795 (process_g_packet, remote_target::fetch_registers)
6796 (remote_target::prepare_to_store, store_registers_using_G)
6797 (remote_target::store_registers, remote_target::get_trace_status):
6798 Adjust to call remote_state's method.
6799 (_initialize_remote): Remove reference to
6800 remote_gdbarch_data_handle.
6801
dd194f6b
PA
68022018-05-22 Pedro Alves <palves@redhat.com>
6803
6804 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6805 pread>: New method declarations.
6806 (remote_target::open_1): Adjust.
6807 (readahead_cache_invalidate): Rename to ...
6808 (readahead_cache::invalidate): ... this, and adjust to be a class
6809 method.
6810 (readahead_cache_invalidate_fd): Rename to ...
6811 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6812 class method.
6813 (remote_hostio_pwrite): Adjust.
6814 (remote_hostio_pread_from_cache): Rename to ...
6815 (readahead_cache::pread): ... this, and adjust to be a class
6816 method.
6817 (remote_hostio_close): Adjust.
6818
440b7aec
PA
68192018-05-22 Pedro Alves <palves@redhat.com>
6820
6821 * remote.c (remote_hostio_close_cleanup): Delete.
6822 (class scoped_remote_fd): New.
6823 (remote_file_put, remote_file_get): Use it.
6824
de44f5a7
PA
68252018-05-22 Pedro Alves <palves@redhat.com>
6826
6827 (struct vCont_action_support): Use bool and initialize all fields.
6828 (struct readahead_cache): Initialize all fields.
6829 (remote_state): Use bool and initialize all fields.
6830 (remote_state::remote_state, remote_state::~remote_state): New.
6831 (new_remote_state): Delete.
6832 (_initialize_remote): Use new to allocate remote_state.
6833
b1b60145
PA
68342018-05-22 Pedro Alves <palves@redhat.com>
6835 張俊芝 <zjz@zjz.name>
6836
6837 PR gdb/22973
6838 * c-exp.y: Include "c-support.h".
6839 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6840 of tolower. Use c_ident_is_alpha to scan names.
6841 * c-lang.c: Include "c-support.h".
6842 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6843 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6844 * c-support.h: New file, with bits factored out from ...
6845 * cp-name-parser.y: ... this file.
6846 Include "c-support.h".
6847 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6848 c-support.h and renamed.
6849 (symbol_end, yylex): Adjust.
6850
0ec848ad
PFC
68512018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6852
6853 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6854 parameter type to CORE_ADDR.
6855 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6856 parameter type in declaration to CORE_ADDR.
6857 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6858 target_auxv_search to get AT_HWCAP and use the result to get the
6859 target description.
6860 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6861 to CORE_ADDR. Remove the cast of the return value to unsigned
6862 long. Fix error predicate of target_auxv_search.
6863 (ppc_linux_nat_target::read_description): Change the type of the
6864 hwcap variable to CORE_ADDR.
6865
0fb2aaa1
PFC
68662018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6867
6868 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6869 if the size of fpscr is larger than 32 bits.
6870
2c3305f6
PFC
68712018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6872
6873 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6874 (ppc32_linux_vsxregmap): New global.
6875 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6876 regcache_supply_regset, and regcache_collect_regset.
6877 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6878 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6879 (fetch_vsx_register, store_vsx_register): Remove.
6880 (fetch_vsx_registers): Add regno parameter. Get regset using
6881 ppc_linux_vsxregset. Use regset to supply registers.
6882 (store_vsx_registers): Add regno parameter. Get regset using
6883 ppc_linux_vsxregset. Use regset to collect registers.
6884 (fetch_register): Call fetch_vsx_registers instead of
6885 fetch_vsx_register.
6886 (store_register): Call store_vsx_registers instead of
6887 store_vsx_register.
6888 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6889 new regno parameter.
6890 (store_ppc_registers): Call store_vsx_registers with -1 for the
6891 new regno parameter.
6892 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6893 (ppc_collect_vsxregset): Remove.
6894
1d75a658
PFC
68952018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6896
6897 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6898 offset fields.
6899 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6900 for vector register offset fields.
6901 (ppc64_fbsd_reg_offsets): Likewise.
6902 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6903 to vector register offset fields.
6904 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6905 to vector register offset fields.
6906 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6907 vector register offset fields.
6908 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6909 initializers for vector register offset fields.
6910 (rs6000_aix64_reg_offsets): Likewise.
6911 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6912 (ppc_supply_vrregset): Remove.
6913 (ppc_collect_vrregset): Remove.
6914 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6915 (ppc_linux_vrregset) : New function.
6916 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6917 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6918 (ppc32_linux_vrregset): Remove.
6919 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6920 and use result instead of ppc32_linux_vrregset.
6921 (ppc32_linux_reg_offsets): Remove initializers for vector register
6922 offset fields.
6923 (ppc64_linux_reg_offsets): Likewise.
6924 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6925 * ppc-linux-nat.c: Include regset.h.
6926 (gdb_vrregset_t): Adjust comment to account for little-endian
6927 mode.
6928 (supply_vrregset, fill_vrregset): Remove.
6929 (fetch_altivec_register, store_altivec_register): Remove.
6930 (fetch_altivec_registers): Add regno parameter. Get regset using
6931 ppc_linux_vrregset. Use regset to supply registers.
6932 (store_altivec_registers): Add regno parameter. Get regset using
6933 ppc_linux_vrregset. Use regset to collect registers.
6934 (fetch_register): Call fetch_altivec_registers instead of
6935 fetch_altivec_register.
6936 (store_register): Call store_altivec_registers instead of
6937 store_altivec_register.
6938 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6939 the new regno parameter.
6940 (store_ppc_registers): Call store_altivec_registers with -1 for
6941 the new regno parameter.
6942
d078308a
PFC
69432018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6944
6945 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6946 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6947 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6948 (gdb_vrregset_t): Change array type size to
6949 PPC_LINUX_SIZEOF_VRREGSET.
6950 (gdb_vsxregset_t): Change array type size to
6951 PPC_LINUX_SIZEOF_VSXREGSET.
6952 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6953 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6954 PPC_LINUX_SIZEOF_VSXREGSET.
6955
2e077f5e
PFC
69562018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6957
6958 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6959 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6960 nat/ppc-linux.c.
6961 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6962 ppc_linux_target_wordsize with tid.
6963 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6964 wordsize with tid.
6965 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6966 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6967 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6968 tid parameter. Remove static specifier.
6969 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6970 (ppc_linux_target_wordsize): New declaration.
6971
bd64614e
PFC
69722018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6973
6974 * arch/ppc-linux-common.c: New file.
6975 * arch/ppc-linux-common.h: New file.
6976 * arch/ppc-linux-tdesc.h: New file.
6977 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6978 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6979 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6980 arch/ppc-linux-tdesc.h.
6981 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6982 arch/ppc-linux-tdesc.h.
6983 (ppc_linux_nat_target::read_description): Remove target
6984 description matching code. Fill a ppc_linux_features struct and
6985 call ppc_linux_match_description with it. Move comment about ISA
6986 2.05 to ppc-linux-common.c.
6987 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6988 arch/ppc-linux-tdesc.h.
6989 (ppc_linux_core_read_description): Remove target description
6990 matching code. Fill a ppc_linux_features struct and call
6991 ppc_linux_match_description with it.
6992 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6993 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6994 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6995 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6996 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6997 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6998 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6999 (tdesc_powerpc_e500l): Remove.
7000
241db429
JB
70012018-05-22 Joel Brobecker <brobecker@adacore.com>
7002
7003 * ada-lang.c (catch_assert_command): Pass empty string instead
7004 of NULL for excep_string argument.
7005
75d74cca
MR
70062018-05-22 Maciej W. Rozycki <macro@mips.com>
7007
7008 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7009 the width of the requested register exceeds the width of the
7010 `ptrace' data type.
7011
122b53ea
TT
70122018-05-21 Tom Tromey <tom@tromey.com>
7013
7014 * printcmd.c (output_command): Remove.
7015 (output_command_const): Rename to output_command.
7016 * valprint.h (output_command): Rename from output_command_const.
7017 * tracepoint.c (trace_dump_actions): Call output_command.
7018
bc18fbb5
TT
70192018-05-21 Tom Tromey <tom@tromey.com>
7020
7021 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7022 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7023 * ada-lang.h (create_ada_exception_catchpoint): Update.
7024 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7025 std::string.
7026 (create_excep_cond_exprs, ~ada_catchpoint)
7027 (should_stop_exception, print_one_exception)
7028 (print_mention_exception, print_recreate_exception): Update.
7029 (ada_get_next_arg): Remove.
7030 (catch_ada_exception_command_split): Use std::string. Change type
7031 of "excep_string", "cond_string".
7032 (catch_ada_exception_command): Update.
7033 (create_ada_exception_catchpoint): Change type of excep_string.
7034 (ada_exception_sal): Remove excep_string parameter.
7035 (~ada_catchpoint): Remove.
7036
790217f6
TT
70372018-05-21 Tom Tromey <tom@tromey.com>
7038
7039 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7040 cleanup.
7041
6f46ac85
TT
70422018-05-21 Tom Tromey <tom@tromey.com>
7043
7044 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7045 Return unique_xmalloc_ptr.
7046 (print_it_exception): Update.
7047
15b6611c
TT
70482018-05-21 Tom Tromey <tom@tromey.com>
7049
7050 * tracepoint.c (trace_dump_actions): Use std::string.
7051
c0c9f665
TT
70522018-05-21 Tom Tromey <tom@tromey.com>
7053
7054 * symfile.c (reread_symbols): Use std::string for original_name.
7055
22ca247e
TT
70562018-05-21 Tom Tromey <tom@tromey.com>
7057
7058 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7059 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7060 constructor.
7061
184cde75
SM
70622018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7063
7064 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7065 instance to...
7066 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7067 * objfiles.c (get_objfile_bfd_data): Allocate
7068 objfile_per_bfd_storage with obstack_new when allocating on
7069 obstack.
7070
e39db4db
SM
70712018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7072
7073 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7074 OBSTACK_ZALLOC.
7075 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7076 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7077 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7078 (add_pending): Likewise.
7079 (parse_symbol): Likewise.
7080 (parse_partial_symbols): Likewise.
7081 (psymtab_to_symtab_1): Likewise.
7082 (new_psymtab): Likewise.
7083 (elfmdebug_build_psymtabs): Likewise.
7084 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7085 * objfiles.c (get_objfile_bfd_data): Likewise.
7086 (objfile_register_static_link): Likewise.
7087 * psymtab.c (allocate_psymtab): Likewise.
7088 * stabsread.c (read_member_functions): Likewise.
7089 * xcoffread.c (xcoff_end_psymtab): Likewise.
7090
284a0e3c
SM
70912018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7092
7093 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7094 compiler supports std::is_trivially_constructible.
7095 * common/poison.h: Include obstack.h.
7096 (IsMallocable): Define to is_trivially_constructible if the
7097 compiler supports it, define to true_type otherwise.
7098 (xobnew): New.
7099 (XOBNEW): Redefine.
7100 (xobnewvec): New.
7101 (XOBNEWVEC): Redefine.
7102 * gdb_obstack.h (obstack_zalloc): New.
7103 (OBSTACK_ZALLOC): Redefine.
7104 (obstack_calloc): New.
7105 (OBSTACK_CALLOC): Redefine.
7106 (obstack_new): New.
7107 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7108 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7109 gdbarch.c.
7110 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7111 obstack_calloc/obstack_zalloc.
7112 (gdbarch_obstack_zalloc): Remove.
7113 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7114
59f66be3
PW
71152018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7116
7117 * stack.c (backtrace_command_1): Remove useless variable int i.
7118
50c65c2d
PW
71192018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7120
7121 * stack.c (print_frame_info): Fix comment.
7122
7ff8cb8c
TT
71232018-05-18 Tom Tromey <tom@tromey.com>
7124
7125 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7126 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7127 (~dwarf2_per_objfile): Update
7128 (dwarf2_get_dwz_file): Use new.
7129 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7130 unique_ptr.
7131
400174b1
TT
71322018-05-18 Tom Tromey <tom@tromey.com>
7133
7134 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7135 unique_ptr.
7136 * dwarf2read.c (struct dwp_file): Add constructor and
7137 initializers.
7138 (open_and_init_dwp_file): Return a unique_ptr.
7139 (dwarf2_per_objfile, create_dwp_hash_table)
7140 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7141 (lookup_dwo_unit_in_dwp): Update.
7142 (open_and_init_dwp_file, get_dwp_file): Update.
7143
3063847f
TT
71442018-05-18 Tom Tromey <tom@tromey.com>
7145
7146 * dwarf2read.c (dwarf2_per_objfile): Update.
7147 (struct mapped_index): Add initializers.
7148 (dwarf2_read_index): Use new.
7149 (dw2_symtab_iter_init): Update.
7150 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7151 unique_ptr.
7152
d3d02dee
SM
71532018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7154
7155 * dwarf2read.c (mapped_index) <total_size>: Remove.
7156
1d143c36
SM
71572018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7158
7159 * unittests/format_pieces-selftests.c (test_format_specifier):
7160 Add ARI comments.
7161
ce1e8424
TT
71622018-05-18 Tom Tromey <tom@tromey.com>
7163
7164 * c-typeprint.c (maybe_print_hole): New function.
7165 (c_print_type_struct_field_offset): Update.
7166 (c_type_print_base_struct_union): Call maybe_print_hole.
7167
ddfe970e
KS
71682018-05-17 Keith Seitz <keiths@redhat.com>
7169
7170 * breakpoint.c (build_bpstat_chain): New function, moved from
7171 bpstat_stop_status.
7172 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7173 If no stop chain is passed, call build_bpstat_chain to build it.
7174 * breakpoint.h (build_bpstat_chain): Declare.
7175 (bpstat_stop_status): Move documentation here from breakpoint.c.
7176 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7177 build the stop chain and pass it to skip_inline_frames.
7178 Pass this stop chain to bpstat_stop_status.
7179 * inline-frame.c: Include breakpoint.h.
7180 (stopped_by_user_bp_inline_frame): New function.
7181 (skip_inline_frames): Add parameter `stop_chain'.
7182 Move documention to inline-frame.h.
7183 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7184 whether the frame should be elided.
7185 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7186 Add moved documentation and update for new parameter.
7187
b17992c1
SM
71882018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7189
7190 PR cli/14975
7191 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7192 unittests/format_pieces-selftests.c.
7193 * common/format.h (format_piece) <operator==>: New.
7194 (format_pieces) <operator[]>: Remove.
7195 * common/format.c (format_pieces::format_pieces): Handle \e.
7196 * unittests/format_pieces-selftests.c: New.
7197
58f0c718
TT
71982018-05-17 Tom Tromey <tom@tromey.com>
7199
7200 PR symtab/23010:
7201 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7202 (dw2_instantiate_symtab): Add skip_partial parameter.
7203 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7204 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7205 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7206 (dw2_expand_symtabs_matching_one)
7207 (dw2_find_pc_sect_compunit_symtab)
7208 (dw2_debug_names_lookup_symbol)
7209 (dw2_debug_names_expand_symtabs_for_function): Update.
7210 (init_cutu_and_read_dies): Add skip_partial parameter.
7211 (process_psymtab_comp_unit, build_type_psymtabs_1)
7212 (process_skeletonless_type_unit, load_partial_comp_unit)
7213 (psymtab_to_symtab_1): Update.
7214 (load_full_comp_unit): Add skip_partial parameter.
7215 (process_imported_unit_die, dwarf2_read_addr_index)
7216 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7217 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7218 (read_signatured_type): Update.
7219
3e618834
SM
72202018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7221
7222 * value.c (release_value): Remove unused variable.
7223 (record_latest_value): Likewise.
7224 (access_value_history): Likewise.
7225 (preserve_values): Likewise.
7226
fe10fe31
TT
72272018-05-17 Tom Tromey <tom@tromey.com>
7228
7229 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7230 Initialize.
7231
1d761124
MR
72322018-05-16 Maciej W. Rozycki <macro@mips.com>
7233
7234 PR gdb/22286
7235 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7236 Also handle registers whose width is not a multiple of
7237 PTRACE_TYPE_RET.
7238 (linux_nat_trad_target::store_register): Likewise.
7239
06333fea
TT
72402018-05-16 Tom Tromey <tom@tromey.com>
7241
7242 * gdbcore.h (core_bfd): Redefine.
7243 * corelow.c (core_target::close): Update.
7244 (core_target_open): Update.
7245 * progspace.h (struct program_space) <cbfd>: Now a
7246 gdb_bfd_ref_ptr.
7247
921222e2
TT
72482018-05-16 Tom Tromey <tom@tromey.com>
7249
7250 PR cli/19551:
7251 * symfile-add-flags.h (enum symfile_add_flags)
7252 <SYMFILE_NOT_FILENAME>: New constant.
7253 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7254 objfile name from BFD.
7255 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7256 * minidebug.c (find_separate_debug_file_in_section): Put
7257 ".gnu_debugdata" into BFD's file name.
7258
3acb7083
SM
72592018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7260
7261 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7262 Remove.
7263
561a72d4
TC
72642018-05-15 Tamar Christina <tamar.christina@arm.com>
7265
7266 PR binutils/21446
7267 * aarch64-tdep.c (aarch64_analyze_prologue,
7268 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7269 Indicate not interested in errors.
7270
4e6ff0e1
MR
72712018-05-15 Maciej W. Rozycki <macro@mips.com>
7272
7273 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7274 Supply the MIPS_ZERO_REGNUM register.
7275
ea33cd92
MR
72762018-05-15 Maciej W. Rozycki <macro@mips.com>
7277
7278 * mips-tdep.c (mask_address_var): Make variable static.
7279
2d79090e
TT
72802018-05-14 Tom Tromey <tom@tromey.com>
7281
7282 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7283
cf4912ae
AB
72842018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7285
7286 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7287 FXSAVE_ADDR for the mxcsr register.
7288
67e6f569
MF
72892018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7290
7291 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7292
15244507
PA
72932018-05-11 Pedro Alves <palves@redhat.com>
7294
7295 * corelow.c (core_target) <core_target>: No longer inline.
7296 Initialize m_core_gdbarch, m_core_vec and build the section table
7297 here.
7298 <~core_target>: New.
7299 <core_gdbarch, get_core_register_section>: New methods.
7300 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7301 factored out from ...
7302 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7303 (core_ops): Delete.
7304 (sniff_core_bfd): Add gdbarch parameter.
7305 (core_close): Delete, merged into ...
7306 (core_target::close): ... here. Delete self.
7307 (core_close_cleanup): Delete.
7308 (core_target_open): Allocate a core_target on the heap. Use a
7309 unique_ptr instead of a cleanup. Bits moved into the core_target
7310 ctor. Adjust to use core_target methods instead of globals.
7311 (get_core_register_section): Rename to ...
7312 (core_target::get_core_register_section): ... this and adjust.
7313 (struct get_core_registers_cb_data): New.
7314 (get_core_registers_cb): Use it. Use bool.
7315 (core_target::fetch_registers, core_target::files_info)
7316 (core_target::xfer_partial, core_target::read_description)
7317 (core_target::pid_to, core_target::thread_name): Adjust to
7318 reference class fields instead of globals.
7319 * target.h (struct target_ops_deleter, target_ops_up): New.
7320
451953fa
PA
73212018-05-11 Pedro Alves <palves@redhat.com>
7322
7323 * corefile.c (core_file_command): Move to corelow.c.
7324 * corelow.c (the_core_target): Delete.
7325 (core_file_command): Moved from corefile.c. Check exec_bfd
7326 instead of the_core_target. Use target_detach instead of calling
7327 into the_core_target directly.
7328 (maybe_say_no_core_file_now): New.
7329 (core_target::detach): Use it.
7330 (_initialize_corelow): Remove references to the_core_target.
7331 * gdbcore.h (the_core_target): Delete.
7332
e540a5a2 73332018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 7334 Pedro Alves <palves@redhat.com>
e540a5a2
TT
7335
7336 * corefile.c (core_bfd): Remove.
7337 * gdbcore.h (core_bfd): Now a macro.
7338 * progspace.h (struct program_space) <cbfd>: New field.
7339
633cf254
TT
73402018-05-11 Tom Tromey <tom@tromey.com>
7341
7342 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7343 gdb::def_vector.
7344
1a34f210
TT
73452018-05-10 Tom Tromey <tom@tromey.com>
7346
7347 * configure: Rebuild.
7348 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7349
190852c8
JB
73502018-05-10 Joel Brobecker <brobecker@adacore.com>
7351
7352 PR server/23158:
7353 * regformats/regdat.sh: Adjust script, following the addition
7354 of the new expedite_regs parameter to init_target_desc.
7355
8727de56
OJ
73562018-05-10 Omair Javaid <omair.javaid@linaro.org>
7357
7358 PR gdb/23127
7359 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7360 set_gdbarch_significant_addr_bit.
7361 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7362 set_gdbarch_significant_addr_bit.
7363 * utils.c (address_significant): Update to sign extend addr.
7364
37d9e062
MF
73652018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7366
7367 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7368 (xtensa_linux_init_abi): Limit tdep->num_regs by
7369 tdep->num_nopriv_regs.
7370 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7371 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7372 not initialized.
7373
7402fbca
SM
73742018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7375
7376 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7377
8ee22052
AB
73782018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7379
7380 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7381 (I387_MXCSR_INIT_VAL): New constant.
7382 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7383 buffer if it was supplied by the inferior.
7384 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7385 (i387_xsave_get_clear_bv): New function.
7386 (i387_supply_xsave): Only read x87 control registers from the
7387 xsave buffer if the feature is enabled, and the state will have
7388 been written, otherwise, provide a suitable default.
7389 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7390 including x87 control registers. Update control registers if they
7391 have changed from the default value, and mark features as enabled
7392 as required.
7393 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7394
968ae51b
UW
73952018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7396
7397 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7398
aff689d3
TT
73992018-05-07 Tom Tromey <tom@tromey.com>
7400
7401 * configure: Rebuild.
7402 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7403
ce887586
TT
74042018-05-07 Tom Tromey <tom@tromey.com>
7405
7406 PR tdep/20362:
7407 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7408 bit. Use correct value for VDIV.
7409
85e26832
TT
74102018-05-04 Tom Tromey <tom@tromey.com>
7411
7412 * configure: Rebuild.
7413 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7414
449b1ac7
TT
74152018-05-04 Tom Tromey <tom@tromey.com>
7416
7417 * linux-record.c (record_linux_system_call) <case
7418 RECORD_SYS_RECVFROM>: Add "break".
7419
15c9ffd6
TT
74202018-05-04 Tom Tromey <tom@tromey.com>
7421
7422 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7423 Add missing "break".
7424 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7425 Add missing "break".
7426
e3829d13
TT
74272018-05-04 Tom Tromey <tom@tromey.com>
7428
7429 * rs6000-tdep.c (ppc_process_record_op4)
7430 (ppc_process_record_op63): Add fall-through comment.
7431
da0e1563
TT
74322018-05-04 Tom Tromey <tom@tromey.com>
7433
7434 * i386-tdep.c (i386_process_record): Add fall-through comment.
7435
0019cd49
TT
74362018-05-04 Tom Tromey <tom@tromey.com>
7437
7438 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7439 comment.
7440
565e0eda
TT
74412018-05-04 Tom Tromey <tom@tromey.com>
7442
7443 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7444 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7445 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7446 comment.
7447 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7448 comment.
7449 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7450 comment.
7451
621846f4
TT
74522018-05-04 Tom Tromey <tom@tromey.com>
7453
7454 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7455
86a73007
TT
74562018-05-04 Tom Tromey <tom@tromey.com>
7457
7458 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7459 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7460 * symfile.c (section_is_mapped): Fix fall-through comment.
7461 * stabsread.c (define_symbol, read_member_functions): Fix
7462 fall-through comment.
7463 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7464 comment.
7465 * remote.c (remote_wait_as): Fix fall-through comment.
7466 * p-exp.y (yylex): Fix fall-through comment.
7467 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7468 comment.
7469 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7470 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7471 * jv-exp.y (yylex): Fix fall-through comment.
7472 * go-exp.y (lex_one_token): Fix fall-through comment.
7473 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7474 fall-through comment.
7475 * f-exp.y (yylex): Fix fall-through comment.
7476 * dwarf2read.c (process_die): Fix fall-through comments.
7477 * dbxread.c (process_one_symbol): Fix fall-through comment.
7478 * d-exp.y (lex_one_token): Fix fall-through comment.
7479 * cp-name-parser.y (yylex): Fix fall-through comment.
7480 * coffread.c (coff_symtab_read): Fix fall-through comment.
7481 * c-exp.y (lex_one_token): Fix fall-through comment.
7482 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7483 comment.
7484 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7485 comment.
7486
56bcdbea
TT
74872018-05-04 Tom Tromey <tom@tromey.com>
7488
7489 PR python/22730:
7490 * NEWS: Mention gdb.execute change.
7491 * gdbcmd.h (execute_control_command): Don't declare.
7492 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7493 execute_control_commands, execute_control_commands_to_string.
7494 * cli/cli-script.h (execute_control_commands)
7495 (execute_control_commands_to_string): Declare.
7496 (execute_control_command): Add from_tty parameter.
7497 * cli/cli-script.c (execute_control_commands)
7498 (execute_control_commands_to_string): New functions.
7499 (execute_user_command): Use execute_control_commands.
7500 (execute_control_command_1): Add "from_tty" parameter. Update.
7501 (execute_control_command): Likewise.
7502
a913fffb
TT
75032018-05-04 Tom Tromey <tom@tromey.com>
7504
7505 PR python/22731:
7506 * NEWS: Mention that breakpoint commands are writable.
7507 * python/py-breakpoint.c (bppy_set_commands): New function.
7508 (breakpoint_object_getset) <"commands">: Use it.
7509
60b3cef2
TT
75102018-05-04 Tom Tromey <tom@tromey.com>
7511
7512 * tracepoint.c (actions_command): Update.
7513 * mi/mi-cmd-break.c (mi_command_line_array)
7514 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7515 (mi_read_next_line): Remove.
7516 (mi_cmd_break_commands): Update.
7517 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7518 function_view.
7519 * cli/cli-script.c (get_command_line): Update.
7520 (process_next_line): Use function_view. Constify.
7521 (recurse_read_control_structure, read_command_lines)
7522 (read_command_lines_1): Change argument types to function_view.
7523 (do_define_command, document_command): Update.
7524 * breakpoint.h (check_tracepoint_command): Don't declare.
7525 * breakpoint.c (check_tracepoint_command): Remove.
7526 (commands_command_1, create_tracepoint_from_upload): Update.
7527
7a2c85f2
TT
75282018-05-04 Tom Tromey <tom@tromey.com>
7529
7530 PR gdb/11750:
7531 * cli/cli-script.h (enum command_control_type) <define_control>:
7532 New constant.
7533 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7534 (build_command_line, execute_control_command_1)
7535 (process_next_line): Likewise.
7536 (do_define_command): New function, extracted from define_command.
7537 (define_command): Use it.
7538
295dc222
TT
75392018-05-04 Tom Tromey <tom@tromey.com>
7540
7541 * tracepoint.c (actions_command): Update.
7542 * cli/cli-script.h (read_command_lines): Update.
7543 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7544 (MAX_TMPBUF): Remove define.
7545 (define_command): Use string_printf.
7546 (document_command): Likewise.
7547 * breakpoint.c (commands_command_1): Update.
7548
1263a9d5
TT
75492018-05-04 Tom Tromey <tom@tromey.com>
7550
7551 * top.c (execute_command): Update.
7552 * cli/cli-script.h (print_command_lines): Now varargs.
7553 * cli/cli-script.c (print_command_lines): Now varargs.
7554 (execute_control_command_1) <case while_control, case if_control>:
7555 Update.
7556
12973681
TT
75572018-05-04 Tom Tromey <tom@tromey.com>
7558
7559 * tracepoint.c (all_tracepoint_actions): Rename from
7560 all_tracepoint_actions_and_cleanup. Change return type.
7561 (actions_command, encode_actions_1, encode_actions)
7562 (trace_dump_actions, tdump_command): Update.
7563 * remote.c (remote_download_command_source): Update.
7564 * python/python.c (gdbpy_eval_from_control_command)
7565 (python_command, python_interactive_command): Update.
7566 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7567 * guile/guile.c (guile_command)
7568 (gdbscm_eval_from_control_command, guile_command): Update.
7569 * compile/compile.c (compile_code_command)
7570 (compile_print_command, compile_to_object): Update.
7571 * cli/cli-script.h (struct command_lines_deleter): New.
7572 (counted_command_line): New typedef.
7573 (struct command_line): Add constructor, destructor.
7574 <body_list>: Remove.
7575 <body_list_0, body_list_1>: New members.
7576 (command_line_up): Remove typedef.
7577 (read_command_lines, read_command_lines_1, get_command_line):
7578 Update.
7579 (copy_command_lines): Don't declare.
7580 * cli/cli-script.c (build_command_line): Use "new".
7581 (get_command_line): Return counted_command_line.
7582 (print_command_lines, execute_user_command)
7583 (execute_control_command_1, while_command, if_command): Update.
7584 (realloc_body_list): Remove.
7585 (process_next_line, recurse_read_control_structure): Update.
7586 (read_command_lines, read_command_lines_1): Return counted_command_line.
7587 (free_command_lines): Use "delete".
7588 (copy_command_lines): Remove.
7589 (define_command, document_command, show_user_1): Update.
7590 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7591 a counted_command_line.
7592 * breakpoint.h (counted_command_line): Remove typedef.
7593 (breakpoint_set_commands): Update.
7594 * breakpoint.c (check_no_tracepoint_commands)
7595 (validate_commands_for_breakpoint): Update.
7596 (breakpoint_set_commands): Change commands to be a
7597 counted_command_line.
7598 (commands_command_1, update_dprintf_command_list)
7599 (create_tracepoint_from_upload): Update.
7600
e2fc72e2
TT
76012018-05-04 Tom Tromey <tom@tromey.com>
7602
7603 * cli/cli-decode.h (cmd_list_element): New constructor.
7604 (~cmd_list_element): New destructor.
7605 (struct cmd_list_element): Add initializers.
7606 * cli/cli-decode.c (do_add_cmd): Use "new".
7607 (delete_cmd): Use "delete".
7608
a3b60e45
JK
76092018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7610 Pedro Alves <palves@redhat.com>
7611
7612 PR breakpoints/19806 and support for PR external/20207.
7613 * NEWS: Mention Aarch64 watchpoint improvements.
7614 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7615 watchpoints and PR external/20207 watchpoints.
7616 * nat/aarch64-linux-hw-point.c
7617 (kernel_supports_any_contiguous_range): New.
7618 (aarch64_watchpoint_offset): New.
7619 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7620 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7621 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7622 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7623 next_addr_orig_p. Support PR external/20207 watchpoints.
7624 (aarch64_downgrade_regs): New.
7625 (aarch64_dr_state_insert_one_point): New parameters offset and
7626 addr_orig.
7627 (aarch64_dr_state_remove_one_point): Likewise.
7628 (aarch64_handle_breakpoint): Update caller.
7629 (aarch64_handle_aligned_watchpoint): Likewise.
7630 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7631 aligned_offset.
7632 (aarch64_linux_set_debug_regs): Remove const from state. Call
7633 aarch64_downgrade_regs.
7634 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7635 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7636 (DR_CONTROL_MASK): ... this.
7637 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7638 (unsigned int aarch64_watchpoint_offset): New prototype.
7639 (aarch64_linux_set_debug_regs): Remove const from state.
7640 * utils.c (align_up, align_down): Move to ...
7641 * common/common-utils.c (align_up, align_down): ... here.
7642 * utils.h (align_up, align_down): Move to ...
7643 * common/common-utils.h (align_up, align_down): ... here.
7644
05bc7456
JB
76452018-05-04 Joel Brobecker <brobecker@adacore.com>
7646
7647 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7648 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7649 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7650 Re-implement to match the ABI as summarized in GCC's
7651 gcc/config/sparc/sparc.c. All callers updated.
7652 (sparc32_store_arguments): Remove assertion.
7653
2f433492
TT
76542018-05-04 Tom Tromey <tom@tromey.com>
7655
7656 * printcmd.c: Don't include tui.h.
7657 (decode_format): Use skip_spaces.
7658
9be2ae8f
TT
76592018-05-04 Tom Tromey <tom@tromey.com>
7660
7661 PR gdb/22619:
7662 * printcmd.c (last_count): New global.
7663 (x_command): Use saved count when repeating.
7664
f0b3976b
TT
76652018-05-04 Tom Tromey <tom@tromey.com>
7666
7667 * nto-procfs.c (do_closedir_cleanup): Remove.
7668 (procfs_pidlist): Use gdb_dir_up.
7669 * procfs.c (do_closedir_cleanup): Remove.
7670 (proc_update_threads): Use gdb_dir_up.
7671 * common/filestuff.h (struct gdb_dir_deleter): New.
7672 (gdb_dir_up): New typedef.
7673
862d101a
TT
76742018-05-04 Tom Tromey <tom@tromey.com>
7675
7676 * ada-lang.c (print_mention_exception): Use std::string.
7677
cb7de75e
TT
76782018-05-04 Tom Tromey <tom@tromey.com>
7679
7680 * ada-lang.c (create_excep_cond_exprs): Update.
7681 (ada_exception_catchpoint_cond_string): Use std::string.
7682
49d83361
TT
76832018-05-04 Tom Tromey <tom@tromey.com>
7684
7685 * ada-lang.c (xget_renaming_scope): Return std::string.
7686 (old_renaming_is_invisible): Update.
7687
ade72a34
TT
76882018-05-04 Tom Tromey <tom@tromey.com>
7689
7690 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7691 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7692
2be4d7f0
UW
76932018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7694
7695 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7696
69b6ecb0
TT
76972018-05-04 Tom Tromey <tom@tromey.com>
7698
7699 * remote.c (remote_query_supported_append): Change type.
7700 (remote_check_symbols): Update.
7701
bf27f0e2
PP
77022018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7703
7704 PR gdb/11420
7705 * configure.ac: Prepend libpython.
7706 * python/python-config.py: Likewise.
7707 * configure: Regenerate.
7708
4ea17de8
SM
77092018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7710
7711 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7712
bd732259
PA
77132018-05-03 Pedro Alves <palves@redhat.com>
7714
7715 * s390-linux-nat.c
7716 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7717 override. Write 'true' instead of '1'.
7718 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7719 declaration.
7720
d9f719f1
PA
77212018-05-02 Pedro Alves <palves@redhat.com>
7722
7723 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7724 add_inf_child_target.
7725 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7726 add_inf_child_target.
7727 * aix-thread.c (aix_thread_target_info): New.
7728 (aix_thread_target) <shortname, longname, doc>: Delete.
7729 <info>: New.
7730 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7731 add_inf_child_target.
7732 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7733 add_inf_child_target.
7734 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7735 add_inf_child_target.
7736 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7737 add_inf_child_target.
7738 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7739 add_inf_child_target.
7740 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7741 add_inf_child_target.
7742 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7743 add_inf_child_target.
7744 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7745 add_inf_child_target.
7746 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7747 add_inf_child_target.
7748 * bfd-target.c (target_bfd_target_info): New.
7749 (target_bfd) <shortname, longname, doc>: Delete.
7750 <info>: New.
7751 * bsd-kvm.c (bsd_kvm_target_info): New.
7752 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7753 <info>: New.
7754 (bsd_kvm_target::open): Rename to ...
7755 (bsd_kvm_target_open): ... this. Adjust.
7756 * bsd-uthread.c (bsd_uthread_target_info): New.
7757 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7758 <info>: New.
7759 * corefile.c (core_file_command): Adjust.
7760 * corelow.c (core_target_info): New.
7761 (core_target) <shortname, longname, doc>: Delete.
7762 <info>: New.
7763 (core_target::open): Rename to ...
7764 (core_target_open): ... this. Adjust.
7765 * ctf.c (ctf_target_info): New.
7766 (ctf_target) <shortname, longname, doc>: Delete.
7767 <info>: New.
7768 (ctf_target::open): Rename to ...
7769 (ctf_target_open): ... this.
7770 (_initialize_ctf): Adjust.
7771 * exec.c (exec_target_info): New.
7772 (exec_target) <shortname, longname, doc>: Delete.
7773 <info>: New.
7774 (exec_target::open): Rename to ...
7775 (exec_target_open): ... this.
7776 * gdbcore.h (core_target_open): Declare.
7777 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7778 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7779 add_inf_child_target.
7780 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7781 add_inf_child_target.
7782 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7783 add_inf_child_target.
7784 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7785 add_inf_child_target.
7786 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7787 add_inf_child_target.
7788 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7789 add_inf_child_target.
7790 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7791 add_inf_child_target.
7792 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7793 add_inf_child_target.
7794 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7795 add_inf_child_target.
7796 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7797 add_inf_child_target.
7798 * inf-child.c (inf_child_target_info): New.
7799 (inf_child_target::info): New.
7800 (inf_child_open_target): Remove 'target' parameter. Use
7801 get_native_target instead.
7802 (inf_child_target::open): Delete.
7803 (add_inf_child_target): New.
7804 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7805 Delete.
7806 <info>: New.
7807 (add_inf_child_target): Declare.
7808 (inf_child_open_target): Declare.
7809 * linux-thread-db.c (thread_db_target_info): New.
7810 (thread_db_target) <shortname, longname, doc>: Delete.
7811 <info>: New.
7812 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7813 add_inf_child_target.
7814 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7815 add_inf_child_target.
7816 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7817 add_inf_child_target.
7818 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7819 add_inf_child_target.
7820 * make-target-delegates (print_class): Adjust.
7821 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7822 add_inf_child_target.
7823 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7824 add_inf_child_target.
7825 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7826 add_inf_child_target.
7827 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7828 add_inf_child_target.
7829 * nto-procfs.c (nto_native_target_info): New.
7830 (nto_procfs_target_native) <shortname, longname, doc>:
7831 Delete.
7832 <info>: New.
7833 (nto_procfs_target_info): New.
7834 (nto_procfs_target_procfs) <shortname, longname, doc>:
7835 Delete.
7836 <info>: New.
7837 (init_procfs_targets): Adjust.
7838 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7839 add_inf_child_target.
7840 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7841 add_inf_child_target.
7842 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7843 add_inf_child_target.
7844 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7845 add_inf_child_target.
7846 * ravenscar-thread.c (ravenscar_target_info): New.
7847 (ravenscar_thread_target) <shortname, longname, doc>:
7848 Delete.
7849 <info>: New.
7850 * record-btrace.c (record_btrace_target_info):
7851 (record_btrace_target) <shortname, longname, doc>: Delete.
7852 <info>: New.
7853 (record_btrace_target::open): Rename to ...
7854 (record_btrace_target_open): ... this. Adjust.
7855 * record-full.c (record_longname, record_doc): New.
7856 (record_full_base_target) <shortname, longname, doc>: Delete.
7857 <info>: New.
7858 (record_full_target_info): New.
7859 (record_full_target): <shortname>: Delete.
7860 <info>: New.
7861 (record_full_core_open_1, record_full_open_1): Update comments.
7862 (record_full_base_target::open): Rename to ...
7863 (record_full_open): ... this.
7864 (cmd_record_full_restore): Update.
7865 (_initialize_record_full): Update.
7866 * remote-sim.c (remote_sim_target_info): New.
7867 (gdbsim_target) <shortname, longname, doc>: Delete.
7868 <info>: New.
7869 (gdbsim_target::open): Rename to ...
7870 (gdbsim_target_open): ... this.
7871 (_initialize_remote_sim): Adjust.
7872 * remote.c (remote_doc): New.
7873 (remote_target_info): New.
7874 (remote_target) <shortname, longname, doc>: Delete.
7875 <info>: New.
7876 (extended_remote_target_info): New.
7877 (extended_remote_target) <shortname, longname, doc>: Delete.
7878 <info>: New.
7879 (remote_target::open_1): Make static. Adjust.
7880 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7881 * s390-linux-nat.c (_initialize_s390_nat): Use
7882 add_inf_child_target.
7883 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7884 add_inf_child_target.
7885 * sol-thread.c (thread_db_target_info): New.
7886 (sol_thread_target) <shortname, longname, doc>: Delete.
7887 <info>: New.
7888 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7889 add_inf_child_target.
7890 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7891 add_inf_child_target.
7892 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7893 add_inf_child_target.
7894 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7895 add_inf_child_target.
7896 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7897 add_inf_child_target.
7898 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7899 add_inf_child_target.
7900 * spu-linux-nat.c (_initialize_spu_nat): Use
7901 add_inf_child_target.
7902 * spu-multiarch.c (spu_multiarch_target_info): New.
7903 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7904 <info>: New.
7905 * target-delegates.c: Regenerate.
7906 * target.c: Include <unordered_map>.
7907 (target_ops_p): Delete.
7908 (DEF_VEC_P(target_ops_p)): Delete.
7909 (target_factories): New.
7910 (test_target_info): New.
7911 (test_target_ops::info): New.
7912 (open_target): Adjust to use target_factories.
7913 (add_target_with_completer): Rename to ...
7914 (add_target): ... this. Change prototype. Register target_info
7915 and open callback in target_factories. Register target_info in
7916 command context instead of target_ops.
7917 (add_target): Delete old implementation.
7918 (add_deprecated_target_alias): Change prototype. Adjust.
7919 (the_native_target): New.
7920 (set_native_target, get_native_target): New.
7921 (find_default_run_target): Use the_native_target.
7922 (find_attach_target, find_run_target): Simplify.
7923 (target_ops::open): Delete.
7924 (dummy_target_info): New.
7925 (dummy_target::shortname, dummy_target::longname)
7926 (dummy_target::doc): Delete.
7927 (dummy_target::info): New.
7928 (debug_target::shortname, debug_target::longname)
7929 (debug_target::doc): Delete.
7930 (debug_target::info): New.
7931 * target.h (struct target_info): New.
7932 (target_ops::~target_ops): Add comment.
7933 (target_ops::info): New.
7934 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7935 longer virtual. Implement in terms of target_info.
7936 (set_native_target, get_native_target): Declare.
7937 (target_open_ftype): New.
7938 (add_target, add_target_with_completer)
7939 (add_deprecated_target_alias): Change prototype.
7940 (test_target) <shortname, longname, doc>: Delete.
7941 <info>: New.
7942 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7943 add_inf_child_target.
7944 * tracefile-tfile.c (tfile_target_info): New.
7945 (tfile_target) <shortname, longname, doc>: Delete.
7946 <info>: New.
7947 (tfile_target::open): Rename to ...
7948 (tfile_target_open): ... this.
7949 (_initialize_tracefile_tfile): Adjust.
7950 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7951 add_inf_child_target.
7952 * windows-nat.c (_initialize_windows_nat): Use
7953 add_inf_child_target.
7954 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7955 add_inf_child_target.
7956
135340af
PA
79572018-05-02 Pedro Alves <palves@redhat.com>
7958
7959 * linux-nat.h (linux_nat_target) <low_new_thread,
7960 low_delete_thread, low_new_fork, low_forget_process,
7961 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7962 New virtual methods.
7963 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7964 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7965 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7966 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7967 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7968 Delete.
7969 * linux-fork.c (delete_fork): Adjust to call low method.
7970 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7971 (linux_nat_new_fork, linux_nat_forget_process_hook)
7972 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7973 (linux_nat_status_is_event):
7974 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7975 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7976 to call low method.
7977 (sigtrap_is_event): Rename to ...
7978 (linux_nat_target::low_status_is_event): ... this.
7979 (linux_nat_set_status_is_event): Delete.
7980 (save_stop_reason, linux_nat_wait_1)
7981 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7982 low methods.
7983 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7984 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7985 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7986 (linux_nat_set_prepare_to_resume): Delete.
7987 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7988 low virtual methods.
7989 * amd64-linux-nat.c: Likewise.
7990 * arm-linux-nat.c: Likewise.
7991 * i386-linux-nat.c: Likewise.
7992 * ia64-linux-nat.c: Likewise.
7993 * mips-linux-nat.c: Likewise.
7994 * ppc-linux-nat.c: Likewise.
7995 * s390-linux-nat.c: Likewise.
7996 * sparc64-linux-nat.c: Likewise.
7997 * x86-linux-nat.c: Likewise.
7998 * x86-linux-nat.h: Include "nat/x86-linux.h".
7999 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8000 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8001 Override methods.
8002
57810aa7
PA
80032018-05-02 Pedro Alves <palves@redhat.com>
8004
8005 * target.h (target_ops)
8006 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8007 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8008 stopped_by_watchpoint, have_continuable_watchpoint,
8009 stopped_data_address, watchpoint_addr_within_range,
8010 can_accel_watchpoint_condition, can_run, thread_alive,
8011 has_all_memory, has_memory, has_stack, has_registers,
8012 has_execution, can_async_p, is_async_p, supports_non_stop,
8013 always_non_stop_p, can_execute_reverse, supports_multi_process,
8014 supports_enable_disable_tracepoint,
8015 supports_disable_randomization, supports_string_tracing,
8016 supports_evaluation_of_breakpoint_conditions,
8017 can_run_breakpoint_commands, filesystem_is_local,
8018 can_download_tracepoint, get_trace_state_variable_value,
8019 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8020 record_is_replaying, record_will_replay,
8021 augmented_libraries_svr4_read>: Adjust to return bool.
8022 * aarch64-linux-nat.c: All implementations adjusted.
8023 * aix-thread.c: All implementations adjusted.
8024 * arm-linux-nat.c: All implementations adjusted.
8025 * breakpoint.c: All implementations adjusted.
8026 * bsd-kvm.c: All implementations adjusted.
8027 * bsd-uthread.c: All implementations adjusted.
8028 * corelow.c: All implementations adjusted.
8029 * ctf.c: All implementations adjusted.
8030 * darwin-nat.c: All implementations adjusted.
8031 * darwin-nat.h: All implementations adjusted.
8032 * exec.c: All implementations adjusted.
8033 * fbsd-nat.c: All implementations adjusted.
8034 * fbsd-nat.h: All implementations adjusted.
8035 * gnu-nat.c: All implementations adjusted.
8036 * gnu-nat.h: All implementations adjusted.
8037 * go32-nat.c: All implementations adjusted.
8038 * ia64-linux-nat.c: All implementations adjusted.
8039 * inf-child.c: All implementations adjusted.
8040 * inf-child.h: All implementations adjusted.
8041 * inf-ptrace.c: All implementations adjusted.
8042 * inf-ptrace.h: All implementations adjusted.
8043 * linux-nat.c: All implementations adjusted.
8044 * linux-nat.h: All implementations adjusted.
8045 * mips-linux-nat.c: All implementations adjusted.
8046 * nto-procfs.c: All implementations adjusted.
8047 * ppc-linux-nat.c: All implementations adjusted.
8048 * procfs.c: All implementations adjusted.
8049 * ravenscar-thread.c: All implementations adjusted.
8050 * record-btrace.c: All implementations adjusted.
8051 * record-full.c: All implementations adjusted.
8052 * remote-sim.c: All implementations adjusted.
8053 * remote.c: All implementations adjusted.
8054 * s390-linux-nat.c: All implementations adjusted.
8055 * sol-thread.c: All implementations adjusted.
8056 * spu-multiarch.c: All implementations adjusted.
8057 * target-delegates.c: All implementations adjusted.
8058 * target.c: All implementations adjusted.
8059 * target.h: All implementations adjusted.
8060 * tracefile-tfile.c: All implementations adjusted.
8061 * tracefile.c: All implementations adjusted.
8062 * tracefile.h: All implementations adjusted.
8063 * windows-nat.c: All implementations adjusted.
8064 * x86-linux-nat.h: All implementations adjusted.
8065 * x86-nat.h: All implementations adjusted.
8066
ad6a4e2d
PA
80672018-05-02 Pedro Alves <palves@redhat.com>
8068
8069 * make-target-delegates (scan_target_h): Don't trim lines here.
8070 Replace sequences of tabs and/or whitespace with a single
8071 whitespace.
8072 (top level, parsing methods): Trim each line before processing it
8073 here.
8074
f6ac5f3d
PA
80752018-05-02 Pedro Alves <palves@redhat.com>
8076 John Baldwin <jhb@freebsd.org>
8077
8078 * target.h (enum strata) <debug_stratum>: New.
8079 (struct target_ops) <all delegation methods>: Replace by C++
8080 virtual methods, and drop "to_" prefix. All references updated
8081 throughout.
8082 <to_shortname, to_longname, to_doc, to_data,
8083 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8084 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8085 virtual methods. All references updated throughout.
8086 <can_attach, supports_terminal_ours, can_create_inferior,
8087 get_thread_control_capabilities, attach_no_wait>: New
8088 virtual methods.
8089 <insert_breakpoint, remove_breakpoint>: Now
8090 TARGET_DEFAULT_NORETURN methods.
8091 <info_proc>: Now returns bool.
8092 <to_magic>: Delete.
8093 (OPS_MAGIC): Delete.
8094 (current_target): Delete. All references replaced by references
8095 to ...
8096 (target_stack): ... this. New.
8097 (target_shortname, target_longname): Adjust.
8098 (target_can_run): Now a function declaration.
8099 (default_child_has_all_memory, default_child_has_memory)
8100 (default_child_has_stack, default_child_has_registers)
8101 (default_child_has_execution): Remove target_ops parameter.
8102 (complete_target_initialization): Delete.
8103 (memory_breakpoint_target): New template class.
8104 (test_target_ops): Refactor as a C++ class with virtual methods.
8105 * make-target-delegates (NAME_PART): Tighten.
8106 (POINTER_PART, CP_SYMBOL): New.
8107 (SIMPLE_RETURN_PART): Reimplement.
8108 (VEC_RETURN_PART): Expect less.
8109 (RETURN_PART, VIRTUAL_PART): New.
8110 (METHOD): Adjust to C++ virtual methods.
8111 (scan_target_h): Remove reference to C99.
8112 (dname): Output "target_ops::" prefix.
8113 (write_function_header): Adjust to output a C++ class method.
8114 (write_declaration): New.
8115 (write_delegator): Adjust to output a C++ class method.
8116 (tdname): Output "dummy_target::" prefix.
8117 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8118 method.
8119 (tdefault_names, debug_names): Delete.
8120 (return_types, tdefaults, styles, argtypes_array): New.
8121 (top level): All methods are delegators.
8122 (print_class): New.
8123 (top level): Print dummy_target and debug_target classes.
8124 * target-delegates.c: Regenerate.
8125 * target-debug.h (target_debug_print_enum_info_proc_what)
8126 (target_debug_print_thread_control_capabilities)
8127 (target_debug_print_thread_info_p): New.
8128 * target.c (dummy_target): Delete.
8129 (the_dummy_target, the_debug_target): New.
8130 (target_stack): Now extern.
8131 (set_targetdebug): Push/unpush debug target.
8132 (default_child_has_all_memory, default_child_has_memory)
8133 (default_child_has_stack, default_child_has_registers)
8134 (default_child_has_execution): Remove target_ops parameter.
8135 (complete_target_initialization): Delete.
8136 (add_target_with_completer): No longer call
8137 complete_target_initialization.
8138 (target_supports_terminal_ours): Use regular delegation.
8139 (update_current_target): Delete.
8140 (push_target): No longer check magic number. Don't call
8141 update_current_target.
8142 (unpush_target): Don't call update_current_target.
8143 (target_is_pushed): No longer check magic number.
8144 (target_require_runnable): Skip for all stratums over
8145 process_stratum.
8146 (target_ops::info_proc): New.
8147 (target_info_proc): Use find_target_at and
8148 find_default_run_target.
8149 (target_supports_disable_randomization): Use regular delegation.
8150 (target_get_osdata): Use find_target_at.
8151 (target_ops::open, target_ops::close, target_ops::can_attach)
8152 (target_ops::attach, target_ops::can_create_inferior)
8153 (target_ops::create_inferior, target_ops::can_run)
8154 (target_can_run): New.
8155 (default_fileio_target): Use regular delegation.
8156 (target_ops::fileio_open, target_ops::fileio_pwrite)
8157 (target_ops::fileio_pread, target_ops::fileio_fstat)
8158 (target_ops::fileio_close, target_ops::fileio_unlink)
8159 (target_ops::fileio_readlink): New.
8160 (target_fileio_open_1, target_fileio_unlink)
8161 (target_fileio_readlink): Always call the target method. Handle
8162 FILEIO_ENOSYS.
8163 (return_zero, return_zero_has_execution): Delete.
8164 (init_dummy_target): Delete.
8165 (dummy_target::dummy_target, dummy_target::shortname)
8166 (dummy_target::longname, dummy_target::doc)
8167 (debug_target::debug_target, debug_target::shortname)
8168 (debug_target::longname, debug_target::doc): New.
8169 (target_supports_delete_record): Use regular delegation.
8170 (setup_target_debug): Delete.
8171 (maintenance_print_target_stack): Skip debug_stratum.
8172 (initialize_targets): Instantiate the_dummy_target and
8173 the_debug_target.
8174 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8175 use target_stack.
8176 (target_auxv_search, fprint_target_auxv): Adjust.
8177 (info_auxv_command): Adjust to use target_stack.
8178 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8179 * exceptions.c (print_flush): Handle a NULL target_stack.
8180 * regcache.c (target_ops_no_register): Refactor as class with
8181 virtual methods.
8182
8183 * exec.c (exec_target): New class.
8184 (exec_ops): Now an exec_target.
8185 (exec_open, exec_close_1, exec_get_section_table)
8186 (exec_xfer_partial, exec_files_info, exec_has_memory)
8187 (exec_make_note_section): Refactor as exec_target methods.
8188 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8189 Delete.
8190 (exec_target::find_memory_regions): New.
8191 (_initialize_exec): Don't call init_exec_ops.
8192 * gdbcore.h (exec_file_clear): Delete.
8193
8194 * corefile.c (core_target): Delete.
8195 (core_file_command): Adjust.
8196 * corelow.c (core_target): New class.
8197 (the_core_target): New.
8198 (core_close): Remove target_ops parameter.
8199 (core_close_cleanup): Adjust.
8200 (core_target::close): New.
8201 (core_open, core_detach, get_core_registers, core_files_info)
8202 (core_xfer_partial, core_thread_alive, core_read_description)
8203 (core_pid_to_str, core_thread_name, core_has_memory)
8204 (core_has_stack, core_has_registers, core_info_proc): Rework as
8205 core_target methods.
8206 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8207 (_initialize_corelow): Initialize the_core_target.
8208 * gdbcore.h (core_target): Delete.
8209 (the_core_target): New.
8210
8211 * ctf.c: (ctf_target): New class.
8212 (ctf_ops): Now a ctf_target.
8213 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8214 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8215 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8216 methods.
8217 (init_ctf_ops): Delete.
8218 (_initialize_ctf): Don't call it.
8219 * tracefile-tfile.c (tfile_target): New class.
8220 (tfile_ops): Now a tfile_target.
8221 (tfile_open, tfile_close, tfile_files_info)
8222 (tfile_get_tracepoint_status, tfile_trace_find)
8223 (tfile_fetch_registers, tfile_xfer_partial)
8224 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8225 Refactor as tfile_target methods.
8226 (tfile_xfer_partial_features): Remove target_ops parameter.
8227 (init_tfile_ops): Delete.
8228 (_initialize_tracefile_tfile): Don't call it.
8229 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8230 (tracefile_has_stack, tracefile_has_registers)
8231 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8232 tracefile_target methods.
8233 (init_tracefile_ops): Delete.
8234 (tracefile_target::tracefile_target): New.
8235 * tracefile.h: Include "target.h".
8236 (tracefile_target): New class.
8237 (init_tracefile_ops): Delete.
8238
8239 * spu-multiarch.c (spu_multiarch_target): New class.
8240 (spu_ops): Now a spu_multiarch_target.
8241 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8242 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8243 (spu_search_memory, spu_mourn_inferior): Refactor as
8244 spu_multiarch_target methods.
8245 (init_spu_ops): Delete.
8246 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8247 complete_target_initialization.
8248
8249 * ravenscar-thread.c (ravenscar_thread_target): New class.
8250 (ravenscar_ops): Now a ravenscar_thread_target.
8251 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8252 (ravenscar_thread_alive, ravenscar_pid_to_str)
8253 (ravenscar_fetch_registers, ravenscar_store_registers)
8254 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8255 (ravenscar_stopped_by_hw_breakpoint)
8256 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8257 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8258 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8259 methods.
8260 (init_ravenscar_thread_ops): Delete.
8261 (_initialize_ravenscar): Remove references to
8262 init_ravenscar_thread_ops and complete_target_initialization.
8263
8264 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8265 (bsd_uthread_target): New class.
8266 (bsd_uthread_ops): Now a bsd_uthread_target.
8267 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8268 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8269 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8270 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8271 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8272 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8273 (bsd_uthread_target): Delete function.
8274 (_initialize_bsd_uthread): Remove reference to
8275 complete_target_initialization.
8276
8277 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8278 (target_bfd): ... this new class.
8279 (target_bfd_xfer_partial, target_bfd_get_section_table)
8280 (target_bfd_close): Refactor as target_bfd methods.
8281 (target_bfd::~target_bfd): New.
8282 (target_bfd_reopen): Adjust.
8283 (target_bfd::close): New.
8284
8285 * record-btrace.c (record_btrace_target): New class.
8286 (record_btrace_ops): Now a record_btrace_target.
8287 (record_btrace_open, record_btrace_stop_recording)
8288 (record_btrace_disconnect, record_btrace_close)
8289 (record_btrace_async, record_btrace_info)
8290 (record_btrace_insn_history, record_btrace_insn_history_range)
8291 (record_btrace_insn_history_from, record_btrace_call_history)
8292 (record_btrace_call_history_range)
8293 (record_btrace_call_history_from, record_btrace_record_method)
8294 (record_btrace_is_replaying, record_btrace_will_replay)
8295 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8296 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8297 (record_btrace_store_registers, record_btrace_prepare_to_store)
8298 (record_btrace_to_get_unwinder)
8299 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8300 (record_btrace_commit_resume, record_btrace_wait)
8301 (record_btrace_stop, record_btrace_can_execute_reverse)
8302 (record_btrace_stopped_by_sw_breakpoint)
8303 (record_btrace_supports_stopped_by_sw_breakpoint)
8304 (record_btrace_stopped_by_hw_breakpoint)
8305 (record_btrace_supports_stopped_by_hw_breakpoint)
8306 (record_btrace_update_thread_list, record_btrace_thread_alive)
8307 (record_btrace_goto_begin, record_btrace_goto_end)
8308 (record_btrace_goto, record_btrace_stop_replaying_all)
8309 (record_btrace_execution_direction)
8310 (record_btrace_prepare_to_generate_core)
8311 (record_btrace_done_generating_core): Refactor as
8312 record_btrace_target methods.
8313 (init_record_btrace_ops): Delete.
8314 (_initialize_record_btrace): Remove reference to
8315 init_record_btrace_ops.
8316 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8317 the execution_direction global.
8318 (record_full_base_target, record_full_target)
8319 (record_full_core_target): New classes.
8320 (record_full_ops): Now a record_full_target.
8321 (record_full_core_ops): Now a record_full_core_target.
8322 (record_full_target::detach, record_full_target::disconnect)
8323 (record_full_core_target::disconnect)
8324 (record_full_target::mourn_inferior, record_full_target::kill):
8325 New.
8326 (record_full_open, record_full_close, record_full_async): Refactor
8327 as methods of the record_full_base_target class.
8328 (record_full_resume, record_full_commit_resume): Refactor
8329 as methods of the record_full_target class.
8330 (record_full_wait, record_full_stopped_by_watchpoint)
8331 (record_full_stopped_data_address)
8332 (record_full_stopped_by_sw_breakpoint)
8333 (record_full_supports_stopped_by_sw_breakpoint)
8334 (record_full_stopped_by_hw_breakpoint)
8335 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8336 methods of the record_full_base_target class.
8337 (record_full_store_registers, record_full_xfer_partial)
8338 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8339 Refactor as methods of the record_full_target class.
8340 (record_full_can_execute_reverse, record_full_get_bookmark)
8341 (record_full_goto_bookmark, record_full_execution_direction)
8342 (record_full_record_method, record_full_info, record_full_delete)
8343 (record_full_is_replaying, record_full_will_replay)
8344 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8345 (record_full_stop_replaying): Refactor as methods of the
8346 record_full_base_target class.
8347 (record_full_core_resume, record_full_core_kill)
8348 (record_full_core_fetch_registers)
8349 (record_full_core_prepare_to_store)
8350 (record_full_core_store_registers, record_full_core_xfer_partial)
8351 (record_full_core_insert_breakpoint)
8352 (record_full_core_remove_breakpoint)
8353 (record_full_core_has_execution): Refactor
8354 as methods of the record_full_core_target class.
8355 (record_full_base_target::supports_delete_record): New.
8356 (init_record_full_ops): Delete.
8357 (init_record_full_core_ops): Delete.
8358 (record_full_save): Refactor as method of the
8359 record_full_base_target class.
8360 (_initialize_record_full): Remove references to
8361 init_record_full_ops and init_record_full_core_ops.
8362
8363 * remote.c (remote_target, extended_remote_target): New classes.
8364 (remote_ops): Now a remote_target.
8365 (extended_remote_ops): Now an extended_remote_target.
8366 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8367 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8368 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8369 (remote_pass_signals, remote_set_syscall_catchpoint)
8370 (remote_program_signals, )
8371 (remote_thread_always_alive): Remove target_ops parameter.
8372 (remote_thread_alive, remote_thread_name)
8373 (remote_update_thread_list, remote_threads_extra_info)
8374 (remote_static_tracepoint_marker_at)
8375 (remote_static_tracepoint_markers_by_strid)
8376 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8377 (remote_open): Refactor as methods of remote_target.
8378 (extended_remote_open, extended_remote_detach)
8379 (extended_remote_attach, extended_remote_post_attach):
8380 (extended_remote_supports_disable_randomization)
8381 (extended_remote_create_inferior): : Refactor as method of
8382 extended_remote_target.
8383 (remote_set_permissions, remote_open_1, remote_detach)
8384 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8385 (remote_resume, remote_commit_resume, remote_stop)
8386 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8387 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8388 (remote_prepare_to_store, remote_store_registers)
8389 (remote_flash_erase, remote_flash_done, remote_files_info)
8390 (remote_kill, remote_mourn, remote_insert_breakpoint)
8391 (remote_remove_breakpoint, remote_insert_watchpoint)
8392 (remote_watchpoint_addr_within_range)
8393 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8394 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8395 (remote_supports_stopped_by_sw_breakpoint)
8396 (remote_stopped_by_hw_breakpoint)
8397 (remote_supports_stopped_by_hw_breakpoint)
8398 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8399 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8400 (remote_verify_memory): Refactor as methods of remote_target.
8401 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8402 parameter.
8403 (remote_xfer_partial, remote_get_memory_xfer_limit)
8404 (remote_search_memory, remote_rcmd, remote_memory_map)
8405 (remote_pid_to_str, remote_get_thread_local_address)
8406 (remote_get_tib_address, remote_read_description): Refactor as
8407 methods of remote_target.
8408 (remote_target::fileio_open, remote_target::fileio_pwrite)
8409 (remote_target::fileio_pread, remote_target::fileio_close): New.
8410 (remote_hostio_readlink, remote_hostio_fstat)
8411 (remote_filesystem_is_local, remote_can_execute_reverse)
8412 (remote_supports_non_stop, remote_supports_disable_randomization)
8413 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8414 (remote_supports_enable_disable_tracepoint)
8415 (remote_supports_string_tracing)
8416 (remote_can_run_breakpoint_commands, remote_trace_init)
8417 (remote_download_tracepoint, remote_can_download_tracepoint)
8418 (remote_download_trace_state_variable, remote_enable_tracepoint)
8419 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8420 (remote_trace_start, remote_get_trace_status)
8421 (remote_get_tracepoint_status, remote_trace_stop)
8422 (remote_trace_find, remote_get_trace_state_variable_value)
8423 (remote_save_trace_data, remote_get_raw_trace_data)
8424 (remote_set_disconnected_tracing, remote_core_of_thread)
8425 (remote_set_circular_trace_buffer, remote_traceframe_info)
8426 (remote_get_min_fast_tracepoint_insn_len)
8427 (remote_set_trace_buffer_size, remote_set_trace_notes)
8428 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8429 (remote_disable_btrace, remote_teardown_btrace)
8430 (remote_read_btrace, remote_btrace_conf)
8431 (remote_augmented_libraries_svr4_read, remote_load)
8432 (remote_pid_to_exec_file, remote_can_do_single_step)
8433 (remote_execution_direction, remote_thread_handle_to_thread_info):
8434 Refactor as methods of remote_target.
8435 (init_remote_ops, init_extended_remote_ops): Delete.
8436 (remote_can_async_p, remote_is_async_p, remote_async)
8437 (remote_thread_events, remote_upload_tracepoints)
8438 (remote_upload_trace_state_variables): Refactor as methods of
8439 remote_target.
8440 (_initialize_remote): Remove references to init_remote_ops and
8441 init_extended_remote_ops.
8442
8443 * remote-sim.c (gdbsim_target): New class.
8444 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8445 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8446 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8447 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8448 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8449 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8450 Refactor as methods of gdbsim_target.
8451 (gdbsim_ops): Now a gdbsim_target.
8452 (init_gdbsim_ops): Delete.
8453 (gdbsim_cntrl_c): Adjust.
8454 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8455
8456 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8457 (the_amd64_linux_nat_target): New.
8458 (amd64_linux_fetch_inferior_registers)
8459 (amd64_linux_store_inferior_registers): Refactor as methods of
8460 amd64_linux_nat_target.
8461 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8462 * i386-linux-nat.c: Don't include "linux-nat.h".
8463 (i386_linux_nat_target): New class.
8464 (the_i386_linux_nat_target): New.
8465 (i386_linux_fetch_inferior_registers)
8466 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8467 as methods of i386_linux_nat_target.
8468 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8469 * inf-child.c (inf_child_ops): Delete.
8470 (inf_child_fetch_inferior_registers)
8471 (inf_child_store_inferior_registers): Delete.
8472 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8473 methods of inf_child_target.
8474 (inf_child_target::supports_terminal_ours)
8475 (inf_child_target::terminal_init)
8476 (inf_child_target::terminal_inferior)
8477 (inf_child_target::terminal_ours_for_output)
8478 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8479 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8480 New.
8481 (inf_child_open, inf_child_disconnect, inf_child_close)
8482 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8483 (inf_child_post_startup_inferior, inf_child_can_run)
8484 (inf_child_pid_to_exec_file): Refactor as methods of
8485 inf_child_target.
8486 (inf_child_follow_fork): Delete.
8487 (inf_child_target::can_create_inferior)
8488 (inf_child_target::can_attach): New.
8489 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8490 (inf_child_target::has_stack, inf_child_target::has_registers)
8491 (inf_child_target::has_execution): New.
8492 (inf_child_fileio_open, inf_child_fileio_pwrite)
8493 (inf_child_fileio_pread, inf_child_fileio_fstat)
8494 (inf_child_fileio_close, inf_child_fileio_unlink)
8495 (inf_child_fileio_readlink, inf_child_use_agent)
8496 (inf_child_can_use_agent): Refactor as methods of
8497 inf_child_target.
8498 (return_zero, inf_child_target): Delete.
8499 (inf_child_target::inf_child_target): New.
8500 * inf-child.h: Include "target.h".
8501 (inf_child_target): Delete function prototype.
8502 (inf_child_target): New class.
8503 (inf_child_open_target, inf_child_mourn_inferior)
8504 (inf_child_maybe_unpush_target): Delete.
8505 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8506 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8507 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8508 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8509 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8510 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8511 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8512 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8513 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8514 methods of inf_ptrace_target.
8515 (inf_ptrace_target): Delete function.
8516 * inf-ptrace.h: Include "inf-child.h".
8517 (inf_ptrace_target): Delete function declaration.
8518 (inf_ptrace_target): New class.
8519 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8520 * linux-nat.c (linux_target): New.
8521 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8522 (linux_nat_target::~linux_nat_target): New.
8523 (linux_child_post_attach, linux_child_post_startup_inferior)
8524 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8525 (linux_child_remove_fork_catchpoint)
8526 (linux_child_insert_vfork_catchpoint)
8527 (linux_child_remove_vfork_catchpoint)
8528 (linux_child_insert_exec_catchpoint)
8529 (linux_child_remove_exec_catchpoint)
8530 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8531 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8532 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8533 (linux_nat_stopped_data_address)
8534 (linux_nat_stopped_by_sw_breakpoint)
8535 (linux_nat_supports_stopped_by_sw_breakpoint)
8536 (linux_nat_stopped_by_hw_breakpoint)
8537 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8538 (linux_nat_kill, linux_nat_mourn_inferior)
8539 (linux_nat_xfer_partial, linux_nat_thread_alive)
8540 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8541 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8542 (linux_child_static_tracepoint_markers_by_strid)
8543 (linux_nat_is_async_p, linux_nat_can_async_p)
8544 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8545 (linux_nat_supports_multi_process)
8546 (linux_nat_supports_disable_randomization, linux_nat_async)
8547 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8548 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8549 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8550 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8551 methods of linux_nat_target.
8552 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8553 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8554 parameter.
8555 (check_stopped_by_watchpoint): Adjust.
8556 (linux_xfer_partial): Delete.
8557 (linux_target_install_ops, linux_target, linux_nat_add_target):
8558 Delete.
8559 (linux_nat_target::linux_nat_target): New.
8560 * linux-nat.h: Include "inf-ptrace.h".
8561 (linux_nat_target): New.
8562 (linux_target, linux_target_install_ops, linux_nat_add_target):
8563 Delete function declarations.
8564 (linux_target): Declare global.
8565 * linux-thread-db.c (thread_db_target): New.
8566 (thread_db_target::thread_db_target): New.
8567 (thread_db_ops): Delete.
8568 (the_thread_db_target): New.
8569 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8570 (thread_db_update_thread_list, thread_db_pid_to_str)
8571 (thread_db_extra_thread_info)
8572 (thread_db_thread_handle_to_thread_info)
8573 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8574 (thread_db_resume): Refactor as methods of thread_db_target.
8575 (init_thread_db_ops): Delete.
8576 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8577 * x86-linux-nat.c: Don't include "linux-nat.h".
8578 (super_post_startup_inferior): Delete.
8579 (x86_linux_nat_target::~x86_linux_nat_target): New.
8580 (x86_linux_child_post_startup_inferior)
8581 (x86_linux_read_description, x86_linux_enable_btrace)
8582 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8583 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8584 methods of x86_linux_nat_target.
8585 (x86_linux_create_target): Delete. Bits folded ...
8586 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8587 pointer.
8588 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8589 (x86_linux_nat_target): New class.
8590 (x86_linux_create_target): Delete.
8591 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8592 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8593 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8594 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8595 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8596 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8597 make extern.
8598 (x86_use_watchpoints): Delete.
8599 * x86-nat.h: Include "breakpoint.h" and "target.h".
8600 (x86_use_watchpoints): Delete.
8601 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8602 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8603 (x86_insert_watchpoint, x86_remove_watchpoint)
8604 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8605 (x86_stopped_by_hw_breakpoint): New declarations.
8606 (x86_nat_target): New template class.
8607
8608 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8609 (the_ppc_linux_nat_target): New.
8610 (ppc_linux_fetch_inferior_registers)
8611 (ppc_linux_can_use_hw_breakpoint)
8612 (ppc_linux_region_ok_for_hw_watchpoint)
8613 (ppc_linux_ranged_break_num_registers)
8614 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8615 (ppc_linux_insert_mask_watchpoint)
8616 (ppc_linux_remove_mask_watchpoint)
8617 (ppc_linux_can_accel_watchpoint_condition)
8618 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8619 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8620 (ppc_linux_watchpoint_addr_within_range)
8621 (ppc_linux_masked_watch_num_registers)
8622 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8623 (ppc_linux_read_description): Refactor as methods of
8624 ppc_linux_nat_target.
8625 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8626
8627 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8628 (procfs_target): New class.
8629 (the_procfs_target): New.
8630 (procfs_target): Delete function.
8631 (procfs_auxv_parse, procfs_attach, procfs_detach)
8632 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8633 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8634 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8635 (procfs_create_inferior, procfs_update_thread_list)
8636 (procfs_thread_alive, procfs_pid_to_str)
8637 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8638 (procfs_stopped_data_address, procfs_insert_watchpoint)
8639 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8640 (proc_find_memory_regions, procfs_info_proc)
8641 (procfs_make_note_section): Refactor as methods of procfs_target.
8642 (_initialize_procfs): Adjust.
8643 * sol-thread.c (sol_thread_target): New class.
8644 (sol_thread_ops): Now a sol_thread_target.
8645 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8646 (sol_thread_fetch_registers, sol_thread_store_registers)
8647 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8648 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8649 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8650 (init_sol_thread_ops): Delete.
8651 (_initialize_sol_thread): Adjust. Remove references to
8652 init_sol_thread_ops and complete_target_initialization.
8653
8654 * windows-nat.c (windows_nat_target): New class.
8655 (windows_fetch_inferior_registers)
8656 (windows_store_inferior_registers, windows_resume, windows_wait)
8657 (windows_attach, windows_detach, windows_pid_to_exec_file)
8658 (windows_files_info, windows_create_inferior)
8659 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8660 (windows_close, windows_pid_to_str, windows_xfer_partial)
8661 (windows_get_tib_address, windows_get_ada_task_ptid)
8662 (windows_thread_name, windows_thread_alive): Refactor as
8663 windows_nat_target methods.
8664 (do_initial_windows_stuff): Adjust.
8665 (windows_target): Delete function.
8666 (_initialize_windows_nat): Adjust.
8667
8668 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8669 (darwin_mourn_inferior, darwin_kill_inferior)
8670 (darwin_create_inferior, darwin_attach, darwin_detach)
8671 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8672 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8673 (darwin_supports_multi_process): Refactor as darwin_nat_target
8674 methods.
8675 (darwin_resume_to, darwin_files_info): Delete.
8676 (_initialize_darwin_inferior): Rename to ...
8677 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8678 * darwin-nat.h: Include "inf-child.h".
8679 (darwin_nat_target): New class.
8680 (darwin_complete_target): Delete.
8681 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8682 (darwin_target): New.
8683 (i386_darwin_fetch_inferior_registers)
8684 (i386_darwin_store_inferior_registers): Refactor as methods of
8685 darwin_nat_target.
8686 (darwin_complete_target): Delete, with ...
8687 (_initialize_i386_darwin_nat): ... bits factored out here.
8688
8689 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8690 (the_alpha_linux_nat_target): New.
8691 (alpha_linux_register_u_offset): Refactor as
8692 alpha_linux_nat_target method.
8693 (_initialize_alpha_linux_nat): Adjust.
8694 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8695 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8696 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8697 methods of linux_nat_trad_target.
8698 (linux_trad_target): Delete.
8699 * linux-nat-trad.h (linux_trad_target): Delete function.
8700 (linux_nat_trad_target): New class.
8701 * mips-linux-nat.c (mips_linux_nat_target): New class.
8702 (super_fetch_registers, super_store_registers, super_close):
8703 Delete.
8704 (the_mips_linux_nat_target): New.
8705 (mips64_linux_regsets_fetch_registers)
8706 (mips64_linux_regsets_store_registers)
8707 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8708 (mips_linux_register_u_offset, mips_linux_read_description)
8709 (mips_linux_can_use_hw_breakpoint)
8710 (mips_linux_stopped_by_watchpoint)
8711 (mips_linux_stopped_data_address)
8712 (mips_linux_region_ok_for_hw_watchpoint)
8713 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8714 (mips_linux_close): Refactor as methods of mips_linux_nat.
8715 (_initialize_mips_linux_nat): Adjust to C++ification.
8716
8717 * aix-thread.c (aix_thread_target): New class.
8718 (aix_thread_ops): Now an aix_thread_target.
8719 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8720 (aix_thread_fetch_registers, aix_thread_store_registers)
8721 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8722 (aix_thread_thread_alive, aix_thread_pid_to_str)
8723 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8724 Refactor as methods of aix_thread_target.
8725 (init_aix_thread_ops): Delete.
8726 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8727 and complete_target_initialization.
8728 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8729 (rs6000_nat_target): New class.
8730 (the_rs6000_nat_target): New.
8731 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8732 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8733 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8734 (super_create_inferior): Delete.
8735 (_initialize_rs6000_nat): Adjust to C++ification.
8736
8737 * arm-linux-nat.c (arm_linux_nat_target): New class.
8738 (the_arm_linux_nat_target): New.
8739 (arm_linux_fetch_inferior_registers)
8740 (arm_linux_store_inferior_registers, arm_linux_read_description)
8741 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8742 (arm_linux_remove_hw_breakpoint)
8743 (arm_linux_region_ok_for_hw_watchpoint)
8744 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8745 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8746 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8747 arm_linux_nat_target.
8748 (_initialize_arm_linux_nat): Adjust to C++ification.
8749
8750 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8751 (the_aarch64_linux_nat_target): New.
8752 (aarch64_linux_fetch_inferior_registers)
8753 (aarch64_linux_store_inferior_registers)
8754 (aarch64_linux_child_post_startup_inferior)
8755 (aarch64_linux_read_description)
8756 (aarch64_linux_can_use_hw_breakpoint)
8757 (aarch64_linux_insert_hw_breakpoint)
8758 (aarch64_linux_remove_hw_breakpoint)
8759 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8760 (aarch64_linux_region_ok_for_hw_watchpoint)
8761 (aarch64_linux_stopped_data_address)
8762 (aarch64_linux_stopped_by_watchpoint)
8763 (aarch64_linux_watchpoint_addr_within_range)
8764 (aarch64_linux_can_do_single_step): Refactor as methods of
8765 aarch64_linux_nat_target.
8766 (super_post_startup_inferior): Delete.
8767 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8768
8769 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8770 (the_hppa_linux_nat_target): New.
8771 (hppa_linux_fetch_inferior_registers)
8772 (hppa_linux_store_inferior_registers): Refactor as methods of
8773 hppa_linux_nat_target.
8774 (_initialize_hppa_linux_nat): Adjust to C++ification.
8775
8776 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8777 (the_ia64_linux_nat_target): New.
8778 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8779 (ia64_linux_stopped_data_address)
8780 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8781 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8782 ia64_linux_nat_target methods.
8783 (super_xfer_partial): Delete.
8784 (_initialize_ia64_linux_nat): Adjust to C++ification.
8785
8786 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8787 (the_m32r_linux_nat_target): New.
8788 (m32r_linux_fetch_inferior_registers)
8789 (m32r_linux_store_inferior_registers): Refactor as
8790 m32r_linux_nat_target methods.
8791 (_initialize_m32r_linux_nat): Adjust to C++ification.
8792
8793 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8794 (the_m68k_linux_nat_target): New.
8795 (m68k_linux_fetch_inferior_registers)
8796 (m68k_linux_store_inferior_registers): Refactor as
8797 m68k_linux_nat_target methods.
8798 (_initialize_m68k_linux_nat): Adjust to C++ification.
8799
8800 * s390-linux-nat.c (s390_linux_nat_target): New class.
8801 (the_s390_linux_nat_target): New.
8802 (s390_linux_fetch_inferior_registers)
8803 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8804 (s390_insert_watchpoint, s390_remove_watchpoint)
8805 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8806 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8807 (s390_auxv_parse, s390_read_description): Refactor as methods of
8808 s390_linux_nat_target.
8809 (_initialize_s390_nat): Adjust to C++ification.
8810
8811 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8812 (the_sparc_linux_nat_target): New.
8813 (_initialize_sparc_linux_nat): Adjust to C++ification.
8814 * sparc-nat.c (sparc_fetch_inferior_registers)
8815 (sparc_store_inferior_registers): Remove target_ops parameter.
8816 * sparc-nat.h (sparc_fetch_inferior_registers)
8817 (sparc_store_inferior_registers): Remove target_ops parameter.
8818 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8819 (the_sparc64_linux_nat_target): New.
8820 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8821
8822 * spu-linux-nat.c (spu_linux_nat_target): New class.
8823 (the_spu_linux_nat_target): New.
8824 (spu_child_post_startup_inferior, spu_child_post_attach)
8825 (spu_child_wait, spu_fetch_inferior_registers)
8826 (spu_store_inferior_registers, spu_xfer_partial)
8827 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8828 methods.
8829 (_initialize_spu_nat): Adjust to C++ification.
8830
8831 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8832 (the_tilegx_linux_nat_target): New.
8833 (fetch_inferior_registers, store_inferior_registers):
8834 Refactor as methods.
8835 (_initialize_tile_linux_nat): Adjust to C++ification.
8836
8837 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8838 (the_xtensa_linux_nat_target): New.
8839 (xtensa_linux_fetch_inferior_registers)
8840 (xtensa_linux_store_inferior_registers): Refactor as
8841 xtensa_linux_nat_target methods.
8842 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8843
8844 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8845 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8846 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8847 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8848 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8849 (fbsd_stopped_by_sw_breakpoint)
8850 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8851 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8852 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8853 (fbsd_post_startup_inferior, fbsd_post_attach)
8854 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8855 (fbsd_set_syscall_catchpoint)
8856 (super_xfer_partial, super_resume, super_wait)
8857 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8858 (fbsd_handle_debug_trap): Remove target_ops parameter.
8859 (fbsd_nat_add_target): Delete.
8860 * fbsd-nat.h: Include "inf-ptrace.h".
8861 (fbsd_nat_add_target): Delete.
8862 (USE_SIGTRAP_SIGINFO): Define.
8863 (fbsd_nat_target): New class.
8864
8865 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8866 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8867 (amd64bsd_target): Delete.
8868 * amd64-bsd-nat.h: New file.
8869 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8870 "x86-bsd-nat.h".
8871 (amd64_fbsd_nat_target): New class.
8872 (the_amd64_fbsd_nat_target): New.
8873 (amd64fbsd_read_description): Refactor as method of
8874 amd64_fbsd_nat_target.
8875 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8876 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8877 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8878 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8879 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8880 (i386bsd_target): Delete.
8881 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8882 (i386bsd_fetch_inferior_registers)
8883 (i386bsd_store_inferior_registers): Declare.
8884 (i386_bsd_nat_target): New class.
8885 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8886 (the_i386_fbsd_nat_target): New.
8887 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8888 i386_fbsd_nat_target methods.
8889 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8890 (_initialize_i386fbsd_nat): Adjust to C++ification.
8891 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8892 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8893 (_initialize_x86_bsd_nat): Adjust to C++ification.
8894 * x86-bsd-nat.h: Include "x86-nat.h".
8895 (x86bsd_target): Delete declaration.
8896 (x86bsd_nat_target): New class.
8897
8898 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8899 (the_aarch64_fbsd_nat_target): New.
8900 (aarch64_fbsd_fetch_inferior_registers)
8901 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8902 aarch64_fbsd_nat_target.
8903 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8904 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8905 (the_alpha_bsd_nat_target): New.
8906 (alphabsd_fetch_inferior_registers)
8907 (alphabsd_store_inferior_registers): Refactor as
8908 alpha_bsd_nat_target methods.
8909 (_initialize_alphabsd_nat): Refactor as methods of
8910 alpha_bsd_nat_target.
8911 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8912 (the_amd64_nbsd_nat_target): New.
8913 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8914 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8915 (the_amd64_obsd_nat_target): New.
8916 (_initialize_amd64obsd_nat): Adjust to C++ification.
8917 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8918 (the_arm_fbsd_nat_target): New.
8919 (arm_fbsd_fetch_inferior_registers)
8920 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8921 (_initialize_arm_fbsd_nat): Refactor as methods of
8922 arm_fbsd_nat_target.
8923 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8924 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8925 (the_arm_netbsd_nat_target): New.
8926 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8927 arm_netbsd_nat_target.
8928 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8929 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8930 (the_hppa_nbsd_nat_target): New.
8931 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8932 hppa_nbsd_nat_target methods.
8933 (_initialize_hppanbsd_nat): Adjust to C++ification.
8934 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8935 (the_hppa_obsd_nat_target): New.
8936 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8937 methods of hppa_obsd_nat_target.
8938 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8939 add_target.
8940 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8941 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8942 add_target.
8943 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8944 (_initialize_i386obsd_nat): Use add_target.
8945 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8946 (the_m68k_bsd_nat_target): New.
8947 (m68kbsd_fetch_inferior_registers)
8948 (m68kbsd_store_inferior_registers): Refactor as methods of
8949 m68k_bsd_nat_target.
8950 (_initialize_m68kbsd_nat): Adjust to C++ification.
8951 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8952 (the_mips_fbsd_nat_target): New.
8953 (mips_fbsd_fetch_inferior_registers)
8954 (mips_fbsd_store_inferior_registers): Refactor as methods of
8955 mips_fbsd_nat_target.
8956 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8957 add_target.
8958 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8959 (the_mips_nbsd_nat_target): New.
8960 (mipsnbsd_fetch_inferior_registers)
8961 (mipsnbsd_store_inferior_registers): Refactor as methods of
8962 mips_nbsd_nat_target.
8963 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8964 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8965 (the_mips64_obsd_nat_target): New.
8966 (mips64obsd_fetch_inferior_registers)
8967 (mips64obsd_store_inferior_registers): Refactor as methods of
8968 mips64_obsd_nat_target.
8969 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8970 add_target.
8971 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8972 nbsd_nat_target.
8973 * nbsd-nat.h: Include "inf-ptrace.h".
8974 (nbsd_nat_target): New class.
8975 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8976 (obsd_wait): Refactor as methods of obsd_nat_target.
8977 (obsd_add_target): Delete.
8978 * obsd-nat.h: Include "inf-ptrace.h".
8979 (obsd_nat_target): New class.
8980 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8981 (the_ppc_fbsd_nat_target): New.
8982 (ppcfbsd_fetch_inferior_registers)
8983 (ppcfbsd_store_inferior_registers): Refactor as methods of
8984 ppc_fbsd_nat_target.
8985 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8986 add_target.
8987 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8988 (the_ppc_nbsd_nat_target): New.
8989 (ppcnbsd_fetch_inferior_registers)
8990 (ppcnbsd_store_inferior_registers): Refactor as methods of
8991 ppc_nbsd_nat_target.
8992 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8993 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8994 (the_ppc_obsd_nat_target): New.
8995 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8996 methods of ppc_obsd_nat_target.
8997 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8998 add_target.
8999 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9000 (the_sh_nbsd_nat_target): New.
9001 (shnbsd_fetch_inferior_registers)
9002 (shnbsd_store_inferior_registers): Refactor as methods of
9003 sh_nbsd_nat_target.
9004 (_initialize_shnbsd_nat): Adjust to C++ification.
9005 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9006 (inf_ptrace_xfer_partial): Delete.
9007 (sparc_xfer_partial, sparc_target): Delete.
9008 * sparc-nat.h (sparc_fetch_inferior_registers)
9009 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9010 (sparc_target): Delete function declaration.
9011 (sparc_target): New template class.
9012 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9013 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9014 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9015 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9016 add_target.
9017 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9018 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9019 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9020 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9021 add_target.
9022 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9023 (the_vax_bsd_nat_target): New.
9024 (vaxbsd_fetch_inferior_registers)
9025 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9026 methods.
9027 (_initialize_vaxbsd_nat): Adjust to C++ification.
9028
9029 * bsd-kvm.c (bsd_kvm_target): New class.
9030 (bsd_kvm_ops): Now a bsd_kvm_target.
9031 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9032 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9033 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9034 bsd_kvm_target.
9035 (bsd_kvm_return_one): Delete.
9036 (bsd_kvm_add_target): Adjust to C++ification.
9037
9038 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9039 (nto_procfs_target_procfs): New classes.
9040 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9041 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9042 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9043 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9044 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9045 (procfs_remove_hw_breakpoint, procfs_resume)
9046 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9047 (procfs_kill_inferior, procfs_store_registers)
9048 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9049 as methods of nto_procfs_target.
9050 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9051 (nto_native_ops): Delete.
9052 (procfs_open, procfs_native_open): Delete.
9053 (nto_native_ops): Now an nto_procfs_target_native.
9054 (init_procfs_targets): Adjust to C++ification.
9055 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9056 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9057 Refactor as methods of nto_procfs_target.
9058
9059 * go32-nat.c (go32_nat_target): New class.
9060 (the_go32_nat_target): New.
9061 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9062 (go32_store_registers, go32_xfer_partial, go32_files_info)
9063 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9064 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9065 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9066 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9067 (go32_target): Delete.
9068 (_initialize_go32_nat): Adjust to C++ification.
9069
9070 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9071 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9072 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9073 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9074 gnu_nat_target.
9075 (gnu_target): Delete.
9076 * gnu-nat.h (gnu_target): Delete.
9077 (gnu_nat_target): New class.
9078 * i386-gnu-nat.c (gnu_base_target): New.
9079 (i386_gnu_nat_target): New class.
9080 (the_i386_gnu_nat_target): New.
9081 (_initialize_i386gnu_nat): Adjust to C++ification.
9082
3fffc070
PA
90832018-05-02 Pedro Alves <palves@redhat.com>
9084
9085 * bfd-target.c (target_bfd_xclose): Rename to ...
9086 (target_bfd_close): ... this.
9087 (target_bfd_reopen): Adjust.
9088 * target.c (target_close): Remove references to to_xclose.
9089 * target.h (target_ops::to_xclose): Delete.
9090 (target_ops::to_close): Update comments.
9091
6798487f
PA
90922018-05-02 Pedro Alves <palves@redhat.com>
9093
9094 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9095 "linux-nat.h".
9096 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9097 * inf-ptrace.c (inf_ptrace_register_u_offset)
9098 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9099 (inf_ptrace_store_register, inf_ptrace_store_registers)
9100 (inf_ptrace_trad_target): Move to ...
9101 * linux-nat-trad.c: ... this new file.
9102 * linux-nat-trad.h: New file.
9103 * linux-nat.c (linux_target_install_ops): Make extern.
9104 (linux_trad_target): Delete.
9105 * linux-nat.h (linux_trad_target): Delete declaration.
9106 (linux_target_install_ops): Declare.
9107 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9108 "linux-nat.h".
9109
c1955e17
PA
91102018-05-02 Pedro Alves <palves@redhat.com>
9111
9112 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9113 procfs_target/add_target here.
9114 * procfs.c (procfs_target): Make static.
9115 (_initialize_procfs): Call add_target here.
9116 * procfs.h (struct target_ops): Remove forward declaration.
9117 (procfs_target): Remove declaration.
9118 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9119
b5c8fcb1
PA
91202018-05-02 Pedro Alves <palves@redhat.com>
9121
9122 * procfs.c (procfs_stopped_by_watchpoint)
9123 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9124 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9125 Forward declare.
9126 (procfs_use_watchpoints): Delete, move contents...
9127 (procfs_target): ... here.
9128 * procfs.h (procfs_use_watchpoints): Delete declaration.
9129 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9130 procfs_use_watchpoints.
9131 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9132 procfs_use_watchpoints.
9133
0489430a
TT
91342018-05-02 Tom Tromey <tom@tromey.com>
9135
9136 PR python/20084:
9137 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9138 and var_zuinteger_unlimited.
9139 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9140 and PARAM_ZUINTEGER_UNLIMITED.
9141 (set_parameter_value): Handle var_zuinteger and
9142 var_zuinteger_unlimited.
9143 (add_setshow_generic): Likewise.
9144 (parmpy_init): Likewise.
9145
1632f8ba
DR
91462018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9147
9148 PR rust/23124
9149 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9150 pointer is not null before dereferencing it.
9151
76761936
TT
91522018-04-30 Tom Tromey <tom@tromey.com>
9153
9154 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9155 is_mi_like_p.
9156
2d33446d
TT
91572018-04-30 Tom Tromey <tom@tromey.com>
9158
9159 * breakpoint.c (mention): Remove use of is_mi_like_p.
9160 (print_mention_ranged_breakpoint): Likewise.
9161 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9162 of is_mi_like_p.
9163
f3c6abab
TT
91642018-04-30 Tom Tromey <tom@tromey.com>
9165
9166 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9167
40c03530
TT
91682018-04-30 Tom Tromey <tom@tromey.com>
9169
9170 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9171 (info_spu_event_command): Remove some uses of is_mi_like_p.
9172
2038b7fd
TT
91732018-04-30 Tom Tromey <tom@tromey.com>
9174
9175 * python/py-framefilter.c (py_print_single_arg)
9176 (enumerate_locals, py_print_args, py_print_frame): Remove some
9177 uses of is_mi_like_p.
9178
4904c3c6
TT
91792018-04-30 Tom Tromey <tom@tromey.com>
9180
9181 * ui-out.c: Update.
9182 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9183 * ui-out.h (ui_out::is_mi_like_p): Now const.
9184 (ui_out::do_is_mi_like_p): Now const.
9185 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9186
7c66fffc
TT
91872018-04-30 Tom Tromey <tom@tromey.com>
9188
9189 * varobj.c (varobj_set_visualizer): Use new_reference.
9190 * python/python.c (gdbpy_decode_line): Use new_reference.
9191 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9192 new_reference.
9193
bbfa6f00
TT
91942018-04-30 Tom Tromey <tom@tromey.com>
9195
9196 * varobj.c (install_new_value): Use new_reference.
9197 * value.h (value_incref): Return void. Swap intro comment with
9198 value_decref.
9199 * value.c (set_value_parent): Use new_reference.
9200 (value_incref): Return void. Update intro comment.
9201 (release_value): Use new_reference.
9202 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9203
1831a9f9
TT
92042018-04-30 Tom Tromey <tom@tromey.com>
9205
9206 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9207 * gdb_bfd.h (new_bfd_ref): Remove.
9208 (gdb_bfd_open): Update comment.
9209 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9210 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9211 (gdb_bfd_fdopenr): Use new_reference.
9212 * exec.c (exec_file_attach): Use new_reference.
9213
7c1b5f3d
TT
92142018-04-30 Tom Tromey <tom@tromey.com>
9215
9216 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9217 method.
9218
e11fb955
TT
92192018-04-30 Tom Tromey <tom@tromey.com>
9220
9221 * jit.c (jit_read_code_entry): Use type_align.
9222 * i386-tdep.c (i386_gdbarch_init): Don't call
9223 set_gdbarch_long_long_align_bit.
9224 * gdbarch.sh: Remove long_long_align_bit.
9225 * gdbarch.c, gdbarch.h: Rebuild.
9226 * arc-tdep.c (arc_type_align): New function.
9227 (arc_gdbarch_init): Use arc_type_align. Don't call
9228 set_gdbarch_long_long_align_bit.
9229
2fff16dd
TT
92302018-04-30 Tom Tromey <tom@tromey.com>
9231
9232 * rust-lang.c (rust_type_alignment): Remove.
9233 (rust_composite_type): Use type_align.
9234
6d7bb824
TT
92352018-04-30 Tom Tromey <tom@tromey.com>
9236
9237 * NEWS: Mention Type.align.
9238 * python/py-type.c (typy_get_alignof): New function.
9239 (type_object_getset): Add "alignof".
9240
007e1530
TT
92412018-04-30 Tom Tromey <tom@tromey.com>
9242
9243 PR exp/17095:
9244 * NEWS: Update.
9245 * std-operator.def (UNOP_ALIGNOF): New operator.
9246 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9247 New.
9248 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9249 * c-lang.c (c_op_print_tab): Add alignof.
9250 * c-exp.y (ALIGNOF): New token.
9251 (exp): Add "ALIGNOF" production.
9252 (ident_tokens): Add _Alignof and alignof.
9253
2b4424c3
TT
92542018-04-30 Tom Tromey <tom@tromey.com>
9255
9256 * i386-tdep.c (i386_type_align): New function.
9257 (i386_gdbarch_init): Update.
9258 * gdbarch.sh (type_align): New method.
9259 * gdbarch.c, gdbarch.h: Rebuild.
9260 * arch-utils.h (default_type_align): Declare.
9261 * arch-utils.c (default_type_align): New function.
9262 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9263 (struct type) <align_log2>: New field.
9264 <instance_flags>: Now a bitfield.
9265 (TYPE_RAW_ALIGN): New macro.
9266 (type_align, type_raw_align, set_type_align): Declare.
9267 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9268 functions.
9269 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9270 (get_alignment, maybe_set_alignment): New functions.
9271 (read_structure_type, read_enumeration_type, read_array_type)
9272 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9273 (read_subrange_type, read_base_type): Set type alignment.
9274
d33bc52e
SM
92752018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9276
9277 * dwarf2read.c (read_index_from_section): Use bool.
9278
e28b63a9
FG
92792018-04-29 Fabian Groffen <grobian@gentoo.org>
9280
9281 PR gdb/22950
9282 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9283 with #ifdef.
9284
cd8c76e4
JR
92852018-04-29 John Reiser <jreiser@BitWagon.com>
9286
9287 PR build/22873
9288 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9289 last step, and do it atomically.
9290
476d250e
AO
92912018-04-27 Alexandre Oliva <aoliva@redhat.com>
9292
9293 * compile/compile-c-types.c (convert_int, convert_float):
9294 Update for C FE v1.
9295
6873858b
TT
92962018-04-27 Tom Tromey <tom@tromey.com>
9297
9298 PR rust/22545:
9299 * rust-lang.c (rust_inclusive_range_type_p): New function.
9300 (rust_range): Handle inclusive ranges.
9301 (rust_compute_range): Likewise.
9302 * rust-exp.y (struct rust_op) <inclusive>: New field.
9303 (DOTDOTEQ): New constant.
9304 (range_expr): Add "..=" productions.
9305 (operator_tokens): Add "..=" token.
9306 (ast_range): Add "inclusive" parameter.
9307 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9308 ranges.
9309 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9310 bounds values.
9311 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9312 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9313 Update comments.
9314 * expprint.c (print_subexp_standard): Handle new bounds values.
9315 (dump_subexp_body_standard): Likewise.
9316
632e107b
TT
93172018-04-27 Tom Tromey <tom@tromey.com>
9318
9319 * configure: Rebuild.
9320 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9321 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9322 "OVERRIDE".
9323 (class symbol_needs_eval_context): Likewise.
9324 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9325 (mock_mapped_index::symbol_name_at): Use "override". Remove
9326 "virtual".
9327 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9328 "override".
9329 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9330 * aarch64-tdep.c (instruction_reader::read): Use "override".
9331 (instruction_reader_test::read): Likewise.
9332 * arm-tdep.c (instruction_reader::read): Use "override".
9333 (instruction_reader_thumb::read): Likewise.
9334
b75abf5b
AK
93352018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9336
9337 PR remote/9665
9338 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9339 instead of remote_send.
9340 (remote_send): Remove.
9341
79188d8d
PA
93422018-04-26 Pedro Alves <palves@redhat.com>
9343
9344 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9345 find_function_start_sal instead of find_pc_line.
9346
f50776aa
PA
93472018-04-26 Pedro Alves <palves@redhat.com>
9348
9349 * breakpoint.c (set_breakpoint_location_function): Handle
9350 mst_data_gnu_ifunc.
9351 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9352 * elfread.c (elf_symtab_read): Give data symbols with
9353 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9354 (elf_rel_plt_read): Update comment.
9355 * linespec.c (convert_linespec_to_sals): Handle
9356 mst_data_gnu_ifunc.
9357 (minsym_found): Handle mst_data_gnu_ifunc.
9358 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9359 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9360 * parse.c (find_minsym_type_and_address): Handle
9361 mst_data_gnu_ifunc.
9362 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9363 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9364 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9365 comment.
9366 <mst_data_gnu_ifunc>: New enumerator.
9367
20944a6e
PA
93682018-04-26 Pedro Alves <palves@redhat.com>
9369
9370 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9371 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9372 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9373 Handle it.
9374 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9375 (lookup_minimal_symbol_by_pc): Adjust.
9376 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9377 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9378 * minsyms.h (lookup_msym_prefer): New enum.
9379 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9380 parameter by a lookup_msym_prefer parameter.
9381
1adeb822
PA
93822018-04-26 Pedro Alves <palves@redhat.com>
9383
9384 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9385 ends in "@plt" instead of looking at the symbol's section.
9386
a0aca7b0
PA
93872018-04-26 Pedro Alves <palves@redhat.com>
9388
9389 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9390 all references.
9391 (find_pc_partial_function_gnu_ifunc): Rename to ...
9392 (find_pc_partial_function): ... this, and remove references to
9393 'is_gnu_ifunc_p'.
9394 (find_pc_partial_function): Delete old implementation.
9395 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9396
76af0f26
PA
93972018-04-26 Pedro Alves <palves@redhat.com>
9398
9399 * linespec.c (struct bound_minimal_symbol_search_key): New.
9400 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9401 skip first line if we found a GNU ifunc minimal symbol by name.
9402 (compare_msymbols): Change parameters to work with a destructured
9403 lhs minsym.
9404 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9405 functions.
9406
3467ec66
PA
94072018-04-26 Pedro Alves <palves@redhat.com>
9408
9409 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9410 ifunc targets here. Instead, if we have an ifunc minsym, use its
9411 address/name.
9412 (add_location_to_breakpoint): Store the minsym and the objfile in
9413 the breakpoint location.
9414 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9415 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9416 Record the minsym in the sal.
9417 * symtab.h (symtab_and_line) <msymbol>: New field.
9418
28f4fa4d
PA
94192018-04-26 Pedro Alves <palves@redhat.com>
9420
9421 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9422 unless we actually resolved the ifunc.
9423
ca31ab1d
PA
94242018-04-26 Pedro Alves <palves@redhat.com>
9425
9426 * c-exp.y (variable production): Prefer ifunc minsyms over
9427 regular function symbols.
9428 * symtab.c (find_gnu_ifunc): New function.
9429 * minsyms.h (lookup_msym_prefer): New enum.
9430 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9431 parameter by a lookup_msym_prefer parameter.
9432 * symtab.h (find_gnu_ifunc): New declaration.
9433
8388016d
PA
94342018-04-26 Pedro Alves <palves@redhat.com>
9435
9436 * blockframe.c (find_gnu_ifunc_target_type): New function.
9437 (find_function_type): New.
9438 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9439 return a value with a memory address.
9440 (eval_call): For calls to GNU ifunc functions, try to find the
9441 type of the target function from the type that the resolver
9442 returns.
9443 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9444 symbols.
9445 * infcall.c (find_function_return_type): Delete.
9446 (find_function_addr): Add 'function_type' parameter. For calls to
9447 GNU ifunc functions, try to find the type of the target function
9448 from the type that the resolver returns, and return it via
9449 FUNCTION_TYPE.
9450 (call_function_by_hand_dummy): Adjust to use the function type
9451 returned by find_function_addr.
9452 (find_function_addr): Add 'function_type' parameter and move
9453 description here.
9454 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9455 declarations.
9456
a376e11d
PA
94572018-04-26 Pedro Alves <palves@redhat.com>
9458
9459 * c-exp.y (variable production): Skip finding an alias for ifunc
9460 symbols.
9461
02e169e2
PA
94622018-04-26 Pedro Alves <palves@redhat.com>
9463
9464 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9465
249b5733
PA
94662018-04-25 Pedro Alves <palves@redhat.com>
9467
9468 * infcmd.c (kill_command): Print the pid as string, not the whole
9469 thread's ptid. Add comment. s/has been killed/killed/ in output
9470 message.
9471 * remote.c (remote_detach_1): Print the pid as string, not the
9472 whole thread's ptid.
9473
f67c0c91
SDJ
94742018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9475 Sergio Durigan Junior <sergiodj@redhat.com>
9476 Pedro Alves <palves@redhat.com>
9477
9478 * infcmd.c (kill_command): Print message when inferior has
9479 been killed.
9480 * inferior.c (print_inferior_events): Remove 'static'. Set as
9481 '1'.
9482 (add_inferior): Improve message printed when
9483 'print_inferior_events' is on.
9484 (exit_inferior): Remove message printed when
9485 'print_inferior_events' is on.
9486 (detach_inferior): Improve message printed when
9487 'print_inferior_events' is on.
9488 (initialize_inferiors): Use 'add_inferior_silent' to set
9489 'current_inferior_'.
9490 * inferior.h (print_inferior_events): Declare here as
9491 'extern'.
9492 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9493 '[Detaching...]' messages when 'print_inferior_events' is on.
9494 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9495 as prefix/suffix for messages. Remove periods. Fix erroneous
9496 'Detaching after fork from child...', replace it by '... from
9497 parent...'.
9498 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9499 prefix/suffix when printing 'Detaching...' messages. Print
9500 them when 'print_inferior_events' is on.
9501 * remote.c (remote_detach_1): Print message when detaching
9502 from inferior and '!is_fork_parent'.
9503
e427af18
TT
95042018-04-24 Tom Tromey <tom@tromey.com>
9505
9506 * cli-out.h: Reindent.
9507
05b1d8d6
TT
95082018-04-24 Tom Tromey <tom@tromey.com>
9509
9510 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9511 (cli_ui_out::do_field_string): Use fputs_filtered.
9512 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9513
a95c7dab
TT
95142018-04-23 Tom Tromey <tom@tromey.com>
9515
9516 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9517 gdb::unique_xmalloc_ptr.
9518
458412c3
TT
95192018-04-23 Tom Tromey <tom@tromey.com>
9520
9521 * configure: Rebuild.
9522
db86b02b
RS
95232018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9524
9525 PR gdb/23095
9526 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9527 prepare_for_testing. Set normal_bp to r_debug_state if target
9528 is bsd.
9529
00aecdcf
PA
95302018-04-21 Pedro Alves <palves@redhat.com>
9531 Rajendra SY <rajendra.sy@gmail.com>
9532
9533 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9534 * remote.c (extended_remote_attach): In all-stop mode, mark the
9535 thread as executing.
9536
224608c3
PW
95372018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9538
9539 * thread.c (thread_apply_all_command): Fix comment.
9540 (thread_command): Fix comment.
9541
3b74854b
AH
95422018-04-10 Alan Hayward <alan.hayward@arm.com>
9543
9544 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9545 parameter.
9546 * features/aarch64-core.c (create_feature_aarch64_core):
9547 Regenerate.
9548 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9549 Likewise.
9550 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9551 Likewise.
9552 * features/i386/32bit-avx512.c
9553 (create_feature_i386_32bit_avx512): Likewise.
9554 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9555 Likewise.
9556 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9557 Likewise.
9558 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9559 Likewise.
9560 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9561 Likewise.
9562 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9563 Likewise.
9564 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9565 Likewise.
9566 * features/i386/64bit-avx512.c
9567 (create_feature_i386_64bit_avx512): Likewise.
9568 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9569 Likewise.
9570 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9571 Likewise.
9572 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9573 Likewise.
9574 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9575 Likewise.
9576 * features/i386/64bit-segments.c
9577 (create_feature_i386_64bit_segments): Likewise.
9578 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9579 Likewise.
9580 * features/i386/x32-core.c
9581 (create_feature_i386_x32_core): Likewise.
9582 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9583 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9584 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9585 * target-descriptions.c: In generated code, don't pass xml
9586 filename.
9587
e98577a9
AH
95882018-04-18 Alan Hayward <alan.hayward@arm.com>
9589
9590 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9591 (print_xml_feature::visit_post): Likewise.
9592 (print_xml_feature::visit): Likewise.
9593 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9594 (print_xml_feature): Add new class.
9595 * regformats/regdat.sh: Null xmltarget on feature targets.
9596 * target-descriptions.c (struct target_desc): Add xmltarget.
9597 (maintenance_check_tdesc_xml_convert): Add unittest function.
9598 (tdesc_get_features_xml): Add function to get xml.
9599 (maintenance_check_xml_descriptions): Test xml generation.
9600 * xml-tdesc.c (string_read_description_xml): Add function.
9601 * xml-tdesc.h (string_read_description_xml): Add declaration.
9602
ad7fc756
AH
96032018-04-18 Alan Hayward <alan.hayward@arm.com>
9604
9605 * features/Makefile: Add feature marker to targets with new style
9606 target descriptions.
9607 * regformats/aarch64.dat: Regenerate.
9608 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9609 * regformats/i386/amd64-avx-linux.dat: Likewise.
9610 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9611 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9612 * regformats/i386/amd64-linux.dat: Likewise.
9613 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9614 * regformats/i386/amd64.dat: Likewise.
9615 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9616 * regformats/i386/i386-avx-linux.dat: Likewise.
9617 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9618 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9619 * regformats/i386/i386-linux.dat: Likewise.
9620 * regformats/i386/i386-mmx-linux.dat: Likewise.
9621 * regformats/i386/i386-mpx-linux.dat: Likewise.
9622 * regformats/i386/i386.dat: Likewise.
9623 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9624 * regformats/i386/x32-avx-linux.dat: Likewise.
9625 * regformats/i386/x32-linux.dat: Likewise.
9626 * regformats/tic6x-c62x-linux.dat: Likewise.
9627 * regformats/tic6x-c64x-linux.dat: Likewise.
9628 * regformats/tic6x-c64xp-linux.dat: Likewise.
9629 * regformats/regdat.sh: Parse feature marker.
9630
d278f585
AH
96312018-04-18 Alan Hayward <alan.hayward@arm.com>
9632
9633 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9634 (tdesc_osabi_name): Likewise.
9635 * target-descriptions.c (tdesc_architecture_name): Add new
9636 function.
9637 (tdesc_osabi_name): Likewise.
9638
eee8a18d
AH
96392018-04-18 Alan Hayward <alan.hayward@arm.com>
9640
9641 * common/tdesc.c (tdesc_predefined_type): Move to here.
9642 (tdesc_named_type): Likewise.
9643 (tdesc_create_vector): Likewise.
9644 (tdesc_create_struct): Likewise.
9645 (tdesc_set_struct_size): Likewise.
9646 (tdesc_create_union): Likewise.
9647 (tdesc_create_flags): Likewise.
9648 (tdesc_create_enum): Likewise.
9649 (tdesc_add_field): Likewise.
9650 (tdesc_add_typed_bitfield): Likewise.
9651 (tdesc_add_bitfield): Likewise.
9652 (tdesc_add_flag): Likewise.
9653 (tdesc_add_enum_value): Likewise.
9654 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9655 (struct tdesc_type_vector): Likewise.
9656 (struct tdesc_type_field): Likewise.
9657 (struct tdesc_type_with_fields): Likewise.
9658 (tdesc_create_enum): Add declaration.
9659 (tdesc_add_typed_bitfield): Likewise.
9660 (tdesc_add_enum_value): Likewise.
9661 * target-descriptions.c (tdesc_type_field): Move from here.
9662 (tdesc_type_builtin): Likewise.
9663 (tdesc_type_vector): Likewise.
9664 (tdesc_type_with_fields): Likewise.
9665 (tdesc_predefined_types): Likewise.
9666 (tdesc_named_type): Likewise.
9667 (tdesc_create_vector): Likewise.
9668 (tdesc_create_struct): Likewise.
9669 (tdesc_set_struct_size): Likewise.
9670 (tdesc_create_union): Likewise.
9671 (tdesc_create_flags): Likewise.
9672 (tdesc_create_enum): Likewise.
9673 (tdesc_add_field): Likewise.
9674 (tdesc_add_typed_bitfield): Likewise.
9675 (tdesc_add_bitfield): Likewise.
9676 (tdesc_add_flag): Likewise.
9677 (tdesc_add_enum_value): Likewise.
9678 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9679 (tdesc_add_typed_bitfield): Likewise.
9680 (tdesc_add_enum_value): Likewise.
9681
82ec9bc7
AH
96822018-04-18 Alan Hayward <alan.hayward@arm.com>
9683
9684 * common/tdesc.c (tdesc_feature::accept): Move to here.
9685 (tdesc_feature::operator==): Likewise.
9686 (tdesc_create_reg): Likewise.
9687 * common/tdesc.h (tdesc_type_kind): Likewise.
9688 (struct tdesc_type): Likewise.
9689 (struct tdesc_feature): Likewise.
9690 * regformats/regdat.sh: Create a feature.
9691 * target-descriptions.c (tdesc_type_kind): Move from here.
9692 (tdesc_type): Likewise.
9693 (tdesc_type_up): Likewise.
9694 (tdesc_feature): Likewise.
9695 (tdesc_create_reg): Likewise.
9696
ea3e7d71
AH
96972018-04-18 Alan Hayward <alan.hayward@arm.com>
9698
9699 * Makefile.in: Add arch/tdesc.c
9700 * common/tdesc.c: New file.
9701 * common/tdesc.h (tdesc_element_visitor): Move to here.
9702 (tdesc_element): Likewise.
9703 (tdesc_reg): Likewise.
9704 (tdesc_reg_up): Likewise.
9705 * regformats/regdef.h (reg): Add offset to constructors.
9706 * target-descriptions.c (tdesc_element_visitor): Move from here.
9707 (tdesc_element): Likewise.
9708 (tdesc_reg): Likewise.
9709 (tdesc_reg_up): Likewise.
9710
bedda9ac
TT
97112018-04-17 Tom Tromey <tom@tromey.com>
9712
9713 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9714 discriminant field.
9715
a037790e
TT
97162018-04-17 Tom Tromey <tom@tromey.com>
9717
9718 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9719
c7dcbf88
AA
97202018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9721
9722 * symtab.c (print_symbol_info): Skip printing filename and line
9723 number when `last' is NULL.
9724 (symtab_symbol_info): Use empty string instead of NULL for first
9725 invocation of print_symbol_info.
9726 (rbreak_command): Pass NULL to `last' parameter of
9727 print_symbol_info.
9728
07d28c77
SM
97292018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9730
9731 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9732 instead of nullptr.
9733
8a3de5e1
PA
97342018-04-16 Pedro Alves <palves@redhat.com>
9735
9736 * MAINTAINERS (sh): Remove.
9737 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9738 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9739 (ALLDEPFILES): Remove sh64-tdep.c.
9740 * NEWS: Mentions that support for SH-5/SH64 is removed.
9741 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9742 (sh*-*-openbsd*): Ditto.
9743 (sh64-*-elf*): Remove.
9744 (sh*): Remove.
9745 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9746 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9747 * sh-tdep.c: No longer include "sh64-tdep.h".
9748 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9749 * sh64-tdep.c, sh64-tdep.h: Remove files.
9750
a2a79012
PA
97512018-04-16 Pedro Alves <palves@redhat.com>
9752
9753 * MAINTAINERS: Remove m88k.
9754 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9755 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9756 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9757 * NEWS: Mention that support for m88k was removed.
9758 * configure.host (m88*-*-*): Remove support.
9759 * configure.nat (m88k-*-*): Remove support.
9760 * configure.tgt (m88*-*-openbsd*): Remove.
9761 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9762
eda4efb1
SM
97632018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9764
9765 * configure.tgt (x86_tobjs): New variable.
9766 (amd64_tobjs, i386_tobjs): Use it.
9767
b744723f
AA
97682018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9769
9770 * symtab.c (print_symbol_info): Precede the symbol definition by
9771 the line number when available.
9772 * NEWS: Advertise this enhancement.
9773
4a4495d6
MM
97742018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9775
9776 * NEWS (New options): announce set/show record btrace cpu.
9777 * btrace.c: Include record-btrace.h.
9778 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9779 the vendor is unknown.
9780 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9781 Maybe overwrite the btrace configuration's cpu.
9782 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9783 (btrace_fetch): Add cpu parameter. Update callers.
9784 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9785 Maybe overwrite the btrace configuration's cpu. Skip enabling
9786 errata workarounds if the vendor is unknown.
9787 * python/py-record-btrace.c: Include record-btrace.h.
9788 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9789 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9790 * record-btrace.c (record_btrace_cpu_state_kind): New.
9791 (record_btrace_cpu): New.
9792 (set_record_btrace_cpu_cmdlist): New.
9793 (record_btrace_get_cpu): New.
9794 (require_btrace_thread, record_btrace_info)
9795 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9796 (cmd_set_record_btrace_cpu_none): New.
9797 (cmd_set_record_btrace_cpu_auto): New.
9798 (cmd_set_record_btrace_cpu): New.
9799 (cmd_show_record_btrace_cpu): New.
9800 (_initialize_record_btrace): Initialize set/show record btrace cpu
9801 commands.
9802 * record-btrace.h (record_btrace_get_cpu): New.
9803
69f90c75
MM
98042018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9805
9806 * record.c (set_record_command): Fix typo in message.
9807
b85310e1
MM
98082018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9809
9810 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9811
1d509aa6
MM
98122018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9813
9814 * infrun.c (process_event_stop_test): Call
9815 gdbarch_in_indirect_branch_thunk.
9816 * gdbarch.sh (in_indirect_branch_thunk): New.
9817 * gdbarch.c: Regenerated.
9818 * gdbarch.h: Regenerated.
9819 * x86-tdep.h: New.
9820 * x86-tdep.c: New.
9821 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9822 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9823 (ALLDEPFILES): Add x86-tdep.c.
9824 * arch-utils.h (default_in_indirect_branch_thunk): New.
9825 * arch-utils.c (default_in_indirect_branch_thunk): New.
9826 * i386-tdep: Include x86-tdep.h.
9827 (i386_in_indirect_branch_thunk): New.
9828 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9829 function.
9830 * amd64-tdep: Include x86-tdep.h.
9831 (amd64_in_indirect_branch_thunk): New.
9832 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9833
b4be9bfd
JK
98342018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9835
9836 PR gdb/23053
9837 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9838 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9839 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9840 regression.
9841
53d7df28
TT
98422018-04-12 Tom Tromey <tom@tromey.com>
9843
9844 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9845 (rust_evaluate_subexp): Likewise.
9846
70b33f19
PA
98472018-04-12 Pedro Alves <palves@redhat.com>
9848
9849 * procfs.c (procfs_detach): Make forward declaration's prototype
9850 match definition's protototype.
9851 (proc_get_LDT_entry): Remove stale do_cleanups call.
9852
436411b1
PA
98532018-04-12 Pedro Alves <palves@redhat.com>
9854
9855 * target.h (target_ops::to_has_exited): Delete.
9856 (target_has_exited): Delete.
9857 * target-delegates.c: Regenerate.
9858
20db9c52
PA
98592018-04-11 Pedro Alves <palves@redhat.com>
9860
9861 * target.c (fileio_fh_t::t): Add comment.
9862 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9863 (target_fileio_close): Handle a NULL target.
9864 (invalidate_fileio_fh): New.
9865 (target_close): Call it.
9866 * remote.c (remote_hostio_send_command): No longer check whether
9867 remote_desc is open.
9868
5ff79300
PA
98692018-04-11 Pedro Alves <palves@redhat.com>
9870
9871 * target.c (fileio_fh_t): Make it a named struct instead of a
9872 typedef.
9873 (fileio_fh_t::is_closed): New method.
9874 (DEF_VEC_O (fileio_fh_t)): Remove.
9875 (fileio_fhandles): Now a std::vector.
9876 (is_closed_fileio_fh): Delete.
9877 (acquire_fileio_fd): Adjust. Rename parameters.
9878 (release_fileio_fd): Adjust.
9879 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9880 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9881 (target_fileio_close): Adjust.
9882
6e22e10d
SM
98832018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9884
9885 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9886 index.
9887
731f534f
PA
98882018-04-10 Pedro Alves <palves@redhat.com>
9889
9890 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9891 (scoped_finish_thread_state): New class.
9892 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9893 cleanup.
9894 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9895 (fetch_inferior_event, normal_stop): Likewise.
9896 * thread.c (finish_thread_state_cleanup): Delete.
9897
d5f4488f
SM
98982018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9899 Pedro Alves <palves@redhat.com>
9900
9901 * value.c: Include "selftest.h" and "common/array-view.h".
9902 (struct range) <operator ==>: New.
9903 (test_ranges_contain): New.
9904 (check_ranges_vector): New.
9905 (test_insert_into_bit_range_vector): New.
9906 (_initialize_values): Register selftests.
9907 * common/array-view.h (operator==, operator!=): New.
9908
b24531ed
SM
99092018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9910
9911 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9912 an iterator.
9913 * inline-frame.c: Include <algorithm>.
9914 (struct inline_state): Add constructor.
9915 (inline_state_s): Remove.
9916 (DEF_VEC_O(inline_state_s)): Remove.
9917 (inline_states): Change type to std::vector.
9918 (find_inline_frame_state): Adjust to std::vector.
9919 (allocate_inline_frame_state): Remove.
9920 (clear_inline_frame_state): Adjust to std::vector.
9921 (skip_inline_frames): Adjust to std::vector.
9922
c252925c
SM
99232018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9924
9925 * tracepoint.h (struct trace_state_variable): Add constructor.
9926 <name>: Change type to std::string.
9927 * tracepoint.c (tsv_s): Remove.
9928 (DEF_VEC_O(tsv_s)): Remove.
9929 (tvariables): Change to std::vector.
9930 (create_trace_state_variable): Adjust to std::vector.
9931 (find_trace_state_variable): Likewise.
9932 (find_trace_state_variable_by_number): Likewise.
9933 (delete_trace_state_variable): Likewise.
9934 (trace_variable_command): Adjust to std::string.
9935 (delete_trace_variable_command): Likewise.
9936 (tvariables_info_1): Adjust to std::vector.
9937 (save_trace_state_variables): Likewise.
9938 (start_tracing): Likewise.
9939 (merge_uploaded_trace_state_variables): Adjust to std::vector
9940 and std::string.
9941 * target.h (struct target_ops)
9942 <to_download_trace_state_variable>: Pass reference to
9943 trace_state_variable.
9944 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9945 * target-delegates.c: Re-generate.
9946 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9947 (mi_tsv_deleted): Likewise.
9948 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9949 * remote.c (remote_download_trace_state_variable): Change
9950 pointer to reference and adjust.
9951 * make-target-delegates (parse_argtypes): Handle references.
9952 (write_function_header): Likewise.
9953 (munge_type): Likewise.
9954
c9638d26
SM
99552018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9956
9957 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9958 string_view-selftests.c.
9959 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9960 testsuite.
9961 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9962 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9963 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9964 * unittests/basic_string_view/element_access/char/1.cc:
9965 Likewise.
9966 * unittests/basic_string_view/element_access/char/empty.cc:
9967 Likewise.
9968 * unittests/basic_string_view/element_access/char/front_back.cc:
9969 Likewise.
9970 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9971 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9972 Likewise.
9973 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9974 Likewise.
9975 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9976 Likewise.
9977 * unittests/basic_string_view/operations/compare/char/1.cc:
9978 Likewise.
9979 * unittests/basic_string_view/operations/compare/char/13650.cc:
9980 Likewise.
9981 * unittests/basic_string_view/operations/copy/char/1.cc:
9982 Likewise.
9983 * unittests/basic_string_view/operations/data/char/1.cc:
9984 Likewise.
9985 * unittests/basic_string_view/operations/find/char/1.cc:
9986 Likewise.
9987 * unittests/basic_string_view/operations/find/char/2.cc:
9988 Likewise.
9989 * unittests/basic_string_view/operations/find/char/3.cc:
9990 Likewise.
9991 * unittests/basic_string_view/operations/find/char/4.cc:
9992 Likewise.
9993 * unittests/basic_string_view/operations/rfind/char/1.cc:
9994 Likewise.
9995 * unittests/basic_string_view/operations/rfind/char/2.cc:
9996 Likewise.
9997 * unittests/basic_string_view/operations/rfind/char/3.cc:
9998 Likewise.
9999 * unittests/basic_string_view/operations/substr/char/1.cc:
10000 Likewise.
10001 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10002 * unittests/string_view-selftests.c: New file.
10003
fdc11678
SM
100042018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10005
10006 * unittests/basic_string_view/capacity/1.cc: New file.
10007 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10008 * unittests/basic_string_view/cons/char/1.cc: New file.
10009 * unittests/basic_string_view/cons/char/2.cc: New file.
10010 * unittests/basic_string_view/cons/char/3.cc: New file.
10011 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10012 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10013 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10014 * unittests/basic_string_view/element_access/char/1.cc: New file.
10015 * unittests/basic_string_view/element_access/char/2.cc: New file.
10016 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10017 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10018 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10019 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10020 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10021 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10022 * unittests/basic_string_view/include.cc: New file.
10023 * unittests/basic_string_view/inserters/char/1.cc: New file.
10024 * unittests/basic_string_view/inserters/char/2.cc: New file.
10025 * unittests/basic_string_view/inserters/char/3.cc: New file.
10026 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10027 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10028 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10029 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10030 * unittests/basic_string_view/literals/types.cc: New file.
10031 * unittests/basic_string_view/literals/values.cc: New file.
10032 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10033 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10034 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10035 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10036 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10037 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10038 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10039 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10040 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10041 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10042 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10043 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10044 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10045 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10046 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10047 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10048 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10049 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10050 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10051 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10052 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10053 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10054 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10055 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10056 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10057 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10058 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10059 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10060 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10061 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10062 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10063 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10064 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10065 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10066 * unittests/basic_string_view/operators/char/2.cc: New file.
10067 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10068 * unittests/basic_string_view/range_access/char/1.cc: New file.
10069 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10070 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10071 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10072 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10073 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10074 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10075 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10076 * unittests/basic_string_view/typedefs.cc: New file.
10077 * unittests/basic_string_view/types/1.cc: New file.
10078
8345c4a2
SM
100792018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10080
10081 * common/gdb_string_view.h: Remove libstdc++ implementation
10082 details, adjust to gdb reality.
10083 * common/gdb_string_view.tcc: Likewise.
10084 * cli/cli-script.c (struct string_view): Remove.
10085 (user_args) <m_args>: Change element type to gdb::string_view.
10086 (user_args::insert_args): Adjust.
10087
7adcdf08
SM
100882018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10089
10090 * common/gdb_string_view.h: New file.
10091 * common/gdb_string_view.tcc: New file.
10092
41260ac2
SM
100932018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10094
10095 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10096 * configure: Re-generate.
10097
0bee6dd4
PA
100982018-04-09 Pedro Alves <palves@redhat.com>
10099
10100 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10101 (set_target_gdbarch): Call
10102 gdb::observers::architecture_changed.notify instead of
10103 observer_notify_architecture_changed.
10104
6f14adc5
SM
101052018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10106
10107 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10108 (do_restore_current_traceframe_cleanup): Remove.
10109 (restore_current_traceframe_cleanup_dtor): Remove.
10110 (make_cleanup_restore_current_traceframe): Remove.
10111 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10112 New.
10113 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10114 * infrun.c (fetch_inferior_event): Use
10115 scoped_restore_current_traceframe.
10116
b2bdb8cf
SM
101172018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10118
10119 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10120 Remove.
10121 <n_allocated_type_units>: Remove.
10122 <all_type_units>: Change to std::vector.
10123 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10124 to std::vector change.
10125 (dwarf2_per_objfile::get_cutu): Likewise.
10126 (dwarf2_per_objfile::get_tu): Likewise.
10127 (create_signatured_type_table_from_index): Likewise.
10128 (create_signatured_type_table_from_debug_names): Likewise.
10129 (dw2_symtab_iter_next): Likewise.
10130 (dw2_print_stats): Likewise.
10131 (dw2_expand_all_symtabs): Likewise.
10132 (dw2_expand_marked_cus): Likewise.
10133 (dw2_debug_names_iterator::next): Likewise.
10134 (dwarf2_initialize_objfile): Likewise.
10135 (add_signatured_type_cu_to_table): Likewise.
10136 (create_all_type_units): Likewise.
10137 (add_type_unit): Likewise.
10138 (struct tu_abbrev_offset): Add constructor.
10139 (build_type_psymtabs_1): Adjust to std::vector change.
10140 (print_tu_stats): Likewise.
10141 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10142 (write_debug_names): Likewise.
10143
b76e467d
SM
101442018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10145
10146 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10147 Make an std::vector.
10148 <n_comp_units>: Remove.
10149 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10150 to std::vector change.
10151 (dwarf2_per_objfile::get_cutu): Likewise.
10152 (dwarf2_per_objfile::get_cu): Likewise.
10153 (create_cus_from_index): Likewise.
10154 (create_addrmap_from_index): Likewise.
10155 (create_addrmap_from_aranges): Likewise.
10156 (dwarf2_read_index): Likewise.
10157 (dw2_find_last_source_symtab): Likewise.
10158 (dw2_map_symtabs_matching_filename): Likewise.
10159 (dw2_symtab_iter_next): Likewise.
10160 (dw2_print_stats): Likewise.
10161 (dw2_expand_all_symtabs): Likewise.
10162 (dw2_expand_symtabs_with_fullname): Likewise.
10163 (dw2_expand_marked_cus): Likewise.
10164 (dw2_map_symbol_filenames): Likewise.
10165 (create_cus_from_debug_names): Likewise.
10166 (dwarf2_read_debug_names): Likewise.
10167 (dw2_debug_names_iterator::next): Likewise.
10168 (dwarf2_initialize_objfile): Likewise.
10169 (set_partial_user): Likewise.
10170 (dwarf2_build_psymtabs_hard): Likewise.
10171 (read_comp_units_from_section): Remove arguments, adjust to
10172 std::vector change.
10173 (create_all_comp_units): Adjust to std::vector and
10174 read_comp_units_from_section changes.
10175 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10176 change.
10177 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10178 (psyms_seen_size): Likewise.
10179 (write_gdbindex): Likewise.
10180 (write_debug_names): Likewise.
10181
12359b5e
SM
101822018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10183
10184 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10185 with dwarf2_per_objfile.
10186 (create_cus_from_index): Likewise.
10187 (create_signatured_type_table_from_index): Likewise.
10188 (dwarf2_read_index): Likewise.
10189 (dwarf2_initialize_objfile): Likewise.
10190 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10191 per_cu rather than get_dwarf2_per_objfile.
10192
ff4c9fec
SM
101932018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10194
10195 * dwarf2read.h (struct signatured_type): Forward declare.
10196 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10197 New methods.
10198 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10199 (dw2_get_cutu): ...this.
10200 (dwarf2_per_objfile::get_cu): Rename from...
10201 (dw2_get_cu): ...this.
10202 (dwarf2_per_objfile::get_tu): New.
10203 (create_addrmap_from_index): Adjust.
10204 (create_addrmap_from_aranges): Adjust.
10205 (dw2_find_last_source_symtab): Adjust.
10206 (dw2_map_symtabs_matching_filename): Adjust.
10207 (dw2_symtab_iter_next): Adjust.
10208 (dw2_print_stats): Adjust.
10209 (dw2_expand_all_symtabs): Adjust.
10210 (dw2_expand_symtabs_with_fullname): Adjust.
10211 (dw2_expand_marked_cus): Adjust.
10212 (dw_expand_symtabs_matching_file_matcher): Adjust.
10213 (dw2_map_symbol_filenames): Adjust.
10214 (dw2_debug_names_iterator::next): Adjust.
10215 (dwarf2_initialize_objfile): Adjust.
10216 (set_partial_user): Adjust.
10217 (dwarf2_build_psymtabs_hard): Adjust.
10218
5ca3fcb6
SM
102192018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10220
10221 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10222 Remove unused variables.
10223 (dw2_map_symtabs_matching_filename): Likewise.
10224 (dwarf2_record_block_ranges): Likewise.
10225 (dwarf2_read_addr_index): Likewise.
10226 (follow_die_offset): Likewise.
10227
b2e586e8
SM
102282018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10229
10230 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10231 to symbol_file_add_main.
10232
7c4e78cf
SM
102332018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10234
10235 PR mi/22299
10236 * mi/mi-console.c (do_fputc_async_safe): New.
10237 (mi_console_file::write_async_safe): New.
10238 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10239 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10240 New.
10241 * ui-file.c (ui_file::putstrn): Adjust call to
10242 fputstrn_unfiltered.
10243 * utils.c (printchar): Replace do_fputs and do_fprintf
10244 parameters by do_fputc.
10245 (fputstr_filtered): Adjust call to printchar.
10246 (fputstr_unfiltered): Likewise.
10247 (fputstrn_filtered): Likewise.
10248 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10249 printchar.
10250 * utils.h (do_fputc_ftype): New typedef.
10251 (fputstrn_unfiltered): Add do_fputc parameter.
10252
5dc026d3
SM
102532018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10254
10255 * regformats/i386/i386-avx.dat: Remove.
10256
c912f608
SM
102572018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10258
10259 PR gdb/22979
10260 * amd64-tdep.c (amd64_none_init_abi): New function.
10261 (amd64_x32_none_init_abi): New function.
10262 (_initialize_amd64_tdep): Register handlers for x86-64 and
10263 x64_32 with GDB_OSABI_NONE.
10264 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10265 GDB_OSABI_NONE osabi.
10266
26540402
SM
102672018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10268
10269 PR gdb/22980
10270 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10271 GDB_OSABI_NONE.
10272 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10273 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10274
9018be22
SM
102752018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10276
10277 * common/byte-vector.h (char_vector): New type.
10278 * target.h (target_read_alloc): Return
10279 gdb::optional<byte_vector>.
10280 (target_read_stralloc): Return gdb::optional<char_vector>.
10281 (target_get_osdata): Return gdb::optional<char_vector>.
10282 * target.c (target_read_alloc_1): Templatize. Replacement
10283 manual memory management with vector.
10284 (target_read_alloc): Change return type, adjust.
10285 (target_read_stralloc): Change return type, adjust.
10286 (target_get_osdata): Change return type, adjust.
10287 * auxv.c (struct auxv_info) <length>: Remove.
10288 <data>: Change type to gdb::optional<byte_vector>.
10289 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10290 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10291 (target_auxv_search): Adjust.
10292 (fprint_target_auxv): Adjust.
10293 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10294 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10295 (linux_make_corefile_notes): Adjust.
10296 * osdata.c (get_osdata): Adjust.
10297 * remote.c (remote_get_threads_with_qxfer): Adjust.
10298 (remote_memory_map): Adjust.
10299 (remote_traceframe_info): Adjust.
10300 (btrace_read_config): Adjust.
10301 (remote_read_btrace): Adjust.
10302 (remote_pid_to_exec_file): Adjust.
10303 * solib-aix.c (solib_aix_get_library_list): Adjust.
10304 * solib-dsbt.c (decode_loadmap): Don't free buf.
10305 (dsbt_get_initial_loadmaps): Adjust.
10306 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10307 * solib-target.c (solib_target_current_sos): Adjust.
10308 * tracepoint.c (sdata_make_value): Adjust.
10309 * xml-support.c (xinclude_start_include): Adjust.
10310 (xml_fetch_content_from_file): Adjust.
10311 * xml-support.h (xml_fetch_another): Change return type.
10312 (xml_fetch_content_from_file): Change return type.
10313 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10314 * xml-tdesc.c (file_read_description_xml): Adjust.
10315 (fetch_available_features_from_target): Change return type.
10316 (target_fetch_description_xml): Adjust.
10317 (target_read_description_xml): Adjust.
10318
14c88955
TT
103192018-04-06 Tom Tromey <tom@tromey.com>
10320
10321 * value.c (~value): Update.
10322 (struct value) <contents>: Now unique_xmalloc_ptr.
10323 (value_contents_bits_eq, allocate_value_contents)
10324 (value_contents_raw, value_contents_all_raw)
10325 (value_contents_for_printing, value_contents_for_printing_const)
10326 (set_value_enclosing_type): Update.
10327
0c7e6dd8
TT
103282018-04-06 Tom Tromey <tom@tromey.com>
10329
10330 * value.c (range_s): Remove typedef, VEC.
10331 (struct range): Add operator<.
10332 (range_lessthan): Remove.
10333 (ranges_contain): Change type.
10334 (~value): Update.
10335 (struct value) <unavailable, optimized_out>: Now std::vector.
10336 (value_entirely_available)
10337 (value_entirely_covered_by_range_vector)
10338 (value_entirely_unavailable, value_entirely_optimized_out):
10339 Update.
10340 (insert_into_bit_range_vector): Change argument type.
10341 (find_first_range_overlap): Likewise.
10342 (struct ranges_and_idx, value_contents_bits_eq)
10343 (require_not_optimized_out, require_available): Update.
10344 (ranges_copy_adjusted): Change argument types.
10345 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10346
2c8331b9
TT
103472018-04-06 Tom Tromey <tom@tromey.com>
10348
10349 * value.c (~value): Update.
10350 (struct value) <parent>: Now a value_ref_ptr.
10351 (value_parent, set_value_parent, value_address, value_copy):
10352 Update.
10353
466ce3ae
TT
103542018-04-06 Tom Tromey <tom@tromey.com>
10355
10356 * value.c (struct value): Add constructor, destructor, and member
10357 initializers.
10358 (allocate_value_lazy, value_decref): Update.
10359
062d818d
TT
103602018-04-06 Tom Tromey <tom@tromey.com>
10361
10362 * value.c (struct value) <released, next>: Remove.
10363 (all_values): Now a std::vector.
10364 (allocate_value_lazy): Update.
10365 (value_next): Remove.
10366 (value_mark, value_free_to_mark, release_value)
10367 (value_release_to_mark): Update.
10368
a6535de1
TT
103692018-04-06 Tom Tromey <tom@tromey.com>
10370
10371 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10372 (free_value_chain): Remove.
10373 * value.c (free_value_chain): Remove.
10374 (value_release_to_mark): Return a std::vector.
10375 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10376 std::vector.
10377 (check_condition): Update.
10378 * eval.c (fetch_subexp_value): Change "val_chain" to a
10379 std::vector.
10380 * breakpoint.c (update_watchpoint): Update.
10381 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10382
b5621201
TT
103832018-04-06 Tom Tromey <tom@tromey.com>
10384
10385 * value.h (free_all_values): Remove.
10386 * value.c (free_all_values): Remove.
10387
4d0266a0
TT
103882018-04-06 Tom Tromey <tom@tromey.com>
10389
10390 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10391 (value_history_chain, value_history_count): Remove.
10392 (value_history): New global.
10393 (record_latest_value, access_value_history, show_values)
10394 (preserve_values): Update.
10395
b4d61099
TT
103962018-04-06 Tom Tromey <tom@tromey.com>
10397
10398 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10399 * varobj.c (varobj_set_display_format, varobj_set_value)
10400 (install_default_visualizer, construct_visualizer)
10401 (install_new_value, ~varobj, varobj_get_value_type)
10402 (my_value_of_variable, varobj_editable_p): Update.
10403 * c-varobj.c (c_describe_child, c_value_of_variable)
10404 (cplus_number_of_children, cplus_describe_child): Update.
10405 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10406 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10407 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10408
9b558729
TT
104092018-04-06 Tom Tromey <tom@tromey.com>
10410
10411 * printcmd.c (last_examine_address): Change type to
10412 value_ref_ptr.
10413 (do_examine, x_command): Update.
10414
850645cf
TT
104152018-04-06 Tom Tromey <tom@tromey.com>
10416
10417 * value.c (release_value): Update.
10418 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10419 (struct bpstats) <val>: Now a value_ref_ptr.
10420 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10421 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10422 (~watchpoint, print_it_watchpoint, watch_command_1)
10423 (invalidate_bp_value_on_memory_change): Update.
10424
22bc8444
TT
104252018-04-06 Tom Tromey <tom@tromey.com>
10426
10427 * varobj.c (varobj_clear_saved_item)
10428 (update_dynamic_varobj_children, install_new_value, ~varobj):
10429 Update.
10430 * value.h (value_incref): Move declaration earlier.
10431 (value_decref): Rename from value_free.
10432 (struct value_ref_policy): New.
10433 (value_ref_ptr): New typedef.
10434 (struct value_deleter): Remove.
10435 (gdb_value_up): Remove typedef.
10436 (release_value): Change return type.
10437 (release_value_or_incref): Remove.
10438 * value.c (set_value_parent): Update.
10439 (value_incref): Change return type.
10440 (value_decref): Rename from value_free.
10441 (value_free_to_mark, free_all_values, free_value_chain): Update.
10442 (release_value): Return value_ref_ptr.
10443 (release_value_or_incref): Remove.
10444 (record_latest_value, set_internalvar, clear_internalvar):
10445 Update.
10446 * stack.c (info_frame_command): Don't call value_free.
10447 * python/py-value.c (valpy_dealloc, valpy_new)
10448 (value_to_value_object): Update.
10449 * printcmd.c (do_examine): Update.
10450 * opencl-lang.c (lval_func_free_closure): Update.
10451 * mi/mi-main.c (register_changed_p): Don't call value_free.
10452 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10453 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10454 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10455 value_free.
10456 * guile/scm-value.c (vlscm_free_value_smob)
10457 (vlscm_scm_from_value): Update.
10458 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10459 (frame_unwind_register_unsigned, get_frame_register_bytes)
10460 (put_frame_register_bytes): Don't call value_free.
10461 * findvar.c (address_from_register): Don't call value_free.
10462 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10463 * dwarf2loc.c (entry_data_value_free_closure)
10464 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10465 (dwarf2_evaluate_loc_desc_full): Update.
10466 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10467 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10468 (~watchpoint, watch_command_1)
10469 (invalidate_bp_value_on_memory_change): Update.
10470 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10471
7f8a5d38
SM
104722018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10473
10474 PR gdb/23022
10475 * warning.m4: Add -Wno-error=deprecated-register.
10476 * configure: Re-generate.
10477
8a76bd3b
TT
104782018-04-05 Tom Tromey <tom@tromey.com>
10479
10480 * linespec.h: Remove include of "vec.h".
10481
8e8d776e
TT
104822018-04-05 Tom Tromey <tom@tromey.com>
10483
10484 * linespec.c (typep): Remove typedef.
10485 (find_methods, find_superclass_methods): Take a std::vector.
10486 (find_method): Use std::vector.
10487
9b2f8581
TT
104882018-04-05 Tom Tromey <tom@tromey.com>
10489
10490 * utils.c (compare_strings): Remove.
10491 * utils.h (compare_strings): Remove.
10492 * objc-lang.h (find_imps): Update.
10493 * objc-lang.c (find_methods): Take a std::vector.
10494 (uniquify_strings, find_imps): Likewise.
10495 * linespec.c (find_methods): Take a std::vector.
10496 (decode_objc): Use std::vector.
10497 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10498 a std::vector.
10499 (find_method, find_function_symbols): Use std::vector.
10500
459a2e4c
TT
105012018-04-05 Tom Tromey <tom@tromey.com>
10502
10503 * completer.c (completion_tracker::completion_tracker): Remove
10504 cast.
10505 (completion_tracker::discard_completions): Likewise.
10506 * breakpoint.c (ambiguous_names_p): Remove cast.
10507 * ada-lang.c (_initialize_ada_language): Remove cast.
10508 * utils.h (streq): Update.
10509 (streq_hash): Add new declaration.
10510 * utils.c (streq): Return bool.
10511 (streq_hash): New function.
10512
9be2c17a
TT
105132018-04-05 Tom Tromey <tom@tromey.com>
10514
10515 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10516 Remove a string copy.
10517
f73c6ece
TT
105182018-04-05 Tom Tromey <tom@tromey.com>
10519
10520 * linespec.c (filter_results): Use std::vector.
10521 (decode_line_2, decode_line_full): Update.
10522
53a0f8a2
TT
105232018-04-05 Tom Tromey <tom@tromey.com>
10524
10525 * linespec.c (canonical_to_fullform): Return std::string.
10526 (filter_results): Update.
10527 (struct decode_line_2_item): Add constructor.
10528 <fullform, displayform>: Now std::string.
10529 (decode_line_2_compare_items): Now a std::sort comparator.
10530 (decode_line_2): Update.
10531
a5b5adf5
TT
105322018-04-05 Tom Tromey <tom@tromey.com>
10533
10534 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10535 (unexpected_linespec_error): Update.
10536 (linespec_parse_basic, parse_linespec): Update.
10537
6a307fc5
TT
105382018-04-05 Tom Tromey <tom@tromey.com>
10539
10540 * linespec.c (linespec_parse_basic): Reindent.
10541
41c1efc6
TT
105422018-04-05 Tom Tromey <tom@tromey.com>
10543
10544 * minsyms.h (iterate_over_minimal_symbols): Update.
10545 * minsyms.c (iterate_over_minimal_symbols): Take a
10546 gdb::function_view.
10547 * linespec.c (struct collect_minsyms): Remove.
10548 (compare_msyms): Now a std::sort comparator.
10549 (add_minsym): Add parameters.
10550 (search_minsyms_for_name): Update. Use std::vector.
10551
c5edbf3d
TT
105522018-04-03 Tom Tromey <tom@tromey.com>
10553
10554 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10555 gdb::byte_vector.
10556
b39efc48
WP
105572018-04-02 Weimin Pan <weimin.pan@oracle.com>
10558
10559 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10560
121ad66c 105612018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
10562
10563 PR gdb/16959
10564 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10565 printing static type.
10566
09473be8
TT
105672018-04-01 Tom Tromey <tom@tromey.com>
10568
10569 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10570 (rs6000_xfer_shared_libraries): Update.
10571
ec1f2d91
SM
105722018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10573
10574 * common/gdb_vecs.h (char_ptr): Remove.
10575 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10576
d8611974
SM
105772018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10578
10579 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10580 with std::vector.
10581 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10582
a18ba4e4
SM
105832018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10584
10585 * tracepoint.h (struct uploaded_tp): Initialize fields.
10586 <actions, step_actions, cmd_strings>: Change type to
10587 std::vector<char *>.
10588 * tracepoint.c (get_uploaded_tp): Allocate with new.
10589 (free_uploaded_tps): Free with delete.
10590 (parse_tracepoint_definition): Adjust to std::vector change.
10591 * breakpoint.c (read_uploaded_action): Likewise.
10592 (create_tracepoint_from_upload): Likewise.
10593 * ctf.c (ctf_write_uploaded_tp): Likewise.
10594 (SET_ARRAY_FIELD): Likewise.
10595 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10596
a7961323
TT
105972018-03-30 Tom Tromey <tom@tromey.com>
10598
10599 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10600 std::unique_ptr.
10601 (svr4_keep_data_in_core): Update.
10602 (svr4_read_so_list): Update.
10603
e83e4e24
TT
106042018-03-30 Tom Tromey <tom@tromey.com>
10605
10606 * windows-nat.c (handle_output_debug_string, handle_exception):
10607 Update.
10608 * target.h (target_read_string): Update.
10609 * target.c (target_read_string): Change "string" to
10610 unique_xmalloc_ptr.
10611 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10612 Update.
10613 * solib-frv.c (frv_current_sos): Update.
10614 * solib-dsbt.c (dsbt_current_sos): Update.
10615 * solib-darwin.c (darwin_current_sos): Update.
10616 * linux-thread-db.c (inferior_has_bug): Update.
10617 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10618 Update. Remove alloca.
10619 * ada-lang.c (ada_main_name): Update.
10620
263db9a1
TT
106212018-03-30 Tom Tromey <tom@tromey.com>
10622
10623 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10624 (struct dwo_file_deleter): New.
10625 (dwo_file_up): New typedef.
10626 (open_and_init_dwo_file): Use dwo_file_up.
10627 (free_dwo_file_cleanup): Remove.
10628
5dafb3d1
TT
106292018-03-30 Tom Tromey <tom@tromey.com>
10630
10631 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10632 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10633
11ed8cad
TT
106342018-03-30 Tom Tromey <tom@tromey.com>
10635
10636 * dwarf2read.c (class free_cached_comp_units): New class.
10637 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10638 (free_cached_comp_units): Remove function.
10639
9ae79dac
TT
106402018-03-30 Tom Tromey <tom@tromey.com>
10641
10642 * utils.h (make_cleanup_unpush_target): Remove.
10643 * inf-ptrace.c (struct target_unpusher): New.
10644 (target_unpush_up) New typedef.
10645 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10646 target_unpush_up.
10647 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10648
5aa89276
TT
106492018-03-27 Tom Tromey <tom@tromey.com>
10650
10651 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10652
1dbeed45
TT
106532018-03-27 Pedro Alves <palves@redhat.com>
10654 Tom Tromey <tom@tromey.com>
10655
10656 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10657 destructor. Now a class.
10658 (gdb_readline_wrapper_cleanup): Remove function.
10659 (gdb_readline_wrapper): Remove cleanups.
10660
c819b2c0
TT
106612018-03-27 Tom Tromey <tom@tromey.com>
10662
10663 * typeprint.h (struct type_print_options) <local_typedefs,
10664 global_typedefs>: Remove "struct" keyword.
10665 (class typedef_hash_table): New class.
10666 (recursively_update_typedef_hash, add_template_parameters)
10667 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10668 (find_typedef_in_hash): Don't declare.
10669 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10670 (typedef_hash_table::recursively_update): Rename from
10671 recursively_update_typedef_hash. Now a member.
10672 (typedef_hash_table::add_template_parameters): Rename from
10673 add_template_parameters. Now a member.
10674 (typedef_hash_table::typedef_hash_table): Now a constructor;
10675 rename from create_typedef_hash.
10676 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10677 rename from free_typedef_hash.
10678 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10679 (do_free_global_table): Remove.
10680 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10681 from copy_type_recursive.
10682 (create_global_typedef_table): Remove.
10683 (typedef_hash_table::find_global_typedef): Now a member of
10684 typedef_hash_table.
10685 (typedef_hash_table::find_typedef): Rename from
10686 find_typedef_in_hash; now a member.
10687 (whatis_exp): Update.
10688 * extension.h (struct ext_lang_type_printers): Add constructor and
10689 destructor.
10690 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10691 declare.
10692 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10693 Now a constructor; rename from start_ext_lang_type_printers.
10694 (ext_lang_type_printers): Now a destructor; rename from
10695 free_ext_lang_type_printers.
10696 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10697 Update.
10698 (c_type_print_base_struct_union): Update. Remove cleanups.
10699
608219fb
TT
107002018-03-27 Tom Tromey <tom@tromey.com>
10701
10702 * dwarf-index-write.c: Include <cmath>.
10703
3fcded8f
JB
107042018-03-27 Joel Brobecker <brobecker@adacore.com>
10705
10706 * NEWS: Add entry describing new "set|show varsize-limit" command.
10707 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10708 command.
10709 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10710 "set variable".
10711
cd4fb1b2
SM
107122018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10713
10714 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10715 dwarf-index-write.c
10716 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10717 * dwarf-index-common.c: New file.
10718 * dwarf-index-common.h: New file.
10719 * dwarf-index-write.c: New file.
10720 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10721 (struct dwarf2_section_info): Move from here.
10722 (dwarf2_section_info_def): Likewise.
10723 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10724 (offset_type): Likewise.
10725 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10726 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10727 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10728 (byte_swap): Likewise.
10729 (MAYBE_SWAP): Likewise.
10730 (dwarf2_per_cu_ptr): Likewise.
10731 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10732 (struct tu_stats): Likewise.
10733 (struct dwarf2_per_objfile): Likewise.
10734 (struct dwarf2_per_cu_data): Likewise.
10735 (struct signatured_type): Likewise.
10736 (sig_type_ptr): Likewise.
10737 (DEF_VEC_P (sig_type_ptr)): Likewise.
10738 (INDEX4_SUFFIX): Likewise.
10739 (INDEX5_SUFFIX): Likewise.
10740 (DEBUG_STR_SUFFIX): Likewise.
10741 (dwarf2_read_section): Make non-static.
10742 (mapped_index_string_hash): Move from here.
10743 (dwarf5_djb_hash): Likewise.
10744 (file_write): Likewise.
10745 (class data_buf): Likewise.
10746 (struct symtab_index_entry): Likewise.
10747 (struct mapped_symtab): Likewise.
10748 (find_slot): Likewise.
10749 (hash_expand): Likewise.
10750 (add_index_entry): Likewise.
10751 (uniquify_cu_indices): Likewise.
10752 (class c_str_view): Likewise.
10753 (class c_str_view_hasher): Likewise.
10754 (class vector_hasher): Likewise.
10755 (write_hash_table): Likewise.
10756 (psym_index_map): Likewise.
10757 (struct addrmap_index_data): Likewise.
10758 (add_address_entry): Likewise.
10759 (add_address_entry_worker): Likewise.
10760 (write_address_map): Likewise.
10761 (symbol_kind): Likewise.
10762 (write_psymbols): Likewise.
10763 (struct signatured_type_index_data): Likewise.
10764 (write_one_signatured_type): Likewise.
10765 (recursively_count_psymbols): Likewise.
10766 (recursively_write_psymbols): Likewise.
10767 (class debug_names): Likewise.
10768 (check_dwarf64_offsets): Likewise.
10769 (psyms_seen_size): Likewise.
10770 (write_gdbindex): Likewise.
10771 (write_debug_names): Likewise.
10772 (assert_file_size): Likewise.
10773 (write_psymtabs_to_index): Likewise.
10774 (save_gdb_index_command): Likewise.
10775 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10776 command.
10777 * dwarf2read.h: New file.
10778
59cc4834
JB
107792018-03-27 Joel Brobecker <brobecker@adacore.com>
10780
10781 PR gdb/22670
10782 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10783 symbol name if the CU's language stores symbol names in linkage
10784 format.
10785 * language.h (struct language_defn)
10786 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10787 all instances of this struct.
10788
67501539
TT
107892018-03-26 Tom Tromey <tom@tromey.com>
10790
10791 * stack.c (backtrace_command_1): Remove verbose code.
10792
76c939ac
TT
107932018-03-26 Tom Tromey <tom@tromey.com>
10794
10795 * python/py-framefilter.c (py_print_type): Don't catch
10796 exceptions. Return void.
10797 (py_print_value): Likewise.
10798 (py_print_single_arg): Likewise.
10799 (enumerate_args): Don't catch exceptions.
10800 (py_print_args): Likewise.
10801 (py_print_frame): Likewise.
10802 (gdbpy_apply_frame_filter): Catch exceptions here.
10803
9507b29c
TT
108042018-03-26 Tom Tromey <tom@tromey.com>
10805
10806 * stack.c (_initialize_stack): Remove trailing newlines from help
10807 text. Add "Usage" line to "backtrace" help.
10808
eb68e487
TT
108092018-03-26 Tom Tromey <tom@tromey.com>
10810
10811 PR python/16486:
10812 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10813
1f111921
TT
108142018-03-26 Tom Tromey <tom@tromey.com>
10815
10816 * python/py-framefilter.c (py_print_single_arg): Return
10817 EXT_LANG_BT_ERROR from catch.
10818
fb7eb8b5
TT
108192018-03-26 Tom Tromey <tom@tromey.com>
10820
10821 PR backtrace/15584:
10822 * stack.c (backtrace_command_1): Move some code into no-filters
10823 "if".
10824
4ca59a9f
TT
108252018-03-26 Tom Tromey <tom@tromey.com>
10826
10827 * python/py-framefilter.c (throw_quit_or_print_exception): New
10828 function.
10829 (gdbpy_apply_frame_filter): Use it.
10830
92256134
TT
108312018-03-26 Tom Tromey <tom@tromey.com>
10832
10833 PR cli/17716:
10834 * python/py-framefilter.c (py_print_type, py_print_value)
10835 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10836 RETURN_MASK_ERROR.
10837
7a630bc2
TT
108382018-03-26 Tom Tromey <tom@tromey.com>
10839
10840 * python/py-framefilter.c (enumerate_args): Use
10841 gdb::unique_xmalloc_ptr.
10842
63283d4a
TT
108432018-03-26 Tom Tromey <tom@tromey.com>
10844
10845 * python/py-framefilter.c (py_print_frame): Return
10846 EXT_LANG_BT_OK.
10847 (gdbpy_apply_frame_filter): Update comment.
10848 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10849 Remove.
10850 <EXT_LANG_BT_NO_FILTERS>: Change value.
10851
978d6c75
TT
108522018-03-26 Tom Tromey <tom@tromey.com>
10853
10854 PR backtrace/15582:
10855 * stack.c (backtrace_command): Parse "hide" argument.
10856 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10857 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10858 constant.
10859
1cf7e640
TT
108602018-03-26 Tom Tromey <tom@tromey.com>
10861
10862 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10863 add "flags".
10864 (backtrace_command): Remove "fulltrace", add "flags".
10865
ea3b0687
TT
108662018-03-26 Tom Tromey <tom@tromey.com>
10867
10868 * stack.c (backtrace_command): Rewrite command line parsing.
10869
9f034d75
SM
108702018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10871
10872 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10873
ce1459e5
SM
108742018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10875
10876 * filename-seen-cache.h: Add include guard.
10877
4f7ae6f5
KS
108782018-03-26 Keith Seitz <keiths@redhat.com>
10879
10880 * symfile.c (place_section): Remove "struct" from section_addr_info
10881 in comment.
10882 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10883 "struct" keyword from section_addr_info.
10884
5cd3e386
AH
108852018-03-26 Alan Hayward <alan.hayward@arm.com>
10886
10887 * regformats/regdef.h (reg): Add constructors.
10888
3e5ef9a4
PA
108892018-03-25 Pedro Alves <palves@redhat.com>
10890
10891 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10892 if then/else bodies in var_func_name extraction.
10893
c88d2fcc 108942018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
10895
10896 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10897 lookup_minimal_symbol() to find symbol entry.
10898 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10899
b7fee5a3
KS
109002018-03-23 Keith Seitz <keiths@redhat.com>
10901
10902 PR c++/22968
10903 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10904 nested type definitions for C++, too.
10905
2cc9b304
TT
109062018-03-23 Tom Tromey <tom@tromey.com>
10907
10908 * machoread.c (struct oso_el): Add a constructor. Don't define as
10909 a typedef.
10910 (macho_register_oso): Remove.
10911 (macho_symtab_read): Take a std::vector.
10912 (oso_el_compare_name): Now a std::sort comparator.
10913 (macho_symfile_read_all_oso): Take a std::vector.
10914 (macho_symfile_read): Use std::vector. Remove cleanups.
10915
a2b2bc12
TT
109162018-03-22 Tom Tromey <tom@tromey.com>
10917
10918 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10919 (record_full_goto_bookmark): Use std::string.
10920
7a8f494c
PFC
109212018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10922
10923 PR tdep/18295
10924 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10925 a single mask.
10926
dd6d677f
PFC
109272018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10928
10929 * rs6000-tdep.c (store_insn_p): New function.
10930 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10931 and cr_reg to their unshifted values. Use store_insn_p to
10932 match LR saves using either R1 or fdata->alloca_reg. Use
10933 store_insn_p to match CR saves. Set alloca_reg_offset
10934 when alloca_reg and framep are set. Remove lr_reg shift
10935 when assigning to fdata->lr_register.
10936
26d6cec4
AA
109372018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10938
10939 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10940 command line args instead of emitting a warning.
10941
5d9310c4
SM
109422018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10943
10944 * tracepoint.h (struct static_tracepoint_marker): Initialize
10945 fields, define default constructor, move constructor and move
10946 assignment, disable the rest.
10947 <str_id, extra>: Make std::string.
10948 (release_static_tracepoint_marker): Remove.
10949 (free_current_marker): Remove.
10950 * tracepoint.c (free_current_marker): Remove.
10951 (parse_static_tracepoint_marker_definition): Adjust to
10952 std::string, use new hex2str overload.
10953 (release_static_tracepoint_marker): Remove.
10954 (print_one_static_tracepoint_marker): Get marker by reference
10955 and adjust to std::string.
10956 (info_static_tracepoint_markers_command): Adjust to std::vector
10957 changes
10958 * target.h (static_tracepoint_marker_p): Remove typedef.
10959 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10960 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10961 bool.
10962 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10963 * target-debug.h
10964 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10965 (target_debug_print_std_vector_static_tracepoint_marker): New.
10966 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10967 to...
10968 (target_debug_print_static_tracepoint_marker_p): ... this.
10969 * target-delegates.c: Re-generate.
10970 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10971 Make std::string.
10972 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10973 (decode_static_tracepoint_spec): Adjust to std::vector.
10974 (tracepoint_print_one_detail): Adjust to std::string.
10975 (strace_marker_decode_location): Adjust to std::string.
10976 (update_static_tracepoint): Adjust to std::string, remove call
10977 to release_static_tracepoint_marker.
10978 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10979 Adjust to std::vector.
10980 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10981 (remote_static_tracepoint_markers_by_strid): Adjust to
10982 std::vector.
10983 * common/rsp-low.h (hex2str): New overload with explicit count
10984 of bytes.
10985 * common/rsp-low.c (hex2str): New overload with explicit count
10986 of bytes.
10987 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10988 (_initialize_rsp_low_selftests): Add test_hex2str test.
10989 * unittests/tracepoint-selftests.c
10990 (test_parse_static_tracepoint_marker_definition): Adjust to
10991 std::string.
10992
62c222b6
SM
109932018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10994
10995 * tracepoint.c (parse_static_tracepoint_marker_definition):
10996 Consider case where the definition is followed by more
10997 definitions.
10998 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10999 tracepoint-selftests.c.
11000 * unittests/tracepoint-selftests.c: New.
11001
7eb2418f
PFC
110022018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11003
11004 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11005 Carvalho.
11006
7cbe16e9
SR
110072018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11008
3d6b3b82 11009 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 11010
4ee89e90
SR
110112018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11012
3d6b3b82 11013 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 11014
92630041
TT
110152018-03-19 Tom Tromey <tom@tromey.com>
11016
11017 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11018 "IDENT" production.
11019
76727919
TT
110202018-03-19 Pedro Alves <palves@redhat.com>
11021 Tom Tromey <tom@tromey.com>
11022
11023 * unittests/observable-selftests.c: New file.
11024 * common/observable.h: New file.
11025 * observable.h: New file.
11026 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11027 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11028 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11029 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11030 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11031 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11032 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11033 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11034 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11035 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11036 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11037 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11038 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11039 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11040 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11041 tui/tui-interp.c, valops.c: Update all users.
11042 * tui/tui-hooks.c (tui_bp_created_observer)
11043 (tui_bp_deleted_observer, tui_bp_modified_observer)
11044 (tui_inferior_exit_observer, tui_before_prompt_observer)
11045 (tui_normal_stop_observer, tui_register_changed_observer):
11046 Remove.
11047 (tui_observers_token): New global.
11048 (attach_or_detach, tui_attach_detach_observers): New functions.
11049 (tui_install_hooks, tui_remove_hooks): Use
11050 tui_attach_detach_observers.
11051 * record-btrace.c (record_btrace_thread_observer): Remove.
11052 (record_btrace_thread_observer_token): New global.
11053 * observer.sh: Remove.
11054 * observer.c: Rename to observable.c.
11055 * observable.c (namespace gdb_observers): Define new objects.
11056 (observer_debug): Move into gdb_observers namespace.
11057 (struct observer, struct observer_list, xalloc_observer_list_node)
11058 (xfree_observer_list_node, generic_observer_attach)
11059 (generic_observer_detach, generic_observer_notify): Remove.
11060 (_initialize_observer): Update.
11061 Don't include observer.inc.
11062 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11063 (clean mostlyclean): Likewise.
11064 (observer.h, observer.inc): Remove targets.
11065 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11066 (COMMON_SFILES): Use observable.c, not observer.c.
11067 * .gitignore: Remove observer.h.
11068
1cb1f3da
TT
110692018-03-18 Tom Tromey <tom@tromey.com>
11070
11071 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11072 gdb::def_vector.
11073 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11074
a06ab151
TT
110752018-03-17 Tom Tromey <tom@tromey.com>
11076
11077 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11078
770623f7
TT
110792018-03-17 Tom Tromey <tom@tromey.com>
11080
11081 * target.c (class scoped_target_fd): New.
11082 (target_fileio_close_cleanup): Remove.
11083 (target_fileio_read_alloc_1): Use scoped_target_fd.
11084
39be3c7e
SM
110852018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11086
11087 * silent-rules.mk: New.
11088 * Makefile.in: Include silent-rules.mk
11089 (srcdir, VPATH, top_srcdir): Move up.
11090 (COMPILE): Add ECHO_CXX.
11091 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11092 (init.c): Add ECHO_INIT_C.
11093 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11094 (version.c): Add ECHO_GEN.
11095 (printcmd.o): Add ECHO_CXX.
11096 (target-float.o): Add ECHO_CXX.
11097 (ada-exp.o): Add ECHO_CXX.
11098 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11099 (insight$(EXEEXT)): Add ECHO_CXXLD.
11100 * gnulib/configure.ac: Add AM_SILENT_RULES.
11101 * gnulib/aclocal.m4: Re-generate.
11102 * gnulib/configure: Re-generate.
11103 * gnulib/import/Makefile.in: Re-generate.
11104
37e136b1
TT
111052018-03-16 Tom Tromey <tom@tromey.com>
11106
11107 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11108 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11109 * utils.c (do_free_section_addr_info)
11110 (make_cleanup_free_section_addr_info): Remove.
11111 * symfile.h (struct other_sections): Add constructor.
11112 (struct section_addr_info): Remove.
11113 (section_addr_info): New typedef.
11114 (struct sym_fns) <sym_offsets>: Change type of parameter.
11115 (build_section_addr_info_from_objfile)
11116 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11117 (default_symfile_offsets, symbol_file_add)
11118 (symbol_file_add_from_bfd)
11119 (build_section_addr_info_from_section_table): Update.
11120 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11121 * symfile.c (alloc_section_addr_info): Remove.
11122 (build_section_addr_info_from_section_table): Change return type.
11123 Update.
11124 (build_section_addr_info_from_bfd)
11125 (build_section_addr_info_from_objfile): Likewise.
11126 (free_section_addr_info): Remove.
11127 (relative_addr_info_to_section_offsets): Change type of "addrs".
11128 (addrs_section_compar): Now a std::sort comparator.
11129 (addrs_section_sort): Change return type.
11130 (addr_info_make_relative): Change type of "addrs". Update.
11131 (default_symfile_offsets, syms_from_objfile_1)
11132 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11133 (symbol_file_add_separate): Update.
11134 (symbol_file_add): Change type of "addrs". Update.
11135 (add_symbol_file_command): Update. Remove cleanups.
11136 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11137 cleanups.
11138 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11139 * solib.c (solib_read_symbols): Update.
11140 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11141 * machoread.c (macho_symfile_offsets): Update.
11142 * jit.c (jit_bfd_try_read_symtab): Update.
11143
03afa6ef
SM
111442018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11145
11146 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11147 unittests/utils-selftests.c.
11148 * unittests/utils-selftests.c: New file.
11149
3ae9ce5d
TT
111502018-03-14 Tom Tromey <tom@tromey.com>
11151
11152 PR cli/14977:
11153 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11154 for NULL.
11155
b8c2339b
TT
111562018-03-14 Tom Tromey <tom@tromey.com>
11157
11158 PR cli/19918:
11159 * printcmd.c (printf_pointer): Allow "-" in format.
11160
80ae639d
TT
111612018-03-14 Tom Tromey <tom@tromey.com>
11162
11163 * printcmd.c (_initialize_printcmd): Add usage to printf.
11164
0d671d99
YQ
111652018-03-14 Yao Qi <qiyao@sourceware.org>
11166
11167 * MAINTAINERS: Update my email address.
11168
b577b6af
TT
111692018-03-13 Tom Tromey <tom@tromey.com>
11170
11171 * machoread.c (macho_check_dsym): Change filenamep to a
11172 std::string*.
11173 (macho_symfile_read): Update.
11174 * symfile.c (load_command): Use std::string.
11175
89a3b63e
AB
111762018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11177
11178 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11179 to error message string.
11180 (riscv_register_name): Use xsnprintf instead of sprintf.
11181 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11182 internal_error.
11183 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11184 error.
11185 (riscv_push_dummy_call): Likewise.
11186
984c7238
TT
111872018-03-12 Tom Tromey <tom@tromey.com>
11188
11189 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11190 Use gdb::byte_vector.
11191 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11192
933522d1
YQ
111932018-03-12 Yao Qi <yao.qi@linaro.org>
11194
11195 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11196 parameter type to readable_regcache.
11197 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11198 the declaration.
11199
be2daae6
TT
112002018-03-11 Tom Tromey <tom@tromey.com>
11201
11202 * dwarf2read.c (struct nextfield): Add initializers.
11203 (struct nextfnfield): Remove.
11204 (struct fnfieldlist): Add initializers. Remove "length" and
11205 "head", use std::vector.
11206 (struct decl_field_list): Remove.
11207 (struct field_info): Add initializers.
11208 <fields, baseclasses>: Now std::vector.
11209 <nbaseclasses, nfnfields, typedef_field_list_count,
11210 nested_types_list_count>: Remove.
11211 (dwarf2_add_field, dwarf2_add_type_defn)
11212 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11213 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11214 (process_structure_scope): Update.
11215
484cf504
TT
112162018-03-11 Tom Tromey <tom@tromey.com>
11217
11218 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11219 for use by std::sort.
11220 (build_type_psymtabs_1): Use std::vector.
11221
9bd8e0b0
EZ
112222018-03-09 Eli Zaretskii <eliz@gnu.org>
11223
11224 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11225 and LIBMPFR in the printed configuration.
11226
5dc1a704
TT
112272018-03-08 Tom Tromey <tom@tromey.com>
11228
11229 * source.c (get_filename_and_charpos): Use scoped_fd.
11230 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11231 (procfs_pidlist): Likewise.
11232 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11233 (iterate_over_mappings): Likewise.
11234
fdf07f3a
TT
112352018-03-08 Tom Tromey <tom@tromey.com>
11236
11237 * infcall.c (struct call_return_meta_info)
11238 <stack_temporaries_enabled>: Remove.
11239 (get_call_return_value, call_function_by_hand_dummy): Update.
11240 * thread.c (disable_thread_stack_temporaries): Remove.
11241 (enable_thread_stack_temporaries): Remove.
11242 (thread_stack_temporaries_enabled_p): Return bool.
11243 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11244 (get_last_thread_stack_temporary): Update.
11245 * eval.c (evaluate_subexp): Update.
11246 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11247 class, not a function.
11248 (value_ptr, value_vec): Remove typedefs.
11249 (class thread_info) <stack_temporaries_enabled>: Now bool.
11250 <stack_temporaries>: Now a std::vector.
11251 (thread_stack_temporaries_enabled_p)
11252 (value_in_thread_stack_temporaries): Return bool.
11253
567a3e54
SM
112542018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11255
11256 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11257 (getpkt_or_notif_sane_1): Likewise.
11258
00b40057
SM
112592018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11260
11261 * build-id.c (build_id_to_debug_bfd): Use std::string.
11262
a8dbfd58
SM
112632018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11264
11265 * build-id.c (find_separate_debug_file_by_buildid): Return
11266 std::string.
11267 * build-id.h (find_separate_debug_file_by_buildid): Return
11268 std::string.
11269 * coffread.c (coff_symfile_read): Adjust to std::string.
11270 * elfread.c (elf_symfile_read): Adjust to std::string.
11271 * symfile.c (separate_debug_file_exists): Change parameter to
11272 std::string.
11273 (find_separate_debug_file): Return std::string.
11274 (find_separate_debug_file_by_debuglink): Return std::string.
11275 * symfile.h (find_separate_debug_file_by_debuglink): Return
11276 std::string.
11277
e6a58aa8
SM
112782018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11279
11280 * common/xml-utils.c (xml_escape_text): Move code to...
11281 (xml_escape_text_append): ... this new function.
11282 * common/xml-utils.h (xml_escape_text_append): New declaration.
11283 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11284 New function.
11285 (_initialize_xml_utils): register test_xml_escape_text_append as
11286 a selftest.
11287
4ef0bef6
AH
112882018-03-07 Alan Hayward <alan.hayward@arm.com>
11289
11290 * defs.h: Remove MAX_REGISTER_SIZE.
11291 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11292 asserts.
11293 * python/py-unwind.c (pyuw_sniffer): Likewise.
11294
e0d3522b
TT
112952018-03-07 Tom Tromey <tom@tromey.com>
11296
11297 * linux-tdep.c (linux_info_proc): Update.
11298 * target.h (struct target_ops) <to_fileio_readlink>: Return
11299 optional<string>.
11300 (target_fileio_readlink): Return optional<string>.
11301 * remote.c (remote_hostio_readlink): Return optional<string>.
11302 * inf-child.c (inf_child_fileio_readlink): Return
11303 optional<string>.
11304 * target.c (target_fileio_readlink): Return optional<string>.
11305
ea005f31
AB
113062018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11307
11308 * regcache.c (cooked_read_test): Add riscv to the list of
11309 architectures that have a save_reggroup.
11310
e95a97d4
AA
113112018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11312
11313 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11314 value is not a dynamic class object.
11315
d8344f3d
TT
113162018-03-06 Tom Tromey <tom@tromey.com>
11317
11318 * rust-exp.y: Formatting fixes.
11319
9add17f2
AB
113202018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11321
11322 * riscv-tdep.c (riscv_register_name): Remove target description
11323 support.
11324 (riscv_gdbarch_init): Remove target description check.
11325
c9486dfe
AB
113262018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11327
11328 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11329 comment.
11330 * riscv-tdep.h: Likewise.
11331
d74aff3d
AB
113322018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11333
11334 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11335 (riscv_pseudo_register_write): Delete.
11336 (riscv_gdbarch_init): Remove all use of pseudo registers.
11337
7ea78b59
SM
113382018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11339
11340 * record-btrace.c (btrace_print_lines): Replace cleanup
11341 parameter with RAII equivalents.
11342 (btrace_insn_history): Replace cleanup with RAII equivalents.
11343 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11344 make_cleanup_ui_out_tuple_begin_end): Remove.
11345 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11346 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11347 make_cleanup_ui_out_list_begin_end): Remove.
11348
53127008
SM
113492018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11350
11351 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11352 parameter types to std::vector. Use bool.
11353 (record_btrace_wait): Replace VEC(tp_t) with
11354 std::vector<thread_info *>.
11355 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11356
228f1508
SM
113572018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11358
11359 * record-btrace.c (record_btrace_disable_callback): Remove.
11360 (struct scoped_btrace_disable): New.
11361 (record_btrace_open): Use scoped_btrace_disable.
11362
b2970c23
AB
113632018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11364
11365 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11366 reading values from registers.
11367
fb294655
AB
113682018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11369
11370 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11371 where appropriate.
11372
cab5bb9d
AB
113732018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11374
11375 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11376 change parameter type. Use GDB's print functions, and use
11377 core_addr_to_string where appropriate.
11378 (riscv_push_dummy_call): Use core_addr_to_string where
11379 appropriate, update call to riscv_print_arg_location, and reindent
11380 a few lines.
11381 (riscv_return_value): Update call to riscv_print_arg_location.
11382
dbbb1059
AB
113832018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11384 Tim Newsome <tim@sifive.com>
11385 Albert Ou <a0u@eecs.berkeley.edu>
11386 Darius Rad <darius@bluespec.com>
11387
11388 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11389 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11390 (ALLDEPFILES): Add riscv-tdep.c
11391 * configure.tgt: Add riscv support.
11392 * riscv-tdep.c: New file.
11393 * riscv-tdep.h: New file.
11394 * NEWS: Mention new target.
11395 * MAINTAINERS: Add entry for riscv.
11396
5dc43913
AB
113972018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11398
11399 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11400 fields within aggregates.
11401
3dea1ef7
SM
114022018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11403
11404 * record-btrace.c (btrace_print_lines): Change type of flags to
11405 gdb_disassembly_flags.
11406
7efba073
JB
114072018-03-04 John Baldwin <jhb@FreeBSD.org>
11408
11409 * fbsd-nat.c: Include "inf-ptrace.h".
11410 (USE_SIGTRAP_SIGINFO): Conditionally define.
11411 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11412 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11413 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11414 function.
11415 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11416 Likewise.
11417 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11418 Likewise.
11419 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11420 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11421 "supports_stopped_by_hw_breakpoint" target methods.
11422
386a8676
JB
114232018-03-04 John Baldwin <jhb@FreeBSD.org>
11424
11425 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11426 * fbsd-nat.c (debug_fbsd_nat): New variable.
11427 (show_fbsd_nat_debug): New function.
11428 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11429 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11430
12279366
JB
114312018-03-04 John Baldwin <jhb@FreeBSD.org>
11432
11433 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11434 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11435 prototype.
11436 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11437 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11438 method.
11439
54693cf5
SM
114402018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11441
11442 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11443 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11444
ccb2231c
SM
114452018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11446
11447 * charset.c (struct charset_vector): New.
11448 (charsets): Change type to charset_vector.
11449 (find_charset_names): Adjust.
11450 (add_one): Adjust.
11451 (_initialize_charset): Adjust.
11452
6fb16ce6
SM
114532018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11454
11455 * progspace.h (struct program_space) <deleted_solibs>: Change
11456 type to std::vector<std::string>.
11457 * progspace.c (clear_program_space_solib_cache): Adjust.
11458 * breakpoint.c (print_solib_event): Adjust.
11459 (check_status_catch_solib): Adjust.
11460 * solib.c (update_solib_list): Adjust.
11461 * ui-out.h (class ui_out) <field_string>: New overload.
11462 * ui-out.c (ui_out::field_string): New overload.
11463
564b1e3f
SM
114642018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11465
11466 * progspace.h (struct program_space): Add constructor and
11467 destructor, initialize fields.
11468 (add_program_space): Remove.
11469 * progspace.c (add_program_space): Rename to...
11470 (program_space::program_space): ... this.
11471 (release_program_space): Rename to...
11472 (program_space::~program_space): ... this.
11473 (delete_program_space): Use delete to delete program_space.
11474 (initialize_progspace): Use new to allocate program_space.
11475 * inferior.c (add_inferior_with_spaces): Likewise.
11476 (clone_inferior_command): Likewise.
11477 * infrun.c (follow_fork_inferior): Likewise.
11478 (handle_vfork_child_exec_or_exit): Likewise.
11479
e80aaf61
SM
114802018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11481
11482 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11483 (delim_string_to_char_ptr_vec): Return std::vector of
11484 gdb::unique_xmalloc_ptr.
11485 (dirnames_to_char_ptr_vec_append): Take std::vector of
11486 gdb::unique_xmalloc_ptr.
11487 (dirnames_to_char_ptr_vec): Return std::vector of
11488 gdb::unique_xmalloc_ptr.
11489 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11490 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11491 (delim_string_to_char_ptr_vec): Return an std::vector of
11492 gdb::unique_xmalloc_ptr, adjust the code.
11493 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11494 gdb::unique_xmalloc_ptr, adjust the code.
11495 (dirnames_to_char_ptr_vec): Return an std::vector of
11496 gdb::unique_xmalloc_ptr, adjust the code.
11497 * auto-load.c (auto_load_safe_path_vec): Change type to
11498 std::vector of gdb::unique_xmalloc_ptr.
11499 (auto_load_expand_dir_vars): Return an std::vector of
11500 gdb::unique_xmalloc_ptr, adjust the code.
11501 (auto_load_safe_path_vec_update): Adjust.
11502 (filename_is_in_auto_load_safe_path_vec): Adjust.
11503 (auto_load_objfile_script_1): Adjust.
11504 * build-id.c (build_id_to_debug_bfd): Adjust.
11505 * linux-thread-db.c (thread_db_load_search): Adjust.
11506 * source.c (add_path): Adjust.
11507 (openp): Adjust.
11508 * symfile.c (find_separate_debug_file): Adjust.
11509 * utils.c (do_free_char_ptr_vec): Remove.
11510 (make_cleanup_free_char_ptr_vec): Remove.
11511
ab818ade
SDJ
115122018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11513
11514 PR gdb/22907
11515 * common/pathstuff.c: Conditionally include "<windows.h>".
11516
e1e6f073
GS
115172018-03-01 Georg Sauthoff <mail@georg.so>
11518
11519 PR gdb/22888
11520 * gcore.in: Quote variables and switch interpreter to bash.
11521
c7b15a66
TT
115222018-03-01 Tom Tromey <tom@tromey.com>
11523
11524 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11525 assertion. Add assertion for discriminant_index.
11526 (quirk_rust_enum): Use correct base type name in univariant case.
11527
0cb7c7b0
SM
115282018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11529
11530 * record.c (get_call_history_modifiers): Return a
11531 record_print_flags.
11532 (cmd_record_call_history): Adjust.
11533 * record-btrace.c (record_btrace_call_history): Adjust.
11534 (record_btrace_call_history_range): Adjust.
11535 (record_btrace_call_history_from): Adjust.
11536 * target-debug.h (target_debug_print_record_print_flags): New.
11537 * target-delegates.c: Re-generate.
11538 * target.c (target_call_history): Change flags type.
11539 (target_call_history_from): Likewise.
11540 (target_call_history_range): Likewise.
11541 * target.h (struct target_ops) <target_call_history>: Likewise.
11542 (target_call_history_from): Likewise.
11543 (target_call_history_range): Likewise.
11544
25e3c82c
SDJ
115452018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11546 Simon Marchi <simon.marchi@polymtl.ca>
11547
11548 * common/common-utils.c: Include "sys/stat.h".
11549 (is_regular_file): Move here from "source.c"; change return
11550 type to "bool".
11551 * common/common-utils.h (is_regular_file): New prototype.
11552 * common/pathstuff.c (contains_dir_separator): New function.
11553 * common/pathstuff.h (contains_dir_separator): New prototype.
11554 * source.c: Don't include "sys/stat.h".
11555 (is_regular_file): Move to "common/common-utils.c".
11556
b4987c95
SDJ
115572018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11558
11559 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11560 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11561 * auto-load.c: Include "common/pathstuff.h".
11562 * common/common-def.h (current_directory): Move here.
11563 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11564 function.
11565 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11566 prototype.
11567 * common/pathstuff.c: New file.
11568 * common/pathstuff.h: New file.
11569 * compile/compile.c: Include "common/pathstuff.h".
11570 * defs.h (current_directory): Move to "common/common-defs.h".
11571 * dwarf2read.c: Include "common/pathstuff.h".
11572 * exec.c: Likewise.
11573 * guile/scm-safe-call.c: Likewise.
11574 * linux-thread-db.c: Likewise.
11575 * main.c: Likewise.
11576 * nto-tdep.c: Likewise.
11577 * objfiles.c: Likewise.
11578 * source.c: Likewise.
11579 * symtab.c: Likewise.
11580 * utils.c: Include "common/pathstuff.h".
11581 (gdb_realpath): Move to "common/pathstuff.c".
11582 (gdb_realpath_keepfile): Likewise.
11583 (gdb_abspath): Likewise.
11584 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11585 (gdb_realpath_keepfile): Likewise.
11586 (gdb_abspath): Likewise.
11587
f169cfdc
JB
115882018-02-28 John Baldwin <jhb@FreeBSD.org>
11589
11590 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11591 wildcard process pid for super_resume for kernels with a
11592 specific bug.
11593
e05cac70
PM
115942018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11595
11596 * compile/compile.c (get_args): Add additional comments
11597 explaining function.
11598
55089490
TT
115992018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11600 Tom Tromey <tom@tromey.com>
11601
11602 * target.h (memory_write_request_s): Remove typedef. Don't define
11603 VEC.
11604 (target_write_memory_blocks): Change argument to std::vector.
11605 (struct memory_write_request): Add constructor.
11606 * target-memory.c (compare_block_starting_address): Return bool.
11607 Change argument types.
11608 (claim_memory): Change arguments to use std::vector.
11609 (split_regular_and_flash_blocks, blocks_to_erase)
11610 (compute_garbled_blocks): Likewise.
11611 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11612 (target_write_memory_blocks): Change argument to std::vector.
11613 * symfile.c (struct load_section_data): Add constructor and
11614 destructor. Use std::vector for "requests".
11615 (struct load_progress_data): Add initializers.
11616 (load_section_callback): Update. Use "new".
11617 (clear_memory_write_data): Remove.
11618 (generic_load): Update.
11619
0c305b61
AH
116202018-02-27 Alan Hayward <alan.hayward@arm.com>
11621
11622 * arch/aarch64.h: Use common/tdesc.h.
11623
c5196c92
MR
116242018-02-26 Maciej W. Rozycki <macro@mips.com>
11625
11626 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11627 architecture with a 64-bit ABI.
11628
37c33887
MR
116292018-02-26 Maciej W. Rozycki <macro@mips.com>
11630
11631 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11632 ahead of target description loading.
11633
d4dd3282
TT
116342018-02-26 Tom Tromey <tom@tromey.com>
11635
11636 * stack.c (backtrace_command_1): Update.
11637 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11638 of "flags".
11639 * python/py-framefilter.c (py_print_frame)
11640 (gdbpy_apply_frame_filter): Change type of "flags".
11641 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11642 of "flags".
11643 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11644 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11645 * extension.h (enum frame_filter_flag): Rename from
11646 frame_filter_flags.
11647 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11648 (apply_ext_lang_frame_filter): Change type of "flags".
11649 * extension.c (apply_ext_lang_frame_filter): Change type of
11650 "flags".
11651 * extension-priv.h (struct extension_language_ops)
11652 <apply_frame_filter>: Change type of "flags".
11653
6893c19a
TT
116542018-02-26 Tom Tromey <tom@tromey.com>
11655
11656 PR python/16497:
11657 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11658 off-by-one in py_end computation.
11659 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11660 PRINT_MORE_FRAMES.
11661 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11662 constant.
11663
2ddeaf8a
TT
116642018-02-26 Tom Tromey <tom@tromey.com>
11665
11666 * dwarf2read.c (struct variant_field): New.
11667 (struct nextfield) <variant>: New field.
11668 (dwarf2_add_field): Handle DW_TAG_variant_part.
11669 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11670 discriminated union.
11671 (read_structure_type): Handle DW_TAG_variant_part.
11672 (handle_struct_member_die): New function, extracted from
11673 process_structure_scope. Handle DW_TAG_variant.
11674 (process_structure_scope): Handle discriminated unions. Call
11675 handle_struct_member_die.
11676
c9317f21
TT
116772018-02-26 Tom Tromey <tom@tromey.com>
11678
11679 * rust-lang.h (rust_last_path_segment): Declare.
11680 * rust-lang.c (rust_last_path_segment): Now public. Change
11681 contract.
11682 (struct disr_info): Remove.
11683 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11684 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11685 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11686 (rust_enum_p, rust_enum_variant): New function.
11687 (rust_underscore_fields): Remove "offset" parameter.
11688 (rust_print_enum): New function.
11689 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11690 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11691 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11692 enums.
11693 (rust_internal_print_type): New function, from rust_print_type.
11694 Remove enum code.
11695 (rust_print_type): Call rust_internal_print_type.
11696 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11697 Update enum handling.
11698 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11699 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11700 (rust_union_quirks): New functions.
11701 (process_full_comp_unit, process_full_type_unit): Call
11702 rust_union_quirks.
11703 (process_structure_scope): Update rust_unions if necessary.
11704
7c22600a
TT
117052018-02-26 Tom Tromey <tom@tromey.com>
11706
11707 * value.h (value_union_variant): Declare.
11708 * valops.c (value_union_variant): New function.
11709 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11710 (struct discriminant_info): New.
11711 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11712 enumerator.
11713 (struct main_type) <flag_discriminated_union>: New field.
11714
15ce8941
TT
117152018-02-26 Tom Tromey <tom@tromey.com>
11716
11717 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11718 unittests/unpack-selftests.c.
11719 * unittests/unpack-selftests.c: New file.
11720 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11721
48fbe735
YQ
117222018-02-26 Yao Qi <yao.qi@linaro.org>
11723
11724 * dwarf2read.c (struct partial_die_info) <read>: New method.
11725 (read_partial_die): Remove the declaration.
11726 (load_partial_dies): Update.
11727 (partial_die_info::partial_die_info):
11728 (read_partial_die): Change it to partial_die_info::read.
11729
52356b79
YQ
117302018-02-26 Yao Qi <yao.qi@linaro.org>
11731
11732 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11733 (fixup_partial_die): Remove declaration.
11734 (scan_partial_symbols): Update.
11735 (partial_die_parent_scope): Likewise.
11736 (partial_die_full_name): Likewise.
11737 (fixup_partial_die): Change it to partial_die_info::fixup.
11738
35cc7ed7
YQ
117392018-02-26 Yao Qi <yao.qi@linaro.org>
11740
11741 * dwarf2read.c (read_partial_die): Update the declaration.
11742 (load_partial_dies): Caller update.
11743 (read_partial_die): Remove one argument abbrev_len.
11744
6f06d47b
YQ
117452018-02-26 Yao Qi <yao.qi@linaro.org>
11746
11747 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11748 assignment operator.
11749 (load_partial_dies): Use ctor and copy ctor.
11750 (read_partial_die): Update.
11751 (dwarf2_cu::find_partial_die): Use ctor.
11752
d590ff25
YQ
117532018-02-26 Yao Qi <yao.qi@linaro.org>
11754
11755 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11756 (find_partial_die_in_comp_unit): Change it to
11757 dwarf2_cu::find_partial_die.
11758 (find_partial_die): Update.
11759
fd0a254f
YQ
117602018-02-26 Yao Qi <yao.qi@linaro.org>
11761
11762 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11763 is NULL.
11764
cd9983dd
YQ
117652018-02-26 Yao Qi <yao.qi@linaro.org>
11766
11767 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11768
f46cd62a
AH
117692018-02-26 Alan Hayward <alan.hayward@arm.com>
11770
11771 * arch/amd64.h: Use common/tdesc.h.
11772 * arch/i386.c: Likewise.
11773 * arch/i386.h: Likewise.
11774 * arch/tic6x.c: Likewise.
11775 * arch/tdesc.h: Move file from here...
11776 * common/tdesc.h: ...to here.
11777 * features/aarch64-core.c: Regenerate.
11778 * features/aarch64-fpu.c: Regenerate.
11779 * features/i386/32bit-avx.c: Regenerate.
11780 * features/i386/32bit-avx512.c: Regenerate.
11781 * features/i386/32bit-core.c: Regenerate.
11782 * features/i386/32bit-linux.c: Regenerate.
11783 * features/i386/32bit-mpx.c: Regenerate.
11784 * features/i386/32bit-pkeys.c: Regenerate.
11785 * features/i386/32bit-sse.c: Regenerate.
11786 * features/i386/64bit-avx.c: Regenerate.
11787 * features/i386/64bit-avx512.c: Regenerate.
11788 * features/i386/64bit-core.c: Regenerate.
11789 * features/i386/64bit-linux.c: Regenerate.
11790 * features/i386/64bit-mpx.c: Regenerate.
11791 * features/i386/64bit-pkeys.c: Regenerate.
11792 * features/i386/64bit-segments.c: Regenerate.
11793 * features/i386/64bit-sse.c: Regenerate.
11794 * features/i386/x32-core.c: Regenerate.
11795 * features/tic6x-c6xp.c: Regenerate.
11796 * features/tic6x-core.c: Regenerate.
11797 * features/tic6x-gp.c: Regenerate.
11798 * target-descriptions.c: Use common/tdesc.h.
11799 * target-descriptions.h: Likewise.
11800
9b292f68
TT
118012018-02-24 Tom Tromey <tom@tromey.com>
11802
11803 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11804 (try_thread_db_load_from_dir, thread_db_load_search): Use
11805 std::string.
11806 (info_auto_load_libthread_db_compare): Return bool. Change
11807 argument types.
11808 (info_auto_load_libthread_db): Use std::vector, std::string.
11809 Remove cleanups.
11810
281d762b
TT
118112018-02-24 Tom Tromey <tom@tromey.com>
11812
11813 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11814 std::string.
11815 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11816 std::string*.
11817 * gdbarch.c: Rebuild.
11818 * gdbarch.h: Rebuild.
11819 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11820 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11821 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11822 std::string*.
11823
9d8780f0
SM
118242018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11825
11826 * gdbtypes.h (sect_offset): Change type to uint64_t.
11827 (sect_offset_str): New function.
11828 * dwarf2read.c (create_addrmap_from_aranges): Use
11829 sect_offset_str.
11830 (error_check_comp_unit_head): Likewise.
11831 (create_debug_type_hash_table): Likewise.
11832 (read_cutu_die_from_dwo): Likewise.
11833 (init_cutu_and_read_dies): Likewise.
11834 (init_cutu_and_read_dies_no_follow): Likewise.
11835 (process_psymtab_comp_unit_reader): Likewise.
11836 (partial_die_parent_scope): Likewise.
11837 (peek_die_abbrev): Likewise.
11838 (process_queue): Likewise.
11839 (dwarf2_physname): Likewise.
11840 (read_namespace_alias): Likewise.
11841 (read_import_statement): Likewise.
11842 (create_dwo_cu_reader): Likewise.
11843 (create_cus_hash_table): Likewise.
11844 (lookup_dwo_cutu): Likewise.
11845 (inherit_abstract_dies): Likewise.
11846 (read_func_scope): Likewise.
11847 (read_call_site_scope): Likewise.
11848 (dwarf2_add_member_fn): Likewise.
11849 (read_common_block): Likewise.
11850 (read_module_type): Likewise.
11851 (read_typedef): Likewise.
11852 (read_subrange_type): Likewise.
11853 (load_partial_dies): Likewise.
11854 (read_partial_die): Likewise.
11855 (find_partial_die): Likewise.
11856 (read_str_index): Likewise.
11857 (dwarf2_string_attr): Likewise.
11858 (build_error_marker_type): Likewise.
11859 (lookup_die_type): Likewise.
11860 (dump_die_shallow): Likewise.
11861 (follow_die_ref): Likewise.
11862 (dwarf2_fetch_die_loc_sect_off): Likewise.
11863 (dwarf2_fetch_constant_bytes): Likewise.
11864 (follow_die_sig): Likewise.
11865 (get_signatured_type): Likewise.
11866 (get_DW_AT_signature_type): Likewise.
11867 (dwarf2_find_containing_comp_unit): Likewise.
11868 (set_die_type): Likewise.
11869
8ec57239
JB
118702018-02-21 John Baldwin <jhb@FreeBSD.org>
11871
11872 * arch/aarch64.c: Include "common-defs.h".
11873 * arch/amd64.c: Likewise.
11874 * arch/i386.c: Likewise.
11875
3eac2b65
TT
118762018-02-21 Tom Tromey <tom@tromey.com>
11877
11878 * value.h: (extract_field_op): Update.
11879 * eval.c (extract_field_op): Return a const char *.
11880 * expression.h (parse_expression_for_completion): Update.
11881 * completer.c (complete_expression): Update.
11882 (add_struct_fields): Make fieldname const.
11883 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11884 (mark_completion_tag, parse_exp_in_context_1): Update.
11885 (parse_expression_for_completion): Change "name" to
11886 unique_xmalloc_ptr*.
11887
6ccb583f
TT
118882018-02-21 Tom Tromey <tom@tromey.com>
11889
11890 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11891
c113ed0c
YQ
118922018-02-21 Yao Qi <yao.qi@linaro.org>
11893
11894 * avr-tdep.c (avr_read_pc): Change parameter type to
11895 readable_regcache.
11896 * gdbarch.sh (read_pc): Likewise.
11897 * gdbarch.c: Re-generated.
11898 * gdbarch.h: Re-generated.
11899 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11900 readable_regcache.
11901 * ia64-tdep.c (ia64_read_pc): Likewise.
11902 * mips-tdep.c (mips_read_pc): Likewise.
11903 * spu-tdep.c (spu_read_pc): Likewise.
11904
4c74fe6b
YQ
119052018-02-21 Yao Qi <yao.qi@linaro.org>
11906
11907 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11908 * regcache-dump.c: New file.
11909 * regcache.c: Move register_dump to regcache-dump.c.
11910 (maintenance_print_registers): Likewise.
11911 (maintenance_print_raw_registers): Likewise.
11912 (maintenance_print_cooked_registers): Likewise.
11913 (maintenance_print_register_groups): Likewise.
11914 (maintenance_print_remote_registers): Likewise.
11915 (_initialize_regcache): Likewise.
11916 * regcache.h (register_dump): Moved from regcache.c.
11917
796bb026
YQ
119182018-02-21 Yao Qi <yao.qi@linaro.org>
11919
11920 * regcache.c (regcache::regcache): Update.
11921 (regcache::invalidate): Move it to detached_regcache::invalidate.
11922 (get_thread_arch_aspace_regcache): Update.
11923 (regcache::raw_update): Update.
11924 (regcache::cooked_read): Remove some code.
11925 (regcache::cooked_read_value): Likewise.
11926 (regcache::raw_write): Remove assert on m_readonly_p.
11927 (regcache::raw_supply_integer): Move it to
11928 detached_regcache::raw_supply_integer.
11929 (regcache::raw_supply_zeroed): Likewise.
11930 * regcache.h (detached_regcache) <raw_supply_integer>: New
11931 declaration.
11932 <raw_supply_zeroed, invalidate>: Likewise.
11933 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11934 <invalidate>: Likewise.
11935 <m_readonly_p>: Removed.
11936
215c69dc
YQ
119372018-02-21 Yao Qi <yao.qi@linaro.org>
11938
11939 * infcmd.c (get_return_value): Let stop_regs point to
11940 get_current_regcache.
11941 * regcache.c (regcache::regcache): Remove.
11942 (register_dump_reg_buffer): New class.
11943 (regcache_print): Adjust.
11944 * regcache.h (regcache): Remove constructors.
11945
f3384e66
YQ
119462018-02-21 Yao Qi <yao.qi@linaro.org>
11947
11948 * regcache.c (class register_dump): New class.
11949 (register_dump_regcache, register_dump_none): New class.
11950 (register_dump_remote, register_dump_groups): New class.
11951 (regcache_print): Update.
11952 * regcache.h (regcache_dump_what): Move it to regcache.c.
11953 (regcache) <dump>: Remove.
11954
c8ec2f33
YQ
119552018-02-21 Yao Qi <yao.qi@linaro.org>
11956
11957 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11958 reg_buffer_rw *.
11959 (jit_unwind_reg_set_impl): Call raw_supply.
11960 (jit_frame_sniffer): Use reg_buffer_rw.
11961 * record-full.c (record_full_core_regbuf): Change its type.
11962 (record_full_core_open_1): Use reg_buffer_rw.
11963 (record_full_close): Likewise.
11964 (record_full_core_fetch_registers): Use regcache->raw_supply.
11965 (record_full_core_store_registers): Likewise.
11966 * regcache.c (regcache::get_register_status): Move it to
11967 reg_buffer.
11968 (regcache_raw_set_cached_value): Remove.
11969 (regcache::raw_set_cached_value): Remove.
11970 (regcache::raw_write): Call raw_supply.
11971 (regcache::raw_supply): Move it to reg_buffer_rw.
11972 * regcache.h (regcache_raw_set_cached_value): Remove.
11973 (reg_buffer_rw): New class.
11974
daf6667d
YQ
119752018-02-21 Yao Qi <yao.qi@linaro.org>
11976
11977 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11978 readonly_detached_regcache.
11979 (dummy_frame_prev_register): Use regcache->cooked_read.
11980 * frame.c (frame_save_as_regcache): Change return type.
11981 (frame_pop): Update.
11982 * frame.h (frame_save_as_regcache): Update declaration.
11983 * inferior.h (get_infcall_suspend_state_regcache): Update
11984 declaration.
11985 * infrun.c (infcall_suspend_state) <registers>: use
11986 readonly_detached_regcache.
11987 (save_infcall_suspend_state): Don't use regcache_dup.
11988 (get_infcall_suspend_state_regcache): Change return type.
11989 * linux-fork.c (struct fork_info) <savedregs>: Change to
11990 readonly_detached_regcache.
11991 <pc>: New field.
11992 (fork_save_infrun_state): Don't use regcache_dup.
11993 (info_checkpoints_command): Adjust.
11994 * mi/mi-main.c (register_changed_p): Update declaration.
11995 (mi_cmd_data_list_changed_registers): Use
11996 readonly_detached_regcache.
11997 (register_changed_p): Change parameter type to
11998 readonly_detached_regcache.
11999 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12000 readonly_detached_regcache.
12001 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12002 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12003 New.
12004 (regcache::save): Move it to reg_buffer.
12005 (regcache::restore): Change parameter type.
12006 (regcache_dup): Remove.
12007 * regcache.h (reg_buffer) <save>: New method.
12008 (readonly_detached_regcache): New class.
12009 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12010 readonly_detached_regcache.
12011 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12012
fc5b8736
YQ
120132018-02-21 Yao Qi <yao.qi@linaro.org>
12014
12015 * frame.c (frame_save_as_regcache): Use regcache method save.
12016 (frame_pop): Use regcache method restore.
12017 * infrun.c (restore_infcall_suspend_state): Likewise.
12018 * linux-fork.c (fork_load_infrun_state): Likewise.
12019 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12020 save.
12021 * regcache.c (regcache_save): Remove.
12022 (regcache::restore): More asserts.
12023 (regcache_cpy): Remove.
12024 * regcache.h (regcache_save): Remove the declaration.
12025 (regcache::restore): Move from private to public.
12026 Remove the friend declaration of regcache_cpy.
12027 (regcache_cpy): Remove declaration.
12028
849d0ba8
YQ
120292018-02-21 Yao Qi <yao.qi@linaro.org>
12030
12031 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12032 parameter type to 'readable_regcache *'.
12033 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12034 * arm-tdep.c (arm_neon_quad_read): Likewise.
12035 (arm_pseudo_read): Likewise.
12036 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12037 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12038 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12039 * gdbarch.c: Re-generated.
12040 * gdbarch.h: Re-generated.
12041 * gdbarch.sh (pseudo_register_read): Change parameter type to
12042 'readable_regcache *'.
12043 (pseudo_register_read_value): Likewise.
12044 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12045 (h8300_pseudo_register_read): Likewise.
12046 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12047 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12048 (i386_pseudo_register_read_into_value): Likewise.
12049 (i386_pseudo_register_read_value): Likewise.
12050 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12051 declaration.
12052 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12053 * m32c-tdep.c (m32c_raw_read): Likewise.
12054 (m32c_read_flg): Likewise.
12055 (m32c_banked_register): Likewise.
12056 (m32c_banked_read): Likewise.
12057 (m32c_sb_read): Likewise.
12058 (m32c_part_read): Likewise.
12059 (m32c_cat_read): Likewise.
12060 (m32c_r3r2r1r0_read): Likewise.
12061 (m32c_pseudo_register_read): Likewise.
12062 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12063 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12064 (mep_pseudo_cr64_read): Likewise.
12065 (mep_pseudo_register_read): Likewise.
12066 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12067 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12068 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12069 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12070 (regcache::cooked_read): Likewise.
12071 (regcache::cooked_read_value): Likewise.
12072 (regcache_cooked_read_signed):
12073 (regcache::cooked_read): Likewise.
12074 * regcache.h (readable_regcache): New class.
12075 (regcache): Inherit readable_regcache. Move some methods to
12076 readable_regcache.
12077 * rl78-tdep.c (rl78_pseudo_register_read): Change
12078 parameter type to 'readable_regcache *'.
12079 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12080 (e500_pseudo_register_read): Change parameter type to
12081 'readable_regcache *'.
12082 (dfp_pseudo_register_read): Likewise.
12083 (vsx_pseudo_register_read): Likewise.
12084 (efpr_pseudo_register_read): Likewise.
12085 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12086 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12087 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12088 (sh64_pseudo_register_read): Likewise.
12089 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12090 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12091 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12092 (spu_pseudo_register_read): Likewise.
12093 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12094 (xtensa_pseudo_register_read): Likewise.
12095
31716595
YQ
120962018-02-21 Yao Qi <yao.qi@linaro.org>
12097
12098 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12099 (regcache::arch): Move it to reg_buffer::arch.
12100 (regcache::register_buffer): Likewise.
12101 (regcache::assert_regnum): Likewise.
12102 (regcache::num_raw_registers): Likewise.
12103 * regcache.h (reg_buffer): New class.
12104 (regcache): Inherit reg_buffer.
12105
7104e59b
SM
121062018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12107
12108 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12109 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12110
2d8adcbd
MM
121112018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12112
12113 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12114
b5884fa7
AH
121152018-02-19 Alan Hayward <alan.hayward@arm.com>
12116
12117 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12118 (SFILES): Remove common/*.c files.
12119 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12120 * common/common.host: Add common reference.
12121 * configure.ac: Likewise.
12122 * configure: Regenerate.
12123
fd90ace4
YQ
121242018-02-16 Yao Qi <yao.qi@linaro.org>
12125
12126 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12127 (block_initialize_namespace): Use new.
12128 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12129 (dwarf2_free_objfile): Use delete.
12130 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12131 (copy_type_recursive): Use new.
12132 * gdb_obstack.h (allocate_on_obstack): New.
12133
85046ae2
YQ
121342018-02-15 Yao Qi <yao.qi@linaro.org>
12135
12136 PR gdb/22849
12137 * inferior.c (exit_inferior_1): Reset inf->control.
12138
355c559b
JB
121392018-02-15 Joel Brobecker <brobecker@adacore.com>
12140
12141 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12142 declaration.
12143
980548fd
PA
121442018-02-14 Pedro Alves <palves@redhat.com>
12145
12146 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12147 frame_cleanup_after_sniffer on exception.
12148
692d6f97
TT
121492018-02-14 Tom Tromey <tom@tromey.com>
12150
12151 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12152 const.
12153 (solib_bfd_open): Make pathname const.
12154 * solib.c (solib_bfd_open): Make pathname const.
12155 * solib-spu.c (spu_bfd_fopen): Make name const.
12156 (spu_bfd_open): Make pathname const.
12157 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12158 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12159
e0cc99a6
TT
121602018-02-14 Tom Tromey <tom@tromey.com>
12161
12162 * symfile.c (symfile_bfd_open): Update.
12163 * source.h (openp, source_full_path_of, find_and_open_source):
12164 Change argument type to unique_xmalloc_ptr.
12165 * source.c (openp): Take a unique_xmalloc_ptr.
12166 (source_full_path_of, find_and_open_source): Likewise.
12167 (open_source_file, symtab_to_fullname): Update.
12168 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12169 unique_xmalloc_ptr.
12170 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12171 (exec_file_find): Update.
12172 * psymtab.c (psymtab_to_fullname): Update.
12173 * nto-tdep.h (nto_find_and_open_solib): Update.
12174 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12175 unique_xmalloc_ptr.
12176 * exec.c (exec_file_attach): Update.
12177 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12178 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12179
b46a8d7c
TT
121802018-02-14 Tom Tromey <tom@tromey.com>
12181
12182 * solib.c: Include source.h.
12183 * nto-tdep.c: Include source.h.
12184 * mi/mi-cmd-env.c: Include source.h.
12185 * infcmd.c: Include source.h.
12186 * exec.c: Include source.h.
12187 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12188 (add_path, directory_switch, source_path, init_source_path): Move
12189 declarations...
12190 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12191 (add_path, directory_switch, source_path, init_source_path):
12192 ...here.
12193
797bc1cb
TT
121942018-02-14 Tom Tromey <tom@tromey.com>
12195
12196 * solist.h (exec_file_find, solib_find): Return
12197 unique_xmalloc_ptr.
12198 (solib_bfd_fopen): Take a const char *.
12199 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12200 (exec_file_find, solib_find): Likewise.
12201 (solib_bfd_fopen): Do not take ownership of "pathname".
12202 (solib_bfd_open): Use unique_xmalloc_ptr.
12203 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12204 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12205 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12206 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12207
f98b2e33
JB
122082018-02-14 Joel Brobecker <brobecker@adacore.com>
12209
12210 * ada-lang.c (name_match_type_from_name): Remove reference to
12211 ada_name_for_lookup in function's documentation.
12212 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12213
24b9144d
SM
122142018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12215
12216 * defs.h (enum openp_flags): New enum.
12217 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12218 Move to enum openp_flags.
12219 (openp_flags): New enum flags.
12220 (openp): Change parameter type to openp_flags.
12221 * source.c (openp): Change parameter type to openp_flags.
12222 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12223 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12224
387cd15b
SM
122252018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12226
12227 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12228 per-command.
12229
b303c6f6
AB
122302018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12231
12232 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12233 into...
12234 (class dwarf2_queue_guard): ...the destructor of this new class.
12235 (dw2_do_instantiate_symtab): Create instance of the new class
12236 dwarf2_queue_guard, remove cleanup.
12237
9c3630e9
TT
122382018-02-09 Tom Tromey <tom@tromey.com>
12239
12240 * source.c (find_source_lines): Don't reference past the end of
12241 the vector.
12242
c4e12631
MM
122432018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12244
12245 * remote.c (remote_btrace_maybe_reopen): Change error message.
12246 * btrace.c (btrace_enable): Likewise.
12247 (parse_xml_btrace): Likewise.
12248 (parse_xml_btrace_conf): Likewise.
12249
88711fbf
MM
122502018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12251
12252 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12253 (linux_enable_pt, linux_enable_bts): Call
12254 diagnose_perf_event_open_fail.
12255
17ad2a4f
MM
122562018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12257
12258 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12259 Remove parameter and change return type. Update callers. Move it.
12260 (linux_enable_bts, linux_enable_pt): Improve error message.
12261 (linux_enable_pt): Remove zero buffer size check.
12262 (linux_enable_btrace): Improve error messages. Remove NULL return
12263 check.
12264
de6242d3
MM
122652018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12266
12267 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12268 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12269 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12270 (linux_supports_pt, linux_supports_btrace): Remove.
12271 (linux_enable_bts): Call cpu_supports_bts.
12272 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12273 * remote.c (remote_supports_btrace): Remove.
12274 (init_remote_ops): Remove remote_supports_btrace.
12275 * target-delegates.c: Regenerated.
12276 * target.c (target_supports_btrace): Remove.
12277 * target.h (target_ops) <to_supports_btrace>: Remove
12278 (target_supports_btrace): Remove.
12279 * x86-linux-nat.c (x86_linux_create_target): Remove
12280 linux_supports_btrace.
12281
9ee23a85
MM
122822018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12283
12284 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12285 btrace failed.
12286 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12287 exception and use message in own exception.
12288
5c3284c1
MM
122892018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12290
12291 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12292 (perf_event_pt_event_type): Use gdb_file_up.
12293 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12294 scoped_fd, and scoped_mmap.
12295
84696f37
MM
122962018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12297
12298 * common/scoped_mmap.h: New.
12299 * unittests/scoped_mmap-selftest.c: New.
12300 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12301 unittests/scoped_mmap-selftest.c.
12302
ea4a0888
MM
123032018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12304
12305 * common/scoped_fd.h: New.
12306 * unittests/scoped_fd-selftest.c: New.
12307 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12308 unittests/scoped_fd-selftest.c.
12309
869e8290
TT
123102018-02-09 Tom Tromey <tom@tromey.com>
12311
12312 * auto-load.c (auto_load_section_scripts): Use
12313 gdb::unique_xmalloc_ptr.
12314
a37a2ae7
TT
123152018-02-09 Tom Tromey <tom@tromey.com>
12316
12317 * auto-load.c (execute_script_contents): Use std::string.
12318
4e725347
JB
123192018-02-09 Joel Brobecker <brobecker@adacore.com>
12320
12321 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12322 Python function, rather than a new command.
12323
9a897d43
TT
123242018-02-08 Tom Tromey <tom@tromey.com>
12325
12326 * solib.c (solib_find_1): Use std::string.
12327 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12328
58ef3771
TT
123292018-02-08 Tom Tromey <tom@tromey.com>
12330
12331 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12332
a9abc434
TT
123332018-02-08 Tom Tromey <tom@tromey.com>
12334
12335 * source.c (find_source_lines): Use gdb::def_vector.
12336
84f27c6f
TT
123372018-02-08 Tom Tromey <tom@tromey.com>
12338
12339 * macrocmd.c (struct temporary_macro_definition): New.
12340 (macro_define_command): Use temporary_macro_definition. Remove
12341 cleanups.
12342 (free_macro_definition_ptr): Remove.
12343
0354904b
TT
123442018-02-08 Tom Tromey <tom@tromey.com>
12345
12346 * macroexp.c (maybe_expand): Use std::string.
12347
1739cf24
TT
123482018-02-08 Tom Tromey <tom@tromey.com>
12349
12350 * macroexp.c (struct macro_buffer): Add initializers for some
12351 members.
12352 (init_buffer, init_shared_buffer, free_buffer)
12353 (free_buffer_return_text): Remove.
12354 (macro_buffer): New constructors.
12355 (~macro_buffer): New destructor.
12356 (macro_buffer::set_shared): New method.
12357 (macro_buffer::resize_buffer, macro_buffer::appendc)
12358 (macro_buffer::appendmem): Now methods, not free functions.
12359 (set_token, append_tokens_without_splicing, stringify)
12360 (macro_stringify): Update.
12361 (gather_arguments): Change return type. Remove argc_p argument,
12362 add args_ptr argument. Use std::vector.
12363 (substitute_args): Remove argc argument. Accept std::vector.
12364 (expand): Update. Use std::vector.
12365 (scan, macro_expand, macro_expand_next): Update.
12366
f6c2623e
TT
123672018-02-08 Tom Tromey <tom@tromey.com>
12368
12369 * symtab.c (default_collect_symbol_completion_matches_break_on):
12370 Use unique_xmalloc_ptr.
12371 * macroscope.h: (sal_macro_scope, user_macro_scope)
12372 (default_macro_scope): Return unique_xmalloc_ptr.
12373 * macroscope.c (sal_macro_scope, user_macro_scope)
12374 (default_macro_scope): Return unique_xmalloc_ptr.
12375 * macroexp.h (macro_expand, macro_expand_once): Return
12376 unique_xmalloc_ptr.
12377 * macroexp.c (macro_expand, macro_expand_once): Return
12378 unique_xmalloc_ptr.
12379 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12380 (info_macro_command, info_macros_command): Use
12381 unique_xmalloc_ptr.
12382 * compile/compile-c-support.c (write_macro_definitions): Use
12383 unique_xmalloc_ptr.
12384 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12385
c2e0e465
SM
123862018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12387
12388 * value.c (value_static_field): Assign field type instead of
12389 containing type when returning an optimized out value.
12390
3f8c94b4
YQ
123912018-02-06 Yao Qi <yao.qi@linaro.org>
12392
12393 * ft32-tdep.c (ft32_read_pc): Remove.
12394 (ft32_write_pc): Remove.
12395 (ft32_gdbarch_init): Update.
12396 * m32r-tdep.c (m32r_read_pc): Remove.
12397 (m32r_gdbarch_init): Update.
12398 * mep-tdep.c (mep_read_pc): Remove.
12399 (mep_gdbarch_init): Update.
12400 * microblaze-tdep.c (microblaze_write_pc): Remove.
12401 (microblaze_gdbarch_init): Update.
12402 * mn10300-tdep.c (mn10300_read_pc): Remove.
12403 (mn10300_write_pc): Remove.
12404 (mn10300_gdbarch_init): Update.
12405 * moxie-tdep.c (moxie_read_pc): Remove.
12406 (moxie_write_pc): Remove.
12407 (moxie_gdbarch_init): Update.
12408
bca65a23
YQ
124092018-02-06 Yao Qi <yao.qi@linaro.org>
12410
12411 * expprint.c (print_subexp_standard): Handle
12412 OP_F77_UNDETERMINED_ARGLIST.
12413 (dump_subexp_body_standard): Likewise.
12414
583e3f90 124152018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 12416
583e3f90
YQ
12417 * target-descriptions.c (tdesc_element_visitor) Add empty
12418 implementations.
b8df6ca7
AH
12419 (tdesc_type): Move make_gdb_type from here.
12420 (tdesc_type_builtin): Likewise.
12421 (tdesc_type_vector): Likewise.
12422 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12423 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12424 (make_gdb_type_union): Likewise.
12425 (make_gdb_type_flags): Likewise.
12426 (make_gdb_type_enum): Likewise.
12427 (make_gdb_type): New function.
12428 (tdesc_register_type): Use static make_gdb_type.
12429
e813d34a
RK
124302018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12431
12432 * infcmd.c (default_print_one_register_info): Align natural-format
12433 column values consistently one under another.
12434 (pad_to_column): New function.
12435
0eb876f5
JB
124362018-02-05 Joel Brobecker <brobecker@adacore.com>
12437
12438 * dwarf2read.c (dwarf2_physname): Move commment.
12439
0625771b
LS
124402018-02-01 Leszek Swirski <leszeks@google.com>
12441
12442 * varobj.c (varobj_formatted_print_options): Allow recursive
12443 pretty printing if pretty printing is enabled.
12444
59498c30
LS
124452018-02-01 Leszek Swirski <leszeks@google.com>
12446
12447 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12448 names after a structop as a filename.
12449
2d9e6acb
YQ
124502018-02-01 Yao Qi <yao.qi@linaro.org>
12451
12452 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12453 (arm_record_coproc_data_proc): Likewise.
12454
df95a9cf
YQ
124552018-02-01 Yao Qi <yao.qi@linaro.org>
12456
12457 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12458
07e5f5cf
NP
124592018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12460
12461 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12462 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12463
3045b475
PA
124642018-01-31 Pedro Alves <palves@redhat.com>
12465
12466 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12467 * inflow.c (child_terminal_save_inferior): Wrap reference to
12468 tcgetpgrp in HAVE_TERMIOS_H.
12469 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12470 _WIN32.
12471 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12472 always iterate over all inferiors.
12473 (gdbsim_cntrl_c): Adjust.
12474 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12475
929b5ad4
JB
124762018-01-31 Joel Brobecker <brobecker@adacore.com>
12477
12478 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12479 index type is objfile-owned if the element type is as well.
12480
29236ca2
JB
124812018-01-31 Joel Brobecker <brobecker@adacore.com>
12482
12483 GDB 8.1 released.
12484
c81e8879
PR
124852018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12486
12487 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12488 "features/s390x-linux64.c".
12489 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12490 s390_linux32 and s390x_linux64.
12491 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12492 default tdesc.
12493 * s390-tdep.c: Include "features/s390-linux32.c" and
12494 "features/s390x-linux64.c".
12495 (s390_tdesc_valid): Add check for tdesc_has_registers.
12496 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12497 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12498 tdesc_s390x_linux64.
12499 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12500 tdesc_s390x_linux64 to...
12501 * s390-tdep.h: ...here.
12502
e671cd59
PA
125032018-01-30 Pedro Alves <palves@redhat.com>
12504
12505 PR gdb/13211
12506 * config.in, configure: Regenerate.
12507 * configure.ac: Check for getpgid.
12508 * go32-nat.c (go32_pass_ctrlc): New.
12509 (go32_target): Install it.
12510 * inf-child.c (inf_child_target): Install
12511 child_terminal_save_inferior, child_pass_ctrlc and
12512 child_interrupt.
12513 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12514 (inf_ptrace_target): No longer install it.
12515 * infcmd.c (interrupt_target_1): Adjust.
12516 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12517 (child_interrupt): Declare.
12518 (inferior::terminal_state): New.
12519 * inflow.c (struct terminal_info): Update comments.
12520 (inferior_process_group): Delete.
12521 (terminal_is_ours): Delete.
12522 (gdb_tty_state): New.
12523 (child_terminal_init): Adjust.
12524 (is_gdb_terminal, sharing_input_terminal_1)
12525 (sharing_input_terminal): New functions.
12526 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12527 Set the process's actual process group in the foreground if
12528 possible. Handle is_ours_for_output/is_ours distinction. Don't
12529 mark terminal as the inferior's if not sharing GDB's terminal.
12530 Don't check attach_flag.
12531 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12532 pass down a target_terminal_state.
12533 (child_terminal_save_inferior): New, factored out from ...
12534 (child_terminal_ours_1): ... this. Handle
12535 target_terminal_state::is_ours_for_output.
12536 (child_interrupt, child_pass_ctrlc): New.
12537 (inflow_inferior_exit): Clear the inferior's terminal_state.
12538 (copy_terminal_info): Copy the inferior's terminal state.
12539 (_initialize_inflow): Remove reference to terminal_is_ours.
12540 * inflow.h (inferior_process_group): Delete.
12541 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12542 * procfs.c (procfs_target): Don't install procfs_interrupt.
12543 (procfs_interrupt): Delete.
12544 * remote.c (remote_serial_quit_handler): Adjust.
12545 (remote_interrupt): Remove ptid parameter. Adjust.
12546 * target-delegates.c: Regenerate.
12547 * target.c: Include "terminal.h".
12548 (target_terminal::terminal_state): Rename to ...
12549 (target_terminal::m_terminal_state): ... this.
12550 (target_terminal::init): Adjust.
12551 (target_terminal::inferior): Adjust to per-inferior
12552 terminal_state.
12553 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12554 (target_terminal::ours, target_terminal::ours_for_output): Use
12555 target_terminal_is_ours_kind.
12556 (target_interrupt): Remove ptid parameter. Adjust.
12557 (default_target_pass_ctrlc): Adjust.
12558 * target.h (target_ops::to_terminal_save_inferior): New field.
12559 (target_ops::to_interrupt): Remove ptid_t parameter.
12560 (target_interrupt): Remove ptid_t parameter. Update comment.
12561 (target_pass_ctrlc): Update comment.
12562 * target/target.h (target_terminal_state): New scoped enum,
12563 factored out of ...
12564 (target_terminal::terminal_state): ... here.
12565 (target_terminal::inferior): Update comments.
12566 (target_terminal::restore_inferior): New.
12567 (target_terminal::is_inferior, target_terminal::is_ours)
12568 (target_terminal::is_ours_for_output): Adjust.
12569 (target_terminal::scoped_restore_terminal_state): Adjust to
12570 rename, and call restore_inferior() instead of inferior().
12571 (target_terminal::scoped_restore_terminal_state::m_state): Change
12572 type.
12573 (target_terminal::terminal_state): Rename to ...
12574 (target_terminal::m_terminal_state): ... this and change type.
12575
9c3a5d93
PA
125762018-01-30 Pedro Alves <palves@redhat.com>
12577
12578 * linux-nat.c (wait_for_signal): New function.
12579 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12580 directly.
12581 (async_terminal_is_ours)
12582 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12583 (linux_nat_add_target): Don't override
12584 to_terminal_inferior/to_terminal_ours.
12585
69ab5edb
SDJ
125862018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12587
12588 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12589
fc8e7e75
SM
125902018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12591
12592 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12593 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12594 dwarf2_per_objfile_free here.
12595 (dwarf2_per_objfile_free): Remove.
12596 (_initialize_dwarf2_read): Don't register
12597 dwarf2_per_objfile_free as a registry cleanup.
12598
b2a426e2
EZ
125992018-01-27 Eli Zaretskii <eliz@gnu.org>
12600
12601 Avoid compilation errors in MinGW native builds
12602
12603 The error is triggered by including python-internal.h, and the
12604 error message is:
12605
12606 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12607 from build-gnulib/import/math.h:27,
12608 from d:/usr/Python26/include/pyport.h:235,
12609 from d:/usr/Python26/include/Python.h:58,
12610 from python/python-internal.h:94,
12611 from python/py-arch.c:24:
12612 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12613 using ::hypot;
12614 ^~~~~
12615
12616 This happens because Python headers define 'hypot' to expand t
12617 '_hypot' in the Windows builds.
12618 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12619 'hypoth'. This avoids a compilation error.
12620
0bdd8eac
AH
126212018-01-26 Alan Hayward <alan.hayward@arm.com>
12622
12623 * MAINTAINERS (Write After Approval): Fix ordering.
12624
56ae9dc3
AH
126252018-01-26 Alan Hayward <alan.hayward@arm.com>
12626
12627 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12628
7433498b
AM
126292018-01-26 Alan Modra <amodra@gmail.com>
12630
12631 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12632 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12633 Remove nop. Make const. Comment.
12634 (powerpc32_plt_stub_so_2): New.
12635 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12636 Correct count. Update uses.
12637 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12638 Move common code reading PLT entry word. Correct
12639 powerpc32_plt_stub PLT address calculation.
12640 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12641 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12642 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12643 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12644 (ppc64_standard_linkage8): Likewise.
12645 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12646 Correct insns description.
12647 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12648
0f59d5fc
PA
126492018-01-24 Pedro Alves <palves@redhat.com>
12650
12651 GCC PR libstdc++/83906
12652 * gdbtypes.c (operator==(const dynamic_prop &,
12653 const dynamic_prop &)): New.
12654 (operator==(const range_bounds &, const range_bounds &)): New.
12655 (check_types_equal): Use them instead of memcmp.
12656 * gdbtypes.h (operator==(const dynamic_prop &,
12657 const dynamic_prop &)): Declare.
12658 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12659 (operator==(const range_bounds &, const range_bounds &)): Declare.
12660 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12661
ef8914a4
PR
126622018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12663
12664 * s390-linux-tdep.c (s390_record_address_mask)
12665 (s390_record_calc_disp_common, s390_record_calc_disp)
12666 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12667 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12668 (s390_process_record): Move to s390-tdep.c.
12669 (s390_linux_init_abi_any): Adjust.
12670 * s390-tdep.c (s390_record_address_mask)
12671 (s390_record_calc_disp_common, s390_record_calc_disp)
12672 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12673 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12674 (s390_process_record): Moved from s390-linux-tdep.c
12675 (s390_gdbarch_init): Adjust.
12676
d6e58945
PR
126772018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12678
12679 * s390-linux-nat.c (s390-tdep.h): New include.
12680 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12681 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12682 (ALLDEPFILES): Add s390-tdep.c.
12683 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12684 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12685 * s390-tdep.h: ...this. New file.
12686 * s390-linux-tdep.c (s390-tdep.h): New include.
12687 (_initialize_s390_tdep): Rename to...
12688 (_initialize_s390_linux_tdep): ...this and adjust.
12689 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12690 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12691 s390-tdep.h.
12692 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12693 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12694 (s390_is_partial_instruction, s390_software_single_step)
12695 (is_non_branch_ril, s390_displaced_step_copy_insn)
12696 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12697 (s390_prologue_data, s390_addr, s390_store, s390_load)
12698 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12699 (s390_register_call_saved, s390_guess_tracepoint_registers)
12700 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12701 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12702 (s390_pseudo_register_name, s390_pseudo_register_type)
12703 (s390_pseudo_register_read, s390_pseudo_register_write)
12704 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12705 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12706 (s390_addr_bits_remove, s390_address_class_type_flags)
12707 (s390_address_class_type_flags_to_name)
12708 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12709 (s390_function_arg_float, s390_function_arg_vector)
12710 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12711 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12712 (s390_frame_align, s390_register_return_value, s390_return_value)
12713 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12714 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12715 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12716 (s390_trad_frame_prev_register, s390_unwind_cache)
12717 (s390_prologue_frame_unwind_cache)
12718 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12719 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12720 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12721 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12722 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12723 (s390_frame_base_address, s390_local_base_address)
12724 (s390_frame_base, s390_gcc_target_options)
12725 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12726 (s390_validate_reg_range, s390_tdesc_valid)
12727 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12728 * s390-tdep.c: ...this. New file.
12729
9c0b896e
PR
127302018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12731
12732 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12733 (s390_process_record, s390_gdbarch_tdep_alloc)
12734 (s390_linux_init_abi_any): Use/set new hook.
12735
7042632b
PR
127362018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12737
12738 * s390-linux-tdep.c (osabi.h): New include.
12739 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12740 (s390_linux_init_abi_any): New functions.
12741 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12742
650f5e13
PR
127432018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12744
12745 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12746 tdesc_has_registers check
12747
47c9317e
PR
127482018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12749
12750 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12751 (s390_validate_reg_range): New macro.
12752 (s390_gdbarch_init): Adjust.
12753
095085d8
PR
127542018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12755
12756 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12757 (s390_gdbarch_tdep_alloc): Adjust.
12758 (s390_gdbarch_init): Adjust.
12759
ab9bcc67
PR
127602018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12761
12762 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12763 <have_tdb>: Change type to bool.
12764 (s390_gdbarch_tdep_alloc): Adjust.
12765 (s390_gdbarch_init): Adjust.
12766
21f6f5ff
PR
127672018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12768
12769 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12770 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12771 (s390_gdbarch_tdep_alloc): New function.
12772 (s390_gdbarch_init): Allocate tdep at start and use its fields
12773 instead of separate variables.
12774
0eb97953
PR
127752018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12776
12777 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12778 when looking for cached gdbarch and add comment for remaining.
12779
5c319bb2
PA
127802018-01-22 Pedro Alves <palves@redhat.com>
12781 Sergio Durigan Junior <sergiodj@redhat.com>
12782
12783 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12784 case.
12785
d65ce302
MR
127862018-01-22 Maciej W. Rozycki <macro@mips.com>
12787
12788 * MAINTAINERS: Update my company e-mail address.
12789
ec7a5fcb
YQ
127902018-01-22 Yao Qi <yao.qi@linaro.org>
12791
12792 * regcache.c (cooked_write_test): New function.
12793 (_initialize_regcache): Register the test.
12794
11f57cb6
YQ
127952018-01-22 Yao Qi <yao.qi@linaro.org>
12796
12797 * ia64-tdep.c (ia64_pseudo_register_read): Call
12798 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12799 * m32c-tdep.c (m32c_cat_read): Likewise.
12800 (m32c_r3r2r1r0_read): Likewise.
12801 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12802 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12803
03f50fc8
YQ
128042018-01-22 Yao Qi <yao.qi@linaro.org>
12805
12806 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12807 method raw_read instead of regcache_raw_read.
12808 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12809 * arm-tdep.c (arm_neon_quad_read): Likewise.
12810 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12811 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12812 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12813 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12814 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12815 (i386_pseudo_register_read_into_value): Likewise.
12816 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12817 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12818 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12819 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12820 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12821 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12822 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12823 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12824 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12825
dc711524
YQ
128262018-01-22 Yao Qi <yao.qi@linaro.org>
12827
12828 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12829 * configure.tgt: Remove target mt.
12830 * mt-tdep.c: Remove.
12831 * regcache.c (cooked_read_test): Remove the check for mt.
12832
3f5a868b
YQ
128332018-01-22 Yao Qi <yao.qi@linaro.org>
12834
12835 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12836 instead of gdbarch_pseudo_register_read_value.
12837
de4cb04a
JB
128382018-01-22 Joel Brobecker <brobecker@adacore.com>
12839
12840 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12841 language is Ada.
12842
a9e40818
JB
128432018-01-22 Joel Brobecker <brobecker@adacore.com>
12844
12845 * linespec.c (create_sals_line_offset): Remove code that preserved
12846 the symtab_and_line's line number.
12847
e707fc44
AB
128482018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12849
12850 * varobj.c (varobj_create): Don't set valid_block when creating a
12851 floating varobj.
12852
03d0bf7b
AB
128532018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12854
12855 * varobj.c (varobj_create): Remove out of date comment.
12856
ae451627
AB
128572018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12858
12859 PR mi/20395
12860 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12861 updating innermost block.
12862 * parse.c (innermost_block_tracker::update): Take extra type
12863 parameter, and check types match before updating innermost block.
12864 (write_dollar_variable): Update innermost block for registers.
12865 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12866 (innermost_block_tracker::innermost_block_tracker): Initialise
12867 m_types member.
12868 (innermost_block_tracker::reset): Take type parameter.
12869 (innermost_block_tracker::update): Take type parameter, and pass
12870 type through as needed.
12871 (innermost_block_tracker::m_types): New member.
12872 * varobj.c (varobj_create): Pass type when reseting innermost
12873 block.
12874
aee1fcdf
AB
128752018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12876
12877 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12878 * ada-lang.c (resolve_subexp): Likewise.
12879 * breakpoint.c (set_breakpoint_condition) Likewise.
12880 (watch_command_1) Likewise.
12881 * c-exp.y (variable): Likewise.
12882 * d-exp.y (PrimaryExpression): Likewise.
12883 * f-exp.y (variable): Likewise.
12884 * go-exp.y (variable): Likewise.
12885 * m2-exp.y (variable): Likewise.
12886 * objfiles.c (objfile::~objfile): Likewise.
12887 * p-exp.y (variable): Likewise.
12888 * parse.c (innermost_block): Change type.
12889 * parser-defs.h (class innermost_block_tracker): New.
12890 (innermost_block): Change to innermost_block_tracker.
12891 * printcmd.c (display_command): Switch to innermost_block API.
12892 (do_one_display): Likewise.
12893 * rust-exp.y (do_one_display): Likewise.
12894 * symfile.c (clear_symtab_users): Likewise.
12895 * varobj.c (varobj_create): Switch to innermost_block API, replace
12896 use of innermost_block with block stored on varobj object.
12897
396af9a1
AB
128982018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12899
12900 * expression.h (innermost_block): Remove declaration.
12901 * varobj.c: Add 'parser-defs.h' include.
12902
fcfcc376
TT
129032018-01-19 Tom Tromey <tom@tromey.com>
12904
12905 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12906 symbols in the static and global blocks.
12907
5a6c3296
JC
129082018-01-19 James Clarke <jrtc27@jrtc27.com>
12909
12910 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12911 gdb_ptrace.h, and move including gdb_wait.h ...
12912 * nat/linux-ptrace.h: ... to here.
12913
bc09b0c1
SM
129142018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12915
12916 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12917 inf_ptrace_detach_success.
12918 (inf_ptrace_detach_success): Add inferior parameter, use it
12919 instead of inferior_ptid, pass it to detach_inferior.
12920 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12921 parameter.
12922 * inferior.c (detach_inferior): Add overload that takes an
12923 inferior object.
12924 * inferior.h (detach_inferior): Likewise.
12925 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12926 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12927 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12928
6e1e1966
SM
129292018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12930
12931 * target.h (struct target_ops) <to_detach>: Add inferior
12932 parameter.
12933 (target_detach): Likewise.
12934 * target.c (dispose_inferior): Pass inferior down.
12935 (target_detach): Pass inferior down. Assert that it is equal to
12936 the current inferior.
12937 * aix-thread.c (aix_thread_detach): Pass inferior down.
12938 * corefile.c (core_file_command): Pass current_inferior() down.
12939 * corelow.c (core_detach): Add inferior parameter.
12940 * darwin-nat.c (darwin_detach): Likewise.
12941 * gnu-nat.c (gnu_detach): Likewise.
12942 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12943 * infcmd.c (detach_command): Pass current_inferior() down to
12944 target_detach.
12945 * infrun.c (follow_fork_inferior): Pass parent_inf to
12946 target_detach.
12947 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12948 target_detach.
12949 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12950 * linux-thread-db.c (thread_db_detach): Likewise.
12951 * nto-procfs.c (procfs_detach): Likewise.
12952 * procfs.c (procfs_detach): Likewise.
12953 * record.c (record_detach): Likewise.
12954 * record.h (struct inferior): Forward-declare.
12955 (record_detach): Add inferior parameter.
12956 * remote-sim.c (gdbsim_detach): Likewise.
12957 * remote.c (remote_detach_1): Likewise.
12958 (remote_detach): Likewise.
12959 (extended_remote_detach): Likewise.
12960 * sol-thread.c (sol_thread_detach): Likewise.
12961 * target-debug.h (target_debug_print_inferior_p): New macro.
12962 * target-delegates.c: Re-generate.
12963 * top.c (kill_or_detach): Pass inferior down to target_detach.
12964 * windows-nat.c (windows_detach): Add inferior parameter.
12965
6bd6f3b6
SM
129662018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12967
12968 * target.h (struct target_ops) <to_detach>: Remove args
12969 parameter.
12970 (target_detach): Likewise.
12971 * target.c (dispose_inferior): Adjust.
12972 (target_detach): Remove args parameter, adjust.
12973 * aix-thread.c (aix_thread_detach): Adjust.
12974 * corefile.c (core_file_command): Adjust.
12975 * corelow.c (core_detach): Adjust.
12976 * darwin-nat.c (darwin_detach): Adjust.
12977 * gnu-nat.c (gnu_detach): Adjust.
12978 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12979 * infcmd.c (detach_command): Adjust
12980 * infrun.c (follow_fork_inferior): Adjust.
12981 (handle_vfork_child_exec_or_exit): Adjust.
12982 * linux-fork.c (linux_fork_detach): Remove args parameter.
12983 * linux-fork.h (linux_fork_detach): Likewise.
12984 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12985 * linux-thread-db.c (thread_db_detach): Likewise.
12986 * nto-procfs.c (procfs_detach): Likewise.
12987 * procfs.c (procfs_detach): Likewise.
12988 (do_detach): Remove signo parameter.
12989 * record.c (record_detach): Remove args parameter.
12990 * record.h (record_detach): Likewise.
12991 * remote-sim.c (gdbsim_detach): Likewise.
12992 * remote.c (remote_detach_1): Likewise.
12993 (remote_detach): Likewise.
12994 (extended_remote_detach): Likewise.
12995 * sol-thread.c (sol_thread_detach): Likewise.
12996 * target-delegates.c: Re-generate.
12997 * top.c (struct qt_args) <args>: Remove field.
12998 (kill_or_detach): Don't pass args.
12999 (quit_force): Don't set args.
13000 * windows-nat.c (windows_detach): Remove args parameter.
13001
88af8ea8
YQ
130022018-01-19 Yao Qi <yao.qi@linaro.org>
13003
13004 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13005 (arm_linux_init_abi): Install it.
13006
dea445b9
YQ
130072018-01-19 Yao Qi <yao.qi@linaro.org>
13008
13009 * osabi.c (gdb_osabi_names): Extend the regexp for
13010 arm-linux-gnueabihf.
13011
4a17f768
YQ
130122018-01-18 Yao Qi <yao.qi@linaro.org>
13013
13014 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13015 m_abbrevs.
13016 (abbrev_table::add_abbrev): Update.
13017 (abbrev_table::lookup_abbrev): Update.
13018
d679c21a
YQ
130192018-01-18 Yao Qi <yao.qi@linaro.org>
13020
13021 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13022
7d937cad
SDJ
130232018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13024
13025 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13026 to "std::string".
13027
9e14690d
TT
130282018-01-17 Tom Tromey <tom@tromey.com>
13029
13030 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13031
50a82047
TT
130322018-01-17 Tom Tromey <tom@tromey.com>
13033
13034 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13035 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13036 (create_array_type_with_stride): Update.
13037 * dwarf2read.c (set_die_type): Update.
13038
c89b44cd
TT
130392018-01-17 Tom Tromey <tom@tromey.com>
13040
13041 * dwarf2read.c (delayed_method_info): Remove typedef.
13042 (dwarf2_cu::method_info): Now a std::vector.
13043 (add_to_method_list): Update.
13044 (free_delayed_list): Remove.
13045 (compute_delayed_physnames): Update.
13046 (process_full_comp_unit, process_full_type_unit): Clear the method
13047 list. Remove cleanups.
13048 (psymtab_include_file_name): Add name_holder parameter. Use
13049 unique_xmalloc_ptr.
13050 (dwarf_decode_lines): Update.
13051
fcd3b13d
SM
130522018-01-17 Tom Tromey <tom@tromey.com>
13053 Simon Marchi <simon.marchi@ericsson.com>
13054
13055 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13056 (dwarf2_per_objfile::free_cached_comp_units)
13057 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13058 (init_cutu_and_read_dies_no_follow): Update.
13059 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13060 (dwarf2_cu::~dwarf2_cu): New.
13061 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13062 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13063
685af9cd
TT
130642018-01-17 Tom Tromey <tom@tromey.com>
13065 Simon Marchi <simon.marchi@ericsson.com>
13066
13067 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13068 (struct die_reader_specs) <abbrev_table>: New member.
13069 (struct abbrev_table): Add constructor.
13070 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13071 <abbrev_obstack>: Now an auto_obstack.
13072 (abbrev_table_up): New typedef.
13073 (init_cu_die_reader): Add abbrev_table parameter.
13074 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13075 Add result_dwo_abbrev_table.
13076 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13077 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13078 Update.
13079 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13080 parameter.
13081 (skip_children): Update.
13082 (abbrev_table::alloc_abbrev): Rename from
13083 abbrev_table_alloc_abbrev.
13084 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13085 (abbrev_table::lookup_abbrev): Rename from
13086 abbrev_table_lookup_abbrev.
13087 (abbrev_table_read_table): Return abbrev_table_up.
13088 (abbrev_table_free, abbrev_table_free_cleanup)
13089 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13090 (load_partial_dies): Update.
13091
5e2db402
TT
130922018-01-17 Tom Tromey <tom@tromey.com>
13093
13094 * dwarf2read.c (dwarf2_compute_name): Update comment.
13095 (read_func_scope, read_variable): Update.
13096 (new_symbol): Remove.
13097 (new_symbol_full): Rename to new_symbol.
13098
ee7f689e 130992018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
13100
13101 PR gdb/16577
13102 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13103 a warning instead of throwing an error, set section size to 0 and return
13104 NULL.
13105 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13106
4d9b86e1
SM
131072018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13108
13109 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13110 std::string.
13111 (linux_ptrace_attach_fail_reason_string): Likewise.
13112 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13113 Likewise.
13114 (linux_ptrace_attach_fail_reason_string): Likewise.
13115 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13116
a7b2d0fb
SM
131172018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13118
13119 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13120
f517c180
EA
131212018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13122
13123 PR gdb/21559
13124 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13125 checking for fs_base/gs_base fields in struct user_regs_struct.
13126 * configure: Regenerate.
13127
7045b1ca
YQ
131282018-01-17 Yao Qi <yao.qi@linaro.org>
13129
13130 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13131 function.
13132 (aarch64_linux_init_abi): Install it to gdbarch hook
13133 gcc_target_options.
13134
db422fb2
PA
131352018-01-15 Pedro Alves <palves@redhat.com>
13136
13137 * common/signals-state-save-restore.c
13138 (save_original_signals_state): Fix typos.
13139
ba643918
SDJ
131402017-01-12 Tom Tromey <tom@tromey.com>
13141 Sergio Durigan Junior <sergiodj@redhat.com>
13142
13143 * Makefile.in (install-only): Install gdb-add-index.
13144
906b4aac
JB
131452018-01-12 John Baldwin <jhb@FreeBSD.org>
13146
13147 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13148
bdf2a94a
AA
131492018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13150
13151 * infrun.c (keep_going_pass_signal): Clear step-over info when
13152 insert_breakpoints fails.
13153
71d378ae
PA
131542018-01-11 Pedro Alves <palves@redhat.com>
13155
13156 PR gdb/22583
13157 * infrun.c (resume): Rename to ...
13158 (resume_1): ... this.
13159 (resume): Reimplement as wrapper around resume_1.
13160
3cada740
PA
131612018-01-11 Pedro Alves <palves@redhat.com>
13162
13163 PR remote/22597
13164 * remote.c (remote_parse_stop_reply): Default to the last-set
13165 general thread instead of to 'magic_null_ptid'.
13166
618daa93
PA
131672018-01-10 Pedro Alves <palves@redhat.com>
13168
13169 * language.h (language_get_symbol_name_matcher): Rename ...
13170 (get_symbol_name_matcher): ... this.
13171 * language.c (language_get_symbol_name_matcher): Ditto.
13172 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13173 callers adjusted.
13174
c63d3e8d
PA
131752018-01-10 Pedro Alves <palves@redhat.com>
13176
13177 PR gdb/22670
13178 * dwarf2read.c
13179 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13180 Adjust to use language_get_symbol_name_matcher instead of
13181 language_defn::la_get_symbol_name_matcher.
13182 * language.c (language_get_symbol_name_matcher): If in Ada mode
13183 and the lookup name is a verbatim match, return Ada's matcher.
13184 * language.h (language_get_symbol_name_matcher): Adjust comment.
13185 (ada_lookup_name_info::verbatim_p):: New method.
13186
d4c2a405
PA
131872018-01-10 Pedro Alves <palves@redhat.com>
13188
13189 PR gdb/22670
13190 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13191 minsym's language is language_auto or language_cplus, pass down
13192 language_ada instead.
13193 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13194
8825213e
PA
131952018-01-10 Pedro Alves <palves@redhat.com>
13196
13197 PR gdb/22670
13198 * minsyms.c (linkage_name_str): New function.
13199 (iterate_over_minimal_symbols): Use it.
13200
2d97a5d9
JB
132012018-01-09 John Baldwin <jhb@FreeBSD.org>
13202
13203 * NEWS: Document that 'info proc' now works on FreeBSD.
13204
92fce24d
JB
132052018-01-09 John Baldwin <jhb@FreeBSD.org>
13206
13207 * configure.ac: Check for kinfo_getfile in libutil.
13208 * configure: Regenerate.
13209 * config.in: Regenerate.
13210 * fbsd-nat.c: Include "fbsd-tdep.h".
13211 (fbsd_fetch_cmdline): New.
13212 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13213 rather than calling error.
13214 (fbsd_info_proc): New.
13215 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13216 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13217 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13218
262f62f5
JB
132192018-01-09 John Baldwin <jhb@FreeBSD.org>
13220
13221 * fbsd-nat.c (struct free_deleter): Remove.
13222 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13223
b999e203
JB
132242018-01-09 John Baldwin <jhb@FreeBSD.org>
13225
13226 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13227 NULL for an empty pathname.
13228
d2176225
JB
132292018-01-09 John Baldwin <jhb@FreeBSD.org>
13230
13231 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13232 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13233 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13234 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13235 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13236 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13237 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13238 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13239 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13240 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13241 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13242 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13243 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13244 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13245 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13246
9c4ac400
ST
132472018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13248
13249 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13250 (gnu_xfer_auxv): New function.
13251 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13252 TARGET_OBJECT_AUXV.
13253
1e5ded6c
YQ
132542018-01-08 Yao Qi <yao.qi@linaro.org>
13255 Simon Marchi <simon.marchi@ericsson.com>
13256
13257 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13258 common/selftest.c.
13259 (COMMON_OBS): Remove selftest.o.
13260 * configure.ac: Append selftest-arch.c and common/selftest.c to
13261 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13262 * configure: Re-generated.
13263 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13264 GDB_SELF_TEST.
13265 (maintenance_info_selftests): Likewise.
13266
04bafb1e
XR
132672018-01-08 Xavier Roirand <roirand@adacore.com>
13268
13269 * ada-valprint.c (val_print_packed_array_elements): Use
13270 proper number of elements when printing an array indexed
13271 by an enumeration type.
13272
518817b3
SM
132732018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13274
13275 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13276 (dw2_get_file_names_reader): Adjust.
13277 (lookup_dwo_signatured_type): Adjust.
13278 (lookup_dwp_signatured_type): Adjust.
13279 (lookup_signatured_type): Adjust.
13280 (create_type_unit_group): Adjust.
13281 (get_type_unit_group): Adjust.
13282 (process_psymtab_comp_unit_reader): Adjust.
13283 (build_type_psymtabs_reader): Adjust.
13284 (scan_partial_symbols): Adjust.
13285 (add_partial_symbol): Adjust.
13286 (add_partial_subprogram): Adjust.
13287 (peek_die_abbrev): Adjust.
13288 (fixup_go_packaging): Adjust.
13289 (process_imported_unit_die): Adjust.
13290 (dwarf2_compute_name): Adjust.
13291 (dwarf2_physname): Adjust.
13292 (read_import_statement): Adjust.
13293 (handle_DW_AT_stmt_list): Adjust.
13294 (read_file_scope): Adjust.
13295 (read_func_scope): Adjust.
13296 (read_lexical_block_scope): Adjust.
13297 (read_call_site_scope): Adjust.
13298 (read_variable): Adjust.
13299 (dwarf2_rnglists_process): Adjust.
13300 (dwarf2_ranges_process): Adjust.
13301 (dwarf2_ranges_read): Adjust.
13302 (dwarf2_get_pc_bounds): Adjust.
13303 (dwarf2_record_block_ranges): Adjust.
13304 (dwarf2_add_field): Adjust.
13305 (dwarf2_add_member_fn): Adjust.
13306 (read_structure_type): Adjust.
13307 (process_structure_scope): Adjust.
13308 (read_enumeration_type): Adjust.
13309 (read_array_type): Adjust.
13310 (mark_common_block_symbol_computed): Adjust.
13311 (read_common_block): Adjust.
13312 (read_namespace_type): Adjust.
13313 (read_namespace): Adjust.
13314 (read_module_type): Adjust.
13315 (read_tag_pointer_type): Adjust.
13316 (read_tag_ptr_to_member_type): Adjust.
13317 (read_tag_string_type): Adjust.
13318 (read_subroutine_type): Adjust.
13319 (read_typedef): Adjust.
13320 (read_base_type): Adjust.
13321 (attr_to_dynamic_prop): Adjust.
13322 (read_subrange_type): Adjust.
13323 (read_unspecified_type): Adjust.
13324 (dwarf2_read_abbrevs): Adjust.
13325 (load_partial_dies): Adjust.
13326 (read_partial_die): Adjust.
13327 (find_partial_die): Adjust.
13328 (guess_partial_die_structure_name): Adjust.
13329 (fixup_partial_die): Adjust.
13330 (read_attribute_value): Adjust.
13331 (read_addr_index): Adjust.
13332 (read_addr_index_from_leb128): Adjust.
13333 (read_str_index): Adjust.
13334 (dwarf2_string_attr): Adjust.
13335 (get_debug_line_section): Adjust.
13336 (dwarf_decode_line_header): Adjust.
13337 (lnp_state_machine::check_line_address): Adjust.
13338 (dwarf_decode_lines_1): Adjust.
13339 (dwarf_decode_lines): Adjust.
13340 (dwarf2_start_symtab): Adjust.
13341 (var_decode_location): Adjust.
13342 (new_symbol_full): Adjust.
13343 (dwarf2_const_value_data): Adjust.
13344 (dwarf2_const_value_attr): Adjust.
13345 (dwarf2_const_value): Adjust.
13346 (die_type): Adjust.
13347 (die_containing_type): Adjust.
13348 (build_error_marker_type): Adjust.
13349 (lookup_die_type): Adjust.
13350 (guess_full_die_structure_name): Adjust.
13351 (anonymous_struct_prefix): Adjust.
13352 (determine_prefix): Adjust.
13353 (dwarf2_name): Adjust.
13354 (follow_die_ref_or_sig): Adjust.
13355 (follow_die_offset): Adjust.
13356 (follow_die_ref): Adjust.
13357 (follow_die_sig_1): Adjust.
13358 (follow_die_sig): Adjust.
13359 (get_signatured_type): Adjust.
13360 (get_DW_AT_signature_type): Adjust.
13361 (decode_locdesc): Adjust.
13362 (dwarf_decode_macros): Adjust.
13363 (cu_debug_loc_section): Adjust.
13364 (fill_in_loclist_baton): Adjust.
13365 (dwarf2_symbol_mark_computed): Adjust.
13366 (init_one_comp_unit): Don't assign
13367 dwarf2_cu::dwarf2_per_objfile.
13368 (set_die_type): Adjust.
13369
ed2dc618
SM
133702018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13371
13372 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13373 <dwarf2_per_objfile>: New field.
13374 (dwarf2_per_objfile): Remove global.
13375 (get_dwarf2_per_objfile): New function.
13376 (set_dwarf2_per_objfile): New function.
13377 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13378 dwarf2_per_objfile.
13379 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13380 (read_abbrev_offset): Likewise.
13381 (read_indirect_string): Likewise.
13382 (read_indirect_line_string): Likewise.
13383 (read_indirect_string_at_offset): Likewise.
13384 (read_indirect_string_from_dwz): Likewise.
13385 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13386 dwarf2_per_objfile.
13387 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13388 (create_all_comp_units): Change objfile parameter to
13389 dwarf2_per_objfile.
13390 (create_all_type_units): Likewise.
13391 (process_queue): Add dwarf2_per_objfile parameter.
13392 (read_and_check_comp_unit_head): Likewise.
13393 (lookup_dwo_unit_in_dwp): Likewise.
13394 (get_dwp_file): Likewise.
13395 (process_cu_includes): Likewise.
13396 (struct free_dwo_file_cleanup_data): New struct.
13397 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13398 set_dwarf2_per_objfile.
13399 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13400 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13401 context, adjust calls.
13402 (dw2_instantiate_symtab): Likewise.
13403 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13404 (dw2_get_cu): Likewise.
13405 (create_cu_from_index_list): Change objfile parameter to
13406 dwarf2_per_objfile.
13407 (create_cus_from_index_list): Get dwarf2_per_objfile from
13408 context, adjust calls.
13409 (create_cus_from_index): Likewise.
13410 (create_signatured_type_table_from_index): Change objfile
13411 parameter to dwarf2_per_objfile.
13412 (create_signatured_type_table_from_debug_names): Change objfile
13413 parameter to dwarf2_per_objfile.
13414 (create_addrmap_from_index): Likewise.
13415 (create_addrmap_from_aranges): Likewise.
13416 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13417 (dw2_setup): Remove.
13418 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13419 context.
13420 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13421 get_dwarf2_per_objfile.
13422 (dw2_forget_cached_source_info): Likewise.
13423 (dw2_map_symtabs_matching_filename): Likewise.
13424 (struct dw2_symtab_iterator) <index>: Remove.
13425 <dwarf2_per_objfile>: New field.
13426 (dw2_symtab_iter_init): Replace index parameter with
13427 dwarf2_per_objfile.
13428 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13429 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13430 (dw2_print_stats): Likewise.
13431 (dw2_dump): Likewise.
13432 (dw2_expand_symtabs_for_function): Likewise.
13433 (dw2_expand_all_symtabs): Likewise.
13434 (dw2_expand_symtabs_with_fullname): Likewise.
13435 (dw2_expand_marked_cus): Replace index and objfile parameters
13436 with dwarf2_per_objfile.
13437 (dw_expand_symtabs_matching_file_matcher): Add
13438 dwarf2_per_objfile parameter and adjust calls.
13439 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13440 adjust calls.
13441 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13442 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13443 adjust calls.
13444 (create_cus_from_debug_names_list): Replace objfile parameter
13445 with dwarf2_per_objfile and adjust calls.
13446 (create_cus_from_debug_names): Likewise.
13447 (dwarf2_read_debug_names): Likewise.
13448 (mapped_debug_names::namei_to_name): Adjust call.
13449 (dw2_debug_names_iterator::next): Likewise.
13450 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13451 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13452 (dw2_debug_names_dump): Likewise.
13453 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13454 (dw2_debug_names_expand_symtabs_matching): Likewise.
13455 (dwarf2_initialize_objfile): Likewise.
13456 (dwarf2_build_psymtabs): Likewise.
13457 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13458 this_cu.
13459 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13460 (read_and_check_comp_unit_head): Likewise.
13461 (read_abbrev_offset): Likewise.
13462 (create_debug_type_hash_table): Likewise.
13463 (create_debug_types_hash_table): Likewise.
13464 (create_all_type_units): Replace objfile parameter with
13465 dwarf2_per_objfile.
13466 (add_type_unit): Add dwarf2_per_objfile parameter.
13467 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13468 with dwarf2_per_objfile.
13469 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13470 (lookup_dwp_signatured_type): Likewise.
13471 (lookup_signatured_type): Likewise.
13472 (read_cutu_die_from_dwo): Likewise.
13473 (init_tu_and_read_dwo_dies): Likewise.
13474 (init_cutu_and_read_dies): Likewise.
13475 (init_cutu_and_read_dies_no_follow): Likewise.
13476 (allocate_type_unit_groups_table): Add objfile parameter.
13477 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13478 (get_type_unit_group): Likewise.
13479 (process_psymtab_comp_unit): Update call.
13480 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13481 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13482 (print_tu_stats): Likewise.
13483 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13484 in void* parameter.
13485 (build_type_psymtabs): Change objfile parameter to
13486 dwarf2_per_objfile.
13487 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13488 passed in void* parameter.
13489 (process_skeletonless_type_units): Change objfile parameter to
13490 dwarf2_per_objfile.
13491 (set_partial_user): Likewise.
13492 (dwarf2_build_psymtabs_hard): Likewise.
13493 (read_comp_units_from_section): Likewise.
13494 (create_all_comp_units): Likewise.
13495 (scan_partial_symbols): Update calls.
13496 (add_partial_symbol): Likewise.
13497 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13498 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13499 (process_queue): Add dwarf2_per_objfile parameter.
13500 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13501 (compute_compunit_symtab_includes): Likewise.
13502 (process_cu_includes): Add dwarf2_per_objfile parameter.
13503 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13504 (process_full_type_unit): Likewise.
13505 (process_imported_unit_die): Update call.
13506 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13507 (read_file_scope): Likewise.
13508 (allocate_dwo_file_hash_table): Add objfile parameter.
13509 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13510 (create_cus_hash_table): Likewise.
13511 (create_dwp_hash_table): Likewise.
13512 (create_dwo_unit_in_dwp_v1): Likewise.
13513 (create_dwp_v2_section): Likewise.
13514 (create_dwo_unit_in_dwp_v2): Likewise.
13515 (lookup_dwo_unit_in_dwp): Likewise.
13516 (try_open_dwop_file): Likewise.
13517 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13518 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13519 cleanup to include a reference to dwarf2_per_objfile.
13520 (open_dwp_file): Add dwarf2_per_objfile parameter.
13521 (open_and_init_dwp_file): Likewise.
13522 (get_dwp_file): Likewise.
13523 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13524 (queue_and_load_all_dwo_tus): Update call.
13525 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13526 data.
13527 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13528 (dwarf2_ranges_process): Likewise.
13529 (dwarf2_get_pc_bounds): Likewise.
13530 (mark_common_block_symbol_computed): Likewise.
13531 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13532 (dwarf2_read_abbrevs): Update call.
13533 (read_partial_die): Use dwarf2_per_objfile from cu.
13534 (find_partial_die): Likewise.
13535 (fixup_partial_die): Likewise.
13536 (read_attribute_value): Likewise.
13537 (read_indirect_string_at_offset_from): Add objfile parameter.
13538 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13539 parameter.
13540 (read_indirect_string_from_dwz): Add objfile parameter.
13541 (read_indirect_string): Add objfile parameter.
13542 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13543 (read_addr_index): Use dwarf2_per_objfile from cu.
13544 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13545 call dw2_setup.
13546 (read_str_index): Use dwarf2_per_objfile from cu.
13547 (get_debug_line_section): Likewise.
13548 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13549 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13550 (new_symbol_full): Use dwarf2_per_objfile from cu.
13551 (build_error_marker_type): Likewise.
13552 (lookup_die_type): Likewise.
13553 (determine_prefix): Likewise.
13554 (follow_die_offset): Likewise.
13555 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13556 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13557 (dwarf2_fetch_die_type_sect_off): Likewise.
13558 (dwarf2_get_die_type): Likewise.
13559 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13560 (get_signatured_type): Likewise.
13561 (get_DW_AT_signature_type): Likewise.
13562 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13563 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13564 (cu_debug_loc_section): Likewise.
13565 (fill_in_loclist_baton): Likewise.
13566 (dwarf2_symbol_mark_computed): Likewise.
13567 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13568 dwarf2_per_objfile.
13569 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13570 parameter.
13571 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13572 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13573 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13574 (set_die_type): Use dwarf2_free_objfile from cu.
13575 (get_die_type_at_offset): Likewise.
13576 (dwarf2_per_objfile_free): Don't assign global variable.
13577 (debug_names) <constructor>: Add dwarf2_per_objfile
13578 parameter, update m_debugstrlookup construction.
13579 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13580 parameter.
13581 <m_dwarf2_per_objfile>: New field.
13582 <lookup>: Use m_dwarf2_per_objfile.
13583 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13584 (psyms_seen_size): Likewise.
13585 (write_gdbindex): Replace objfile parameter with
13586 dwarf2_per_objfile.
13587 (write_debug_names): Likewise.
13588 (write_psymtabs_to_index): Likewise.
13589 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13590 calls.
13591
e3b94546
SM
135922018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13593
13594 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13595 <dwarf2_per_objfile>: New field.
13596 (struct dwarf2_per_cu_data) <objfile>: Remove.
13597 <dwarf2_per_objfile>: New field.
13598 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13599 of objfile.
13600 (create_signatured_type_table_from_index): Likewise.
13601 (create_debug_type_hash_table): Likewise.
13602 (fill_in_sig_entry_from_dwo_entry): Likewise.
13603 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13604 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13605 objfile.
13606 (create_partial_symtab): Access objfile through
13607 dwarf2_per_objfile.
13608 (process_psymtab_comp_unit_reader): Likewise.
13609 (read_comp_units_from_section): Likewise.
13610 (scan_partial_symbols): Likewise.
13611 (add_partial_symbol): Likewise.
13612 (add_partial_subprogram): Likewise.
13613 (peek_die_abbrev): Likewise.
13614 (fixup_go_packaging): Likewise.
13615 (process_full_comp_unit): Likewise.
13616 (process_full_type_unit): Likewise.
13617 (process_imported_unit_die): Likewise.
13618 (dwarf2_compute_name): Likewise.
13619 (dwarf2_physname): Likewise.
13620 (read_import_statement): Likewise.
13621 (create_cus_hash_table): Assign dwarf2_physname instead of
13622 objfile.
13623 (read_func_scope): Access objfile through dwarf2_per_objfile.
13624 (read_lexical_block_scope): Likewise.
13625 (read_call_site_scope): Likewise.
13626 (read_variable): Likewise.
13627 (dwarf2_rnglists_process): Likewise.
13628 (dwarf2_ranges_process): Likewise.
13629 (dwarf2_ranges_read): Likewise.
13630 (dwarf2_record_block_ranges): Likewise.
13631 (dwarf2_add_field): Likewise.
13632 (dwarf2_add_member_fn): Likewise.
13633 (read_structure_type): Likewise.
13634 (process_structure_scope): Likewise.
13635 (read_enumeration_type): Likewise.
13636 (read_array_type): Likewise.
13637 (read_common_block): Likewise.
13638 (read_namespace_type): Likewise.
13639 (read_namespace): Likewise.
13640 (read_module_type): Likewise.
13641 (read_tag_pointer_type): Likewise.
13642 (read_tag_ptr_to_member_type): Likewise.
13643 (read_tag_string_type): Likewise.
13644 (read_subroutine_type): Likewise.
13645 (read_typedef): Likewise.
13646 (read_base_type): Likewise.
13647 (attr_to_dynamic_prop): Likewise.
13648 (read_subrange_type): Likewise.
13649 (read_unspecified_type): Likewise.
13650 (load_partial_dies): Likewise.
13651 (read_partial_die): Likewise.
13652 (find_partial_die): Likewise.
13653 (guess_partial_die_structure_name): Likewise.
13654 (fixup_partial_die): Likewise.
13655 (read_attribute_value): Likewise.
13656 (read_addr_index_from_leb128): Likewise.
13657 (dwarf2_read_addr_index): Likewise.
13658 (dwarf2_string_attr): Likewise.
13659 (lnp_state_machine::check_line_address): Likewise.
13660 (dwarf_decode_lines_1): Likewise.
13661 (dwarf_decode_lines): Likewise.
13662 (dwarf2_start_symtab): Likewise.
13663 (var_decode_location): Likewise.
13664 (new_symbol_full): Likewise.
13665 (dwarf2_const_value_data): Likewise.
13666 (dwarf2_const_value_attr): Likewise.
13667 (dwarf2_const_value): Likewise.
13668 (die_type): Likewise.
13669 (die_containing_type): Likewise.
13670 (lookup_die_type): Likewise.
13671 (guess_full_die_structure_name): Likewise.
13672 (anonymous_struct_prefix): Likewise.
13673 (dwarf2_name): Likewise.
13674 (follow_die_ref_or_sig): Likewise.
13675 (follow_die_offset): Likewise.
13676 (follow_die_ref): Likewise.
13677 (dwarf2_fetch_die_loc_sect_off): Likewise.
13678 (dwarf2_fetch_constant_bytes): Likewise.
13679 (dwarf2_fetch_die_type_sect_off): Likewise.
13680 (dwarf2_get_die_type): Likewise.
13681 (follow_die_sig): Likewise.
13682 (decode_locdesc): Likewise.
13683 (dwarf2_per_cu_objfile): Likewise.
13684 (dwarf2_per_cu_text_offset): Likewise.
13685 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13686 objfile.
13687 (set_die_type): Access objfile through
13688 dwarf2_per_objfile.
13689
b01ba14d
SM
136902018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13691
13692 * valprint.c (converted_character_d): Remove typedef.
13693 (DEF_VEC_O (converted_character_d)): Remove.
13694 (count_next_character): Use std::vector.
13695 (print_converted_chars_to_obstack): Likewise.
13696 (generic_printstr): Likewise.
13697
4d0fdd9b
SM
136982018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13699
13700 * xml-support.h (struct gdb_xml_value): Add constructor.
13701 <value>: Change type to unique_xmalloc_ptr.
13702 (gdb_xml_value_s): Remove typedef.
13703 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13704 (gdb_xml_element_start_handler): Change parameter type to
13705 std::vector.
13706 (xml_find_attribute): Likewise.
13707 * xml-support.c (xml_find_attribute): Change parameter type to
13708 std::vector and adjust.
13709 (gdb_xml_values_cleanup): Remove.
13710 (gdb_xml_parser::start_element): Adjust to std::vector.
13711 (xinclude_start_include): Change paraeter type to std::vector
13712 and adjust.
13713 * btrace.c (check_xml_btrace_version): Likewise.
13714 (parse_xml_btrace_block): Likewise.
13715 (parse_xml_btrace_pt_config_cpu): Likewise.
13716 (parse_xml_btrace_pt): Likewise.
13717 (parse_xml_btrace_conf_bts): Likewise.
13718 (parse_xml_btrace_conf_pt): Likewise.
13719 * memory-map.c (memory_map_start_memory): Likewise.
13720 (memory_map_start_property): Likewise.
13721 * osdata.c (osdata_start_osdata): Likewise.
13722 (osdata_start_item): Likewise.
13723 (osdata_start_column): Likewise.
13724 * remote.c (start_thread): Likewise.
13725 * solib-aix.c (library_list_start_library): Likewise.
13726 (library_list_start_list): Likewise.
13727 * solib-svr4.c (library_list_start_library): Likewise.
13728 (svr4_library_list_start_list): Likewise.
13729 * solib-target.c (library_list_start_segment): Likewise.
13730 (library_list_start_section): Likewise.
13731 (library_list_start_library): Likewise.
13732 (library_list_start_list): Likewise.
13733 * tracepoint.c (traceframe_info_start_memory): Likewise.
13734 (traceframe_info_start_tvar): Likewise.
13735 * xml-syscall.c (syscall_start_syscall): Likewise.
13736 * xml-tdesc.c (tdesc_start_target): Likewise.
13737 (tdesc_start_feature): Likewise.
13738 (tdesc_start_reg): Likewise.
13739 (tdesc_start_union): Likewise.
13740 (tdesc_start_struct): Likewise.
13741 (tdesc_start_flags): Likewise.
13742 (tdesc_start_enum): Likewise.
13743 (tdesc_start_field): Likewise.
13744 (tdesc_start_enum_value): Likewise.
13745 (tdesc_start_vector): Likewise.
13746
f979c73f
SM
137472018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13748
13749 * extension.h (struct xmethod_worker) <clone>: Remove.
13750 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13751 Remove.
13752 (python_xmethod_worker::clone): Remove.
13753 * valops.c (find_overload_match): Use std::move instead of
13754 clone.
13755
ba18742c
SM
137562018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13757
13758 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13759 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13760 <free_xmethod_worker_data>: Remove.
13761 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13762 <get_xmethod_arg_types>: Remove.
13763 <get_xmethod_result_type>: Remove.
13764 <invoke_xmethod>: Remove.
13765 * extension.c (new_xmethod_worker): Remove.
13766 (clone_xmethod_worker): Remove.
13767 (get_matching_xmethod_workers): Return void, pass std::vector by
13768 pointer.
13769 (get_xmethod_arg_types): Rename to...
13770 (xmethod_worker::get_arg_types): ... this, and adjust.
13771 (get_xmethod_result_type): Rename to...
13772 (xmethod_worker::get_result_type): ... this, and adjust.
13773 (invoke_xmethod): Remove.
13774 (free_xmethod_worker): Remove.
13775 (free_xmethod_worker_vec): Remove.
13776 * extension.h (enum ext_lang_rc): Move here from
13777 extension-priv.h.
13778 (struct xmethod_worker): Add constructor and destructor.
13779 <data>: Remove.
13780 <value>: Remove.
13781 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13782 virtual pure methods.
13783 <get_arg_types, get_result_type>: New methods.
13784 (xmethod_worker_ptr): Remove typedef.
13785 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13786 (xmethod_worker_vec): Remove typedef.
13787 (xmethod_worker_up): New typedef.
13788 (invoke_xmethod): Remove.
13789 (clone_xmethod_worker): Remove.
13790 (free_xmethod_worker): Remove.
13791 (free_xmethod_worker_vec): Remove.
13792 (get_xmethod_arg_types): Remove.
13793 (get_xmethod_result_type): Remove.
13794 * valops.c (find_method_list): Use std::vector, don't use
13795 intermediate vector.
13796 (value_find_oload_method_list): Use std::vector.
13797 (find_overload_match): Use std::vector.
13798 (find_oload_champ): Use std::vector.
13799 * value.c (value_free): Use operator delete.
13800 (value_of_xmethod): Rename to...
13801 (value_from_xmethod): ... this. Don't assign
13802 xmethod_worker::value, take rvalue-reference.
13803 (result_type_of_xmethod): Adjust.
13804 (call_xmethod): Adjust.
13805 * value.h: Include extension.h.
13806 (struct xmethod_worker): Don't forward-declare.
13807 (value_of_xmethod): Rename to...
13808 (value_from_xmethod): ... this, take rvalue-reference.
13809 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13810 (struct python_xmethod_worker): ... this, add constructor and
13811 destructor.
13812 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13813 (gdbpy_free_xmethod_worker_data): Rename to...
13814 (python_xmethod_worker::~python_xmethod_worker): ... this and
13815 adjust.
13816 (gdbpy_clone_xmethod_worker_data): Rename to...
13817 (python_xmethod_worker::clone): ... this and adjust.
13818 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13819 temporary vector.
13820 (gdbpy_get_xmethod_arg_types): Rename to...
13821 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13822 (gdbpy_get_xmethod_result_type): Rename to...
13823 (python_xmethod_worker::do_get_result_type): ... this and
13824 adjust.
13825 (gdbpy_invoke_xmethod): Rename to...
13826 (python_xmethod_worker::invoke): ... this and adjust.
13827 (new_python_xmethod_worker): Rename to...
13828 (python_xmethod_worker::python_xmethod_worker): ... this and
13829 adjust.
13830 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13831 Remove.
13832 (gdbpy_free_xmethod_worker_data): Remove.
13833 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13834 (gdbpy_get_xmethod_arg_types): Remove.
13835 (gdbpy_get_xmethod_result_type): Remove.
13836 (gdbpy_invoke_xmethod): Remove.
13837 * python/python.c (python_extension_ops): Remove obsolete
13838 callbacks.
13839
e379cee6
PA
138402018-01-05 Pedro Alves <palves@redhat.com>
13841
13842 PR gdb/18653
13843 * common/signals-state-save-restore.c
13844 (save_original_signals_state): New parameter 'quiet'. Warn if we
13845 find a custom handler preinstalled, instead of internal erroring.
13846 But only warn if !quiet.
13847 * common/signals-state-save-restore.h
13848 (save_original_signals_state): New parameter 'quiet'.
13849 * main.c (captured_main_1): Move save_original_signals_state call
13850 after option handling, and pass QUIET.
13851
a655456c
PA
138522018-01-05 Pedro Alves <palves@redhat.com>
13853
13854 * spu-tdep.c (spu_catch_start): Pass
13855 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13856
de63c46b
PA
138572018-01-05 Pedro Alves <palves@redhat.com>
13858
13859 PR gdb/22670
13860 * ada-lang.c (literal_symbol_name_matcher): New function.
13861 (ada_get_symbol_name_matcher): Use it for
13862 symbol_name_match_type::SEARCH_NAME.
13863 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13864 it down instead of assuming symbol_name_match_type::FULL.
13865 * block.h (block_lookup_symbol): New parameter 'match_type'.
13866 * c-valprint.c (print_unpacked_pointer): Use
13867 lookup_symbol_search_name instead of lookup_symbol.
13868 * compile/compile-object-load.c (get_out_value_type): Pass down
13869 symbol_name_match_type::SEARCH_NAME.
13870 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13871 symbol_name_match_type::FULL.
13872 * cp-support.c (cp_get_symbol_name_matcher): Handle
13873 symbol_name_match_type::SEARCH_NAME.
13874 * infrun.c (insert_exception_resume_breakpoint): Use
13875 lookup_symbol_search_name.
13876 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13877 * psymtab.c (maintenance_check_psymtabs): Use
13878 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13879 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13880 SYMBOL_SEARCH_NAME.
13881 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13882 if symbol_name_match_type::SEARCH_NAME.
13883 (lookup_symbol_in_language): Pass down
13884 symbol_name_match_type::FULL.
13885 (lookup_symbol_search_name): New.
13886 (lookup_language_this): Pass down
13887 symbol_name_match_type::SEARCH_NAME.
13888 (lookup_symbol_aux, lookup_local_symbol): New parameter
13889 'match_type'. Pass it down.
13890 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13891 (lookup_symbol_search_name): New declaration.
13892 (lookup_symbol_in_block): New 'match_type' parameter.
13893
f98fc17b
PA
138942018-01-05 Pedro Alves <palves@redhat.com>
13895
13896 PR gdb/22670
13897 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13898 ada_lookup_symbol.
13899 (ada_lookup_symbol): Reimplement in terms of
13900 ada_lookup_symbol_list, bits factored out from
13901 ada_lookup_encoded_symbol.
13902
342f8240
JB
139032018-01-05 Joel Brobecker <brobecker@adacore.com>
13904
13905 * ada-exp.y (write_object_renaming): When subscripting an array
13906 using a symbol as the index, pass the block in call to
13907 ada_lookup_encoded_symbol when looking that symbol up.
13908
7150d33c
JG
139092018-01-05 Jerome Guitton <guitton@adacore.com>
13910
13911 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13912 TYPE_INDEX_TYPE.
13913
cc0e770c
JB
139142018-01-05 Joel Brobecker <brobecker@adacore.com>
13915
13916 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13917 the case where VALUE_LVAL (val0) is not lval_memory.
13918
f79da888 139192018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
13920
13921 * ada-valprint.c (print_optional_low_bound): Handle
13922 character-indexed array printing like boolean-indexed array
13923 printing.
13924
cd385f94
JB
139252018-01-05 Joel Brobecker <brobecker@adacore.com>
13926
13927 * NEWS: Create a new section for the next release branch.
13928 Rename the section of the current branch, now that it has
13929 been cut.
13930
09aca949
JB
139312018-01-05 Joel Brobecker <brobecker@adacore.com>
13932
13933 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13934 * version.in: Bump version to 8.1.50.DATE-git.
13935
9f757bf7
XR
139362018-01-03 Xavier Roirand <roirand@adacore.com>
13937
13938 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13939 Add field.
13940 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13941 Add field.
13942 (default_exception_support_info) <catch_handlers_sym>: Add field.
13943 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13944 (ada_exception_name_addr_1): Add "catch handlers" handling.
13945 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13946 Update all callers.
13947 (create_excep_cond_exprs) <ex>: Add parameter.
13948 (re_set_exception): Update create_excep_cond_exprs call.
13949 (print_it_exception, print_one_exception, print_mention_exception)
13950 (print_recreate_exception): Add "catch handler" handling.
13951 (allocate_location_catch_handlers, re_set_catch_handlers)
13952 (check_status_catch_handlers, print_it_catch_handlers)
13953 (print_one_catch_handlers, print_mention_catch_handlers)
13954 (print_recreate_catch_handlers): New function.
13955 (catch_handlers_breakpoint_ops): New variable.
13956 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13957 Add parameter. Add "catch handler" handling.
13958 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13959 Add "catch handler" handling.
13960 (ada_exception_catchpoint_cond_string): Add "catch handler"
13961 handling.
13962 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13963 call.
13964 (catch_ada_handlers_command): New function.
13965 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13966 operations structure.
13967 (_initialize_ada_language): Add "catch handlers" command entry.
13968 * NEWS: Document "catch handlers" feature.
13969
9fe561ab
JB
139702018-01-02 Joel Brobecker <brobecker@adacore.com>
13971
13972 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13973 account when creating the array type of the slice.
13974 (ada_value_slice): Likewise.
13975
a405673c
JB
139762018-01-02 Joel Brobecker <brobecker@adacore.com>
13977
13978 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13979 New enum value.
13980 (create_array_type_with_stride): Add byte_stride_prop parameter.
13981 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13982 New parameter. Update all callers in this file.
13983 (array_type_has_dynamic_stride): New function.
13984 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13985 of arrays with dynamic byte strides.
13986 * dwarf2read.c (read_array_type): Add support for dynamic
13987 DW_AT_byte_stride attributes.
13988
74a2f8ff
JB
139892018-01-02 Joel Brobecker <brobecker@adacore.com>
13990
13991 * dwarf2read.c (read_unspecified_type): Treat
13992 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13993
e2882c85
JB
139942018-01-01 Joel Brobecker <brobecker@adacore.com>
13995
13996 Update copyright year range in all GDB files.
13997
1690bb24
JB
139982018-01-01 Joel Brobecker <brobecker@adacore.com>
13999
14000 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14001 and gdb/testsuite/gdb.base/step-line.c.
14002
0f0c98a8
JB
140032018-01-01 Joel Brobecker <brobecker@adacore.com>
14004
14005 * copyright.py (main): Dump the contents of
14006 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14007 even if BY_HAND is empty.
14008
82e1e79a
JB
140092018-01-01 Joel Brobecker <brobecker@adacore.com>
14010
14011 * top.c (print_gdb_version): Update Copyright year in version
14012 message.
14013
053f54e5 140142018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 14015
053f54e5 14016 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 14017
053f54e5 14018For older changes see ChangeLog-2017.
c906108c
SS
14019\f
14020Local Variables:
14021mode: change-log
14022left-margin: 8
14023fill-column: 74
14024version-control: never
57da7796 14025coding: utf-8
c906108c 14026End:
This page took 2.756406 seconds and 4 git commands to generate.