Small fix for "winheight" usage
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
57dbb3af
TT
12018-09-26 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
4
b5a9bfbe
TT
52018-09-24 Tom Tromey <tom@tromey.com>
6
7 * common/pathstuff.c (get_standard_cache_dir): Make
8 "xdg_cache_home" and "home" const.
9 * top.c (init_history): Make "tmpenv" const.
10 * main.c (get_init_files): Make "homedir" const.
11
ae778caf
TT
122018-09-23 Tom Tromey <tom@tromey.com>
13
14 PR python/18852:
15 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
16
2b4ad2fe
TT
172018-09-23 Tom Tromey <tom@tromey.com>
18
19 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
20 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
21 * python/python-internal.h (gdbpy_handle_exception): Declare.
22 * python/py-utils.c (gdbpy_handle_exception): New function.
23
fd3ba736
TT
242018-09-23 Tom Tromey <tom@tromey.com>
25
26 PR python/17284:
27 * python/py-type.c (typy_template_argument): Check for negative
28 argument number.
29
39a24317
TT
302018-09-23 Tom Tromey <tom@tromey.com>
31
32 PR python/14062:
33 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
34
f5769a2c
TT
352018-09-23 Tom Tromey <tom@tromey.com>
36
37 PR python/18170:
38 * python/py-value.c (valpy_int): Allow conversion from pointer
39 type.
40
1c1e54f6
TT
412018-09-23 Tom Tromey <tom@tromey.com>
42
43 PR python/20126:
44 * python/py-value.c (valpy_int): Respect type sign.
45
fb4fa946
TT
462018-09-23 Tom Tromey <tom@tromey.com>
47
48 PR python/18352;
49 * python/py-value.c (valpy_float): Allow conversions from int or
50 char.
51 (valpy_int, valpy_long): Allow conversions from float.
52
65773341
TT
532018-09-23 Tom Tromey <tom@tromey.com>
54
55 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
56 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
57
1db88d22
RO
582018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
59
60 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
61 __sighndlr.
62 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
63
a44294f5
JT
642018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
65
66 * windows-nat.c (windows_nat_target::wait): Remove a spurious
67 target_terminal::ours().
68
0c0a40e0
SM
692018-09-23 Simon Marchi <simon.marchi@ericsson.com>
70
71 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
72 of vl to ULONGEST.
73
4daf1902
YS
742018-09-21 Yacov Simhony <ysimhony@gmail.com>
75
76 * breakpoint.c (update_inserted_breakpoint_locations): Remove
77 redundant condition.
78
c475f569
RO
792018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
80
81 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
82
83 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
84 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
85 * sol-thread.c (ps_pdmodel): Don't guard definition.
86
87 * procfs.c: Fix formatting.
88
89 * procfs.c (sysset_t_alloc): Remove.
90 (create_procinfo): Use XNEW instead of sysset_t_alloc.
91 (procfs_debug_inferior): Likewise.
92 (procfs_set_exec_trap): Likewise.
93 (proc_set_traced_sysentry): Don't allocate argp dynamically.
94 (proc_set_traced_sysexit): Likewise.
95
96 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
97 (dead_procinfo): Likewise.
98 (proc_warn): Likewise.
99 (proc_error): Likewise.
100 (proc_get_LDT_entry): Likewise.
101 (do_attach): Likewise.
102 (procfs_target::pid_to_str): Likewise.
103 (iterate_over_mappings): Likewise.
104
105 * procfs.c (create_procinfo): Fix ARI warning.
106 (proc_get_status): Likewise.
107 (proc_stop_process): Likewise.
108 (proc_run_process): Likewise.
109 (proc_kill): Likewise.
110 (proc_get_LDT_entry): Likewise.
111 (procfs_find_LDT_entry): Likewise.
112 (proc_update_threads): Likewise.
113 (proc_iterate_over_threads): Likewise.
114 (do_attach): Likewise.
115 (procfs_xfer_memory): Likewise.
116 (invalidate_cache): Likewise.
117 (procfs_target::resume): Likewise.
118 (procfs_init_inferior): Likewise.
119 (procfs_set_exec_trap): Likewise.
120 (procfs_target::thread_alive): Likewise.
121 (procfs_target::pid_to_exec_file): Likewise.
122 (iterate_over_mappings): Likewise.
123 (procfs_target::make_corefile_notes): Likewise.
124 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
125
126 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
127 (procfs_find_LDT_entry): Likewise.
128 * sol-thread.c (ps_lgetLDT): Likewise.
129
4206c05e
RO
1302018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
131
132 PR tdep/17903
133 * procfs.c (procfs_target): Declare pid_to_exec_file.
134 (procfs_target::pid_to_exec_file): New.
135
3d282ac3
RO
1362018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
137
138 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
139 renaming.
140 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
141 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
142
8c93fae6
RO
1432018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
144
145 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
146 (supply_fpregset, fill_fpregset): Move ...
147 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
148 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
149 Remove references to ioctl-based procfs.
150 Include <sys/reg.h>.
151 Remove PR_MODEL_NATIVE guards.
152 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
153 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
154
79b32f4a
XR
1552018-09-19 Xavier Roirand <roirand@adacore.com>
156
157 PR gdb/20981:
158 * solib-darwin.c (darwin_get_dyld_bfd): New function.
159 (darwin_solib_get_all_image_info_addr_at_init): Update call.
160 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
161
07147793
JB
1622018-09-19 John Baldwin <jhb@FreeBSD.org>
163
164 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
165 (fbsd_print_sockaddr_in6): Likewise.
166
23be8da7
RB
1672018-09-19 Richard Bunt <richard.bunt@arm.com>
168 Chris January <chris.january@arm.com>
169
170 * eval.c (skip_undetermined_arglist): Skip argument list helper.
171 (evaluate_subexp_standard): Return a dummy type when
172 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
173 OP_F77_UNDETERMINED_ARGLIST case.
174 * expression.h (enum noside): Update comment.
175
7307a73a
RO
1762018-09-19 George Vasick <george.vasick@oracle.com>
177
178 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
179
13db92d3
RO
1802018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
181 April Chin <april.chin@oracle.com>
182 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
183
184 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
185 uint_t lwpid_t.
186 (create_procinfo): Print pids in /proc without leading zeros.
187
3d50f170
SL
1882018-09-18 Sandra Loosemore <sandra@codesourcery.com>
189
190 * nios2-tdep.c (nios2_gcc_target_options): New.
191 (nios2_gdb_arch_init): Install new hook.
192
b567ca63
SM
1932018-09-18 Simon Marchi <simon.marchi@ericsson.com>
194
195 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
196 New file.
197 * update-gnulib.sh: Apply patch.
198 * configure: Re-generate.
199
73f1bd76
JB
2002018-09-18 John Baldwin <jhb@FreeBSD.org>
201
202 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
203 description. Make "info proc" command descriptions more
204 consistent.
205
8b113111
JB
2062018-09-18 John Baldwin <jhb@FreeBSD.org>
207
208 * NEWS: Mention 'info proc files' command.
209
7e69672e
JB
2102018-09-18 John Baldwin <jhb@FreeBSD.org>
211
212 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
213 descriptors for IP_FILES and IP_ALL.
214
57c2a98a
JB
2152018-09-18 John Baldwin <jhb@FreeBSD.org>
216
217 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
218 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
219 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
220 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
221 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
222 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
223 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
224 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
225 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
226 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
227 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
228 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
229 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
230 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
231 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
232 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
233 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
234 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
235 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
236 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
237 (struct fbsd_sockaddr_un): New types.
238 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
239 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
240 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
241 (fbsd_core_info_proc_files): New functions.
242 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
243 IP_ALL.
244 * fbsd-tdep.h (fbsd_info_proc_files_header)
245 (fbsd_info_proc_files_entry): New.
246
e98ee8c4
JB
2472018-09-18 John Baldwin <jhb@FreeBSD.org>
248
249 * defs.h (enum info_proc_what) [IP_FILES]: New value.
250 * infcmd.c (info_proc_cmd_files): New function.
251 (_initialize_infcmd): Register 'info proc files' command.
252
725e2999
JB
2532018-09-18 John Baldwin <jhb@FreeBSD.org>
254
255 * gnulib/aclocal-m4-deps.mk: Re-generate.
256 * gnulib/aclocal.m4: Re-generate.
257 * gnulib/config.in: Re-generate.
258 * gnulib/configure: Re-generate.
259 * gnulib/import/Makefile.am: Re-generate.
260 * gnulib/import/Makefile.in: Re-generate.
261 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
262 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
263 * gnulib/import/arpa_inet.in.h: New file.
264 * gnulib/import/inet_ntop.c: New file.
265 * gnulib/import/m4/arpa_inet_h.m4: New file.
266 * gnulib/import/m4/inet_ntop.m4: New file.
267 * gnulib/import/m4/netinet_in_h.m4: New file.
268 * gnulib/import/m4/socklen.m4: New file.
269 * gnulib/import/m4/sockpfaf.m4: New file.
270 * gnulib/import/m4/stdalign.m4: New file.
271 * gnulib/import/m4/sys_uio_h.m4: New file.
272 * gnulib/import/netinet_in.in.h: New file.
273 * gnulib/import/stdalign.in.h: New file.
274 * gnulib/import/sys_socket.c: New file.
275 * gnulib/import/sys_socket.in.h: New file.
276 * gnulib/import/sys_uio.in.h: New file.
277 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
278 module.
279
2afffa7f
JB
2802018-09-18 John Baldwin <jhb@FreeBSD.org>
281
282 * gnulib/aclocal-m4-deps.mk: New file.
283 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
284 deterministically.
285
9f235e09
JB
2862018-09-18 John Baldwin <jhb@FreeBSD.org>
287
288 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
289 KVE_PATH.
290
40f03055
TT
2912018-09-18 Tom Tromey <tom@tromey.com>
292
293 * compile/compile-object-load.c (struct
294 link_hash_table_cleanup_data): Add constructor and destructor.
295 Use DISABLE_COPY_AND_ASSIGN.
296 (~link_hash_table_cleanup_data): Rename from
297 link_hash_table_free. Now a destructor.
298 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
299
c9e0a7e3
TT
3002018-09-18 Tom Tromey <tom@tromey.com>
301
302 * compile/compile-object-run.c (do_module_cleanup): Use delete.
303 * compile/compile-object-load.c (struct munmap_list): Move to
304 header file.
305 (munmap_list::add): Rename from munmap_list_add; rewrite.
306 (munmap_list::~munmap_list): Rename from munmap_list_free.
307 (munmap_listp_free_cleanup): Remove.
308 (compile_object_load): Update.
309 * compile/compile-object-load.h (struct munmap_list): Move from
310 compile-object-load.c. Rewrite.
311
3ff2c72e
AH
3122018-09-18 Alan Hayward <alan.hayward@arm.com>
313
314 * aarch64-tdep.c (pass_in_v): Use register size.
315 (aarch64_extract_return_value): Likewise.
316 (aarch64_store_return_value): Likewise.
317
206c1947
RO
3182018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
319
320 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
321 rlim_t.
322
6eb5dbce
PW
3232018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
324
325 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
326 Fix short help line.
327
ae292b3a
TT
3282018-09-17 Tom Tromey <tom@tromey.com>
329
330 PR python/20445:
331 * configure: Rebuild.
332 * configure.ac: Conditionally use -DNDEBUG for Python.
333
da658607
TT
3342018-09-17 Tom Tromey <tom@tromey.com>
335
336 * configure: Rebuild.
337 * configure.ac: Use gmp as a library dependency when checking for
338 mpfr.
339
d35da542
PA
3402018-09-17 Pedro Alves <palves@redhat.com>
341
342 * python/py-inferior.c (find_inferior_object): Delete.
343
461464f2
SM
3442018-09-17 Simon Marchi <simon.marchi@ericsson.com>
345
346 * compile/compile-cplus-types.c
347 (compile_cplus_instance::enter_scope): Don't use new_scope after
348 std::move.
349
e6cd1dc1
TT
3502018-09-17 Tom Tromey <tom@tromey.com>
351
352 * common/pathstuff.c (get_standard_cache_dir): Use
353 ~/Library/Caches on macOS.
354 * common/pathstuff.h (get_standard_cache_dir): Update comment.
355
8588b356
SM
3562018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
357
358 PR python/23669
359 * breakpoint.c (commands_cmd_element): New.
360 (_initialize_breakpoint): Assign commands_cmd_element.
361 * breakpoint.h (commands_cmd_element): New.
362 * cli/cli-script.c (while_cmd_element, if_command,
363 define_cmd_element): New.
364 (command_name_equals): Remove.
365 (process_next_line): Compare commands by pointer, not by name.
366 (_initialize_cli_script): Assign the various cmd_list_element
367 variables.
368 * compile/compile.c (compile_cmd_element): New.
369 (_initialize_compile): Assign compile_cmd_element.
370 * compile/compile.h (compile_cmd_element): New.
371 * guile/guile.c (guile_cmd_element): New.
372 (install_gdb_commands): Assign guile_cmd_element.
373 * guile/guile.h (guile_cmd_element): New.
374 * python/python.c (python_cmd_element): New.
375 (_initialize_python): Assign python_cmd_element.
376 * python/python.h (python_cmd_element): New.
377 * tracepoint.c (while_stepping_cmd_element): New.
378 (_initialize_tracepoint): Assign while_stepping_cmd_element.
379 * tracepoint.h (while_stepping_cmd_element): New.
380
cb524840
TT
3812018-09-17 Tom Tromey <tom@tromey.com>
382
383 * infrun.c (save_infcall_suspend_state): Return
384 infcall_suspend_state_up.
385 (save_infcall_control_state): Return infcall_control_state_up.
386 * inferior.h (save_infcall_suspend_state)
387 (save_infcall_control_state): Declare later. Return unique
388 pointers.
389
2d844eaf
TT
3902018-09-17 Tom Tromey <tom@tromey.com>
391
392 * infrun.c (struct stop_context): Declare constructor,
393 destructor, "changed" method.
394 (stop_context::stop_context): Rename from save_stop_context.
395 (stop_context::~stop_context): Rename from
396 release_stop_context_cleanup.
397 (normal_stop): Update.
398 (stop_context::changed): Rename from stop_context_changed. Return
399 bool.
400
c7c4d3fa
TT
4012018-09-17 Tom Tromey <tom@tromey.com>
402
403 * inferior.h (struct infcall_suspend_state_deleter): New.
404 (infcall_suspend_state_up): New typedef.
405 (struct infcall_control_state_deleter): New.
406 (infcall_control_state_up): New typedef.
407 (make_cleanup_restore_infcall_suspend_state)
408 (make_cleanup_restore_infcall_control_state): Don't declare.
409 * infcall.c (call_function_by_hand_dummy): Update.
410 * infrun.c (do_restore_infcall_suspend_state_cleanup)
411 (make_cleanup_restore_infcall_suspend_state): Remove.
412 (do_restore_infcall_control_state_cleanup)
413 (make_cleanup_restore_infcall_control_state): Remove.
414
ee841dd8
TT
4152018-09-17 Tom Tromey <tom@tromey.com>
416
417 * gdbthread.h (struct thread_control_state): Add initializer.
418 (class thread_info) <control>: Remove initializer.
419 * inferior.h (struct inferior_control_state): Add initializer.
420 (class inferior) <control>: Remove initializer.
421 (exit_inferior_1): Update.
422 * infrun.c (struct infcall_control_state): Add constructors.
423 (save_infcall_control_state): Use new.
424 (restore_infcall_control_state, discard_infcall_control_state):
425 Use delete.
426
117f580a
TT
4272018-09-17 Tom Tromey <tom@tromey.com>
428
429 * infrun.c (struct infcall_suspend_state) <registers>: Now a
430 unique_ptr.
431 <siginfo_data>: Now a unique_xmalloc_ptr.
432 (save_infcall_suspend_state, restore_infcall_suspend_state)
433 (discard_infcall_suspend_state)
434 (get_infcall_suspend_state_regcache): Update.
435
dd848631
TT
4362018-09-17 Tom Tromey <tom@tromey.com>
437
438 * gdbthread.h (struct thread_suspend_state): Add initializers.
439 (class thread_info) <suspend>: Remove initializer.
440 * infrun.c (struct infcall_suspend_state): Add initializers.
441 (save_infcall_suspend_state): Use new.
442 (discard_infcall_suspend_state): Use delete.
443
1a338907
TT
4442018-09-16 Tom Tromey <tom@tromey.com>
445
446 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
447 Remove.
448 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
449 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
450 (py_varobj_iter_new): Likewise.
451 (py_varobj_get_iterator): Use gdbpy_ref.
452
4a137fec
TT
4532018-09-16 Tom Tromey <tom@tromey.com>
454
455 * python/py-threadevent.c (py_get_event_thread): Simplify.
456 * python/py-inferior.c (infpy_thread_from_thread_handle):
457 Return immediately after calling thread_to_thread_object. Use
458 Py_RETURN_NONE.
459 (thread_to_thread_object): Set the exception on a NULL return.
460
8ff03f0b
SM
4612018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
462
463 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
464
94c8b725
TT
4652018-09-16 Tom Tromey <tom@tromey.com>
466
467 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
468 Remove.
469
db1337cc
TT
4702018-09-16 Tom Tromey <tom@tromey.com>
471
472 * python/python-internal.h (thread_to_thread_object): Change
473 return type.
474 * python/py-inferior.c (thread_to_thread_object): Return a new
475 reference.
476 (infpy_thread_from_thread_handle): Update.
477 * python/py-infthread.c (gdbpy_selected_thread): Update.
478 * python/py-stopevent.c (create_stop_event_object): Update.
479 * python/py-threadevent.c (py_get_event_thread): Return a new
480 reference.
481 (py_get_event_thread): Update.
482 * python/py-event.h (py_get_event_thread): Change return type.
483 * python/py-continueevent.c (create_continue_event_object):
484 Update.
485
0a9db5ad
TT
4862018-09-16 Tom Tromey <tom@tromey.com>
487
488 * python/py-progspace.c (pspy_get_objfiles): Update.
489 * python/python-internal.h (objfile_to_objfile_object): Change
490 return type.
491 * python/py-newobjfileevent.c (create_new_objfile_event_object):
492 Update.
493 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
494 Update.
495 * python/python.c (gdbpy_get_current_objfile): Update.
496 (gdbpy_objfiles): Update.
497 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
498 Update.
499 (objfile_to_objfile_object): Return a new reference.
500 * python/py-symtab.c (stpy_get_objfile): Update.
501 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
502 Update.
503
3c7aa307
TT
5042018-09-16 Tom Tromey <tom@tromey.com>
505
506 * python/py-inferior.c (infpy_get_progspace): Update.
507 * python/python-internal.h (pspace_to_pspace_object): Change
508 return type.
509 * python/py-newobjfileevent.c
510 (create_clear_objfiles_event_object): Update.
511 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
512 Update.
513 * python/python.c (gdbpy_get_current_progspace): Update.
514 (gdbpy_progspaces): Update.
515 * python/py-progspace.c (pspace_to_pspace_object): Return a new
516 reference.
517 * python/py-objfile.c (objfpy_get_progspace): Update.
518 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
519 Update.
520
8743a9cd
TT
5212018-09-16 Tom Tromey <tom@tromey.com>
522
523 * python/lib/gdb/__init__.py (current_progspace, objfiles)
524 (solib_name, block_for_pc, find_pc_line): New functions.
525 (execute_unwinders): Update.
526 * python/py-block.c (gdbpy_block_for_pc): Remove.
527 * python/py-inferior.c (infpy_get_progspace): New function.
528 (inferior_object_getset) <progspace>: Add.
529 * python/py-progspace.c (pspy_objfiles): Rewrite.
530 (pspy_solib_name, pspy_block_for_pc)
531 (pspy_find_pc_line, pspy_is_valid): New functions.
532 (progspace_object_methods): Add entries for solib_name,
533 block_for_pc, find_pc_line, is_valid.
534 * python/python-internal.h (gdbpy_block_for_pc)
535 (build_objfiles_list): Don't declare.
536 * python/python.c: Don't include solib.h.
537 (gdbpy_solib_name, gdbpy_find_pc_line)
538 (gdbpy_get_current_progspace, build_objfiles_list)
539 (gdbpy_objfiles): Remove.
540 (GdbMethods) <current_progspace, objfiles, block_for_pc,
541 solib_name, find_pc_line>: Remove entries.
542
65e65158
TT
5432018-09-16 Tom Tromey <tom@tromey.com>
544
545 * top.c (new_ui_command): Use GNU style for metasyntactic
546 variables.
547 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
548 variables.
549 * maint.c (maintenance_translate_address): Remove "<>" around
550 text.
551 * interps.c (interpreter_exec_cmd): Use GNU style for
552 metasyntactic variables.
553 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
554 metasyntactic variables.
555 * tracepoint.c (tfind_range_command): Use GNU style for
556 metasyntactic variables.
557 (tfind_outside_command): Likewise.
558 (_initialize_tracepoint): Likewise.
559 * remote.c (extended_remote_target::create_inferior): Use GNU
560 style for metasyntactic variables.
561 * sparc64-tdep.c (adi_examine_command): Use GNU style for
562 metasyntactic variables.
563 (adi_assign_command): Likewise.
564
f4bab6ff
TT
5652018-09-16 Tom Tromey <tom@tromey.com>
566
567 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
568 metasyntactic variables. Print message if no disassembler options
569 are available.
570
cbaaa0ca
TT
5712018-09-15 Tom Tromey <tom@tromey.com>
572
573 * infcmd.c (get_inferior_args): Return const char *.
574 * inferior.h (get_inferior_args): Return type now const.
575 * linux-tdep.c (linux_fill_prpsinfo): Update.
576 * procfs.c (procfs_target::make_corefile_notes): Update.
577
a3a6aef4
TT
5782018-09-07 Tom Tromey <tom@tromey.com>
579
580 * python/python.c (execute_gdb_command): Call bpstat_do_actions
581 inside the TRY.
582
f70e088f
SL
5832018-09-14 Sandra Loosemore <sandra@codesourcery.com>
584
585 * nios2-tdep.c (nios2_type_align): New.
586 (nios2_gdb_arch_init): Install type_align hook.
587
2fabdf33
AB
5882018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
589
590 * eval.c (fake_method::fake_method): Call xzalloc directly for a
591 type that is neither object file owned, nor gdbarch owned.
592 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
593 gdbarch is non-NULL.
594 (alloc_type_instance): Allocate non-objfile owned types on the
595 gdbarch obstack.
596 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
597 using TYPE_ALLOC to ensure memory is allocated on the correct
598 obstack.
599 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
600 obstack, or the gdbarch obstack.
601 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
602
b4b08fa2
TT
6032018-09-14 Tom Tromey <tom@tromey.com>
604
605 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
606 block.
607
87b240d4
TT
6082018-09-14 Tom Tromey <tom@tromey.com>
609
610 * nat/fork-inferior.c (get_startup_shell): Remove "static".
611
7d221512
TT
6122018-09-13 Tom Tromey <tom@tromey.com>
613
614 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
615 static.
616
97e67fc6
TT
6172018-09-13 Tom Tromey <tom@tromey.com>
618
619 * exec.c (try_open_exec_file): Use std::string.
620
803c08d0
TT
6212018-09-13 Tom Tromey <tom@tromey.com>
622
623 * utils.h (gdb_bfd_errmsg): Return std::string.
624 * exec.c (exec_file_attach): Update.
625 * compile/compile-object-load.c (compile_object_load): Update.
626 * utils.c (gdb_bfd_errmsg): Return std::string.
627
5b4cbbe3
TT
6282018-09-13 Tom Tromey <tom@tromey.com>
629
630 * procfs.c (struct procinfo_deleter): New.
631 (procinfo_up): New typedef.
632 (do_destroy_procinfo_cleanup): Remove.
633 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
634
db68fbe2
TT
6352018-09-13 Tom Tromey <tom@tromey.com>
636
637 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
638
0ae1a321
SM
6392018-09-13 Simon Marchi <simon.marchi@ericsson.com>
6402018-09-13 Tom Tromey <tom@tromey.com>
641
642 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
643 (pspy_get_objfiles): New function.
644 (progspace_object_methods): New.
645 (pspace_object_type): Add tp_methods callback.
646 * python/python-internal.h (build_objfiles_list): New
647 declaration.
648 * python/python.c (build_objfiles_list): New function.
649 (gdbpy_objfiles): Implement using build_objfiles_list.
650 * NEWS: Mention the Progspace.objfiles method.
651
a40bf0c2
SM
6522018-09-13 Simon Marchi <simon.marchi@ericsson.com>
653
654 * python/py-inferior.c (infpy_get_progspace): New function.
655 (inferior_object_getset): Add progspace property.
656 * NEWS: Mention the new property.
657
4a3fe98f
TT
6582018-09-13 Tom Tromey <tom@tromey.com>
659
660 PR rust/23650:
661 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
662
098b2108
TT
6632018-09-13 Tom Tromey <tom@tromey.com>
664
665 PR rust/23626:
666 * rust-lang.c (rust_enum_variant): Now static.
667 (rust_empty_enum_p): New function.
668 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
669 Handle empty enum.
670
1256af7d
SM
6712018-09-13 Simon Marchi <simon.marchi@ericsson.com>
672
673 * python/py-inferior.c (infpy_repr): New.
674 (inferior_object_type): Register infpy_repr.
675 * python/py-objfile.c (objfpy_repr): New.
676 (objfile_object_type): Register objfpy_repr.
677
f117a62c
JB
6782018-09-12 John Baldwin <jhb@FreeBSD.org>
679
680 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
681
88f22c34
JB
6822018-09-12 John Baldwin <jhb@FreeBSD.org>
683
684 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
685 typo.
686
3c025cfe
SDJ
6872018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
688
689 * common/common-utils.c: Don't include '<sys/stat.h>'.
690 (is_regular_file): Move to...
691 * common/filestuff.c (is_regular_file): ... here.
692 * common/common-utils.h (is_regular_file): Move to...
693 * common/filestuff.h (is_regular_file): ... here.
694
3e68067f
SM
6952018-09-12 Simon Marchi <simon.marchi@ericsson.com>
696
697 * skip.c (debug_skip): New variable.
698 (skiplist_entry::do_skip_file_p): Add debug output.
699 (skiplist_entry::do_skip_gfile_p): Likewise.
700 (skiplist_entry::skip_function_p): Likewise.
701 (_initialize_step_skip): Create debug command.
702 * NEWS: Mention set/show debug skip.
703
d6be54ef
XR
7042018-09-11 Xavier Roirand <roirand@adacore.com>
705
706 * darwin-nat.c (should_disable_startup_with_shell):
707 New function.
708 (darwin_nat_target::create_inferior): Add call.
709
de1ec836
XR
7102018-09-11 Xavier Roirand <roirand@adacore.com>
711
712 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
713 inf_port, msg_state>: Initialize.
714 (struct darwin_thread_info) <signaled, single_step>: Change
715 type and initialize.
716 (struct darwin_thread_info) <event>: Initialize.
717
e2fc52e7
SDJ
7182018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
719
720 PR gdb/23555
721 PR gdb/23558
722 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
723 guesses.
724
5e8754f9
SDJ
7252018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
726
727 Revert:
728 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
729
730 PR gdb/23555
731 PR gdb/23558
732 * gnulib/aclocal.m4: Regenerate.
733 * gnulib/config.in: Regenerate.
734 * gnulib/configure: Regenerate.
735 * gnulib/import/Makefile.am: Update.
736 * gnulib/import/Makefile.in: Update.
737 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
738 * gnulib/import/_Noreturn.h: ... this.
739 * gnulib/import/alloca.in.h: Update.
740 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
741 * gnulib/import/arg-nonnull.h: ... this.
742 * gnulib/import/assure.h: Update.
743 * gnulib/import/at-func.c: Update.
744 * gnulib/import/basename-lgpl.c: Update.
745 * gnulib/import/extra/snippet/c++defs.h: Rename to...
746 * gnulib/import/c++defs.h: ... this.
747 * gnulib/import/canonicalize-lgpl.c: Update.
748 * gnulib/import/cdefs.h: Update.
749 * gnulib/import/chdir-long.c: Update.
750 * gnulib/import/chdir-long.h: Update.
751 * gnulib/import/cloexec.c: Update.
752 * gnulib/import/cloexec.h: Update.
753 * gnulib/import/close.c: Update.
754 * gnulib/import/closedir.c: Update.
755 * gnulib/import/config.charset: Update.
756 * gnulib/import/dirent-private.h: Update.
757 * gnulib/import/dirent.in.h: Update.
758 * gnulib/import/dirfd.c: Update.
759 * gnulib/import/dirname-lgpl.c: Update.
760 * gnulib/import/dirname.h: Update.
761 * gnulib/import/dosname.h: Update.
762 * gnulib/import/dup-safer-flag.c: Update.
763 * gnulib/import/dup-safer.c: Update.
764 * gnulib/import/dup.c: Update.
765 * gnulib/import/dup2.c: Update.
766 * gnulib/import/errno.in.h: Update.
767 * gnulib/import/error.c: Update.
768 * gnulib/import/error.h: Update.
769 * gnulib/import/exitfail.c: Update.
770 * gnulib/import/exitfail.h: Update.
771 * gnulib/import/extra/update-copyright: Update.
772 * gnulib/import/fchdir.c: Update.
773 * gnulib/import/fcntl.c: Update.
774 * gnulib/import/fcntl.in.h: Update.
775 * gnulib/import/fd-hook.c: Update.
776 * gnulib/import/fd-hook.h: Update.
777 * gnulib/import/fd-safer-flag.c: Update.
778 * gnulib/import/fd-safer.c: Update.
779 * gnulib/import/fdopendir.c: Update.
780 * gnulib/import/filename.h: Update.
781 * gnulib/import/filenamecat-lgpl.c: Update.
782 * gnulib/import/filenamecat.h: Update.
783 * gnulib/import/flexmember.h: Update.
784 * gnulib/import/float+.h: Update.
785 * gnulib/import/float.c: Update.
786 * gnulib/import/float.in.h: Update.
787 * gnulib/import/fnmatch.c: Update.
788 * gnulib/import/fnmatch.in.h: Update.
789 * gnulib/import/fnmatch_loop.c: Update.
790 * gnulib/import/fpucw.h: Update.
791 * gnulib/import/frexp.c: Update.
792 * gnulib/import/frexpl.c: Update.
793 * gnulib/import/fstat.c: Update.
794 * gnulib/import/fstatat.c: Update.
795 * gnulib/import/getcwd-lgpl.c: Update.
796 * gnulib/import/getcwd.c: Update.
797 * gnulib/import/getdtablesize.c: Update.
798 * gnulib/import/getlogin_r.c: Update.
799 * gnulib/import/getprogname.c: Update.
800 * gnulib/import/getprogname.h: Update.
801 * gnulib/import/gettext.h: Update.
802 * gnulib/import/gettimeofday.c: Update.
803 * gnulib/import/glob-libc.h: Update.
804 * gnulib/import/glob.c: Update.
805 * gnulib/import/glob.in.h: Update.
806 * gnulib/import/glob_internal.h: Update.
807 * gnulib/import/glob_pattern_p.c: Update.
808 * gnulib/import/globfree.c: Update.
809 * gnulib/import/hard-locale.c: Update.
810 * gnulib/import/hard-locale.h: Update.
811 * gnulib/import/intprops.h: Update.
812 * gnulib/import/inttypes.in.h: Update.
813 * gnulib/import/isnan.c: Update.
814 * gnulib/import/isnand-nolibm.h: Update.
815 * gnulib/import/isnand.c: Update.
816 * gnulib/import/isnanl-nolibm.h: Update.
817 * gnulib/import/isnanl.c: Update.
818 * gnulib/import/itold.c: Update.
819 * gnulib/import/libc-config.h: Update.
820 * gnulib/import/limits.in.h: Update.
821 * gnulib/import/localcharset.c: Update.
822 * gnulib/import/localcharset.h: Update.
823 * gnulib/import/localtime-buffer.c: Update.
824 * gnulib/import/localtime-buffer.h: Update.
825 * gnulib/import/lstat.c: Update.
826 * gnulib/import/m4/00gnulib.m4: Update.
827 * gnulib/import/m4/__inline.m4: Update.
828 * gnulib/import/m4/absolute-header.m4: Update.
829 * gnulib/import/m4/alloca.m4: Update.
830 * gnulib/import/m4/builtin-expect.m4: Update.
831 * gnulib/import/m4/canonicalize.m4: Update.
832 * gnulib/import/m4/chdir-long.m4: Update.
833 * gnulib/import/m4/close.m4: Update.
834 * gnulib/import/m4/closedir.m4: Update.
835 * gnulib/import/m4/configmake.m4: Update.
836 * gnulib/import/m4/d-ino.m4: Update.
837 * gnulib/import/m4/d-type.m4: Update.
838 * gnulib/import/m4/dirent_h.m4: Update.
839 * gnulib/import/m4/dirfd.m4: Update.
840 * gnulib/import/m4/dirname.m4: Update.
841 * gnulib/import/m4/double-slash-root.m4: Update.
842 * gnulib/import/m4/dup.m4: Update.
843 * gnulib/import/m4/dup2.m4: Update.
844 * gnulib/import/m4/eealloc.m4: Update.
845 * gnulib/import/m4/environ.m4: Update.
846 * gnulib/import/m4/errno_h.m4: Update.
847 * gnulib/import/m4/error.m4: Update.
848 * gnulib/import/m4/exponentd.m4: Update.
849 * gnulib/import/m4/exponentl.m4: Update.
850 * gnulib/import/m4/extensions.m4: Update.
851 * gnulib/import/m4/extern-inline.m4: Update.
852 * gnulib/import/m4/fchdir.m4: Update.
853 * gnulib/import/m4/fcntl-o.m4: Update.
854 * gnulib/import/m4/fcntl.m4: Update.
855 * gnulib/import/m4/fcntl_h.m4: Update.
856 * gnulib/import/m4/fdopendir.m4: Update.
857 * gnulib/import/m4/filenamecat.m4: Update.
858 * gnulib/import/m4/flexmember.m4: Update.
859 * gnulib/import/m4/float_h.m4: Update.
860 * gnulib/import/m4/fnmatch.m4: Update.
861 * gnulib/import/m4/fnmatch_h.m4: Update.
862 * gnulib/import/m4/fpieee.m4: Update.
863 * gnulib/import/m4/frexp.m4: Update.
864 * gnulib/import/m4/frexpl.m4: Update.
865 * gnulib/import/m4/fstat.m4: Update.
866 * gnulib/import/m4/fstatat.m4: Update.
867 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
868 * gnulib/import/m4/getcwd-path-max.m4: Update.
869 * gnulib/import/m4/getcwd.m4: Update.
870 * gnulib/import/m4/getdtablesize.m4: Update.
871 * gnulib/import/m4/getlogin.m4: Update.
872 * gnulib/import/m4/getlogin_r.m4: Update.
873 * gnulib/import/m4/getpagesize.m4: Update.
874 * gnulib/import/m4/getprogname.m4: Update.
875 * gnulib/import/m4/gettimeofday.m4: Update.
876 * gnulib/import/m4/glibc21.m4: Update.
877 * gnulib/import/m4/glob.m4: Update.
878 * gnulib/import/m4/glob_h.m4: Update.
879 * gnulib/import/m4/gnulib-cache.m4: Update.
880 * gnulib/import/m4/gnulib-common.m4: Update.
881 * gnulib/import/m4/gnulib-comp.m4: Update.
882 * gnulib/import/m4/gnulib-tool.m4: Update.
883 * gnulib/import/m4/hard-locale.m4: Update.
884 * gnulib/import/m4/include_next.m4: Update.
885 * gnulib/import/m4/inttypes-pri.m4: Update.
886 * gnulib/import/m4/inttypes.m4: Update.
887 * gnulib/import/m4/isnand.m4: Update.
888 * gnulib/import/m4/isnanl.m4: Update.
889 * gnulib/import/m4/largefile.m4: Update.
890 * gnulib/import/m4/limits-h.m4: Update.
891 * gnulib/import/m4/localcharset.m4: Update.
892 * gnulib/import/m4/locale-fr.m4: Update.
893 * gnulib/import/m4/locale-ja.m4: Update.
894 * gnulib/import/m4/locale-zh.m4: Update.
895 * gnulib/import/m4/localtime-buffer.m4: Update.
896 * gnulib/import/m4/longlong.m4: Update.
897 * gnulib/import/m4/lstat.m4: Update.
898 * gnulib/import/m4/malloc.m4: Update.
899 * gnulib/import/m4/malloca.m4: Update.
900 * gnulib/import/m4/math_h.m4: Update.
901 * gnulib/import/m4/mbrtowc.m4: Update.
902 * gnulib/import/m4/mbsinit.m4: Update.
903 * gnulib/import/m4/mbsrtowcs.m4: Update.
904 * gnulib/import/m4/mbstate_t.m4: Update.
905 * gnulib/import/m4/memchr.m4: Update.
906 * gnulib/import/m4/memmem.m4: Update.
907 * gnulib/import/m4/mempcpy.m4: Update.
908 * gnulib/import/m4/memrchr.m4: Update.
909 * gnulib/import/m4/mkdir.m4: Update.
910 * gnulib/import/m4/mkstemp.m4: Update.
911 * gnulib/import/m4/mmap-anon.m4: Update.
912 * gnulib/import/m4/mode_t.m4: Update.
913 * gnulib/import/m4/msvc-inval.m4: Update.
914 * gnulib/import/m4/msvc-nothrow.m4: Update.
915 * gnulib/import/m4/multiarch.m4: Update.
916 * gnulib/import/m4/nocrash.m4: Update.
917 * gnulib/import/m4/off_t.m4: Update.
918 * gnulib/import/m4/onceonly.m4: Update.
919 * gnulib/import/m4/open-cloexec.m4: Update.
920 * gnulib/import/m4/open.m4: Update.
921 * gnulib/import/m4/openat.m4: Update.
922 * gnulib/import/m4/opendir.m4: Update.
923 * gnulib/import/m4/pathmax.m4: Update.
924 * gnulib/import/m4/rawmemchr.m4: Update.
925 * gnulib/import/m4/readdir.m4: Update.
926 * gnulib/import/m4/readlink.m4: Update.
927 * gnulib/import/m4/realloc.m4: Update.
928 * gnulib/import/m4/rename.m4: Update.
929 * gnulib/import/m4/rewinddir.m4: Update.
930 * gnulib/import/m4/rmdir.m4: Update.
931 * gnulib/import/m4/save-cwd.m4: Update.
932 * gnulib/import/m4/secure_getenv.m4: Update.
933 * gnulib/import/m4/setenv.m4: Update.
934 * gnulib/import/m4/signal_h.m4: Update.
935 * gnulib/import/m4/ssize_t.m4: Update.
936 * gnulib/import/m4/stat-time.m4: Update.
937 * gnulib/import/m4/stat.m4: Update.
938 * gnulib/import/m4/std-gnu11.m4: Update.
939 * gnulib/import/m4/stdbool.m4: Update.
940 * gnulib/import/m4/stddef_h.m4: Update.
941 * gnulib/import/m4/stdint.m4: Update.
942 * gnulib/import/m4/stdio_h.m4: Update.
943 * gnulib/import/m4/stdlib_h.m4: Update.
944 * gnulib/import/m4/strchrnul.m4: Update.
945 * gnulib/import/m4/strdup.m4: Update.
946 * gnulib/import/m4/strerror.m4: Update.
947 * gnulib/import/m4/string_h.m4: Update.
948 * gnulib/import/m4/strstr.m4: Update.
949 * gnulib/import/m4/strtok_r.m4: Update.
950 * gnulib/import/m4/sys_socket_h.m4: Update.
951 * gnulib/import/m4/sys_stat_h.m4: Update.
952 * gnulib/import/m4/sys_time_h.m4: Update.
953 * gnulib/import/m4/sys_types_h.m4: Update.
954 * gnulib/import/m4/tempname.m4: Update.
955 * gnulib/import/m4/time_h.m4: Update.
956 * gnulib/import/m4/unistd-safer.m4: Update.
957 * gnulib/import/m4/unistd_h.m4: Update.
958 * gnulib/import/m4/warn-on-use.m4: Update.
959 * gnulib/import/m4/wchar_h.m4: Update.
960 * gnulib/import/m4/wchar_t.m4: Update.
961 * gnulib/import/m4/wctype_h.m4: Update.
962 * gnulib/import/m4/wint_t.m4: Update.
963 * gnulib/import/malloc.c: Update.
964 * gnulib/import/malloc/scratch_buffer.h: Update.
965 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
966 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
967 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
968 * gnulib/import/malloca.c: Update.
969 * gnulib/import/malloca.h: Update.
970 * gnulib/import/malloca.valgrind: Update.
971 * gnulib/import/math.in.h: Update.
972 * gnulib/import/mbrtowc.c: Update.
973 * gnulib/import/mbsinit.c: Update.
974 * gnulib/import/mbsrtowcs-impl.h: Update.
975 * gnulib/import/mbsrtowcs-state.c: Update.
976 * gnulib/import/mbsrtowcs.c: Update.
977 * gnulib/import/memchr.c: Update.
978 * gnulib/import/memmem.c: Update.
979 * gnulib/import/mempcpy.c: Update.
980 * gnulib/import/memrchr.c: Update.
981 * gnulib/import/mkdir.c: Update.
982 * gnulib/import/mkstemp.c: Update.
983 * gnulib/import/msvc-inval.c: Update.
984 * gnulib/import/msvc-inval.h: Update.
985 * gnulib/import/msvc-nothrow.c: Update.
986 * gnulib/import/msvc-nothrow.h: Update.
987 * gnulib/import/open.c: Update.
988 * gnulib/import/openat-die.c: Update.
989 * gnulib/import/openat-priv.h: Update.
990 * gnulib/import/openat-proc.c: Update.
991 * gnulib/import/openat.c: Update.
992 * gnulib/import/openat.h: Update.
993 * gnulib/import/opendir.c: Update.
994 * gnulib/import/pathmax.h: Update.
995 * gnulib/import/pipe-safer.c: Update.
996 * gnulib/import/rawmemchr.c: Update.
997 * gnulib/import/readdir.c: Update.
998 * gnulib/import/readlink.c: Update.
999 * gnulib/import/realloc.c: Update.
1000 * gnulib/import/ref-add.sin: Update.
1001 * gnulib/import/ref-del.sin: Update.
1002 * gnulib/import/rename.c: Update.
1003 * gnulib/import/rewinddir.c: Update.
1004 * gnulib/import/rmdir.c: Update.
1005 * gnulib/import/same-inode.h: Update.
1006 * gnulib/import/save-cwd.c: Update.
1007 * gnulib/import/save-cwd.h: Update.
1008 * gnulib/import/scratch_buffer.h: Update.
1009 * gnulib/import/secure_getenv.c: Update.
1010 * gnulib/import/setenv.c: Update.
1011 * gnulib/import/signal.in.h: Update.
1012 * gnulib/import/stat-time.c: Update.
1013 * gnulib/import/stat-time.h: Update.
1014 * gnulib/import/stat-w32.c: Update.
1015 * gnulib/import/stat-w32.h: Update.
1016 * gnulib/import/stat.c: Update.
1017 * gnulib/import/stdbool.in.h: Update.
1018 * gnulib/import/stddef.in.h: Update.
1019 * gnulib/import/stdint.in.h: Update.
1020 * gnulib/import/stdio.in.h: Update.
1021 * gnulib/import/stdlib.in.h: Update.
1022 * gnulib/import/str-two-way.h: Update.
1023 * gnulib/import/strchrnul.c: Update.
1024 * gnulib/import/strdup.c: Update.
1025 * gnulib/import/streq.h: Update.
1026 * gnulib/import/strerror-override.c: Update.
1027 * gnulib/import/strerror-override.h: Update.
1028 * gnulib/import/strerror.c: Update.
1029 * gnulib/import/string.in.h: Update.
1030 * gnulib/import/stripslash.c: Update.
1031 * gnulib/import/strnlen1.c: Update.
1032 * gnulib/import/strnlen1.h: Update.
1033 * gnulib/import/strstr.c: Update.
1034 * gnulib/import/strtok_r.c: Update.
1035 * gnulib/import/sys_stat.in.h: Update.
1036 * gnulib/import/sys_time.in.h: Update.
1037 * gnulib/import/sys_types.in.h: Update.
1038 * gnulib/import/tempname.c: Update.
1039 * gnulib/import/tempname.h: Update.
1040 * gnulib/import/time.in.h: Update.
1041 * gnulib/import/unistd--.h: Update.
1042 * gnulib/import/unistd-safer.h: Update.
1043 * gnulib/import/unistd.in.h: Update.
1044 * gnulib/import/unsetenv.c: Update.
1045 * gnulib/import/verify.h: Update.
1046 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1047 * gnulib/import/wchar.in.h: Update.
1048 * gnulib/import/wctype.in.h: Update.
1049 * gnulib/import/xalloc-oversized.h: Update.
1050 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1051 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1052
8ec23583
SM
10532018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1054
1055 * record-btrace.c (get_thread_current_frame): Remove
1056 old_inferior_ptid.
1057
1f5d1570
JG
10582018-09-10 Jerome Guitton <guitton@adacore.com>
1059
1060 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1061 with check_tag to 1 if and only if the type is tagged and the
1062 component being searched cannot been found in the current
1063 view. Otherwise, always call ada_to_fixed_type with
1064 check_tag to 0.
1065
d91e9ea8
XR
10662018-09-10 Xavier Roirand <roirand@adacore.com>
1067
1068 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1069 declaration.
1070 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1071 * ada-varobj.c (ada_varobj_get_number_of_children,
1072 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1073
cc330e39
XR
10742018-09-10 Xavier Roirand <roirand@adacore.com>
1075
1076 * ada-valprint.c (ada_value_print): Use type instead of
1077 enclosing type.
1078
b9c50e9a
XR
10792018-09-10 Xavier Roirand <roirand@adacore.com>
1080
1081 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1082 an array of access to unconstrained array.
1083
736ade86
XR
10842018-09-10 Xavier Roirand <roirand@adacore.com>
1085
1086 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1087 (ada_check_typedef): Use it.
1088
2963898f
XR
10892018-09-10 Xavier Roirand <roirand@adacore.com>
1090
1091 * ada-varobj.c (ada_varobj_describe_struct_child)
1092 (ada_varobj_describe_child): Handle union case like struct one.
1093
a154931e
TT
10942018-09-10 Tom Tromey <tom@tromey.com>
1095
1096 PR python/18380:
1097 * python/python.c (_initialize_python): Make example in "python"
1098 help work in Python 3.
1099
23c4651c
EZ
11002018-09-10 Eli Zaretskii <eliz@gnu.org>
1101
1102 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1103 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1104 $(EXEEXT) to the script, as it is not a program.
1105
a5c5eda7
SM
11062018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1107
1108 * python/py-prettyprint.c (pretty_print_one_value): Return
1109 gdbpy_ref<>.
1110 (print_string_repr): Adjust.
1111 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1112 * python/python-internal.h (apply_varobj_pretty_printer): Return
1113 gdbpy_ref<>.
1114 * varobj.c (varobj_value_get_print_value): Adjust.
1115
332cf4c9
TT
11162018-09-08 Tom Tromey <tom@tromey.com>
1117
1118 PR python/16047:
1119 * python/py-prettyprint.c (pretty_print_one_value): Check for
1120 to_string method.
1121
424da6cf
JB
11222018-09-08 Joel Brobecker <brobecker@adacore.com>
1123
1124 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1125 replace_operator_with_call.
1126
95f39a5b
JB
11272018-09-08 Joel Brobecker <brobecker@adacore.com>
1128
1129 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1130
16b9eb7b
JB
11312018-09-08 Joel Brobecker <brobecker@adacore.com>
1132
1133 * ada-typeprint.c (print_range): Print the bounds using TYPE
1134 rather than its TYPE_TARGET_TYPE.
1135
d8ce9127
JB
11362018-09-08 Joel Brobecker <brobecker@adacore.com>
1137
1138 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1139 call to ada_to_fixed_value_create.
1140
0d81f350
JG
11412018-09-08 Jerome Guitton <guitton@adacore.com>
1142
1143 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1144
57aff202
JB
11452018-09-08 Joel Brobecker <brobecker@adacore.com>
1146
1147 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1148 by calls to error.
1149
fb44b1a7
JB
11502018-09-08 Joel Brobecker <brobecker@adacore.com>
1151
1152 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1153 Move update of loop variable "fi".
1154
2a62dfa9
JB
11552018-09-08 Joel Brobecker <brobecker@adacore.com>
1156
1157 * ada-lang.c (value_assign_to_component): In the case of
1158 big-endian targets, extract the bits of the given VAL
1159 using an src_offset of zero if container is not a scalar.
1160
739ab2e9
SS
11612018-09-06 Simon Ser <contact@emersion.fr>
1162
1163 PR gdb/23105
1164 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1165 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1166 * fbsd-tdep.c (fbsd_make_note_desc): New.
1167 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1168 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1169 * target.h (enum target_object) Add FreeBSD-specific
1170 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1171
d82b3862
SM
11722018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1173
1174 * compile/compile-c.h (generate_c_for_variable_locations):
1175 Change reference to pointer.
1176 * compile/compile-c-support.c (compile_program) <compute>:
1177 Likewise.
1178 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1179 (generate_c_for_for_one_variable): Likewise
1180 (generate_c_for_variable_locations): Likewise
1181 * compile/compile-c-types.c (compile_c_instance::convert_type):
1182 Likewise
1183 * compile/compile-cplus-symbols.c (convert_one_symbol):
1184 std::move the scope passed to enter_scope.
1185 * compile/compile-cplus-types.c
1186 (compile_cplus_instance::enter_scope): Make parameter
1187 rvalue-reference.
1188 (compile_cplus_instance::new_scope): Change reference to
1189 pointer.
1190 (compile_cplus_instance::convert_type): Likewise
1191 (compile_cplus_convert_typedef): std::move the scope passed to
1192 enter_scope.
1193 (compile_cplus_convert_struct_or_union): Likewise.
1194 (compile_cplus_convert_enum): Likewise.
1195 (compile_cplus_convert_namespace): Likewise.
1196 * compile/compile-cplus.h (compile_cplus_instance)
1197 <enter_scope>: Make parameter rvalue-reference.
1198 * compile/compile-internal.h (compile_instance)
1199 <get_cached_type>: Likewise
1200 * compile/compile-loc2c.c (push): Likewise
1201 (pushf): Likewise
1202 (unary): Likewise
1203 (binary): Likewise
1204 (print_label): Likewise
1205 (pushf_register_address): Likewise
1206 (pushf_register): Likewise
1207 (do_compile_dwarf_expr_to_c): Likewise
1208 (compile_dwarf_expr_to_c): Likewise
1209 (compile_dwarf_bounds_to_c): Likewise
1210 * compile/compile.c (compile_instance::get_cached_type):
1211 Likewise
1212 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1213 (compile_dwarf_bounds_to_c): Likewise
1214 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1215 (dwarf2_compile_property_to_c): Likewise
1216 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1217 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1218 Likewise
1219
cc5a5ae5
SM
12202018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1221
1222 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1223 * tui/tui-data.c (init_content_element): Don't initialize it.
1224
137be540
SM
12252018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1226
1227 * tui/tui-data.h (struct tui_win_info)
1228 <detail::opaque>: Remove.
1229 * tui/tui-data.c (init_win_info): Remove assignment.
1230
f1628857
TT
12312018-09-05 Tom Tromey <tom@tromey.com>
1232
1233 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1234 -Wformat-nonliteral.
1235 * target-float.c (host_float_ops<T>::to_string)
1236 (host_float_ops<T>::from_string): Use
1237 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1238 * configure: Rebuild.
1239
af39b1c2
SM
12402018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1241
1242 * printcmd.c (printf_c_string): Use
1243 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1244 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1245
081bca4d
TT
12462018-09-05 Tom Tromey <tom@tromey.com>
1247
1248 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1249
e4a62c65
TV
12502018-09-05 Tom de Vries <tdevries@suse.de>
1251
1252 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1253 with resolve_abstract_p == true.
1254 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1255 defaulting to false. Propagate resolve_abstract_p to
1256 dwarf2_fetch_die_loc_sect_off.
1257 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1258 parameter, defaulting to false.
1259 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1260 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1261 parameter.
1262 * dwarf2read.h (struct die_info): Forward-declare.
1263 (die_info_ptr): New typedef.
1264 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1265
2b69821e
JB
12662018-09-05 Joel Brobecker <brobecker@adacore.com>
1267
1268 GDB 8.2 released.
1269
fcc9b044
SDJ
12702018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1271 Pedro Alves <palves@redhat.com>
1272
1273 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1274 "aclocal-m4-deps.mk". Include file here.
1275 $(srcdir)/aclocal.m4: Add "configure.ac".
1276 * gnulib/aclocal-m4-deps.mk: New file.
1277 * gnulib/update-gnulib.sh: Automatically update
1278 "aclocal-m4-deps.mk".
1279
d53d5436
TT
12802018-09-04 Tom Tromey <tom@tromey.com>
1281
1282 * configure: Rebuild.
1283 * configure.ac: Remove multi-ice code.
1284
8dc9fd87
TT
12852018-09-04 Tom Tromey <tom@tromey.com>
1286
1287 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1288 (ada-exp.o): Update.
1289
3322c5d9
TT
12902018-09-04 Tom Tromey <tom@tromey.com>
1291
1292 * Makefile.in (printcmd.o, target-float.o): Remove.
1293 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1294
ba2bf2aa
TT
12952018-09-04 Tom Tromey <tom@tromey.com>
1296
1297 * gnulib/Makefile.in: Remove obsolete comment.
1298 * Makefile.in: Remove obsolete comment.
1299
6c9d681b
AB
13002018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1301
1302 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1303 line with '+'.
1304
78a3b0fa
AB
13052018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1306
1307 * riscv-tdep.c: Add 'prologue-value.h' include.
1308 (struct riscv_unwind_cache): New struct.
1309 (riscv_debug_unwinder): New global.
1310 (riscv_scan_prologue): Update arguments, capture register details
1311 from prologue scan.
1312 (riscv_skip_prologue): Reformat arguments line, move end of
1313 prologue calculation into riscv_scan_prologue.
1314 (riscv_frame_cache): Update return type, create
1315 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1316 details.
1317 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1318 (riscv_frame_prev_register): Use the trad_frame within the
1319 riscv_unwind_cache.
1320 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1321 flag.
1322
23e60e7a
AB
13232018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1324
1325 * trad-frame.h (trad_frame_set_realreg): Declare.
1326 (trad_frame_set_addr): Declare.
1327 * trad-frame.c (trad_frame_set_realreg): Define new function.
1328 (trad_frame_set_addr): Define new function.
1329 (trad_frame_set_reg_realreg): Use new function.
1330 (trad_frame_set_reg_addr): Use new function.
1331
5c889512
KS
13322018-09-01 Keith Seitz <keiths@redhat.com>
1333
1334 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1335 pulongest instead of "%lld".
1336 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1337 ATTRIBUTE_UNUSED.
1338
c8c81635
TT
13392018-08-31 Tom Tromey <tom@tromey.com>
1340
1341 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1342 variant part type.
1343
0c888588
PA
13442018-08-31 Pedro Alves <palves@redhat.com>
1345
1346 * gdbarch.h: Regenerate.
1347
7ea65f08
PA
13482018-08-31 Pedro Alves <palves@redhat.com>
1349
1350 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1351 * target.h (Hardware watchpoint interfaces): Describe
1352 continuable/steppable/non-steppable watchpoints.
1353 * gdbarch.h, gdbarch.c: Regenerate.
1354
7eb65faf
PA
13552018-08-31 Pedro Alves <palves@redhat.com>
1356
1357 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1358 Delete.
1359 * s390-linux-nat.c
1360 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1361 * target.h (target_ops::have_continuable_watchpoint): Delete.
1362 (target_have_continuable_watchpoint): Delete.
1363 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1364 * target-delegates.c: Regenerate.
1365
dab999b1
SDJ
13662018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1367
1368 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1369 the files present in "gnulib/import/m4/".
1370
ff3a05b3
AB
13712018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1372
1373 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1374 c.sw, c.swsp, and c.sdsp.
1375
0b3f9efc
AB
13762018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1377
1378 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1379 (riscv_read_misa_reg): Don't cache value read into inferior data.
1380 (riscv_new_inferior_data): Delete.
1381 (riscv_inferior_data_cleanup): Delete.
1382 (riscv_inferior_data): Delete.
1383 (riscv_invalidate_inferior_data): Delete.
1384 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1385
a0dc02a6
SM
13862018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1387
1388 * compile/compile-cplus-types.c
1389 (compile_cplus_instance::leave_scope): Take the address of scope
1390 object.
1391 (compile_cplus_instance::convert_qualified_base): Compare quals
1392 to 0.
1393
fdad7678
KS
13942018-08-30 Keith Seitz <keiths@redhat.com>
1395
1396 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1397 Use "%s" and host_address_to_string instead of "%p" in printf.
1398
078a0207
KS
13992018-08-29 Keith Seitz <keiths@redhat.com>
1400
1401 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1402 and compile-cplus-types.c.
1403 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1404 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1405 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1406 Declare.
1407 * compile/compile-c-support.c: Include compile-cplus.h.
1408 (load_libcompile): Templatize.
1409 (get_compile_context): "New" function.
1410 (c_get_compile_context): Use get_compile_context.
1411 (cplus_get_compile_context): New function.
1412 (cplus_push_user_expression, cplus_pop_user_expression)
1413 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1414 (cplus_compute_program): Define new structs/functions.
1415 * compile/compile-cplus-symmbols.c: New file.
1416 * compile/compile-cplus-types.c: New file.
1417 * compile/compile-cplus.h: New file.
1418 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1419 Declare.
1420 * compile/compile-object-load.c (get_out_value_type): Use
1421 strncmp_iw when comparing symbol names.
1422 (compile_object_load): Add mst_bss and mst_data.
1423 * compile/compile.c (_initialize_compile): Remove
1424 -Wno-implicit-function-declaration from `compile_args'.
1425 * compile/gcc-cp-plugin.h: New file.
1426 * NEWS: Mention C++ compile support and new debug options.
1427
fcaad03c
KS
14282018-08-29 Keith Seitz <keiths@redhat.com>
1429
1430 * linespec.c (collect_info::add_symbol): Make virtual.
1431 (struct symbol_searcher_collect_info): New struct.
1432 (symbol_searcher::find_all_symbols): New method.
1433 * symtab.h (class symbol_searcher): New class.
1434
7e41c8db
KS
14352018-08-29 Keith Seitz <keiths@redhat.com>
1436
1437 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1438 Change to vector of block_symbol. Update all users.
1439 (struct collect_info) <symbols>: Likewise.
1440 (collect_info::add_symbol): Take block_symbol as argument.
1441 Update all callers.
1442 (decode_compound_collector) <m_symbols>: Change type to vector
1443 of block_symbol. Update all users.
1444 (decode_compound_collector::operator ()): Change parameter type
1445 to block_symbol.
1446 (find_method, find_function_symbols, find_linespec_symbols)
1447 (find_label_symbols_in_block, find_label_symbols): Change symbol
1448 vectors to block_symbol vectors.
1449 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1450 block_symbol.
1451
63e8c3da
KS
14522018-08-29 Keith Seitz <keiths@redhat.com>
1453
1454 * linespec.c (symbolp): Remove typedef and VEC definitions.
1455 (bound_minimal_symbol_d): Likewise.
1456
4dedf84d
KS
14572018-08-29 Keith Seitz <keiths@redhat.com>
1458
1459 * linespec.c (decode_compound_collector::decode_compound_collector):
1460 Remove initialization for `m_symtabs'.
1461 (decode_compound_collector::release_symbols): Change return type
1462 to std::vector. Update all callers.
1463 (class decode_compound_collector) <m_symbols>: Change type to
1464 std::vector.
1465 (lookup_prefix_sym): Change return type to std::vector. Update all
1466 callers.
1467 (compare_symbols): Remove.
1468 (std_compare_symbols): Rename to `compare_symbols'.
1469 (find_method): Change `sym_classes' parameter to std::vector.
1470 Update all callers. Use std::sort to sort sym_classes.
1471 (find_linespec_symbols): Remove cleanup.
1472
c2a031c5
KS
14732018-08-29 Keith Seitz <keiths@redhat.com>
1474
1475 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1476 std::vector. Update all users.
1477 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1478 (struct collect_info) <minimal_symbols>: Likewise.
1479 (compare_msymbols): Return bool. Change parameters to const
1480 bound_minimal_symbol references.
1481 (find_method, find_function_symbols, find_linespec_symbols): Change
1482 `minsyms' parameter to std::vector. Update all callers.
1483
3553eadc
KS
14842018-08-29 Keith Seitz <keiths@redhat.com>
1485
1486 * linespec.c (struct linespec) <label_symbols>: Change type to
1487 std::vector. Update all users.
1488 (find_label_symbols_in_block): Change `result' parameter to
1489 std::vector. Update all callers.
1490 (find_label_symbols): Return std::vector. Update all callers.
1491
7243d011
KS
14922018-08-29 Keith Seitz <keiths@redhat.com>
1493
1494 * linespec.c (struct linespec) <function_symbols>: Change type to
1495 std::vector. Update all users.
1496 (struct collect_info) <function_symbols>: Likewise.
1497 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1498 (std_compare_symbols): New function.
1499 (find_method, find_function_symbols, find_linespec_symbols)
1500 (find_label_symbols_in_block): Change `symbols' parameter to
1501 std::vector. Update all callers.
1502 (find_label_symbols): Likewise for `function_symbols' and
1503 `label_funcs_ret'.
1504
2a908241
KS
15052018-08-29 Keith Seitz <keiths@redhat.com>
1506
1507 * linespec.c (symtab_vector_up): Define.
1508 (struct linespec) <file_symtabs>: Change type to std::vector *.
1509 Update all uses.
1510 (struct collect_info) <file_symtabs>: Likewise.
1511 (collect_symtabs_from_filename): Return symtab_vector_up.
1512 Update all callers.
1513 (decode_objc): Remove cleanup.
1514 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1515 (symtab_collector::release_symtabs): Return symtab_vector_up.
1516 Update all callers.
1517 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1518 Update all users.
1519 (collect_symtabs_from_filename, symtabs_from_filename): Return
1520 symtab_vector_up. Update all callers.
1521
f6c4e3e8
TT
15222018-08-29 Tom Tromey <tom@tromey.com>
1523
1524 * csky-tdep.c (csky_analyze_prologue): Use
1525 core_addr_to_string_nz.
1526
73c13fe6
TT
15272018-08-29 Tom Tromey <tom@tromey.com>
1528
1529 * windows-nat.c (struct xlate_exception) <them>: Change type to
1530 DWORD.
1531 (xlate): Fix formatting. Remove last entry.
1532 (struct xlate_exception, xlate): Comment out.
1533 (windows_nat_target::resume): Use ranged for.
1534
4d3928d7
JW
15352018-08-29 Jim Wilson <jimw@sifive.com>
1536
1537 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1538 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1539 of NT_PRFPREG.
1540 (riscv_linux_nat_target::store_registers): Likewise.
1541
7a6dbc2f
SDJ
15422018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1543
1544 PR gdb/23555
1545 PR gdb/23558
1546 * gnulib/aclocal.m4: Regenerate.
1547 * gnulib/config.in: Regenerate.
1548 * gnulib/configure: Regenerate.
1549 * gnulib/import/Makefile.am: Update.
1550 * gnulib/import/Makefile.in: Update.
1551 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1552 * gnulib/import/_Noreturn.h: ... this.
1553 * gnulib/import/alloca.in.h: Update.
1554 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1555 * gnulib/import/arg-nonnull.h: ... this.
1556 * gnulib/import/assure.h: Update.
1557 * gnulib/import/at-func.c: Update.
1558 * gnulib/import/basename-lgpl.c: Update.
1559 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1560 * gnulib/import/c++defs.h: ... this.
1561 * gnulib/import/canonicalize-lgpl.c: Update.
1562 * gnulib/import/cdefs.h: Update.
1563 * gnulib/import/chdir-long.c: Update.
1564 * gnulib/import/chdir-long.h: Update.
1565 * gnulib/import/cloexec.c: Update.
1566 * gnulib/import/cloexec.h: Update.
1567 * gnulib/import/close.c: Update.
1568 * gnulib/import/closedir.c: Update.
1569 * gnulib/import/config.charset: Update.
1570 * gnulib/import/dirent-private.h: Update.
1571 * gnulib/import/dirent.in.h: Update.
1572 * gnulib/import/dirfd.c: Update.
1573 * gnulib/import/dirname-lgpl.c: Update.
1574 * gnulib/import/dirname.h: Update.
1575 * gnulib/import/dosname.h: Update.
1576 * gnulib/import/dup-safer-flag.c: Update.
1577 * gnulib/import/dup-safer.c: Update.
1578 * gnulib/import/dup.c: Update.
1579 * gnulib/import/dup2.c: Update.
1580 * gnulib/import/errno.in.h: Update.
1581 * gnulib/import/error.c: Update.
1582 * gnulib/import/error.h: Update.
1583 * gnulib/import/exitfail.c: Update.
1584 * gnulib/import/exitfail.h: Update.
1585 * gnulib/import/extra/update-copyright: Update.
1586 * gnulib/import/fchdir.c: Update.
1587 * gnulib/import/fcntl.c: Update.
1588 * gnulib/import/fcntl.in.h: Update.
1589 * gnulib/import/fd-hook.c: Update.
1590 * gnulib/import/fd-hook.h: Update.
1591 * gnulib/import/fd-safer-flag.c: Update.
1592 * gnulib/import/fd-safer.c: Update.
1593 * gnulib/import/fdopendir.c: Update.
1594 * gnulib/import/filename.h: Update.
1595 * gnulib/import/filenamecat-lgpl.c: Update.
1596 * gnulib/import/filenamecat.h: Update.
1597 * gnulib/import/flexmember.h: Update.
1598 * gnulib/import/float+.h: Update.
1599 * gnulib/import/float.c: Update.
1600 * gnulib/import/float.in.h: Update.
1601 * gnulib/import/fnmatch.c: Update.
1602 * gnulib/import/fnmatch.in.h: Update.
1603 * gnulib/import/fnmatch_loop.c: Update.
1604 * gnulib/import/fpucw.h: Update.
1605 * gnulib/import/frexp.c: Update.
1606 * gnulib/import/frexpl.c: Update.
1607 * gnulib/import/fstat.c: Update.
1608 * gnulib/import/fstatat.c: Update.
1609 * gnulib/import/getcwd-lgpl.c: Update.
1610 * gnulib/import/getcwd.c: Update.
1611 * gnulib/import/getdtablesize.c: Update.
1612 * gnulib/import/getlogin_r.c: Update.
1613 * gnulib/import/getprogname.c: Update.
1614 * gnulib/import/getprogname.h: Update.
1615 * gnulib/import/gettext.h: Update.
1616 * gnulib/import/gettimeofday.c: Update.
1617 * gnulib/import/glob-libc.h: Update.
1618 * gnulib/import/glob.c: Update.
1619 * gnulib/import/glob.in.h: Update.
1620 * gnulib/import/glob_internal.h: Update.
1621 * gnulib/import/glob_pattern_p.c: Update.
1622 * gnulib/import/globfree.c: Update.
1623 * gnulib/import/hard-locale.c: Update.
1624 * gnulib/import/hard-locale.h: Update.
1625 * gnulib/import/intprops.h: Update.
1626 * gnulib/import/inttypes.in.h: Update.
1627 * gnulib/import/isnan.c: Update.
1628 * gnulib/import/isnand-nolibm.h: Update.
1629 * gnulib/import/isnand.c: Update.
1630 * gnulib/import/isnanl-nolibm.h: Update.
1631 * gnulib/import/isnanl.c: Update.
1632 * gnulib/import/itold.c: Update.
1633 * gnulib/import/libc-config.h: Update.
1634 * gnulib/import/limits.in.h: Update.
1635 * gnulib/import/localcharset.c: Update.
1636 * gnulib/import/localcharset.h: Update.
1637 * gnulib/import/localtime-buffer.c: Update.
1638 * gnulib/import/localtime-buffer.h: Update.
1639 * gnulib/import/lstat.c: Update.
1640 * gnulib/import/m4/00gnulib.m4: Update.
1641 * gnulib/import/m4/__inline.m4: Update.
1642 * gnulib/import/m4/absolute-header.m4: Update.
1643 * gnulib/import/m4/alloca.m4: Update.
1644 * gnulib/import/m4/builtin-expect.m4: Update.
1645 * gnulib/import/m4/canonicalize.m4: Update.
1646 * gnulib/import/m4/chdir-long.m4: Update.
1647 * gnulib/import/m4/close.m4: Update.
1648 * gnulib/import/m4/closedir.m4: Update.
1649 * gnulib/import/m4/configmake.m4: Update.
1650 * gnulib/import/m4/d-ino.m4: Update.
1651 * gnulib/import/m4/d-type.m4: Update.
1652 * gnulib/import/m4/dirent_h.m4: Update.
1653 * gnulib/import/m4/dirfd.m4: Update.
1654 * gnulib/import/m4/dirname.m4: Update.
1655 * gnulib/import/m4/double-slash-root.m4: Update.
1656 * gnulib/import/m4/dup.m4: Update.
1657 * gnulib/import/m4/dup2.m4: Update.
1658 * gnulib/import/m4/eealloc.m4: Update.
1659 * gnulib/import/m4/environ.m4: Update.
1660 * gnulib/import/m4/errno_h.m4: Update.
1661 * gnulib/import/m4/error.m4: Update.
1662 * gnulib/import/m4/exponentd.m4: Update.
1663 * gnulib/import/m4/exponentl.m4: Update.
1664 * gnulib/import/m4/extensions.m4: Update.
1665 * gnulib/import/m4/extern-inline.m4: Update.
1666 * gnulib/import/m4/fchdir.m4: Update.
1667 * gnulib/import/m4/fcntl-o.m4: Update.
1668 * gnulib/import/m4/fcntl.m4: Update.
1669 * gnulib/import/m4/fcntl_h.m4: Update.
1670 * gnulib/import/m4/fdopendir.m4: Update.
1671 * gnulib/import/m4/filenamecat.m4: Update.
1672 * gnulib/import/m4/flexmember.m4: Update.
1673 * gnulib/import/m4/float_h.m4: Update.
1674 * gnulib/import/m4/fnmatch.m4: Update.
1675 * gnulib/import/m4/fnmatch_h.m4: Update.
1676 * gnulib/import/m4/fpieee.m4: Update.
1677 * gnulib/import/m4/frexp.m4: Update.
1678 * gnulib/import/m4/frexpl.m4: Update.
1679 * gnulib/import/m4/fstat.m4: Update.
1680 * gnulib/import/m4/fstatat.m4: Update.
1681 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1682 * gnulib/import/m4/getcwd-path-max.m4: Update.
1683 * gnulib/import/m4/getcwd.m4: Update.
1684 * gnulib/import/m4/getdtablesize.m4: Update.
1685 * gnulib/import/m4/getlogin.m4: Update.
1686 * gnulib/import/m4/getlogin_r.m4: Update.
1687 * gnulib/import/m4/getpagesize.m4: Update.
1688 * gnulib/import/m4/getprogname.m4: Update.
1689 * gnulib/import/m4/gettimeofday.m4: Update.
1690 * gnulib/import/m4/glibc21.m4: Update.
1691 * gnulib/import/m4/glob.m4: Update.
1692 * gnulib/import/m4/glob_h.m4: Update.
1693 * gnulib/import/m4/gnulib-cache.m4: Update.
1694 * gnulib/import/m4/gnulib-common.m4: Update.
1695 * gnulib/import/m4/gnulib-comp.m4: Update.
1696 * gnulib/import/m4/gnulib-tool.m4: Update.
1697 * gnulib/import/m4/hard-locale.m4: Update.
1698 * gnulib/import/m4/include_next.m4: Update.
1699 * gnulib/import/m4/inttypes-pri.m4: Update.
1700 * gnulib/import/m4/inttypes.m4: Update.
1701 * gnulib/import/m4/isnand.m4: Update.
1702 * gnulib/import/m4/isnanl.m4: Update.
1703 * gnulib/import/m4/largefile.m4: Update.
1704 * gnulib/import/m4/limits-h.m4: Update.
1705 * gnulib/import/m4/localcharset.m4: Update.
1706 * gnulib/import/m4/locale-fr.m4: Update.
1707 * gnulib/import/m4/locale-ja.m4: Update.
1708 * gnulib/import/m4/locale-zh.m4: Update.
1709 * gnulib/import/m4/localtime-buffer.m4: Update.
1710 * gnulib/import/m4/longlong.m4: Update.
1711 * gnulib/import/m4/lstat.m4: Update.
1712 * gnulib/import/m4/malloc.m4: Update.
1713 * gnulib/import/m4/malloca.m4: Update.
1714 * gnulib/import/m4/math_h.m4: Update.
1715 * gnulib/import/m4/mbrtowc.m4: Update.
1716 * gnulib/import/m4/mbsinit.m4: Update.
1717 * gnulib/import/m4/mbsrtowcs.m4: Update.
1718 * gnulib/import/m4/mbstate_t.m4: Update.
1719 * gnulib/import/m4/memchr.m4: Update.
1720 * gnulib/import/m4/memmem.m4: Update.
1721 * gnulib/import/m4/mempcpy.m4: Update.
1722 * gnulib/import/m4/memrchr.m4: Update.
1723 * gnulib/import/m4/mkdir.m4: Update.
1724 * gnulib/import/m4/mkstemp.m4: Update.
1725 * gnulib/import/m4/mmap-anon.m4: Update.
1726 * gnulib/import/m4/mode_t.m4: Update.
1727 * gnulib/import/m4/msvc-inval.m4: Update.
1728 * gnulib/import/m4/msvc-nothrow.m4: Update.
1729 * gnulib/import/m4/multiarch.m4: Update.
1730 * gnulib/import/m4/nocrash.m4: Update.
1731 * gnulib/import/m4/off_t.m4: Update.
1732 * gnulib/import/m4/onceonly.m4: Update.
1733 * gnulib/import/m4/open-cloexec.m4: Update.
1734 * gnulib/import/m4/open.m4: Update.
1735 * gnulib/import/m4/openat.m4: Update.
1736 * gnulib/import/m4/opendir.m4: Update.
1737 * gnulib/import/m4/pathmax.m4: Update.
1738 * gnulib/import/m4/rawmemchr.m4: Update.
1739 * gnulib/import/m4/readdir.m4: Update.
1740 * gnulib/import/m4/readlink.m4: Update.
1741 * gnulib/import/m4/realloc.m4: Update.
1742 * gnulib/import/m4/rename.m4: Update.
1743 * gnulib/import/m4/rewinddir.m4: Update.
1744 * gnulib/import/m4/rmdir.m4: Update.
1745 * gnulib/import/m4/save-cwd.m4: Update.
1746 * gnulib/import/m4/secure_getenv.m4: Update.
1747 * gnulib/import/m4/setenv.m4: Update.
1748 * gnulib/import/m4/signal_h.m4: Update.
1749 * gnulib/import/m4/ssize_t.m4: Update.
1750 * gnulib/import/m4/stat-time.m4: Update.
1751 * gnulib/import/m4/stat.m4: Update.
1752 * gnulib/import/m4/std-gnu11.m4: Update.
1753 * gnulib/import/m4/stdbool.m4: Update.
1754 * gnulib/import/m4/stddef_h.m4: Update.
1755 * gnulib/import/m4/stdint.m4: Update.
1756 * gnulib/import/m4/stdio_h.m4: Update.
1757 * gnulib/import/m4/stdlib_h.m4: Update.
1758 * gnulib/import/m4/strchrnul.m4: Update.
1759 * gnulib/import/m4/strdup.m4: Update.
1760 * gnulib/import/m4/strerror.m4: Update.
1761 * gnulib/import/m4/string_h.m4: Update.
1762 * gnulib/import/m4/strstr.m4: Update.
1763 * gnulib/import/m4/strtok_r.m4: Update.
1764 * gnulib/import/m4/sys_socket_h.m4: Update.
1765 * gnulib/import/m4/sys_stat_h.m4: Update.
1766 * gnulib/import/m4/sys_time_h.m4: Update.
1767 * gnulib/import/m4/sys_types_h.m4: Update.
1768 * gnulib/import/m4/tempname.m4: Update.
1769 * gnulib/import/m4/time_h.m4: Update.
1770 * gnulib/import/m4/unistd-safer.m4: Update.
1771 * gnulib/import/m4/unistd_h.m4: Update.
1772 * gnulib/import/m4/warn-on-use.m4: Update.
1773 * gnulib/import/m4/wchar_h.m4: Update.
1774 * gnulib/import/m4/wchar_t.m4: Update.
1775 * gnulib/import/m4/wctype_h.m4: Update.
1776 * gnulib/import/m4/wint_t.m4: Update.
1777 * gnulib/import/malloc.c: Update.
1778 * gnulib/import/malloc/scratch_buffer.h: Update.
1779 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1780 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1781 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1782 * gnulib/import/malloca.c: Update.
1783 * gnulib/import/malloca.h: Update.
1784 * gnulib/import/malloca.valgrind: Update.
1785 * gnulib/import/math.in.h: Update.
1786 * gnulib/import/mbrtowc.c: Update.
1787 * gnulib/import/mbsinit.c: Update.
1788 * gnulib/import/mbsrtowcs-impl.h: Update.
1789 * gnulib/import/mbsrtowcs-state.c: Update.
1790 * gnulib/import/mbsrtowcs.c: Update.
1791 * gnulib/import/memchr.c: Update.
1792 * gnulib/import/memmem.c: Update.
1793 * gnulib/import/mempcpy.c: Update.
1794 * gnulib/import/memrchr.c: Update.
1795 * gnulib/import/mkdir.c: Update.
1796 * gnulib/import/mkstemp.c: Update.
1797 * gnulib/import/msvc-inval.c: Update.
1798 * gnulib/import/msvc-inval.h: Update.
1799 * gnulib/import/msvc-nothrow.c: Update.
1800 * gnulib/import/msvc-nothrow.h: Update.
1801 * gnulib/import/open.c: Update.
1802 * gnulib/import/openat-die.c: Update.
1803 * gnulib/import/openat-priv.h: Update.
1804 * gnulib/import/openat-proc.c: Update.
1805 * gnulib/import/openat.c: Update.
1806 * gnulib/import/openat.h: Update.
1807 * gnulib/import/opendir.c: Update.
1808 * gnulib/import/pathmax.h: Update.
1809 * gnulib/import/pipe-safer.c: Update.
1810 * gnulib/import/rawmemchr.c: Update.
1811 * gnulib/import/readdir.c: Update.
1812 * gnulib/import/readlink.c: Update.
1813 * gnulib/import/realloc.c: Update.
1814 * gnulib/import/ref-add.sin: Update.
1815 * gnulib/import/ref-del.sin: Update.
1816 * gnulib/import/rename.c: Update.
1817 * gnulib/import/rewinddir.c: Update.
1818 * gnulib/import/rmdir.c: Update.
1819 * gnulib/import/same-inode.h: Update.
1820 * gnulib/import/save-cwd.c: Update.
1821 * gnulib/import/save-cwd.h: Update.
1822 * gnulib/import/scratch_buffer.h: Update.
1823 * gnulib/import/secure_getenv.c: Update.
1824 * gnulib/import/setenv.c: Update.
1825 * gnulib/import/signal.in.h: Update.
1826 * gnulib/import/stat-time.c: Update.
1827 * gnulib/import/stat-time.h: Update.
1828 * gnulib/import/stat-w32.c: Update.
1829 * gnulib/import/stat-w32.h: Update.
1830 * gnulib/import/stat.c: Update.
1831 * gnulib/import/stdbool.in.h: Update.
1832 * gnulib/import/stddef.in.h: Update.
1833 * gnulib/import/stdint.in.h: Update.
1834 * gnulib/import/stdio.in.h: Update.
1835 * gnulib/import/stdlib.in.h: Update.
1836 * gnulib/import/str-two-way.h: Update.
1837 * gnulib/import/strchrnul.c: Update.
1838 * gnulib/import/strdup.c: Update.
1839 * gnulib/import/streq.h: Update.
1840 * gnulib/import/strerror-override.c: Update.
1841 * gnulib/import/strerror-override.h: Update.
1842 * gnulib/import/strerror.c: Update.
1843 * gnulib/import/string.in.h: Update.
1844 * gnulib/import/stripslash.c: Update.
1845 * gnulib/import/strnlen1.c: Update.
1846 * gnulib/import/strnlen1.h: Update.
1847 * gnulib/import/strstr.c: Update.
1848 * gnulib/import/strtok_r.c: Update.
1849 * gnulib/import/sys_stat.in.h: Update.
1850 * gnulib/import/sys_time.in.h: Update.
1851 * gnulib/import/sys_types.in.h: Update.
1852 * gnulib/import/tempname.c: Update.
1853 * gnulib/import/tempname.h: Update.
1854 * gnulib/import/time.in.h: Update.
1855 * gnulib/import/unistd--.h: Update.
1856 * gnulib/import/unistd-safer.h: Update.
1857 * gnulib/import/unistd.in.h: Update.
1858 * gnulib/import/unsetenv.c: Update.
1859 * gnulib/import/verify.h: Update.
1860 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1861 * gnulib/import/wchar.in.h: Update.
1862 * gnulib/import/wctype.in.h: Update.
1863 * gnulib/import/xalloc-oversized.h: Update.
1864 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1865 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1866
b0f492b9
GB
18672018-08-16 Gary Benson <gbenson@redhat.com>
1868
1869 PR gdb/13000:
1870 * gdb/main.c (captured_main_1): Exit with nonzero status
1871 in batch mode if the last command to be executed failed.
1872 * NEWS: Mention the above.
1873
2362e7f7
SM
18742018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1875
1876 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1877 end of warning message.
1878
4f4aedeb
AH
18792018-08-29 Alan Hayward <alan.hayward@arm.com>
1880
1881 PR gdb/22943:
1882 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1883 (aarch64_extract_return_value): Use
1884 aapcs_is_vfp_call_or_return_candidate.
1885 (aarch64_return_in_memory): Likewise.
1886 (aarch64_store_return_value): Likewise.
1887
0e745c60
AH
18882018-08-29 Alan Hayward <alan.hayward@arm.com>
1889
1890 * aarch64-tdep.c
1891 (aapcs_is_vfp_call_or_return_candidate): Make static
1892 (pass_in_v_or_stack): Remove function.
1893 (pass_in_v_vfp_candidate): New function.
1894 (aarch64_push_dummy_call): Check for float register candidates.
1895
ea92689a
AH
18962018-08-29 Alan Hayward <alan.hayward@arm.com>
1897
1898 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1899 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1900 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1901
ad202fcc
SM
19022018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1903
1904 PR build/23399
1905 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1906 (struct ipa_sym_addresses): Rename to...
1907 (struct ipa_sym_addresses_common): ... this.
1908 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1909
5fe3f3e4
TT
19102018-08-28 Tom Tromey <tom@tromey.com>
1911
1912 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1913 (token_fifo): Now a std::vector.
1914 (yylex, c_parse): Update.
1915 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1916 (token_fifo): Now a std::vector.
1917 (yylex, d_parse): Update.
1918 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1919 (token_fifo): Now a std::vector.
1920 (yylex, go_parse): Update.
1921
858d8004
SM
19222018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1923
1924 * parser-defs.h (struct type_stack) <elements>: Change type to
1925 std::vector<union type_stack_elt>.
1926 <depth, size>: Remove.
1927 * parse.c (parse_exp_in_context_1): Adjust.
1928 (type_stack_reserve): Remove.
1929 (check_type_stack_depth): Remove.
1930 (insert_into_type_stack): Adjust to std::vector.
1931 (insert_type): Likewise.
1932 (push_type): Likewise.
1933 (push_type_int): Likewise.
1934 (insert_type_address_space): Likewise.
1935 (pop_type): Likewise.
1936 (pop_type_int): Likewise.
1937 (pop_typelist): Likewise.
1938 (pop_type_stack): Likewise.
1939 (append_type_stack): Likewise.
1940 (push_type_stack): Likewise.
1941 (get_type_stack): Likewise.
1942 (type_stack_cleanup): Likewise.
1943 (push_typelist): Likewise.
1944 (follow_types): Likewise.
1945 (_initialize_parse): Likewise.
1946
416a69af
HAQ
19472018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1948
1949 * NEWS: Mention csky target.
1950
9d24df82
HAQ
19512018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1952 Hafiz Abid Qadeer <abidh@codesourcery.com>
1953 Don Breazeal <donb@codesourcery.com>
1954
1955 * csky-linux-tdep.c: New file.
1956 * csky-tdep.c: Likewise.
1957 * csky-tdep.h: Likewise.
1958 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1959 csky-tdep.o.
1960 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1961 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1962 * configure.tgt: Add csky support.
1963
3bf9c013
JV
19642018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1965
1966 * python/py-framefilter.c (py_print_frame): Print frame architecture
1967 when printing on an MI output.
1968
d3d8724a
TT
19692018-08-27 Tom Tromey <tom@tromey.com>
1970
1971 PR build/23087:
1972 * configure: Rebuild.
1973 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1974
1885053b
TT
19752018-08-27 Tom Tromey <tom@tromey.com>
1976
1977 * aarch64-linux-tdep.c
1978 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1979 casts to int.
1980
8406672e
TT
19812018-08-27 Tom Tromey <tom@tromey.com>
1982
1983 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1984 unsigned.
1985 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1986 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1987 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1988 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1989 unsigned.
1990
ec40cf90
TT
19912018-08-27 Tom Tromey <tom@tromey.com>
1992
1993 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1994 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1995
7bc02706
TT
19962018-08-27 Tom Tromey <tom@tromey.com>
1997
1998 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1999 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2000 ULONGEST_MAX.
2001 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2002 ULONGEST_MAX.
2003 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2004 ULONGEST_MAX.
2005 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2006 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2007 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2008 ULONGEST_MAX.
2009 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2010 (ppc64_linux_sigaction_tramp_frame)
2011 (ppc32_linux_sighandler_tramp_frame)
2012 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2013 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2014 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2015 * mn10300-linux-tdep.c (am33_linux_sigframe)
2016 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2017 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2018 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2019 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2020 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2021 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2022 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2023 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2024 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2025 * microblaze-linux-tdep.c
2026 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2027 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2028 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2029 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2030 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2031 * common/common-types.h (ULONGEST_MAX): New define.
2032 (CORE_ADDR_MAX): Fix formatting.
2033 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2034 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2035 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2036 (arm_linux_rt_sigreturn_tramp_frame)
2037 (arm_eabi_linux_sigreturn_tramp_frame)
2038 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2039 (thumb2_eabi_linux_sigreturn_tramp_frame)
2040 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2041 (arm_linux_restart_syscall_tramp_frame)
2042 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2043 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2044 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2045 ULONGEST_MAX.
2046 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2047
70ab8ccd
TT
20482018-08-27 Tom Tromey <tom@tromey.com>
2049
2050 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2051 CORE_ADDR_MAX.
2052 * mips-tdep.c (mips_deal_with_atomic_sequence)
2053 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2054 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2055 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2056 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2057 CORE_ADDR_MAX.
2058 * aarch64-tdep.c (aarch64_software_single_step): Use
2059 CORE_ADDR_MAX.
2060
896a7aa6
TT
20612018-08-27 Tom Tromey <tom@tromey.com>
2062
2063 * linespec.c (complete_linespec_component): Add cast to "char".
2064 * completer.c (completion_tracker::build_completion_result): Add
2065 cast to "char".
2066
dd33d41d
SM
20672018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2068
2069 * solist.h (struct solist, struct target_so_ops): Fix
2070 indentation.
2071
c645cda4
SM
20722018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2073
2074 * ada-tasks.c (ada_task_info_s): Remove typedef.
2075 (DEF_VEC_O(ada_task_info_s)): Remove.
2076 (struct ada_tasks_inferior_data): Initialize fields.
2077 <task_list>: Make an std::vector.
2078 (get_ada_tasks_inferior_data): Allocate with new.
2079 (ada_get_task_number): Adjust.
2080 (get_task_number_from_id): Likewise.
2081 (valid_task_id): Likewise.
2082 (ada_get_task_info_from_ptid): Likewise.
2083 (iterate_over_live_ada_tasks): Likewise.
2084 (add_ada_task): Likewise.
2085 (read_known_tasks): Likewise.
2086 (ada_build_task_list): Likewise.
2087 (print_ada_task_info): Likewise.
2088 (info_task): Likewise.
2089 (task_command_1): Likewise.
2090
39e7af3e
SM
20912018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2092
2093 * ada-lang.c (add_angle_brackets): Return std::string.
2094
bbbbbcee
SM
20952018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2096
2097 * python/py-threadevent.c (py_get_event_thread): Initialize
2098 pythread.
2099
d98fc15b
PA
21002018-08-24 Pedro Alves <palves@redhat.com>
2101
2102 * python/py-bpevent.c (create_breakpoint_event_object): Use
2103 copy-initialization.
2104 * python/py-continueevent.c (emit_continue_event): Use
2105 copy-initialization.
2106 * python/py-exitedevent.c (create_exited_event_object): Return a
2107 gdbpy_ref<>.
2108 (emit_exited_event): Use copy-initialization.
2109 * python/py-inferior.c (python_new_inferior)
2110 (python_inferior_deleted, add_thread_object): Use
2111 copy-initialization.
2112 * python/py-infevents.c (create_inferior_call_event_object)
2113 (create_register_changed_event_object)
2114 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2115 (emit_inferior_call_event, emit_memory_changed_event)
2116 (emit_register_changed_event): Use copy-initialization.
2117 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2118 Return a gdbpy_ref<>.
2119 (emit_new_objfile_event): Use copy-initialization.
2120 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2121 (emit_clear_objfiles_event): Use copy-initialization.
2122 * python/py-signalevent.c (create_signal_event_object): Use
2123 copy-initialization.
2124 * python/py-threadevent.c (create_thread_event_object): Use
2125 copy-initialization.
2126
da3c8738
PA
21272018-08-24 Pedro Alves <palves@redhat.com>
2128 Simon Marchi <simon.marchi@ericsson.com>
2129
2130 PR gdb/23379
2131 * python/py-continueevent.c: Include "gdbthread.h".
2132 (create_continue_event_object): Add intro comment. Add 'ptid'
2133 parameter. Use it to find thread to pass to
2134 create_thread_event_object.
2135 (emit_continue_event): Pass PTID down to
2136 create_continue_event_object.
2137 * python/py-event.h (py_get_event_thread): Declare.
2138 (create_thread_event_object): Remove default from 'thread'
2139 parameter.
2140 * python/py-stopevent.c (create_stop_event_object): Use
2141 py_get_event_thread.
2142 * python/py-threadevent.c (get_event_thread): Rename to ...
2143 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2144 and use it to find the thread.
2145 (create_thread_event_object): Assert that THREAD isn't null.
2146 Don't find the event thread here.
2147
26457a9c
KB
21482018-08-23 Kevin Buettner <kevinb@redhat.com>
2149
2150 * block.h (blockrange, blockranges): New struct declarations.
2151 (struct block): Add new field named `ranges'.
2152 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2153 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2154 macros for accessing ranges in struct block.
2155 (make_blockranges): New declaration.
2156 block.c (make_blockranges): New function.
2d5f09ec
KB
2157 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2158 for block.
fc811edd
KB
2159 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2160 * blockframe.c (cache_pc_function_block): New static global.
2161 (clear_pc_function_cache): Clear cache_pc_function_block.
2162 (find_pc_partial_function): Move comment to symtab.h. Add
2163 support for non-contiguous blocks.
e9480230
KB
2164 * cli/cli-cmds.c (block.h): Include.
2165 (print_disassembly): Handle printing of non-contiguous blocks.
2166 (disassemble_current_function): Likewise.
2167 (disassemble_command): Likewise.
26457a9c 2168
2b1ffcfd
KB
2169 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2170 BLOCK_START.
2171 * blockframe.c (get_pc_function_start): Likewise.
2172 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2173 (gcc_symbol_address): Likewise.
2174 * compile/compile-object-run.c (compile_object_run): Likewise.
2175 * compile/compile.c (get_expr_block_and_pc): Likewise.
2176 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2177 (func_addr_to_tail_call_list): Likewise.
2178 * findvar.c (default_read_var_value): Likewise.
2179 * inline-frame.c (inline_frame_this_id): Likewise.
2180 (skip-inline_frames): Likewise.
2181 * infcmd.c (until_next_command): Likewise.
2182 * linespec.c (convert_linespec_to_sals): Likewise.
2183 * parse.c (parse_exp_in_context_1): Likewise.
2184 * printcmd.c (build_address_symbolic): likewise.
2185 (info_address_command): Likewise.
2186 symtab.c (find_function_start_sal): Likewise.
2187 (skip_prologue_sal): Likewise.
2188 (find_function_alias_target): Likewise.
2189 (find_gnu_ifunc): Likewise.
2190 * stack.c (find_frame_funname): Likewise.
2191 * symtab.c (fixup_symbol_section): Likewise.
2192 (find_function_start_sal): Likewise.
2193 (skip_prologue_sal): Likewsie.
2194 (find_function_alias_target): Likewise.
2195 (find_gnu_ifunc): Likewise.
2196 * tracepoint.c (info_scope_command): Likewise.
2197 * value.c (value_fn_field): Likewise.
2198
9644dc3a
KB
2199 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2200 in place of find_pc_partial_function.
2201 * blockframe.c (find_function_entry_range_from_pc): New function.
2202 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2203 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2204 for each range in a block.
2205
2206
12a0d0f6
XR
22072018-08-23 Xavier Roirand <roirand@adacore.com>
2208
2209 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2210 incrementation.
2211
d1012b8e
SM
22122018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2213
2214 * solib-svr4.c (read_program_headers_from_bfd): Return
2215 gdb::optional<gdb::byte_vector>.
2216 (svr4_exec_displacement): Adjust.
2217
17658d46
SM
22182018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2219
2220 * solib-svr4.c (read_program_header): Return
2221 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2222 (find_program_interpreter): Return
2223 gdb::optional<gdb::byte_vector>.
2224 (scan_dyntag_auxv): Adjust.
2225 (enable_break): Adjust.
2226 (svr4_exec_displacement): Adjust.
2227
ae739fe7
SM
22282018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2229
2230 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2231 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2232
467dc1e2
SM
22332018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2234
2235 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2236 string_vprintf.
2237 * guile/scm-utils.c (gdbscm_printf): Likewise.
2238 * serial.c (serial_printf): Likewise.
2239 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2240
6d52907e
JV
22412018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2242
2243 * stack.c (print_frame): Print frame architecture when printing on
2244 an MI output.
2245 * NEWS: Mention new "arch" attribute in frame output.
2246
9758a8f8
AH
22472018-08-21 Alan Hayward <alan.hayward@arm.com>
2248
2249 * arch/aarch64.h (aarch64_regnum): Update comment.
2250
1461bdac
AH
22512018-08-21 Alan Hayward <alan.hayward@arm.com>
2252
2253 * NEWS: Add SVE to 8.2 section.
2254
4895f384
PA
22552018-08-21 Pedro Alves <palves@redhat.com>
2256
2257 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2258 out from gdbscm_parse_function_args.
2259 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2260 gdbscm_parse_function_args_1.
2261
a4497d2f
SM
22622018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2263
2264 PR gdb/17816
2265 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2266 operator.
2267
c44deb73
SM
22682018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2269
2270 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2271
be2d111a
MS
22722018-08-19 Michael Spang <spang@google.com>
2273
2274 PR gdb/11786
2275 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2276 for PT_TLS segments.
2277
a6b786da
KB
22782018-08-18 Kevin Buettner <kevinb@redhat.com>
2279
2280 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2281 dwarf_variable_value.
2282 * dwarf2-frame.c (class dwarf_expr_executor):
2283 Add override for dwarf_variable_value.
2284 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2285 (class symbol_needs_eval_context): Likewise.
2286 (indirect_synthetic_pointer): Add forward declaration.
2287 (sect_variable_value): New function.
2288 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2289 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2290 for DW_OP_GNU_variable_value.
2291
89fbedf3
TT
22922018-08-16 Tom Tromey <tom@tromey.com>
2293
2294 * top.c (read_command_file): Update.
2295 (command_line_input): Remove "repeat" argument.
2296 * ada-lang.c (get_selections): Update.
2297 * linespec.c (decode_line_2): Update.
2298 * defs.h (command_line_input): Remove argument.
2299 * cli/cli-script.c (read_next_line): Update.
2300 * python/py-gdb-readline.c: Update.
2301
12582533
TT
23022018-08-17 Tom Tromey <tom@tromey.com>
2303
2304 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2305 command_line_input.
2306
49514353
TT
23072018-08-15 Tom Tromey <tom@tromey.com>
2308
2309 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2310
26fb3983
JV
23112018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2312
2313 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2314 If used, use find_pc_partial_function to find address range
2315 to disassemble.
2316 * mi/mi-main.c (mi_cmd_list_features): Report
2317 "data-disassemble-a-option" feature.
2318 * NEWS: Mention new -data-disassemble option -a.
2319
a97b53dd
TT
23202018-08-13 Tom Tromey <tom@tromey.com>
2321
2322 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2323
0c76e06d
AH
23242018-08-13 Alan Hayward <alan.hayward@arm.com>
2325
2326 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2327 (aarch64_linux_collect_sve_regset): Likewise.
2328 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2329 * regcache.h (regcache_map_entry_size): New function.
2330
b7fd65b9
AH
23312018-08-13 Alan Hayward <alan.hayward@arm.com>
2332
2333 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2334 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2335 (SVE_HEADER_VL_LENGTH): Likewise.
2336 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2337 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2338 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2339 (SVE_HEADER_SIZE_OFFSET): Likewise.
2340 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2341 (SVE_HEADER_VL_OFFSET): Likewise.
2342 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2343 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2344 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2345 (SVE_HEADER_SIZE): Likewise.
2346 (aarch64_linux_core_read_vq): Add function.
2347 (aarch64_linux_core_read_description): Check for SVE section.
2348
a616bb94
AH
23492018-08-13 Alan Hayward <alan.hayward@arm.com>
2350
2351 * aarch64-fbsd-tdep.c
2352 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2353 collect_size.
2354 * aarch64-linux-tdep.c
2355 (aarch64_linux_iterate_over_regset_sections): Likewise.
2356 * alpha-linux-tdep.c
2357 (alpha_linux_iterate_over_regset_sections):
2358 * alpha-nbsd-tdep.c
2359 (alphanbsd_iterate_over_regset_sections): Likewise.
2360 * amd64-fbsd-tdep.c
2361 (amd64fbsd_iterate_over_regset_sections): Likewise.
2362 * amd64-linux-tdep.c
2363 (amd64_linux_iterate_over_regset_sections): Likewise.
2364 * arm-bsd-tdep.c
2365 (armbsd_iterate_over_regset_sections): Likewise.
2366 * arm-fbsd-tdep.c
2367 (arm_fbsd_iterate_over_regset_sections): Likewise.
2368 * arm-linux-tdep.c
2369 (arm_linux_iterate_over_regset_sections): Likewise.
2370 * corelow.c (get_core_registers_cb): Likewise.
2371 (core_target::fetch_registers): Likewise.
2372 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2373 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2374 * gdbarch.h (void): Regenerate.
2375 * gdbarch.sh: Add supply_size and collect_size.
2376 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2377 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2378 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2379 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2380 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2381 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2382 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2383 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2384 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2385 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2386 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2387 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2388 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2389 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2390 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2391 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2392 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2393 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2394 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2395 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2396 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2397 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2398 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2399 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2400 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2401 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2402 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2403 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2404 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2405 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2406
a9925d4f
SM
24072018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2408
2409 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2410 with string_printf.
2411
ad3a68e9
KS
24122018-08-10 Keith Seitz <keiths@redhat.com>
2413
2414 * compile/compile-c-support.c (add_code_header, add_code_footer):
2415 Move into policy class.
2416 (c_push_user_expression, pop_user_expression_nop)
2417 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2418 (compile_program): New host class.
2419 (c_compile_program): New typedef.
2420 (c_compute_porgram): Use c_compile_program.
2421
0cfbf430
KS
24222018-08-10 Keith Seitz <keiths@redhat.com>
2423
2424 * compile/compile-internal.h (compile_instance::~compile_instance):
2425 Remove calls to htab_delete.
2426 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2427 * compile.c (compile_instance::compile_instance): Initialize
2428 htab unique pointers.
2429 (compile_instance::get_cached_type, compile_instance::insert_type)
2430 (compile_instance::error_symbol_once): Update for unique_ptr.
2431
946d3d10
KS
24322018-08-10 Keith Seitz <keiths@redhat.com>
2433
2434 * compile/compile-c-symbols.c (struct symbol_error)
2435 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2436 (compile_instance::insert_symbol_error)
2437 (compile_instance::error_symbol_once): Move to ...
2438 * compile/compile.c: ... here.
2439
9cdfd9a2
KS
24402018-08-10 Keith Seitz <keiths@redhat.com>
2441
2442 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2443 instead of `new_compile_instance'.
2444 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2445 Update description.
2446 If the symbol error map is not initialized, create it.
2447 (generate_c_for_for_one_symbol): Do not check/initialize
2448 the symbol error map.
2449 * compile/compile-c-types.c (compile_c_instance): Make a class.
2450 Update all callers.
2451 (compile_instance::compile_instance): Initialize the type cache.
2452 (get_cached_type): New function.
2453 (insert_type): Update description.
2454 (compile_c_instance::m_default_cflags): Define.
2455 (convert_type): Update description. Use get_cached_type.
2456 (delete_instance): Moved to destructor.
2457 (new_compile_instance): Moved to constructor.
2458 * compile/compile-c.h (compile_c_instance): Make class inheriting
2459 from compile_instance.
2460 <base>: Remove field.
2461 <type_map, symbol_err_map>: Move to base class.
2462 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2463 * compile/compile-internal.h (compile_instance): Make class.
2464 <type_map_t, symbol_err_map_t>: Define.
2465 <fe>: Rename to `m_gcc_fe'.
2466 <scope, block, gcc_target_options>: Add `m_' prefix.
2467 <m_type_map, m_symbol_err_map>: New fields, moved from
2468 compile_c_instance.
2469 <destroy>: Remove.
2470 (convert_type, new_compile_instance): Remove.
2471 * compile/compile.c (cleanup_compile_instance): Remove.
2472 (compile_to_object): Use unique_ptr to eliminate cleanups.
2473 (compile_instance::set_print_callback, compile_instance::version)
2474 (compile_instance::set_verbose)
2475 (compile_instance::set_driver_filename)
2476 (compile_instance::set_triplet_regexp)
2477 (compile_instance::set_arguments)
2478 (compile_instance::set_source_file)
2479 (compile_instance::compile): Define.
2480
18cdc6d8
KS
24812018-08-10 Keith Seitz <keiths@redhat.com>
2482
2483 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2484 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2485 gcc-c-fe.def to define C plugin.
2486 (delete_instance): Delete `c_plugin'.
2487 (new_compile_instance): Initialize `c_plugin'.
2488 * compile/compile-c.h: Include gcc_c_plugin.h.
2489 (struct compile_c_instance) <c_plugin>: New member.
2490 * gcc-c-plugin.h: New file.
2491 Update all callers with API change.
2492
b7dc48b4
KS
24932018-08-10 Keith Seitz <keiths@redhat.com>
2494
2495 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2496 (HFILES_NO_SRCDIR): ... to here.
2497 Add compile-internal.h and compile-c.h.
2498 * compile/compile-c-support.c: Include compile-c.h.
2499 * compile/compile-c-symbols.c: Include compile-c.h.
2500 (generate_c_for_variable_locations): Update comment.
2501 * compile/compile-c-types.c: Include compile-c.h.
2502 * compile/compile-c.h: New file -- moved C language declarations
2503 from other files here.
2504 * compile/compile-internal.h: Do not include hashtab.h or
2505 common/enum-flags.h.
2506 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2507 (gcc_convert_symbol, gcc_symbol_address)
2508 (generate_c_for_variable_locations, c_get_mode_for_size)
2509 (c_get_range_decl_name): Definitions moved to compile-c.h.
2510 * compile/compile-loc2c.c: Include compile-c.h.
2511
6f36b6d2
KS
25122018-08-10 Keith Seitz <keiths@redhat.com>
2513
2514 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2515 (c_symbol_substitution_name): ... this.
2516 Update all callers.
2517
bd923e51
KS
25182018-08-10 Keith Seitz <keiths@redhat.com>
2519
2520 * compile/compile-c-support.c (c_compute_program): Use
2521 unique_xmalloc_ptr to eliminate cleanup.
2522 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2523 Return a unique_xmalloc_ptr and eliminate cleanup.
2524 * compile/compile-internal.h (generate_c_for_variable_locations):
2525 Return unique_xmalloc_ptr and update description.
2526
dbd534fe
AH
25272018-08-10 Alan Hayward <alan.hayward@arm.com>
2528
2529 * corelow.c (core_target::get_core_register_section): Rename
2530 min_size to section_min_size.
2531
90ad3654
JW
25322018-08-09 Jim Wilson <jimw@sifive.com>
2533
52a187f8
JW
2534 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2535 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2536 * NEWS: Mention new GNU/Linux RISC-V target.
2537 * configure.host: Add riscv*-*-linux*.
2538 * configure.nat: Add riscv*.
2539 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 2540 * riscv-linux-nat.c: New file.
90ad3654
JW
2541 * riscv-linux-tdep.c: New file.
2542
aff4e175
AB
25432018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2544
2545 * infrun.c (resume): Make static, add forward declaration.
2546 (proceed): Update header comment.
2547 * infrun.h (resume): Delete declaration.
2548
06ab9219
TT
25492018-08-09 Tom Tromey <tom@tromey.com>
2550
2551 * riscv-tdep.h: Minor formatting fixes.
2552
83c8d318
SM
25532018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2554
2555 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2556 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2557 (test_mkdir_recursive): Likewise.
2558 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2559
5ff2bbae
AB
25602018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2561
2562 * valarith.c (value_subscripted_rvalue): If an array is not in
2563 memory, and we don't know the upper bound, then we can't know that
2564 the requested element exists or not.
2565
fdbac7d8
SM
25662018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2567
2568 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2569 (target_options_to_string): Add comment.
2570
83202f7a
TT
25712018-08-08 Tom Tromey <tom@tromey.com>
2572
2573 * unittests/scoped_mmap-selftests.c: Check result of "write".
2574
411baa47
JW
25752018-08-08 Jim Wilson <jimw@sifive.com>
2576
5c720ed8
JW
2577 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2578 (decode_register_index_short): New.
2579 (decode_j_type_insn, decode_cj_type_insn): New.
2580 (decode_b_type_insn, decode_cb_type_insn): New.
2581 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2582 local xlen. Check xlen when decoding ambiguous compressed insns. In
2583 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2584 is_c_sw_insn instead of is_sw_insn.
2585 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2586 (riscv_software_single_step): New.
2587 * riscv-tdep.h (riscv_software_single_step): Declare.
2588
411baa47
JW
2589 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2590 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2591
9d4a934c
AB
25922018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2593
2594 PR gdb/18050:
2595 * target.c (dispose_inferior): Don't dispose of inferiors that are
2596 already killed.
2597
ff36536c
SN
25982018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2599
2600 * remote.c (remote_target::download_tracepoint): Change char* to
2601 const char*.
2602
09ce46f2
SM
26032018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2604
2605 * target.h (target_options_to_string): Return an std::string.
2606 * target.c (str_comma_list_concat_elem): Return void, use
2607 std::string.
2608 (do_option): Likewise.
2609 (target_options_to_string): Return an std::string.
2610 * linux-nat.c (linux_nat_target::wait): Adjust.
2611 * target-debug.h (target_debug_print_options): Adjust.
2612
9c612964
TT
26132018-08-07 Tom Tromey <tom@tromey.com>
2614
2615 * Makefile.in (CPPFLAGS): New variable.
2616 (INTERNAL_CPPFLAGS): Use it.
2617
7d11235d
SM
26182018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2619
2620 * NEWS: Mention the index cache.
2621
87d6a7aa
SM
26222018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2623
2624 * common/pathstuff.h (get_standard_cache_dir): New.
2625 * common/pathstuff.c (get_standard_cache_dir): New.
2626 * build-id.h (build_id_to_string): New.
2627 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2628 DEBUG_STR_SUFFIX): Move to here.
2629 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2630 DEBUG_STR_SUFFIX): Move from there.
2631 (write_psymtabs_to_index): Make non-static, add basename
2632 parameter. Write to temporary files, rename when done.
2633 (save_gdb_index_command): Adjust call to
2634 write_psymtabs_to_index.
2635 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2636 field.
2637 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2638 (get_gdb_index_contents_from_cache): New.
2639 (get_gdb_index_contents_from_cache_dwz): New.
2640 (dwarf2_initialize_objfile): Read index from cache.
2641 (dwarf2_build_psymtabs): Save to index.
2642 * dwarf-index-cache.h: New file.
2643 * dwarf-index-cache.c: New file.
2644 * dwarf-index-write.h: New file.
2645
8a99096f
SM
26462018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2647
2648 * gnulib/aclocal.m4: Re-generate.
2649 * gnulib/config.in: Re-generate.
2650 * gnulib/configure: Re-generate.
2651 * gnulib/import/Makefile.am: Re-generate.
2652 * gnulib/import/Makefile.in: Re-generate.
2653 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2654 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2655 * gnulib/import/m4/mkdir.m4: New file.
2656 * gnulib/import/mkdir.c: New file.
2657 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2658 module.
2659
5c831bb1
SM
26602018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2661
2662 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2663 * common/scoped_mmap.c: New file.
2664 * common/scoped_mmap.h (destroy): New method.
2665 (~scoped_mmap, reset): Use destroy.
2666 (scoped_mmap): New move constructor.
2667 (mmap_file): New declaration.
2668 * unittests/scoped_mmap-selftests.c (test_normal,
2669 test_invalid_filename, run_tests): New functions.
2670 (_initialize_scoped_mmap_selftests): Register selftest.
2671
4485a1c1
SM
26722018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2673
2674 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2675 (read_gdb_index_from_buffer): ... this. Remove section
2676 parameter, add buffer parameter.
2677 (get_gdb_index_contents_ftype,
2678 get_gdb_index_contents_dwz_ftype): New typedefs.
2679 (dwarf2_read_gdb_index): Add callback parameters to get the
2680 index contents.
2681 (get_gdb_index_contents_from_section): New.
2682 (dwarf2_initialize_objfile): Update call to
2683 dwarf2_read_gdb_index.
2684
528e1572
SM
26852018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2686
2687 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2688 (gdb_open_cloexec): Likewise.
2689 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2690 (commandline_from_pid): Likewise.
2691 (linux_xfer_osdata_threads): Likewise.
2692 (linux_xfer_osdata_fds): Likewise.
2693 * ada-lang.c (is_package_name): Likewise.
2694 * auxv.c (procfs_xfer_auxv): Likewise.
2695 * breakpoint.c (print_one_breakpoint_location): Use
2696 uiout::field_fmt.
2697 (print_one_catch_solib): Use string_printf.
2698 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2699 (add_pe_forwarded_sym): Likewise.
2700 * dwarf2read.c (create_type_unit_group): Likewise.
2701 (build_error_marker_type): Likewise.
2702 * infcall.c (get_function_name): Likewise.
2703 * valprint.c (print_converted_chars_to_obstack): Likewise.
2704 * xtensa-tdep.c (xtensa_register_type): Likewise.
2705
a7f25a84
SM
27062018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2707
2708 * remote.c (remote_target::download_tracepoint): Fix format
2709 string errors.
2710
296956be
PFC
27112018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2712
2713 * tracefile.c: Include common/byte-vector.h.
2714 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2715 with trace_regblock_size if needed. Update uses of buf.
2716
a04b9d62
PFC
27172018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2718
2719 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2720 std::vector<unsigned char>.
2721 * tracepoint.c (collection_list::collection_list): Remove
2722 m_regs_mask initializer from initializer list. Resize
2723 m_regs_mask using the largest remote register number.
2724 (collection_list::add_remote_register): Remove size check on
2725 m_regs_mask. Use at to access element.
2726 (collection_list::stringify): Change type of temp_buf to
2727 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2728 stringify the register mask. Use pack_hex_byte for the register
2729 mask.
2730
4277c4b8
PFC
27312018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2732
2733 * tracepoint.h (class collection_list) <add_register>: Remove.
2734 <add_remote_register, add_ax_registers, add_local_register>:
2735 Declare.
2736 <add_memrange>: Add scope parameter.
2737 * tracepoint.c (encode_actions_1): Likewise.
2738 (collection_list::add_register): Rename to ...
2739 (collection_list::add_remote_register): ... this. Update
2740 comment.
2741 (collection_list::add_ax_registers, add_local_register): New
2742 methods.
2743 (collection_list::add_memrange): Add scope parameter. Call
2744 add_local_register instead of add_register.
2745 (finalize_tracepoint_aexpr): New function.
2746 (collection_list::collect_symbol): Update calls to add_memrange.
2747 Call add_local_register instead of add_register. Call
2748 add_ax_registers. Call finalize_tracepoint_aexpr.
2749 (encode_actions_1): Get remote regnos for $reg action. Call
2750 add_remote_register, add_ax_registers, and add_local_register.
2751 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2752 (validate_actionline): Call finalize_tracepoint_aexpr.
2753
3df3a985
PFC
27542018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2755
2756 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2757 Replace array buf with gdb::char_vector buf, of size
2758 get_remote_packet_size (). Replace references to buf and
2759 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2760 and xsnprintf with snprintf. Raise errors if the buffer is too
2761 small.
2762
aa6f3694
PFC
27632018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2764
2765 * remote.c (remote_target::download_tracepoint): Fix the has_more
2766 predicate in the QTDP action list iteration.
2767
05abfc39
PFC
27682018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2769
2770 * remote.c (remote_target::download_tracepoint): Fix indentation
2771 in for block.
2772
821a2682
RO
27732018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2774
2775 * proc-api.c (_initialize_proc_api): Remove c, unused.
2776 * procfs.c (procfs_init_inferior): Remove signals, unused.
2777 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2778 unused.
2779
95347337
AB
27802018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2781 Andrew Burgess <andrew.burgess@embecosm.com>
2782
2783 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2784 'W_STOPCODE (0)' as this could be ambiguous.
2785
425699f5
SDJ
27862018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2787
2788 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2789 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2790 "ai_socktype").
2791
3e1d3d8c
TT
27922018-08-02 Tom Tromey <tom@tromey.com>
2793
2794 PR symtab/16842.
2795 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2796 symbols.
2797 (process_structure_scope): Likewise.
2798
15843549
XR
27992018-08-02 Xavier Roirand <roirand@adacore.com>
2800
2801 PR gdb/22629:
2802 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2803 kill inferior.
2804
b5bddbbb
TT
28052018-08-02 Tom Tromey <tom@tromey.com>
2806
2807 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2808 (darwin_suspend_inferior, darwin_resume_inferior)
2809 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2810 (darwin_check_new_threads): Check result of get_darwin_inferior.
2811
f61cfa07
JB
28122018-07-31 Joel Brobecker <brobecker@adacore.com>
2813
2814 GDB 8.1.1 released.
2815
5abe0f0c
JV
28162018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2817
2818 * varobj.c (varobj_get_path_expr_parent): Report an error if
2819 parent is a dynamic varobj.
2820
472fa5ee
SM
28212018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2822
2823 * gnulib/aclocal.m4: Re-generate.
2824 * gnulib/config.in: Re-generate.
2825 * gnulib/configure: Re-generate.
2826 * gnulib/import/Makefile.in: Re-generate.
2827 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2828 * gnulib/import/m4/onceonly.m4: Re-generate.
2829
1c28969e
SM
28302018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2831
2832 * target-descriptions.c (struct xml_test_tdesc): New.
2833 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2834 (record_xml_tdesc): Update.
2835 (maintenance_check_xml_descriptions): Update.
2836 * target-descriptions.h (record_xml_tdesc): Update comment.
2837
c8f2dc0d
AB
28382018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2839
2840 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2841 checking array bounds are defined.
2842
463c08d1
TT
28432018-07-30 Tom Tromey <tom@tromey.com>
2844
2845 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2846 irreflexivity violation.
2847
dba7455e
TT
28482018-07-30 Tom Tromey <tom@tromey.com>
2849
2850 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2851 * value.c (unpack_long): Remove lint code.
2852 * valops.c (value_ind): Remove lint code.
2853 * valarith.c (value_x_binop, value_x_unop, value_equal)
2854 (value_pos): Remove lint code.
2855
37cc0cae
TV
28562018-07-28 Tom de Vries <tdevries@suse.de>
2857
2858 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2859 with undefined upper bound as <optimized out>.
2860
129eb0f1
SDJ
28612018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2862
2863 * gcore.in: Rename variable "name" to "prefix". Expand
2864 "usage" text.
2865
6af79d7b
JT
28662018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2867
2868 * windows-nat.c (windows_nat_target::create_inferior): Update to
2869 call close() in global namespace.
2870
79748972
TT
28712018-07-26 Tom Tromey <tom@tromey.com>
2872
2873 * dwarf-index-write.c (add_address_entry): Don't add objfile
2874 offsets.
2875 * dbxread.c (find_stab_function): Rename from
2876 find_stab_function_addr. Return a bound_minimal_symbol.
2877 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2878 Don't add objfile offsets.
2879 (end_psymtab): Use raw_text_low, raw_text_high,
2880 MSYMBOL_VALUE_RAW_ADDRESS.
2881 (read_ofile_symtab): Update.
2882 (process_one_symbol): Update.
2883 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2884 offsets.
2885 (dw2_relocate): Remove.
2886 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2887 searching addrmap.
2888 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2889 Update.
2890 (process_psymtab_comp_unit_reader, add_partial_symbol)
2891 (add_partial_subprogram, dwarf2_ranges_read): Update.
2892 (load_partial_dies): Update.
2893 (add_address_entry): Don't add objfile offsets.
2894 (dwarf2_build_include_psymtabs): Update.
2895 (create_addrmap_from_aranges): Don't add objfile offsets.
2896 (dw2_find_pc_sect_compunit_symtab): Update.
2897 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2898 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2899 Update.
2900 (parse_partial_symbols): Don't add objfile offsets. Use
2901 raw_text_low, raw_text_high. Update.
2902 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2903 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2904 or call 'relocate' quick function. Clear psymbol_map.
2905 * psympriv.h (struct partial_symbol) <address>: Add section
2906 offset.
2907 <set_unrelocated_address>: Rename from set_address.
2908 <raw_text_low, raw_text_high>: New methods.
2909 <text_low, text_high>: Add objfile parameter.
2910 (add_psymbol_to_bcache): Add 'section' parameter. Call
2911 set_unrelocated_address.
2912 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2913 (find_pc_psymbol): Update.
2914 (fixup_psymbol_section, relocate_psymtabs): Remove.
2915 (dump_psymtab, psym_functions): Update.
2916 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2917 parameter.
2918 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2919 (start_psymtab_common): Update.
2920 * symfile-debug.c (debug_qf_relocate): Remove.
2921 (debug_sym_quick_functions): Update.
2922 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2923 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2924 Update.
2925
52948f01
TT
29262018-07-26 Tom Tromey <tromey@redhat.com>
2927
2928 * dbxread.c (end_psymtab): Use text_high_valid and
2929 text_low_valid.
2930 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2931 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2932 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2933 Update comment.
2934 <text_low_valid, text_high_valid>: New fields.
2935 <set_text_low, set_text_high>: Update.
2936 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2937
4ae976d1
TT
29382018-07-26 Tom Tromey <tom@tromey.com>
2939
2940 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2941 Update.
2942 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2943 textlow and texthigh fields.
2944 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2945 Update.
2946 * mdebugread.c (parse_lines, parse_partial_symbols)
2947 (psymtab_to_symtab_1): Update.
2948 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2949 Rename fields. Update comment. Now private.
2950 <text_low, text_high, set_text_low, set_text_high>: New methods.
2951 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2952 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2953 (start_psymtab_common, maintenance_info_psymtabs)
2954 (maintenance_check_psymtabs): Update.
2955 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2956 texthigh fields.
2957 (scan_xcoff_symtab): Update.
2958
02e9e7f7
TT
29592018-07-26 Tom Tromey <tromey@redhat.com>
2960
2961 * psympriv.h (struct partial_symbol) <unrelocated_address,
2962 address, set_address>: New methods.
2963 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2964 (fixup_psymbol_section, relocate_psymtabs): Update.
2965 (print_partial_symbols): Add 'objfile' parameter. Update.
2966 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2967 Update.
2968
8a6d4234
TT
29692018-07-26 Tom Tromey <tom@tromey.com>
2970
2971 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2972 (debug_names::write_psymbols): Update.
2973 * psympriv.h (struct partial_symbol): Derive from
2974 general_symbol_info.
2975 <obj_section>: New method.
2976 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2977 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2978 (find_pc_sect_psymbol, fixup_psymbol_section)
2979 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2980 (print_partial_symbols, recursively_search_psymtabs)
2981 (compare_psymbols, psymbol_hash, psymbol_compare)
2982 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2983 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2984
08994e1d
TT
29852018-07-26 Tom Tromey <tromey@redhat.com>
2986
2987 * dbxread.c (end_psymtab): Remove dead code.
2988
3c3bb058
AB
29892018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2990
2991 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2992 DWARF unwinders are disabled.
2993 * dwarf2-frame.c: Add dwarf2read.h include.
2994 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2995 disabled.
2996 (dwarf2_frame_unwinders_enabled_p): Define.
2997 (show_dwarf_unwinders_enabled_p): New function.
2998 (_initialize_dwarf2_frame): Register switch to control DWARF
2999 unwinder use.
3000 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3001 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3002 (show_dwarf_cmdlist): Remove static keyword.
3003 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3004 (show_dwarf_cmdlist): Declare.
3005 * NEWS: Document new feature.
3006
9e7f3bbb
TV
30072018-07-26 Tom de Vries <tdevries@suse.de>
3008
3009 PR breakpoints/23366
3010 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3011
506f5c41
TV
30122018-07-26 Tom de Vries <tdevries@suse.de>
3013
3014 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3015 DW_AT_count can't be translated to a dynamic prop.
3016
16f808ec
TV
30172018-07-25 Tom de Vries <tdevries@suse.de>
3018
3019 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3020 try/catch.
3021
d7154a8d
JV
30222018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3023
3024 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3025
a45389f6
JB
30262018-07-25 Joel Brobecker <brobecker@adacore.com>
3027
3028 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3029
380618d6
KS
30302018-07-24 Keith Seitz <keiths@redhat.comt
3031
3032 PR symtab/23010
3033 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3034 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3035 instead of add_symbol_to_list.
3036 (read_file_scope): Call prepare_one_comp_unit before reading
3037 any other DIEs.
3038
4b17aefe
SM
30392018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3040
3041 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3042
29d17e47
TT
30432018-07-24 Tom Tromey <tom@tromey.com>
3044
3045 * utils.c (malloc, realloc, free): Don't declare.
3046 * configure, config.in: Rebuild.
3047 * configure.ac: Don't check for declarations of free, malloc, or
3048 realloc.
3049
cf4088a9
SM
30502018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3051
3052 * aarch64-linux-nat.c
3053 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3054 variable.
3055 * arm-linux-nat.c (fetch_regs): Likewise.
3056 (store_regs): Likewise.
3057 (fetch_vfp_regs): Likewise.
3058 (store_vfp_regs): Likewise.
3059 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3060 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3061 (arm_linux_nat_target::insert_watchpoint): Likewise.
3062 (arm_linux_nat_target::remove_watchpoint): Likewise.
3063 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3064 Likewise.
3065 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3066 Likewise.
3067 * ppc-linux-nat.c (fetch_register): Likewise.
3068 (fetch_all_gp_regs): Likewise.
3069 (fetch_ppc_registers): Likewise.
3070 (store_all_gp_regs): Likewise.
3071 (store_ppc_registers): Likewise.
3072 (hwdebug_insert_point): Likewise.
3073 (can_use_watchpoint_cond_accel): Likewise.
3074 * remote-sim.c (gdb_os_write_stdout): Likewise.
3075
a0de763e
TT
30762018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3077 Tom Tromey <tom@tromey.com>
3078
3079 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3080 test for it.
3081 * configure: Rebuild.
3082
3b20124b
TT
30832018-07-22 Tom Tromey <tom@tromey.com>
3084
3085 * regformats/regdat.sh: Define xmltarget_${name} inside
3086 #ifndef IN_PROCESS_AGENT.
3087
8c8807f4
TT
30882018-07-22 Tom Tromey <tom@tromey.com>
3089
3090 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3091
c486b610
TT
30922018-07-22 Tom Tromey <tom@tromey.com>
3093
3094 * symfile.c (reread_symbols): Notify iter, not objfile.
3095
494f80a9
TT
30962018-07-22 Tom Tromey <tom@tromey.com>
3097
3098 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3099 Use arch_ops.
3100 (ravenscar_thread_target::prepare_to_store): Likewise.
3101
c51f6a54
TT
31022018-07-22 Tom Tromey <tom@tromey.com>
3103
3104 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3105 unused variable. Call value_fetch_lazy when needed.
3106 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3107 Remove unused variable. Call value_fetch_lazy when needed.
3108
374fd1fd
TT
31092018-07-22 Tom Tromey <tom@tromey.com>
3110
3111 * m32c-tdep.c (mark_dma): Return void.
3112 (make_regs): Remove unused declarations.
3113
d5e9a511
TT
31142018-07-22 Tom Tromey <tom@tromey.com>
3115
3116 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3117 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3118 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3119 bkscm_get_valid_block_smob_arg_unsafe for effect.
3120
996d693a
TT
31212018-07-22 Tom Tromey <tom@tromey.com>
3122
3123 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3124 value_type.
3125
15766370
TT
31262018-07-22 Tom Tromey <tom@tromey.com>
3127
3128 * windows-nat.c (saved_context): Conditionally define.
3129 * remote.c (remote_target::remote_btrace_maybe_reopen):
3130 Conditionally declare "warned".
3131 * inflow.c (sigquit_ours): Conditionally define.
3132 (new_tty): Move "tty" declaration inside #if.
3133 * guile/guile.c (guile_datadir): Conditionally define.
3134 * charset.c (set_be_le_names): Move some declarations inside #if.
3135 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3136 #if.
3137 (parse_xml_btrace_conf): Likewise.
3138
f4e80e13
TT
31392018-07-22 Tom Tromey <tom@tromey.com>
3140
3141 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3142
8d49165d
TT
31432018-07-22 Tom Tromey <tom@tromey.com>
3144
3145 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3146 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3147 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3148 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3149 * stack.c (frame_apply_level_command): Remove unused variable.
3150 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3151 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3152 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3153 unused variable.
3154 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3155 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3156 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3157 variable.
3158 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3159 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3160 variable.
3161 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3162 Remove unused variable.
3163 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3164 variable.
3165 * common/tdesc.c (print_xml_feature::visit): Remove unused
3166 variable.
3167 * compile/compile-object-load.c (store_regs): Remove unused
3168 variables.
3169 * complaints.c (clear_complaints): Remove unused variable.
3170 * corelow.c (core_target_open): Remove unused variable.
3171 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3172 variable.
3173 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3174 variable.
3175 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3176 variable.
3177 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3178 variable.
3179 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3180 variable.
3181 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3182 variable.
3183 * ia64-tdep.c (examine_prologue): Remove unused variable.
3184 * infcall.c (run_inferior_call): Remove unused variable.
3185 * inferior.c (exit_inferior): Remove unused variable.
3186 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3187 * linespec.c (decode_line_2): Remove unused variable.
3188 * linux-nat.c (super_close): Remove.
3189 * linux-tdep.c (linux_info_proc): Remove unused variable.
3190 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3191 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3192 Remove unused variable.
3193 * parse.c (find_minsym_type_and_address): Remove unused variable.
3194 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3195 variable.
3196 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3197 variable.
3198 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3199 variables.
3200 * record-btrace.c (record_btrace_target::store_registers): Remove
3201 unused variable.
3202 (cmd_show_record_btrace_cpu): Remove unused variable.
3203 * riscv-tdep.c (riscv_register_reggroup_p)
3204 (riscv_push_dummy_call, riscv_return_value): Remove unused
3205 variable.
3206 * rust-exp.y (literal): Remove unused variable.
3207 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3208 unused variable.
3209 <STRUCTOP_ANONYMOUS>: Likewise.
3210 * s390-linux-tdep.c (s390_linux_init_abi_31)
3211 (s390_linux_init_abi_64): Remove unused variable.
3212 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3213 (file_select_thread, net_windows_open, _initialize_ser_windows):
3214 Remove unused variables.
3215 * symtab.c (find_pc_sect_line): Remove unused variable.
3216 * target-memory.c (compute_garbled_blocks): Remove unused
3217 variable.
3218 (target_write_memory_blocks): Remove unused variable.
3219 * target.c (target_stack::unpush): Remove unused variables.
3220 * tracepoint.c (start_tracing, all_tracepoint_actions)
3221 (merge_uploaded_trace_state_variables)
3222 (print_one_static_tracepoint_marker): Remove unused variable.
3223 * unittests/basic_string_view/element_access/char/1.cc (test01):
3224 Remove unused variable.
3225 * windows-nat.c (windows_continue, windows_add_all_dlls)
3226 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3227 Remove unused variables.
3228
17cbafdb
SM
32292018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3230
3231 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3232 attr_profile in HAVE_ELF.
3233 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3234 HAVE_ELF.
3235
0ee6c332
SM
32362018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3237
3238 * frame.c (frame_register_unwind): Change parameter name.
3239 (frame_unwind_register): Likewise.
3240 (frame_unwind_register_value): Likewise.
3241 (frame_unwind_register_signed): Likewise.
3242 (frame_unwind_register_unsigned): Likewise.
3243 * frame.h (frame_register_unwind): Likewise.
3244 (frame_unwind_register): Likewise.
3245 (frame_unwind_register_value): Likewise.
3246 (frame_unwind_register_signed): Likewise.
3247 (frame_unwind_register_unsigned): Likewise.
3248 (frame_unwind_arch): Likewise.
3249
e2e31f10
MR
32502018-07-20 Maciej W. Rozycki <macro@mips.com>
3251
3252 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3253 ISA maintenance.
3254
2d389915
MR
32552018-07-20 Maciej W. Rozycki <macro@mips.com>
3256
3257 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3258 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3259 hand.
3260
cbb09508
KS
32612018-07-20 Keith Seitz <keiths@redhat.com>
3262
3263 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3264 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3265 m_compunit_symtab, m_language>: Add "m_" prefix.
3266 Update all uses.
3267 * buildsym.c: Update all uses.
3268
bfe2e011
TT
32692018-07-20 Tom Tromey <tom@tromey.com>
3270
3271 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3272 * buildsym.h (record_line_ftype): Remove typedef.
3273
0e6f3061
TT
32742018-07-20 Tom Tromey <tom@tromey.com>
3275
3276 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3277 (end_expandable_symtab): Likewise.
3278 (end_symtab_get_static_block): Likewise.
3279 (end_symtab_from_static_block): Likewise.
3280 * buildsym-legacy.c (augment_type_symtab): Remove.
3281 (end_expandable_symtab): Remove.
3282 (end_symtab_get_static_block): Remove.
3283 (end_symtab_from_static_block): Remove.
3284
804d2729
TT
32852018-07-20 Tom Tromey <tom@tromey.com>
3286
3287 * dwarf2read.c: Include buildsym.h.
3288 (struct dwarf2_cu) <builder>: New method.
3289 (fixup_go_packaging): Update.
3290 (process_full_comp_unit, process_full_type_unit): Update. Don't
3291 use scoped_free_pendings.
3292 (using_directives): Add "cu" parameter, remove "language".
3293 (read_import_statement, setup_type_unit_groups, )
3294 (read_func_scope, read_lexical_block_scope)
3295 (dwarf2_record_block_ranges, read_namespace): Update.
3296 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3297 (lnp_state_machine::handle_end_sequence): Update.
3298 (class lnp_state_machine) <m_cu>: New member.
3299 <m_record_line_callback>: Remove.
3300 <m_currently_recording_lines>: New member.
3301 (lnp_state_machine::handle_set_file): Update.
3302 (noop_record_line): Remove.
3303 (dwarf_record_line_p): Add cu parameter.
3304 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3305 (lnp_state_machine::record_line)
3306 (lnp_state_machine::lnp_state_machine)
3307 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3308 (dwarf_decode_lines): Update.
3309 (dwarf2_start_subfile): Add cu parameter.
3310 (dwarf2_start_symtab, new_symbol): Update.
3311 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3312 Remove dwarf2_per_objfile parameter.
3313 (dwarf_decode_macros): Update.
3314
80e649fc
TT
33152018-07-20 Tom Tromey <tom@tromey.com>
3316
3317 * stabsread.c (define_symbol): Update.
3318 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3319 * dwarf2read.c (new_symbol): Update.
3320 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3321 * cp-namespace.c: Include buildsym.h.
3322 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3323 * buildsym-legacy.c (get_buildsym_compunit): New function.
3324
0baae8db
TT
33252018-07-20 Tom Tromey <tom@tromey.com>
3326
3327 * xcoffread.c: Include buildsym-legacy.h.
3328 * windows-nat.c: Include buildsym-legacy.h.
3329 * stabsread.c: Include buildsym-legacy.h.
3330 * mdebugread.c: Include buildsym-legacy.h.
3331 * buildsym-legacy.h: New file.
3332 * buildsym-legacy.c: New file, from buildsym.c.
3333 * go32-nat.c: Include buildsym-legacy.h.
3334 * dwarf2read.c: Include buildsym-legacy.h.
3335 * dbxread.c: Include buildsym-legacy.h.
3336 * cp-namespace.c: Include buildsym-legacy.h.
3337 * coffread.c: Include buildsym-legacy.h.
3338 * buildsym.h: Move some contents to buildsym-legacy.h.
3339 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3340 buildsym-legacy.c.
3341 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3342
ab209f6f
TT
33432018-07-20 Tom Tromey <tom@tromey.com>
3344
3345 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3346 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3347 (buildsym_compunit::buildsym_compunit)
3348 (buildsym_compunit::~buildsym_compunit)
3349 (buildsym_compunit::get_macro_table): Define.
3350
74c72eac
TT
33512018-07-20 Tom Tromey <tom@tromey.com>
3352
3353 * buildsym.c (reset_symtab_globals): Remove.
3354 (buildsym_compunit::end_symtab_from_static_block): Update.
3355 (buildsym_compunit::augment_type_symtab): Update.
3356 (end_symtab_from_static_block): Call free_buildsym_compunit.
3357 (augment_type_symtab, end_symtab, end_expandable_symtab):
3358 Likewise.
3359
da6580e5
TT
33602018-07-20 Tom Tromey <tom@tromey.com>
3361
3362 * arch-utils.c: Do not include buildsym.h.
3363 * mipsread.c: Do not include buildsym.h.
3364 * machoread.c: Do not include buildsym.h.
3365 * elfread.c: Do not include buildsym.h.
3366
4a2125f5
TT
33672018-07-20 Tom Tromey <tom@tromey.com>
3368
3369 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3370 initialization.
3371 (buildsym_compunit): Add new constructor.
3372 (struct buildsym_compunit) <get_last_source_file, finish_block,
3373 record_block_range, start_subfile, patch_subfile_names,
3374 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3375 set_last_source_start_addr, get_last_source_start_addr,
3376 get_local_using_directives, set_local_using_directives,
3377 get_global_using_directives, outermost_context_p,
3378 get_current_context_stack, get_context_stack_depth,
3379 get_current_subfile, get_local_symbols, get_file_symbols,
3380 get_global_symbols, record_debugformat, record_producer,
3381 push_context, pop_context, end_symtab_get_static_block,
3382 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3383 New public methods.
3384 <record_pending_block, finish_block_internal, make_blockvector,
3385 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3386 private methods.
3387 Update all users.
3388
33892018-05-22 Tom Tromey <tom@tromey.com>
3390
3391 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3392 parameter.
3393 (finish_block_internal): Update.
3394
6b213a47
TT
33952018-07-20 Tom Tromey <tom@tromey.com>
3396
3397 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3398 parameter.
3399 (finish_block_internal): Update.
3400
b80a981d
TT
34012018-07-20 Tom Tromey <tom@tromey.com>
3402
3403 * buildsym.h (EXTERN): Don't define or undef.
3404 * buildsym.c (EXTERN): Don't define.
3405
ddb70602
TT
34062018-07-20 Tom Tromey <tom@tromey.com>
3407
3408 * buildsym.c: Remove TODO comment.
3409
b37dd3bc
TT
34102018-07-20 Tom Tromey <tom@tromey.com>
3411
3412 * coffread.c (coff_symtab_read): Update.
3413 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3414 (xcoff_new_init): Update.
3415 * mipsread.c (mipscoff_new_init): Update.
3416 * mdebugread.c (mdebug_build_psymtabs): Update.
3417 * elfread.c (elf_new_init): Update.
3418 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3419 Update.
3420 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3421 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3422 (stabsect_build_psymtabs): Update.
3423 * buildsym.h (buildsym_init): Don't declare.
3424 * buildsym.c: Update comment.
3425 (prepare_for_building): Remove.
3426 (start_symtab, restart_symtab): Update.
3427 (reset_symtab_globals): Update comment.
3428 (buildsym_init): Remove.
3429
e148f09d
TT
34302018-07-20 Tom Tromey <tom@tromey.com>
3431
3432 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3433 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3434 (read_enum_type, common_block_start, common_block_end)
3435 (cleanup_undefined_types_1, finish_global_stabs): Update.
3436 * mdebugread.c (psymtab_to_symtab_1): Update.
3437 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3438 (read_lexical_block_scope, new_symbol): Update.
3439 * dbxread.c (process_one_symbol): Update.
3440 * coffread.c (coff_symtab_read, process_coff_symbol)
3441 (coff_read_enum_type): Update.
3442 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3443 declare.
3444 (get_local_symbols, get_file_symbols, get_global_symbols): New
3445 functions.
3446 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3447 m_global_symbols.
3448 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3449 (~scoped_free_pendings): Update.
3450 (finish_block, prepare_for_building, reset_symtab_globals)
3451 (end_symtab_get_static_block, end_symtab_with_blockvector)
3452 (augment_type_symtab, push_context): Update.
3453 (get_local_symbols, get_file_symbols, get_global_symbols): New
3454 functions.
3455 (buildsym_init): Update.
3456
93b8bea4
TT
34572018-07-20 Tom Tromey <tom@tromey.com>
3458
3459 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3460 (process_full_type_unit): Likewise.
3461 (dwarf2_start_symtab): Set list_in_scope.
3462
f62f6af5
TT
34632018-07-20 Tom Tromey <tom@tromey.com>
3464
3465 * dwarf2read.c (process_psymtab_comp_unit_reader)
3466 (build_type_psymtabs_reader): Do not set list_in_scope.
3467
1d376700
TT
34682018-07-20 Tom Tromey <tom@tromey.com>
3469
3470 * buildsym.c (free_pendings): Remove.
3471 (add_symbol_to_list, scoped_free_pendings)
3472 (finish_block_internal, buildsym_init): Update.
3473
c233e9c6
TT
34742018-07-20 Tom Tromey <tom@tromey.com>
3475
3476 * xcoffread.c (read_xcoff_symtab): Update.
3477 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3478 Update.
3479 * dbxread.c (process_one_symbol): Update.
3480 * coffread.c (coff_symtab_read): Update.
3481 * buildsym.h (finish_block): Update.
3482 * buildsym.c (finish_block): Remove "listhead" argument.
3483 (end_symtab_get_static_block): Update.
3484
5ac04550
TT
34852018-07-20 Tom Tromey <tom@tromey.com>
3486
3487 * buildsym.h (class scoped_free_pendings): Remove constructor.
3488 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3489 method.
3490 <m_pending_block_obstack, m_pending_blocks>: New members.
3491 (pending_block_obstack, pending_blocks): Remove.
3492 (scoped_free_pendings::scoped_free_pendings): Default.
3493 (~scoped_free_pendings): Update.
3494 (free_pending_blocks): Remove.
3495 (finish_block_internal, record_pending_block, make_blockvector)
3496 (end_symtab_get_static_block, augment_type_symtab, push_context)
3497 (buildsym_init): Update.
3498
7ea05a7b
TT
34992018-07-20 Tom Tromey <tom@tromey.com>
3500
3501 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3502 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3503 members.
3504 (pending_addrmap, pending_addrmap_obstack)
3505 (pending_addrmap_interesting): Remove.
3506 (scoped_free_pendings, record_block_range, make_blockvector)
3507 (prepare_for_building, reset_symtab_globals, buildsym_init):
3508 Update.
3509
3c65e5b3
TT
35102018-07-20 Tom Tromey <tom@tromey.com>
3511
3512 * xcoffread.c (process_linenos): Update.
3513 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3514 * mdebugread.c (psymtab_to_symtab_1): Update.
3515 * dwarf2read.c (setup_type_unit_groups)
3516 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3517 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3518 * dbxread.c (process_one_symbol): Update.
3519 * coffread.c (coff_symtab_read, enter_linenos)
3520 (process_coff_symbol): Update.
3521 * buildsym.h (current_subfile): Don't declare.
3522 (get_current_subfile): Declare.
3523 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3524 member.
3525 (start_subfile, free_buildsym_compunit, push_subfile)
3526 (prepare_for_building, start_symtab): Update.
3527 (get_current_subfile): New function.
3528
a60f3166
TT
35292018-07-20 Tom Tromey <tom@tromey.com>
3530
3531 * coffread.c (coff_symtab_read): Update.
3532 * xcoffread.c (read_xcoff_symtab): Update.
3533 * dwarf2read.c (new_symbol): Update.
3534 (read_func_scope, read_lexical_block_scope): Update.
3535 * dbxread.c (process_one_symbol): Update.
3536 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3537 (outermost_context_p): Remove macro.
3538 (outermost_context_p, get_current_context_stack)
3539 (get_context_stack_depth): Declare.
3540 (pop_context): Return struct context_stack.
3541 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3542 member.
3543 (context_stack_size): Remove.
3544 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3545 (prepare_for_building, end_symtab_get_static_block)
3546 (augment_type_symtab, push_context): Update.
3547 (pop_context): Return struct context_stack.
3548 (outermost_context_p, get_current_context_stack)
3549 (get_context_stack_depth): New functions.
3550 (buildsym_init): Update.
3551
56ba65a0
TT
35522018-07-20 Tom Tromey <tom@tromey.com>
3553
3554 * rust-exp.y: Now a pure parser. Update all rules.
3555 (%union): Move earlier.
3556 (current_parser, work_obstack): Remove globals.
3557 (rust_parser, ~rust_parser): Update.
3558 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3559 lex_character, lex_number, lex_string, lex_identifier,
3560 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3561 convert_name, convert_params_to_expression,
3562 convert_ast_to_expression, ast_basic_type, ast_operation,
3563 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3564 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3565 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3566 ast_array_type, ast_slice_type, ast_reference_type,
3567 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3568 (rust_parse): Update.
3569 (rustyyerror, rustyylex): Add parser parameter.
3570 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3571 (rust_lex_stringish_test, rust_lex_test_sequence)
3572 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3573 (rust_lex_test_push_back, rust_lex_tests): Update.
3574
4c693332
PA
35752018-07-19 Pedro Alves <palves@redhat.com>
3576
3577 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3578 gdb::unique_xmalloc_ptr.
3579 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3580 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3581 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3582 copy-initialization.
3583 * guile/scm-pretty-print.c (ppscm_print_children): Use
3584 gdb::unique_xmalloc_ptr instead of cleanups.
3585 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3586 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3587 gdb::unique_xmalloc_ptr.
3588 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3589 Adjust to use gdb::unique_xmalloc_ptr.
3590 * guile/scm-utils.c (extract_arg): Adjust.
3591 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3592 gdb::unique_xmalloc_ptr instead of a cleanup.
3593
4581dc82
TT
35942018-07-19 Tom Tromey <tom@tromey.com>
3595
3596 * utils.c (do_value_free_to_mark)
3597 (make_cleanup_value_free_to_mark): Remove.
3598 * utils.h (make_cleanup_value_free_to_mark): Remove.
3599
43cc6c3a
PA
36002018-07-19 Pedro Alves <palves@redhat.com>
3601
3602 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3603 forwarding reference.
3604
3a5f2a48
PA
36052018-07-18 Pedro Alves <palves@redhat.com>
3606
3607 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3608 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3609 cleanup.
3610
557e56be
PA
36112018-07-18 Pedro Alves <palves@redhat.com>
3612
3613 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3614 exceptions.
3615 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3616 (gdbscm_wrap): New.
3617 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3618 directly instead of a cleanup.
3619 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3620 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3621 (vlscm_binop_gdbthrow): New, factored out from ...
3622 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3623 (vlscm_rich_compare): Use gdbscm_wrap.
3624 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3625 instead of a cleanup.
3626 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3627 cleanup.
3628 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3629 Use xfree directly instead of a cleanup.
3630 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3631 Adjust to use gdbscm_wrap and scoped_value_mark.
3632 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3633 (gdbscm_value_address, gdbscm_value_dereference)
3634 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3635 scoped_value_mark.
3636 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3637 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3638 scoped_value_mark.
3639 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3640 gdbscm_wrap and scoped_value_mark.
3641 (gdbscm_value_to_string): Use xfree directly instead of a
3642 cleanup. Move 'buffer' unique_ptr to TRY scope.
3643 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3644 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3645 scoped_value_mark.
3646 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3647 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3648 scoped_value_mark.
3649 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3650 gdbscm_wrap.
3651
42dc7699
TV
36522018-07-18 Tom de Vries <tdevries@suse.de>
3653
3654 * findvar.c (default_read_var_value): Also resolve dynamic type for
3655 LOC_OPTIMIZED_OUT vars.
3656
6592ceed
MR
36572018-07-18 Maciej W. Rozycki <macro@mips.com>
3658
3659 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3660 decoding.
3661
c6c6149a
TT
36622018-07-17 Tom Tromey <tom@tromey.com>
3663
3664 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3665 (compute_enum_list, pascm_set_param_value_x)
3666 (gdbscm_parameter_value): Update.
3667 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3668 (gdbscm_scm_to_host_string): Update.
3669 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3670 Update.
3671 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3672 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3673 * guile/scm-string.c (gdbscm_scm_to_string): Return
3674 unique_xmalloc_ptr.
3675 (gdbscm_scm_to_host_string): Likewise.
3676
a1a31cb8
TT
36772018-07-17 Tom Tromey <tom@tromey.com>
3678
3679 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3680 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3681 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3682 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3683 unique_xmalloc_ptr.
3684
15bf3002
TT
36852018-07-17 Tom Tromey <tom@tromey.com>
3686
3687 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3688 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3689 Update.
3690 * guile/scm-cmd.c (cmdscm_function): Update.
3691 * guile/scm-pretty-print.c
3692 (ppscm_print_exception_unless_memory_error): Update.
3693 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3694 Return unique_xmalloc_ptr.
3695
7eb1a66c
TT
36962018-07-17 Tom Tromey <tom@tromey.com>
3697
3698 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3699 Use string_printf.
3700
ce73f310
JW
37012018-07-17 Jim Wilson <jimw@sifive.com>
3702
27724bad
JW
3703 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3704 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3705 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3706 unecessary braces after EF_RISCV_RVC test. Delete call to
3707 set_gdbarch_decr_pc_after_break.
3708
ce73f310
JW
3709 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3710 RISCV_LAST_FP_REGNUM + 1.
3711 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3712
056dec39
TT
37132018-07-17 Tom Tromey <tom@tromey.com>
3714
3715 * configure.ac: Remove --disable-gdbcli.
3716 * configure: Rebuild.
3717 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3718 (SUBDIR_CLI_CFLAGS): Remove.
3719 (SFILES): Use SUBDIR_CLI_SRCS.
3720 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3721
4735f0ed
TT
37222018-07-17 Tom Tromey <tom@tromey.com>
3723
3724 PR gdb/18624:
3725 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3726
117a0e99
JW
37272018-07-16 Jim Wilson <jimw@sifive.com>
3728
3729 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3730
8a67aaa8
SM
37312018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3732
3733 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3734 variable.
3735 (libunwind_frame_sniffer): Likewise.
3736 (libunwind_frame_prev_register): Likewise.
3737 (libunwind_sigtramp_frame_sniffer): Likewise.
3738 * ia64-tdep.c (ia64_access_reg): Likewise.
3739 (ia64_access_rse_reg): Likewise.
3740 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3741 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3742
ec74dcd8
SM
37432018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3744
3745 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3746
a700e753
SM
37472018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3748
3749 * remote-sim.c (gdbsim_target::close,
3750 gdbsim_target::mourn_inferior): Remove unused variables.
3751
8b411ff8
SM
37522018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3753
3754 * ia64-tdep.c (ktab_buf): New global.
3755 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3756 (get_kernel_table): Adjust.
3757
edb0470b
TT
37582018-07-16 Tom Tromey <tom@tromey.com>
3759
3760 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3761 * dwarf2read.c (using_directives, new_symbol): Use
3762 outermost_context_p.
3763 * dbxread.c (process_one_symbol): Use outermost_context_p.
3764 * coffread.c (coff_symtab_read): Use outermost_context_p.
3765
6cccc9a8
TT
37662018-07-16 Tom Tromey <tom@tromey.com>
3767
3768 * dwarf2read.c (using_directives, read_func_scope)
3769 (read_lexical_block_scope): Update.
3770 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3771 * buildsym.h (local_using_directives, global_using_directives):
3772 Don't declare.
3773 (get_local_using_directives, set_local_using_directives)
3774 (get_global_using_directives): Declare.
3775 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3776 m_global_using_directives>: New members.
3777 (finish_block_internal, prepare_for_building)
3778 (reset_symtab_globals, end_symtab_get_static_block)
3779 (push_context): Update.
3780 (get_local_using_directives, set_local_using_directives)
3781 (get_global_using_directives): New functions.
3782 (buildsym_init): Update.
3783
652788a7
TT
37842018-07-16 Tom Tromey <tom@tromey.com>
3785
3786 * xcoffread.c (xcoff_initial_scan): Don't call
3787 free_pending_blocks.
3788 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3789 * buildsym.h (class scoped_free_pendings): Add constructor.
3790 (free_pending_blocks): Don't declare.
3791 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3792 (free_pending_blocks): Now static.
3793
8419ee53
TT
37942018-07-16 Tom Tromey <tom@tromey.com>
3795
3796 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3797 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3798 member.
3799 (struct subfile_stack): Remove.
3800 (subfile_stack): Remove.
3801 (push_subfile, pop_subfile, buildsym_init): Update.
3802
ccdac490
TT
38032018-07-16 Tom Tromey <tom@tromey.com>
3804
3805 * buildsym.c (push_subfile): Use gdb_assert.
3806 (pop_subfile): Use gdb_assert.
3807
43130d6f
TT
38082018-07-16 Tom Tromey <tom@tromey.com>
3809
3810 * buildsym.h (merge_symbol_lists): Remove.
3811 * buildsym.c (merge_symbol_lists): Remove.
3812
77d6f1aa
TT
38132018-07-16 Tom Tromey <tom@tromey.com>
3814
3815 * stabsread.c (scan_file_globals): Update comment.
3816 * stabsread.h (scan_file_globals): Move from buildsym.h.
3817 * buildsym.h (scan_file_globals): Move to stabsread.h.
3818
2c722d18
TT
38192018-07-16 Tom Tromey <tom@tromey.com>
3820
3821 * xcoffread.c (xcoff_new_init): Update.
3822 * mipsread.c (mipscoff_new_init): Update.
3823 * mdebugread.c (mdebug_build_psymtabs): Update.
3824 * elfread.c (elf_new_init): Update.
3825 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3826 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3827 * buildsym.h (buildsym_new_init): Don't declare.
3828 * buildsym.c (buildsym_new_init): Remove.
3829
5985ac61
TT
38302018-07-16 Tom Tromey <tom@tromey.com>
3831
3832 * stabsread.h (within_function): Move from buildsym.h.
3833 * stabsread.c (start_stabs): Clear within_function.
3834 * coffread.c (coff_start_symtab): Clear within_function.
3835 * buildsym.h (within_function): Move to stabsread.h.
3836 * buildsym.c (prepare_for_building): Update.
3837
6b84eeb2
TT
38382018-07-16 Tom Tromey <tom@tromey.com>
3839
3840 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3841 * dwarf2read.c (dwarf2_start_symtab): Don't set
3842 processing_gcc_compilation.
3843 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3844
2150c3ef
TT
38452018-07-16 Tom Tromey <tom@tromey.com>
3846
3847 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3848 (next_symbol_text_func): Move from buildsym.h.
3849 * stabsread.c (hashname): Move from buildsym.c.
3850 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3851 (next_symbol_text_func, hashname): Move to stabsread.h.
3852 * buildsym.c: Don't include bcache.h
3853 (hashname): Move to stasbread.c.
3854
0ec44fc0
TT
38552018-07-16 Tom Tromey <tom@tromey.com>
3856
3857 * buildsym.h (context_stack_size): Don't declare.
3858 * buildsym.c (context_stack_size): New global.
3859
81cc346d
TT
38602018-07-16 Tom Tromey <tom@tromey.com>
3861
3862 * dbxread.c (processing_acc_compilation): New global.
3863 * buildsym.h (processing_acc_compilation): Don't declare.
3864
2c99ee5c
TT
38652018-07-16 Tom Tromey <tom@tromey.com>
3866
3867 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3868 * dbxread.c (read_ofile_symtab): Update.
3869 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3870 * buildsym.h (last_source_start_addr): Remove.
3871 (set_last_source_start_addr, get_last_source_start_addr):
3872 Declare.
3873 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3874 parameter.
3875 (struct buildsym_compunit) <m_last_source_start_addr>: New
3876 member.
3877 (prepare_for_building): Remove start_addr parameter.
3878 (start_symtab, restart_symtab, end_symtab_get_static_block)
3879 (end_symtab_with_blockvector): Update.
3880 (set_last_source_start_addr, get_last_source_start_addr): New
3881 functions.
3882
530fedbc
TT
38832018-07-16 Tom Tromey <tom@tromey.com>
3884
3885 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3886 member.
3887 (have_line_numbers): Remove.
3888 (record_line, prepare_for_building, end_symtab_get_static_block)
3889 (augment_type_symtab): Update.
3890
6a976300
TT
38912018-07-16 Tom Tromey <tom@tromey.com>
3892
3893 * buildsym.c (~buildsym_compunit): Free the macro table.
3894 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3895 methods.
3896 <m_pending_macros>: New member.
3897 (pending_macros): Remove.
3898 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3899 (reset_symtab_globals, end_symtab_get_static_block)
3900 (end_symtab_with_blockvector, augment_type_symtab)
3901 (buildsym_init): Update.
3902
c0015d44
TT
39032018-07-16 Tom Tromey <tom@tromey.com>
3904
3905 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3906 parameter.
3907 (buildsym_compunit::set_last_source_file): New method.
3908 <m_last_source_file>: New member.
3909 (prepare_for_building): Remove "name" parameter.
3910 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3911 (last_source_file): Remove.
3912 (set_last_source_file, get_last_source_file): Update.
3913
e62cca7c
TT
39142018-07-16 Tom Tromey <tom@tromey.com>
3915
3916 * buildsym.c (prepare_for_building): Add assert.
3917
905eb0e2
TT
39182018-07-16 Tom Tromey <tom@tromey.com>
3919
3920 * buildsym.c (~buildsym_compunit): Update.
3921 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3922 (start_subfile, patch_subfile_names)
3923 (end_symtab_with_blockvector): Update.
3924
b248663f
TT
39252018-07-16 Tom Tromey <tom@tromey.com>
3926
3927 * buildsym.c (struct buildsym_compunit): Add constructor,
3928 destructor, initializers.
3929 (start_buildsym_compunit): Remove.
3930 (free_buildsym_compunit): Use "delete".
3931 (start_symtab, restart_symtab): Use "new".
3932
ff27d073
SM
39332018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3934
3935 * symfile.c (set_objfile_default_section_offset): Remove struct
3936 keyword.
3937
6a15ecf5
SH
39382018-07-14 Stafford Horne <shorne@gmail.com>
3939
3940 * (Responsible Maintainers): Add myself as or1k maintainer.
3941
027a4c30
TT
39422018-07-13 Tom Tromey <tom@tromey.com>
3943
3944 * symfile.c (set_objfile_default_section_offset): Use extra braces
3945 around initializer.
3946
5c1eda30
AA
39472018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3948
3949 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3950 non-branching basr.
3951
bc7b042b
PW
39522018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3953
3954 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3955 unittests/cli-utils-selftests.c
3956 * unittests/cli-utils-selftests.c: New file.
3957
a14c4daa
PW
39582018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3959
3960 * NEWS: Mention new commands. Mention change to 'thread apply'.
3961
1fe75df7
PW
39622018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3963
3964 * thread.c (thr_try_catch_cmd): New function.
3965 (thread_apply_all_command): Handle qcs flags.
3966 (thread_apply_command): Handle qcs flags.
3967 (taas_command): New function.
3968 (tfaas_command): New function.
3969 (_initialize_thread): Update to setup the new commands 'taas
3970 and 'tfaas'. Change doc string for 'thread apply'.
3971
6a70eb7d
PW
39722018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3973
3974 * stack.c: (trailing_outermost_frame): New function, mostly
3975 extracted from backtrace_command_1.
3976 (leading_innermost_frame): New function.
3977 (backtrace_command_1): Update to call trailing_outermost_frame.
3978 (frame_apply_command_count): New function.
3979 (frame_apply_level_command): New function.
3980 (frame_apply_all_command): New function.
3981 (frame_apply_command): New function.
3982 (faas_command): New function.
3983 (frame_cmd_list): New variable.
3984 (_initialize_stack): Update to setup the new commands 'frame apply'
3985 and 'faas'.
3986
529c08b2
PW
39872018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3988
3989 * cli-utils.c (number_or_range_parser::get_number): Only handle
3990 numbers or convenience var as numbers.
3991 (parse_flags): New function.
3992 (parse_flags_qcs): New function.
3993 (number_or_range_parser::finished): Ensure parsing end is detected
3994 before end of string.
3995 * cli-utils.h (parse_flags): New function.
3996 (parse_flags_qcs): New function.
3997 (number_or_range_parser): Remove m_finished bool.
3998 (number_or_range_parser::skip_range): Set m_in_range to false.
3999
64b58472
SDJ
40002018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4001
4002 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4003 on Windows.
4004
c7ab0aef
SDJ
40052018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4006 Jan Kratochvil <jan.kratochvil@redhat.com>
4007 Paul Fertser <fercerpav@gmail.com>
4008 Tsutomu Seki <sekiriki@gmail.com>
4009 Pedro Alves <palves@redhat.com>
4010
4011 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4012 'unittests/parse-connection-spec-selftests.c'.
4013 (COMMON_SFILES): Add 'common/netstuff.c'.
4014 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4015 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4016 * common/netstuff.c: New file.
4017 * common/netstuff.h: New file.
4018 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4019 (wait_for_connect): Update comment. New parameter
4020 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4021 Use 'sock' directly instead of 'scb->fd'.
4022 (try_connect): New function, with code from 'net_open'.
4023 (net_open): Rewrite main loop to deal with multiple
4024 sockets/addresses. Handle IPv6-style hostnames; implement
4025 support for IPv6 connections.
4026 * unittests/parse-connection-spec-selftests.c: New file.
4027
4c7333b3
PA
40282018-07-11 Pedro Alves <palves@redhat.com>
4029
4030 PR gdb/23377
4031 * remote.c (remote_target::remote_detach_pid): Call
4032 set_current_process.
4033
a6f88f6e
PA
40342018-07-11 Pedro Alves <palves@redhat.com>
4035
4036 * h8300-tdep.c (h8300_gdbarch_init): Remove
4037 set_gdbarch_ecoff_reg_to_regnum calls.
4038
16ff70dd
SDJ
40392018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4040
4041 PR c++/23373
4042 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4043 offsets/sizes for static members of a class/struct.
4044
12863263
AH
40452018-07-11 Alan Hayward <alan.hayward@arm.com>
4046
4047 * target-descriptions.c (tdesc_register_bitsize): Rename.
4048 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4049 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4050 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4051
1123588c
TT
40522018-07-10 Tom Tromey <tom@tromey.com>
4053
4054 * breakpoint.c (moribund_locations): Now static and a
4055 std::vector.
4056 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4057 (build_bpstat_chain, update_global_location_list)
4058 (breakpoint_retire_moribund): Update.
4059 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4060 VEC.
4061
8c49aa89
AB
40622018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4063
4064 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4065 (riscv_register_reggroup_p): Use new function, remove unneeded
4066 parenthesis.
4067 (riscv_push_dummy_call): Extend assert to compare against xlen or
4068 flen based on register type.
4069
42ecac17
AB
40702018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4071
4072 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4073
055303e2
AB
40742018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4075
4076 * remote.c (show_hardware_watchpoint_limit): New function.
4077 (show_hardware_watchpoint_length_limit): New function.
4078 (show_hardware_breakpoint_limit): New function.
4079 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4080 where appropriate, update help text.
4081
8fd32c1c
TT
40822018-07-09 Tom Tromey <tom@tromey.com>
4083
4084 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4085 (CLIBS): Don't mention NAT_CLIBS.
4086
31278b51
TT
40872018-07-09 Tom Tromey <tom@tromey.com>
4088
4089 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4090 (LIBGDB_OBS, clean mostlyclean): Update.
4091 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4092
e5fd1493
TT
40932018-07-09 Tom Tromey <tom@tromey.com>
4094
4095 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4096 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4097 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4098
981e0c0c
TT
40992018-07-09 Tom Tromey <tom@tromey.com>
4100
4101 * Makefile.in (ALLDEPFILES): Remove exec.c.
4102 (COMMON_OBS): Remove exec.o.
4103 (COMMON_SFILES): Add exec.c.
4104
14ccceb2
TT
41052018-07-09 Tom Tromey <tom@tromey.com>
4106
4107 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4108
5d3c3a68
TT
41092018-07-09 Tom Tromey <tom@tromey.com>
4110
4111 * Makefile.in (clean mostlyclean): Remove stamp-version.
4112 (version.c): Depend on stamp-version.
4113 (stamp-version): New rule, from version.c rule.
4114
1998086d
TT
41152018-07-09 Tom Tromey <tom@tromey.com>
4116
4117 * Makefile.in (init.c): Depend on stamp-init.
4118 (stamp-init): New rule, from init.c rule.
4119 (clean mostlyclean): Remove stamp-init.
4120
4c754949
TT
41212018-07-09 Tom Tromey <tom@tromey.com>
4122
4123 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4124 SUBDIR_GCC_COMPILE_SRCS.
4125
6497f1dd
TT
41262018-07-09 Tom Tromey <tom@tromey.com>
4127
4128 * Makefile.in (init.c): Remove some unused sed rules.
4129
97a34db9
TT
41302018-07-09 Tom Tromey <tom@tromey.com>
4131
4132 * Makefile.in (TSOBS): Remove.
4133 (INIT_FILES): Update.
4134 (LIBGDB_OBS): Update.
4135 (COMMON_SFILES): Add inflow.c.
4136 (SFILES): Remove inflow.c.
4137
25289ac1
JK
41382018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4139
4140 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4141
e83f4d97
SM
41422018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4143
4869c585
SM
4144 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4145 get_saveloc_name, is_signal_frame_name, step_name,
4146 init_remote_name, create_addr_space_name,
4147 destroy_addr_space_name, search_unwind_table_name,
4148 find_dyn_list_name): Constify.
e83f4d97 4149
6821842f
SM
41502018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4151
4152 * darwin-nat.c (darwin_pthread_kill): New function.
4153 (darwin_resume_thread): Use darwin_pthread_kill.
4154
c530603c
TV
41552018-07-05 Tom de Vries <tdevries@suse.de>
4156
4157 * macroexp.c (macro_buffer) <operator=>: New member function.
4158
a7d0f0f0
TT
41592018-07-04 Tom Tromey <tom@tromey.com>
4160
4161 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4162
6242c6a6
SM
41632018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4164
4165 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4166 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4167 * maint.c: Likewise.
4168 * top.c: Likewise.
4169
4e5b2f89
JB
41702018-07-04 Joel Brobecker <brobecker@adacore.com>
4171
4172 * NEWS: Create a new section for the next release branch.
4173 Rename the section of the current branch, now that it has
4174 been cut.
4175
538ccc4a
JB
41762018-07-04 Joel Brobecker <brobecker@adacore.com>
4177
4178 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4179 * version.in: Bump version to 8.2.50.DATE-git.
4180
1b919490
VB
41812018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4182 Pedro Alves <palves@redhat.com>
4183
4184 * linux-nat.c (linux_init_ptrace): Rename to ...
4185 (linux_init_ptrace_procfs): ... this. Call
4186 linux_proc_init_warnings.
4187 (linux_nat_target::post_attach)
4188 (linux_nat_target::post_startup_inferior): Adjust.
4189 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4190 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4191
1ea5da02
TV
41922018-07-04 Tom de Vries <tdevries@suse.de>
4193
4194 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4195 check ...
4196 (read_comp_unit_head): ... here.
4197
f51e0e20
TT
41982018-07-03 Tom Tromey <tom@tromey.com>
4199
4200 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4201 (stop_tracing, tstatus_command)
4202 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4203 (print_one_static_tracepoint_marker): Update.
4204 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4205 std::vector.
4206 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4207 VEC.
4208 (all_tracepoints, static_tracepoints_here): Return std::vector.
4209
d7e15655
TT
42102018-07-03 Tom Tromey <tom@tromey.com>
4211
4212 * common/ptid.c (ptid_equal): Remove.
4213 * common/ptid.h (ptid_equal): Don't declare.
4214 * ada-tasks.c: Update.
4215 * breakpoint.c: Update.
4216 * common/agent.c: Update.
4217 * corelow.c: Update.
4218 * darwin-nat-info.c: Update.
4219 * darwin-nat.c: Update.
4220 * dcache.c: Update.
4221 * dtrace-probe.c: Update.
4222 * dummy-frame.c: Update.
4223 * fbsd-nat.c: Update.
4224 * frame.c: Update.
4225 * gdbthread.h: Update.
4226 * gnu-nat.c: Update.
4227 * go32-nat.c: Update.
4228 * inf-loop.c: Update.
4229 * inf-ptrace.c: Update.
4230 * infcall.c: Update.
4231 * infcmd.c: Update.
4232 * inflow.c: Update.
4233 * infrun.c: Update.
4234 * linux-fork.c: Update.
4235 * linux-nat.c: Update.
4236 * linux-thread-db.c: Update.
4237 * mi/mi-cmd-var.c: Update.
4238 * mi/mi-interp.c: Update.
4239 * mi/mi-main.c: Update.
4240 * nto-procfs.c: Update.
4241 * ppc-linux-tdep.c: Update.
4242 * procfs.c: Update.
4243 * python/py-inferior.c: Update.
4244 * python/py-record-btrace.c: Update.
4245 * python/py-record.c: Update.
4246 * ravenscar-thread.c: Update.
4247 * regcache.c: Update.
4248 * remote-sim.c: Update.
4249 * remote.c: Update.
4250 * sol-thread.c: Update.
4251 * solib.c: Update.
4252 * target.c: Update.
4253 * tui/tui-stack.c: Update.
4254 * varobj.c: Update.
4255 * windows-nat.c: Update.
4256 * windows-tdep.c: Update.
4257
26a57c92
TT
42582018-07-03 Tom Tromey <tom@tromey.com>
4259
4260 * common/ptid.c (ptid_match): Remove.
4261 * common/ptid.h (ptid_match): Don't declare.
4262 * fbsd-nat.c: Update.
4263 * infcmd.c: Update.
4264 * infrun.c: Update.
4265 * linux-nat.c: Update.
4266 * record-btrace.c: Update.
4267 * regcache.c: Update.
4268 * remote.c: Update.
4269
d2a107e3
TT
42702018-07-03 Tom Tromey <tom@tromey.com>
4271
4272 * common/ptid.c (ptid_tid_p): Remove.
4273 * common/ptid.h (ptid_tid_p): Don't declare.
4274 * sol-thread.c: Update.
4275
15a9e13e
TT
42762018-07-03 Tom Tromey <tom@tromey.com>
4277
4278 * common/ptid.c (ptid_lwp_p): Remove.
4279 * common/ptid.h (ptid_lwp_p): Don't declare.
4280 * fbsd-nat.c: Update.
4281 * linux-nat.c: Update.
4282 * nat/linux-procfs.c: Update.
4283 * nat/x86-linux-dregs.c: Update.
4284 * sol-thread.c: Update.
4285
0e998d96
TT
42862018-07-03 Tom Tromey <tom@tromey.com>
4287
4288 * common/ptid.c (ptid_is_pid): Remove.
4289 * common/ptid.h (ptid_is_pid): Don't declare.
4290 * infrun.c: Update.
4291 * linux-nat.c: Update.
4292 * mi/mi-interp.c: Update.
4293 * remote.c: Update.
4294 * thread.c: Update.
4295
cc6bcb54
TT
42962018-07-03 Tom Tromey <tom@tromey.com>
4297
4298 * common/ptid.c (ptid_get_tid): Remove.
4299 * common/ptid.h (ptid_get_tid): Don't declare.
4300 * ada-tasks.c: Update.
4301 * aix-thread.c: Update.
4302 * bsd-uthread.c: Update.
4303 * darwin-nat.c: Update.
4304 * fbsd-nat.c: Update.
4305 * i386-darwin-nat.c: Update.
4306 * infrun.c: Update.
4307 * linux-tdep.c: Update.
4308 * nto-procfs.c: Update.
4309 * ppc-ravenscar-thread.c: Update.
4310 * python/py-infthread.c: Update.
4311 * ravenscar-thread.c: Update.
4312 * sol-thread.c: Update.
4313 * sparc-ravenscar-thread.c: Update.
4314 * windows-nat.c: Update.
4315
e38504b3
TT
43162018-07-03 Tom Tromey <tom@tromey.com>
4317
4318 * common/ptid.c (ptid_get_lwp): Remove.
4319 * common/ptid.h (ptid_get_lwp): Don't declare.
4320 * aarch64-linux-nat.c: Update.
4321 * ada-tasks.c: Update.
4322 * aix-thread.c: Update.
4323 * amd64-linux-nat.c: Update.
4324 * arm-linux-nat.c: Update.
4325 * corelow.c: Update.
4326 * fbsd-nat.c: Update.
4327 * fbsd-tdep.c: Update.
4328 * gnu-nat.c: Update.
4329 * i386-cygwin-tdep.c: Update.
4330 * i386-gnu-nat.c: Update.
4331 * i386-linux-nat.c: Update.
4332 * ia64-linux-nat.c: Update.
4333 * inf-ptrace.c: Update.
4334 * infrun.c: Update.
4335 * linux-fork.c: Update.
4336 * linux-nat.c: Update.
4337 * linux-tdep.c: Update.
4338 * linux-thread-db.c: Update.
4339 * mips-linux-nat.c: Update.
4340 * nat/aarch64-linux-hw-point.c: Update.
4341 * nat/aarch64-linux.c: Update.
4342 * nat/linux-btrace.c: Update.
4343 * nat/linux-osdata.c: Update.
4344 * nat/linux-procfs.c: Update.
4345 * nat/x86-linux-dregs.c: Update.
4346 * obsd-nat.c: Update.
4347 * ppc-fbsd-nat.c: Update.
4348 * ppc-linux-nat.c: Update.
4349 * procfs.c: Update.
4350 * python/py-infthread.c: Update.
4351 * ravenscar-thread.c: Update.
4352 * remote.c: Update.
4353 * s390-linux-nat.c: Update.
4354 * sol-thread.c: Update.
4355 * sol2-tdep.c: Update.
4356 * spu-linux-nat.c: Update.
4357 * x86-linux-nat.c: Update.
4358 * xtensa-linux-nat.c: Update.
4359
e99b03dc
TT
43602018-07-03 Tom Tromey <tom@tromey.com>
4361
4362 * common/ptid.c (ptid_get_pid): Remove.
4363 * common/ptid.h (ptid_get_pid): Don't declare.
4364 * aarch64-linux-nat.c: Update.
4365 * ada-lang.c: Update.
4366 * aix-thread.c: Update.
4367 * alpha-bsd-nat.c: Update.
4368 * amd64-fbsd-nat.c: Update.
4369 * amd64-linux-nat.c: Update.
4370 * arm-linux-nat.c: Update.
4371 * arm-nbsd-nat.c: Update.
4372 * auxv.c: Update.
4373 * break-catch-syscall.c: Update.
4374 * breakpoint.c: Update.
4375 * bsd-uthread.c: Update.
4376 * corelow.c: Update.
4377 * ctf.c: Update.
4378 * darwin-nat.c: Update.
4379 * fbsd-nat.c: Update.
4380 * fbsd-tdep.c: Update.
4381 * gcore.c: Update.
4382 * gnu-nat.c: Update.
4383 * hppa-nbsd-nat.c: Update.
4384 * hppa-obsd-nat.c: Update.
4385 * i386-fbsd-nat.c: Update.
4386 * ia64-linux-nat.c: Update.
4387 * inf-ptrace.c: Update.
4388 * infcmd.c: Update.
4389 * inferior.c: Update.
4390 * inferior.h: Update.
4391 * inflow.c: Update.
4392 * infrun.c: Update.
4393 * linux-fork.c: Update.
4394 * linux-nat.c: Update.
4395 * linux-tdep.c: Update.
4396 * linux-thread-db.c: Update.
4397 * m68k-bsd-nat.c: Update.
4398 * mi/mi-interp.c: Update.
4399 * mi/mi-main.c: Update.
4400 * mips-linux-nat.c: Update.
4401 * mips-nbsd-nat.c: Update.
4402 * mips64-obsd-nat.c: Update.
4403 * nat/aarch64-linux-hw-point.c: Update.
4404 * nat/aarch64-linux.c: Update.
4405 * nat/linux-btrace.c: Update.
4406 * nat/linux-osdata.c: Update.
4407 * nat/linux-procfs.c: Update.
4408 * nat/x86-linux-dregs.c: Update.
4409 * nto-procfs.c: Update.
4410 * obsd-nat.c: Update.
4411 * ppc-linux-nat.c: Update.
4412 * ppc-nbsd-nat.c: Update.
4413 * ppc-obsd-nat.c: Update.
4414 * proc-service.c: Update.
4415 * procfs.c: Update.
4416 * python/py-inferior.c: Update.
4417 * python/py-infthread.c: Update.
4418 * ravenscar-thread.c: Update.
4419 * record.c: Update.
4420 * remote-sim.c: Update.
4421 * remote.c: Update.
4422 * rs6000-nat.c: Update.
4423 * s390-linux-nat.c: Update.
4424 * sh-nbsd-nat.c: Update.
4425 * sol-thread.c: Update.
4426 * sparc-nat.c: Update.
4427 * sparc64-tdep.c: Update.
4428 * spu-linux-nat.c: Update.
4429 * spu-tdep.c: Update.
4430 * target-debug.h: Update.
4431 * target.c: Update.
4432 * thread.c: Update.
4433 * tid-parse.c: Update.
4434 * tracefile-tfile.c: Update.
4435 * vax-bsd-nat.c: Update.
4436 * windows-nat.c: Update.
4437 * x86-linux-nat.c: Update.
4438 * x86-nat.c: Update.
4439
f2907e49
TT
44402018-07-03 Tom Tromey <tom@tromey.com>
4441
4442 * common/ptid.c (pid_to_ptid): Remove.
4443 * common/ptid.h (pid_to_ptid): Don't declare.
4444 * aix-thread.c: Update.
4445 * arm-linux-nat.c: Update.
4446 * common/ptid.c: Update.
4447 * common/ptid.h: Update.
4448 * corelow.c: Update.
4449 * ctf.c: Update.
4450 * darwin-nat.c: Update.
4451 * fbsd-nat.c: Update.
4452 * fork-child.c: Update.
4453 * gnu-nat.c: Update.
4454 * go32-nat.c: Update.
4455 * inf-ptrace.c: Update.
4456 * infcmd.c: Update.
4457 * inferior.c: Update.
4458 * infrun.c: Update.
4459 * linux-fork.c: Update.
4460 * linux-nat.c: Update.
4461 * nat/aarch64-linux-hw-point.c: Update.
4462 * nat/fork-inferior.c: Update.
4463 * nat/x86-linux-dregs.c: Update.
4464 * nto-procfs.c: Update.
4465 * obsd-nat.c: Update.
4466 * procfs.c: Update.
4467 * progspace.c: Update.
4468 * remote.c: Update.
4469 * rs6000-nat.c: Update.
4470 * s390-linux-nat.c: Update.
4471 * sol-thread.c: Update.
4472 * spu-linux-nat.c: Update.
4473 * target.c: Update.
4474 * top.c: Update.
4475 * tracefile-tfile.c: Update.
4476 * windows-nat.c: Update.
4477
fd79271b
TT
44782018-07-03 Tom Tromey <tom@tromey.com>
4479
4480 * common/ptid.h (ptid_build): Don't declare.
4481 * common/ptid.c (ptid_build): Remove.
4482 * aix-thread.c: Update.
4483 * bsd-kvm.c: Update.
4484 * bsd-uthread.c: Update.
4485 * common/agent.c: Update.
4486 * common/ptid.c: Update.
4487 * common/ptid.h: Update.
4488 * corelow.c: Update.
4489 * darwin-nat.c: Update.
4490 * fbsd-nat.c: Update.
4491 * gnu-nat.c: Update.
4492 * linux-fork.c: Update.
4493 * linux-nat.c: Update.
4494 * linux-thread-db.c: Update.
4495 * nat/linux-osdata.c: Update.
4496 * nat/linux-procfs.c: Update.
4497 * nto-procfs.c: Update.
4498 * obsd-nat.c: Update.
4499 * proc-service.c: Update.
4500 * procfs.c: Update.
4501 * ravenscar-thread.c: Update.
4502 * remote-sim.c: Update.
4503 * remote.c: Update.
4504 * sol-thread.c: Update.
4505 * target.c: Update.
4506 * windows-nat.c: Update.
4507
057302ce
TT
45082018-07-03 Tom Tromey <tom@tromey.com>
4509
4510 * infrun.c (follow_exec): Use exit_inferior_silent.
4511 * inferior.c (exit_inferior_num_silent): Remove.
4512 * inferior.h (exit_inferior_num_silent): Don't declare.
4513
a50c11c6
TT
45142018-07-03 Tom Tromey <tom@tromey.com>
4515
4516 PR cli/23340:
4517 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4518 inferior_ptid on error.
4519
471b9d15
MR
45202018-07-02 Maciej W. Rozycki <macro@mips.com>
4521 Simon Marchi <simon.marchi@polymtl.ca>
4522
4523 PR tdep/8282
4524 * disasm.h (gdb_disassembler): Add
4525 `m_disassembler_options_holder'. member
4526 * disasm.c (get_all_disassembler_options): New function.
4527 (gdb_disassembler::gdb_disassembler): Use it.
4528 (gdb_buffered_insn_length_init_dis): Likewise.
4529 (gdb_buffered_insn_length): Adjust accordingly.
4530 (set_disassembler_options): Handle options with arguments.
4531 (show_disassembler_options_sfunc): Likewise. Add a leading new
4532 line if showing options with descriptions.
4533 (disassembler_options_completer): Adapt to using the
4534 `disasm_options_and_args_t' structure.
4535 * mips-tdep.c (mips_disassembler_options): New variable.
4536 (mips_disassembler_options_o32): Likewise.
4537 (mips_disassembler_options_n32): Likewise.
4538 (mips_disassembler_options_n64): Likewise.
4539 (gdb_print_insn_mips): Don't set `disassembler_options'.
4540 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4541 functions.
4542 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4543 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4544 `gdbarch_disassembler_options_implicit' and
4545 `gdbarch_valid_disassembler_options'.
4546 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4547 `disasm_options_and_args_t' structure.
4548 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4549 method.
4550 (valid_disassembler_options): Switch from `disasm_options_t' to
4551 the `disasm_options_and_args_t' structure.
4552 * NEWS: Document `set disassembler-options' support for the MIPS
4553 target.
4554 * gdbarch.h: Regenerate.
4555 * gdbarch.c: Regenerate.
4556
41823f29
SH
45572018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4558
4559 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4560
41206e32
JB
45612018-06-29 Joel Brobecker <brobecker@adacore.com>
4562
4563 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4564 parameter in call to amd64_target_description.
4565 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4566 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4567 (amd64fbsd_init_abi): Likewise.
4568 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4569 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4570 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4571 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4572
de52b960
PA
45732018-06-29 Pedro Alves <palves@redhat.com>
4574
4575 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4576 "segments" parameter.
4577 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4578 (_initialize_amd64_tdep): Update call to
4579 amd64_create_target_description.
4580 (amd64_target_description): Add "segments" parameter. Adjust
4581 the implementation to use it.
4582 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4583 call to amd64_create_target_description.
4584 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4585 * gdb/arch/amd64.h (amd64_create_target_description): Add
4586 "segments" register.
4587 * gdb/arch/amd64.c (amd64_create_target_description): Add
4588 "segments" parameter. Call create_feature_i386_64bit_segments
4589 only if SEGMENTS is true.
4590 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4591 call to amd64_create_target_description.
4592
75acb486
PA
45932018-06-29 Pedro Alves <palves@redhat.com>
4594
4595 * thread.c (thread_target_id_str): New, factored out from ...
4596 (print_thread_info_1): ... here. Use it to compute the max
4597 "Target Id" column width.
4598
c76a8ea3
PA
45992018-06-29 Pedro Alves <palves@redhat.com>
4600
4601 * remote.c (remote_target::extra_thread_info): Delete
4602 'display_buf' and 'n' locals. from the cache, regardless of
4603 packet mechanims is in use. Use cache for qThreadExtra and qP
4604 methods too.
4605
cd2bb709
PA
46062018-06-29 Pedro Alves <palves@redhat.com>
4607
4608 * blockframe.c (find_pc_sect_containing_function): New function.
4609 * breakpoint.c (print_breakpoint_location): Don't call
4610 find_pc_sect_function.
4611 * linespec.c (create_sals_line_offset): Record the location's
4612 symbol in the sal.
4613 * linespec.c (convert_address_location_to_sals): Fill in sal's
4614 symbol with find_pc_sect_containing_function.
4615 * symtab.c (find_function_start_sal): Rename to ...
4616 (find_function_start_sal_1): ... this.
4617 (find_function_start_sal): Reimplement as wrapper around
4618 find_function_start_sal_1, and use
4619 find_pc_sect_containing_function to fill in the sal's symbol.
4620 (find_function_start_sal(symbol*, bool)): Adjust.
4621 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4622 comments.
4623 (find_pc_sect_containing_function): Declare.
4624
991ff292
PA
46252018-06-29 Pedro Alves <palves@redhat.com>
4626
4627 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4628 true if the the location has no symbol.
4629
44cee4fd
TT
46302018-06-28 Tom Tromey <tom@tromey.com>
4631
4632 * NEWS: Mention --enable-codesign.
4633 * silent-rules.mk (ECHO_SIGN): New variable.
4634 * configure.ac: Add --enable-codesign.
4635 * configure: Rebuild.
4636 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4637 (gdb$(EXEEXT)): Optionally invoke codesign.
4638
f2ffa92b
PA
46392018-06-28 Pedro Alves <palves@redhat.com>
4640
4641 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4642 comments.
4643 (switch_to_thread_no_regs): Adjust comment.
4644 * infcmd.c (stop_pc): Delete.
4645 (post_create_inferior, info_program_command): Replace references
4646 to stop_pc with references to thread_info->suspend.stop_pc.
4647 * inferior.h (stop_pc): Delete declaration.
4648 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4649 (handle_inferior_event_1, handle_signal_stop)
4650 (process_event_stop_test, keep_going_stepped_thread)
4651 (handle_step_into_function, handle_step_into_function_backward)
4652 (print_stop_location): Replace references to stop_pc with
4653 references to thread_info->suspend.stop_pc.
4654 (struct infcall_suspend_state) <stop_pc>: Delete field.
4655 (save_infcall_suspend_state, restore_infcall_suspend_state):
4656 Remove references to inf_stat->stop_pc.
4657 * linux-fork.c (fork_load_infrun_state): Likewise.
4658 * record-btrace.c (record_btrace_set_replay): Likewise.
4659 * record-full.c (record_full_goto_entry): Likewise.
4660 * remote.c (print_one_stopped_thread): Likewise.
4661 * target.c (target_resume): Extend comment.
4662 * thread.c (set_executing_thread): New.
4663 (set_executing): Use it.
4664 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4665 Remove references to stop_pc.
4666
ecdc3a72
PA
46672018-06-28 Pedro Alves <palves@redhat.com>
4668
4669 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4670 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4671
d95d3aef
TT
46722018-06-28 Tom Tromey <tom@tromey.com>
4673
4674 * coffread.c (coff_symfile_finish): Update.
4675 * xcoffread.c (xcoff_symfile_finish): Update.
4676 * elfread.c (elf_symfile_finish): Update.
4677 * symfile.h (dwarf2_free_objfile): Don't declare.
4678 * dwarf2read.c (_initialize_dwarf2_read): Use
4679 register_objfile_data_with_cleanup.
4680 (dwarf2_free_objfile): Now static. Change signature.
4681
291f9a96
PT
46822018-06-28 Petr Tesarik <ptesarik@suse.cz>
4683
4684 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4685 option "-o" to add-symbol-file-load to add an offset to each
4686 section's load address.
4687 * symfile.c (set_objfile_default_section_offset): New function.
4688
d81a3eaf
PT
46892018-06-28 Petr Tesarik <ptesarik@suse.cz>
4690
4691 * symfile.c (add_symbol_file_command): Make sure that sections
4692 with the same name are sorted in the same order.
4693
ed6dfe51
PT
46942018-06-28 Petr Tesarik <ptesarik@suse.cz>
4695
4696 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4697 require the second argument. If omitted, load sections at the
4698 addresses specified in the file.
4699
d4d429d5
PT
47002018-06-28 Petr Tesarik <ptesarik@suse.cz>
4701
4702 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4703 (_initialize_symfile): Add option "-o" to symbol-file to add an
4704 offset to each section of the symbol file.
4705
39b27ab6
PT
47062018-06-28 Petr Tesarik <ptesarik@suse.cz>
4707
4708 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4709
41827fc3
TT
47102018-06-27 Tom Tromey <tom@tromey.com>
4711
4712 * stack.c (_initialize_stack): Update "func" help text.
4713
0c6aef22
TT
47142018-06-27 Tom Tromey <tom@tromey.com>
4715
4716 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4717 std::vector.
4718 (unwind_infopy_str, pyuw_create_unwind_info)
4719 (unwind_infopy_add_saved_register, pyuw_sniffer)
4720 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4721 Update.
4722 (struct saved_reg): Add constructor.
4723 <value>: Now a gdbpy_ref<>.
4724
63177289
TT
47252018-06-27 Tom Tromey <tom@tromey.com>
4726
4727 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4728
e76f78a0
SM
47292018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4730
4731 * gdb-gdb.py.in: Format using autopep8.
4732
9a14af7b
SM
47332018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4734
4735 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4736 (type_lookup_function): Recognize CORE_ADDR values.
4737
189366cd
SM
47382018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4739
4740 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4741 print tag_name.
4742
68ad5fb9
SM
47432018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4744
4745 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4746 <__lt__>: Add.
4747
141ec9f6
SM
47482018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4749
4750 * gdb-gdb.py: Move to...
4751 * gdb-gdb.py.in: ... here.
4752 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4753 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4754 dependencies.
4755 (distclean): Remove gdb-gdb.py when cleaning.
4756 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4757 * configure: Re-generate.
4758
4c4e7ad4
PA
47592018-06-27 Pedro Alves <palves@redhat.com>
4760
4761 * proc-service.c (get_ps_regcache): New.
4762 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4763 (ps_lsetfpregs): Use it.
4764
7ab6656f
OJ
47652018-06-27 Omair Javaid <omair.javaid@linaro.org>
4766
4767 PR gdb/21695
4768 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4769 (dwarf_decode_lines_1): Adjust.
4770
bd583225
SM
47712018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4772
4773 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4774 override.
4775 <info_proc>: Likewise.
4776
9a325b7b
JB
47772018-06-26 Joel Brobecker <brobecker@adacore.com>
4778
4779 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4780 to windows_fetch_one_register, and only handle the case of
4781 fetching one register. Move the code that reloads the context
4782 and iterates over all registers if R is negative to...
4783 (windows_nat_target::fetch_registers): ... here.
4784 (do_windows_store_inferior_registers): Rename to
4785 windows_store_one_register, and only handle the case of storing
4786 one register. Move the code that handles the case where r is
4787 negative to...
4788 (windows_nat_target::store_registers) ... here.
4789
a33ccfc7
TT
47902018-06-26 Tom Tromey <tom@tromey.com>
4791
4792 PR rust/22574:
4793 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4794 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4795 Update.
4796 (rust_internal_print_type): Add podata parameter.
4797 (rust_print_type): Update.
4798
e0c547d1
TT
47992018-06-26 Tom Tromey <tom@tromey.com>
4800
4801 * typeprint.h (struct print_offset_data) <update, finish,
4802 maybe_print_hole>: New methods.
4803 <indentation>: New constant.
4804 * typeprint.c (print_offset_data::indentation): Define.
4805 (print_offset_data::maybe_print_hole, print_offset_data::update)
4806 (print_offset_data::finish): Move from c-typeprint.c and rename.
4807 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4808 (print_spaces_filtered_with_print_options): Update.
4809 (c_print_type_union_field_offset, maybe_print_hole)
4810 (c_print_type_struct_field_offset): Move to typeprint.c and
4811 rename.
4812 (c_type_print_base_struct_union): Update.
4813
75cbc781
PA
48142018-06-25 Pedro Alves <palves@redhat.com>
4815
4816 * gdbthread.h (thread_info_ref, delete_thread)
4817 (delete_thread_silent, first_thread_of_inferior)
4818 (any_thread_of_inferior, switch_to_thread)
4819 (enable_thread_stack_temporaries)
4820 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4821 (get_last_thread_stack_temporary)
4822 (value_in_thread_stack_temporaries, can_access_registers_thread):
4823 Spell out "struct thread_info" instead of just "thread_info".
4824 * inferior.h (notice_new_inferior): Likewise.
4825
b7a08269
PA
48262018-06-25 Pedro Alves <palves@redhat.com>
4827
4828 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4829 pass thread_info pointer to delete_thread.
4830 (windows_nat_target::detach): Pass inferior pointer to
4831 detach_inferior.
4832 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4833 delete_thread.
4834 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4835 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4836 and pass a thread_info pointer to delete_thread.
4837 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4838 pass thread_info pointer to delete_thread.
4839 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4840 delete_thread_silent call.
4841 * procfs.c (procfs_target::detach): Pass inferior pointer to
4842 detach_inferior.
4843 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4844 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4845 delete_thread_silent call.
4846 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4847 pass thread_info pointer to delete_thread.
4848 (windows_nat_target::detach): Pass inferior pointer to
4849 delete_inferior.
4850
8e7767e3
AH
48512018-06-22 Alan Hayward <alan.hayward@arm.com>
4852
4853 * regcache.c (readable_regcache::read_part): Fix asserts.
4854 (reg_buffer::raw_collect_part): New function.
4855 (regcache::write_part): Fix asserts.
4856 (reg_buffer::raw_supply_part): New function.
4857 (regcache::transfer_regset_register): New helper function.
4858 (regcache::transfer_regset): Call new functions.
4859 (regcache_supply_regset): Use gdb_byte*.
4860 (regcache::supply_regset): Likewise.
4861 (regcache_collect_regset): Likewise.
4862 (regcache::collect_regset): Likewise.
4863 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4864 (reg_buffer::raw_supply_part): Likewise.
4865 (regcache::transfer_regset_register): Likewise.
4866 (regcache::transfer_regset): Use gdb_byte*.
4867
bfd60e34
AH
48682018-06-22 Alan Hayward <alan.hayward@arm.com>
4869
4870 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4871
00431a78
PA
48722018-06-21 Pedro Alves <palves@redhat.com>
4873
4874 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4875 instead of a ptid_t. All callers adjusted.
4876 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4877 adjusted.
4878 (print_ada_task_info, display_current_task_id, task_command_1):
4879 Adjust.
4880 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4881 inferior_thread.
4882 (breakpoint_kind): Adjust.
4883 (remove_breakpoints_pid): Rename to ...
4884 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4885 pointer. All callers adjusted.
4886 (bpstat_clear_actions): Use inferior_thread.
4887 (get_bpstat_thread): New.
4888 (bpstat_do_actions): Use it.
4889 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4890 to take a thread_info pointer. All callers adjusted.
4891 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4892 (breakpoint_re_set_thread): Use inferior_thread.
4893 * breakpoint.h (struct inferior): Forward declare.
4894 (bpstat_stop_status): Update.
4895 (remove_breakpoints_pid): Delete.
4896 (remove_breakpoints_inf): New.
4897 * bsd-uthread.c (bsd_uthread_target::wait)
4898 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4899 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4900 (maint_btrace_packet_history_cmd)
4901 (maint_btrace_clear_packet_history_cmd): Adjust.
4902 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4903 inferior_thread.
4904 * cli/cli-interp.c: Include "inferior.h".
4905 * common/refcounted-object.h (struct
4906 refcounted_object_ref_policy): New.
4907 * compile/compile-object-load.c: Include gdbthread.h.
4908 (store_regs): Use inferior_thread.
4909 * corelow.c (core_target::close): Use current_inferior.
4910 (core_target_open): Adjust to use first_thread_of_inferior and use
4911 the current inferior.
4912 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4913 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4914 <thread>: ... this new field. All references adjusted.
4915 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4916 Take a thread_info pointer instead of a ptid_t.
4917 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4918 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4919 thread_info pointer instead of a ptid_t.
4920 * elfread.c: Include "inferior.h".
4921 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4922 Use inferior_thread.
4923 * eval.c (evaluate_subexp): Likewise.
4924 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4925 inferior_thread.
4926 * gdb_proc_service.h (struct thread_info): Forward declare.
4927 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4928 <thread>: ... this new field. All references adjusted.
4929 * gdbarch.h, gdbarch.c: Regenerate.
4930 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4931 'thread' parameter. All implementations and callers adjusted.
4932 * gdbthread.h (thread_info) <set_running>: New method.
4933 (delete_thread, delete_thread_silent): Take a thread_info pointer
4934 instead of a ptid.
4935 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4936 (first_thread_of_process): Delete, replaced by ...
4937 (first_thread_of_inferior): ... this new function. All callers
4938 adjusted.
4939 (any_live_thread_of_process): Delete, replaced by ...
4940 (any_live_thread_of_inferior): ... this new function. All callers
4941 adjusted.
4942 (switch_to_thread, switch_to_no_thread): Declare.
4943 (is_executing): Delete.
4944 (enable_thread_stack_temporaries): Update comment.
4945 <enable_thread_stack_temporaries>: Take a thread_info pointer
4946 instead of a ptid_t. Incref the thread.
4947 <~enable_thread_stack_temporaries>: Decref the thread.
4948 <m_ptid>: Delete
4949 <m_thr>: New.
4950 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4951 (get_last_thread_stack_temporary)
4952 (value_in_thread_stack_temporaries, can_access_registers_thread):
4953 Take a thread_info pointer instead of a ptid_t. All callers
4954 adjusted.
4955 * infcall.c (get_call_return_value): Use inferior_thread.
4956 (run_inferior_call): Work with thread pointers instead of ptid_t.
4957 (call_function_by_hand_dummy): Work with thread pointers instead
4958 of ptid_t. Use thread_info_ref.
4959 * infcmd.c (proceed_thread_callback): Access thread's state
4960 directly.
4961 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4962 access thread's state directly.
4963 (continue_command): Use inferior_thread.
4964 (info_program_command): Use find_thread_ptid and access thread
4965 state directly.
4966 (proceed_after_attach_callback): Use thread state directly.
4967 (notice_new_inferior): Take a thread_info pointer instead of a
4968 ptid_t. All callers adjusted.
4969 (exit_inferior): Take an inferior pointer instead of a pid. All
4970 callers adjusted.
4971 (exit_inferior_silent): New.
4972 (detach_inferior): Delete.
4973 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4974 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4975 (detach_inferior_command, kill_inferior_command): Use
4976 find_inferior_id instead of valid_gdb_inferior_id and
4977 gdb_inferior_id_to_pid.
4978 (inferior_command): Use inferior and thread pointers.
4979 * inferior.h (struct thread_info): Forward declare.
4980 (notice_new_inferior): Take a thread_info pointer instead of a
4981 ptid_t. All callers adjusted.
4982 (detach_inferior): Delete declaration.
4983 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4984 instead of a pid. All callers adjusted.
4985 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4986 (valid_gdb_inferior_id): Delete.
4987 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4988 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4989 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4990 ...
4991 <inf>: ... this new field.
4992 <step_ptid>: Delete, replaced by ...
4993 <step_thread>: ... this new field.
4994 (get_displaced_stepping_state): Take an inferior pointer instead
4995 of a pid. All callers adjusted.
4996 (displaced_step_in_progress_any_inferior): Adjust.
4997 (displaced_step_in_progress_thread): Take a thread pointer instead
4998 of a ptid_t. All callers adjusted.
4999 (displaced_step_in_progress, add_displaced_stepping_state): Take
5000 an inferior pointer instead of a pid. All callers adjusted.
5001 (get_displaced_step_closure_by_addr): Adjust.
5002 (remove_displaced_stepping_state): Take an inferior pointer
5003 instead of a pid. All callers adjusted.
5004 (displaced_step_prepare_throw, displaced_step_prepare)
5005 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5006 All callers adjusted.
5007 (start_step_over): Adjust.
5008 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5009 displaced step queue.
5010 (do_target_resume): Adjust.
5011 (fetch_inferior_event): Use inferior_thread.
5012 (context_switch, get_inferior_stop_soon): Take an
5013 execution_control_state pointer instead of a ptid_t. All callers
5014 adjusted.
5015 (switch_to_thread_cleanup): Delete.
5016 (stop_all_threads): Use scoped_restore_current_thread.
5017 * inline-frame.c: Include "gdbthread.h".
5018 (inline_state) <inline_state>: Take a thread pointer instead of a
5019 ptid_t. All callers adjusted.
5020 <ptid>: Delete, replaced by ...
5021 <thread>: ... this new field.
5022 (find_inline_frame_state): Take a thread pointer instead of a
5023 ptid_t. All callers adjusted.
5024 (skip_inline_frames, step_into_inline_frame)
5025 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5026 pointer instead of a ptid_t. All callers adjusted.
5027 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5028 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5029 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5030 pointers directly.
5031 * linux-nat.c (get_detach_signal): Likewise.
5032 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5033 (thread_db_notice_clone): Adjust.
5034 (thread_db_find_new_threads_silently)
5035 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5036 a thread pointer instead of a ptid_t. All callers adjusted.
5037 * mi/mi-cmd-var.c: Include "inferior.h".
5038 (mi_cmd_var_update_iter): Update to use thread pointers.
5039 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5040 inferior directly.
5041 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5042 out to ...
5043 (mi_output_running): ... this new function.
5044 (mi_on_resume_1): Adjust to use it.
5045 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5046 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5047 directly.
5048 (interrupt_thread_callback): : Adjust to use thread and inferior
5049 pointers.
5050 * proc-service.c: Include "gdbthread.h".
5051 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5052 * progspace-and-thread.c: Include "inferior.h".
5053 * progspace.c: Include "inferior.h".
5054 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5055 hold a reference to an inferior_object.
5056 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5057 inferior_thread.
5058 * python/py-inferior.c (struct inferior_object): Give the type a
5059 tag name instead of a typedef.
5060 (python_on_normal_stop): No need to check if the current thread is
5061 listed.
5062 (inferior_to_inferior_object): Change return type to
5063 inferior_object. All callers adjusted.
5064 (find_thread_object): Delete, bits factored out to ...
5065 (thread_to_thread_object): ... this new function.
5066 * python/py-infthread.c (create_thread_object): Use
5067 inferior_to_inferior_object.
5068 (thpy_is_stopped): Use thread pointer directly.
5069 (gdbpy_selected_thread): Use inferior_thread.
5070 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5071 field, replaced with ...
5072 <thread>: ... this new field. All users adjusted.
5073 (btpy_insn_or_gap_new): Drop const.
5074 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5075 callers adjusted.
5076 * python/py-record.c: Include "gdbthread.h".
5077 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5078 a ptid_t. All callers adjusted.
5079 (gdbpy_current_recording): Use inferior_thread.
5080 * python/py-record.h (recpy_record_object) <ptid>: Delete
5081 field, replaced with ...
5082 <thread>: ... this new field. All users adjusted.
5083 (recpy_element_object) <ptid>: Delete
5084 field, replaced with ...
5085 <thread>: ... this new field. All users adjusted.
5086 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5087 a ptid_t. All callers adjusted.
5088 * python/py-threadevent.c: Include "gdbthread.h".
5089 (get_event_thread): Use thread_to_thread_object.
5090 * python/python-internal.h (struct inferior_object): Forward
5091 declare.
5092 (find_thread_object, find_inferior_object): Delete declarations.
5093 (thread_to_thread_object, inferior_to_inferior_object): New
5094 declarations.
5095 * record-btrace.c: Include "inferior.h".
5096 (require_btrace_thread): Use inferior_thread.
5097 (record_btrace_frame_sniffer)
5098 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5099 (get_thread_current_frame): Use scoped_restore_current_thread and
5100 switch_to_thread.
5101 (get_thread_current_frame): Use thread pointer directly.
5102 (record_btrace_replay_at_breakpoint): Use thread's inferior
5103 pointer directly.
5104 * record-full.c: Include "inferior.h".
5105 * regcache.c: Include "gdbthread.h".
5106 (get_thread_arch_regcache): Use the inferior's address space
5107 directly.
5108 (get_thread_regcache, registers_changed_thread): New.
5109 * regcache.h (get_thread_regcache(thread_info *thread)): New
5110 overload.
5111 (registers_changed_thread): New.
5112 (remote_target) <remote_detach_1>: Swap order of parameters.
5113 (remote_add_thread): <remote_add_thread>: Return the new thread.
5114 (get_remote_thread_info(ptid_t)): New overload.
5115 (remote_target::remote_notice_new_inferior): Use thread pointers
5116 directly.
5117 (remote_target::process_initial_stop_replies): Use
5118 thread_info::set_running.
5119 (remote_target::remote_detach_1, remote_target::detach)
5120 (extended_remote_target::detach): Adjust.
5121 * stack.c (frame_show_address): Use inferior_thread.
5122 * target-debug.h (target_debug_print_thread_info_pp): New.
5123 * target-delegates.c: Regenerate.
5124 * target.c (default_thread_address_space): Delete.
5125 (memory_xfer_partial_1): Use current_inferior.
5126 (target_detach): Use current_inferior.
5127 (target_thread_address_space): Delete.
5128 (generic_mourn_inferior): Use current_inferior.
5129 * target.h (struct target_ops) <thread_address_space>: Delete.
5130 (target_thread_address_space): Delete.
5131 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5132 pointers directly.
5133 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5134 thread pointer instead of a ptid_t. Adjust all callers.
5135 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5136 (first_thread_of_process): Delete, replaced by ...
5137 (first_thread_of_inferior): ... this new function. All callers
5138 adjusted.
5139 (any_thread_of_process): Rename to ...
5140 (any_thread_of_inferior): ... this, and take an inferior pointer.
5141 (any_live_thread_of_process): Rename to ...
5142 (any_live_thread_of_inferior): ... this, and take an inferior
5143 pointer.
5144 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5145 (value_in_thread_stack_temporaries)
5146 (get_last_thread_stack_temporary): Take a thread pointer instead
5147 of a ptid_t. Adjust all callers.
5148 (thread_info::set_running): New.
5149 (validate_registers_access): Use inferior_thread.
5150 (can_access_registers_ptid): Rename to ...
5151 (can_access_registers_thread): ... this, and take a thread
5152 pointer.
5153 (print_thread_info_1): Adjust to compare thread pointers instead
5154 of ptids.
5155 (switch_to_no_thread, switch_to_thread): Make extern.
5156 (scoped_restore_current_thread::~scoped_restore_current_thread):
5157 Use m_thread pointer directly.
5158 (scoped_restore_current_thread::scoped_restore_current_thread):
5159 Use inferior_thread.
5160 (thread_command): Use thread pointer directly.
5161 (thread_num_make_value_helper): Use inferior_thread.
5162 * top.c (execute_command): Use inferior_thread.
5163 * tui/tui-interp.c: Include "inferior.h".
5164 * varobj.c (varobj_create): Use inferior_thread.
5165 (value_of_root_1): Use find_thread_global_id instead of
5166 global_thread_id_to_ptid.
5167
33bab475
AH
51682018-06-21 Alan Hayward <alan.hayward@arm.com>
5169
5170 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5171 possible.
5172 (regcache::write_part): Likewise.
5173 (readable_regcache::cooked_read_part): Update comment.
5174 (readable_regcache::cooked_write_part): Likewise.
5175 * regcache.h: (readable_regcache::read_part): Likewise.
5176 (regcache::write_part): Likewise.
5177
8363f9d5
RB
51782018-06-21 Richard Bunt <richard.bunt@arm.com>
5179 Dirk Schubert <dirk.schubert@arm.com>
5180
5181 * aarch64-linux-nat.c (post_attach): New.
5182 (aarch64_linux_nat_target::post_attach): Override post_attach to
5183 record the number of hardware debug registers.
5184
0d0b0ea2
TT
51852018-06-20 Tom Tromey <tom@tromey.com>
5186
5187 * python/py-param.c (add_setshow_generic): Make parameters const.
5188 (parmpy_init): Update.
5189
302abd6e
SM
51902018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5191
5192 * regcache.h (regcache_cooked_read_ftype): Rename to...
5193 (register_read_ftype): ...this, change type to function_view.
5194 (class reg_buffer) <save>: Remove src parameter.
5195 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5196 parameter non-const in first overload. Remove src parameter in
5197 second overload.
5198 * regcache.c (do_cooked_read): Remove.
5199 (readonly_detached_regcache::readonly_detached_regcache): Make
5200 parameter non-const, adjust call to other constructor.
5201 (reg_buffer::save): Remove src parameter.
5202 * frame.c (do_frame_register_read): Remove.
5203 (frame_save_as_regcache): Use lambda function.
5204 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5205 parameter to ppu2spu_data *.
5206 (ppu2spu_sniffer): Use lambda function.
5207
19f3f25f
SM
52082018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5209
5210 * record-full.c (record_full_target::insert_breakpoint): Remove
5211 "struct" keyword, add const.
5212
d0ac1c44
SM
52132018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5214
5215 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5216 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5217 * configure.ac: Remove AC_PREREQ, add missing quoting.
5218 * gnulib/configure.ac: Modernize usage of
5219 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5220 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5221 (AUTOMAKE_VERSION): Bump to 1.15.1.
5222 * configure: Re-generate.
5223 * config.in: Re-generate.
5224 * aclocal.m4: Re-generate.
5225 * gnulib/aclocal.m4: Re-generate.
5226 * gnulib/config.in: Re-generate.
5227 * gnulib/configure: Re-generate.
5228 * gnulib/import/Makefile.in: Re-generate.
5229
6ae50267
PA
52302018-06-19 Pedro Alves <palves@redhat.com>
5231
5232 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5233 (lookup_minimal_symbol_by_pc_section): ... here with
5234 gdb_assert_not_reached added.
5235
61b04dd0
PA
52362018-06-19 Pedro Alves <palves@redhat.com>
5237
5238 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5239 parameter with a block parameter. Compare location's block symbol
5240 with the frame's block instead of addresses.
5241 (skip_inline_frames): Pass the current block instead of the
5242 frame's address. Break out as soon as we determine the frame
5243 should not be skipped.
5244
f709fabb
TT
52452018-06-18 Tom Tromey <tom@tromey.com>
5246
5247 * solib-aix.c (solib_aix_get_section_offsets): Return
5248 unique_xmalloc_ptr.
5249 (solib_aix_solib_create_inferior_hook): Update.
5250
668eb2f0
TT
52512018-06-18 Tom Tromey <tom@tromey.com>
5252
5253 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5254
309822ca
TT
52552018-06-18 Tom Tromey <tom@tromey.com>
5256
5257 * solib-frv.c (frv_relocate_main_executable): Use
5258 unique_xmalloc_ptr.
5259 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5260 unique_xmalloc_ptr.
5261
06424eac
TT
52622018-06-18 Tom Tromey <tom@tromey.com>
5263
5264 * objfiles.h (inhibit_section_map_updates): Update.
5265 (resume_section_map_updates, resume_section_map_updates_cleanup):
5266 Remove.
5267 * solib-svr4.c (svr4_handle_solib_event): Update.
5268 * objfiles.c (inhibit_section_map_updates): Return
5269 scoped_restore_tmpl<int>.
5270 (resume_section_map_updates, resume_section_map_updates_cleanup):
5271 Remove.
5272
b4be9fad
TT
52732018-06-18 Tom Tromey <tom@tromey.com>
5274
5275 * valprint.h (read_string): Update.
5276 * valprint.c (read_string): Change type of "buffer".
5277 (val_print_string): Update.
5278 * python/py-value.c (valpy_string): Update.
5279 * language.h (struct language_defn) <la_get_string>: Change
5280 type of "buffer".
5281 (default_get_string, c_get_string): Update.
5282 * language.c (default_get_string): Change type of "buffer".
5283 * guile/scm-value.c (gdbscm_value_to_string): Update.
5284 * c-lang.c (c_get_string): Change type of "buffer".
5285
3f0dbd67
TT
52862018-06-18 Tom Tromey <tom@tromey.com>
5287
5288 * ser-mingw.c (struct pipe_state_destroyer): New.
5289 (pipe_state_up): New typedef.
5290 (cleanup_pipe_state): Remove.
5291 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5292
69d340c6
TT
52932018-06-18 Tom Tromey <tom@tromey.com>
5294
5295 * rust-lang.h (rust_yyerror): Don't declare.
5296 * rust-lang.c (rust_language_defn): Update.
5297 * rust-exp.y (yyerror): Now static.
5298 * parse.c (parse_exp_in_context_1): Update.
5299 * p-lang.h (p_yyerror): Don't declare.
5300 * p-lang.c (p_language_defn): Update.
5301 * p-exp.y (yyerror): Now static.
5302 * opencl-lang.c (opencl_language_defn): Update.
5303 * objc-lang.c (objc_language_defn): Update.
5304 * m2-lang.h (m2_yyerror): Don't declare.
5305 * m2-lang.c (m2_language_defn): Update.
5306 * m2-exp.y (yyerror): Now static.
5307 * language.h (struct language_defn) <la_error>: Remove.
5308 * language.c (unk_lang_error): Remove.
5309 (unknown_language_defn, auto_language_defn): Remove.
5310 * go-lang.h (go_yyerror): Don't declare.
5311 * go-lang.c (go_language_defn): Update.
5312 * go-exp.y (yyerror): Now static.
5313 * f-lang.h (f_yyerror): Don't declare.
5314 * f-lang.c (f_language_defn): Update.
5315 * f-exp.y (yyerror): Now static.
5316 * d-lang.h (d_yyerror): Don't declare.
5317 * d-lang.c (d_language_defn): Update.
5318 * d-exp.y (yyerror): Now static.
5319 * c-lang.h (c_yyerror): Don't declare.
5320 * c-lang.c (c_language_defn, cplus_language_defn)
5321 (asm_language_defn, minimal_language_defn): Update.
5322 * c-exp.y (yyerror): Now static.
5323 * ada-lang.h (ada_yyerror): Don't declare.
5324 * ada-lang.c (ada_language_defn): Update.
5325 * ada-exp.y (yyerror): Now static.
5326
e9902bfc
AH
53272018-06-18 Alan Hayward <alan.hayward@arm.com>
5328
5329 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5330 (store_sveregs_to_thread): Likewise.
5331 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5332 (aarch64_linux_store_inferior_registers): Likewise.
5333 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5334 function.
5335 (aarch64_sve_regs_copy_to_regcache): Likewise.
5336 (aarch64_sve_regs_copy_from_regcache): Likewise.
5337 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5338 declaration.
5339 (aarch64_sve_regs_copy_to_regcache): Likewise.
5340 (aarch64_sve_regs_copy_from_regcache): Likewise.
5341 (sve_context): Structure from Linux headers.
5342 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5343 (SVE_SIG_ZREG_SIZE): Likewise.
5344 (SVE_SIG_PREG_SIZE): Likewise.
5345 (SVE_SIG_FFR_SIZE): Likewise.
5346 (SVE_SIG_REGS_OFFSET): Likewise.
5347 (SVE_SIG_ZREGS_OFFSET): Likewise.
5348 (SVE_SIG_ZREG_OFFSET): Likewise.
5349 (SVE_SIG_ZREGS_SIZE): Likewise.
5350 (SVE_SIG_PREGS_OFFSET): Likewise.
5351 (SVE_SIG_PREG_OFFSET): Likewise.
5352 (SVE_SIG_PREGS_SIZE): Likewise.
5353 (SVE_SIG_FFR_OFFSET): Likewise.
5354 (SVE_SIG_REGS_SIZE): Likewise.
5355 (SVE_SIG_CONTEXT_SIZE): Likewise.
5356 (SVE_PT_REGS_MASK): Likewise.
5357 (SVE_PT_REGS_FPSIMD): Likewise.
5358 (SVE_PT_REGS_SVE): Likewise.
5359 (SVE_PT_VL_INHERIT): Likewise.
5360 (SVE_PT_VL_ONEXEC): Likewise.
5361 (SVE_PT_REGS_OFFSET): Likewise.
5362 (SVE_PT_FPSIMD_OFFSET): Likewise.
5363 (SVE_PT_FPSIMD_SIZE): Likewise.
5364 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5365 (SVE_PT_SVE_PREG_SIZE): Likewise.
5366 (SVE_PT_SVE_FFR_SIZE): Likewise.
5367 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5368 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5369 (__SVE_SIG_TO_PT): Likewise.
5370 (SVE_PT_SVE_OFFSET): Likewise.
5371 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5372 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5373 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5374 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5375 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5376 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5377 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5378 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5379 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5380 (SVE_PT_SVE_SIZE): Likewise.
5381 (SVE_PT_SIZE): Likewise.
5382 (HAS_SVE_STATE): New define.
5383
17a1cc89
AH
53842018-06-18 Alan Hayward <alan.hayward@arm.com>
5385
5386 * nat/aarch64-sve-linux-sigcontext.h: New file.
5387 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5388 new files.
5389 (SVE_VQ_MIN): Likewise.
5390 (SVE_VQ_MAX): Likewise.
5391 (SVE_VL_MIN): Likewise.
5392 (SVE_VL_MAX): Likewise.
5393 (SVE_NUM_ZREGS): Likewise.
5394 (SVE_NUM_PREGS): Likewise.
5395 (sve_vl_valid): Likewise.
5396 (struct user_sve_header): Likewise.
5397
7010835a
AB
53982018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5399 Richard Bunt <Richard.Bunt@arm.com>
5400
5401 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5402 was requested by GDB.
5403
479b3ef4
TV
54042018-06-15 Tom de Vries <tdevries@suse.de>
5405
5406 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5407
8199b8f4
SM
54082018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5409
5410 * gnulib/update-gnulib.sh: Print expected versions of
5411 autoconf/aclocal.
5412
55c748a1
SM
54132018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5414
5415 * arch-utils.c (default_type_align): Use type_length_units.
5416 * gdbtypes.c (type_align): Use type_length_units.
5417
87a8eca7
PW
54182018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5419
5420 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5421 of 'define' command.
5422
5d9a0608
TV
54232018-06-14 Tom de Vries <tdevries@suse.de>
5424
5425 PR cli/22573
5426 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5427 get_no_prettyformat_print_options.
5428
ab89b5a5
SM
54292018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5430
5431 * sparc-nat.h: Include target.h.
5432 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5433 <fetch_registers>: Remove this argument in function call.
5434 <store_registers>: Remove this argument in function call, remove
5435 extra semicolon.
5436 <low_forget_process>: Call sparc64_forget_process instead of
5437 sparc_forget_process.
5438
62c808ae
RO
54392018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5440
5441 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5442 (procfs_target::make_corefile_notes): Adjust to new
5443 target_read_alloc return type.
5444
1840d81a
AB
54452018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5446 Stephen Roberts <stephen.roberts@arm.com>
5447
5448 PR gdb/22882
5449 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5450 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5451 Move should_notify_stop local into more inner scope.
5452
9516f85a
AB
54532018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5454 Stephen Roberts <stephen.roberts@arm.com>
5455
5456 PR gdb/22882
5457 * infrun.c (resume_1): Add call to mark_async_event_handler.
5458
defd2172
AB
54592018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5460
5461 * infrun.c (do_target_wait): Change old version of $pc printed.
5462
7b23e087
SM
54632018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5464
5465 * dwarf2read.c (read_index_from_section): Rename to...
5466 (read_gdb_index_from_section): ... this, update all callers.
5467 (dwarf2_read_index): Rename to...
5468 (dwarf2_read_gdb_index): ... this, update all callers.
5469
69c67a0b
JDA
54702018-06-11 John David Anglin <danglin@gcc.gnu.org>
5471
5472 * gdb/hppa-linux-nat.c
5473 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5474 hppa_linux_nat_target::fetch_registers.
5475
65d4cada
AH
54762018-06-11 Alan Hayward <alan.hayward@arm.com>
5477
5478 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5479 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5480 (AARCH64_DWARF_SVE_FFR): Likewise.
5481 (AARCH64_DWARF_SVE_P0): Likewise.
5482 (AARCH64_DWARF_SVE_Z0): Likewise.
5483
f868386e
AH
54842018-06-11 Alan Hayward <alan.hayward@arm.com>
5485
5486 * common/common-regcache.h (raw_compare): New function.
5487 * regcache.c (regcache::raw_compare): Likewise.
5488 * regcache.h (regcache::raw_compare): New declaration.
5489
9c861883
AH
54902018-06-11 Alan Hayward <alan.hayward@arm.com>
5491
5492 * common/common-regcache.h (reg_buffer_common): New structure.
5493 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5494 (reg_buffer::raw_supply): Likewise.
5495 (reg_buffer::raw_supply_integer): Likewise.
5496 (reg_buffer::raw_supply_zeroed): Likewise.
5497 (reg_buffer::raw_collect): Likewise.
5498 (reg_buffer::raw_collect_integer): Likewise.
5499 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5500 (reg_buffer::raw_supply): Likewise.
5501 (reg_buffer::raw_supply_integer): Likewise.
5502 (reg_buffer::raw_supply_zeroed): Likewise.
5503 (reg_buffer::raw_collect): Likewise.
5504 (reg_buffer::raw_collect_integer): Likewise.
5505
953edf2b
TT
55062018-06-10 Tom Tromey <tom@tromey.com>
5507
5508 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5509 (class remote_state) <stop_reply_queue>: Now std::vector.
5510 (remote_state::~remote_state)
5511 (remote_target::stop_reply_queue_length): Update.
5512 (struct queue_iter_param, remove_child_of_pending_fork)
5513 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5514 (check_pending_event_prevents_wildcard_vcont_callback)
5515 (remove_stop_reply_for_inferior)
5516 (remove_stop_reply_of_remote_state)
5517 (remote_notif_remove_once_on_match)
5518 (stop_reply_match_ptid_and_ws)
5519 (remote_kill_child_of_pending_fork): Remove.
5520 (remote_target::remove_new_fork_children)
5521 (remote_target::check_pending_events_prevent_wildcard_vcont)
5522 (remote_target::discard_pending_stop_replies)
5523 (remote_target::discard_pending_stop_replies_in_queue)
5524 (remote_target::remote_notif_remove_queued_reply)
5525 (remote_target::queued_stop_reply)
5526 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5527 (remote_target::wait, remote_target::kill_new_fork_children)
5528 (remote_target::async): Update.
5529
1ddbba9d
TT
55302018-06-10 Tom Tromey <tom@tromey.com>
5531
5532 * record-full.c (record_full_arch_list_cleanups): Remove.
5533 (record_full_message): Use try/catch.
5534 (record_full_wait_cleanups): Remove.
5535 (record_full_wait_1): Use try/catch.
5536 (record_full_restore): Likewise.
5537
219605fd
TT
55382018-06-10 Tom Tromey <tom@tromey.com>
5539
5540 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5541 declare VEC. Add constructor.
5542 <in_target_beneath>: Now bool.
5543 (record_full_breakpoints): Now a std::vector, static.
5544 (record_full_sync_record_breakpoints)
5545 (record_full_init_record_breakpoints)
5546 (record_full_target::insert_breakpoint)
5547 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5548
71b73764
SM
55492018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5550
5551 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5552 * serial.c (serial_interface_lookup): Remove struct keyword.
5553
4360561f
TT
55542018-06-10 Tom Tromey <tom@tromey.com>
5555
5556 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5557 method.
5558 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5559 a method.
5560 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5561 method.
5562 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5563 "beneath" as a method.
5564 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5565 Use "beneath" as a method.
5566
d14b92bf
TT
55672018-06-10 Tom Tromey <tom@tromey.com>
5568
5569 * tracefile.c (struct trace_file_writer_deleter): New.
5570 <operator()>: Rename from trace_file_writer_xfree.
5571 (trace_file_writer_up): New typedef.
5572 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5573
835dcf92
SM
55742018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5575
5576 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5577 <m_registers, m_register_status>: Change type to
5578 std::unique_ptr.
5579 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5580 XCNEWVEC.
5581
aac0d564
SM
55822018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5583
5584 * common/common-regcache.h (enum register_status): Add
5585 underlying type "signed char".
5586 * regcache.h (reg_buffer) <m_register_status>: Change type to
5587 register_status *.
5588 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5589 register_status instead of signed char.
5590 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5591 (reg_buffer::get_register_status): Remove cast.
5592 (readable_regcache::raw_read): Remove cast.
5593 (readable_regcache::cooked_read): Remove cast.
5594
77ad7394
TT
55952018-06-09 Tom Tromey <tom@tromey.com>
5596
5597 * source.c (reverse_search_command, forward_search_command): Use
5598 scoped_fd.
5599
191cca63
TT
56002018-06-09 Tom Tromey <tom@tromey.com>
5601
5602 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5603 (serial_ops_list): Now static, std::vector.
5604 (serial_interface_lookup, serial_add_interface): Update.
5605
c5d0225d
TT
56062018-06-09 Tom Tromey <tom@tromey.com>
5607
5608 * dwarf2read.c (process_cu_includes): Update.
5609 (process_full_comp_unit): Update.
5610 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5611 std::vector.
5612
aeab5128
PK
56132018-06-08 Paul Koning <paul_koning@dell.com>
5614
5615 PR gdb/23252
5616
5617 * python/python.c (do_start_initialization):
5618 Avoid call to internal Python API.
5619 (init__gdb_module): New function.
5620
5045b3d7
GB
56212018-06-08 Gary Benson <gbenson@redhat.com>
5622
5623 * linux-thread-db.c (valprint.h): New include.
5624 (struct check_thread_db_info): New structure.
5625 (check_thread_db_on_load, tdb_testinfo): New static globals.
5626 (check_thread_db, check_thread_db_callback): New functions.
5627 (try_thread_db_load_1): Run integrity checks if requested.
5628 (maintenance_check_libthread_db): New function.
5629 (_initialize_thread_db): Register "maint check libthread-db"
5630 and "maint set/show check-libthread-db".
5631 * NEWS: Mention the above new commands.
5632
2f4f025f
TT
56332018-06-08 Tom Tromey <tom@tromey.com>
5634
5635 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5636 now a method.
5637
343b0027
TT
56382018-06-08 Tom Tromey <tom@tromey.com>
5639
5640 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5641
8dcc53b3
TT
56422018-06-08 Tom Tromey <tom@tromey.com>
5643
5644 * common/btrace-common.h (struct btrace_data): Add constructor,
5645 destructor, move assignment operator.
5646 <empty, clear, fini>: New methods.
5647 <format>: Initialize.
5648 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5649 (btrace_data_empty): Don't declare.
5650 * common/btrace-common.c (btrace_data_init): Remove.
5651 (btrace_data::fini): Rename from btrace_data_fini.
5652 (btrace_data::empty): Rename from btrace_data_empty.
5653 (btrace_data::clear): Rename from btrace_data_clear. Return
5654 bool.
5655 * btrace.h (make_cleanup_btrace_data): Don't declare.
5656 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5657 (parse_xml_btrace): Update.
5658 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5659 (maint_btrace_clear_packet_history_cmd): Update.
5660
a1740ee1
PA
56612018-06-07 Pedro Alves <palves@redhat.com>
5662
5663 * target.h (target_ops) <beneath>: Now a method. All references
5664 updated.
5665 (class target_stack): New.
5666 * target.c (g_target_stack): New.
5667 (g_current_top_target): Delete.
5668 (current_top_target): Get the top target out of g_target_stack.
5669 (target_stack::push, target_stack::unpush): New.
5670 (push_target, unpush_target): Reimplement.
5671 (target_is_pushed): Reimplement in terms of g_target_stack.
5672 (target_ops::beneath, target_stack::find_beneath): New.
5673
d6ca69cd
PA
56742018-06-07 Pedro Alves <palves@redhat.com>
5675
5676 * target.h (find_target_beneath): Delete declaration.
5677 * target.c (find_target_beneath): Delete definition.
5678 * aix-thread.c: All callers of find_target_beneath adjusted to
5679 call target_ops::beneath instead.
5680 * bsd-uthread.c: Likewise.
5681 * linux-thread-db.c: Likewise.
5682 * ravenscar-thread.c: Likewise.
5683 * sol-thread.c: Likewise.
5684 * spu-multiarch.c: Likewise.
5685
b6a8c27b
PA
56862018-06-07 Pedro Alves <palves@redhat.com>
5687
5688 * target.h (target_ops) <beneath>: Now a method. All references
5689 updated.
5690 (target_ops) <m_beneath>: New.
5691 * target.c (target_ops::beneath): New.
5692 * corelow.c: Adjust all references to target_ops::beneath.
5693 * linux-thread-db.c: Likewise.
5694 * make-target-delegates: Likewise.
5695 * record-btrace.c: Likewise.
5696 * record-full.c: Likewise.
5697 * remote.c: Likewise.
5698 * target.c: Likewise.
5699 * target-delegates.c: Regenerate.
5700
8b88a78e
PA
57012018-06-07 Pedro Alves <palves@redhat.com>
5702
5703 * target.h (target_stack): Delete.
5704 (current_top_target): Declare function.
5705 * target.c (target_stack): Delete.
5706 (g_current_top_target): New.
5707 (current_top_target): New function.
5708 * auxv.c: Use current_top_target instead of target_stack
5709 throughout.
5710 * avr-tdep.c: Likewise.
5711 * breakpoint.c: Likewise.
5712 * corefile.c: Likewise.
5713 * elfread.c: Likewise.
5714 * eval.c: Likewise.
5715 * exceptions.c: Likewise.
5716 * frame.c: Likewise.
5717 * gdbarch-selftests.c: Likewise.
5718 * gnu-v3-abi.c: Likewise.
5719 * ia64-tdep.c: Likewise.
5720 * ia64-vms-tdep.c: Likewise.
5721 * infcall.c: Likewise.
5722 * infcmd.c: Likewise.
5723 * infrun.c: Likewise.
5724 * linespec.c: Likewise.
5725 * linux-tdep.c: Likewise.
5726 * minsyms.c: Likewise.
5727 * ppc-linux-nat.c: Likewise.
5728 * ppc-linux-tdep.c: Likewise.
5729 * procfs.c: Likewise.
5730 * regcache.c: Likewise.
5731 * remote.c: Likewise.
5732 * rs6000-tdep.c: Likewise.
5733 * s390-linux-nat.c: Likewise.
5734 * s390-tdep.c: Likewise.
5735 * solib-aix.c: Likewise.
5736 * solib-darwin.c: Likewise.
5737 * solib-dsbt.c: Likewise.
5738 * solib-spu.c: Likewise.
5739 * solib-svr4.c: Likewise.
5740 * solib-target.c: Likewise.
5741 * sparc-tdep.c: Likewise.
5742 * sparc64-tdep.c: Likewise.
5743 * spu-tdep.c: Likewise.
5744 * symfile.c: Likewise.
5745 * symtab.c: Likewise.
5746 * target-descriptions.c: Likewise.
5747 * target-memory.c: Likewise.
5748 * target.c: Likewise.
5749 * target.h: Likewise.
5750 * tracefile-tfile.c: Likewise.
5751 * tracepoint.c: Likewise.
5752 * valops.c: Likewise.
5753 * valprint.c: Likewise.
5754 * value.c: Likewise.
5755 * windows-tdep.c: Likewise.
5756 * mi/mi-main.c: Likewise.
5757
c7110220
TT
57582018-06-07 Tom Tromey <tom@tromey.com>
5759
5760 * valprint.h (build_address_symbolic): Declare.
5761 * printcmd.c (print_address_symbolic): Update.
5762 (build_address_symbolic): Change "name" and "filename" to
5763 std::string.
5764 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5765 Update.
5766 * defs.h (build_address_symbolic): Remove declaration.
5767
63bad7b6
AH
57682018-06-07 Alan Hayward <alan.hayward@arm.com>
5769
5770 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5771 (aarch64_vnv_type): Add function.
5772 (aarch64_pseudo_register_name): Add V regs for SVE.
5773 (aarch64_pseudo_register_type): Likewise.
5774 (aarch64_pseudo_register_reggroup_p): Likewise.
5775 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5776 (aarch64_pseudo_read_value): Add V regs for SVE.
5777 (aarch64_pseudo_write_2): Use V0 offset for SVE
5778 (aarch64_pseudo_write): Add V regs for SVE.
5779 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5780
13e3c608
SDJ
57812018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5782
5783 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5784 (sve_vl_from_vq): Likewise.
5785
c61b06a1
TT
57862018-06-05 Tom Tromey <tom@tromey.com>
5787
5788 * cli/cli-cmds.c (show_version): Update.
5789 * top.c (print_gdb_version): Add "interactive" parameter.
5790 Update.
5791 * main.c (captured_main_1): Update.
5792 * top.h (print_gdb_version): Add "interactive" parameter and a
5793 comment.
5794
115f7325
DM
57952018-06-05 David Malcolm <dmalcolm@redhat.com>
5796
5797 * common/enum-flags.h: Add trailing semicolon to example in
5798 comment.
5799
eb6af809
TT
58002018-06-05 Tom Tromey <tom@tromey.com>
5801
5802 PR cli/12326:
5803 * NEWS: Add entry about pager.
5804 * utils.c (pagination_disabled_for_command): New global.
5805 (prompt_for_continue): Allow "c" response to prompt.
5806 (reinitialize_more_filter): Clear
5807 pagination_disabled_for_command.
5808 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5809
54d343a2
TT
58102018-06-04 Tom Tromey <tom@tromey.com>
5811
5812 * ada-lang.h (ada_lookup_symbol_list): Update.
5813 * ada-lang.c (resolve_subexp): Update.
5814 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5815 parameter.
5816 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5817 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5818 results parameter to std::vector.
5819 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5820 Update.
5821 * ada-exp.y (block_lookup): Update.
5822 (select_possible_type_sym): Change type of syms. Remove nsyms
5823 parameter.
5824 (write_var_or_type, write_name_assoc): Update.
5825
178d6a63
JB
58262018-06-04 Joel Brobecker <brobecker@adacore.com>
5827
5828 * windows-nat.c (windows_nat_target::xfer_partial): Return
5829 TARGET_XFER_E_IO if we need to delegate to the target beneath
5830 but BENEATH is NULL.
5831
baf00c2d
SM
58322018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5833
5834 * Makefile.in (config.status): Add configure.nat as a
5835 dependency.
5836
214b073c
TT
58372018-06-04 Tom Tromey <tom@tromey.com>
5838
5839 * cp-name-parser.y (cpname_state): Add method declarations.
5840 (HANDLE_QUAL): Update.
5841 (cpname_state::d_grab, cpname_state::fill_comp)
5842 (cpname_state::make_operator, cpname_state::make_dtor)
5843 (cpname_state::make_builtin_type, cpname_state::make_name)
5844 (cpname_state::d_qualify, cpname_state::d_int_type)
5845 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5846 (%union): Move earlier.
5847
62b74cb8
AH
58482018-06-04 Alan Hayward <alan.hayward@arm.com>
5849
5850 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5851
3c5cd5c3
AH
58522018-06-04 Alan Hayward <alan.hayward@arm.com>
5853
5854 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5855 (aarch64_pseudo_write_1): Likewise.
5856 (aarch64_pseudo_read_value): Use helper.
5857 (aarch64_pseudo_write): Likewise.
5858
59f413d5
PA
58592018-06-04 Pedro Alves <palves@redhat.com>
5860
5861 * darwin-nat.c (darwin_ops): Delete.
5862 (darwin_attach_pid): Use get_native_target.
5863
1332a140
AH
58642018-06-04 Alan Hayward <alan.hayward@arm.com>
5865
5866 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5867 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5868
ba2d2bb2
AH
58692018-06-04 Alan Hayward <alan.hayward@arm.com>
5870
5871 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5872 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5873 (aarch64_gdbarch_init): Check for SVE.
5874 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5875
58762018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
5877
5878 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5879 * aarch64-tdep.h (aarch64_read_description): Likewise.
5880 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5881 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5882 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5883 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5884 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5885
41c60b4b
SM
58862018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5887
5888 * value.c (value_fetch_lazy_bitfield): New.
5889 (value_fetch_lazy_memory): New.
5890 (value_fetch_lazy_register): New.
5891 (value_fetch_lazy): Factor out to smaller functions.
5892
7b640f72
TT
58932018-06-01 Tom Tromey <tom@tromey.com>
5894
5895 * cp-name-parser.y (backslashable, represented): Now const.
5896
98e69eb3
TT
58972018-06-01 Tom Tromey <tom@tromey.com>
5898
5899 * cp-name-parser.y: Include parser-defs.h.
5900 (parser_fprintf): Remove declaration.
5901
49265499
TT
59022018-06-01 Tom Tromey <tom@tromey.com>
5903
5904 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5905 %parse-param.
5906 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5907 (global_result): Remove globals.
5908 (struct cpname_state): New.
5909 (yyparse): Don't declare.
5910 (yylex, yyerror): Move declarations after %union.
5911 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5912 (make_name): Add state parameter.
5913 Update all callers.
5914 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5915 parameter.
5916 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5917 Update.
5918 (yylex): Add lvalp, state parameters.
5919 (yyerror): Add state parameter.
5920 (cp_demangled_name_to_comp): Update.
5921
55b6c984
TT
59222018-06-01 Tom Tromey <tom@tromey.com>
5923
5924 * cp-name-parser.y (parser_fprintf): Declare.
5925 (GDB_YY_REMAP_PREFIX): Define.
5926 Include yy-remap.h. Don't redefine yy* identifiers.
5927
3513a6bb
TT
59282018-06-01 Tom Tromey <tom@tromey.com>
5929
5930 * python/py-type.c (typy_legacy_template_argument): Update.
5931 * cp-support.h (cp_demangled_name_to_comp): Update.
5932 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5933 parameter to be a "std::string *".
5934 (main): Update.
5935
e9cb46ab
L
59362018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5937
5938 * ada-lex.l: Include "diagnostics.h" instead of
5939 "common/diagnostics.h".
5940 * unittests/environ-selftests.c: Likewise.
5941 * common/diagnostics.h: Moved to ../include.
5942
8e817061
JB
59432018-06-01 Joel Brobecker <brobecker@adacore.com>
5944
5945 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5946 to language_mode_manual while calling breakpoint_re_set_one.
5947
a737d952
TT
59482018-06-01 Tom Tromey <tom@tromey.com>
5949
5950 * valops.c (value_cast_structs, destructor_name_p): Update.
5951 * symtab.c (gdb_mangle_name): Update.
5952 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5953 Update.
5954 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5955 (pascal_object_print_value_fields, pascal_object_print_value):
5956 Update.
5957 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5958 * linespec.c (find_methods): Update.
5959 * gdbtypes.h (type_name_no_tag): Remove.
5960 (type_name_or_error): Rename from type_name_no_tag_or_error.
5961 * gdbtypes.c (type_name_no_tag): Remove.
5962 (type_name_or_error): Rename from type_name_no_tag_or_error.
5963 (lookup_struct_elt_type, check_typedef): Update.
5964 * expprint.c (print_subexp_standard): Update.
5965 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5966 * d-namespace.c (d_lookup_nested_symbol): Update.
5967 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5968 (cp_print_class_member): Update.
5969 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5970 * completer.c (add_struct_fields): Update.
5971 * c-typeprint.c (cp_type_print_derivation_info)
5972 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5973 Update.
5974 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5975 (ada_prefer_type, ada_is_exception_sym): Update.
5976
e86ca25f
TT
59772018-06-01 Tom Tromey <tom@tromey.com>
5978
5979 * valops.c (enum_constant_from_type, value_namespace_elt)
5980 (value_maybe_namespace_elt): Update.
5981 * valarith.c (find_size_for_pointer_math): Update.
5982 * target-descriptions.c (make_gdb_type): Update.
5983 * symmisc.c (print_symbol): Update.
5984 * stabsread.c (define_symbol, read_type)
5985 (complain_about_struct_wipeout, add_undefined_type)
5986 (cleanup_undefined_types_1): Update.
5987 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5988 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5989 (rust_internal_print_type, rust_composite_type)
5990 (rust_evaluate_funcall, rust_evaluate_subexp)
5991 (rust_inclusive_range_type_p): Update.
5992 * python/py-type.c (typy_get_tag): Update.
5993 * p-typeprint.c (pascal_type_print_base): Update.
5994 * mdebugread.c (parse_symbol, parse_type): Update.
5995 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5996 Update.
5997 * guile/scm-type.c (gdbscm_type_tag): Update.
5998 * go-lang.c (sixg_string_p): Update.
5999 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6000 Update.
6001 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6002 (TYPE_TAG_NAME): Remove.
6003 * gdbtypes.c (type_name_no_tag): Simplify.
6004 (check_typedef, check_types_equal, recursive_dump_type)
6005 (copy_type_recursive, arch_composite_type): Update.
6006 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6007 in summary mode when needed.
6008 * eval.c (evaluate_funcall): Update.
6009 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6010 (process_structure_scope, read_enumeration_type)
6011 (read_namespace_type, read_module_type, determine_prefix): Update.
6012 * cp-support.c (inspect_type): Update.
6013 * coffread.c (process_coff_symbol, decode_base_type): Update.
6014 * c-varobj.c (c_is_path_expr_parent): Update.
6015 * c-typeprint.c (c_type_print_base_struct_union): Update.
6016 (c_type_print_base_1): Update. Print struct/class/union/enum in
6017 summary when using C language.
6018 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6019 (gen_maybe_namespace_elt): Update.
6020 * ada-lang.c (ada_type_name): Simplify.
6021 (empty_record, ada_template_to_fixed_record_type_1)
6022 (template_to_static_fixed_type)
6023 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6024
c1ec8cea
TT
60252018-06-01 Tom Tromey <tom@tromey.com>
6026
6027 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6028 c_print_type.
6029 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6030 (c_print_type): Update.
6031 (c_print_type): New overload.
6032 (c_type_print_varspec_prefix, c_type_print_args)
6033 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6034 (c_type_print_base_struct_union, c_type_print_base_1)
6035 (cp_type_print_method_args): Add "language" parameter.
6036 (c_type_print_base): Update.
6037 * c-lang.h (c_print_type): Add new overload.
6038
bc8453a7
TT
60392018-06-01 Tom Tromey <tom@tromey.com>
6040
6041 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6042 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6043
739e8682
AH
60442018-06-01 Alan Hayward <alan.hayward@arm.com>
6045
6046 * aarch64-tdep.c (aarch64_sve_register_names): New const
6047 var.
6048 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6049 (AARCH64_SVE_Z_REGS_NUM): New define.
6050 (AARCH64_SVE_P_REGS_NUM): Likewise.
6051 (AARCH64_SVE_NUM_REGS): Likewise.
6052
8a60efe7
UB
60532018-05-31 Uros Bizjak <ubizjak@gmail.com>
6054
6055 * nat/linux-ptrace.h [__alpha__]
6056 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6057 definitions.
6058
4b2dfa9d
MR
60592018-05-31 Maciej W. Rozycki <macro@mips.com>
6060
6061 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6062 the endianness selected.
6063 * NEWS: Document `set endian auto' mode operation update.
6064
122394f1
AH
60652018-05-31 Alan Hayward <alan.hayward@arm.com>
6066
6067 * Makefile.in: Add new header.
6068 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6069 (sve_vl_from_vg): Likewise.
6070 (sve_vq_from_vl): Likewise.
6071 (sve_vl_from_vq): Likewise.
6072 (sve_vq_from_vg): Likewise.
6073 (sve_vg_from_vq): Likewise.
6074 * configure.nat: Add new c file.
6075 * nat/aarch64-sve-linux-ptrace.c: New file.
6076 * nat/aarch64-sve-linux-ptrace.h: New file.
6077
95228a0d
AH
60782018-05-31 Alan Hayward <alan.hayward@arm.com>
6079
6080 * aarch64-linux-nat.c (aarch64_linux_read_description):
6081 Add parmeter zero.
6082 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6083 Likewise.
6084 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6085 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6086 (aarch64_gdbarch_init): Add parmeter zero.
6087 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6088 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6089 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6090 parmeter.
6091 * doc/gdb.texinfo: Describe SVE feature
6092 * features/aarch64-sve.c: New file.
6093
5969f0db
OJ
60942018-05-31 Omair Javaid <omair.javaid@linaro.org>
6095
6096 PR gdb/23210
6097 * gdbarch.sh (significant_addr_bit): Default to zero when
6098 not set by target architecture.
6099 * gdbarch.c: Re-generated.
6100 * utils.c (address_significant): Update.
6101
61367c61
JB
61022018-05-30 Joel Brobecker <brobecker@adacore.com>
6103
6104 * stack.c (func_command): Remove trailing newline in call to error.
6105
34a79281
SM
61062018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6107
6108 * regcache.h (regcache_raw_collect): Remove, update callers to
6109 use regcache::raw_collect.
6110 * regcache.c (regcache_raw_collect): Remove.
6111
73e1c03f
SM
61122018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6113
6114 * regcache.h (regcache_raw_supply): Remove, update callers to
6115 use detached_regcache::raw_supply.
6116 * regcache.c (regcache_raw_supply): Remove.
6117
e4c4a59b
SM
61182018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6119
6120 * regcache.h (regcache_cooked_write_part): Remove, update
6121 callers to use regcache::cooked_write_part.
6122 * regcache.c (regcache_cooked_write_part): Remove.
6123
73bb0000
SM
61242018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6125
6126 * regcache.h (regcache_cooked_read_part): Remove, update callers
6127 to use readable_regcache::cooked_read_part.
6128 * regcache.c (regcache_cooked_read_part): Remove.
6129
46a45e9d
SM
61302018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6131
6132 * regcache.h (regcache_cooked_read_value): Remove, update
6133 callers to use readable_regcache::cooked_read_value.
6134 * regcache.c (regcache_cooked_read_value): Remove.
6135
b66f5587
SM
61362018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6137
6138 * regcache.h (regcache_cooked_write): Remove, update callers to
6139 use regcache::cooked_write.
6140 * regcache.c (regcache_cooked_write): Remove.
6141
6aa7d724
SM
61422018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6143
6144 * regcache.h (regcache_invalidate): Remove, update callers to
6145 use detached_regcache::invalidate instead.
6146 * regcache.c (regcache_invalidate): Remove.
6147
4f0420fd
SM
61482018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6149
6150 * regcache.h (regcache_raw_write_part): Remove, update callers
6151 to use regcache::raw_write_part instead.
6152 * regcache.c (regcache_raw_write_part): Remove.
6153
502fe83e
SM
61542018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6155
6156 * regcache.h (regcache_raw_read_part): Remove, update callers to
6157 use readable_regcache::raw_read_part instead.
6158 * regcache.c (regcache_raw_read_part): Remove.
6159
dca08e1f
SM
61602018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6161
6162 * regcache.h (regcache_cooked_read): Remove, update callers to
6163 use readable_regcache::cooked_read instead.
6164 * regcache.c (regcache_cooked_read): Remove.
6165
10eaee5f
SM
61662018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6167
6168 * regcache.h (regcache_raw_write): Remove, update callers to use
6169 regcache::raw_write instead.
6170 * regcache.c (regcache_raw_write): Remove.
6171
0b883586
SM
61722018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6173
6174 * regcache.h (regcache_raw_read): Remove, update callers to use
6175 readable_regcache::raw_read instead.
6176 * regcache.c (regcache_raw_read): Remove.
6177
0b47d985
SM
61782018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6179
6180 * regcache.h (regcache_raw_update): Remove, update callers to
6181 use readable_regcache::raw_update instead.
6182 * regcache.c (regcache_raw_update): Remove.
6183
0ec9f114
SM
61842018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6185
6186 * regcache.h (regcache_register_status): Remove, update callers
6187 to use reg_buffer::get_register_status directly instead.
6188 * regcache.c (regcache_register_status): Remove.
6189
222312d3
SM
61902018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6191
6192 * regcache.h (regcache_get_ptid): Remove, update all callers to
6193 call regcache::ptid instead.
6194 * regcache.c (regcache_get_ptid): Remove.
6195
fdbe37e3
SM
61962018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6197
6198 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6199
f7c6f423
PA
62002018-05-30 Pedro Alves <palves@redhat.com>
6201
6202 * common/common-exceptions.h (exception_rethrow): Use
6203 ATTRIBUTE_NORETURN.
6204
52941706
SM
62052018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6206
6207 * breakpoint.c (print_solib_event, check_status_catch_solib):
6208 Remove struct keyword in range-based for loops.
6209 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6210 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6211 Likewise.
6212 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6213 Likewise.
6214 * symfile.c (addr_info_make_relative): Likewise.
6215 * thread.c (value_in_thread_stack_temporaries): Likewise.
6216
bf2977b5
WP
62172018-06-12 Weimin Pan <weimin.pan@oracle.com>
6218
6219 PR gdb/16841
6220 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6221 aggregate type to get its real type before accessing it.
6222
64cc34d8
WP
62232018-05-29 Weimin Pan <weimin.pan@oracle.com>
6224
6225 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6226 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6227 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6228 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6229 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6230 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6231 * printcmd.c (info_address_command): Likewise.
6232
e7ec8713
TT
62332018-05-29 Tom Tromey <tom@tromey.com>
6234
6235 * windows-nat.c (handle_exception): Update fall-through comment.
6236
bcb430e4
TT
62372018-05-29 Tom Tromey <tom@tromey.com>
6238
6239 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6240 (struct program_space) <added_solibs>: Now a std::vector.
6241 * breakpoint.c (print_solib_event): Update.
6242 (check_status_catch_solib): Update.
6243 * progspace.c (clear_program_space_solib_cache): Update.
6244 * solib.c (update_solib_list): Update.
6245
894882e3
TT
62462018-05-29 Tom Tromey <tom@tromey.com>
6247
6248 * python/py-type.c (typy_richcompare): Update.
6249 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6250 * gdbtypes.h (types_deeply_equal): Return bool.
6251 (types_equal): Likewise.
6252 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6253 declare VEC.
6254 (check_types_equal): Change worklist to std::vector. Return
6255 bool.
6256 (struct type_equality_entry): Add constructor.
6257 (compare_maybe_null_strings): Return bool.
6258 (check_types_worklist): Return bool. Change worklist to
6259 std::vector.
6260 (types_deeply_equal): Use std::vector.
6261 (types_equal): Return bool.
6262 (compare_maybe_null_strings): Simplify.
6263
10b2ded4
TT
62642018-05-29 Tom Tromey <tom@tromey.com>
6265
6266 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6267
4f7deebe
TT
62682018-05-29 Tom Tromey <tom@tromey.com>
6269
6270 * objc-lang.h: Don't include cp-support.h.
6271 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6272 declare VEC.
6273
b8283aea
TT
62742018-05-27 Tom Tromey <tom@tromey.com>
6275
6276 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6277
41a883c8
TT
62782018-05-25 Tom Tromey <tom@tromey.com>
6279
6280 * value.c (value::location): Initialize.
6281
bf259e25
TT
62822018-05-25 Tom Tromey <tom@tromey.com>
6283
6284 * dbxread.c (init_bincl_list): Remove.
6285 (bincl_list): Now a std::vector.
6286 (bincls_allocated, next_bincl): Remove.
6287 (free_bincl_list, do_free_bincl_list_cleanup)
6288 (make_cleanup_free_bincl_list): Remove.
6289 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6290 unique_xmalloc_ptr.
6291 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6292 (struct header_file_location): Add constructor.
6293 (add_bincl_to_list): Remove.
6294
d525a99b
TT
62952018-05-25 Tom Tromey <tom@tromey.com>
6296
6297 * tui/tui.c (tui_enable): Update.
6298 * mi/mi-interp.c (mi_interp::init): Update.
6299 * interps.h (class interp) <name>: New method.
6300 <m_name>: Rename from name.
6301 (~scoped_restore_interp): Update.
6302 * interps.c (interp::interp): Update.
6303 (interp_add, interp_set, interp_lookup_existing)
6304 (current_interp_named_p): Update.
6305
da505cff
TT
63062018-05-25 Tom Tromey <tom@tromey.com>
6307
6308 * interps.c (interp_name): Remove.
6309 * mi/mi-interp.c (mi_interp::init): Update.
6310 * interps.h (interp_name): Remove.
6311 (~scoped_restore_interp): Update.
6312 * tui/tui.c (tui_enable): Update.
6313
29f94340
TT
63142018-05-25 Tom Tromey <tom@tromey.com>
6315
6316 * utils.c (fputs_maybe_filtered): Update.
6317 * linespec.c (decode_line_full): Update.
6318 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6319 (mi_print_breakpoint_for_event, mi_solib_loaded)
6320 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6321 (mi_user_selected_context_changed): Update.
6322 * mi/mi-main.c (mi_execute_command): Update.
6323 * cli/cli-script.c (execute_control_command): Update.
6324 * python/python.c (execute_gdb_command): Update.
6325 * solib.c (info_sharedlibrary_command): Update.
6326 * interps.c (interp_ui_out): Remove.
6327 * interps.h (interp_ui_out): Remove.
6328
716b8bc5
TT
63292018-05-25 Tom Tromey <tom@tromey.com>
6330
6331 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6332 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6333 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6334
753ff9bd
TT
63352018-05-25 Tom Tromey <tom@tromey.com>
6336
6337 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6338 * interps.c (interp_exec): Use scoped_restore.
6339
5ca3b260
TT
63402018-05-25 Tom Tromey <tom@tromey.com>
6341
6342 * remote.c (remote_target::remote_file_get): Use
6343 gdb::byte_vector.
6344 (remote_target::remote_file_put): Likewise.
6345
3173aa2f
TT
63462018-05-25 Tom Tromey <tom@tromey.com>
6347
6348 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6349 a std::string.
6350 (get_pe_section_index, add_pe_exported_sym): Update.
6351 (read_pe_exported_syms): Use gdb::def_vector.
6352
09a5e1b5
TT
63532018-05-25 Tom Tromey <tom@tromey.com>
6354
6355 * frame.c (remove_prev_frame): Remove.
6356 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6357
d8dab6c3
MR
63582018-05-25 Maciej W. Rozycki <macro@mips.com>
6359
6360 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6361 Remove prototypes.
6362 * mips-linux-nat.c (supply_fpregset): Always call
6363 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6364 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6365 `mips_fill_fpregset'.
6366 * mips-linux-tdep.c (mips_supply_fpregset)
6367 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6368 (mips_fill_fpregset_wrapper): Remove functions.
6369 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6370 (mips_linux_fpregset): Remove variable.
6371 (mips_linux_iterate_over_regset_sections): Use
6372 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6373 (mips_linux_o32_sigframe_init): Remove comment.
6374
3c69da40
PA
63752018-05-25 Pedro Alves <palves@redhat.com>
6376
6377 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6378 (struct readahead_cache, struct packet_reg, struct
6379 remote_arch_state, class remote_state): Move higher up in the
6380 file.
6381 (remote_target::m_remote_state): Now an object instead of a pointer.
6382 (remote_target::get_remote_state): Adjust.
6383
39f0c204
AB
63842018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6385
6386 * stack.c (select_and_print_frame): Delete.
6387 (struct function_bounds): Move struct within function.
6388 (func_command): Most content moved into new function
6389 find_frame_for_function, use new function, print result, add
6390 function comment.
6391 (find_frame_for_function): New function, now returns a result.
6392
d392224a
PW
63932018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6394
6395 * stack.c (iterate_over_block_arg_vars): Fix comment.
6396 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6397
45f25d6c
AB
63982018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6399
6400 PR gdb/23203
6401 * frame.c
6402 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6403 Define.
6404 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6405 Define.
6406 * frame.h (class scoped_restore_selected_frame): New class.
6407 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6408 of any exception, use scoped_restore_selected_frame to restore the
6409 frame instead.
6410
da05d921
PA
64112018-05-24 Pedro Alves <palves@redhat.com>
6412
6413 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6414 override.
6415
a8be540e
TT
64162018-05-23 Tom Tromey <tom@tromey.com>
6417
6418 * complaints.c (struct complaints): Remove.
6419 (symfile_complaint_book): Remove.
6420 (series): New global.
6421 (complaint_internal): Update.
6422 (clear_complaints): Update.
6423
ff1cf532
TT
64242018-05-23 Tom Tromey <tom@tromey.com>
6425
6426 * complaints.c (counters): New global.
6427 (struct complain): Remove.
6428 (struct complaints) <root>: Remove.
6429 (complaint_sentinel): Remove.
6430 (symfile_complaint_book): Update.
6431 (find_complaint) Remove.
6432 (complaint_internal, clear_complaints): Update.
6433
7ff88174
TT
64342018-05-23 Tom Tromey <tom@tromey.com>
6435
6436 * complaints.c (struct complain) <file, line>: Remove.
6437 (find_complaint): Remove file, line parameters.
6438 (complaint_internal): Update.
6439
de54e1a5
TT
64402018-05-23 Tom Tromey <tom@tromey.com>
6441
6442 * complaints.c (vcomplaint): Remove.
6443 (complaint_internal) Merge in contents of vcomplaint.
6444
2ac237e5
TT
64452018-05-23 Tom Tromey <tom@tromey.com>
6446
6447 * complaints.c (struct complaints) <explanation>: Remove.
6448 (symfile_explanations): Remove.
6449 (symfile_complaint_book): Update.
6450 (vcomplaint): Update.
6451 (struct explanation): Remove.
6452
b98664d3
TT
64532018-05-23 Tom Tromey <tom@tromey.com>
6454
6455 * complaints.c (symfile_complaints): Remove.
6456 (complaint_internal): Remove "complaints" parameter.
6457 (clear_complaints, vcomplaint): Remove "c" parameter.
6458 (get_complaints): Remove.
6459 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6460 (dwarf2_debug_line_missing_file_complaint)
6461 (dwarf2_debug_line_missing_end_sequence_complaint)
6462 (dwarf2_complex_location_expr_complaint)
6463 (dwarf2_const_value_length_mismatch_complaint)
6464 (dwarf2_section_buffer_overflow_complaint)
6465 (dwarf2_macro_malformed_definition_complaint)
6466 (dwarf2_invalid_attrib_class_complaint)
6467 (create_addrmap_from_index, dw2_symtab_iter_next)
6468 (dw2_expand_marked_cus)
6469 (dw2_debug_names_iterator::find_vec_in_debug_names)
6470 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6471 (create_debug_type_hash_table, init_cutu_and_read_dies)
6472 (partial_die_parent_scope, add_partial_enumeration)
6473 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6474 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6475 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6476 (create_cus_hash_table, create_dwp_hash_table)
6477 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6478 (dwarf2_rnglists_process, dwarf2_ranges_process)
6479 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6480 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6481 (handle_struct_member_die, process_structure_scope)
6482 (read_array_type, read_common_block, read_module_type)
6483 (read_tag_pointer_type, read_typedef, read_base_type)
6484 (read_subrange_type, load_partial_dies, partial_die_info::read)
6485 (partial_die_info::read, partial_die_info::read)
6486 (partial_die_info::read, read_checked_initial_length_and_offset)
6487 (dwarf2_string_attr, read_formatted_entries)
6488 (dwarf_decode_line_header)
6489 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6490 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6491 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6492 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6493 (get_signatured_type, get_DW_AT_signature_type)
6494 (decode_locdesc, file_file_name, consume_improper_spaces)
6495 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6496 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6497 (dwarf2_symbol_mark_computed, set_die_type)
6498 (read_attribute_value): Update.
6499 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6500 Update.
6501 * dbxread.c (unknown_symtype_complaint)
6502 (lbrac_mismatch_complaint, repeated_header_complaint)
6503 (set_namestring, function_outside_compilation_unit_complaint)
6504 (read_dbx_symtab, process_one_symbol): Update.
6505 * gdbtypes.c (stub_noname_complaint): Update.
6506 * windows-nat.c (handle_unload_dll): Update.
6507 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6508 (decode_base_type): Update.
6509 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6510 (eb_complaint, record_include_begin, record_include_end)
6511 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6512 (process_xcoff_symbol, read_symbol)
6513 (function_outside_compilation_unit_complaint)
6514 (scan_xcoff_symtab): Update.
6515 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6516 * buildsym.c (finish_block_internal, make_blockvector)
6517 (end_symtab_get_static_block, augment_type_symtab): Update.
6518 * dtrace-probe.c (dtrace_process_dof)
6519 (dtrace_static_probe_ops::get_probes): Update.
6520 * complaints.h (struct complaint): Don't declare.
6521 (symfile_complaints): Remove.
6522 (complaint_internal): Remove "complaints" parameter.
6523 (complaint): Likewise.
6524 (clear_complaints): Likewise.
6525 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6526 (reread_symbols): Update.
6527 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6528 (dwarf2_frame_cache, decode_frame_entry): Update.
6529 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6530 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6531 (info_selectors_command): Update.
6532 * macrotab.c (macro_include, check_for_redefinition)
6533 (macro_undef): Update.
6534 * objfiles.c (filter_overlapping_sections): Update.
6535 * stabsread.c (invalid_cpp_abbrev_complaint)
6536 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6537 (define_symbol, error_type, read_type, rs6000_builtin_type)
6538 (stabs_method_name_from_physname, read_member_functions)
6539 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6540 (attach_fields_to_type, complain_about_struct_wipeout)
6541 (read_range_type, read_args, common_block_start)
6542 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6543 Update.
6544 * mdebugread.c (index_complaint, unknown_ext_complaint)
6545 (basic_type_complaint, bad_tag_guess_complaint)
6546 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6547 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6548 (parse_procedure, parse_lines)
6549 (function_outside_compilation_unit_complaint)
6550 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6551 (bad_tag_guess_complaint, reg_value_complaint): Update.
6552 * cp-support.c (demangled_name_complaint): Update.
6553 * macroscope.c (sal_macro_scope): Update.
6554 * dwarf-index-write.c (class debug_names): Update.
6555
4e9668d0
TT
65562018-05-23 Tom Tromey <tom@tromey.com>
6557
6558 * complaints.c (clear_complaints): Remove "noisy" parameter.
6559 * complaints.h (clear_complaints): Update.
6560 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6561 (reread_symbols): Update.
6562
43ba33c7
TT
65632018-05-23 Tom Tromey <tom@tromey.com>
6564
6565 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6566 SUBSEQUENT_MESSAGE.
6567 (vcomplaint, clear_complaints): Update.
6568 (symfile_explanations): Remove some messages.
6569
2b9496b2
TT
65702018-05-23 Tom Tromey <tom@tromey.com>
6571
6572 * complaints.c (internal_complaint): Remove.
6573 * complaints.h (internal_complaint): Remove.
6574
35f1fea3
MR
65752018-05-22 Maciej W. Rozycki <macro@mips.com>
6576
6577 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6578
6b8edb51
PA
65792018-05-22 Pedro Alves <palves@redhat.com>
6580
6581 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6582 (remote_fileio_badfd, remote_fileio_return_errno)
6583 (remote_fileio_return_success, remote_fileio_func_open)
6584 (remote_fileio_func_open, remote_fileio_func_close)
6585 (remote_fileio_func_read, remote_fileio_func_write)
6586 (remote_fileio_func_lseek, remote_fileio_func_rename)
6587 (remote_fileio_func_unlink, remote_fileio_func_stat)
6588 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6589 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6590 remote_target parameter.
6591 (remote_fio_func_map) <func>: Add remote_target parameter.
6592 (do_remote_fileio_request, remote_fileio_request):
6593 * remote-fileio.h (remote_fileio_request):
6594 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6595 remote_target parameter.
6596 (remote_notif_process, handle_notification): Adjust to pass down
6597 the remote.
6598 (remote_notif_state_allocate): Add remote_target parameter. Save
6599 it.
6600 * remote-notif.h (struct remote_target): Forward declare.
6601 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6602 remote_target parameter.
6603 (struct remote_notif_state) <remote>: New field.
6604 (remote_notif_ack, remote_notif_parse): Add remote_target
6605 parameter.
6606 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6607 remote_target parameter.
6608 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6609 (threads_listing_context, rmt_thread_action, protocol_feature)
6610 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6611 (packet_result, struct threads_listing_context, remote_state):
6612 Move definitions and declarations higher up.
6613 (remote_target) <~remote_target>: Declare.
6614 (remote_download_command_source, remote_file_put, remote_file_get)
6615 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6616 (remote_hostio_pread_vFile, remote_hostio_send_command)
6617 (remote_hostio_set_filesystem, remote_hostio_open)
6618 (remote_hostio_close, remote_hostio_unlink, remote_state)
6619 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6620 (get_memory_write_packet_size, get_memory_read_packet_size)
6621 (append_pending_thread_resumptions, remote_detach_1)
6622 (append_resumption, remote_resume_with_vcont)
6623 (add_current_inferior_and_thread, wait_ns, wait_as)
6624 (process_stop_reply, remote_notice_new_inferior)
6625 (process_initial_stop_replies, remote_add_thread)
6626 (btrace_sync_conf, remote_btrace_maybe_reopen)
6627 (remove_new_fork_children, kill_new_fork_children)
6628 (discard_pending_stop_replies, stop_reply_queue_length)
6629 (check_pending_events_prevent_wildcard_vcont)
6630 (discard_pending_stop_replies_in_queue, stop_reply)
6631 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6632 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6633 (remote_interrupt_as, remote_interrupt_ns)
6634 (remote_get_noisy_reply, remote_query_attached)
6635 (remote_add_inferior, remote_current_thread, get_current_thread)
6636 (set_thread, set_general_thread, set_continue_thread)
6637 (set_general_process, write_ptid)
6638 (remote_unpack_thread_info_response, remote_get_threadinfo)
6639 (parse_threadlist_response, remote_get_threadlist)
6640 (remote_threadlist_iterator, remote_get_threads_with_ql)
6641 (remote_get_threads_with_qxfer)
6642 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6643 (get_offsets, remote_check_symbols, remote_supported_packet)
6644 (remote_query_supported, remote_packet_size)
6645 (remote_serial_quit_handler, remote_detach_pid)
6646 (remote_vcont_probe, remote_resume_with_hc)
6647 (send_interrupt_sequence, interrupt_query)
6648 (remote_notif_get_pending_events, fetch_register_using_p)
6649 (send_g_packet, process_g_packet, fetch_registers_using_g)
6650 (store_register_using_P, store_registers_using_G)
6651 (set_remote_traceframe, check_binary_download)
6652 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6653 (remote_xfer_live_readonly_partial, remote_read_bytes)
6654 (remote_send_printf, remote_flash_write, readchar)
6655 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6656 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6657 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6658 (extended_remote_disable_randomization, extended_remote_run)
6659 (send_environment_packet, extended_remote_environment_support)
6660 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6661 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6662 (packet_command): Now methods of ...
6663 (remote_target): ... this class.
6664 (m_remote_state) <remote_target>: New field.
6665 (struct remote_state) <stop_reply_queue,
6666 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6667 fields.
6668 (remote_state::remote_state): Allocate stop_reply_queue.
6669 (remote_state): Delete global.
6670 (get_remote_state_raw): Delete.
6671 (remote_target::get_remote_state): Allocate m_remote_state on
6672 demand.
6673 (get_current_remote_target): New.
6674 (remote_ops, extended_remote_ops): Delete.
6675 (wait_forever_enabled_p, remote_async_inferior_event_token):
6676 Delete, moved to struct remote_state.
6677 (remote_target::close): Delete self. Destruction bits split to
6678 ...
6679 (remote_target::~remote_target): ... this.
6680 (show_memory_packet_size): Adjust to use
6681 get_current_remote_target.
6682 (struct protocol_feature) <func>: Add remote_target parameter.
6683 All callers adjusted.
6684 (curr_quit_handler_target): New.
6685 (remote_serial_quit_handler): Reimplement.
6686 (remote_target::open_1): Adjust to use get_current_remote_target.
6687 Heap-allocate remote_target/extended_remote_target instances.
6688 (vcont_builder::vcont_builder): Add remote_target parameter, and
6689 save it in m_remote. All callers adjusted.
6690 (vcont_builder::m_remote): New field.
6691 (vcont_builder::restart, vcont_builder::flush)
6692 (vcont_builder::push_action): Use it.
6693 (remote_target::commit_resume): Use it.
6694 (struct queue_iter_param) <remote>: New field.
6695 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6696 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6697 (check_pending_event_prevents_wildcard_vcont_callback)
6698 (remote_target::check_pending_events_prevent_wildcard_vcont)
6699 (remote_target::discard_pending_stop_replies)
6700 (remote_target::discard_pending_stop_replies_in_queue)
6701 (remote_target::remote_notif_remove_queued_reply): Fill in
6702 'remote' field.
6703 (remote_notif_get_pending_events): New.
6704 (remote_target::readchar, remote_target::remote_serial_write):
6705 Save/restore curr_quit_handler_target.
6706 (putpkt): New.
6707 (kill_new_fork_children): Fill in 'remote' field.
6708 (packet_command): Use get_current_remote_target, defer to
6709 remote_target method of same name.
6710 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6711 parameter, and save it in m_remote. All callers adjusted.
6712 (scoped_remote_fd::release): Use m_remote.
6713 (scoped_remote_fd::m_remote): New field.
6714 (remote_file_put, remote_file_get, remote_file_delete): Use
6715 get_current_remote_target, defer to remote_target method of same
6716 name.
6717 (remote_btrace_reset): Add remote_state paremeter. Update all
6718 callers.
6719 (remote_async_inferior_event_handler). Pass down 'data'.
6720 (remote_new_objfile): Use get_current_remote_target.
6721 (remote_target::vcont_r_supported): New.
6722 (set_range_stepping): Use get_current_remote_target and
6723 remote_target::vcont_r_supported.
6724 (_initialize_remote): Don't allocate 'remote_state' and
6725 'stop_reply_queue' globals.
6726 * remote.h (struct remote_target): Forward declare.
6727 (getpkt, putpkt, remote_notif_get_pending_events): Add
6728 'remote_target' parameter.
6729
f5db4863
PA
67302018-05-22 Pedro Alves <palves@redhat.com>
6731
6732 * remote.c (vcont_builder): Now a class. Make all data members
6733 private.
6734 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6735 Declare methods.
6736 (vcont_builder_restart): Rename to ...
6737 (vcont_builder::restart): ... this.
6738 (vcont_builder_flush): Rename to ...
6739 (vcont_builder::flush): ... this.
6740 (vcont_builder_push_action): Rename to ...
6741 (vcont_builder::push_action): ... this.
6742 (remote_target::commit_resume): Adjust.
6743
cc0be08f
PA
67442018-05-22 Pedro Alves <palves@redhat.com>
6745
6746 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6747 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6748 (get_fixed_memory_packet_size): New.
6749 (get_memory_packet_size): Use it.
6750 (set_memory_packet_size): Don't override the config size with
6751 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6752 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6753 Don't refer to get_memory_packet_size if not connected to a remote
6754 target. Show "(default)" if configured size is 0.
6755
9607784a
PA
67562018-05-22 Pedro Alves <palves@redhat.com>
6757
6758 * remote.c (remote_target::mourn_inferior): Move
6759 discard_pending_stop_replies call here from ...
6760 (_initialize_remote): ... here.
6761
0e9a6b2f
PA
67622018-05-22 Pedro Alves <palves@redhat.com>
6763
6764 * remote.c (compare_section_command): Remove set_general_process
6765 call.
6766
43c3a0e4
PA
67672018-05-22 Pedro Alves <palves@redhat.com>
6768
6769 * remote.c (struct packet_reg, struct remote_arch_state):
6770 Move higher up in the file.
6771 (remote_state) <m_arch_states>: Store remote_arch_state values
6772 instead of remote_arch_state pointers.
6773 (remote_state::get_remote_arch_state): Adjust.
6774
9d6eea31
PA
67752018-05-22 Pedro Alves <palves@redhat.com>
6776
6777 * remote.c: Include <unordered_map>.
6778 (remote_state): Now a class.
6779 (remote_state) <get_remote_arch_state>: Declare method.
6780 <get_remote_arch_state>: New field.
6781 (remote_arch_state) <remote_arch_state>: Declare ctor.
6782 <regs>: Now a unique_ptr.
6783 (remote_gdbarch_data_handle): Delete.
6784 (get_remote_arch_state): Delete.
6785 (remote_state::get_remote_arch_state): New.
6786 (get_remote_state): Adjust to call remote_state's
6787 get_remote_arch_state method.
6788 (init_remote_state): Delete, bits factored out to ...
6789 (remote_arch_state::remote_arch_state): ... this new method.
6790 (get_remote_packet_size, get_memory_packet_size)
6791 (process_g_packet, remote_target::fetch_registers)
6792 (remote_target::prepare_to_store, store_registers_using_G)
6793 (remote_target::store_registers, remote_target::get_trace_status):
6794 Adjust to call remote_state's method.
6795 (_initialize_remote): Remove reference to
6796 remote_gdbarch_data_handle.
6797
dd194f6b
PA
67982018-05-22 Pedro Alves <palves@redhat.com>
6799
6800 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6801 pread>: New method declarations.
6802 (remote_target::open_1): Adjust.
6803 (readahead_cache_invalidate): Rename to ...
6804 (readahead_cache::invalidate): ... this, and adjust to be a class
6805 method.
6806 (readahead_cache_invalidate_fd): Rename to ...
6807 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6808 class method.
6809 (remote_hostio_pwrite): Adjust.
6810 (remote_hostio_pread_from_cache): Rename to ...
6811 (readahead_cache::pread): ... this, and adjust to be a class
6812 method.
6813 (remote_hostio_close): Adjust.
6814
440b7aec
PA
68152018-05-22 Pedro Alves <palves@redhat.com>
6816
6817 * remote.c (remote_hostio_close_cleanup): Delete.
6818 (class scoped_remote_fd): New.
6819 (remote_file_put, remote_file_get): Use it.
6820
de44f5a7
PA
68212018-05-22 Pedro Alves <palves@redhat.com>
6822
6823 (struct vCont_action_support): Use bool and initialize all fields.
6824 (struct readahead_cache): Initialize all fields.
6825 (remote_state): Use bool and initialize all fields.
6826 (remote_state::remote_state, remote_state::~remote_state): New.
6827 (new_remote_state): Delete.
6828 (_initialize_remote): Use new to allocate remote_state.
6829
b1b60145
PA
68302018-05-22 Pedro Alves <palves@redhat.com>
6831 張俊芝 <zjz@zjz.name>
6832
6833 PR gdb/22973
6834 * c-exp.y: Include "c-support.h".
6835 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6836 of tolower. Use c_ident_is_alpha to scan names.
6837 * c-lang.c: Include "c-support.h".
6838 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6839 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6840 * c-support.h: New file, with bits factored out from ...
6841 * cp-name-parser.y: ... this file.
6842 Include "c-support.h".
6843 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6844 c-support.h and renamed.
6845 (symbol_end, yylex): Adjust.
6846
0ec848ad
PFC
68472018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6848
6849 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6850 parameter type to CORE_ADDR.
6851 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6852 parameter type in declaration to CORE_ADDR.
6853 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6854 target_auxv_search to get AT_HWCAP and use the result to get the
6855 target description.
6856 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6857 to CORE_ADDR. Remove the cast of the return value to unsigned
6858 long. Fix error predicate of target_auxv_search.
6859 (ppc_linux_nat_target::read_description): Change the type of the
6860 hwcap variable to CORE_ADDR.
6861
0fb2aaa1
PFC
68622018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6863
6864 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6865 if the size of fpscr is larger than 32 bits.
6866
2c3305f6
PFC
68672018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6868
6869 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6870 (ppc32_linux_vsxregmap): New global.
6871 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6872 regcache_supply_regset, and regcache_collect_regset.
6873 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6874 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6875 (fetch_vsx_register, store_vsx_register): Remove.
6876 (fetch_vsx_registers): Add regno parameter. Get regset using
6877 ppc_linux_vsxregset. Use regset to supply registers.
6878 (store_vsx_registers): Add regno parameter. Get regset using
6879 ppc_linux_vsxregset. Use regset to collect registers.
6880 (fetch_register): Call fetch_vsx_registers instead of
6881 fetch_vsx_register.
6882 (store_register): Call store_vsx_registers instead of
6883 store_vsx_register.
6884 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6885 new regno parameter.
6886 (store_ppc_registers): Call store_vsx_registers with -1 for the
6887 new regno parameter.
6888 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6889 (ppc_collect_vsxregset): Remove.
6890
1d75a658
PFC
68912018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6892
6893 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6894 offset fields.
6895 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6896 for vector register offset fields.
6897 (ppc64_fbsd_reg_offsets): Likewise.
6898 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6899 to vector register offset fields.
6900 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6901 to vector register offset fields.
6902 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6903 vector register offset fields.
6904 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6905 initializers for vector register offset fields.
6906 (rs6000_aix64_reg_offsets): Likewise.
6907 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6908 (ppc_supply_vrregset): Remove.
6909 (ppc_collect_vrregset): Remove.
6910 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6911 (ppc_linux_vrregset) : New function.
6912 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6913 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6914 (ppc32_linux_vrregset): Remove.
6915 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6916 and use result instead of ppc32_linux_vrregset.
6917 (ppc32_linux_reg_offsets): Remove initializers for vector register
6918 offset fields.
6919 (ppc64_linux_reg_offsets): Likewise.
6920 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6921 * ppc-linux-nat.c: Include regset.h.
6922 (gdb_vrregset_t): Adjust comment to account for little-endian
6923 mode.
6924 (supply_vrregset, fill_vrregset): Remove.
6925 (fetch_altivec_register, store_altivec_register): Remove.
6926 (fetch_altivec_registers): Add regno parameter. Get regset using
6927 ppc_linux_vrregset. Use regset to supply registers.
6928 (store_altivec_registers): Add regno parameter. Get regset using
6929 ppc_linux_vrregset. Use regset to collect registers.
6930 (fetch_register): Call fetch_altivec_registers instead of
6931 fetch_altivec_register.
6932 (store_register): Call store_altivec_registers instead of
6933 store_altivec_register.
6934 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6935 the new regno parameter.
6936 (store_ppc_registers): Call store_altivec_registers with -1 for
6937 the new regno parameter.
6938
d078308a
PFC
69392018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6940
6941 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6942 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6943 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6944 (gdb_vrregset_t): Change array type size to
6945 PPC_LINUX_SIZEOF_VRREGSET.
6946 (gdb_vsxregset_t): Change array type size to
6947 PPC_LINUX_SIZEOF_VSXREGSET.
6948 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6949 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6950 PPC_LINUX_SIZEOF_VSXREGSET.
6951
2e077f5e
PFC
69522018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6953
6954 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6955 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6956 nat/ppc-linux.c.
6957 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6958 ppc_linux_target_wordsize with tid.
6959 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6960 wordsize with tid.
6961 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6962 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6963 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6964 tid parameter. Remove static specifier.
6965 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6966 (ppc_linux_target_wordsize): New declaration.
6967
bd64614e
PFC
69682018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6969
6970 * arch/ppc-linux-common.c: New file.
6971 * arch/ppc-linux-common.h: New file.
6972 * arch/ppc-linux-tdesc.h: New file.
6973 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6974 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6975 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6976 arch/ppc-linux-tdesc.h.
6977 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6978 arch/ppc-linux-tdesc.h.
6979 (ppc_linux_nat_target::read_description): Remove target
6980 description matching code. Fill a ppc_linux_features struct and
6981 call ppc_linux_match_description with it. Move comment about ISA
6982 2.05 to ppc-linux-common.c.
6983 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6984 arch/ppc-linux-tdesc.h.
6985 (ppc_linux_core_read_description): Remove target description
6986 matching code. Fill a ppc_linux_features struct and call
6987 ppc_linux_match_description with it.
6988 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6989 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6990 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6991 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6992 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6993 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6994 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6995 (tdesc_powerpc_e500l): Remove.
6996
241db429
JB
69972018-05-22 Joel Brobecker <brobecker@adacore.com>
6998
6999 * ada-lang.c (catch_assert_command): Pass empty string instead
7000 of NULL for excep_string argument.
7001
75d74cca
MR
70022018-05-22 Maciej W. Rozycki <macro@mips.com>
7003
7004 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7005 the width of the requested register exceeds the width of the
7006 `ptrace' data type.
7007
122b53ea
TT
70082018-05-21 Tom Tromey <tom@tromey.com>
7009
7010 * printcmd.c (output_command): Remove.
7011 (output_command_const): Rename to output_command.
7012 * valprint.h (output_command): Rename from output_command_const.
7013 * tracepoint.c (trace_dump_actions): Call output_command.
7014
bc18fbb5
TT
70152018-05-21 Tom Tromey <tom@tromey.com>
7016
7017 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7018 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7019 * ada-lang.h (create_ada_exception_catchpoint): Update.
7020 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7021 std::string.
7022 (create_excep_cond_exprs, ~ada_catchpoint)
7023 (should_stop_exception, print_one_exception)
7024 (print_mention_exception, print_recreate_exception): Update.
7025 (ada_get_next_arg): Remove.
7026 (catch_ada_exception_command_split): Use std::string. Change type
7027 of "excep_string", "cond_string".
7028 (catch_ada_exception_command): Update.
7029 (create_ada_exception_catchpoint): Change type of excep_string.
7030 (ada_exception_sal): Remove excep_string parameter.
7031 (~ada_catchpoint): Remove.
7032
790217f6
TT
70332018-05-21 Tom Tromey <tom@tromey.com>
7034
7035 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7036 cleanup.
7037
6f46ac85
TT
70382018-05-21 Tom Tromey <tom@tromey.com>
7039
7040 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7041 Return unique_xmalloc_ptr.
7042 (print_it_exception): Update.
7043
15b6611c
TT
70442018-05-21 Tom Tromey <tom@tromey.com>
7045
7046 * tracepoint.c (trace_dump_actions): Use std::string.
7047
c0c9f665
TT
70482018-05-21 Tom Tromey <tom@tromey.com>
7049
7050 * symfile.c (reread_symbols): Use std::string for original_name.
7051
22ca247e
TT
70522018-05-21 Tom Tromey <tom@tromey.com>
7053
7054 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7055 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7056 constructor.
7057
184cde75
SM
70582018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7059
7060 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7061 instance to...
7062 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7063 * objfiles.c (get_objfile_bfd_data): Allocate
7064 objfile_per_bfd_storage with obstack_new when allocating on
7065 obstack.
7066
e39db4db
SM
70672018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7068
7069 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7070 OBSTACK_ZALLOC.
7071 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7072 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7073 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7074 (add_pending): Likewise.
7075 (parse_symbol): Likewise.
7076 (parse_partial_symbols): Likewise.
7077 (psymtab_to_symtab_1): Likewise.
7078 (new_psymtab): Likewise.
7079 (elfmdebug_build_psymtabs): Likewise.
7080 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7081 * objfiles.c (get_objfile_bfd_data): Likewise.
7082 (objfile_register_static_link): Likewise.
7083 * psymtab.c (allocate_psymtab): Likewise.
7084 * stabsread.c (read_member_functions): Likewise.
7085 * xcoffread.c (xcoff_end_psymtab): Likewise.
7086
284a0e3c
SM
70872018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7088
7089 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7090 compiler supports std::is_trivially_constructible.
7091 * common/poison.h: Include obstack.h.
7092 (IsMallocable): Define to is_trivially_constructible if the
7093 compiler supports it, define to true_type otherwise.
7094 (xobnew): New.
7095 (XOBNEW): Redefine.
7096 (xobnewvec): New.
7097 (XOBNEWVEC): Redefine.
7098 * gdb_obstack.h (obstack_zalloc): New.
7099 (OBSTACK_ZALLOC): Redefine.
7100 (obstack_calloc): New.
7101 (OBSTACK_CALLOC): Redefine.
7102 (obstack_new): New.
7103 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7104 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7105 gdbarch.c.
7106 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7107 obstack_calloc/obstack_zalloc.
7108 (gdbarch_obstack_zalloc): Remove.
7109 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7110
59f66be3
PW
71112018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7112
7113 * stack.c (backtrace_command_1): Remove useless variable int i.
7114
50c65c2d
PW
71152018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7116
7117 * stack.c (print_frame_info): Fix comment.
7118
7ff8cb8c
TT
71192018-05-18 Tom Tromey <tom@tromey.com>
7120
7121 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7122 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7123 (~dwarf2_per_objfile): Update
7124 (dwarf2_get_dwz_file): Use new.
7125 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7126 unique_ptr.
7127
400174b1
TT
71282018-05-18 Tom Tromey <tom@tromey.com>
7129
7130 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7131 unique_ptr.
7132 * dwarf2read.c (struct dwp_file): Add constructor and
7133 initializers.
7134 (open_and_init_dwp_file): Return a unique_ptr.
7135 (dwarf2_per_objfile, create_dwp_hash_table)
7136 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7137 (lookup_dwo_unit_in_dwp): Update.
7138 (open_and_init_dwp_file, get_dwp_file): Update.
7139
3063847f
TT
71402018-05-18 Tom Tromey <tom@tromey.com>
7141
7142 * dwarf2read.c (dwarf2_per_objfile): Update.
7143 (struct mapped_index): Add initializers.
7144 (dwarf2_read_index): Use new.
7145 (dw2_symtab_iter_init): Update.
7146 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7147 unique_ptr.
7148
d3d02dee
SM
71492018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7150
7151 * dwarf2read.c (mapped_index) <total_size>: Remove.
7152
1d143c36
SM
71532018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7154
7155 * unittests/format_pieces-selftests.c (test_format_specifier):
7156 Add ARI comments.
7157
ce1e8424
TT
71582018-05-18 Tom Tromey <tom@tromey.com>
7159
7160 * c-typeprint.c (maybe_print_hole): New function.
7161 (c_print_type_struct_field_offset): Update.
7162 (c_type_print_base_struct_union): Call maybe_print_hole.
7163
ddfe970e
KS
71642018-05-17 Keith Seitz <keiths@redhat.com>
7165
7166 * breakpoint.c (build_bpstat_chain): New function, moved from
7167 bpstat_stop_status.
7168 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7169 If no stop chain is passed, call build_bpstat_chain to build it.
7170 * breakpoint.h (build_bpstat_chain): Declare.
7171 (bpstat_stop_status): Move documentation here from breakpoint.c.
7172 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7173 build the stop chain and pass it to skip_inline_frames.
7174 Pass this stop chain to bpstat_stop_status.
7175 * inline-frame.c: Include breakpoint.h.
7176 (stopped_by_user_bp_inline_frame): New function.
7177 (skip_inline_frames): Add parameter `stop_chain'.
7178 Move documention to inline-frame.h.
7179 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7180 whether the frame should be elided.
7181 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7182 Add moved documentation and update for new parameter.
7183
b17992c1
SM
71842018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7185
7186 PR cli/14975
7187 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7188 unittests/format_pieces-selftests.c.
7189 * common/format.h (format_piece) <operator==>: New.
7190 (format_pieces) <operator[]>: Remove.
7191 * common/format.c (format_pieces::format_pieces): Handle \e.
7192 * unittests/format_pieces-selftests.c: New.
7193
58f0c718
TT
71942018-05-17 Tom Tromey <tom@tromey.com>
7195
7196 PR symtab/23010:
7197 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7198 (dw2_instantiate_symtab): Add skip_partial parameter.
7199 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7200 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7201 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7202 (dw2_expand_symtabs_matching_one)
7203 (dw2_find_pc_sect_compunit_symtab)
7204 (dw2_debug_names_lookup_symbol)
7205 (dw2_debug_names_expand_symtabs_for_function): Update.
7206 (init_cutu_and_read_dies): Add skip_partial parameter.
7207 (process_psymtab_comp_unit, build_type_psymtabs_1)
7208 (process_skeletonless_type_unit, load_partial_comp_unit)
7209 (psymtab_to_symtab_1): Update.
7210 (load_full_comp_unit): Add skip_partial parameter.
7211 (process_imported_unit_die, dwarf2_read_addr_index)
7212 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7213 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7214 (read_signatured_type): Update.
7215
3e618834
SM
72162018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7217
7218 * value.c (release_value): Remove unused variable.
7219 (record_latest_value): Likewise.
7220 (access_value_history): Likewise.
7221 (preserve_values): Likewise.
7222
fe10fe31
TT
72232018-05-17 Tom Tromey <tom@tromey.com>
7224
7225 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7226 Initialize.
7227
1d761124
MR
72282018-05-16 Maciej W. Rozycki <macro@mips.com>
7229
7230 PR gdb/22286
7231 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7232 Also handle registers whose width is not a multiple of
7233 PTRACE_TYPE_RET.
7234 (linux_nat_trad_target::store_register): Likewise.
7235
06333fea
TT
72362018-05-16 Tom Tromey <tom@tromey.com>
7237
7238 * gdbcore.h (core_bfd): Redefine.
7239 * corelow.c (core_target::close): Update.
7240 (core_target_open): Update.
7241 * progspace.h (struct program_space) <cbfd>: Now a
7242 gdb_bfd_ref_ptr.
7243
921222e2
TT
72442018-05-16 Tom Tromey <tom@tromey.com>
7245
7246 PR cli/19551:
7247 * symfile-add-flags.h (enum symfile_add_flags)
7248 <SYMFILE_NOT_FILENAME>: New constant.
7249 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7250 objfile name from BFD.
7251 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7252 * minidebug.c (find_separate_debug_file_in_section): Put
7253 ".gnu_debugdata" into BFD's file name.
7254
3acb7083
SM
72552018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7256
7257 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7258 Remove.
7259
561a72d4
TC
72602018-05-15 Tamar Christina <tamar.christina@arm.com>
7261
7262 PR binutils/21446
7263 * aarch64-tdep.c (aarch64_analyze_prologue,
7264 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7265 Indicate not interested in errors.
7266
4e6ff0e1
MR
72672018-05-15 Maciej W. Rozycki <macro@mips.com>
7268
7269 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7270 Supply the MIPS_ZERO_REGNUM register.
7271
ea33cd92
MR
72722018-05-15 Maciej W. Rozycki <macro@mips.com>
7273
7274 * mips-tdep.c (mask_address_var): Make variable static.
7275
2d79090e
TT
72762018-05-14 Tom Tromey <tom@tromey.com>
7277
7278 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7279
cf4912ae
AB
72802018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7281
7282 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7283 FXSAVE_ADDR for the mxcsr register.
7284
67e6f569
MF
72852018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7286
7287 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7288
15244507
PA
72892018-05-11 Pedro Alves <palves@redhat.com>
7290
7291 * corelow.c (core_target) <core_target>: No longer inline.
7292 Initialize m_core_gdbarch, m_core_vec and build the section table
7293 here.
7294 <~core_target>: New.
7295 <core_gdbarch, get_core_register_section>: New methods.
7296 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7297 factored out from ...
7298 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7299 (core_ops): Delete.
7300 (sniff_core_bfd): Add gdbarch parameter.
7301 (core_close): Delete, merged into ...
7302 (core_target::close): ... here. Delete self.
7303 (core_close_cleanup): Delete.
7304 (core_target_open): Allocate a core_target on the heap. Use a
7305 unique_ptr instead of a cleanup. Bits moved into the core_target
7306 ctor. Adjust to use core_target methods instead of globals.
7307 (get_core_register_section): Rename to ...
7308 (core_target::get_core_register_section): ... this and adjust.
7309 (struct get_core_registers_cb_data): New.
7310 (get_core_registers_cb): Use it. Use bool.
7311 (core_target::fetch_registers, core_target::files_info)
7312 (core_target::xfer_partial, core_target::read_description)
7313 (core_target::pid_to, core_target::thread_name): Adjust to
7314 reference class fields instead of globals.
7315 * target.h (struct target_ops_deleter, target_ops_up): New.
7316
451953fa
PA
73172018-05-11 Pedro Alves <palves@redhat.com>
7318
7319 * corefile.c (core_file_command): Move to corelow.c.
7320 * corelow.c (the_core_target): Delete.
7321 (core_file_command): Moved from corefile.c. Check exec_bfd
7322 instead of the_core_target. Use target_detach instead of calling
7323 into the_core_target directly.
7324 (maybe_say_no_core_file_now): New.
7325 (core_target::detach): Use it.
7326 (_initialize_corelow): Remove references to the_core_target.
7327 * gdbcore.h (the_core_target): Delete.
7328
e540a5a2 73292018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 7330 Pedro Alves <palves@redhat.com>
e540a5a2
TT
7331
7332 * corefile.c (core_bfd): Remove.
7333 * gdbcore.h (core_bfd): Now a macro.
7334 * progspace.h (struct program_space) <cbfd>: New field.
7335
633cf254
TT
73362018-05-11 Tom Tromey <tom@tromey.com>
7337
7338 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7339 gdb::def_vector.
7340
1a34f210
TT
73412018-05-10 Tom Tromey <tom@tromey.com>
7342
7343 * configure: Rebuild.
7344 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7345
190852c8
JB
73462018-05-10 Joel Brobecker <brobecker@adacore.com>
7347
7348 PR server/23158:
7349 * regformats/regdat.sh: Adjust script, following the addition
7350 of the new expedite_regs parameter to init_target_desc.
7351
8727de56
OJ
73522018-05-10 Omair Javaid <omair.javaid@linaro.org>
7353
7354 PR gdb/23127
7355 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7356 set_gdbarch_significant_addr_bit.
7357 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7358 set_gdbarch_significant_addr_bit.
7359 * utils.c (address_significant): Update to sign extend addr.
7360
37d9e062
MF
73612018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7362
7363 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7364 (xtensa_linux_init_abi): Limit tdep->num_regs by
7365 tdep->num_nopriv_regs.
7366 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7367 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7368 not initialized.
7369
7402fbca
SM
73702018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7371
7372 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7373
8ee22052
AB
73742018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7375
7376 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7377 (I387_MXCSR_INIT_VAL): New constant.
7378 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7379 buffer if it was supplied by the inferior.
7380 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7381 (i387_xsave_get_clear_bv): New function.
7382 (i387_supply_xsave): Only read x87 control registers from the
7383 xsave buffer if the feature is enabled, and the state will have
7384 been written, otherwise, provide a suitable default.
7385 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7386 including x87 control registers. Update control registers if they
7387 have changed from the default value, and mark features as enabled
7388 as required.
7389 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7390
968ae51b
UW
73912018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7392
7393 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7394
aff689d3
TT
73952018-05-07 Tom Tromey <tom@tromey.com>
7396
7397 * configure: Rebuild.
7398 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7399
ce887586
TT
74002018-05-07 Tom Tromey <tom@tromey.com>
7401
7402 PR tdep/20362:
7403 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7404 bit. Use correct value for VDIV.
7405
85e26832
TT
74062018-05-04 Tom Tromey <tom@tromey.com>
7407
7408 * configure: Rebuild.
7409 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7410
449b1ac7
TT
74112018-05-04 Tom Tromey <tom@tromey.com>
7412
7413 * linux-record.c (record_linux_system_call) <case
7414 RECORD_SYS_RECVFROM>: Add "break".
7415
15c9ffd6
TT
74162018-05-04 Tom Tromey <tom@tromey.com>
7417
7418 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7419 Add missing "break".
7420 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7421 Add missing "break".
7422
e3829d13
TT
74232018-05-04 Tom Tromey <tom@tromey.com>
7424
7425 * rs6000-tdep.c (ppc_process_record_op4)
7426 (ppc_process_record_op63): Add fall-through comment.
7427
da0e1563
TT
74282018-05-04 Tom Tromey <tom@tromey.com>
7429
7430 * i386-tdep.c (i386_process_record): Add fall-through comment.
7431
0019cd49
TT
74322018-05-04 Tom Tromey <tom@tromey.com>
7433
7434 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7435 comment.
7436
565e0eda
TT
74372018-05-04 Tom Tromey <tom@tromey.com>
7438
7439 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7440 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7441 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7442 comment.
7443 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7444 comment.
7445 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7446 comment.
7447
621846f4
TT
74482018-05-04 Tom Tromey <tom@tromey.com>
7449
7450 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7451
86a73007
TT
74522018-05-04 Tom Tromey <tom@tromey.com>
7453
7454 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7455 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7456 * symfile.c (section_is_mapped): Fix fall-through comment.
7457 * stabsread.c (define_symbol, read_member_functions): Fix
7458 fall-through comment.
7459 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7460 comment.
7461 * remote.c (remote_wait_as): Fix fall-through comment.
7462 * p-exp.y (yylex): Fix fall-through comment.
7463 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7464 comment.
7465 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7466 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7467 * jv-exp.y (yylex): Fix fall-through comment.
7468 * go-exp.y (lex_one_token): Fix fall-through comment.
7469 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7470 fall-through comment.
7471 * f-exp.y (yylex): Fix fall-through comment.
7472 * dwarf2read.c (process_die): Fix fall-through comments.
7473 * dbxread.c (process_one_symbol): Fix fall-through comment.
7474 * d-exp.y (lex_one_token): Fix fall-through comment.
7475 * cp-name-parser.y (yylex): Fix fall-through comment.
7476 * coffread.c (coff_symtab_read): Fix fall-through comment.
7477 * c-exp.y (lex_one_token): Fix fall-through comment.
7478 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7479 comment.
7480 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7481 comment.
7482
56bcdbea
TT
74832018-05-04 Tom Tromey <tom@tromey.com>
7484
7485 PR python/22730:
7486 * NEWS: Mention gdb.execute change.
7487 * gdbcmd.h (execute_control_command): Don't declare.
7488 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7489 execute_control_commands, execute_control_commands_to_string.
7490 * cli/cli-script.h (execute_control_commands)
7491 (execute_control_commands_to_string): Declare.
7492 (execute_control_command): Add from_tty parameter.
7493 * cli/cli-script.c (execute_control_commands)
7494 (execute_control_commands_to_string): New functions.
7495 (execute_user_command): Use execute_control_commands.
7496 (execute_control_command_1): Add "from_tty" parameter. Update.
7497 (execute_control_command): Likewise.
7498
a913fffb
TT
74992018-05-04 Tom Tromey <tom@tromey.com>
7500
7501 PR python/22731:
7502 * NEWS: Mention that breakpoint commands are writable.
7503 * python/py-breakpoint.c (bppy_set_commands): New function.
7504 (breakpoint_object_getset) <"commands">: Use it.
7505
60b3cef2
TT
75062018-05-04 Tom Tromey <tom@tromey.com>
7507
7508 * tracepoint.c (actions_command): Update.
7509 * mi/mi-cmd-break.c (mi_command_line_array)
7510 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7511 (mi_read_next_line): Remove.
7512 (mi_cmd_break_commands): Update.
7513 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7514 function_view.
7515 * cli/cli-script.c (get_command_line): Update.
7516 (process_next_line): Use function_view. Constify.
7517 (recurse_read_control_structure, read_command_lines)
7518 (read_command_lines_1): Change argument types to function_view.
7519 (do_define_command, document_command): Update.
7520 * breakpoint.h (check_tracepoint_command): Don't declare.
7521 * breakpoint.c (check_tracepoint_command): Remove.
7522 (commands_command_1, create_tracepoint_from_upload): Update.
7523
7a2c85f2
TT
75242018-05-04 Tom Tromey <tom@tromey.com>
7525
7526 PR gdb/11750:
7527 * cli/cli-script.h (enum command_control_type) <define_control>:
7528 New constant.
7529 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7530 (build_command_line, execute_control_command_1)
7531 (process_next_line): Likewise.
7532 (do_define_command): New function, extracted from define_command.
7533 (define_command): Use it.
7534
295dc222
TT
75352018-05-04 Tom Tromey <tom@tromey.com>
7536
7537 * tracepoint.c (actions_command): Update.
7538 * cli/cli-script.h (read_command_lines): Update.
7539 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7540 (MAX_TMPBUF): Remove define.
7541 (define_command): Use string_printf.
7542 (document_command): Likewise.
7543 * breakpoint.c (commands_command_1): Update.
7544
1263a9d5
TT
75452018-05-04 Tom Tromey <tom@tromey.com>
7546
7547 * top.c (execute_command): Update.
7548 * cli/cli-script.h (print_command_lines): Now varargs.
7549 * cli/cli-script.c (print_command_lines): Now varargs.
7550 (execute_control_command_1) <case while_control, case if_control>:
7551 Update.
7552
12973681
TT
75532018-05-04 Tom Tromey <tom@tromey.com>
7554
7555 * tracepoint.c (all_tracepoint_actions): Rename from
7556 all_tracepoint_actions_and_cleanup. Change return type.
7557 (actions_command, encode_actions_1, encode_actions)
7558 (trace_dump_actions, tdump_command): Update.
7559 * remote.c (remote_download_command_source): Update.
7560 * python/python.c (gdbpy_eval_from_control_command)
7561 (python_command, python_interactive_command): Update.
7562 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7563 * guile/guile.c (guile_command)
7564 (gdbscm_eval_from_control_command, guile_command): Update.
7565 * compile/compile.c (compile_code_command)
7566 (compile_print_command, compile_to_object): Update.
7567 * cli/cli-script.h (struct command_lines_deleter): New.
7568 (counted_command_line): New typedef.
7569 (struct command_line): Add constructor, destructor.
7570 <body_list>: Remove.
7571 <body_list_0, body_list_1>: New members.
7572 (command_line_up): Remove typedef.
7573 (read_command_lines, read_command_lines_1, get_command_line):
7574 Update.
7575 (copy_command_lines): Don't declare.
7576 * cli/cli-script.c (build_command_line): Use "new".
7577 (get_command_line): Return counted_command_line.
7578 (print_command_lines, execute_user_command)
7579 (execute_control_command_1, while_command, if_command): Update.
7580 (realloc_body_list): Remove.
7581 (process_next_line, recurse_read_control_structure): Update.
7582 (read_command_lines, read_command_lines_1): Return counted_command_line.
7583 (free_command_lines): Use "delete".
7584 (copy_command_lines): Remove.
7585 (define_command, document_command, show_user_1): Update.
7586 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7587 a counted_command_line.
7588 * breakpoint.h (counted_command_line): Remove typedef.
7589 (breakpoint_set_commands): Update.
7590 * breakpoint.c (check_no_tracepoint_commands)
7591 (validate_commands_for_breakpoint): Update.
7592 (breakpoint_set_commands): Change commands to be a
7593 counted_command_line.
7594 (commands_command_1, update_dprintf_command_list)
7595 (create_tracepoint_from_upload): Update.
7596
e2fc72e2
TT
75972018-05-04 Tom Tromey <tom@tromey.com>
7598
7599 * cli/cli-decode.h (cmd_list_element): New constructor.
7600 (~cmd_list_element): New destructor.
7601 (struct cmd_list_element): Add initializers.
7602 * cli/cli-decode.c (do_add_cmd): Use "new".
7603 (delete_cmd): Use "delete".
7604
a3b60e45
JK
76052018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7606 Pedro Alves <palves@redhat.com>
7607
7608 PR breakpoints/19806 and support for PR external/20207.
7609 * NEWS: Mention Aarch64 watchpoint improvements.
7610 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7611 watchpoints and PR external/20207 watchpoints.
7612 * nat/aarch64-linux-hw-point.c
7613 (kernel_supports_any_contiguous_range): New.
7614 (aarch64_watchpoint_offset): New.
7615 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7616 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7617 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7618 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7619 next_addr_orig_p. Support PR external/20207 watchpoints.
7620 (aarch64_downgrade_regs): New.
7621 (aarch64_dr_state_insert_one_point): New parameters offset and
7622 addr_orig.
7623 (aarch64_dr_state_remove_one_point): Likewise.
7624 (aarch64_handle_breakpoint): Update caller.
7625 (aarch64_handle_aligned_watchpoint): Likewise.
7626 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7627 aligned_offset.
7628 (aarch64_linux_set_debug_regs): Remove const from state. Call
7629 aarch64_downgrade_regs.
7630 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7631 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7632 (DR_CONTROL_MASK): ... this.
7633 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7634 (unsigned int aarch64_watchpoint_offset): New prototype.
7635 (aarch64_linux_set_debug_regs): Remove const from state.
7636 * utils.c (align_up, align_down): Move to ...
7637 * common/common-utils.c (align_up, align_down): ... here.
7638 * utils.h (align_up, align_down): Move to ...
7639 * common/common-utils.h (align_up, align_down): ... here.
7640
05bc7456
JB
76412018-05-04 Joel Brobecker <brobecker@adacore.com>
7642
7643 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7644 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7645 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7646 Re-implement to match the ABI as summarized in GCC's
7647 gcc/config/sparc/sparc.c. All callers updated.
7648 (sparc32_store_arguments): Remove assertion.
7649
2f433492
TT
76502018-05-04 Tom Tromey <tom@tromey.com>
7651
7652 * printcmd.c: Don't include tui.h.
7653 (decode_format): Use skip_spaces.
7654
9be2ae8f
TT
76552018-05-04 Tom Tromey <tom@tromey.com>
7656
7657 PR gdb/22619:
7658 * printcmd.c (last_count): New global.
7659 (x_command): Use saved count when repeating.
7660
f0b3976b
TT
76612018-05-04 Tom Tromey <tom@tromey.com>
7662
7663 * nto-procfs.c (do_closedir_cleanup): Remove.
7664 (procfs_pidlist): Use gdb_dir_up.
7665 * procfs.c (do_closedir_cleanup): Remove.
7666 (proc_update_threads): Use gdb_dir_up.
7667 * common/filestuff.h (struct gdb_dir_deleter): New.
7668 (gdb_dir_up): New typedef.
7669
862d101a
TT
76702018-05-04 Tom Tromey <tom@tromey.com>
7671
7672 * ada-lang.c (print_mention_exception): Use std::string.
7673
cb7de75e
TT
76742018-05-04 Tom Tromey <tom@tromey.com>
7675
7676 * ada-lang.c (create_excep_cond_exprs): Update.
7677 (ada_exception_catchpoint_cond_string): Use std::string.
7678
49d83361
TT
76792018-05-04 Tom Tromey <tom@tromey.com>
7680
7681 * ada-lang.c (xget_renaming_scope): Return std::string.
7682 (old_renaming_is_invisible): Update.
7683
ade72a34
TT
76842018-05-04 Tom Tromey <tom@tromey.com>
7685
7686 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7687 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7688
2be4d7f0
UW
76892018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7690
7691 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7692
69b6ecb0
TT
76932018-05-04 Tom Tromey <tom@tromey.com>
7694
7695 * remote.c (remote_query_supported_append): Change type.
7696 (remote_check_symbols): Update.
7697
bf27f0e2
PP
76982018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7699
7700 PR gdb/11420
7701 * configure.ac: Prepend libpython.
7702 * python/python-config.py: Likewise.
7703 * configure: Regenerate.
7704
4ea17de8
SM
77052018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7706
7707 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7708
bd732259
PA
77092018-05-03 Pedro Alves <palves@redhat.com>
7710
7711 * s390-linux-nat.c
7712 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7713 override. Write 'true' instead of '1'.
7714 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7715 declaration.
7716
d9f719f1
PA
77172018-05-02 Pedro Alves <palves@redhat.com>
7718
7719 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7720 add_inf_child_target.
7721 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7722 add_inf_child_target.
7723 * aix-thread.c (aix_thread_target_info): New.
7724 (aix_thread_target) <shortname, longname, doc>: Delete.
7725 <info>: New.
7726 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7727 add_inf_child_target.
7728 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7729 add_inf_child_target.
7730 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7731 add_inf_child_target.
7732 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7733 add_inf_child_target.
7734 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7735 add_inf_child_target.
7736 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7737 add_inf_child_target.
7738 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7739 add_inf_child_target.
7740 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7741 add_inf_child_target.
7742 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7743 add_inf_child_target.
7744 * bfd-target.c (target_bfd_target_info): New.
7745 (target_bfd) <shortname, longname, doc>: Delete.
7746 <info>: New.
7747 * bsd-kvm.c (bsd_kvm_target_info): New.
7748 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7749 <info>: New.
7750 (bsd_kvm_target::open): Rename to ...
7751 (bsd_kvm_target_open): ... this. Adjust.
7752 * bsd-uthread.c (bsd_uthread_target_info): New.
7753 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7754 <info>: New.
7755 * corefile.c (core_file_command): Adjust.
7756 * corelow.c (core_target_info): New.
7757 (core_target) <shortname, longname, doc>: Delete.
7758 <info>: New.
7759 (core_target::open): Rename to ...
7760 (core_target_open): ... this. Adjust.
7761 * ctf.c (ctf_target_info): New.
7762 (ctf_target) <shortname, longname, doc>: Delete.
7763 <info>: New.
7764 (ctf_target::open): Rename to ...
7765 (ctf_target_open): ... this.
7766 (_initialize_ctf): Adjust.
7767 * exec.c (exec_target_info): New.
7768 (exec_target) <shortname, longname, doc>: Delete.
7769 <info>: New.
7770 (exec_target::open): Rename to ...
7771 (exec_target_open): ... this.
7772 * gdbcore.h (core_target_open): Declare.
7773 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7774 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7775 add_inf_child_target.
7776 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7777 add_inf_child_target.
7778 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7779 add_inf_child_target.
7780 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7781 add_inf_child_target.
7782 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7783 add_inf_child_target.
7784 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7785 add_inf_child_target.
7786 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7787 add_inf_child_target.
7788 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7789 add_inf_child_target.
7790 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7791 add_inf_child_target.
7792 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7793 add_inf_child_target.
7794 * inf-child.c (inf_child_target_info): New.
7795 (inf_child_target::info): New.
7796 (inf_child_open_target): Remove 'target' parameter. Use
7797 get_native_target instead.
7798 (inf_child_target::open): Delete.
7799 (add_inf_child_target): New.
7800 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7801 Delete.
7802 <info>: New.
7803 (add_inf_child_target): Declare.
7804 (inf_child_open_target): Declare.
7805 * linux-thread-db.c (thread_db_target_info): New.
7806 (thread_db_target) <shortname, longname, doc>: Delete.
7807 <info>: New.
7808 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7809 add_inf_child_target.
7810 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7811 add_inf_child_target.
7812 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7813 add_inf_child_target.
7814 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7815 add_inf_child_target.
7816 * make-target-delegates (print_class): Adjust.
7817 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7818 add_inf_child_target.
7819 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7820 add_inf_child_target.
7821 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7822 add_inf_child_target.
7823 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7824 add_inf_child_target.
7825 * nto-procfs.c (nto_native_target_info): New.
7826 (nto_procfs_target_native) <shortname, longname, doc>:
7827 Delete.
7828 <info>: New.
7829 (nto_procfs_target_info): New.
7830 (nto_procfs_target_procfs) <shortname, longname, doc>:
7831 Delete.
7832 <info>: New.
7833 (init_procfs_targets): Adjust.
7834 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7835 add_inf_child_target.
7836 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7837 add_inf_child_target.
7838 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7839 add_inf_child_target.
7840 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7841 add_inf_child_target.
7842 * ravenscar-thread.c (ravenscar_target_info): New.
7843 (ravenscar_thread_target) <shortname, longname, doc>:
7844 Delete.
7845 <info>: New.
7846 * record-btrace.c (record_btrace_target_info):
7847 (record_btrace_target) <shortname, longname, doc>: Delete.
7848 <info>: New.
7849 (record_btrace_target::open): Rename to ...
7850 (record_btrace_target_open): ... this. Adjust.
7851 * record-full.c (record_longname, record_doc): New.
7852 (record_full_base_target) <shortname, longname, doc>: Delete.
7853 <info>: New.
7854 (record_full_target_info): New.
7855 (record_full_target): <shortname>: Delete.
7856 <info>: New.
7857 (record_full_core_open_1, record_full_open_1): Update comments.
7858 (record_full_base_target::open): Rename to ...
7859 (record_full_open): ... this.
7860 (cmd_record_full_restore): Update.
7861 (_initialize_record_full): Update.
7862 * remote-sim.c (remote_sim_target_info): New.
7863 (gdbsim_target) <shortname, longname, doc>: Delete.
7864 <info>: New.
7865 (gdbsim_target::open): Rename to ...
7866 (gdbsim_target_open): ... this.
7867 (_initialize_remote_sim): Adjust.
7868 * remote.c (remote_doc): New.
7869 (remote_target_info): New.
7870 (remote_target) <shortname, longname, doc>: Delete.
7871 <info>: New.
7872 (extended_remote_target_info): New.
7873 (extended_remote_target) <shortname, longname, doc>: Delete.
7874 <info>: New.
7875 (remote_target::open_1): Make static. Adjust.
7876 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7877 * s390-linux-nat.c (_initialize_s390_nat): Use
7878 add_inf_child_target.
7879 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7880 add_inf_child_target.
7881 * sol-thread.c (thread_db_target_info): New.
7882 (sol_thread_target) <shortname, longname, doc>: Delete.
7883 <info>: New.
7884 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7885 add_inf_child_target.
7886 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7887 add_inf_child_target.
7888 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7889 add_inf_child_target.
7890 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7891 add_inf_child_target.
7892 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7893 add_inf_child_target.
7894 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7895 add_inf_child_target.
7896 * spu-linux-nat.c (_initialize_spu_nat): Use
7897 add_inf_child_target.
7898 * spu-multiarch.c (spu_multiarch_target_info): New.
7899 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7900 <info>: New.
7901 * target-delegates.c: Regenerate.
7902 * target.c: Include <unordered_map>.
7903 (target_ops_p): Delete.
7904 (DEF_VEC_P(target_ops_p)): Delete.
7905 (target_factories): New.
7906 (test_target_info): New.
7907 (test_target_ops::info): New.
7908 (open_target): Adjust to use target_factories.
7909 (add_target_with_completer): Rename to ...
7910 (add_target): ... this. Change prototype. Register target_info
7911 and open callback in target_factories. Register target_info in
7912 command context instead of target_ops.
7913 (add_target): Delete old implementation.
7914 (add_deprecated_target_alias): Change prototype. Adjust.
7915 (the_native_target): New.
7916 (set_native_target, get_native_target): New.
7917 (find_default_run_target): Use the_native_target.
7918 (find_attach_target, find_run_target): Simplify.
7919 (target_ops::open): Delete.
7920 (dummy_target_info): New.
7921 (dummy_target::shortname, dummy_target::longname)
7922 (dummy_target::doc): Delete.
7923 (dummy_target::info): New.
7924 (debug_target::shortname, debug_target::longname)
7925 (debug_target::doc): Delete.
7926 (debug_target::info): New.
7927 * target.h (struct target_info): New.
7928 (target_ops::~target_ops): Add comment.
7929 (target_ops::info): New.
7930 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7931 longer virtual. Implement in terms of target_info.
7932 (set_native_target, get_native_target): Declare.
7933 (target_open_ftype): New.
7934 (add_target, add_target_with_completer)
7935 (add_deprecated_target_alias): Change prototype.
7936 (test_target) <shortname, longname, doc>: Delete.
7937 <info>: New.
7938 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7939 add_inf_child_target.
7940 * tracefile-tfile.c (tfile_target_info): New.
7941 (tfile_target) <shortname, longname, doc>: Delete.
7942 <info>: New.
7943 (tfile_target::open): Rename to ...
7944 (tfile_target_open): ... this.
7945 (_initialize_tracefile_tfile): Adjust.
7946 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7947 add_inf_child_target.
7948 * windows-nat.c (_initialize_windows_nat): Use
7949 add_inf_child_target.
7950 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7951 add_inf_child_target.
7952
135340af
PA
79532018-05-02 Pedro Alves <palves@redhat.com>
7954
7955 * linux-nat.h (linux_nat_target) <low_new_thread,
7956 low_delete_thread, low_new_fork, low_forget_process,
7957 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7958 New virtual methods.
7959 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7960 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7961 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7962 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7963 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7964 Delete.
7965 * linux-fork.c (delete_fork): Adjust to call low method.
7966 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7967 (linux_nat_new_fork, linux_nat_forget_process_hook)
7968 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7969 (linux_nat_status_is_event):
7970 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7971 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7972 to call low method.
7973 (sigtrap_is_event): Rename to ...
7974 (linux_nat_target::low_status_is_event): ... this.
7975 (linux_nat_set_status_is_event): Delete.
7976 (save_stop_reason, linux_nat_wait_1)
7977 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7978 low methods.
7979 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7980 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7981 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7982 (linux_nat_set_prepare_to_resume): Delete.
7983 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7984 low virtual methods.
7985 * amd64-linux-nat.c: Likewise.
7986 * arm-linux-nat.c: Likewise.
7987 * i386-linux-nat.c: Likewise.
7988 * ia64-linux-nat.c: Likewise.
7989 * mips-linux-nat.c: Likewise.
7990 * ppc-linux-nat.c: Likewise.
7991 * s390-linux-nat.c: Likewise.
7992 * sparc64-linux-nat.c: Likewise.
7993 * x86-linux-nat.c: Likewise.
7994 * x86-linux-nat.h: Include "nat/x86-linux.h".
7995 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7996 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7997 Override methods.
7998
57810aa7
PA
79992018-05-02 Pedro Alves <palves@redhat.com>
8000
8001 * target.h (target_ops)
8002 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8003 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8004 stopped_by_watchpoint, have_continuable_watchpoint,
8005 stopped_data_address, watchpoint_addr_within_range,
8006 can_accel_watchpoint_condition, can_run, thread_alive,
8007 has_all_memory, has_memory, has_stack, has_registers,
8008 has_execution, can_async_p, is_async_p, supports_non_stop,
8009 always_non_stop_p, can_execute_reverse, supports_multi_process,
8010 supports_enable_disable_tracepoint,
8011 supports_disable_randomization, supports_string_tracing,
8012 supports_evaluation_of_breakpoint_conditions,
8013 can_run_breakpoint_commands, filesystem_is_local,
8014 can_download_tracepoint, get_trace_state_variable_value,
8015 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8016 record_is_replaying, record_will_replay,
8017 augmented_libraries_svr4_read>: Adjust to return bool.
8018 * aarch64-linux-nat.c: All implementations adjusted.
8019 * aix-thread.c: All implementations adjusted.
8020 * arm-linux-nat.c: All implementations adjusted.
8021 * breakpoint.c: All implementations adjusted.
8022 * bsd-kvm.c: All implementations adjusted.
8023 * bsd-uthread.c: All implementations adjusted.
8024 * corelow.c: All implementations adjusted.
8025 * ctf.c: All implementations adjusted.
8026 * darwin-nat.c: All implementations adjusted.
8027 * darwin-nat.h: All implementations adjusted.
8028 * exec.c: All implementations adjusted.
8029 * fbsd-nat.c: All implementations adjusted.
8030 * fbsd-nat.h: All implementations adjusted.
8031 * gnu-nat.c: All implementations adjusted.
8032 * gnu-nat.h: All implementations adjusted.
8033 * go32-nat.c: All implementations adjusted.
8034 * ia64-linux-nat.c: All implementations adjusted.
8035 * inf-child.c: All implementations adjusted.
8036 * inf-child.h: All implementations adjusted.
8037 * inf-ptrace.c: All implementations adjusted.
8038 * inf-ptrace.h: All implementations adjusted.
8039 * linux-nat.c: All implementations adjusted.
8040 * linux-nat.h: All implementations adjusted.
8041 * mips-linux-nat.c: All implementations adjusted.
8042 * nto-procfs.c: All implementations adjusted.
8043 * ppc-linux-nat.c: All implementations adjusted.
8044 * procfs.c: All implementations adjusted.
8045 * ravenscar-thread.c: All implementations adjusted.
8046 * record-btrace.c: All implementations adjusted.
8047 * record-full.c: All implementations adjusted.
8048 * remote-sim.c: All implementations adjusted.
8049 * remote.c: All implementations adjusted.
8050 * s390-linux-nat.c: All implementations adjusted.
8051 * sol-thread.c: All implementations adjusted.
8052 * spu-multiarch.c: All implementations adjusted.
8053 * target-delegates.c: All implementations adjusted.
8054 * target.c: All implementations adjusted.
8055 * target.h: All implementations adjusted.
8056 * tracefile-tfile.c: All implementations adjusted.
8057 * tracefile.c: All implementations adjusted.
8058 * tracefile.h: All implementations adjusted.
8059 * windows-nat.c: All implementations adjusted.
8060 * x86-linux-nat.h: All implementations adjusted.
8061 * x86-nat.h: All implementations adjusted.
8062
ad6a4e2d
PA
80632018-05-02 Pedro Alves <palves@redhat.com>
8064
8065 * make-target-delegates (scan_target_h): Don't trim lines here.
8066 Replace sequences of tabs and/or whitespace with a single
8067 whitespace.
8068 (top level, parsing methods): Trim each line before processing it
8069 here.
8070
f6ac5f3d
PA
80712018-05-02 Pedro Alves <palves@redhat.com>
8072 John Baldwin <jhb@freebsd.org>
8073
8074 * target.h (enum strata) <debug_stratum>: New.
8075 (struct target_ops) <all delegation methods>: Replace by C++
8076 virtual methods, and drop "to_" prefix. All references updated
8077 throughout.
8078 <to_shortname, to_longname, to_doc, to_data,
8079 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8080 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8081 virtual methods. All references updated throughout.
8082 <can_attach, supports_terminal_ours, can_create_inferior,
8083 get_thread_control_capabilities, attach_no_wait>: New
8084 virtual methods.
8085 <insert_breakpoint, remove_breakpoint>: Now
8086 TARGET_DEFAULT_NORETURN methods.
8087 <info_proc>: Now returns bool.
8088 <to_magic>: Delete.
8089 (OPS_MAGIC): Delete.
8090 (current_target): Delete. All references replaced by references
8091 to ...
8092 (target_stack): ... this. New.
8093 (target_shortname, target_longname): Adjust.
8094 (target_can_run): Now a function declaration.
8095 (default_child_has_all_memory, default_child_has_memory)
8096 (default_child_has_stack, default_child_has_registers)
8097 (default_child_has_execution): Remove target_ops parameter.
8098 (complete_target_initialization): Delete.
8099 (memory_breakpoint_target): New template class.
8100 (test_target_ops): Refactor as a C++ class with virtual methods.
8101 * make-target-delegates (NAME_PART): Tighten.
8102 (POINTER_PART, CP_SYMBOL): New.
8103 (SIMPLE_RETURN_PART): Reimplement.
8104 (VEC_RETURN_PART): Expect less.
8105 (RETURN_PART, VIRTUAL_PART): New.
8106 (METHOD): Adjust to C++ virtual methods.
8107 (scan_target_h): Remove reference to C99.
8108 (dname): Output "target_ops::" prefix.
8109 (write_function_header): Adjust to output a C++ class method.
8110 (write_declaration): New.
8111 (write_delegator): Adjust to output a C++ class method.
8112 (tdname): Output "dummy_target::" prefix.
8113 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8114 method.
8115 (tdefault_names, debug_names): Delete.
8116 (return_types, tdefaults, styles, argtypes_array): New.
8117 (top level): All methods are delegators.
8118 (print_class): New.
8119 (top level): Print dummy_target and debug_target classes.
8120 * target-delegates.c: Regenerate.
8121 * target-debug.h (target_debug_print_enum_info_proc_what)
8122 (target_debug_print_thread_control_capabilities)
8123 (target_debug_print_thread_info_p): New.
8124 * target.c (dummy_target): Delete.
8125 (the_dummy_target, the_debug_target): New.
8126 (target_stack): Now extern.
8127 (set_targetdebug): Push/unpush debug target.
8128 (default_child_has_all_memory, default_child_has_memory)
8129 (default_child_has_stack, default_child_has_registers)
8130 (default_child_has_execution): Remove target_ops parameter.
8131 (complete_target_initialization): Delete.
8132 (add_target_with_completer): No longer call
8133 complete_target_initialization.
8134 (target_supports_terminal_ours): Use regular delegation.
8135 (update_current_target): Delete.
8136 (push_target): No longer check magic number. Don't call
8137 update_current_target.
8138 (unpush_target): Don't call update_current_target.
8139 (target_is_pushed): No longer check magic number.
8140 (target_require_runnable): Skip for all stratums over
8141 process_stratum.
8142 (target_ops::info_proc): New.
8143 (target_info_proc): Use find_target_at and
8144 find_default_run_target.
8145 (target_supports_disable_randomization): Use regular delegation.
8146 (target_get_osdata): Use find_target_at.
8147 (target_ops::open, target_ops::close, target_ops::can_attach)
8148 (target_ops::attach, target_ops::can_create_inferior)
8149 (target_ops::create_inferior, target_ops::can_run)
8150 (target_can_run): New.
8151 (default_fileio_target): Use regular delegation.
8152 (target_ops::fileio_open, target_ops::fileio_pwrite)
8153 (target_ops::fileio_pread, target_ops::fileio_fstat)
8154 (target_ops::fileio_close, target_ops::fileio_unlink)
8155 (target_ops::fileio_readlink): New.
8156 (target_fileio_open_1, target_fileio_unlink)
8157 (target_fileio_readlink): Always call the target method. Handle
8158 FILEIO_ENOSYS.
8159 (return_zero, return_zero_has_execution): Delete.
8160 (init_dummy_target): Delete.
8161 (dummy_target::dummy_target, dummy_target::shortname)
8162 (dummy_target::longname, dummy_target::doc)
8163 (debug_target::debug_target, debug_target::shortname)
8164 (debug_target::longname, debug_target::doc): New.
8165 (target_supports_delete_record): Use regular delegation.
8166 (setup_target_debug): Delete.
8167 (maintenance_print_target_stack): Skip debug_stratum.
8168 (initialize_targets): Instantiate the_dummy_target and
8169 the_debug_target.
8170 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8171 use target_stack.
8172 (target_auxv_search, fprint_target_auxv): Adjust.
8173 (info_auxv_command): Adjust to use target_stack.
8174 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8175 * exceptions.c (print_flush): Handle a NULL target_stack.
8176 * regcache.c (target_ops_no_register): Refactor as class with
8177 virtual methods.
8178
8179 * exec.c (exec_target): New class.
8180 (exec_ops): Now an exec_target.
8181 (exec_open, exec_close_1, exec_get_section_table)
8182 (exec_xfer_partial, exec_files_info, exec_has_memory)
8183 (exec_make_note_section): Refactor as exec_target methods.
8184 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8185 Delete.
8186 (exec_target::find_memory_regions): New.
8187 (_initialize_exec): Don't call init_exec_ops.
8188 * gdbcore.h (exec_file_clear): Delete.
8189
8190 * corefile.c (core_target): Delete.
8191 (core_file_command): Adjust.
8192 * corelow.c (core_target): New class.
8193 (the_core_target): New.
8194 (core_close): Remove target_ops parameter.
8195 (core_close_cleanup): Adjust.
8196 (core_target::close): New.
8197 (core_open, core_detach, get_core_registers, core_files_info)
8198 (core_xfer_partial, core_thread_alive, core_read_description)
8199 (core_pid_to_str, core_thread_name, core_has_memory)
8200 (core_has_stack, core_has_registers, core_info_proc): Rework as
8201 core_target methods.
8202 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8203 (_initialize_corelow): Initialize the_core_target.
8204 * gdbcore.h (core_target): Delete.
8205 (the_core_target): New.
8206
8207 * ctf.c: (ctf_target): New class.
8208 (ctf_ops): Now a ctf_target.
8209 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8210 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8211 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8212 methods.
8213 (init_ctf_ops): Delete.
8214 (_initialize_ctf): Don't call it.
8215 * tracefile-tfile.c (tfile_target): New class.
8216 (tfile_ops): Now a tfile_target.
8217 (tfile_open, tfile_close, tfile_files_info)
8218 (tfile_get_tracepoint_status, tfile_trace_find)
8219 (tfile_fetch_registers, tfile_xfer_partial)
8220 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8221 Refactor as tfile_target methods.
8222 (tfile_xfer_partial_features): Remove target_ops parameter.
8223 (init_tfile_ops): Delete.
8224 (_initialize_tracefile_tfile): Don't call it.
8225 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8226 (tracefile_has_stack, tracefile_has_registers)
8227 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8228 tracefile_target methods.
8229 (init_tracefile_ops): Delete.
8230 (tracefile_target::tracefile_target): New.
8231 * tracefile.h: Include "target.h".
8232 (tracefile_target): New class.
8233 (init_tracefile_ops): Delete.
8234
8235 * spu-multiarch.c (spu_multiarch_target): New class.
8236 (spu_ops): Now a spu_multiarch_target.
8237 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8238 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8239 (spu_search_memory, spu_mourn_inferior): Refactor as
8240 spu_multiarch_target methods.
8241 (init_spu_ops): Delete.
8242 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8243 complete_target_initialization.
8244
8245 * ravenscar-thread.c (ravenscar_thread_target): New class.
8246 (ravenscar_ops): Now a ravenscar_thread_target.
8247 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8248 (ravenscar_thread_alive, ravenscar_pid_to_str)
8249 (ravenscar_fetch_registers, ravenscar_store_registers)
8250 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8251 (ravenscar_stopped_by_hw_breakpoint)
8252 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8253 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8254 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8255 methods.
8256 (init_ravenscar_thread_ops): Delete.
8257 (_initialize_ravenscar): Remove references to
8258 init_ravenscar_thread_ops and complete_target_initialization.
8259
8260 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8261 (bsd_uthread_target): New class.
8262 (bsd_uthread_ops): Now a bsd_uthread_target.
8263 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8264 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8265 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8266 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8267 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8268 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8269 (bsd_uthread_target): Delete function.
8270 (_initialize_bsd_uthread): Remove reference to
8271 complete_target_initialization.
8272
8273 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8274 (target_bfd): ... this new class.
8275 (target_bfd_xfer_partial, target_bfd_get_section_table)
8276 (target_bfd_close): Refactor as target_bfd methods.
8277 (target_bfd::~target_bfd): New.
8278 (target_bfd_reopen): Adjust.
8279 (target_bfd::close): New.
8280
8281 * record-btrace.c (record_btrace_target): New class.
8282 (record_btrace_ops): Now a record_btrace_target.
8283 (record_btrace_open, record_btrace_stop_recording)
8284 (record_btrace_disconnect, record_btrace_close)
8285 (record_btrace_async, record_btrace_info)
8286 (record_btrace_insn_history, record_btrace_insn_history_range)
8287 (record_btrace_insn_history_from, record_btrace_call_history)
8288 (record_btrace_call_history_range)
8289 (record_btrace_call_history_from, record_btrace_record_method)
8290 (record_btrace_is_replaying, record_btrace_will_replay)
8291 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8292 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8293 (record_btrace_store_registers, record_btrace_prepare_to_store)
8294 (record_btrace_to_get_unwinder)
8295 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8296 (record_btrace_commit_resume, record_btrace_wait)
8297 (record_btrace_stop, record_btrace_can_execute_reverse)
8298 (record_btrace_stopped_by_sw_breakpoint)
8299 (record_btrace_supports_stopped_by_sw_breakpoint)
8300 (record_btrace_stopped_by_hw_breakpoint)
8301 (record_btrace_supports_stopped_by_hw_breakpoint)
8302 (record_btrace_update_thread_list, record_btrace_thread_alive)
8303 (record_btrace_goto_begin, record_btrace_goto_end)
8304 (record_btrace_goto, record_btrace_stop_replaying_all)
8305 (record_btrace_execution_direction)
8306 (record_btrace_prepare_to_generate_core)
8307 (record_btrace_done_generating_core): Refactor as
8308 record_btrace_target methods.
8309 (init_record_btrace_ops): Delete.
8310 (_initialize_record_btrace): Remove reference to
8311 init_record_btrace_ops.
8312 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8313 the execution_direction global.
8314 (record_full_base_target, record_full_target)
8315 (record_full_core_target): New classes.
8316 (record_full_ops): Now a record_full_target.
8317 (record_full_core_ops): Now a record_full_core_target.
8318 (record_full_target::detach, record_full_target::disconnect)
8319 (record_full_core_target::disconnect)
8320 (record_full_target::mourn_inferior, record_full_target::kill):
8321 New.
8322 (record_full_open, record_full_close, record_full_async): Refactor
8323 as methods of the record_full_base_target class.
8324 (record_full_resume, record_full_commit_resume): Refactor
8325 as methods of the record_full_target class.
8326 (record_full_wait, record_full_stopped_by_watchpoint)
8327 (record_full_stopped_data_address)
8328 (record_full_stopped_by_sw_breakpoint)
8329 (record_full_supports_stopped_by_sw_breakpoint)
8330 (record_full_stopped_by_hw_breakpoint)
8331 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8332 methods of the record_full_base_target class.
8333 (record_full_store_registers, record_full_xfer_partial)
8334 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8335 Refactor as methods of the record_full_target class.
8336 (record_full_can_execute_reverse, record_full_get_bookmark)
8337 (record_full_goto_bookmark, record_full_execution_direction)
8338 (record_full_record_method, record_full_info, record_full_delete)
8339 (record_full_is_replaying, record_full_will_replay)
8340 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8341 (record_full_stop_replaying): Refactor as methods of the
8342 record_full_base_target class.
8343 (record_full_core_resume, record_full_core_kill)
8344 (record_full_core_fetch_registers)
8345 (record_full_core_prepare_to_store)
8346 (record_full_core_store_registers, record_full_core_xfer_partial)
8347 (record_full_core_insert_breakpoint)
8348 (record_full_core_remove_breakpoint)
8349 (record_full_core_has_execution): Refactor
8350 as methods of the record_full_core_target class.
8351 (record_full_base_target::supports_delete_record): New.
8352 (init_record_full_ops): Delete.
8353 (init_record_full_core_ops): Delete.
8354 (record_full_save): Refactor as method of the
8355 record_full_base_target class.
8356 (_initialize_record_full): Remove references to
8357 init_record_full_ops and init_record_full_core_ops.
8358
8359 * remote.c (remote_target, extended_remote_target): New classes.
8360 (remote_ops): Now a remote_target.
8361 (extended_remote_ops): Now an extended_remote_target.
8362 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8363 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8364 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8365 (remote_pass_signals, remote_set_syscall_catchpoint)
8366 (remote_program_signals, )
8367 (remote_thread_always_alive): Remove target_ops parameter.
8368 (remote_thread_alive, remote_thread_name)
8369 (remote_update_thread_list, remote_threads_extra_info)
8370 (remote_static_tracepoint_marker_at)
8371 (remote_static_tracepoint_markers_by_strid)
8372 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8373 (remote_open): Refactor as methods of remote_target.
8374 (extended_remote_open, extended_remote_detach)
8375 (extended_remote_attach, extended_remote_post_attach):
8376 (extended_remote_supports_disable_randomization)
8377 (extended_remote_create_inferior): : Refactor as method of
8378 extended_remote_target.
8379 (remote_set_permissions, remote_open_1, remote_detach)
8380 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8381 (remote_resume, remote_commit_resume, remote_stop)
8382 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8383 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8384 (remote_prepare_to_store, remote_store_registers)
8385 (remote_flash_erase, remote_flash_done, remote_files_info)
8386 (remote_kill, remote_mourn, remote_insert_breakpoint)
8387 (remote_remove_breakpoint, remote_insert_watchpoint)
8388 (remote_watchpoint_addr_within_range)
8389 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8390 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8391 (remote_supports_stopped_by_sw_breakpoint)
8392 (remote_stopped_by_hw_breakpoint)
8393 (remote_supports_stopped_by_hw_breakpoint)
8394 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8395 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8396 (remote_verify_memory): Refactor as methods of remote_target.
8397 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8398 parameter.
8399 (remote_xfer_partial, remote_get_memory_xfer_limit)
8400 (remote_search_memory, remote_rcmd, remote_memory_map)
8401 (remote_pid_to_str, remote_get_thread_local_address)
8402 (remote_get_tib_address, remote_read_description): Refactor as
8403 methods of remote_target.
8404 (remote_target::fileio_open, remote_target::fileio_pwrite)
8405 (remote_target::fileio_pread, remote_target::fileio_close): New.
8406 (remote_hostio_readlink, remote_hostio_fstat)
8407 (remote_filesystem_is_local, remote_can_execute_reverse)
8408 (remote_supports_non_stop, remote_supports_disable_randomization)
8409 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8410 (remote_supports_enable_disable_tracepoint)
8411 (remote_supports_string_tracing)
8412 (remote_can_run_breakpoint_commands, remote_trace_init)
8413 (remote_download_tracepoint, remote_can_download_tracepoint)
8414 (remote_download_trace_state_variable, remote_enable_tracepoint)
8415 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8416 (remote_trace_start, remote_get_trace_status)
8417 (remote_get_tracepoint_status, remote_trace_stop)
8418 (remote_trace_find, remote_get_trace_state_variable_value)
8419 (remote_save_trace_data, remote_get_raw_trace_data)
8420 (remote_set_disconnected_tracing, remote_core_of_thread)
8421 (remote_set_circular_trace_buffer, remote_traceframe_info)
8422 (remote_get_min_fast_tracepoint_insn_len)
8423 (remote_set_trace_buffer_size, remote_set_trace_notes)
8424 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8425 (remote_disable_btrace, remote_teardown_btrace)
8426 (remote_read_btrace, remote_btrace_conf)
8427 (remote_augmented_libraries_svr4_read, remote_load)
8428 (remote_pid_to_exec_file, remote_can_do_single_step)
8429 (remote_execution_direction, remote_thread_handle_to_thread_info):
8430 Refactor as methods of remote_target.
8431 (init_remote_ops, init_extended_remote_ops): Delete.
8432 (remote_can_async_p, remote_is_async_p, remote_async)
8433 (remote_thread_events, remote_upload_tracepoints)
8434 (remote_upload_trace_state_variables): Refactor as methods of
8435 remote_target.
8436 (_initialize_remote): Remove references to init_remote_ops and
8437 init_extended_remote_ops.
8438
8439 * remote-sim.c (gdbsim_target): New class.
8440 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8441 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8442 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8443 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8444 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8445 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8446 Refactor as methods of gdbsim_target.
8447 (gdbsim_ops): Now a gdbsim_target.
8448 (init_gdbsim_ops): Delete.
8449 (gdbsim_cntrl_c): Adjust.
8450 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8451
8452 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8453 (the_amd64_linux_nat_target): New.
8454 (amd64_linux_fetch_inferior_registers)
8455 (amd64_linux_store_inferior_registers): Refactor as methods of
8456 amd64_linux_nat_target.
8457 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8458 * i386-linux-nat.c: Don't include "linux-nat.h".
8459 (i386_linux_nat_target): New class.
8460 (the_i386_linux_nat_target): New.
8461 (i386_linux_fetch_inferior_registers)
8462 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8463 as methods of i386_linux_nat_target.
8464 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8465 * inf-child.c (inf_child_ops): Delete.
8466 (inf_child_fetch_inferior_registers)
8467 (inf_child_store_inferior_registers): Delete.
8468 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8469 methods of inf_child_target.
8470 (inf_child_target::supports_terminal_ours)
8471 (inf_child_target::terminal_init)
8472 (inf_child_target::terminal_inferior)
8473 (inf_child_target::terminal_ours_for_output)
8474 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8475 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8476 New.
8477 (inf_child_open, inf_child_disconnect, inf_child_close)
8478 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8479 (inf_child_post_startup_inferior, inf_child_can_run)
8480 (inf_child_pid_to_exec_file): Refactor as methods of
8481 inf_child_target.
8482 (inf_child_follow_fork): Delete.
8483 (inf_child_target::can_create_inferior)
8484 (inf_child_target::can_attach): New.
8485 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8486 (inf_child_target::has_stack, inf_child_target::has_registers)
8487 (inf_child_target::has_execution): New.
8488 (inf_child_fileio_open, inf_child_fileio_pwrite)
8489 (inf_child_fileio_pread, inf_child_fileio_fstat)
8490 (inf_child_fileio_close, inf_child_fileio_unlink)
8491 (inf_child_fileio_readlink, inf_child_use_agent)
8492 (inf_child_can_use_agent): Refactor as methods of
8493 inf_child_target.
8494 (return_zero, inf_child_target): Delete.
8495 (inf_child_target::inf_child_target): New.
8496 * inf-child.h: Include "target.h".
8497 (inf_child_target): Delete function prototype.
8498 (inf_child_target): New class.
8499 (inf_child_open_target, inf_child_mourn_inferior)
8500 (inf_child_maybe_unpush_target): Delete.
8501 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8502 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8503 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8504 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8505 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8506 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8507 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8508 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8509 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8510 methods of inf_ptrace_target.
8511 (inf_ptrace_target): Delete function.
8512 * inf-ptrace.h: Include "inf-child.h".
8513 (inf_ptrace_target): Delete function declaration.
8514 (inf_ptrace_target): New class.
8515 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8516 * linux-nat.c (linux_target): New.
8517 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8518 (linux_nat_target::~linux_nat_target): New.
8519 (linux_child_post_attach, linux_child_post_startup_inferior)
8520 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8521 (linux_child_remove_fork_catchpoint)
8522 (linux_child_insert_vfork_catchpoint)
8523 (linux_child_remove_vfork_catchpoint)
8524 (linux_child_insert_exec_catchpoint)
8525 (linux_child_remove_exec_catchpoint)
8526 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8527 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8528 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8529 (linux_nat_stopped_data_address)
8530 (linux_nat_stopped_by_sw_breakpoint)
8531 (linux_nat_supports_stopped_by_sw_breakpoint)
8532 (linux_nat_stopped_by_hw_breakpoint)
8533 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8534 (linux_nat_kill, linux_nat_mourn_inferior)
8535 (linux_nat_xfer_partial, linux_nat_thread_alive)
8536 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8537 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8538 (linux_child_static_tracepoint_markers_by_strid)
8539 (linux_nat_is_async_p, linux_nat_can_async_p)
8540 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8541 (linux_nat_supports_multi_process)
8542 (linux_nat_supports_disable_randomization, linux_nat_async)
8543 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8544 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8545 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8546 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8547 methods of linux_nat_target.
8548 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8549 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8550 parameter.
8551 (check_stopped_by_watchpoint): Adjust.
8552 (linux_xfer_partial): Delete.
8553 (linux_target_install_ops, linux_target, linux_nat_add_target):
8554 Delete.
8555 (linux_nat_target::linux_nat_target): New.
8556 * linux-nat.h: Include "inf-ptrace.h".
8557 (linux_nat_target): New.
8558 (linux_target, linux_target_install_ops, linux_nat_add_target):
8559 Delete function declarations.
8560 (linux_target): Declare global.
8561 * linux-thread-db.c (thread_db_target): New.
8562 (thread_db_target::thread_db_target): New.
8563 (thread_db_ops): Delete.
8564 (the_thread_db_target): New.
8565 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8566 (thread_db_update_thread_list, thread_db_pid_to_str)
8567 (thread_db_extra_thread_info)
8568 (thread_db_thread_handle_to_thread_info)
8569 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8570 (thread_db_resume): Refactor as methods of thread_db_target.
8571 (init_thread_db_ops): Delete.
8572 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8573 * x86-linux-nat.c: Don't include "linux-nat.h".
8574 (super_post_startup_inferior): Delete.
8575 (x86_linux_nat_target::~x86_linux_nat_target): New.
8576 (x86_linux_child_post_startup_inferior)
8577 (x86_linux_read_description, x86_linux_enable_btrace)
8578 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8579 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8580 methods of x86_linux_nat_target.
8581 (x86_linux_create_target): Delete. Bits folded ...
8582 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8583 pointer.
8584 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8585 (x86_linux_nat_target): New class.
8586 (x86_linux_create_target): Delete.
8587 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8588 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8589 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8590 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8591 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8592 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8593 make extern.
8594 (x86_use_watchpoints): Delete.
8595 * x86-nat.h: Include "breakpoint.h" and "target.h".
8596 (x86_use_watchpoints): Delete.
8597 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8598 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8599 (x86_insert_watchpoint, x86_remove_watchpoint)
8600 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8601 (x86_stopped_by_hw_breakpoint): New declarations.
8602 (x86_nat_target): New template class.
8603
8604 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8605 (the_ppc_linux_nat_target): New.
8606 (ppc_linux_fetch_inferior_registers)
8607 (ppc_linux_can_use_hw_breakpoint)
8608 (ppc_linux_region_ok_for_hw_watchpoint)
8609 (ppc_linux_ranged_break_num_registers)
8610 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8611 (ppc_linux_insert_mask_watchpoint)
8612 (ppc_linux_remove_mask_watchpoint)
8613 (ppc_linux_can_accel_watchpoint_condition)
8614 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8615 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8616 (ppc_linux_watchpoint_addr_within_range)
8617 (ppc_linux_masked_watch_num_registers)
8618 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8619 (ppc_linux_read_description): Refactor as methods of
8620 ppc_linux_nat_target.
8621 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8622
8623 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8624 (procfs_target): New class.
8625 (the_procfs_target): New.
8626 (procfs_target): Delete function.
8627 (procfs_auxv_parse, procfs_attach, procfs_detach)
8628 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8629 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8630 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8631 (procfs_create_inferior, procfs_update_thread_list)
8632 (procfs_thread_alive, procfs_pid_to_str)
8633 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8634 (procfs_stopped_data_address, procfs_insert_watchpoint)
8635 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8636 (proc_find_memory_regions, procfs_info_proc)
8637 (procfs_make_note_section): Refactor as methods of procfs_target.
8638 (_initialize_procfs): Adjust.
8639 * sol-thread.c (sol_thread_target): New class.
8640 (sol_thread_ops): Now a sol_thread_target.
8641 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8642 (sol_thread_fetch_registers, sol_thread_store_registers)
8643 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8644 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8645 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8646 (init_sol_thread_ops): Delete.
8647 (_initialize_sol_thread): Adjust. Remove references to
8648 init_sol_thread_ops and complete_target_initialization.
8649
8650 * windows-nat.c (windows_nat_target): New class.
8651 (windows_fetch_inferior_registers)
8652 (windows_store_inferior_registers, windows_resume, windows_wait)
8653 (windows_attach, windows_detach, windows_pid_to_exec_file)
8654 (windows_files_info, windows_create_inferior)
8655 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8656 (windows_close, windows_pid_to_str, windows_xfer_partial)
8657 (windows_get_tib_address, windows_get_ada_task_ptid)
8658 (windows_thread_name, windows_thread_alive): Refactor as
8659 windows_nat_target methods.
8660 (do_initial_windows_stuff): Adjust.
8661 (windows_target): Delete function.
8662 (_initialize_windows_nat): Adjust.
8663
8664 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8665 (darwin_mourn_inferior, darwin_kill_inferior)
8666 (darwin_create_inferior, darwin_attach, darwin_detach)
8667 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8668 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8669 (darwin_supports_multi_process): Refactor as darwin_nat_target
8670 methods.
8671 (darwin_resume_to, darwin_files_info): Delete.
8672 (_initialize_darwin_inferior): Rename to ...
8673 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8674 * darwin-nat.h: Include "inf-child.h".
8675 (darwin_nat_target): New class.
8676 (darwin_complete_target): Delete.
8677 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8678 (darwin_target): New.
8679 (i386_darwin_fetch_inferior_registers)
8680 (i386_darwin_store_inferior_registers): Refactor as methods of
8681 darwin_nat_target.
8682 (darwin_complete_target): Delete, with ...
8683 (_initialize_i386_darwin_nat): ... bits factored out here.
8684
8685 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8686 (the_alpha_linux_nat_target): New.
8687 (alpha_linux_register_u_offset): Refactor as
8688 alpha_linux_nat_target method.
8689 (_initialize_alpha_linux_nat): Adjust.
8690 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8691 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8692 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8693 methods of linux_nat_trad_target.
8694 (linux_trad_target): Delete.
8695 * linux-nat-trad.h (linux_trad_target): Delete function.
8696 (linux_nat_trad_target): New class.
8697 * mips-linux-nat.c (mips_linux_nat_target): New class.
8698 (super_fetch_registers, super_store_registers, super_close):
8699 Delete.
8700 (the_mips_linux_nat_target): New.
8701 (mips64_linux_regsets_fetch_registers)
8702 (mips64_linux_regsets_store_registers)
8703 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8704 (mips_linux_register_u_offset, mips_linux_read_description)
8705 (mips_linux_can_use_hw_breakpoint)
8706 (mips_linux_stopped_by_watchpoint)
8707 (mips_linux_stopped_data_address)
8708 (mips_linux_region_ok_for_hw_watchpoint)
8709 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8710 (mips_linux_close): Refactor as methods of mips_linux_nat.
8711 (_initialize_mips_linux_nat): Adjust to C++ification.
8712
8713 * aix-thread.c (aix_thread_target): New class.
8714 (aix_thread_ops): Now an aix_thread_target.
8715 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8716 (aix_thread_fetch_registers, aix_thread_store_registers)
8717 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8718 (aix_thread_thread_alive, aix_thread_pid_to_str)
8719 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8720 Refactor as methods of aix_thread_target.
8721 (init_aix_thread_ops): Delete.
8722 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8723 and complete_target_initialization.
8724 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8725 (rs6000_nat_target): New class.
8726 (the_rs6000_nat_target): New.
8727 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8728 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8729 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8730 (super_create_inferior): Delete.
8731 (_initialize_rs6000_nat): Adjust to C++ification.
8732
8733 * arm-linux-nat.c (arm_linux_nat_target): New class.
8734 (the_arm_linux_nat_target): New.
8735 (arm_linux_fetch_inferior_registers)
8736 (arm_linux_store_inferior_registers, arm_linux_read_description)
8737 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8738 (arm_linux_remove_hw_breakpoint)
8739 (arm_linux_region_ok_for_hw_watchpoint)
8740 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8741 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8742 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8743 arm_linux_nat_target.
8744 (_initialize_arm_linux_nat): Adjust to C++ification.
8745
8746 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8747 (the_aarch64_linux_nat_target): New.
8748 (aarch64_linux_fetch_inferior_registers)
8749 (aarch64_linux_store_inferior_registers)
8750 (aarch64_linux_child_post_startup_inferior)
8751 (aarch64_linux_read_description)
8752 (aarch64_linux_can_use_hw_breakpoint)
8753 (aarch64_linux_insert_hw_breakpoint)
8754 (aarch64_linux_remove_hw_breakpoint)
8755 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8756 (aarch64_linux_region_ok_for_hw_watchpoint)
8757 (aarch64_linux_stopped_data_address)
8758 (aarch64_linux_stopped_by_watchpoint)
8759 (aarch64_linux_watchpoint_addr_within_range)
8760 (aarch64_linux_can_do_single_step): Refactor as methods of
8761 aarch64_linux_nat_target.
8762 (super_post_startup_inferior): Delete.
8763 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8764
8765 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8766 (the_hppa_linux_nat_target): New.
8767 (hppa_linux_fetch_inferior_registers)
8768 (hppa_linux_store_inferior_registers): Refactor as methods of
8769 hppa_linux_nat_target.
8770 (_initialize_hppa_linux_nat): Adjust to C++ification.
8771
8772 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8773 (the_ia64_linux_nat_target): New.
8774 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8775 (ia64_linux_stopped_data_address)
8776 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8777 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8778 ia64_linux_nat_target methods.
8779 (super_xfer_partial): Delete.
8780 (_initialize_ia64_linux_nat): Adjust to C++ification.
8781
8782 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8783 (the_m32r_linux_nat_target): New.
8784 (m32r_linux_fetch_inferior_registers)
8785 (m32r_linux_store_inferior_registers): Refactor as
8786 m32r_linux_nat_target methods.
8787 (_initialize_m32r_linux_nat): Adjust to C++ification.
8788
8789 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8790 (the_m68k_linux_nat_target): New.
8791 (m68k_linux_fetch_inferior_registers)
8792 (m68k_linux_store_inferior_registers): Refactor as
8793 m68k_linux_nat_target methods.
8794 (_initialize_m68k_linux_nat): Adjust to C++ification.
8795
8796 * s390-linux-nat.c (s390_linux_nat_target): New class.
8797 (the_s390_linux_nat_target): New.
8798 (s390_linux_fetch_inferior_registers)
8799 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8800 (s390_insert_watchpoint, s390_remove_watchpoint)
8801 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8802 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8803 (s390_auxv_parse, s390_read_description): Refactor as methods of
8804 s390_linux_nat_target.
8805 (_initialize_s390_nat): Adjust to C++ification.
8806
8807 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8808 (the_sparc_linux_nat_target): New.
8809 (_initialize_sparc_linux_nat): Adjust to C++ification.
8810 * sparc-nat.c (sparc_fetch_inferior_registers)
8811 (sparc_store_inferior_registers): Remove target_ops parameter.
8812 * sparc-nat.h (sparc_fetch_inferior_registers)
8813 (sparc_store_inferior_registers): Remove target_ops parameter.
8814 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8815 (the_sparc64_linux_nat_target): New.
8816 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8817
8818 * spu-linux-nat.c (spu_linux_nat_target): New class.
8819 (the_spu_linux_nat_target): New.
8820 (spu_child_post_startup_inferior, spu_child_post_attach)
8821 (spu_child_wait, spu_fetch_inferior_registers)
8822 (spu_store_inferior_registers, spu_xfer_partial)
8823 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8824 methods.
8825 (_initialize_spu_nat): Adjust to C++ification.
8826
8827 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8828 (the_tilegx_linux_nat_target): New.
8829 (fetch_inferior_registers, store_inferior_registers):
8830 Refactor as methods.
8831 (_initialize_tile_linux_nat): Adjust to C++ification.
8832
8833 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8834 (the_xtensa_linux_nat_target): New.
8835 (xtensa_linux_fetch_inferior_registers)
8836 (xtensa_linux_store_inferior_registers): Refactor as
8837 xtensa_linux_nat_target methods.
8838 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8839
8840 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8841 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8842 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8843 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8844 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8845 (fbsd_stopped_by_sw_breakpoint)
8846 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8847 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8848 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8849 (fbsd_post_startup_inferior, fbsd_post_attach)
8850 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8851 (fbsd_set_syscall_catchpoint)
8852 (super_xfer_partial, super_resume, super_wait)
8853 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8854 (fbsd_handle_debug_trap): Remove target_ops parameter.
8855 (fbsd_nat_add_target): Delete.
8856 * fbsd-nat.h: Include "inf-ptrace.h".
8857 (fbsd_nat_add_target): Delete.
8858 (USE_SIGTRAP_SIGINFO): Define.
8859 (fbsd_nat_target): New class.
8860
8861 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8862 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8863 (amd64bsd_target): Delete.
8864 * amd64-bsd-nat.h: New file.
8865 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8866 "x86-bsd-nat.h".
8867 (amd64_fbsd_nat_target): New class.
8868 (the_amd64_fbsd_nat_target): New.
8869 (amd64fbsd_read_description): Refactor as method of
8870 amd64_fbsd_nat_target.
8871 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8872 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8873 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8874 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8875 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8876 (i386bsd_target): Delete.
8877 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8878 (i386bsd_fetch_inferior_registers)
8879 (i386bsd_store_inferior_registers): Declare.
8880 (i386_bsd_nat_target): New class.
8881 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8882 (the_i386_fbsd_nat_target): New.
8883 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8884 i386_fbsd_nat_target methods.
8885 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8886 (_initialize_i386fbsd_nat): Adjust to C++ification.
8887 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8888 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8889 (_initialize_x86_bsd_nat): Adjust to C++ification.
8890 * x86-bsd-nat.h: Include "x86-nat.h".
8891 (x86bsd_target): Delete declaration.
8892 (x86bsd_nat_target): New class.
8893
8894 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8895 (the_aarch64_fbsd_nat_target): New.
8896 (aarch64_fbsd_fetch_inferior_registers)
8897 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8898 aarch64_fbsd_nat_target.
8899 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8900 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8901 (the_alpha_bsd_nat_target): New.
8902 (alphabsd_fetch_inferior_registers)
8903 (alphabsd_store_inferior_registers): Refactor as
8904 alpha_bsd_nat_target methods.
8905 (_initialize_alphabsd_nat): Refactor as methods of
8906 alpha_bsd_nat_target.
8907 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8908 (the_amd64_nbsd_nat_target): New.
8909 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8910 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8911 (the_amd64_obsd_nat_target): New.
8912 (_initialize_amd64obsd_nat): Adjust to C++ification.
8913 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8914 (the_arm_fbsd_nat_target): New.
8915 (arm_fbsd_fetch_inferior_registers)
8916 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8917 (_initialize_arm_fbsd_nat): Refactor as methods of
8918 arm_fbsd_nat_target.
8919 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8920 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8921 (the_arm_netbsd_nat_target): New.
8922 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8923 arm_netbsd_nat_target.
8924 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8925 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8926 (the_hppa_nbsd_nat_target): New.
8927 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8928 hppa_nbsd_nat_target methods.
8929 (_initialize_hppanbsd_nat): Adjust to C++ification.
8930 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8931 (the_hppa_obsd_nat_target): New.
8932 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8933 methods of hppa_obsd_nat_target.
8934 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8935 add_target.
8936 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8937 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8938 add_target.
8939 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8940 (_initialize_i386obsd_nat): Use add_target.
8941 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8942 (the_m68k_bsd_nat_target): New.
8943 (m68kbsd_fetch_inferior_registers)
8944 (m68kbsd_store_inferior_registers): Refactor as methods of
8945 m68k_bsd_nat_target.
8946 (_initialize_m68kbsd_nat): Adjust to C++ification.
8947 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8948 (the_mips_fbsd_nat_target): New.
8949 (mips_fbsd_fetch_inferior_registers)
8950 (mips_fbsd_store_inferior_registers): Refactor as methods of
8951 mips_fbsd_nat_target.
8952 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8953 add_target.
8954 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8955 (the_mips_nbsd_nat_target): New.
8956 (mipsnbsd_fetch_inferior_registers)
8957 (mipsnbsd_store_inferior_registers): Refactor as methods of
8958 mips_nbsd_nat_target.
8959 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8960 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8961 (the_mips64_obsd_nat_target): New.
8962 (mips64obsd_fetch_inferior_registers)
8963 (mips64obsd_store_inferior_registers): Refactor as methods of
8964 mips64_obsd_nat_target.
8965 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8966 add_target.
8967 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8968 nbsd_nat_target.
8969 * nbsd-nat.h: Include "inf-ptrace.h".
8970 (nbsd_nat_target): New class.
8971 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8972 (obsd_wait): Refactor as methods of obsd_nat_target.
8973 (obsd_add_target): Delete.
8974 * obsd-nat.h: Include "inf-ptrace.h".
8975 (obsd_nat_target): New class.
8976 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8977 (the_ppc_fbsd_nat_target): New.
8978 (ppcfbsd_fetch_inferior_registers)
8979 (ppcfbsd_store_inferior_registers): Refactor as methods of
8980 ppc_fbsd_nat_target.
8981 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8982 add_target.
8983 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8984 (the_ppc_nbsd_nat_target): New.
8985 (ppcnbsd_fetch_inferior_registers)
8986 (ppcnbsd_store_inferior_registers): Refactor as methods of
8987 ppc_nbsd_nat_target.
8988 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8989 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8990 (the_ppc_obsd_nat_target): New.
8991 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8992 methods of ppc_obsd_nat_target.
8993 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8994 add_target.
8995 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8996 (the_sh_nbsd_nat_target): New.
8997 (shnbsd_fetch_inferior_registers)
8998 (shnbsd_store_inferior_registers): Refactor as methods of
8999 sh_nbsd_nat_target.
9000 (_initialize_shnbsd_nat): Adjust to C++ification.
9001 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9002 (inf_ptrace_xfer_partial): Delete.
9003 (sparc_xfer_partial, sparc_target): Delete.
9004 * sparc-nat.h (sparc_fetch_inferior_registers)
9005 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9006 (sparc_target): Delete function declaration.
9007 (sparc_target): New template class.
9008 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9009 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9010 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9011 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9012 add_target.
9013 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9014 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9015 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9016 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9017 add_target.
9018 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9019 (the_vax_bsd_nat_target): New.
9020 (vaxbsd_fetch_inferior_registers)
9021 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9022 methods.
9023 (_initialize_vaxbsd_nat): Adjust to C++ification.
9024
9025 * bsd-kvm.c (bsd_kvm_target): New class.
9026 (bsd_kvm_ops): Now a bsd_kvm_target.
9027 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9028 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9029 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9030 bsd_kvm_target.
9031 (bsd_kvm_return_one): Delete.
9032 (bsd_kvm_add_target): Adjust to C++ification.
9033
9034 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9035 (nto_procfs_target_procfs): New classes.
9036 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9037 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9038 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9039 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9040 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9041 (procfs_remove_hw_breakpoint, procfs_resume)
9042 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9043 (procfs_kill_inferior, procfs_store_registers)
9044 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9045 as methods of nto_procfs_target.
9046 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9047 (nto_native_ops): Delete.
9048 (procfs_open, procfs_native_open): Delete.
9049 (nto_native_ops): Now an nto_procfs_target_native.
9050 (init_procfs_targets): Adjust to C++ification.
9051 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9052 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9053 Refactor as methods of nto_procfs_target.
9054
9055 * go32-nat.c (go32_nat_target): New class.
9056 (the_go32_nat_target): New.
9057 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9058 (go32_store_registers, go32_xfer_partial, go32_files_info)
9059 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9060 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9061 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9062 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9063 (go32_target): Delete.
9064 (_initialize_go32_nat): Adjust to C++ification.
9065
9066 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9067 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9068 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9069 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9070 gnu_nat_target.
9071 (gnu_target): Delete.
9072 * gnu-nat.h (gnu_target): Delete.
9073 (gnu_nat_target): New class.
9074 * i386-gnu-nat.c (gnu_base_target): New.
9075 (i386_gnu_nat_target): New class.
9076 (the_i386_gnu_nat_target): New.
9077 (_initialize_i386gnu_nat): Adjust to C++ification.
9078
3fffc070
PA
90792018-05-02 Pedro Alves <palves@redhat.com>
9080
9081 * bfd-target.c (target_bfd_xclose): Rename to ...
9082 (target_bfd_close): ... this.
9083 (target_bfd_reopen): Adjust.
9084 * target.c (target_close): Remove references to to_xclose.
9085 * target.h (target_ops::to_xclose): Delete.
9086 (target_ops::to_close): Update comments.
9087
6798487f
PA
90882018-05-02 Pedro Alves <palves@redhat.com>
9089
9090 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9091 "linux-nat.h".
9092 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9093 * inf-ptrace.c (inf_ptrace_register_u_offset)
9094 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9095 (inf_ptrace_store_register, inf_ptrace_store_registers)
9096 (inf_ptrace_trad_target): Move to ...
9097 * linux-nat-trad.c: ... this new file.
9098 * linux-nat-trad.h: New file.
9099 * linux-nat.c (linux_target_install_ops): Make extern.
9100 (linux_trad_target): Delete.
9101 * linux-nat.h (linux_trad_target): Delete declaration.
9102 (linux_target_install_ops): Declare.
9103 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9104 "linux-nat.h".
9105
c1955e17
PA
91062018-05-02 Pedro Alves <palves@redhat.com>
9107
9108 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9109 procfs_target/add_target here.
9110 * procfs.c (procfs_target): Make static.
9111 (_initialize_procfs): Call add_target here.
9112 * procfs.h (struct target_ops): Remove forward declaration.
9113 (procfs_target): Remove declaration.
9114 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9115
b5c8fcb1
PA
91162018-05-02 Pedro Alves <palves@redhat.com>
9117
9118 * procfs.c (procfs_stopped_by_watchpoint)
9119 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9120 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9121 Forward declare.
9122 (procfs_use_watchpoints): Delete, move contents...
9123 (procfs_target): ... here.
9124 * procfs.h (procfs_use_watchpoints): Delete declaration.
9125 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9126 procfs_use_watchpoints.
9127 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9128 procfs_use_watchpoints.
9129
0489430a
TT
91302018-05-02 Tom Tromey <tom@tromey.com>
9131
9132 PR python/20084:
9133 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9134 and var_zuinteger_unlimited.
9135 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9136 and PARAM_ZUINTEGER_UNLIMITED.
9137 (set_parameter_value): Handle var_zuinteger and
9138 var_zuinteger_unlimited.
9139 (add_setshow_generic): Likewise.
9140 (parmpy_init): Likewise.
9141
1632f8ba
DR
91422018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9143
9144 PR rust/23124
9145 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9146 pointer is not null before dereferencing it.
9147
76761936
TT
91482018-04-30 Tom Tromey <tom@tromey.com>
9149
9150 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9151 is_mi_like_p.
9152
2d33446d
TT
91532018-04-30 Tom Tromey <tom@tromey.com>
9154
9155 * breakpoint.c (mention): Remove use of is_mi_like_p.
9156 (print_mention_ranged_breakpoint): Likewise.
9157 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9158 of is_mi_like_p.
9159
f3c6abab
TT
91602018-04-30 Tom Tromey <tom@tromey.com>
9161
9162 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9163
40c03530
TT
91642018-04-30 Tom Tromey <tom@tromey.com>
9165
9166 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9167 (info_spu_event_command): Remove some uses of is_mi_like_p.
9168
2038b7fd
TT
91692018-04-30 Tom Tromey <tom@tromey.com>
9170
9171 * python/py-framefilter.c (py_print_single_arg)
9172 (enumerate_locals, py_print_args, py_print_frame): Remove some
9173 uses of is_mi_like_p.
9174
4904c3c6
TT
91752018-04-30 Tom Tromey <tom@tromey.com>
9176
9177 * ui-out.c: Update.
9178 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9179 * ui-out.h (ui_out::is_mi_like_p): Now const.
9180 (ui_out::do_is_mi_like_p): Now const.
9181 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9182
7c66fffc
TT
91832018-04-30 Tom Tromey <tom@tromey.com>
9184
9185 * varobj.c (varobj_set_visualizer): Use new_reference.
9186 * python/python.c (gdbpy_decode_line): Use new_reference.
9187 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9188 new_reference.
9189
bbfa6f00
TT
91902018-04-30 Tom Tromey <tom@tromey.com>
9191
9192 * varobj.c (install_new_value): Use new_reference.
9193 * value.h (value_incref): Return void. Swap intro comment with
9194 value_decref.
9195 * value.c (set_value_parent): Use new_reference.
9196 (value_incref): Return void. Update intro comment.
9197 (release_value): Use new_reference.
9198 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9199
1831a9f9
TT
92002018-04-30 Tom Tromey <tom@tromey.com>
9201
9202 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9203 * gdb_bfd.h (new_bfd_ref): Remove.
9204 (gdb_bfd_open): Update comment.
9205 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9206 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9207 (gdb_bfd_fdopenr): Use new_reference.
9208 * exec.c (exec_file_attach): Use new_reference.
9209
7c1b5f3d
TT
92102018-04-30 Tom Tromey <tom@tromey.com>
9211
9212 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9213 method.
9214
e11fb955
TT
92152018-04-30 Tom Tromey <tom@tromey.com>
9216
9217 * jit.c (jit_read_code_entry): Use type_align.
9218 * i386-tdep.c (i386_gdbarch_init): Don't call
9219 set_gdbarch_long_long_align_bit.
9220 * gdbarch.sh: Remove long_long_align_bit.
9221 * gdbarch.c, gdbarch.h: Rebuild.
9222 * arc-tdep.c (arc_type_align): New function.
9223 (arc_gdbarch_init): Use arc_type_align. Don't call
9224 set_gdbarch_long_long_align_bit.
9225
2fff16dd
TT
92262018-04-30 Tom Tromey <tom@tromey.com>
9227
9228 * rust-lang.c (rust_type_alignment): Remove.
9229 (rust_composite_type): Use type_align.
9230
6d7bb824
TT
92312018-04-30 Tom Tromey <tom@tromey.com>
9232
9233 * NEWS: Mention Type.align.
9234 * python/py-type.c (typy_get_alignof): New function.
9235 (type_object_getset): Add "alignof".
9236
007e1530
TT
92372018-04-30 Tom Tromey <tom@tromey.com>
9238
9239 PR exp/17095:
9240 * NEWS: Update.
9241 * std-operator.def (UNOP_ALIGNOF): New operator.
9242 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9243 New.
9244 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9245 * c-lang.c (c_op_print_tab): Add alignof.
9246 * c-exp.y (ALIGNOF): New token.
9247 (exp): Add "ALIGNOF" production.
9248 (ident_tokens): Add _Alignof and alignof.
9249
2b4424c3
TT
92502018-04-30 Tom Tromey <tom@tromey.com>
9251
9252 * i386-tdep.c (i386_type_align): New function.
9253 (i386_gdbarch_init): Update.
9254 * gdbarch.sh (type_align): New method.
9255 * gdbarch.c, gdbarch.h: Rebuild.
9256 * arch-utils.h (default_type_align): Declare.
9257 * arch-utils.c (default_type_align): New function.
9258 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9259 (struct type) <align_log2>: New field.
9260 <instance_flags>: Now a bitfield.
9261 (TYPE_RAW_ALIGN): New macro.
9262 (type_align, type_raw_align, set_type_align): Declare.
9263 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9264 functions.
9265 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9266 (get_alignment, maybe_set_alignment): New functions.
9267 (read_structure_type, read_enumeration_type, read_array_type)
9268 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9269 (read_subrange_type, read_base_type): Set type alignment.
9270
d33bc52e
SM
92712018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9272
9273 * dwarf2read.c (read_index_from_section): Use bool.
9274
e28b63a9
FG
92752018-04-29 Fabian Groffen <grobian@gentoo.org>
9276
9277 PR gdb/22950
9278 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9279 with #ifdef.
9280
cd8c76e4
JR
92812018-04-29 John Reiser <jreiser@BitWagon.com>
9282
9283 PR build/22873
9284 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9285 last step, and do it atomically.
9286
476d250e
AO
92872018-04-27 Alexandre Oliva <aoliva@redhat.com>
9288
9289 * compile/compile-c-types.c (convert_int, convert_float):
9290 Update for C FE v1.
9291
6873858b
TT
92922018-04-27 Tom Tromey <tom@tromey.com>
9293
9294 PR rust/22545:
9295 * rust-lang.c (rust_inclusive_range_type_p): New function.
9296 (rust_range): Handle inclusive ranges.
9297 (rust_compute_range): Likewise.
9298 * rust-exp.y (struct rust_op) <inclusive>: New field.
9299 (DOTDOTEQ): New constant.
9300 (range_expr): Add "..=" productions.
9301 (operator_tokens): Add "..=" token.
9302 (ast_range): Add "inclusive" parameter.
9303 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9304 ranges.
9305 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9306 bounds values.
9307 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9308 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9309 Update comments.
9310 * expprint.c (print_subexp_standard): Handle new bounds values.
9311 (dump_subexp_body_standard): Likewise.
9312
632e107b
TT
93132018-04-27 Tom Tromey <tom@tromey.com>
9314
9315 * configure: Rebuild.
9316 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9317 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9318 "OVERRIDE".
9319 (class symbol_needs_eval_context): Likewise.
9320 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9321 (mock_mapped_index::symbol_name_at): Use "override". Remove
9322 "virtual".
9323 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9324 "override".
9325 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9326 * aarch64-tdep.c (instruction_reader::read): Use "override".
9327 (instruction_reader_test::read): Likewise.
9328 * arm-tdep.c (instruction_reader::read): Use "override".
9329 (instruction_reader_thumb::read): Likewise.
9330
b75abf5b
AK
93312018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9332
9333 PR remote/9665
9334 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9335 instead of remote_send.
9336 (remote_send): Remove.
9337
79188d8d
PA
93382018-04-26 Pedro Alves <palves@redhat.com>
9339
9340 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9341 find_function_start_sal instead of find_pc_line.
9342
f50776aa
PA
93432018-04-26 Pedro Alves <palves@redhat.com>
9344
9345 * breakpoint.c (set_breakpoint_location_function): Handle
9346 mst_data_gnu_ifunc.
9347 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9348 * elfread.c (elf_symtab_read): Give data symbols with
9349 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9350 (elf_rel_plt_read): Update comment.
9351 * linespec.c (convert_linespec_to_sals): Handle
9352 mst_data_gnu_ifunc.
9353 (minsym_found): Handle mst_data_gnu_ifunc.
9354 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9355 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9356 * parse.c (find_minsym_type_and_address): Handle
9357 mst_data_gnu_ifunc.
9358 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9359 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9360 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9361 comment.
9362 <mst_data_gnu_ifunc>: New enumerator.
9363
20944a6e
PA
93642018-04-26 Pedro Alves <palves@redhat.com>
9365
9366 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9367 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9368 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9369 Handle it.
9370 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9371 (lookup_minimal_symbol_by_pc): Adjust.
9372 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9373 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9374 * minsyms.h (lookup_msym_prefer): New enum.
9375 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9376 parameter by a lookup_msym_prefer parameter.
9377
1adeb822
PA
93782018-04-26 Pedro Alves <palves@redhat.com>
9379
9380 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9381 ends in "@plt" instead of looking at the symbol's section.
9382
a0aca7b0
PA
93832018-04-26 Pedro Alves <palves@redhat.com>
9384
9385 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9386 all references.
9387 (find_pc_partial_function_gnu_ifunc): Rename to ...
9388 (find_pc_partial_function): ... this, and remove references to
9389 'is_gnu_ifunc_p'.
9390 (find_pc_partial_function): Delete old implementation.
9391 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9392
76af0f26
PA
93932018-04-26 Pedro Alves <palves@redhat.com>
9394
9395 * linespec.c (struct bound_minimal_symbol_search_key): New.
9396 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9397 skip first line if we found a GNU ifunc minimal symbol by name.
9398 (compare_msymbols): Change parameters to work with a destructured
9399 lhs minsym.
9400 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9401 functions.
9402
3467ec66
PA
94032018-04-26 Pedro Alves <palves@redhat.com>
9404
9405 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9406 ifunc targets here. Instead, if we have an ifunc minsym, use its
9407 address/name.
9408 (add_location_to_breakpoint): Store the minsym and the objfile in
9409 the breakpoint location.
9410 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9411 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9412 Record the minsym in the sal.
9413 * symtab.h (symtab_and_line) <msymbol>: New field.
9414
28f4fa4d
PA
94152018-04-26 Pedro Alves <palves@redhat.com>
9416
9417 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9418 unless we actually resolved the ifunc.
9419
ca31ab1d
PA
94202018-04-26 Pedro Alves <palves@redhat.com>
9421
9422 * c-exp.y (variable production): Prefer ifunc minsyms over
9423 regular function symbols.
9424 * symtab.c (find_gnu_ifunc): New function.
9425 * minsyms.h (lookup_msym_prefer): New enum.
9426 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9427 parameter by a lookup_msym_prefer parameter.
9428 * symtab.h (find_gnu_ifunc): New declaration.
9429
8388016d
PA
94302018-04-26 Pedro Alves <palves@redhat.com>
9431
9432 * blockframe.c (find_gnu_ifunc_target_type): New function.
9433 (find_function_type): New.
9434 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9435 return a value with a memory address.
9436 (eval_call): For calls to GNU ifunc functions, try to find the
9437 type of the target function from the type that the resolver
9438 returns.
9439 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9440 symbols.
9441 * infcall.c (find_function_return_type): Delete.
9442 (find_function_addr): Add 'function_type' parameter. For calls to
9443 GNU ifunc functions, try to find the type of the target function
9444 from the type that the resolver returns, and return it via
9445 FUNCTION_TYPE.
9446 (call_function_by_hand_dummy): Adjust to use the function type
9447 returned by find_function_addr.
9448 (find_function_addr): Add 'function_type' parameter and move
9449 description here.
9450 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9451 declarations.
9452
a376e11d
PA
94532018-04-26 Pedro Alves <palves@redhat.com>
9454
9455 * c-exp.y (variable production): Skip finding an alias for ifunc
9456 symbols.
9457
02e169e2
PA
94582018-04-26 Pedro Alves <palves@redhat.com>
9459
9460 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9461
249b5733
PA
94622018-04-25 Pedro Alves <palves@redhat.com>
9463
9464 * infcmd.c (kill_command): Print the pid as string, not the whole
9465 thread's ptid. Add comment. s/has been killed/killed/ in output
9466 message.
9467 * remote.c (remote_detach_1): Print the pid as string, not the
9468 whole thread's ptid.
9469
f67c0c91
SDJ
94702018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9471 Sergio Durigan Junior <sergiodj@redhat.com>
9472 Pedro Alves <palves@redhat.com>
9473
9474 * infcmd.c (kill_command): Print message when inferior has
9475 been killed.
9476 * inferior.c (print_inferior_events): Remove 'static'. Set as
9477 '1'.
9478 (add_inferior): Improve message printed when
9479 'print_inferior_events' is on.
9480 (exit_inferior): Remove message printed when
9481 'print_inferior_events' is on.
9482 (detach_inferior): Improve message printed when
9483 'print_inferior_events' is on.
9484 (initialize_inferiors): Use 'add_inferior_silent' to set
9485 'current_inferior_'.
9486 * inferior.h (print_inferior_events): Declare here as
9487 'extern'.
9488 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9489 '[Detaching...]' messages when 'print_inferior_events' is on.
9490 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9491 as prefix/suffix for messages. Remove periods. Fix erroneous
9492 'Detaching after fork from child...', replace it by '... from
9493 parent...'.
9494 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9495 prefix/suffix when printing 'Detaching...' messages. Print
9496 them when 'print_inferior_events' is on.
9497 * remote.c (remote_detach_1): Print message when detaching
9498 from inferior and '!is_fork_parent'.
9499
e427af18
TT
95002018-04-24 Tom Tromey <tom@tromey.com>
9501
9502 * cli-out.h: Reindent.
9503
05b1d8d6
TT
95042018-04-24 Tom Tromey <tom@tromey.com>
9505
9506 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9507 (cli_ui_out::do_field_string): Use fputs_filtered.
9508 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9509
a95c7dab
TT
95102018-04-23 Tom Tromey <tom@tromey.com>
9511
9512 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9513 gdb::unique_xmalloc_ptr.
9514
458412c3
TT
95152018-04-23 Tom Tromey <tom@tromey.com>
9516
9517 * configure: Rebuild.
9518
db86b02b
RS
95192018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9520
9521 PR gdb/23095
9522 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9523 prepare_for_testing. Set normal_bp to r_debug_state if target
9524 is bsd.
9525
00aecdcf
PA
95262018-04-21 Pedro Alves <palves@redhat.com>
9527 Rajendra SY <rajendra.sy@gmail.com>
9528
9529 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9530 * remote.c (extended_remote_attach): In all-stop mode, mark the
9531 thread as executing.
9532
224608c3
PW
95332018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9534
9535 * thread.c (thread_apply_all_command): Fix comment.
9536 (thread_command): Fix comment.
9537
3b74854b
AH
95382018-04-10 Alan Hayward <alan.hayward@arm.com>
9539
9540 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9541 parameter.
9542 * features/aarch64-core.c (create_feature_aarch64_core):
9543 Regenerate.
9544 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9545 Likewise.
9546 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9547 Likewise.
9548 * features/i386/32bit-avx512.c
9549 (create_feature_i386_32bit_avx512): Likewise.
9550 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9551 Likewise.
9552 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9553 Likewise.
9554 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9555 Likewise.
9556 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9557 Likewise.
9558 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9559 Likewise.
9560 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9561 Likewise.
9562 * features/i386/64bit-avx512.c
9563 (create_feature_i386_64bit_avx512): Likewise.
9564 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9565 Likewise.
9566 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9567 Likewise.
9568 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9569 Likewise.
9570 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9571 Likewise.
9572 * features/i386/64bit-segments.c
9573 (create_feature_i386_64bit_segments): Likewise.
9574 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9575 Likewise.
9576 * features/i386/x32-core.c
9577 (create_feature_i386_x32_core): Likewise.
9578 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9579 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9580 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9581 * target-descriptions.c: In generated code, don't pass xml
9582 filename.
9583
e98577a9
AH
95842018-04-18 Alan Hayward <alan.hayward@arm.com>
9585
9586 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9587 (print_xml_feature::visit_post): Likewise.
9588 (print_xml_feature::visit): Likewise.
9589 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9590 (print_xml_feature): Add new class.
9591 * regformats/regdat.sh: Null xmltarget on feature targets.
9592 * target-descriptions.c (struct target_desc): Add xmltarget.
9593 (maintenance_check_tdesc_xml_convert): Add unittest function.
9594 (tdesc_get_features_xml): Add function to get xml.
9595 (maintenance_check_xml_descriptions): Test xml generation.
9596 * xml-tdesc.c (string_read_description_xml): Add function.
9597 * xml-tdesc.h (string_read_description_xml): Add declaration.
9598
ad7fc756
AH
95992018-04-18 Alan Hayward <alan.hayward@arm.com>
9600
9601 * features/Makefile: Add feature marker to targets with new style
9602 target descriptions.
9603 * regformats/aarch64.dat: Regenerate.
9604 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9605 * regformats/i386/amd64-avx-linux.dat: Likewise.
9606 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9607 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9608 * regformats/i386/amd64-linux.dat: Likewise.
9609 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9610 * regformats/i386/amd64.dat: Likewise.
9611 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9612 * regformats/i386/i386-avx-linux.dat: Likewise.
9613 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9614 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9615 * regformats/i386/i386-linux.dat: Likewise.
9616 * regformats/i386/i386-mmx-linux.dat: Likewise.
9617 * regformats/i386/i386-mpx-linux.dat: Likewise.
9618 * regformats/i386/i386.dat: Likewise.
9619 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9620 * regformats/i386/x32-avx-linux.dat: Likewise.
9621 * regformats/i386/x32-linux.dat: Likewise.
9622 * regformats/tic6x-c62x-linux.dat: Likewise.
9623 * regformats/tic6x-c64x-linux.dat: Likewise.
9624 * regformats/tic6x-c64xp-linux.dat: Likewise.
9625 * regformats/regdat.sh: Parse feature marker.
9626
d278f585
AH
96272018-04-18 Alan Hayward <alan.hayward@arm.com>
9628
9629 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9630 (tdesc_osabi_name): Likewise.
9631 * target-descriptions.c (tdesc_architecture_name): Add new
9632 function.
9633 (tdesc_osabi_name): Likewise.
9634
eee8a18d
AH
96352018-04-18 Alan Hayward <alan.hayward@arm.com>
9636
9637 * common/tdesc.c (tdesc_predefined_type): Move to here.
9638 (tdesc_named_type): Likewise.
9639 (tdesc_create_vector): Likewise.
9640 (tdesc_create_struct): Likewise.
9641 (tdesc_set_struct_size): Likewise.
9642 (tdesc_create_union): Likewise.
9643 (tdesc_create_flags): Likewise.
9644 (tdesc_create_enum): Likewise.
9645 (tdesc_add_field): Likewise.
9646 (tdesc_add_typed_bitfield): Likewise.
9647 (tdesc_add_bitfield): Likewise.
9648 (tdesc_add_flag): Likewise.
9649 (tdesc_add_enum_value): Likewise.
9650 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9651 (struct tdesc_type_vector): Likewise.
9652 (struct tdesc_type_field): Likewise.
9653 (struct tdesc_type_with_fields): Likewise.
9654 (tdesc_create_enum): Add declaration.
9655 (tdesc_add_typed_bitfield): Likewise.
9656 (tdesc_add_enum_value): Likewise.
9657 * target-descriptions.c (tdesc_type_field): Move from here.
9658 (tdesc_type_builtin): Likewise.
9659 (tdesc_type_vector): Likewise.
9660 (tdesc_type_with_fields): Likewise.
9661 (tdesc_predefined_types): Likewise.
9662 (tdesc_named_type): Likewise.
9663 (tdesc_create_vector): Likewise.
9664 (tdesc_create_struct): Likewise.
9665 (tdesc_set_struct_size): Likewise.
9666 (tdesc_create_union): Likewise.
9667 (tdesc_create_flags): Likewise.
9668 (tdesc_create_enum): Likewise.
9669 (tdesc_add_field): Likewise.
9670 (tdesc_add_typed_bitfield): Likewise.
9671 (tdesc_add_bitfield): Likewise.
9672 (tdesc_add_flag): Likewise.
9673 (tdesc_add_enum_value): Likewise.
9674 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9675 (tdesc_add_typed_bitfield): Likewise.
9676 (tdesc_add_enum_value): Likewise.
9677
82ec9bc7
AH
96782018-04-18 Alan Hayward <alan.hayward@arm.com>
9679
9680 * common/tdesc.c (tdesc_feature::accept): Move to here.
9681 (tdesc_feature::operator==): Likewise.
9682 (tdesc_create_reg): Likewise.
9683 * common/tdesc.h (tdesc_type_kind): Likewise.
9684 (struct tdesc_type): Likewise.
9685 (struct tdesc_feature): Likewise.
9686 * regformats/regdat.sh: Create a feature.
9687 * target-descriptions.c (tdesc_type_kind): Move from here.
9688 (tdesc_type): Likewise.
9689 (tdesc_type_up): Likewise.
9690 (tdesc_feature): Likewise.
9691 (tdesc_create_reg): Likewise.
9692
ea3e7d71
AH
96932018-04-18 Alan Hayward <alan.hayward@arm.com>
9694
9695 * Makefile.in: Add arch/tdesc.c
9696 * common/tdesc.c: New file.
9697 * common/tdesc.h (tdesc_element_visitor): Move to here.
9698 (tdesc_element): Likewise.
9699 (tdesc_reg): Likewise.
9700 (tdesc_reg_up): Likewise.
9701 * regformats/regdef.h (reg): Add offset to constructors.
9702 * target-descriptions.c (tdesc_element_visitor): Move from here.
9703 (tdesc_element): Likewise.
9704 (tdesc_reg): Likewise.
9705 (tdesc_reg_up): Likewise.
9706
bedda9ac
TT
97072018-04-17 Tom Tromey <tom@tromey.com>
9708
9709 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9710 discriminant field.
9711
a037790e
TT
97122018-04-17 Tom Tromey <tom@tromey.com>
9713
9714 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9715
c7dcbf88
AA
97162018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9717
9718 * symtab.c (print_symbol_info): Skip printing filename and line
9719 number when `last' is NULL.
9720 (symtab_symbol_info): Use empty string instead of NULL for first
9721 invocation of print_symbol_info.
9722 (rbreak_command): Pass NULL to `last' parameter of
9723 print_symbol_info.
9724
07d28c77
SM
97252018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9726
9727 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9728 instead of nullptr.
9729
8a3de5e1
PA
97302018-04-16 Pedro Alves <palves@redhat.com>
9731
9732 * MAINTAINERS (sh): Remove.
9733 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9734 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9735 (ALLDEPFILES): Remove sh64-tdep.c.
9736 * NEWS: Mentions that support for SH-5/SH64 is removed.
9737 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9738 (sh*-*-openbsd*): Ditto.
9739 (sh64-*-elf*): Remove.
9740 (sh*): Remove.
9741 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9742 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9743 * sh-tdep.c: No longer include "sh64-tdep.h".
9744 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9745 * sh64-tdep.c, sh64-tdep.h: Remove files.
9746
a2a79012
PA
97472018-04-16 Pedro Alves <palves@redhat.com>
9748
9749 * MAINTAINERS: Remove m88k.
9750 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9751 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9752 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9753 * NEWS: Mention that support for m88k was removed.
9754 * configure.host (m88*-*-*): Remove support.
9755 * configure.nat (m88k-*-*): Remove support.
9756 * configure.tgt (m88*-*-openbsd*): Remove.
9757 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9758
eda4efb1
SM
97592018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9760
9761 * configure.tgt (x86_tobjs): New variable.
9762 (amd64_tobjs, i386_tobjs): Use it.
9763
b744723f
AA
97642018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9765
9766 * symtab.c (print_symbol_info): Precede the symbol definition by
9767 the line number when available.
9768 * NEWS: Advertise this enhancement.
9769
4a4495d6
MM
97702018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9771
9772 * NEWS (New options): announce set/show record btrace cpu.
9773 * btrace.c: Include record-btrace.h.
9774 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9775 the vendor is unknown.
9776 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9777 Maybe overwrite the btrace configuration's cpu.
9778 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9779 (btrace_fetch): Add cpu parameter. Update callers.
9780 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9781 Maybe overwrite the btrace configuration's cpu. Skip enabling
9782 errata workarounds if the vendor is unknown.
9783 * python/py-record-btrace.c: Include record-btrace.h.
9784 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9785 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9786 * record-btrace.c (record_btrace_cpu_state_kind): New.
9787 (record_btrace_cpu): New.
9788 (set_record_btrace_cpu_cmdlist): New.
9789 (record_btrace_get_cpu): New.
9790 (require_btrace_thread, record_btrace_info)
9791 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9792 (cmd_set_record_btrace_cpu_none): New.
9793 (cmd_set_record_btrace_cpu_auto): New.
9794 (cmd_set_record_btrace_cpu): New.
9795 (cmd_show_record_btrace_cpu): New.
9796 (_initialize_record_btrace): Initialize set/show record btrace cpu
9797 commands.
9798 * record-btrace.h (record_btrace_get_cpu): New.
9799
69f90c75
MM
98002018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9801
9802 * record.c (set_record_command): Fix typo in message.
9803
b85310e1
MM
98042018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9805
9806 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9807
1d509aa6
MM
98082018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9809
9810 * infrun.c (process_event_stop_test): Call
9811 gdbarch_in_indirect_branch_thunk.
9812 * gdbarch.sh (in_indirect_branch_thunk): New.
9813 * gdbarch.c: Regenerated.
9814 * gdbarch.h: Regenerated.
9815 * x86-tdep.h: New.
9816 * x86-tdep.c: New.
9817 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9818 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9819 (ALLDEPFILES): Add x86-tdep.c.
9820 * arch-utils.h (default_in_indirect_branch_thunk): New.
9821 * arch-utils.c (default_in_indirect_branch_thunk): New.
9822 * i386-tdep: Include x86-tdep.h.
9823 (i386_in_indirect_branch_thunk): New.
9824 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9825 function.
9826 * amd64-tdep: Include x86-tdep.h.
9827 (amd64_in_indirect_branch_thunk): New.
9828 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9829
b4be9bfd
JK
98302018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9831
9832 PR gdb/23053
9833 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9834 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9835 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9836 regression.
9837
53d7df28
TT
98382018-04-12 Tom Tromey <tom@tromey.com>
9839
9840 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9841 (rust_evaluate_subexp): Likewise.
9842
70b33f19
PA
98432018-04-12 Pedro Alves <palves@redhat.com>
9844
9845 * procfs.c (procfs_detach): Make forward declaration's prototype
9846 match definition's protototype.
9847 (proc_get_LDT_entry): Remove stale do_cleanups call.
9848
436411b1
PA
98492018-04-12 Pedro Alves <palves@redhat.com>
9850
9851 * target.h (target_ops::to_has_exited): Delete.
9852 (target_has_exited): Delete.
9853 * target-delegates.c: Regenerate.
9854
20db9c52
PA
98552018-04-11 Pedro Alves <palves@redhat.com>
9856
9857 * target.c (fileio_fh_t::t): Add comment.
9858 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9859 (target_fileio_close): Handle a NULL target.
9860 (invalidate_fileio_fh): New.
9861 (target_close): Call it.
9862 * remote.c (remote_hostio_send_command): No longer check whether
9863 remote_desc is open.
9864
5ff79300
PA
98652018-04-11 Pedro Alves <palves@redhat.com>
9866
9867 * target.c (fileio_fh_t): Make it a named struct instead of a
9868 typedef.
9869 (fileio_fh_t::is_closed): New method.
9870 (DEF_VEC_O (fileio_fh_t)): Remove.
9871 (fileio_fhandles): Now a std::vector.
9872 (is_closed_fileio_fh): Delete.
9873 (acquire_fileio_fd): Adjust. Rename parameters.
9874 (release_fileio_fd): Adjust.
9875 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9876 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9877 (target_fileio_close): Adjust.
9878
6e22e10d
SM
98792018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9880
9881 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9882 index.
9883
731f534f
PA
98842018-04-10 Pedro Alves <palves@redhat.com>
9885
9886 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9887 (scoped_finish_thread_state): New class.
9888 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9889 cleanup.
9890 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9891 (fetch_inferior_event, normal_stop): Likewise.
9892 * thread.c (finish_thread_state_cleanup): Delete.
9893
d5f4488f
SM
98942018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9895 Pedro Alves <palves@redhat.com>
9896
9897 * value.c: Include "selftest.h" and "common/array-view.h".
9898 (struct range) <operator ==>: New.
9899 (test_ranges_contain): New.
9900 (check_ranges_vector): New.
9901 (test_insert_into_bit_range_vector): New.
9902 (_initialize_values): Register selftests.
9903 * common/array-view.h (operator==, operator!=): New.
9904
b24531ed
SM
99052018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9906
9907 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9908 an iterator.
9909 * inline-frame.c: Include <algorithm>.
9910 (struct inline_state): Add constructor.
9911 (inline_state_s): Remove.
9912 (DEF_VEC_O(inline_state_s)): Remove.
9913 (inline_states): Change type to std::vector.
9914 (find_inline_frame_state): Adjust to std::vector.
9915 (allocate_inline_frame_state): Remove.
9916 (clear_inline_frame_state): Adjust to std::vector.
9917 (skip_inline_frames): Adjust to std::vector.
9918
c252925c
SM
99192018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9920
9921 * tracepoint.h (struct trace_state_variable): Add constructor.
9922 <name>: Change type to std::string.
9923 * tracepoint.c (tsv_s): Remove.
9924 (DEF_VEC_O(tsv_s)): Remove.
9925 (tvariables): Change to std::vector.
9926 (create_trace_state_variable): Adjust to std::vector.
9927 (find_trace_state_variable): Likewise.
9928 (find_trace_state_variable_by_number): Likewise.
9929 (delete_trace_state_variable): Likewise.
9930 (trace_variable_command): Adjust to std::string.
9931 (delete_trace_variable_command): Likewise.
9932 (tvariables_info_1): Adjust to std::vector.
9933 (save_trace_state_variables): Likewise.
9934 (start_tracing): Likewise.
9935 (merge_uploaded_trace_state_variables): Adjust to std::vector
9936 and std::string.
9937 * target.h (struct target_ops)
9938 <to_download_trace_state_variable>: Pass reference to
9939 trace_state_variable.
9940 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9941 * target-delegates.c: Re-generate.
9942 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9943 (mi_tsv_deleted): Likewise.
9944 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9945 * remote.c (remote_download_trace_state_variable): Change
9946 pointer to reference and adjust.
9947 * make-target-delegates (parse_argtypes): Handle references.
9948 (write_function_header): Likewise.
9949 (munge_type): Likewise.
9950
c9638d26
SM
99512018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9952
9953 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9954 string_view-selftests.c.
9955 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9956 testsuite.
9957 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9958 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9959 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9960 * unittests/basic_string_view/element_access/char/1.cc:
9961 Likewise.
9962 * unittests/basic_string_view/element_access/char/empty.cc:
9963 Likewise.
9964 * unittests/basic_string_view/element_access/char/front_back.cc:
9965 Likewise.
9966 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9967 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9968 Likewise.
9969 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9970 Likewise.
9971 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9972 Likewise.
9973 * unittests/basic_string_view/operations/compare/char/1.cc:
9974 Likewise.
9975 * unittests/basic_string_view/operations/compare/char/13650.cc:
9976 Likewise.
9977 * unittests/basic_string_view/operations/copy/char/1.cc:
9978 Likewise.
9979 * unittests/basic_string_view/operations/data/char/1.cc:
9980 Likewise.
9981 * unittests/basic_string_view/operations/find/char/1.cc:
9982 Likewise.
9983 * unittests/basic_string_view/operations/find/char/2.cc:
9984 Likewise.
9985 * unittests/basic_string_view/operations/find/char/3.cc:
9986 Likewise.
9987 * unittests/basic_string_view/operations/find/char/4.cc:
9988 Likewise.
9989 * unittests/basic_string_view/operations/rfind/char/1.cc:
9990 Likewise.
9991 * unittests/basic_string_view/operations/rfind/char/2.cc:
9992 Likewise.
9993 * unittests/basic_string_view/operations/rfind/char/3.cc:
9994 Likewise.
9995 * unittests/basic_string_view/operations/substr/char/1.cc:
9996 Likewise.
9997 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9998 * unittests/string_view-selftests.c: New file.
9999
fdc11678
SM
100002018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10001
10002 * unittests/basic_string_view/capacity/1.cc: New file.
10003 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10004 * unittests/basic_string_view/cons/char/1.cc: New file.
10005 * unittests/basic_string_view/cons/char/2.cc: New file.
10006 * unittests/basic_string_view/cons/char/3.cc: New file.
10007 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10008 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10009 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10010 * unittests/basic_string_view/element_access/char/1.cc: New file.
10011 * unittests/basic_string_view/element_access/char/2.cc: New file.
10012 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10013 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10014 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10015 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10016 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10017 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10018 * unittests/basic_string_view/include.cc: New file.
10019 * unittests/basic_string_view/inserters/char/1.cc: New file.
10020 * unittests/basic_string_view/inserters/char/2.cc: New file.
10021 * unittests/basic_string_view/inserters/char/3.cc: New file.
10022 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10023 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10024 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10025 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10026 * unittests/basic_string_view/literals/types.cc: New file.
10027 * unittests/basic_string_view/literals/values.cc: New file.
10028 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10029 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10030 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10031 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10032 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10033 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10034 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10035 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10036 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10037 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10038 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10039 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10040 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10041 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10042 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10043 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10044 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10045 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10046 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10047 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10048 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10049 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10050 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10051 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10052 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10053 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10054 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10055 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10056 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10057 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10058 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10059 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10060 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10061 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10062 * unittests/basic_string_view/operators/char/2.cc: New file.
10063 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10064 * unittests/basic_string_view/range_access/char/1.cc: New file.
10065 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10066 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10067 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10068 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10069 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10070 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10071 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10072 * unittests/basic_string_view/typedefs.cc: New file.
10073 * unittests/basic_string_view/types/1.cc: New file.
10074
8345c4a2
SM
100752018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10076
10077 * common/gdb_string_view.h: Remove libstdc++ implementation
10078 details, adjust to gdb reality.
10079 * common/gdb_string_view.tcc: Likewise.
10080 * cli/cli-script.c (struct string_view): Remove.
10081 (user_args) <m_args>: Change element type to gdb::string_view.
10082 (user_args::insert_args): Adjust.
10083
7adcdf08
SM
100842018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10085
10086 * common/gdb_string_view.h: New file.
10087 * common/gdb_string_view.tcc: New file.
10088
41260ac2
SM
100892018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10090
10091 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10092 * configure: Re-generate.
10093
0bee6dd4
PA
100942018-04-09 Pedro Alves <palves@redhat.com>
10095
10096 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10097 (set_target_gdbarch): Call
10098 gdb::observers::architecture_changed.notify instead of
10099 observer_notify_architecture_changed.
10100
6f14adc5
SM
101012018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10102
10103 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10104 (do_restore_current_traceframe_cleanup): Remove.
10105 (restore_current_traceframe_cleanup_dtor): Remove.
10106 (make_cleanup_restore_current_traceframe): Remove.
10107 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10108 New.
10109 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10110 * infrun.c (fetch_inferior_event): Use
10111 scoped_restore_current_traceframe.
10112
b2bdb8cf
SM
101132018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10114
10115 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10116 Remove.
10117 <n_allocated_type_units>: Remove.
10118 <all_type_units>: Change to std::vector.
10119 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10120 to std::vector change.
10121 (dwarf2_per_objfile::get_cutu): Likewise.
10122 (dwarf2_per_objfile::get_tu): Likewise.
10123 (create_signatured_type_table_from_index): Likewise.
10124 (create_signatured_type_table_from_debug_names): Likewise.
10125 (dw2_symtab_iter_next): Likewise.
10126 (dw2_print_stats): Likewise.
10127 (dw2_expand_all_symtabs): Likewise.
10128 (dw2_expand_marked_cus): Likewise.
10129 (dw2_debug_names_iterator::next): Likewise.
10130 (dwarf2_initialize_objfile): Likewise.
10131 (add_signatured_type_cu_to_table): Likewise.
10132 (create_all_type_units): Likewise.
10133 (add_type_unit): Likewise.
10134 (struct tu_abbrev_offset): Add constructor.
10135 (build_type_psymtabs_1): Adjust to std::vector change.
10136 (print_tu_stats): Likewise.
10137 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10138 (write_debug_names): Likewise.
10139
b76e467d
SM
101402018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10141
10142 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10143 Make an std::vector.
10144 <n_comp_units>: Remove.
10145 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10146 to std::vector change.
10147 (dwarf2_per_objfile::get_cutu): Likewise.
10148 (dwarf2_per_objfile::get_cu): Likewise.
10149 (create_cus_from_index): Likewise.
10150 (create_addrmap_from_index): Likewise.
10151 (create_addrmap_from_aranges): Likewise.
10152 (dwarf2_read_index): Likewise.
10153 (dw2_find_last_source_symtab): Likewise.
10154 (dw2_map_symtabs_matching_filename): Likewise.
10155 (dw2_symtab_iter_next): Likewise.
10156 (dw2_print_stats): Likewise.
10157 (dw2_expand_all_symtabs): Likewise.
10158 (dw2_expand_symtabs_with_fullname): Likewise.
10159 (dw2_expand_marked_cus): Likewise.
10160 (dw2_map_symbol_filenames): Likewise.
10161 (create_cus_from_debug_names): Likewise.
10162 (dwarf2_read_debug_names): Likewise.
10163 (dw2_debug_names_iterator::next): Likewise.
10164 (dwarf2_initialize_objfile): Likewise.
10165 (set_partial_user): Likewise.
10166 (dwarf2_build_psymtabs_hard): Likewise.
10167 (read_comp_units_from_section): Remove arguments, adjust to
10168 std::vector change.
10169 (create_all_comp_units): Adjust to std::vector and
10170 read_comp_units_from_section changes.
10171 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10172 change.
10173 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10174 (psyms_seen_size): Likewise.
10175 (write_gdbindex): Likewise.
10176 (write_debug_names): Likewise.
10177
12359b5e
SM
101782018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10179
10180 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10181 with dwarf2_per_objfile.
10182 (create_cus_from_index): Likewise.
10183 (create_signatured_type_table_from_index): Likewise.
10184 (dwarf2_read_index): Likewise.
10185 (dwarf2_initialize_objfile): Likewise.
10186 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10187 per_cu rather than get_dwarf2_per_objfile.
10188
ff4c9fec
SM
101892018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10190
10191 * dwarf2read.h (struct signatured_type): Forward declare.
10192 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10193 New methods.
10194 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10195 (dw2_get_cutu): ...this.
10196 (dwarf2_per_objfile::get_cu): Rename from...
10197 (dw2_get_cu): ...this.
10198 (dwarf2_per_objfile::get_tu): New.
10199 (create_addrmap_from_index): Adjust.
10200 (create_addrmap_from_aranges): Adjust.
10201 (dw2_find_last_source_symtab): Adjust.
10202 (dw2_map_symtabs_matching_filename): Adjust.
10203 (dw2_symtab_iter_next): Adjust.
10204 (dw2_print_stats): Adjust.
10205 (dw2_expand_all_symtabs): Adjust.
10206 (dw2_expand_symtabs_with_fullname): Adjust.
10207 (dw2_expand_marked_cus): Adjust.
10208 (dw_expand_symtabs_matching_file_matcher): Adjust.
10209 (dw2_map_symbol_filenames): Adjust.
10210 (dw2_debug_names_iterator::next): Adjust.
10211 (dwarf2_initialize_objfile): Adjust.
10212 (set_partial_user): Adjust.
10213 (dwarf2_build_psymtabs_hard): Adjust.
10214
5ca3fcb6
SM
102152018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10216
10217 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10218 Remove unused variables.
10219 (dw2_map_symtabs_matching_filename): Likewise.
10220 (dwarf2_record_block_ranges): Likewise.
10221 (dwarf2_read_addr_index): Likewise.
10222 (follow_die_offset): Likewise.
10223
b2e586e8
SM
102242018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10225
10226 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10227 to symbol_file_add_main.
10228
7c4e78cf
SM
102292018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10230
10231 PR mi/22299
10232 * mi/mi-console.c (do_fputc_async_safe): New.
10233 (mi_console_file::write_async_safe): New.
10234 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10235 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10236 New.
10237 * ui-file.c (ui_file::putstrn): Adjust call to
10238 fputstrn_unfiltered.
10239 * utils.c (printchar): Replace do_fputs and do_fprintf
10240 parameters by do_fputc.
10241 (fputstr_filtered): Adjust call to printchar.
10242 (fputstr_unfiltered): Likewise.
10243 (fputstrn_filtered): Likewise.
10244 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10245 printchar.
10246 * utils.h (do_fputc_ftype): New typedef.
10247 (fputstrn_unfiltered): Add do_fputc parameter.
10248
5dc026d3
SM
102492018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10250
10251 * regformats/i386/i386-avx.dat: Remove.
10252
c912f608
SM
102532018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10254
10255 PR gdb/22979
10256 * amd64-tdep.c (amd64_none_init_abi): New function.
10257 (amd64_x32_none_init_abi): New function.
10258 (_initialize_amd64_tdep): Register handlers for x86-64 and
10259 x64_32 with GDB_OSABI_NONE.
10260 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10261 GDB_OSABI_NONE osabi.
10262
26540402
SM
102632018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10264
10265 PR gdb/22980
10266 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10267 GDB_OSABI_NONE.
10268 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10269 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10270
9018be22
SM
102712018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10272
10273 * common/byte-vector.h (char_vector): New type.
10274 * target.h (target_read_alloc): Return
10275 gdb::optional<byte_vector>.
10276 (target_read_stralloc): Return gdb::optional<char_vector>.
10277 (target_get_osdata): Return gdb::optional<char_vector>.
10278 * target.c (target_read_alloc_1): Templatize. Replacement
10279 manual memory management with vector.
10280 (target_read_alloc): Change return type, adjust.
10281 (target_read_stralloc): Change return type, adjust.
10282 (target_get_osdata): Change return type, adjust.
10283 * auxv.c (struct auxv_info) <length>: Remove.
10284 <data>: Change type to gdb::optional<byte_vector>.
10285 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10286 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10287 (target_auxv_search): Adjust.
10288 (fprint_target_auxv): Adjust.
10289 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10290 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10291 (linux_make_corefile_notes): Adjust.
10292 * osdata.c (get_osdata): Adjust.
10293 * remote.c (remote_get_threads_with_qxfer): Adjust.
10294 (remote_memory_map): Adjust.
10295 (remote_traceframe_info): Adjust.
10296 (btrace_read_config): Adjust.
10297 (remote_read_btrace): Adjust.
10298 (remote_pid_to_exec_file): Adjust.
10299 * solib-aix.c (solib_aix_get_library_list): Adjust.
10300 * solib-dsbt.c (decode_loadmap): Don't free buf.
10301 (dsbt_get_initial_loadmaps): Adjust.
10302 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10303 * solib-target.c (solib_target_current_sos): Adjust.
10304 * tracepoint.c (sdata_make_value): Adjust.
10305 * xml-support.c (xinclude_start_include): Adjust.
10306 (xml_fetch_content_from_file): Adjust.
10307 * xml-support.h (xml_fetch_another): Change return type.
10308 (xml_fetch_content_from_file): Change return type.
10309 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10310 * xml-tdesc.c (file_read_description_xml): Adjust.
10311 (fetch_available_features_from_target): Change return type.
10312 (target_fetch_description_xml): Adjust.
10313 (target_read_description_xml): Adjust.
10314
14c88955
TT
103152018-04-06 Tom Tromey <tom@tromey.com>
10316
10317 * value.c (~value): Update.
10318 (struct value) <contents>: Now unique_xmalloc_ptr.
10319 (value_contents_bits_eq, allocate_value_contents)
10320 (value_contents_raw, value_contents_all_raw)
10321 (value_contents_for_printing, value_contents_for_printing_const)
10322 (set_value_enclosing_type): Update.
10323
0c7e6dd8
TT
103242018-04-06 Tom Tromey <tom@tromey.com>
10325
10326 * value.c (range_s): Remove typedef, VEC.
10327 (struct range): Add operator<.
10328 (range_lessthan): Remove.
10329 (ranges_contain): Change type.
10330 (~value): Update.
10331 (struct value) <unavailable, optimized_out>: Now std::vector.
10332 (value_entirely_available)
10333 (value_entirely_covered_by_range_vector)
10334 (value_entirely_unavailable, value_entirely_optimized_out):
10335 Update.
10336 (insert_into_bit_range_vector): Change argument type.
10337 (find_first_range_overlap): Likewise.
10338 (struct ranges_and_idx, value_contents_bits_eq)
10339 (require_not_optimized_out, require_available): Update.
10340 (ranges_copy_adjusted): Change argument types.
10341 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10342
2c8331b9
TT
103432018-04-06 Tom Tromey <tom@tromey.com>
10344
10345 * value.c (~value): Update.
10346 (struct value) <parent>: Now a value_ref_ptr.
10347 (value_parent, set_value_parent, value_address, value_copy):
10348 Update.
10349
466ce3ae
TT
103502018-04-06 Tom Tromey <tom@tromey.com>
10351
10352 * value.c (struct value): Add constructor, destructor, and member
10353 initializers.
10354 (allocate_value_lazy, value_decref): Update.
10355
062d818d
TT
103562018-04-06 Tom Tromey <tom@tromey.com>
10357
10358 * value.c (struct value) <released, next>: Remove.
10359 (all_values): Now a std::vector.
10360 (allocate_value_lazy): Update.
10361 (value_next): Remove.
10362 (value_mark, value_free_to_mark, release_value)
10363 (value_release_to_mark): Update.
10364
a6535de1
TT
103652018-04-06 Tom Tromey <tom@tromey.com>
10366
10367 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10368 (free_value_chain): Remove.
10369 * value.c (free_value_chain): Remove.
10370 (value_release_to_mark): Return a std::vector.
10371 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10372 std::vector.
10373 (check_condition): Update.
10374 * eval.c (fetch_subexp_value): Change "val_chain" to a
10375 std::vector.
10376 * breakpoint.c (update_watchpoint): Update.
10377 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10378
b5621201
TT
103792018-04-06 Tom Tromey <tom@tromey.com>
10380
10381 * value.h (free_all_values): Remove.
10382 * value.c (free_all_values): Remove.
10383
4d0266a0
TT
103842018-04-06 Tom Tromey <tom@tromey.com>
10385
10386 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10387 (value_history_chain, value_history_count): Remove.
10388 (value_history): New global.
10389 (record_latest_value, access_value_history, show_values)
10390 (preserve_values): Update.
10391
b4d61099
TT
103922018-04-06 Tom Tromey <tom@tromey.com>
10393
10394 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10395 * varobj.c (varobj_set_display_format, varobj_set_value)
10396 (install_default_visualizer, construct_visualizer)
10397 (install_new_value, ~varobj, varobj_get_value_type)
10398 (my_value_of_variable, varobj_editable_p): Update.
10399 * c-varobj.c (c_describe_child, c_value_of_variable)
10400 (cplus_number_of_children, cplus_describe_child): Update.
10401 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10402 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10403 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10404
9b558729
TT
104052018-04-06 Tom Tromey <tom@tromey.com>
10406
10407 * printcmd.c (last_examine_address): Change type to
10408 value_ref_ptr.
10409 (do_examine, x_command): Update.
10410
850645cf
TT
104112018-04-06 Tom Tromey <tom@tromey.com>
10412
10413 * value.c (release_value): Update.
10414 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10415 (struct bpstats) <val>: Now a value_ref_ptr.
10416 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10417 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10418 (~watchpoint, print_it_watchpoint, watch_command_1)
10419 (invalidate_bp_value_on_memory_change): Update.
10420
22bc8444
TT
104212018-04-06 Tom Tromey <tom@tromey.com>
10422
10423 * varobj.c (varobj_clear_saved_item)
10424 (update_dynamic_varobj_children, install_new_value, ~varobj):
10425 Update.
10426 * value.h (value_incref): Move declaration earlier.
10427 (value_decref): Rename from value_free.
10428 (struct value_ref_policy): New.
10429 (value_ref_ptr): New typedef.
10430 (struct value_deleter): Remove.
10431 (gdb_value_up): Remove typedef.
10432 (release_value): Change return type.
10433 (release_value_or_incref): Remove.
10434 * value.c (set_value_parent): Update.
10435 (value_incref): Change return type.
10436 (value_decref): Rename from value_free.
10437 (value_free_to_mark, free_all_values, free_value_chain): Update.
10438 (release_value): Return value_ref_ptr.
10439 (release_value_or_incref): Remove.
10440 (record_latest_value, set_internalvar, clear_internalvar):
10441 Update.
10442 * stack.c (info_frame_command): Don't call value_free.
10443 * python/py-value.c (valpy_dealloc, valpy_new)
10444 (value_to_value_object): Update.
10445 * printcmd.c (do_examine): Update.
10446 * opencl-lang.c (lval_func_free_closure): Update.
10447 * mi/mi-main.c (register_changed_p): Don't call value_free.
10448 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10449 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10450 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10451 value_free.
10452 * guile/scm-value.c (vlscm_free_value_smob)
10453 (vlscm_scm_from_value): Update.
10454 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10455 (frame_unwind_register_unsigned, get_frame_register_bytes)
10456 (put_frame_register_bytes): Don't call value_free.
10457 * findvar.c (address_from_register): Don't call value_free.
10458 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10459 * dwarf2loc.c (entry_data_value_free_closure)
10460 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10461 (dwarf2_evaluate_loc_desc_full): Update.
10462 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10463 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10464 (~watchpoint, watch_command_1)
10465 (invalidate_bp_value_on_memory_change): Update.
10466 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10467
7f8a5d38
SM
104682018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10469
10470 PR gdb/23022
10471 * warning.m4: Add -Wno-error=deprecated-register.
10472 * configure: Re-generate.
10473
8a76bd3b
TT
104742018-04-05 Tom Tromey <tom@tromey.com>
10475
10476 * linespec.h: Remove include of "vec.h".
10477
8e8d776e
TT
104782018-04-05 Tom Tromey <tom@tromey.com>
10479
10480 * linespec.c (typep): Remove typedef.
10481 (find_methods, find_superclass_methods): Take a std::vector.
10482 (find_method): Use std::vector.
10483
9b2f8581
TT
104842018-04-05 Tom Tromey <tom@tromey.com>
10485
10486 * utils.c (compare_strings): Remove.
10487 * utils.h (compare_strings): Remove.
10488 * objc-lang.h (find_imps): Update.
10489 * objc-lang.c (find_methods): Take a std::vector.
10490 (uniquify_strings, find_imps): Likewise.
10491 * linespec.c (find_methods): Take a std::vector.
10492 (decode_objc): Use std::vector.
10493 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10494 a std::vector.
10495 (find_method, find_function_symbols): Use std::vector.
10496
459a2e4c
TT
104972018-04-05 Tom Tromey <tom@tromey.com>
10498
10499 * completer.c (completion_tracker::completion_tracker): Remove
10500 cast.
10501 (completion_tracker::discard_completions): Likewise.
10502 * breakpoint.c (ambiguous_names_p): Remove cast.
10503 * ada-lang.c (_initialize_ada_language): Remove cast.
10504 * utils.h (streq): Update.
10505 (streq_hash): Add new declaration.
10506 * utils.c (streq): Return bool.
10507 (streq_hash): New function.
10508
9be2c17a
TT
105092018-04-05 Tom Tromey <tom@tromey.com>
10510
10511 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10512 Remove a string copy.
10513
f73c6ece
TT
105142018-04-05 Tom Tromey <tom@tromey.com>
10515
10516 * linespec.c (filter_results): Use std::vector.
10517 (decode_line_2, decode_line_full): Update.
10518
53a0f8a2
TT
105192018-04-05 Tom Tromey <tom@tromey.com>
10520
10521 * linespec.c (canonical_to_fullform): Return std::string.
10522 (filter_results): Update.
10523 (struct decode_line_2_item): Add constructor.
10524 <fullform, displayform>: Now std::string.
10525 (decode_line_2_compare_items): Now a std::sort comparator.
10526 (decode_line_2): Update.
10527
a5b5adf5
TT
105282018-04-05 Tom Tromey <tom@tromey.com>
10529
10530 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10531 (unexpected_linespec_error): Update.
10532 (linespec_parse_basic, parse_linespec): Update.
10533
6a307fc5
TT
105342018-04-05 Tom Tromey <tom@tromey.com>
10535
10536 * linespec.c (linespec_parse_basic): Reindent.
10537
41c1efc6
TT
105382018-04-05 Tom Tromey <tom@tromey.com>
10539
10540 * minsyms.h (iterate_over_minimal_symbols): Update.
10541 * minsyms.c (iterate_over_minimal_symbols): Take a
10542 gdb::function_view.
10543 * linespec.c (struct collect_minsyms): Remove.
10544 (compare_msyms): Now a std::sort comparator.
10545 (add_minsym): Add parameters.
10546 (search_minsyms_for_name): Update. Use std::vector.
10547
c5edbf3d
TT
105482018-04-03 Tom Tromey <tom@tromey.com>
10549
10550 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10551 gdb::byte_vector.
10552
b39efc48
WP
105532018-04-02 Weimin Pan <weimin.pan@oracle.com>
10554
10555 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10556
121ad66c 105572018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
10558
10559 PR gdb/16959
10560 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10561 printing static type.
10562
09473be8
TT
105632018-04-01 Tom Tromey <tom@tromey.com>
10564
10565 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10566 (rs6000_xfer_shared_libraries): Update.
10567
ec1f2d91
SM
105682018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10569
10570 * common/gdb_vecs.h (char_ptr): Remove.
10571 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10572
d8611974
SM
105732018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10574
10575 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10576 with std::vector.
10577 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10578
a18ba4e4
SM
105792018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10580
10581 * tracepoint.h (struct uploaded_tp): Initialize fields.
10582 <actions, step_actions, cmd_strings>: Change type to
10583 std::vector<char *>.
10584 * tracepoint.c (get_uploaded_tp): Allocate with new.
10585 (free_uploaded_tps): Free with delete.
10586 (parse_tracepoint_definition): Adjust to std::vector change.
10587 * breakpoint.c (read_uploaded_action): Likewise.
10588 (create_tracepoint_from_upload): Likewise.
10589 * ctf.c (ctf_write_uploaded_tp): Likewise.
10590 (SET_ARRAY_FIELD): Likewise.
10591 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10592
a7961323
TT
105932018-03-30 Tom Tromey <tom@tromey.com>
10594
10595 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10596 std::unique_ptr.
10597 (svr4_keep_data_in_core): Update.
10598 (svr4_read_so_list): Update.
10599
e83e4e24
TT
106002018-03-30 Tom Tromey <tom@tromey.com>
10601
10602 * windows-nat.c (handle_output_debug_string, handle_exception):
10603 Update.
10604 * target.h (target_read_string): Update.
10605 * target.c (target_read_string): Change "string" to
10606 unique_xmalloc_ptr.
10607 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10608 Update.
10609 * solib-frv.c (frv_current_sos): Update.
10610 * solib-dsbt.c (dsbt_current_sos): Update.
10611 * solib-darwin.c (darwin_current_sos): Update.
10612 * linux-thread-db.c (inferior_has_bug): Update.
10613 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10614 Update. Remove alloca.
10615 * ada-lang.c (ada_main_name): Update.
10616
263db9a1
TT
106172018-03-30 Tom Tromey <tom@tromey.com>
10618
10619 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10620 (struct dwo_file_deleter): New.
10621 (dwo_file_up): New typedef.
10622 (open_and_init_dwo_file): Use dwo_file_up.
10623 (free_dwo_file_cleanup): Remove.
10624
5dafb3d1
TT
106252018-03-30 Tom Tromey <tom@tromey.com>
10626
10627 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10628 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10629
11ed8cad
TT
106302018-03-30 Tom Tromey <tom@tromey.com>
10631
10632 * dwarf2read.c (class free_cached_comp_units): New class.
10633 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10634 (free_cached_comp_units): Remove function.
10635
9ae79dac
TT
106362018-03-30 Tom Tromey <tom@tromey.com>
10637
10638 * utils.h (make_cleanup_unpush_target): Remove.
10639 * inf-ptrace.c (struct target_unpusher): New.
10640 (target_unpush_up) New typedef.
10641 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10642 target_unpush_up.
10643 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10644
5aa89276
TT
106452018-03-27 Tom Tromey <tom@tromey.com>
10646
10647 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10648
1dbeed45
TT
106492018-03-27 Pedro Alves <palves@redhat.com>
10650 Tom Tromey <tom@tromey.com>
10651
10652 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10653 destructor. Now a class.
10654 (gdb_readline_wrapper_cleanup): Remove function.
10655 (gdb_readline_wrapper): Remove cleanups.
10656
c819b2c0
TT
106572018-03-27 Tom Tromey <tom@tromey.com>
10658
10659 * typeprint.h (struct type_print_options) <local_typedefs,
10660 global_typedefs>: Remove "struct" keyword.
10661 (class typedef_hash_table): New class.
10662 (recursively_update_typedef_hash, add_template_parameters)
10663 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10664 (find_typedef_in_hash): Don't declare.
10665 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10666 (typedef_hash_table::recursively_update): Rename from
10667 recursively_update_typedef_hash. Now a member.
10668 (typedef_hash_table::add_template_parameters): Rename from
10669 add_template_parameters. Now a member.
10670 (typedef_hash_table::typedef_hash_table): Now a constructor;
10671 rename from create_typedef_hash.
10672 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10673 rename from free_typedef_hash.
10674 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10675 (do_free_global_table): Remove.
10676 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10677 from copy_type_recursive.
10678 (create_global_typedef_table): Remove.
10679 (typedef_hash_table::find_global_typedef): Now a member of
10680 typedef_hash_table.
10681 (typedef_hash_table::find_typedef): Rename from
10682 find_typedef_in_hash; now a member.
10683 (whatis_exp): Update.
10684 * extension.h (struct ext_lang_type_printers): Add constructor and
10685 destructor.
10686 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10687 declare.
10688 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10689 Now a constructor; rename from start_ext_lang_type_printers.
10690 (ext_lang_type_printers): Now a destructor; rename from
10691 free_ext_lang_type_printers.
10692 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10693 Update.
10694 (c_type_print_base_struct_union): Update. Remove cleanups.
10695
608219fb
TT
106962018-03-27 Tom Tromey <tom@tromey.com>
10697
10698 * dwarf-index-write.c: Include <cmath>.
10699
3fcded8f
JB
107002018-03-27 Joel Brobecker <brobecker@adacore.com>
10701
10702 * NEWS: Add entry describing new "set|show varsize-limit" command.
10703 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10704 command.
10705 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10706 "set variable".
10707
cd4fb1b2
SM
107082018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10709
10710 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10711 dwarf-index-write.c
10712 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10713 * dwarf-index-common.c: New file.
10714 * dwarf-index-common.h: New file.
10715 * dwarf-index-write.c: New file.
10716 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10717 (struct dwarf2_section_info): Move from here.
10718 (dwarf2_section_info_def): Likewise.
10719 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10720 (offset_type): Likewise.
10721 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10722 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10723 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10724 (byte_swap): Likewise.
10725 (MAYBE_SWAP): Likewise.
10726 (dwarf2_per_cu_ptr): Likewise.
10727 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10728 (struct tu_stats): Likewise.
10729 (struct dwarf2_per_objfile): Likewise.
10730 (struct dwarf2_per_cu_data): Likewise.
10731 (struct signatured_type): Likewise.
10732 (sig_type_ptr): Likewise.
10733 (DEF_VEC_P (sig_type_ptr)): Likewise.
10734 (INDEX4_SUFFIX): Likewise.
10735 (INDEX5_SUFFIX): Likewise.
10736 (DEBUG_STR_SUFFIX): Likewise.
10737 (dwarf2_read_section): Make non-static.
10738 (mapped_index_string_hash): Move from here.
10739 (dwarf5_djb_hash): Likewise.
10740 (file_write): Likewise.
10741 (class data_buf): Likewise.
10742 (struct symtab_index_entry): Likewise.
10743 (struct mapped_symtab): Likewise.
10744 (find_slot): Likewise.
10745 (hash_expand): Likewise.
10746 (add_index_entry): Likewise.
10747 (uniquify_cu_indices): Likewise.
10748 (class c_str_view): Likewise.
10749 (class c_str_view_hasher): Likewise.
10750 (class vector_hasher): Likewise.
10751 (write_hash_table): Likewise.
10752 (psym_index_map): Likewise.
10753 (struct addrmap_index_data): Likewise.
10754 (add_address_entry): Likewise.
10755 (add_address_entry_worker): Likewise.
10756 (write_address_map): Likewise.
10757 (symbol_kind): Likewise.
10758 (write_psymbols): Likewise.
10759 (struct signatured_type_index_data): Likewise.
10760 (write_one_signatured_type): Likewise.
10761 (recursively_count_psymbols): Likewise.
10762 (recursively_write_psymbols): Likewise.
10763 (class debug_names): Likewise.
10764 (check_dwarf64_offsets): Likewise.
10765 (psyms_seen_size): Likewise.
10766 (write_gdbindex): Likewise.
10767 (write_debug_names): Likewise.
10768 (assert_file_size): Likewise.
10769 (write_psymtabs_to_index): Likewise.
10770 (save_gdb_index_command): Likewise.
10771 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10772 command.
10773 * dwarf2read.h: New file.
10774
59cc4834
JB
107752018-03-27 Joel Brobecker <brobecker@adacore.com>
10776
10777 PR gdb/22670
10778 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10779 symbol name if the CU's language stores symbol names in linkage
10780 format.
10781 * language.h (struct language_defn)
10782 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10783 all instances of this struct.
10784
67501539
TT
107852018-03-26 Tom Tromey <tom@tromey.com>
10786
10787 * stack.c (backtrace_command_1): Remove verbose code.
10788
76c939ac
TT
107892018-03-26 Tom Tromey <tom@tromey.com>
10790
10791 * python/py-framefilter.c (py_print_type): Don't catch
10792 exceptions. Return void.
10793 (py_print_value): Likewise.
10794 (py_print_single_arg): Likewise.
10795 (enumerate_args): Don't catch exceptions.
10796 (py_print_args): Likewise.
10797 (py_print_frame): Likewise.
10798 (gdbpy_apply_frame_filter): Catch exceptions here.
10799
9507b29c
TT
108002018-03-26 Tom Tromey <tom@tromey.com>
10801
10802 * stack.c (_initialize_stack): Remove trailing newlines from help
10803 text. Add "Usage" line to "backtrace" help.
10804
eb68e487
TT
108052018-03-26 Tom Tromey <tom@tromey.com>
10806
10807 PR python/16486:
10808 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10809
1f111921
TT
108102018-03-26 Tom Tromey <tom@tromey.com>
10811
10812 * python/py-framefilter.c (py_print_single_arg): Return
10813 EXT_LANG_BT_ERROR from catch.
10814
fb7eb8b5
TT
108152018-03-26 Tom Tromey <tom@tromey.com>
10816
10817 PR backtrace/15584:
10818 * stack.c (backtrace_command_1): Move some code into no-filters
10819 "if".
10820
4ca59a9f
TT
108212018-03-26 Tom Tromey <tom@tromey.com>
10822
10823 * python/py-framefilter.c (throw_quit_or_print_exception): New
10824 function.
10825 (gdbpy_apply_frame_filter): Use it.
10826
92256134
TT
108272018-03-26 Tom Tromey <tom@tromey.com>
10828
10829 PR cli/17716:
10830 * python/py-framefilter.c (py_print_type, py_print_value)
10831 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10832 RETURN_MASK_ERROR.
10833
7a630bc2
TT
108342018-03-26 Tom Tromey <tom@tromey.com>
10835
10836 * python/py-framefilter.c (enumerate_args): Use
10837 gdb::unique_xmalloc_ptr.
10838
63283d4a
TT
108392018-03-26 Tom Tromey <tom@tromey.com>
10840
10841 * python/py-framefilter.c (py_print_frame): Return
10842 EXT_LANG_BT_OK.
10843 (gdbpy_apply_frame_filter): Update comment.
10844 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10845 Remove.
10846 <EXT_LANG_BT_NO_FILTERS>: Change value.
10847
978d6c75
TT
108482018-03-26 Tom Tromey <tom@tromey.com>
10849
10850 PR backtrace/15582:
10851 * stack.c (backtrace_command): Parse "hide" argument.
10852 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10853 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10854 constant.
10855
1cf7e640
TT
108562018-03-26 Tom Tromey <tom@tromey.com>
10857
10858 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10859 add "flags".
10860 (backtrace_command): Remove "fulltrace", add "flags".
10861
ea3b0687
TT
108622018-03-26 Tom Tromey <tom@tromey.com>
10863
10864 * stack.c (backtrace_command): Rewrite command line parsing.
10865
9f034d75
SM
108662018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10867
10868 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10869
ce1459e5
SM
108702018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10871
10872 * filename-seen-cache.h: Add include guard.
10873
4f7ae6f5
KS
108742018-03-26 Keith Seitz <keiths@redhat.com>
10875
10876 * symfile.c (place_section): Remove "struct" from section_addr_info
10877 in comment.
10878 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10879 "struct" keyword from section_addr_info.
10880
5cd3e386
AH
108812018-03-26 Alan Hayward <alan.hayward@arm.com>
10882
10883 * regformats/regdef.h (reg): Add constructors.
10884
3e5ef9a4
PA
108852018-03-25 Pedro Alves <palves@redhat.com>
10886
10887 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10888 if then/else bodies in var_func_name extraction.
10889
c88d2fcc 108902018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
10891
10892 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10893 lookup_minimal_symbol() to find symbol entry.
10894 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10895
b7fee5a3
KS
108962018-03-23 Keith Seitz <keiths@redhat.com>
10897
10898 PR c++/22968
10899 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10900 nested type definitions for C++, too.
10901
2cc9b304
TT
109022018-03-23 Tom Tromey <tom@tromey.com>
10903
10904 * machoread.c (struct oso_el): Add a constructor. Don't define as
10905 a typedef.
10906 (macho_register_oso): Remove.
10907 (macho_symtab_read): Take a std::vector.
10908 (oso_el_compare_name): Now a std::sort comparator.
10909 (macho_symfile_read_all_oso): Take a std::vector.
10910 (macho_symfile_read): Use std::vector. Remove cleanups.
10911
a2b2bc12
TT
109122018-03-22 Tom Tromey <tom@tromey.com>
10913
10914 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10915 (record_full_goto_bookmark): Use std::string.
10916
7a8f494c
PFC
109172018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10918
10919 PR tdep/18295
10920 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10921 a single mask.
10922
dd6d677f
PFC
109232018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10924
10925 * rs6000-tdep.c (store_insn_p): New function.
10926 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10927 and cr_reg to their unshifted values. Use store_insn_p to
10928 match LR saves using either R1 or fdata->alloca_reg. Use
10929 store_insn_p to match CR saves. Set alloca_reg_offset
10930 when alloca_reg and framep are set. Remove lr_reg shift
10931 when assigning to fdata->lr_register.
10932
26d6cec4
AA
109332018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10934
10935 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10936 command line args instead of emitting a warning.
10937
5d9310c4
SM
109382018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10939
10940 * tracepoint.h (struct static_tracepoint_marker): Initialize
10941 fields, define default constructor, move constructor and move
10942 assignment, disable the rest.
10943 <str_id, extra>: Make std::string.
10944 (release_static_tracepoint_marker): Remove.
10945 (free_current_marker): Remove.
10946 * tracepoint.c (free_current_marker): Remove.
10947 (parse_static_tracepoint_marker_definition): Adjust to
10948 std::string, use new hex2str overload.
10949 (release_static_tracepoint_marker): Remove.
10950 (print_one_static_tracepoint_marker): Get marker by reference
10951 and adjust to std::string.
10952 (info_static_tracepoint_markers_command): Adjust to std::vector
10953 changes
10954 * target.h (static_tracepoint_marker_p): Remove typedef.
10955 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10956 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10957 bool.
10958 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10959 * target-debug.h
10960 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10961 (target_debug_print_std_vector_static_tracepoint_marker): New.
10962 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10963 to...
10964 (target_debug_print_static_tracepoint_marker_p): ... this.
10965 * target-delegates.c: Re-generate.
10966 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10967 Make std::string.
10968 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10969 (decode_static_tracepoint_spec): Adjust to std::vector.
10970 (tracepoint_print_one_detail): Adjust to std::string.
10971 (strace_marker_decode_location): Adjust to std::string.
10972 (update_static_tracepoint): Adjust to std::string, remove call
10973 to release_static_tracepoint_marker.
10974 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10975 Adjust to std::vector.
10976 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10977 (remote_static_tracepoint_markers_by_strid): Adjust to
10978 std::vector.
10979 * common/rsp-low.h (hex2str): New overload with explicit count
10980 of bytes.
10981 * common/rsp-low.c (hex2str): New overload with explicit count
10982 of bytes.
10983 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10984 (_initialize_rsp_low_selftests): Add test_hex2str test.
10985 * unittests/tracepoint-selftests.c
10986 (test_parse_static_tracepoint_marker_definition): Adjust to
10987 std::string.
10988
62c222b6
SM
109892018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10990
10991 * tracepoint.c (parse_static_tracepoint_marker_definition):
10992 Consider case where the definition is followed by more
10993 definitions.
10994 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10995 tracepoint-selftests.c.
10996 * unittests/tracepoint-selftests.c: New.
10997
7eb2418f
PFC
109982018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10999
11000 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11001 Carvalho.
11002
7cbe16e9
SR
110032018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11004
3d6b3b82 11005 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 11006
4ee89e90
SR
110072018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11008
3d6b3b82 11009 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 11010
92630041
TT
110112018-03-19 Tom Tromey <tom@tromey.com>
11012
11013 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11014 "IDENT" production.
11015
76727919
TT
110162018-03-19 Pedro Alves <palves@redhat.com>
11017 Tom Tromey <tom@tromey.com>
11018
11019 * unittests/observable-selftests.c: New file.
11020 * common/observable.h: New file.
11021 * observable.h: New file.
11022 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11023 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11024 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11025 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11026 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11027 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11028 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11029 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11030 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11031 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11032 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11033 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11034 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11035 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11036 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11037 tui/tui-interp.c, valops.c: Update all users.
11038 * tui/tui-hooks.c (tui_bp_created_observer)
11039 (tui_bp_deleted_observer, tui_bp_modified_observer)
11040 (tui_inferior_exit_observer, tui_before_prompt_observer)
11041 (tui_normal_stop_observer, tui_register_changed_observer):
11042 Remove.
11043 (tui_observers_token): New global.
11044 (attach_or_detach, tui_attach_detach_observers): New functions.
11045 (tui_install_hooks, tui_remove_hooks): Use
11046 tui_attach_detach_observers.
11047 * record-btrace.c (record_btrace_thread_observer): Remove.
11048 (record_btrace_thread_observer_token): New global.
11049 * observer.sh: Remove.
11050 * observer.c: Rename to observable.c.
11051 * observable.c (namespace gdb_observers): Define new objects.
11052 (observer_debug): Move into gdb_observers namespace.
11053 (struct observer, struct observer_list, xalloc_observer_list_node)
11054 (xfree_observer_list_node, generic_observer_attach)
11055 (generic_observer_detach, generic_observer_notify): Remove.
11056 (_initialize_observer): Update.
11057 Don't include observer.inc.
11058 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11059 (clean mostlyclean): Likewise.
11060 (observer.h, observer.inc): Remove targets.
11061 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11062 (COMMON_SFILES): Use observable.c, not observer.c.
11063 * .gitignore: Remove observer.h.
11064
1cb1f3da
TT
110652018-03-18 Tom Tromey <tom@tromey.com>
11066
11067 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11068 gdb::def_vector.
11069 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11070
a06ab151
TT
110712018-03-17 Tom Tromey <tom@tromey.com>
11072
11073 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11074
770623f7
TT
110752018-03-17 Tom Tromey <tom@tromey.com>
11076
11077 * target.c (class scoped_target_fd): New.
11078 (target_fileio_close_cleanup): Remove.
11079 (target_fileio_read_alloc_1): Use scoped_target_fd.
11080
39be3c7e
SM
110812018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11082
11083 * silent-rules.mk: New.
11084 * Makefile.in: Include silent-rules.mk
11085 (srcdir, VPATH, top_srcdir): Move up.
11086 (COMPILE): Add ECHO_CXX.
11087 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11088 (init.c): Add ECHO_INIT_C.
11089 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11090 (version.c): Add ECHO_GEN.
11091 (printcmd.o): Add ECHO_CXX.
11092 (target-float.o): Add ECHO_CXX.
11093 (ada-exp.o): Add ECHO_CXX.
11094 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11095 (insight$(EXEEXT)): Add ECHO_CXXLD.
11096 * gnulib/configure.ac: Add AM_SILENT_RULES.
11097 * gnulib/aclocal.m4: Re-generate.
11098 * gnulib/configure: Re-generate.
11099 * gnulib/import/Makefile.in: Re-generate.
11100
37e136b1
TT
111012018-03-16 Tom Tromey <tom@tromey.com>
11102
11103 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11104 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11105 * utils.c (do_free_section_addr_info)
11106 (make_cleanup_free_section_addr_info): Remove.
11107 * symfile.h (struct other_sections): Add constructor.
11108 (struct section_addr_info): Remove.
11109 (section_addr_info): New typedef.
11110 (struct sym_fns) <sym_offsets>: Change type of parameter.
11111 (build_section_addr_info_from_objfile)
11112 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11113 (default_symfile_offsets, symbol_file_add)
11114 (symbol_file_add_from_bfd)
11115 (build_section_addr_info_from_section_table): Update.
11116 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11117 * symfile.c (alloc_section_addr_info): Remove.
11118 (build_section_addr_info_from_section_table): Change return type.
11119 Update.
11120 (build_section_addr_info_from_bfd)
11121 (build_section_addr_info_from_objfile): Likewise.
11122 (free_section_addr_info): Remove.
11123 (relative_addr_info_to_section_offsets): Change type of "addrs".
11124 (addrs_section_compar): Now a std::sort comparator.
11125 (addrs_section_sort): Change return type.
11126 (addr_info_make_relative): Change type of "addrs". Update.
11127 (default_symfile_offsets, syms_from_objfile_1)
11128 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11129 (symbol_file_add_separate): Update.
11130 (symbol_file_add): Change type of "addrs". Update.
11131 (add_symbol_file_command): Update. Remove cleanups.
11132 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11133 cleanups.
11134 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11135 * solib.c (solib_read_symbols): Update.
11136 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11137 * machoread.c (macho_symfile_offsets): Update.
11138 * jit.c (jit_bfd_try_read_symtab): Update.
11139
03afa6ef
SM
111402018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11141
11142 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11143 unittests/utils-selftests.c.
11144 * unittests/utils-selftests.c: New file.
11145
3ae9ce5d
TT
111462018-03-14 Tom Tromey <tom@tromey.com>
11147
11148 PR cli/14977:
11149 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11150 for NULL.
11151
b8c2339b
TT
111522018-03-14 Tom Tromey <tom@tromey.com>
11153
11154 PR cli/19918:
11155 * printcmd.c (printf_pointer): Allow "-" in format.
11156
80ae639d
TT
111572018-03-14 Tom Tromey <tom@tromey.com>
11158
11159 * printcmd.c (_initialize_printcmd): Add usage to printf.
11160
0d671d99
YQ
111612018-03-14 Yao Qi <qiyao@sourceware.org>
11162
11163 * MAINTAINERS: Update my email address.
11164
b577b6af
TT
111652018-03-13 Tom Tromey <tom@tromey.com>
11166
11167 * machoread.c (macho_check_dsym): Change filenamep to a
11168 std::string*.
11169 (macho_symfile_read): Update.
11170 * symfile.c (load_command): Use std::string.
11171
89a3b63e
AB
111722018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11173
11174 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11175 to error message string.
11176 (riscv_register_name): Use xsnprintf instead of sprintf.
11177 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11178 internal_error.
11179 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11180 error.
11181 (riscv_push_dummy_call): Likewise.
11182
984c7238
TT
111832018-03-12 Tom Tromey <tom@tromey.com>
11184
11185 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11186 Use gdb::byte_vector.
11187 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11188
933522d1
YQ
111892018-03-12 Yao Qi <yao.qi@linaro.org>
11190
11191 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11192 parameter type to readable_regcache.
11193 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11194 the declaration.
11195
be2daae6
TT
111962018-03-11 Tom Tromey <tom@tromey.com>
11197
11198 * dwarf2read.c (struct nextfield): Add initializers.
11199 (struct nextfnfield): Remove.
11200 (struct fnfieldlist): Add initializers. Remove "length" and
11201 "head", use std::vector.
11202 (struct decl_field_list): Remove.
11203 (struct field_info): Add initializers.
11204 <fields, baseclasses>: Now std::vector.
11205 <nbaseclasses, nfnfields, typedef_field_list_count,
11206 nested_types_list_count>: Remove.
11207 (dwarf2_add_field, dwarf2_add_type_defn)
11208 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11209 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11210 (process_structure_scope): Update.
11211
484cf504
TT
112122018-03-11 Tom Tromey <tom@tromey.com>
11213
11214 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11215 for use by std::sort.
11216 (build_type_psymtabs_1): Use std::vector.
11217
9bd8e0b0
EZ
112182018-03-09 Eli Zaretskii <eliz@gnu.org>
11219
11220 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11221 and LIBMPFR in the printed configuration.
11222
5dc1a704
TT
112232018-03-08 Tom Tromey <tom@tromey.com>
11224
11225 * source.c (get_filename_and_charpos): Use scoped_fd.
11226 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11227 (procfs_pidlist): Likewise.
11228 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11229 (iterate_over_mappings): Likewise.
11230
fdf07f3a
TT
112312018-03-08 Tom Tromey <tom@tromey.com>
11232
11233 * infcall.c (struct call_return_meta_info)
11234 <stack_temporaries_enabled>: Remove.
11235 (get_call_return_value, call_function_by_hand_dummy): Update.
11236 * thread.c (disable_thread_stack_temporaries): Remove.
11237 (enable_thread_stack_temporaries): Remove.
11238 (thread_stack_temporaries_enabled_p): Return bool.
11239 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11240 (get_last_thread_stack_temporary): Update.
11241 * eval.c (evaluate_subexp): Update.
11242 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11243 class, not a function.
11244 (value_ptr, value_vec): Remove typedefs.
11245 (class thread_info) <stack_temporaries_enabled>: Now bool.
11246 <stack_temporaries>: Now a std::vector.
11247 (thread_stack_temporaries_enabled_p)
11248 (value_in_thread_stack_temporaries): Return bool.
11249
567a3e54
SM
112502018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11251
11252 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11253 (getpkt_or_notif_sane_1): Likewise.
11254
00b40057
SM
112552018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11256
11257 * build-id.c (build_id_to_debug_bfd): Use std::string.
11258
a8dbfd58
SM
112592018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11260
11261 * build-id.c (find_separate_debug_file_by_buildid): Return
11262 std::string.
11263 * build-id.h (find_separate_debug_file_by_buildid): Return
11264 std::string.
11265 * coffread.c (coff_symfile_read): Adjust to std::string.
11266 * elfread.c (elf_symfile_read): Adjust to std::string.
11267 * symfile.c (separate_debug_file_exists): Change parameter to
11268 std::string.
11269 (find_separate_debug_file): Return std::string.
11270 (find_separate_debug_file_by_debuglink): Return std::string.
11271 * symfile.h (find_separate_debug_file_by_debuglink): Return
11272 std::string.
11273
e6a58aa8
SM
112742018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11275
11276 * common/xml-utils.c (xml_escape_text): Move code to...
11277 (xml_escape_text_append): ... this new function.
11278 * common/xml-utils.h (xml_escape_text_append): New declaration.
11279 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11280 New function.
11281 (_initialize_xml_utils): register test_xml_escape_text_append as
11282 a selftest.
11283
4ef0bef6
AH
112842018-03-07 Alan Hayward <alan.hayward@arm.com>
11285
11286 * defs.h: Remove MAX_REGISTER_SIZE.
11287 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11288 asserts.
11289 * python/py-unwind.c (pyuw_sniffer): Likewise.
11290
e0d3522b
TT
112912018-03-07 Tom Tromey <tom@tromey.com>
11292
11293 * linux-tdep.c (linux_info_proc): Update.
11294 * target.h (struct target_ops) <to_fileio_readlink>: Return
11295 optional<string>.
11296 (target_fileio_readlink): Return optional<string>.
11297 * remote.c (remote_hostio_readlink): Return optional<string>.
11298 * inf-child.c (inf_child_fileio_readlink): Return
11299 optional<string>.
11300 * target.c (target_fileio_readlink): Return optional<string>.
11301
ea005f31
AB
113022018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11303
11304 * regcache.c (cooked_read_test): Add riscv to the list of
11305 architectures that have a save_reggroup.
11306
e95a97d4
AA
113072018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11308
11309 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11310 value is not a dynamic class object.
11311
d8344f3d
TT
113122018-03-06 Tom Tromey <tom@tromey.com>
11313
11314 * rust-exp.y: Formatting fixes.
11315
9add17f2
AB
113162018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11317
11318 * riscv-tdep.c (riscv_register_name): Remove target description
11319 support.
11320 (riscv_gdbarch_init): Remove target description check.
11321
c9486dfe
AB
113222018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11323
11324 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11325 comment.
11326 * riscv-tdep.h: Likewise.
11327
d74aff3d
AB
113282018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11329
11330 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11331 (riscv_pseudo_register_write): Delete.
11332 (riscv_gdbarch_init): Remove all use of pseudo registers.
11333
7ea78b59
SM
113342018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11335
11336 * record-btrace.c (btrace_print_lines): Replace cleanup
11337 parameter with RAII equivalents.
11338 (btrace_insn_history): Replace cleanup with RAII equivalents.
11339 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11340 make_cleanup_ui_out_tuple_begin_end): Remove.
11341 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11342 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11343 make_cleanup_ui_out_list_begin_end): Remove.
11344
53127008
SM
113452018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11346
11347 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11348 parameter types to std::vector. Use bool.
11349 (record_btrace_wait): Replace VEC(tp_t) with
11350 std::vector<thread_info *>.
11351 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11352
228f1508
SM
113532018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11354
11355 * record-btrace.c (record_btrace_disable_callback): Remove.
11356 (struct scoped_btrace_disable): New.
11357 (record_btrace_open): Use scoped_btrace_disable.
11358
b2970c23
AB
113592018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11360
11361 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11362 reading values from registers.
11363
fb294655
AB
113642018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11365
11366 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11367 where appropriate.
11368
cab5bb9d
AB
113692018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11370
11371 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11372 change parameter type. Use GDB's print functions, and use
11373 core_addr_to_string where appropriate.
11374 (riscv_push_dummy_call): Use core_addr_to_string where
11375 appropriate, update call to riscv_print_arg_location, and reindent
11376 a few lines.
11377 (riscv_return_value): Update call to riscv_print_arg_location.
11378
dbbb1059
AB
113792018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11380 Tim Newsome <tim@sifive.com>
11381 Albert Ou <a0u@eecs.berkeley.edu>
11382 Darius Rad <darius@bluespec.com>
11383
11384 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11385 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11386 (ALLDEPFILES): Add riscv-tdep.c
11387 * configure.tgt: Add riscv support.
11388 * riscv-tdep.c: New file.
11389 * riscv-tdep.h: New file.
11390 * NEWS: Mention new target.
11391 * MAINTAINERS: Add entry for riscv.
11392
5dc43913
AB
113932018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11394
11395 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11396 fields within aggregates.
11397
3dea1ef7
SM
113982018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11399
11400 * record-btrace.c (btrace_print_lines): Change type of flags to
11401 gdb_disassembly_flags.
11402
7efba073
JB
114032018-03-04 John Baldwin <jhb@FreeBSD.org>
11404
11405 * fbsd-nat.c: Include "inf-ptrace.h".
11406 (USE_SIGTRAP_SIGINFO): Conditionally define.
11407 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11408 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11409 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11410 function.
11411 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11412 Likewise.
11413 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11414 Likewise.
11415 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11416 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11417 "supports_stopped_by_hw_breakpoint" target methods.
11418
386a8676
JB
114192018-03-04 John Baldwin <jhb@FreeBSD.org>
11420
11421 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11422 * fbsd-nat.c (debug_fbsd_nat): New variable.
11423 (show_fbsd_nat_debug): New function.
11424 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11425 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11426
12279366
JB
114272018-03-04 John Baldwin <jhb@FreeBSD.org>
11428
11429 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11430 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11431 prototype.
11432 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11433 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11434 method.
11435
54693cf5
SM
114362018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11437
11438 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11439 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11440
ccb2231c
SM
114412018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11442
11443 * charset.c (struct charset_vector): New.
11444 (charsets): Change type to charset_vector.
11445 (find_charset_names): Adjust.
11446 (add_one): Adjust.
11447 (_initialize_charset): Adjust.
11448
6fb16ce6
SM
114492018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11450
11451 * progspace.h (struct program_space) <deleted_solibs>: Change
11452 type to std::vector<std::string>.
11453 * progspace.c (clear_program_space_solib_cache): Adjust.
11454 * breakpoint.c (print_solib_event): Adjust.
11455 (check_status_catch_solib): Adjust.
11456 * solib.c (update_solib_list): Adjust.
11457 * ui-out.h (class ui_out) <field_string>: New overload.
11458 * ui-out.c (ui_out::field_string): New overload.
11459
564b1e3f
SM
114602018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11461
11462 * progspace.h (struct program_space): Add constructor and
11463 destructor, initialize fields.
11464 (add_program_space): Remove.
11465 * progspace.c (add_program_space): Rename to...
11466 (program_space::program_space): ... this.
11467 (release_program_space): Rename to...
11468 (program_space::~program_space): ... this.
11469 (delete_program_space): Use delete to delete program_space.
11470 (initialize_progspace): Use new to allocate program_space.
11471 * inferior.c (add_inferior_with_spaces): Likewise.
11472 (clone_inferior_command): Likewise.
11473 * infrun.c (follow_fork_inferior): Likewise.
11474 (handle_vfork_child_exec_or_exit): Likewise.
11475
e80aaf61
SM
114762018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11477
11478 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11479 (delim_string_to_char_ptr_vec): Return std::vector of
11480 gdb::unique_xmalloc_ptr.
11481 (dirnames_to_char_ptr_vec_append): Take std::vector of
11482 gdb::unique_xmalloc_ptr.
11483 (dirnames_to_char_ptr_vec): Return std::vector of
11484 gdb::unique_xmalloc_ptr.
11485 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11486 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11487 (delim_string_to_char_ptr_vec): Return an std::vector of
11488 gdb::unique_xmalloc_ptr, adjust the code.
11489 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11490 gdb::unique_xmalloc_ptr, adjust the code.
11491 (dirnames_to_char_ptr_vec): Return an std::vector of
11492 gdb::unique_xmalloc_ptr, adjust the code.
11493 * auto-load.c (auto_load_safe_path_vec): Change type to
11494 std::vector of gdb::unique_xmalloc_ptr.
11495 (auto_load_expand_dir_vars): Return an std::vector of
11496 gdb::unique_xmalloc_ptr, adjust the code.
11497 (auto_load_safe_path_vec_update): Adjust.
11498 (filename_is_in_auto_load_safe_path_vec): Adjust.
11499 (auto_load_objfile_script_1): Adjust.
11500 * build-id.c (build_id_to_debug_bfd): Adjust.
11501 * linux-thread-db.c (thread_db_load_search): Adjust.
11502 * source.c (add_path): Adjust.
11503 (openp): Adjust.
11504 * symfile.c (find_separate_debug_file): Adjust.
11505 * utils.c (do_free_char_ptr_vec): Remove.
11506 (make_cleanup_free_char_ptr_vec): Remove.
11507
ab818ade
SDJ
115082018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11509
11510 PR gdb/22907
11511 * common/pathstuff.c: Conditionally include "<windows.h>".
11512
e1e6f073
GS
115132018-03-01 Georg Sauthoff <mail@georg.so>
11514
11515 PR gdb/22888
11516 * gcore.in: Quote variables and switch interpreter to bash.
11517
c7b15a66
TT
115182018-03-01 Tom Tromey <tom@tromey.com>
11519
11520 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11521 assertion. Add assertion for discriminant_index.
11522 (quirk_rust_enum): Use correct base type name in univariant case.
11523
0cb7c7b0
SM
115242018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11525
11526 * record.c (get_call_history_modifiers): Return a
11527 record_print_flags.
11528 (cmd_record_call_history): Adjust.
11529 * record-btrace.c (record_btrace_call_history): Adjust.
11530 (record_btrace_call_history_range): Adjust.
11531 (record_btrace_call_history_from): Adjust.
11532 * target-debug.h (target_debug_print_record_print_flags): New.
11533 * target-delegates.c: Re-generate.
11534 * target.c (target_call_history): Change flags type.
11535 (target_call_history_from): Likewise.
11536 (target_call_history_range): Likewise.
11537 * target.h (struct target_ops) <target_call_history>: Likewise.
11538 (target_call_history_from): Likewise.
11539 (target_call_history_range): Likewise.
11540
25e3c82c
SDJ
115412018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11542 Simon Marchi <simon.marchi@polymtl.ca>
11543
11544 * common/common-utils.c: Include "sys/stat.h".
11545 (is_regular_file): Move here from "source.c"; change return
11546 type to "bool".
11547 * common/common-utils.h (is_regular_file): New prototype.
11548 * common/pathstuff.c (contains_dir_separator): New function.
11549 * common/pathstuff.h (contains_dir_separator): New prototype.
11550 * source.c: Don't include "sys/stat.h".
11551 (is_regular_file): Move to "common/common-utils.c".
11552
b4987c95
SDJ
115532018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11554
11555 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11556 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11557 * auto-load.c: Include "common/pathstuff.h".
11558 * common/common-def.h (current_directory): Move here.
11559 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11560 function.
11561 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11562 prototype.
11563 * common/pathstuff.c: New file.
11564 * common/pathstuff.h: New file.
11565 * compile/compile.c: Include "common/pathstuff.h".
11566 * defs.h (current_directory): Move to "common/common-defs.h".
11567 * dwarf2read.c: Include "common/pathstuff.h".
11568 * exec.c: Likewise.
11569 * guile/scm-safe-call.c: Likewise.
11570 * linux-thread-db.c: Likewise.
11571 * main.c: Likewise.
11572 * nto-tdep.c: Likewise.
11573 * objfiles.c: Likewise.
11574 * source.c: Likewise.
11575 * symtab.c: Likewise.
11576 * utils.c: Include "common/pathstuff.h".
11577 (gdb_realpath): Move to "common/pathstuff.c".
11578 (gdb_realpath_keepfile): Likewise.
11579 (gdb_abspath): Likewise.
11580 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11581 (gdb_realpath_keepfile): Likewise.
11582 (gdb_abspath): Likewise.
11583
f169cfdc
JB
115842018-02-28 John Baldwin <jhb@FreeBSD.org>
11585
11586 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11587 wildcard process pid for super_resume for kernels with a
11588 specific bug.
11589
e05cac70
PM
115902018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11591
11592 * compile/compile.c (get_args): Add additional comments
11593 explaining function.
11594
55089490
TT
115952018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11596 Tom Tromey <tom@tromey.com>
11597
11598 * target.h (memory_write_request_s): Remove typedef. Don't define
11599 VEC.
11600 (target_write_memory_blocks): Change argument to std::vector.
11601 (struct memory_write_request): Add constructor.
11602 * target-memory.c (compare_block_starting_address): Return bool.
11603 Change argument types.
11604 (claim_memory): Change arguments to use std::vector.
11605 (split_regular_and_flash_blocks, blocks_to_erase)
11606 (compute_garbled_blocks): Likewise.
11607 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11608 (target_write_memory_blocks): Change argument to std::vector.
11609 * symfile.c (struct load_section_data): Add constructor and
11610 destructor. Use std::vector for "requests".
11611 (struct load_progress_data): Add initializers.
11612 (load_section_callback): Update. Use "new".
11613 (clear_memory_write_data): Remove.
11614 (generic_load): Update.
11615
0c305b61
AH
116162018-02-27 Alan Hayward <alan.hayward@arm.com>
11617
11618 * arch/aarch64.h: Use common/tdesc.h.
11619
c5196c92
MR
116202018-02-26 Maciej W. Rozycki <macro@mips.com>
11621
11622 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11623 architecture with a 64-bit ABI.
11624
37c33887
MR
116252018-02-26 Maciej W. Rozycki <macro@mips.com>
11626
11627 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11628 ahead of target description loading.
11629
d4dd3282
TT
116302018-02-26 Tom Tromey <tom@tromey.com>
11631
11632 * stack.c (backtrace_command_1): Update.
11633 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11634 of "flags".
11635 * python/py-framefilter.c (py_print_frame)
11636 (gdbpy_apply_frame_filter): Change type of "flags".
11637 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11638 of "flags".
11639 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11640 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11641 * extension.h (enum frame_filter_flag): Rename from
11642 frame_filter_flags.
11643 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11644 (apply_ext_lang_frame_filter): Change type of "flags".
11645 * extension.c (apply_ext_lang_frame_filter): Change type of
11646 "flags".
11647 * extension-priv.h (struct extension_language_ops)
11648 <apply_frame_filter>: Change type of "flags".
11649
6893c19a
TT
116502018-02-26 Tom Tromey <tom@tromey.com>
11651
11652 PR python/16497:
11653 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11654 off-by-one in py_end computation.
11655 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11656 PRINT_MORE_FRAMES.
11657 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11658 constant.
11659
2ddeaf8a
TT
116602018-02-26 Tom Tromey <tom@tromey.com>
11661
11662 * dwarf2read.c (struct variant_field): New.
11663 (struct nextfield) <variant>: New field.
11664 (dwarf2_add_field): Handle DW_TAG_variant_part.
11665 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11666 discriminated union.
11667 (read_structure_type): Handle DW_TAG_variant_part.
11668 (handle_struct_member_die): New function, extracted from
11669 process_structure_scope. Handle DW_TAG_variant.
11670 (process_structure_scope): Handle discriminated unions. Call
11671 handle_struct_member_die.
11672
c9317f21
TT
116732018-02-26 Tom Tromey <tom@tromey.com>
11674
11675 * rust-lang.h (rust_last_path_segment): Declare.
11676 * rust-lang.c (rust_last_path_segment): Now public. Change
11677 contract.
11678 (struct disr_info): Remove.
11679 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11680 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11681 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11682 (rust_enum_p, rust_enum_variant): New function.
11683 (rust_underscore_fields): Remove "offset" parameter.
11684 (rust_print_enum): New function.
11685 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11686 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11687 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11688 enums.
11689 (rust_internal_print_type): New function, from rust_print_type.
11690 Remove enum code.
11691 (rust_print_type): Call rust_internal_print_type.
11692 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11693 Update enum handling.
11694 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11695 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11696 (rust_union_quirks): New functions.
11697 (process_full_comp_unit, process_full_type_unit): Call
11698 rust_union_quirks.
11699 (process_structure_scope): Update rust_unions if necessary.
11700
7c22600a
TT
117012018-02-26 Tom Tromey <tom@tromey.com>
11702
11703 * value.h (value_union_variant): Declare.
11704 * valops.c (value_union_variant): New function.
11705 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11706 (struct discriminant_info): New.
11707 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11708 enumerator.
11709 (struct main_type) <flag_discriminated_union>: New field.
11710
15ce8941
TT
117112018-02-26 Tom Tromey <tom@tromey.com>
11712
11713 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11714 unittests/unpack-selftests.c.
11715 * unittests/unpack-selftests.c: New file.
11716 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11717
48fbe735
YQ
117182018-02-26 Yao Qi <yao.qi@linaro.org>
11719
11720 * dwarf2read.c (struct partial_die_info) <read>: New method.
11721 (read_partial_die): Remove the declaration.
11722 (load_partial_dies): Update.
11723 (partial_die_info::partial_die_info):
11724 (read_partial_die): Change it to partial_die_info::read.
11725
52356b79
YQ
117262018-02-26 Yao Qi <yao.qi@linaro.org>
11727
11728 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11729 (fixup_partial_die): Remove declaration.
11730 (scan_partial_symbols): Update.
11731 (partial_die_parent_scope): Likewise.
11732 (partial_die_full_name): Likewise.
11733 (fixup_partial_die): Change it to partial_die_info::fixup.
11734
35cc7ed7
YQ
117352018-02-26 Yao Qi <yao.qi@linaro.org>
11736
11737 * dwarf2read.c (read_partial_die): Update the declaration.
11738 (load_partial_dies): Caller update.
11739 (read_partial_die): Remove one argument abbrev_len.
11740
6f06d47b
YQ
117412018-02-26 Yao Qi <yao.qi@linaro.org>
11742
11743 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11744 assignment operator.
11745 (load_partial_dies): Use ctor and copy ctor.
11746 (read_partial_die): Update.
11747 (dwarf2_cu::find_partial_die): Use ctor.
11748
d590ff25
YQ
117492018-02-26 Yao Qi <yao.qi@linaro.org>
11750
11751 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11752 (find_partial_die_in_comp_unit): Change it to
11753 dwarf2_cu::find_partial_die.
11754 (find_partial_die): Update.
11755
fd0a254f
YQ
117562018-02-26 Yao Qi <yao.qi@linaro.org>
11757
11758 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11759 is NULL.
11760
cd9983dd
YQ
117612018-02-26 Yao Qi <yao.qi@linaro.org>
11762
11763 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11764
f46cd62a
AH
117652018-02-26 Alan Hayward <alan.hayward@arm.com>
11766
11767 * arch/amd64.h: Use common/tdesc.h.
11768 * arch/i386.c: Likewise.
11769 * arch/i386.h: Likewise.
11770 * arch/tic6x.c: Likewise.
11771 * arch/tdesc.h: Move file from here...
11772 * common/tdesc.h: ...to here.
11773 * features/aarch64-core.c: Regenerate.
11774 * features/aarch64-fpu.c: Regenerate.
11775 * features/i386/32bit-avx.c: Regenerate.
11776 * features/i386/32bit-avx512.c: Regenerate.
11777 * features/i386/32bit-core.c: Regenerate.
11778 * features/i386/32bit-linux.c: Regenerate.
11779 * features/i386/32bit-mpx.c: Regenerate.
11780 * features/i386/32bit-pkeys.c: Regenerate.
11781 * features/i386/32bit-sse.c: Regenerate.
11782 * features/i386/64bit-avx.c: Regenerate.
11783 * features/i386/64bit-avx512.c: Regenerate.
11784 * features/i386/64bit-core.c: Regenerate.
11785 * features/i386/64bit-linux.c: Regenerate.
11786 * features/i386/64bit-mpx.c: Regenerate.
11787 * features/i386/64bit-pkeys.c: Regenerate.
11788 * features/i386/64bit-segments.c: Regenerate.
11789 * features/i386/64bit-sse.c: Regenerate.
11790 * features/i386/x32-core.c: Regenerate.
11791 * features/tic6x-c6xp.c: Regenerate.
11792 * features/tic6x-core.c: Regenerate.
11793 * features/tic6x-gp.c: Regenerate.
11794 * target-descriptions.c: Use common/tdesc.h.
11795 * target-descriptions.h: Likewise.
11796
9b292f68
TT
117972018-02-24 Tom Tromey <tom@tromey.com>
11798
11799 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11800 (try_thread_db_load_from_dir, thread_db_load_search): Use
11801 std::string.
11802 (info_auto_load_libthread_db_compare): Return bool. Change
11803 argument types.
11804 (info_auto_load_libthread_db): Use std::vector, std::string.
11805 Remove cleanups.
11806
281d762b
TT
118072018-02-24 Tom Tromey <tom@tromey.com>
11808
11809 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11810 std::string.
11811 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11812 std::string*.
11813 * gdbarch.c: Rebuild.
11814 * gdbarch.h: Rebuild.
11815 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11816 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11817 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11818 std::string*.
11819
9d8780f0
SM
118202018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11821
11822 * gdbtypes.h (sect_offset): Change type to uint64_t.
11823 (sect_offset_str): New function.
11824 * dwarf2read.c (create_addrmap_from_aranges): Use
11825 sect_offset_str.
11826 (error_check_comp_unit_head): Likewise.
11827 (create_debug_type_hash_table): Likewise.
11828 (read_cutu_die_from_dwo): Likewise.
11829 (init_cutu_and_read_dies): Likewise.
11830 (init_cutu_and_read_dies_no_follow): Likewise.
11831 (process_psymtab_comp_unit_reader): Likewise.
11832 (partial_die_parent_scope): Likewise.
11833 (peek_die_abbrev): Likewise.
11834 (process_queue): Likewise.
11835 (dwarf2_physname): Likewise.
11836 (read_namespace_alias): Likewise.
11837 (read_import_statement): Likewise.
11838 (create_dwo_cu_reader): Likewise.
11839 (create_cus_hash_table): Likewise.
11840 (lookup_dwo_cutu): Likewise.
11841 (inherit_abstract_dies): Likewise.
11842 (read_func_scope): Likewise.
11843 (read_call_site_scope): Likewise.
11844 (dwarf2_add_member_fn): Likewise.
11845 (read_common_block): Likewise.
11846 (read_module_type): Likewise.
11847 (read_typedef): Likewise.
11848 (read_subrange_type): Likewise.
11849 (load_partial_dies): Likewise.
11850 (read_partial_die): Likewise.
11851 (find_partial_die): Likewise.
11852 (read_str_index): Likewise.
11853 (dwarf2_string_attr): Likewise.
11854 (build_error_marker_type): Likewise.
11855 (lookup_die_type): Likewise.
11856 (dump_die_shallow): Likewise.
11857 (follow_die_ref): Likewise.
11858 (dwarf2_fetch_die_loc_sect_off): Likewise.
11859 (dwarf2_fetch_constant_bytes): Likewise.
11860 (follow_die_sig): Likewise.
11861 (get_signatured_type): Likewise.
11862 (get_DW_AT_signature_type): Likewise.
11863 (dwarf2_find_containing_comp_unit): Likewise.
11864 (set_die_type): Likewise.
11865
8ec57239
JB
118662018-02-21 John Baldwin <jhb@FreeBSD.org>
11867
11868 * arch/aarch64.c: Include "common-defs.h".
11869 * arch/amd64.c: Likewise.
11870 * arch/i386.c: Likewise.
11871
3eac2b65
TT
118722018-02-21 Tom Tromey <tom@tromey.com>
11873
11874 * value.h: (extract_field_op): Update.
11875 * eval.c (extract_field_op): Return a const char *.
11876 * expression.h (parse_expression_for_completion): Update.
11877 * completer.c (complete_expression): Update.
11878 (add_struct_fields): Make fieldname const.
11879 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11880 (mark_completion_tag, parse_exp_in_context_1): Update.
11881 (parse_expression_for_completion): Change "name" to
11882 unique_xmalloc_ptr*.
11883
6ccb583f
TT
118842018-02-21 Tom Tromey <tom@tromey.com>
11885
11886 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11887
c113ed0c
YQ
118882018-02-21 Yao Qi <yao.qi@linaro.org>
11889
11890 * avr-tdep.c (avr_read_pc): Change parameter type to
11891 readable_regcache.
11892 * gdbarch.sh (read_pc): Likewise.
11893 * gdbarch.c: Re-generated.
11894 * gdbarch.h: Re-generated.
11895 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11896 readable_regcache.
11897 * ia64-tdep.c (ia64_read_pc): Likewise.
11898 * mips-tdep.c (mips_read_pc): Likewise.
11899 * spu-tdep.c (spu_read_pc): Likewise.
11900
4c74fe6b
YQ
119012018-02-21 Yao Qi <yao.qi@linaro.org>
11902
11903 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11904 * regcache-dump.c: New file.
11905 * regcache.c: Move register_dump to regcache-dump.c.
11906 (maintenance_print_registers): Likewise.
11907 (maintenance_print_raw_registers): Likewise.
11908 (maintenance_print_cooked_registers): Likewise.
11909 (maintenance_print_register_groups): Likewise.
11910 (maintenance_print_remote_registers): Likewise.
11911 (_initialize_regcache): Likewise.
11912 * regcache.h (register_dump): Moved from regcache.c.
11913
796bb026
YQ
119142018-02-21 Yao Qi <yao.qi@linaro.org>
11915
11916 * regcache.c (regcache::regcache): Update.
11917 (regcache::invalidate): Move it to detached_regcache::invalidate.
11918 (get_thread_arch_aspace_regcache): Update.
11919 (regcache::raw_update): Update.
11920 (regcache::cooked_read): Remove some code.
11921 (regcache::cooked_read_value): Likewise.
11922 (regcache::raw_write): Remove assert on m_readonly_p.
11923 (regcache::raw_supply_integer): Move it to
11924 detached_regcache::raw_supply_integer.
11925 (regcache::raw_supply_zeroed): Likewise.
11926 * regcache.h (detached_regcache) <raw_supply_integer>: New
11927 declaration.
11928 <raw_supply_zeroed, invalidate>: Likewise.
11929 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11930 <invalidate>: Likewise.
11931 <m_readonly_p>: Removed.
11932
215c69dc
YQ
119332018-02-21 Yao Qi <yao.qi@linaro.org>
11934
11935 * infcmd.c (get_return_value): Let stop_regs point to
11936 get_current_regcache.
11937 * regcache.c (regcache::regcache): Remove.
11938 (register_dump_reg_buffer): New class.
11939 (regcache_print): Adjust.
11940 * regcache.h (regcache): Remove constructors.
11941
f3384e66
YQ
119422018-02-21 Yao Qi <yao.qi@linaro.org>
11943
11944 * regcache.c (class register_dump): New class.
11945 (register_dump_regcache, register_dump_none): New class.
11946 (register_dump_remote, register_dump_groups): New class.
11947 (regcache_print): Update.
11948 * regcache.h (regcache_dump_what): Move it to regcache.c.
11949 (regcache) <dump>: Remove.
11950
c8ec2f33
YQ
119512018-02-21 Yao Qi <yao.qi@linaro.org>
11952
11953 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11954 reg_buffer_rw *.
11955 (jit_unwind_reg_set_impl): Call raw_supply.
11956 (jit_frame_sniffer): Use reg_buffer_rw.
11957 * record-full.c (record_full_core_regbuf): Change its type.
11958 (record_full_core_open_1): Use reg_buffer_rw.
11959 (record_full_close): Likewise.
11960 (record_full_core_fetch_registers): Use regcache->raw_supply.
11961 (record_full_core_store_registers): Likewise.
11962 * regcache.c (regcache::get_register_status): Move it to
11963 reg_buffer.
11964 (regcache_raw_set_cached_value): Remove.
11965 (regcache::raw_set_cached_value): Remove.
11966 (regcache::raw_write): Call raw_supply.
11967 (regcache::raw_supply): Move it to reg_buffer_rw.
11968 * regcache.h (regcache_raw_set_cached_value): Remove.
11969 (reg_buffer_rw): New class.
11970
daf6667d
YQ
119712018-02-21 Yao Qi <yao.qi@linaro.org>
11972
11973 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11974 readonly_detached_regcache.
11975 (dummy_frame_prev_register): Use regcache->cooked_read.
11976 * frame.c (frame_save_as_regcache): Change return type.
11977 (frame_pop): Update.
11978 * frame.h (frame_save_as_regcache): Update declaration.
11979 * inferior.h (get_infcall_suspend_state_regcache): Update
11980 declaration.
11981 * infrun.c (infcall_suspend_state) <registers>: use
11982 readonly_detached_regcache.
11983 (save_infcall_suspend_state): Don't use regcache_dup.
11984 (get_infcall_suspend_state_regcache): Change return type.
11985 * linux-fork.c (struct fork_info) <savedregs>: Change to
11986 readonly_detached_regcache.
11987 <pc>: New field.
11988 (fork_save_infrun_state): Don't use regcache_dup.
11989 (info_checkpoints_command): Adjust.
11990 * mi/mi-main.c (register_changed_p): Update declaration.
11991 (mi_cmd_data_list_changed_registers): Use
11992 readonly_detached_regcache.
11993 (register_changed_p): Change parameter type to
11994 readonly_detached_regcache.
11995 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11996 readonly_detached_regcache.
11997 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11998 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11999 New.
12000 (regcache::save): Move it to reg_buffer.
12001 (regcache::restore): Change parameter type.
12002 (regcache_dup): Remove.
12003 * regcache.h (reg_buffer) <save>: New method.
12004 (readonly_detached_regcache): New class.
12005 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12006 readonly_detached_regcache.
12007 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12008
fc5b8736
YQ
120092018-02-21 Yao Qi <yao.qi@linaro.org>
12010
12011 * frame.c (frame_save_as_regcache): Use regcache method save.
12012 (frame_pop): Use regcache method restore.
12013 * infrun.c (restore_infcall_suspend_state): Likewise.
12014 * linux-fork.c (fork_load_infrun_state): Likewise.
12015 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12016 save.
12017 * regcache.c (regcache_save): Remove.
12018 (regcache::restore): More asserts.
12019 (regcache_cpy): Remove.
12020 * regcache.h (regcache_save): Remove the declaration.
12021 (regcache::restore): Move from private to public.
12022 Remove the friend declaration of regcache_cpy.
12023 (regcache_cpy): Remove declaration.
12024
849d0ba8
YQ
120252018-02-21 Yao Qi <yao.qi@linaro.org>
12026
12027 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12028 parameter type to 'readable_regcache *'.
12029 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12030 * arm-tdep.c (arm_neon_quad_read): Likewise.
12031 (arm_pseudo_read): Likewise.
12032 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12033 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12034 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12035 * gdbarch.c: Re-generated.
12036 * gdbarch.h: Re-generated.
12037 * gdbarch.sh (pseudo_register_read): Change parameter type to
12038 'readable_regcache *'.
12039 (pseudo_register_read_value): Likewise.
12040 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12041 (h8300_pseudo_register_read): Likewise.
12042 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12043 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12044 (i386_pseudo_register_read_into_value): Likewise.
12045 (i386_pseudo_register_read_value): Likewise.
12046 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12047 declaration.
12048 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12049 * m32c-tdep.c (m32c_raw_read): Likewise.
12050 (m32c_read_flg): Likewise.
12051 (m32c_banked_register): Likewise.
12052 (m32c_banked_read): Likewise.
12053 (m32c_sb_read): Likewise.
12054 (m32c_part_read): Likewise.
12055 (m32c_cat_read): Likewise.
12056 (m32c_r3r2r1r0_read): Likewise.
12057 (m32c_pseudo_register_read): Likewise.
12058 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12059 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12060 (mep_pseudo_cr64_read): Likewise.
12061 (mep_pseudo_register_read): Likewise.
12062 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12063 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12064 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12065 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12066 (regcache::cooked_read): Likewise.
12067 (regcache::cooked_read_value): Likewise.
12068 (regcache_cooked_read_signed):
12069 (regcache::cooked_read): Likewise.
12070 * regcache.h (readable_regcache): New class.
12071 (regcache): Inherit readable_regcache. Move some methods to
12072 readable_regcache.
12073 * rl78-tdep.c (rl78_pseudo_register_read): Change
12074 parameter type to 'readable_regcache *'.
12075 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12076 (e500_pseudo_register_read): Change parameter type to
12077 'readable_regcache *'.
12078 (dfp_pseudo_register_read): Likewise.
12079 (vsx_pseudo_register_read): Likewise.
12080 (efpr_pseudo_register_read): Likewise.
12081 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12082 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12083 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12084 (sh64_pseudo_register_read): Likewise.
12085 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12086 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12087 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12088 (spu_pseudo_register_read): Likewise.
12089 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12090 (xtensa_pseudo_register_read): Likewise.
12091
31716595
YQ
120922018-02-21 Yao Qi <yao.qi@linaro.org>
12093
12094 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12095 (regcache::arch): Move it to reg_buffer::arch.
12096 (regcache::register_buffer): Likewise.
12097 (regcache::assert_regnum): Likewise.
12098 (regcache::num_raw_registers): Likewise.
12099 * regcache.h (reg_buffer): New class.
12100 (regcache): Inherit reg_buffer.
12101
7104e59b
SM
121022018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12103
12104 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12105 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12106
2d8adcbd
MM
121072018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12108
12109 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12110
b5884fa7
AH
121112018-02-19 Alan Hayward <alan.hayward@arm.com>
12112
12113 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12114 (SFILES): Remove common/*.c files.
12115 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12116 * common/common.host: Add common reference.
12117 * configure.ac: Likewise.
12118 * configure: Regenerate.
12119
fd90ace4
YQ
121202018-02-16 Yao Qi <yao.qi@linaro.org>
12121
12122 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12123 (block_initialize_namespace): Use new.
12124 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12125 (dwarf2_free_objfile): Use delete.
12126 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12127 (copy_type_recursive): Use new.
12128 * gdb_obstack.h (allocate_on_obstack): New.
12129
85046ae2
YQ
121302018-02-15 Yao Qi <yao.qi@linaro.org>
12131
12132 PR gdb/22849
12133 * inferior.c (exit_inferior_1): Reset inf->control.
12134
355c559b
JB
121352018-02-15 Joel Brobecker <brobecker@adacore.com>
12136
12137 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12138 declaration.
12139
980548fd
PA
121402018-02-14 Pedro Alves <palves@redhat.com>
12141
12142 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12143 frame_cleanup_after_sniffer on exception.
12144
692d6f97
TT
121452018-02-14 Tom Tromey <tom@tromey.com>
12146
12147 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12148 const.
12149 (solib_bfd_open): Make pathname const.
12150 * solib.c (solib_bfd_open): Make pathname const.
12151 * solib-spu.c (spu_bfd_fopen): Make name const.
12152 (spu_bfd_open): Make pathname const.
12153 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12154 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12155
e0cc99a6
TT
121562018-02-14 Tom Tromey <tom@tromey.com>
12157
12158 * symfile.c (symfile_bfd_open): Update.
12159 * source.h (openp, source_full_path_of, find_and_open_source):
12160 Change argument type to unique_xmalloc_ptr.
12161 * source.c (openp): Take a unique_xmalloc_ptr.
12162 (source_full_path_of, find_and_open_source): Likewise.
12163 (open_source_file, symtab_to_fullname): Update.
12164 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12165 unique_xmalloc_ptr.
12166 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12167 (exec_file_find): Update.
12168 * psymtab.c (psymtab_to_fullname): Update.
12169 * nto-tdep.h (nto_find_and_open_solib): Update.
12170 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12171 unique_xmalloc_ptr.
12172 * exec.c (exec_file_attach): Update.
12173 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12174 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12175
b46a8d7c
TT
121762018-02-14 Tom Tromey <tom@tromey.com>
12177
12178 * solib.c: Include source.h.
12179 * nto-tdep.c: Include source.h.
12180 * mi/mi-cmd-env.c: Include source.h.
12181 * infcmd.c: Include source.h.
12182 * exec.c: Include source.h.
12183 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12184 (add_path, directory_switch, source_path, init_source_path): Move
12185 declarations...
12186 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12187 (add_path, directory_switch, source_path, init_source_path):
12188 ...here.
12189
797bc1cb
TT
121902018-02-14 Tom Tromey <tom@tromey.com>
12191
12192 * solist.h (exec_file_find, solib_find): Return
12193 unique_xmalloc_ptr.
12194 (solib_bfd_fopen): Take a const char *.
12195 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12196 (exec_file_find, solib_find): Likewise.
12197 (solib_bfd_fopen): Do not take ownership of "pathname".
12198 (solib_bfd_open): Use unique_xmalloc_ptr.
12199 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12200 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12201 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12202 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12203
f98b2e33
JB
122042018-02-14 Joel Brobecker <brobecker@adacore.com>
12205
12206 * ada-lang.c (name_match_type_from_name): Remove reference to
12207 ada_name_for_lookup in function's documentation.
12208 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12209
24b9144d
SM
122102018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12211
12212 * defs.h (enum openp_flags): New enum.
12213 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12214 Move to enum openp_flags.
12215 (openp_flags): New enum flags.
12216 (openp): Change parameter type to openp_flags.
12217 * source.c (openp): Change parameter type to openp_flags.
12218 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12219 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12220
387cd15b
SM
122212018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12222
12223 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12224 per-command.
12225
b303c6f6
AB
122262018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12227
12228 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12229 into...
12230 (class dwarf2_queue_guard): ...the destructor of this new class.
12231 (dw2_do_instantiate_symtab): Create instance of the new class
12232 dwarf2_queue_guard, remove cleanup.
12233
9c3630e9
TT
122342018-02-09 Tom Tromey <tom@tromey.com>
12235
12236 * source.c (find_source_lines): Don't reference past the end of
12237 the vector.
12238
c4e12631
MM
122392018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12240
12241 * remote.c (remote_btrace_maybe_reopen): Change error message.
12242 * btrace.c (btrace_enable): Likewise.
12243 (parse_xml_btrace): Likewise.
12244 (parse_xml_btrace_conf): Likewise.
12245
88711fbf
MM
122462018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12247
12248 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12249 (linux_enable_pt, linux_enable_bts): Call
12250 diagnose_perf_event_open_fail.
12251
17ad2a4f
MM
122522018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12253
12254 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12255 Remove parameter and change return type. Update callers. Move it.
12256 (linux_enable_bts, linux_enable_pt): Improve error message.
12257 (linux_enable_pt): Remove zero buffer size check.
12258 (linux_enable_btrace): Improve error messages. Remove NULL return
12259 check.
12260
de6242d3
MM
122612018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12262
12263 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12264 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12265 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12266 (linux_supports_pt, linux_supports_btrace): Remove.
12267 (linux_enable_bts): Call cpu_supports_bts.
12268 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12269 * remote.c (remote_supports_btrace): Remove.
12270 (init_remote_ops): Remove remote_supports_btrace.
12271 * target-delegates.c: Regenerated.
12272 * target.c (target_supports_btrace): Remove.
12273 * target.h (target_ops) <to_supports_btrace>: Remove
12274 (target_supports_btrace): Remove.
12275 * x86-linux-nat.c (x86_linux_create_target): Remove
12276 linux_supports_btrace.
12277
9ee23a85
MM
122782018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12279
12280 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12281 btrace failed.
12282 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12283 exception and use message in own exception.
12284
5c3284c1
MM
122852018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12286
12287 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12288 (perf_event_pt_event_type): Use gdb_file_up.
12289 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12290 scoped_fd, and scoped_mmap.
12291
84696f37
MM
122922018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12293
12294 * common/scoped_mmap.h: New.
12295 * unittests/scoped_mmap-selftest.c: New.
12296 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12297 unittests/scoped_mmap-selftest.c.
12298
ea4a0888
MM
122992018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12300
12301 * common/scoped_fd.h: New.
12302 * unittests/scoped_fd-selftest.c: New.
12303 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12304 unittests/scoped_fd-selftest.c.
12305
869e8290
TT
123062018-02-09 Tom Tromey <tom@tromey.com>
12307
12308 * auto-load.c (auto_load_section_scripts): Use
12309 gdb::unique_xmalloc_ptr.
12310
a37a2ae7
TT
123112018-02-09 Tom Tromey <tom@tromey.com>
12312
12313 * auto-load.c (execute_script_contents): Use std::string.
12314
4e725347
JB
123152018-02-09 Joel Brobecker <brobecker@adacore.com>
12316
12317 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12318 Python function, rather than a new command.
12319
9a897d43
TT
123202018-02-08 Tom Tromey <tom@tromey.com>
12321
12322 * solib.c (solib_find_1): Use std::string.
12323 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12324
58ef3771
TT
123252018-02-08 Tom Tromey <tom@tromey.com>
12326
12327 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12328
a9abc434
TT
123292018-02-08 Tom Tromey <tom@tromey.com>
12330
12331 * source.c (find_source_lines): Use gdb::def_vector.
12332
84f27c6f
TT
123332018-02-08 Tom Tromey <tom@tromey.com>
12334
12335 * macrocmd.c (struct temporary_macro_definition): New.
12336 (macro_define_command): Use temporary_macro_definition. Remove
12337 cleanups.
12338 (free_macro_definition_ptr): Remove.
12339
0354904b
TT
123402018-02-08 Tom Tromey <tom@tromey.com>
12341
12342 * macroexp.c (maybe_expand): Use std::string.
12343
1739cf24
TT
123442018-02-08 Tom Tromey <tom@tromey.com>
12345
12346 * macroexp.c (struct macro_buffer): Add initializers for some
12347 members.
12348 (init_buffer, init_shared_buffer, free_buffer)
12349 (free_buffer_return_text): Remove.
12350 (macro_buffer): New constructors.
12351 (~macro_buffer): New destructor.
12352 (macro_buffer::set_shared): New method.
12353 (macro_buffer::resize_buffer, macro_buffer::appendc)
12354 (macro_buffer::appendmem): Now methods, not free functions.
12355 (set_token, append_tokens_without_splicing, stringify)
12356 (macro_stringify): Update.
12357 (gather_arguments): Change return type. Remove argc_p argument,
12358 add args_ptr argument. Use std::vector.
12359 (substitute_args): Remove argc argument. Accept std::vector.
12360 (expand): Update. Use std::vector.
12361 (scan, macro_expand, macro_expand_next): Update.
12362
f6c2623e
TT
123632018-02-08 Tom Tromey <tom@tromey.com>
12364
12365 * symtab.c (default_collect_symbol_completion_matches_break_on):
12366 Use unique_xmalloc_ptr.
12367 * macroscope.h: (sal_macro_scope, user_macro_scope)
12368 (default_macro_scope): Return unique_xmalloc_ptr.
12369 * macroscope.c (sal_macro_scope, user_macro_scope)
12370 (default_macro_scope): Return unique_xmalloc_ptr.
12371 * macroexp.h (macro_expand, macro_expand_once): Return
12372 unique_xmalloc_ptr.
12373 * macroexp.c (macro_expand, macro_expand_once): Return
12374 unique_xmalloc_ptr.
12375 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12376 (info_macro_command, info_macros_command): Use
12377 unique_xmalloc_ptr.
12378 * compile/compile-c-support.c (write_macro_definitions): Use
12379 unique_xmalloc_ptr.
12380 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12381
c2e0e465
SM
123822018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12383
12384 * value.c (value_static_field): Assign field type instead of
12385 containing type when returning an optimized out value.
12386
3f8c94b4
YQ
123872018-02-06 Yao Qi <yao.qi@linaro.org>
12388
12389 * ft32-tdep.c (ft32_read_pc): Remove.
12390 (ft32_write_pc): Remove.
12391 (ft32_gdbarch_init): Update.
12392 * m32r-tdep.c (m32r_read_pc): Remove.
12393 (m32r_gdbarch_init): Update.
12394 * mep-tdep.c (mep_read_pc): Remove.
12395 (mep_gdbarch_init): Update.
12396 * microblaze-tdep.c (microblaze_write_pc): Remove.
12397 (microblaze_gdbarch_init): Update.
12398 * mn10300-tdep.c (mn10300_read_pc): Remove.
12399 (mn10300_write_pc): Remove.
12400 (mn10300_gdbarch_init): Update.
12401 * moxie-tdep.c (moxie_read_pc): Remove.
12402 (moxie_write_pc): Remove.
12403 (moxie_gdbarch_init): Update.
12404
bca65a23
YQ
124052018-02-06 Yao Qi <yao.qi@linaro.org>
12406
12407 * expprint.c (print_subexp_standard): Handle
12408 OP_F77_UNDETERMINED_ARGLIST.
12409 (dump_subexp_body_standard): Likewise.
12410
583e3f90 124112018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 12412
583e3f90
YQ
12413 * target-descriptions.c (tdesc_element_visitor) Add empty
12414 implementations.
b8df6ca7
AH
12415 (tdesc_type): Move make_gdb_type from here.
12416 (tdesc_type_builtin): Likewise.
12417 (tdesc_type_vector): Likewise.
12418 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12419 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12420 (make_gdb_type_union): Likewise.
12421 (make_gdb_type_flags): Likewise.
12422 (make_gdb_type_enum): Likewise.
12423 (make_gdb_type): New function.
12424 (tdesc_register_type): Use static make_gdb_type.
12425
e813d34a
RK
124262018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12427
12428 * infcmd.c (default_print_one_register_info): Align natural-format
12429 column values consistently one under another.
12430 (pad_to_column): New function.
12431
0eb876f5
JB
124322018-02-05 Joel Brobecker <brobecker@adacore.com>
12433
12434 * dwarf2read.c (dwarf2_physname): Move commment.
12435
0625771b
LS
124362018-02-01 Leszek Swirski <leszeks@google.com>
12437
12438 * varobj.c (varobj_formatted_print_options): Allow recursive
12439 pretty printing if pretty printing is enabled.
12440
59498c30
LS
124412018-02-01 Leszek Swirski <leszeks@google.com>
12442
12443 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12444 names after a structop as a filename.
12445
2d9e6acb
YQ
124462018-02-01 Yao Qi <yao.qi@linaro.org>
12447
12448 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12449 (arm_record_coproc_data_proc): Likewise.
12450
df95a9cf
YQ
124512018-02-01 Yao Qi <yao.qi@linaro.org>
12452
12453 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12454
07e5f5cf
NP
124552018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12456
12457 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12458 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12459
3045b475
PA
124602018-01-31 Pedro Alves <palves@redhat.com>
12461
12462 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12463 * inflow.c (child_terminal_save_inferior): Wrap reference to
12464 tcgetpgrp in HAVE_TERMIOS_H.
12465 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12466 _WIN32.
12467 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12468 always iterate over all inferiors.
12469 (gdbsim_cntrl_c): Adjust.
12470 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12471
929b5ad4
JB
124722018-01-31 Joel Brobecker <brobecker@adacore.com>
12473
12474 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12475 index type is objfile-owned if the element type is as well.
12476
29236ca2
JB
124772018-01-31 Joel Brobecker <brobecker@adacore.com>
12478
12479 GDB 8.1 released.
12480
c81e8879
PR
124812018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12482
12483 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12484 "features/s390x-linux64.c".
12485 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12486 s390_linux32 and s390x_linux64.
12487 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12488 default tdesc.
12489 * s390-tdep.c: Include "features/s390-linux32.c" and
12490 "features/s390x-linux64.c".
12491 (s390_tdesc_valid): Add check for tdesc_has_registers.
12492 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12493 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12494 tdesc_s390x_linux64.
12495 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12496 tdesc_s390x_linux64 to...
12497 * s390-tdep.h: ...here.
12498
e671cd59
PA
124992018-01-30 Pedro Alves <palves@redhat.com>
12500
12501 PR gdb/13211
12502 * config.in, configure: Regenerate.
12503 * configure.ac: Check for getpgid.
12504 * go32-nat.c (go32_pass_ctrlc): New.
12505 (go32_target): Install it.
12506 * inf-child.c (inf_child_target): Install
12507 child_terminal_save_inferior, child_pass_ctrlc and
12508 child_interrupt.
12509 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12510 (inf_ptrace_target): No longer install it.
12511 * infcmd.c (interrupt_target_1): Adjust.
12512 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12513 (child_interrupt): Declare.
12514 (inferior::terminal_state): New.
12515 * inflow.c (struct terminal_info): Update comments.
12516 (inferior_process_group): Delete.
12517 (terminal_is_ours): Delete.
12518 (gdb_tty_state): New.
12519 (child_terminal_init): Adjust.
12520 (is_gdb_terminal, sharing_input_terminal_1)
12521 (sharing_input_terminal): New functions.
12522 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12523 Set the process's actual process group in the foreground if
12524 possible. Handle is_ours_for_output/is_ours distinction. Don't
12525 mark terminal as the inferior's if not sharing GDB's terminal.
12526 Don't check attach_flag.
12527 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12528 pass down a target_terminal_state.
12529 (child_terminal_save_inferior): New, factored out from ...
12530 (child_terminal_ours_1): ... this. Handle
12531 target_terminal_state::is_ours_for_output.
12532 (child_interrupt, child_pass_ctrlc): New.
12533 (inflow_inferior_exit): Clear the inferior's terminal_state.
12534 (copy_terminal_info): Copy the inferior's terminal state.
12535 (_initialize_inflow): Remove reference to terminal_is_ours.
12536 * inflow.h (inferior_process_group): Delete.
12537 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12538 * procfs.c (procfs_target): Don't install procfs_interrupt.
12539 (procfs_interrupt): Delete.
12540 * remote.c (remote_serial_quit_handler): Adjust.
12541 (remote_interrupt): Remove ptid parameter. Adjust.
12542 * target-delegates.c: Regenerate.
12543 * target.c: Include "terminal.h".
12544 (target_terminal::terminal_state): Rename to ...
12545 (target_terminal::m_terminal_state): ... this.
12546 (target_terminal::init): Adjust.
12547 (target_terminal::inferior): Adjust to per-inferior
12548 terminal_state.
12549 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12550 (target_terminal::ours, target_terminal::ours_for_output): Use
12551 target_terminal_is_ours_kind.
12552 (target_interrupt): Remove ptid parameter. Adjust.
12553 (default_target_pass_ctrlc): Adjust.
12554 * target.h (target_ops::to_terminal_save_inferior): New field.
12555 (target_ops::to_interrupt): Remove ptid_t parameter.
12556 (target_interrupt): Remove ptid_t parameter. Update comment.
12557 (target_pass_ctrlc): Update comment.
12558 * target/target.h (target_terminal_state): New scoped enum,
12559 factored out of ...
12560 (target_terminal::terminal_state): ... here.
12561 (target_terminal::inferior): Update comments.
12562 (target_terminal::restore_inferior): New.
12563 (target_terminal::is_inferior, target_terminal::is_ours)
12564 (target_terminal::is_ours_for_output): Adjust.
12565 (target_terminal::scoped_restore_terminal_state): Adjust to
12566 rename, and call restore_inferior() instead of inferior().
12567 (target_terminal::scoped_restore_terminal_state::m_state): Change
12568 type.
12569 (target_terminal::terminal_state): Rename to ...
12570 (target_terminal::m_terminal_state): ... this and change type.
12571
9c3a5d93
PA
125722018-01-30 Pedro Alves <palves@redhat.com>
12573
12574 * linux-nat.c (wait_for_signal): New function.
12575 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12576 directly.
12577 (async_terminal_is_ours)
12578 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12579 (linux_nat_add_target): Don't override
12580 to_terminal_inferior/to_terminal_ours.
12581
69ab5edb
SDJ
125822018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12583
12584 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12585
fc8e7e75
SM
125862018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12587
12588 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12589 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12590 dwarf2_per_objfile_free here.
12591 (dwarf2_per_objfile_free): Remove.
12592 (_initialize_dwarf2_read): Don't register
12593 dwarf2_per_objfile_free as a registry cleanup.
12594
b2a426e2
EZ
125952018-01-27 Eli Zaretskii <eliz@gnu.org>
12596
12597 Avoid compilation errors in MinGW native builds
12598
12599 The error is triggered by including python-internal.h, and the
12600 error message is:
12601
12602 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12603 from build-gnulib/import/math.h:27,
12604 from d:/usr/Python26/include/pyport.h:235,
12605 from d:/usr/Python26/include/Python.h:58,
12606 from python/python-internal.h:94,
12607 from python/py-arch.c:24:
12608 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12609 using ::hypot;
12610 ^~~~~
12611
12612 This happens because Python headers define 'hypot' to expand t
12613 '_hypot' in the Windows builds.
12614 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12615 'hypoth'. This avoids a compilation error.
12616
0bdd8eac
AH
126172018-01-26 Alan Hayward <alan.hayward@arm.com>
12618
12619 * MAINTAINERS (Write After Approval): Fix ordering.
12620
56ae9dc3
AH
126212018-01-26 Alan Hayward <alan.hayward@arm.com>
12622
12623 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12624
7433498b
AM
126252018-01-26 Alan Modra <amodra@gmail.com>
12626
12627 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12628 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12629 Remove nop. Make const. Comment.
12630 (powerpc32_plt_stub_so_2): New.
12631 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12632 Correct count. Update uses.
12633 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12634 Move common code reading PLT entry word. Correct
12635 powerpc32_plt_stub PLT address calculation.
12636 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12637 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12638 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12639 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12640 (ppc64_standard_linkage8): Likewise.
12641 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12642 Correct insns description.
12643 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12644
0f59d5fc
PA
126452018-01-24 Pedro Alves <palves@redhat.com>
12646
12647 GCC PR libstdc++/83906
12648 * gdbtypes.c (operator==(const dynamic_prop &,
12649 const dynamic_prop &)): New.
12650 (operator==(const range_bounds &, const range_bounds &)): New.
12651 (check_types_equal): Use them instead of memcmp.
12652 * gdbtypes.h (operator==(const dynamic_prop &,
12653 const dynamic_prop &)): Declare.
12654 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12655 (operator==(const range_bounds &, const range_bounds &)): Declare.
12656 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12657
ef8914a4
PR
126582018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12659
12660 * s390-linux-tdep.c (s390_record_address_mask)
12661 (s390_record_calc_disp_common, s390_record_calc_disp)
12662 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12663 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12664 (s390_process_record): Move to s390-tdep.c.
12665 (s390_linux_init_abi_any): Adjust.
12666 * s390-tdep.c (s390_record_address_mask)
12667 (s390_record_calc_disp_common, s390_record_calc_disp)
12668 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12669 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12670 (s390_process_record): Moved from s390-linux-tdep.c
12671 (s390_gdbarch_init): Adjust.
12672
d6e58945
PR
126732018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12674
12675 * s390-linux-nat.c (s390-tdep.h): New include.
12676 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12677 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12678 (ALLDEPFILES): Add s390-tdep.c.
12679 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12680 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12681 * s390-tdep.h: ...this. New file.
12682 * s390-linux-tdep.c (s390-tdep.h): New include.
12683 (_initialize_s390_tdep): Rename to...
12684 (_initialize_s390_linux_tdep): ...this and adjust.
12685 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12686 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12687 s390-tdep.h.
12688 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12689 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12690 (s390_is_partial_instruction, s390_software_single_step)
12691 (is_non_branch_ril, s390_displaced_step_copy_insn)
12692 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12693 (s390_prologue_data, s390_addr, s390_store, s390_load)
12694 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12695 (s390_register_call_saved, s390_guess_tracepoint_registers)
12696 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12697 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12698 (s390_pseudo_register_name, s390_pseudo_register_type)
12699 (s390_pseudo_register_read, s390_pseudo_register_write)
12700 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12701 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12702 (s390_addr_bits_remove, s390_address_class_type_flags)
12703 (s390_address_class_type_flags_to_name)
12704 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12705 (s390_function_arg_float, s390_function_arg_vector)
12706 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12707 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12708 (s390_frame_align, s390_register_return_value, s390_return_value)
12709 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12710 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12711 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12712 (s390_trad_frame_prev_register, s390_unwind_cache)
12713 (s390_prologue_frame_unwind_cache)
12714 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12715 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12716 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12717 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12718 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12719 (s390_frame_base_address, s390_local_base_address)
12720 (s390_frame_base, s390_gcc_target_options)
12721 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12722 (s390_validate_reg_range, s390_tdesc_valid)
12723 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12724 * s390-tdep.c: ...this. New file.
12725
9c0b896e
PR
127262018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12727
12728 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12729 (s390_process_record, s390_gdbarch_tdep_alloc)
12730 (s390_linux_init_abi_any): Use/set new hook.
12731
7042632b
PR
127322018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12733
12734 * s390-linux-tdep.c (osabi.h): New include.
12735 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12736 (s390_linux_init_abi_any): New functions.
12737 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12738
650f5e13
PR
127392018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12740
12741 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12742 tdesc_has_registers check
12743
47c9317e
PR
127442018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12745
12746 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12747 (s390_validate_reg_range): New macro.
12748 (s390_gdbarch_init): Adjust.
12749
095085d8
PR
127502018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12751
12752 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12753 (s390_gdbarch_tdep_alloc): Adjust.
12754 (s390_gdbarch_init): Adjust.
12755
ab9bcc67
PR
127562018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12757
12758 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12759 <have_tdb>: Change type to bool.
12760 (s390_gdbarch_tdep_alloc): Adjust.
12761 (s390_gdbarch_init): Adjust.
12762
21f6f5ff
PR
127632018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12764
12765 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12766 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12767 (s390_gdbarch_tdep_alloc): New function.
12768 (s390_gdbarch_init): Allocate tdep at start and use its fields
12769 instead of separate variables.
12770
0eb97953
PR
127712018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12772
12773 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12774 when looking for cached gdbarch and add comment for remaining.
12775
5c319bb2
PA
127762018-01-22 Pedro Alves <palves@redhat.com>
12777 Sergio Durigan Junior <sergiodj@redhat.com>
12778
12779 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12780 case.
12781
d65ce302
MR
127822018-01-22 Maciej W. Rozycki <macro@mips.com>
12783
12784 * MAINTAINERS: Update my company e-mail address.
12785
ec7a5fcb
YQ
127862018-01-22 Yao Qi <yao.qi@linaro.org>
12787
12788 * regcache.c (cooked_write_test): New function.
12789 (_initialize_regcache): Register the test.
12790
11f57cb6
YQ
127912018-01-22 Yao Qi <yao.qi@linaro.org>
12792
12793 * ia64-tdep.c (ia64_pseudo_register_read): Call
12794 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12795 * m32c-tdep.c (m32c_cat_read): Likewise.
12796 (m32c_r3r2r1r0_read): Likewise.
12797 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12798 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12799
03f50fc8
YQ
128002018-01-22 Yao Qi <yao.qi@linaro.org>
12801
12802 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12803 method raw_read instead of regcache_raw_read.
12804 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12805 * arm-tdep.c (arm_neon_quad_read): Likewise.
12806 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12807 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12808 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12809 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12810 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12811 (i386_pseudo_register_read_into_value): Likewise.
12812 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12813 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12814 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12815 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12816 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12817 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12818 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12819 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12820 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12821
dc711524
YQ
128222018-01-22 Yao Qi <yao.qi@linaro.org>
12823
12824 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12825 * configure.tgt: Remove target mt.
12826 * mt-tdep.c: Remove.
12827 * regcache.c (cooked_read_test): Remove the check for mt.
12828
3f5a868b
YQ
128292018-01-22 Yao Qi <yao.qi@linaro.org>
12830
12831 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12832 instead of gdbarch_pseudo_register_read_value.
12833
de4cb04a
JB
128342018-01-22 Joel Brobecker <brobecker@adacore.com>
12835
12836 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12837 language is Ada.
12838
a9e40818
JB
128392018-01-22 Joel Brobecker <brobecker@adacore.com>
12840
12841 * linespec.c (create_sals_line_offset): Remove code that preserved
12842 the symtab_and_line's line number.
12843
e707fc44
AB
128442018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12845
12846 * varobj.c (varobj_create): Don't set valid_block when creating a
12847 floating varobj.
12848
03d0bf7b
AB
128492018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12850
12851 * varobj.c (varobj_create): Remove out of date comment.
12852
ae451627
AB
128532018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12854
12855 PR mi/20395
12856 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12857 updating innermost block.
12858 * parse.c (innermost_block_tracker::update): Take extra type
12859 parameter, and check types match before updating innermost block.
12860 (write_dollar_variable): Update innermost block for registers.
12861 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12862 (innermost_block_tracker::innermost_block_tracker): Initialise
12863 m_types member.
12864 (innermost_block_tracker::reset): Take type parameter.
12865 (innermost_block_tracker::update): Take type parameter, and pass
12866 type through as needed.
12867 (innermost_block_tracker::m_types): New member.
12868 * varobj.c (varobj_create): Pass type when reseting innermost
12869 block.
12870
aee1fcdf
AB
128712018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12872
12873 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12874 * ada-lang.c (resolve_subexp): Likewise.
12875 * breakpoint.c (set_breakpoint_condition) Likewise.
12876 (watch_command_1) Likewise.
12877 * c-exp.y (variable): Likewise.
12878 * d-exp.y (PrimaryExpression): Likewise.
12879 * f-exp.y (variable): Likewise.
12880 * go-exp.y (variable): Likewise.
12881 * m2-exp.y (variable): Likewise.
12882 * objfiles.c (objfile::~objfile): Likewise.
12883 * p-exp.y (variable): Likewise.
12884 * parse.c (innermost_block): Change type.
12885 * parser-defs.h (class innermost_block_tracker): New.
12886 (innermost_block): Change to innermost_block_tracker.
12887 * printcmd.c (display_command): Switch to innermost_block API.
12888 (do_one_display): Likewise.
12889 * rust-exp.y (do_one_display): Likewise.
12890 * symfile.c (clear_symtab_users): Likewise.
12891 * varobj.c (varobj_create): Switch to innermost_block API, replace
12892 use of innermost_block with block stored on varobj object.
12893
396af9a1
AB
128942018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12895
12896 * expression.h (innermost_block): Remove declaration.
12897 * varobj.c: Add 'parser-defs.h' include.
12898
fcfcc376
TT
128992018-01-19 Tom Tromey <tom@tromey.com>
12900
12901 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12902 symbols in the static and global blocks.
12903
5a6c3296
JC
129042018-01-19 James Clarke <jrtc27@jrtc27.com>
12905
12906 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12907 gdb_ptrace.h, and move including gdb_wait.h ...
12908 * nat/linux-ptrace.h: ... to here.
12909
bc09b0c1
SM
129102018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12911
12912 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12913 inf_ptrace_detach_success.
12914 (inf_ptrace_detach_success): Add inferior parameter, use it
12915 instead of inferior_ptid, pass it to detach_inferior.
12916 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12917 parameter.
12918 * inferior.c (detach_inferior): Add overload that takes an
12919 inferior object.
12920 * inferior.h (detach_inferior): Likewise.
12921 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12922 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12923 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12924
6e1e1966
SM
129252018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12926
12927 * target.h (struct target_ops) <to_detach>: Add inferior
12928 parameter.
12929 (target_detach): Likewise.
12930 * target.c (dispose_inferior): Pass inferior down.
12931 (target_detach): Pass inferior down. Assert that it is equal to
12932 the current inferior.
12933 * aix-thread.c (aix_thread_detach): Pass inferior down.
12934 * corefile.c (core_file_command): Pass current_inferior() down.
12935 * corelow.c (core_detach): Add inferior parameter.
12936 * darwin-nat.c (darwin_detach): Likewise.
12937 * gnu-nat.c (gnu_detach): Likewise.
12938 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12939 * infcmd.c (detach_command): Pass current_inferior() down to
12940 target_detach.
12941 * infrun.c (follow_fork_inferior): Pass parent_inf to
12942 target_detach.
12943 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12944 target_detach.
12945 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12946 * linux-thread-db.c (thread_db_detach): Likewise.
12947 * nto-procfs.c (procfs_detach): Likewise.
12948 * procfs.c (procfs_detach): Likewise.
12949 * record.c (record_detach): Likewise.
12950 * record.h (struct inferior): Forward-declare.
12951 (record_detach): Add inferior parameter.
12952 * remote-sim.c (gdbsim_detach): Likewise.
12953 * remote.c (remote_detach_1): Likewise.
12954 (remote_detach): Likewise.
12955 (extended_remote_detach): Likewise.
12956 * sol-thread.c (sol_thread_detach): Likewise.
12957 * target-debug.h (target_debug_print_inferior_p): New macro.
12958 * target-delegates.c: Re-generate.
12959 * top.c (kill_or_detach): Pass inferior down to target_detach.
12960 * windows-nat.c (windows_detach): Add inferior parameter.
12961
6bd6f3b6
SM
129622018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12963
12964 * target.h (struct target_ops) <to_detach>: Remove args
12965 parameter.
12966 (target_detach): Likewise.
12967 * target.c (dispose_inferior): Adjust.
12968 (target_detach): Remove args parameter, adjust.
12969 * aix-thread.c (aix_thread_detach): Adjust.
12970 * corefile.c (core_file_command): Adjust.
12971 * corelow.c (core_detach): Adjust.
12972 * darwin-nat.c (darwin_detach): Adjust.
12973 * gnu-nat.c (gnu_detach): Adjust.
12974 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12975 * infcmd.c (detach_command): Adjust
12976 * infrun.c (follow_fork_inferior): Adjust.
12977 (handle_vfork_child_exec_or_exit): Adjust.
12978 * linux-fork.c (linux_fork_detach): Remove args parameter.
12979 * linux-fork.h (linux_fork_detach): Likewise.
12980 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12981 * linux-thread-db.c (thread_db_detach): Likewise.
12982 * nto-procfs.c (procfs_detach): Likewise.
12983 * procfs.c (procfs_detach): Likewise.
12984 (do_detach): Remove signo parameter.
12985 * record.c (record_detach): Remove args parameter.
12986 * record.h (record_detach): Likewise.
12987 * remote-sim.c (gdbsim_detach): Likewise.
12988 * remote.c (remote_detach_1): Likewise.
12989 (remote_detach): Likewise.
12990 (extended_remote_detach): Likewise.
12991 * sol-thread.c (sol_thread_detach): Likewise.
12992 * target-delegates.c: Re-generate.
12993 * top.c (struct qt_args) <args>: Remove field.
12994 (kill_or_detach): Don't pass args.
12995 (quit_force): Don't set args.
12996 * windows-nat.c (windows_detach): Remove args parameter.
12997
88af8ea8
YQ
129982018-01-19 Yao Qi <yao.qi@linaro.org>
12999
13000 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13001 (arm_linux_init_abi): Install it.
13002
dea445b9
YQ
130032018-01-19 Yao Qi <yao.qi@linaro.org>
13004
13005 * osabi.c (gdb_osabi_names): Extend the regexp for
13006 arm-linux-gnueabihf.
13007
4a17f768
YQ
130082018-01-18 Yao Qi <yao.qi@linaro.org>
13009
13010 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13011 m_abbrevs.
13012 (abbrev_table::add_abbrev): Update.
13013 (abbrev_table::lookup_abbrev): Update.
13014
d679c21a
YQ
130152018-01-18 Yao Qi <yao.qi@linaro.org>
13016
13017 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13018
7d937cad
SDJ
130192018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13020
13021 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13022 to "std::string".
13023
9e14690d
TT
130242018-01-17 Tom Tromey <tom@tromey.com>
13025
13026 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13027
50a82047
TT
130282018-01-17 Tom Tromey <tom@tromey.com>
13029
13030 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13031 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13032 (create_array_type_with_stride): Update.
13033 * dwarf2read.c (set_die_type): Update.
13034
c89b44cd
TT
130352018-01-17 Tom Tromey <tom@tromey.com>
13036
13037 * dwarf2read.c (delayed_method_info): Remove typedef.
13038 (dwarf2_cu::method_info): Now a std::vector.
13039 (add_to_method_list): Update.
13040 (free_delayed_list): Remove.
13041 (compute_delayed_physnames): Update.
13042 (process_full_comp_unit, process_full_type_unit): Clear the method
13043 list. Remove cleanups.
13044 (psymtab_include_file_name): Add name_holder parameter. Use
13045 unique_xmalloc_ptr.
13046 (dwarf_decode_lines): Update.
13047
fcd3b13d
SM
130482018-01-17 Tom Tromey <tom@tromey.com>
13049 Simon Marchi <simon.marchi@ericsson.com>
13050
13051 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13052 (dwarf2_per_objfile::free_cached_comp_units)
13053 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13054 (init_cutu_and_read_dies_no_follow): Update.
13055 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13056 (dwarf2_cu::~dwarf2_cu): New.
13057 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13058 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13059
685af9cd
TT
130602018-01-17 Tom Tromey <tom@tromey.com>
13061 Simon Marchi <simon.marchi@ericsson.com>
13062
13063 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13064 (struct die_reader_specs) <abbrev_table>: New member.
13065 (struct abbrev_table): Add constructor.
13066 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13067 <abbrev_obstack>: Now an auto_obstack.
13068 (abbrev_table_up): New typedef.
13069 (init_cu_die_reader): Add abbrev_table parameter.
13070 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13071 Add result_dwo_abbrev_table.
13072 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13073 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13074 Update.
13075 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13076 parameter.
13077 (skip_children): Update.
13078 (abbrev_table::alloc_abbrev): Rename from
13079 abbrev_table_alloc_abbrev.
13080 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13081 (abbrev_table::lookup_abbrev): Rename from
13082 abbrev_table_lookup_abbrev.
13083 (abbrev_table_read_table): Return abbrev_table_up.
13084 (abbrev_table_free, abbrev_table_free_cleanup)
13085 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13086 (load_partial_dies): Update.
13087
5e2db402
TT
130882018-01-17 Tom Tromey <tom@tromey.com>
13089
13090 * dwarf2read.c (dwarf2_compute_name): Update comment.
13091 (read_func_scope, read_variable): Update.
13092 (new_symbol): Remove.
13093 (new_symbol_full): Rename to new_symbol.
13094
ee7f689e 130952018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
13096
13097 PR gdb/16577
13098 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13099 a warning instead of throwing an error, set section size to 0 and return
13100 NULL.
13101 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13102
4d9b86e1
SM
131032018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13104
13105 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13106 std::string.
13107 (linux_ptrace_attach_fail_reason_string): Likewise.
13108 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13109 Likewise.
13110 (linux_ptrace_attach_fail_reason_string): Likewise.
13111 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13112
a7b2d0fb
SM
131132018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13114
13115 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13116
f517c180
EA
131172018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13118
13119 PR gdb/21559
13120 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13121 checking for fs_base/gs_base fields in struct user_regs_struct.
13122 * configure: Regenerate.
13123
7045b1ca
YQ
131242018-01-17 Yao Qi <yao.qi@linaro.org>
13125
13126 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13127 function.
13128 (aarch64_linux_init_abi): Install it to gdbarch hook
13129 gcc_target_options.
13130
db422fb2
PA
131312018-01-15 Pedro Alves <palves@redhat.com>
13132
13133 * common/signals-state-save-restore.c
13134 (save_original_signals_state): Fix typos.
13135
ba643918
SDJ
131362017-01-12 Tom Tromey <tom@tromey.com>
13137 Sergio Durigan Junior <sergiodj@redhat.com>
13138
13139 * Makefile.in (install-only): Install gdb-add-index.
13140
906b4aac
JB
131412018-01-12 John Baldwin <jhb@FreeBSD.org>
13142
13143 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13144
bdf2a94a
AA
131452018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13146
13147 * infrun.c (keep_going_pass_signal): Clear step-over info when
13148 insert_breakpoints fails.
13149
71d378ae
PA
131502018-01-11 Pedro Alves <palves@redhat.com>
13151
13152 PR gdb/22583
13153 * infrun.c (resume): Rename to ...
13154 (resume_1): ... this.
13155 (resume): Reimplement as wrapper around resume_1.
13156
3cada740
PA
131572018-01-11 Pedro Alves <palves@redhat.com>
13158
13159 PR remote/22597
13160 * remote.c (remote_parse_stop_reply): Default to the last-set
13161 general thread instead of to 'magic_null_ptid'.
13162
618daa93
PA
131632018-01-10 Pedro Alves <palves@redhat.com>
13164
13165 * language.h (language_get_symbol_name_matcher): Rename ...
13166 (get_symbol_name_matcher): ... this.
13167 * language.c (language_get_symbol_name_matcher): Ditto.
13168 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13169 callers adjusted.
13170
c63d3e8d
PA
131712018-01-10 Pedro Alves <palves@redhat.com>
13172
13173 PR gdb/22670
13174 * dwarf2read.c
13175 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13176 Adjust to use language_get_symbol_name_matcher instead of
13177 language_defn::la_get_symbol_name_matcher.
13178 * language.c (language_get_symbol_name_matcher): If in Ada mode
13179 and the lookup name is a verbatim match, return Ada's matcher.
13180 * language.h (language_get_symbol_name_matcher): Adjust comment.
13181 (ada_lookup_name_info::verbatim_p):: New method.
13182
d4c2a405
PA
131832018-01-10 Pedro Alves <palves@redhat.com>
13184
13185 PR gdb/22670
13186 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13187 minsym's language is language_auto or language_cplus, pass down
13188 language_ada instead.
13189 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13190
8825213e
PA
131912018-01-10 Pedro Alves <palves@redhat.com>
13192
13193 PR gdb/22670
13194 * minsyms.c (linkage_name_str): New function.
13195 (iterate_over_minimal_symbols): Use it.
13196
2d97a5d9
JB
131972018-01-09 John Baldwin <jhb@FreeBSD.org>
13198
13199 * NEWS: Document that 'info proc' now works on FreeBSD.
13200
92fce24d
JB
132012018-01-09 John Baldwin <jhb@FreeBSD.org>
13202
13203 * configure.ac: Check for kinfo_getfile in libutil.
13204 * configure: Regenerate.
13205 * config.in: Regenerate.
13206 * fbsd-nat.c: Include "fbsd-tdep.h".
13207 (fbsd_fetch_cmdline): New.
13208 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13209 rather than calling error.
13210 (fbsd_info_proc): New.
13211 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13212 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13213 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13214
262f62f5
JB
132152018-01-09 John Baldwin <jhb@FreeBSD.org>
13216
13217 * fbsd-nat.c (struct free_deleter): Remove.
13218 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13219
b999e203
JB
132202018-01-09 John Baldwin <jhb@FreeBSD.org>
13221
13222 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13223 NULL for an empty pathname.
13224
d2176225
JB
132252018-01-09 John Baldwin <jhb@FreeBSD.org>
13226
13227 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13228 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13229 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13230 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13231 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13232 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13233 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13234 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13235 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13236 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13237 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13238 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13239 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13240 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13241 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13242
9c4ac400
ST
132432018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13244
13245 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13246 (gnu_xfer_auxv): New function.
13247 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13248 TARGET_OBJECT_AUXV.
13249
1e5ded6c
YQ
132502018-01-08 Yao Qi <yao.qi@linaro.org>
13251 Simon Marchi <simon.marchi@ericsson.com>
13252
13253 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13254 common/selftest.c.
13255 (COMMON_OBS): Remove selftest.o.
13256 * configure.ac: Append selftest-arch.c and common/selftest.c to
13257 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13258 * configure: Re-generated.
13259 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13260 GDB_SELF_TEST.
13261 (maintenance_info_selftests): Likewise.
13262
04bafb1e
XR
132632018-01-08 Xavier Roirand <roirand@adacore.com>
13264
13265 * ada-valprint.c (val_print_packed_array_elements): Use
13266 proper number of elements when printing an array indexed
13267 by an enumeration type.
13268
518817b3
SM
132692018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13270
13271 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13272 (dw2_get_file_names_reader): Adjust.
13273 (lookup_dwo_signatured_type): Adjust.
13274 (lookup_dwp_signatured_type): Adjust.
13275 (lookup_signatured_type): Adjust.
13276 (create_type_unit_group): Adjust.
13277 (get_type_unit_group): Adjust.
13278 (process_psymtab_comp_unit_reader): Adjust.
13279 (build_type_psymtabs_reader): Adjust.
13280 (scan_partial_symbols): Adjust.
13281 (add_partial_symbol): Adjust.
13282 (add_partial_subprogram): Adjust.
13283 (peek_die_abbrev): Adjust.
13284 (fixup_go_packaging): Adjust.
13285 (process_imported_unit_die): Adjust.
13286 (dwarf2_compute_name): Adjust.
13287 (dwarf2_physname): Adjust.
13288 (read_import_statement): Adjust.
13289 (handle_DW_AT_stmt_list): Adjust.
13290 (read_file_scope): Adjust.
13291 (read_func_scope): Adjust.
13292 (read_lexical_block_scope): Adjust.
13293 (read_call_site_scope): Adjust.
13294 (read_variable): Adjust.
13295 (dwarf2_rnglists_process): Adjust.
13296 (dwarf2_ranges_process): Adjust.
13297 (dwarf2_ranges_read): Adjust.
13298 (dwarf2_get_pc_bounds): Adjust.
13299 (dwarf2_record_block_ranges): Adjust.
13300 (dwarf2_add_field): Adjust.
13301 (dwarf2_add_member_fn): Adjust.
13302 (read_structure_type): Adjust.
13303 (process_structure_scope): Adjust.
13304 (read_enumeration_type): Adjust.
13305 (read_array_type): Adjust.
13306 (mark_common_block_symbol_computed): Adjust.
13307 (read_common_block): Adjust.
13308 (read_namespace_type): Adjust.
13309 (read_namespace): Adjust.
13310 (read_module_type): Adjust.
13311 (read_tag_pointer_type): Adjust.
13312 (read_tag_ptr_to_member_type): Adjust.
13313 (read_tag_string_type): Adjust.
13314 (read_subroutine_type): Adjust.
13315 (read_typedef): Adjust.
13316 (read_base_type): Adjust.
13317 (attr_to_dynamic_prop): Adjust.
13318 (read_subrange_type): Adjust.
13319 (read_unspecified_type): Adjust.
13320 (dwarf2_read_abbrevs): Adjust.
13321 (load_partial_dies): Adjust.
13322 (read_partial_die): Adjust.
13323 (find_partial_die): Adjust.
13324 (guess_partial_die_structure_name): Adjust.
13325 (fixup_partial_die): Adjust.
13326 (read_attribute_value): Adjust.
13327 (read_addr_index): Adjust.
13328 (read_addr_index_from_leb128): Adjust.
13329 (read_str_index): Adjust.
13330 (dwarf2_string_attr): Adjust.
13331 (get_debug_line_section): Adjust.
13332 (dwarf_decode_line_header): Adjust.
13333 (lnp_state_machine::check_line_address): Adjust.
13334 (dwarf_decode_lines_1): Adjust.
13335 (dwarf_decode_lines): Adjust.
13336 (dwarf2_start_symtab): Adjust.
13337 (var_decode_location): Adjust.
13338 (new_symbol_full): Adjust.
13339 (dwarf2_const_value_data): Adjust.
13340 (dwarf2_const_value_attr): Adjust.
13341 (dwarf2_const_value): Adjust.
13342 (die_type): Adjust.
13343 (die_containing_type): Adjust.
13344 (build_error_marker_type): Adjust.
13345 (lookup_die_type): Adjust.
13346 (guess_full_die_structure_name): Adjust.
13347 (anonymous_struct_prefix): Adjust.
13348 (determine_prefix): Adjust.
13349 (dwarf2_name): Adjust.
13350 (follow_die_ref_or_sig): Adjust.
13351 (follow_die_offset): Adjust.
13352 (follow_die_ref): Adjust.
13353 (follow_die_sig_1): Adjust.
13354 (follow_die_sig): Adjust.
13355 (get_signatured_type): Adjust.
13356 (get_DW_AT_signature_type): Adjust.
13357 (decode_locdesc): Adjust.
13358 (dwarf_decode_macros): Adjust.
13359 (cu_debug_loc_section): Adjust.
13360 (fill_in_loclist_baton): Adjust.
13361 (dwarf2_symbol_mark_computed): Adjust.
13362 (init_one_comp_unit): Don't assign
13363 dwarf2_cu::dwarf2_per_objfile.
13364 (set_die_type): Adjust.
13365
ed2dc618
SM
133662018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13367
13368 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13369 <dwarf2_per_objfile>: New field.
13370 (dwarf2_per_objfile): Remove global.
13371 (get_dwarf2_per_objfile): New function.
13372 (set_dwarf2_per_objfile): New function.
13373 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13374 dwarf2_per_objfile.
13375 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13376 (read_abbrev_offset): Likewise.
13377 (read_indirect_string): Likewise.
13378 (read_indirect_line_string): Likewise.
13379 (read_indirect_string_at_offset): Likewise.
13380 (read_indirect_string_from_dwz): Likewise.
13381 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13382 dwarf2_per_objfile.
13383 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13384 (create_all_comp_units): Change objfile parameter to
13385 dwarf2_per_objfile.
13386 (create_all_type_units): Likewise.
13387 (process_queue): Add dwarf2_per_objfile parameter.
13388 (read_and_check_comp_unit_head): Likewise.
13389 (lookup_dwo_unit_in_dwp): Likewise.
13390 (get_dwp_file): Likewise.
13391 (process_cu_includes): Likewise.
13392 (struct free_dwo_file_cleanup_data): New struct.
13393 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13394 set_dwarf2_per_objfile.
13395 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13396 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13397 context, adjust calls.
13398 (dw2_instantiate_symtab): Likewise.
13399 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13400 (dw2_get_cu): Likewise.
13401 (create_cu_from_index_list): Change objfile parameter to
13402 dwarf2_per_objfile.
13403 (create_cus_from_index_list): Get dwarf2_per_objfile from
13404 context, adjust calls.
13405 (create_cus_from_index): Likewise.
13406 (create_signatured_type_table_from_index): Change objfile
13407 parameter to dwarf2_per_objfile.
13408 (create_signatured_type_table_from_debug_names): Change objfile
13409 parameter to dwarf2_per_objfile.
13410 (create_addrmap_from_index): Likewise.
13411 (create_addrmap_from_aranges): Likewise.
13412 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13413 (dw2_setup): Remove.
13414 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13415 context.
13416 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13417 get_dwarf2_per_objfile.
13418 (dw2_forget_cached_source_info): Likewise.
13419 (dw2_map_symtabs_matching_filename): Likewise.
13420 (struct dw2_symtab_iterator) <index>: Remove.
13421 <dwarf2_per_objfile>: New field.
13422 (dw2_symtab_iter_init): Replace index parameter with
13423 dwarf2_per_objfile.
13424 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13425 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13426 (dw2_print_stats): Likewise.
13427 (dw2_dump): Likewise.
13428 (dw2_expand_symtabs_for_function): Likewise.
13429 (dw2_expand_all_symtabs): Likewise.
13430 (dw2_expand_symtabs_with_fullname): Likewise.
13431 (dw2_expand_marked_cus): Replace index and objfile parameters
13432 with dwarf2_per_objfile.
13433 (dw_expand_symtabs_matching_file_matcher): Add
13434 dwarf2_per_objfile parameter and adjust calls.
13435 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13436 adjust calls.
13437 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13438 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13439 adjust calls.
13440 (create_cus_from_debug_names_list): Replace objfile parameter
13441 with dwarf2_per_objfile and adjust calls.
13442 (create_cus_from_debug_names): Likewise.
13443 (dwarf2_read_debug_names): Likewise.
13444 (mapped_debug_names::namei_to_name): Adjust call.
13445 (dw2_debug_names_iterator::next): Likewise.
13446 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13447 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13448 (dw2_debug_names_dump): Likewise.
13449 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13450 (dw2_debug_names_expand_symtabs_matching): Likewise.
13451 (dwarf2_initialize_objfile): Likewise.
13452 (dwarf2_build_psymtabs): Likewise.
13453 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13454 this_cu.
13455 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13456 (read_and_check_comp_unit_head): Likewise.
13457 (read_abbrev_offset): Likewise.
13458 (create_debug_type_hash_table): Likewise.
13459 (create_debug_types_hash_table): Likewise.
13460 (create_all_type_units): Replace objfile parameter with
13461 dwarf2_per_objfile.
13462 (add_type_unit): Add dwarf2_per_objfile parameter.
13463 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13464 with dwarf2_per_objfile.
13465 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13466 (lookup_dwp_signatured_type): Likewise.
13467 (lookup_signatured_type): Likewise.
13468 (read_cutu_die_from_dwo): Likewise.
13469 (init_tu_and_read_dwo_dies): Likewise.
13470 (init_cutu_and_read_dies): Likewise.
13471 (init_cutu_and_read_dies_no_follow): Likewise.
13472 (allocate_type_unit_groups_table): Add objfile parameter.
13473 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13474 (get_type_unit_group): Likewise.
13475 (process_psymtab_comp_unit): Update call.
13476 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13477 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13478 (print_tu_stats): Likewise.
13479 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13480 in void* parameter.
13481 (build_type_psymtabs): Change objfile parameter to
13482 dwarf2_per_objfile.
13483 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13484 passed in void* parameter.
13485 (process_skeletonless_type_units): Change objfile parameter to
13486 dwarf2_per_objfile.
13487 (set_partial_user): Likewise.
13488 (dwarf2_build_psymtabs_hard): Likewise.
13489 (read_comp_units_from_section): Likewise.
13490 (create_all_comp_units): Likewise.
13491 (scan_partial_symbols): Update calls.
13492 (add_partial_symbol): Likewise.
13493 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13494 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13495 (process_queue): Add dwarf2_per_objfile parameter.
13496 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13497 (compute_compunit_symtab_includes): Likewise.
13498 (process_cu_includes): Add dwarf2_per_objfile parameter.
13499 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13500 (process_full_type_unit): Likewise.
13501 (process_imported_unit_die): Update call.
13502 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13503 (read_file_scope): Likewise.
13504 (allocate_dwo_file_hash_table): Add objfile parameter.
13505 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13506 (create_cus_hash_table): Likewise.
13507 (create_dwp_hash_table): Likewise.
13508 (create_dwo_unit_in_dwp_v1): Likewise.
13509 (create_dwp_v2_section): Likewise.
13510 (create_dwo_unit_in_dwp_v2): Likewise.
13511 (lookup_dwo_unit_in_dwp): Likewise.
13512 (try_open_dwop_file): Likewise.
13513 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13514 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13515 cleanup to include a reference to dwarf2_per_objfile.
13516 (open_dwp_file): Add dwarf2_per_objfile parameter.
13517 (open_and_init_dwp_file): Likewise.
13518 (get_dwp_file): Likewise.
13519 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13520 (queue_and_load_all_dwo_tus): Update call.
13521 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13522 data.
13523 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13524 (dwarf2_ranges_process): Likewise.
13525 (dwarf2_get_pc_bounds): Likewise.
13526 (mark_common_block_symbol_computed): Likewise.
13527 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13528 (dwarf2_read_abbrevs): Update call.
13529 (read_partial_die): Use dwarf2_per_objfile from cu.
13530 (find_partial_die): Likewise.
13531 (fixup_partial_die): Likewise.
13532 (read_attribute_value): Likewise.
13533 (read_indirect_string_at_offset_from): Add objfile parameter.
13534 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13535 parameter.
13536 (read_indirect_string_from_dwz): Add objfile parameter.
13537 (read_indirect_string): Add objfile parameter.
13538 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13539 (read_addr_index): Use dwarf2_per_objfile from cu.
13540 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13541 call dw2_setup.
13542 (read_str_index): Use dwarf2_per_objfile from cu.
13543 (get_debug_line_section): Likewise.
13544 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13545 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13546 (new_symbol_full): Use dwarf2_per_objfile from cu.
13547 (build_error_marker_type): Likewise.
13548 (lookup_die_type): Likewise.
13549 (determine_prefix): Likewise.
13550 (follow_die_offset): Likewise.
13551 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13552 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13553 (dwarf2_fetch_die_type_sect_off): Likewise.
13554 (dwarf2_get_die_type): Likewise.
13555 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13556 (get_signatured_type): Likewise.
13557 (get_DW_AT_signature_type): Likewise.
13558 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13559 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13560 (cu_debug_loc_section): Likewise.
13561 (fill_in_loclist_baton): Likewise.
13562 (dwarf2_symbol_mark_computed): Likewise.
13563 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13564 dwarf2_per_objfile.
13565 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13566 parameter.
13567 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13568 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13569 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13570 (set_die_type): Use dwarf2_free_objfile from cu.
13571 (get_die_type_at_offset): Likewise.
13572 (dwarf2_per_objfile_free): Don't assign global variable.
13573 (debug_names) <constructor>: Add dwarf2_per_objfile
13574 parameter, update m_debugstrlookup construction.
13575 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13576 parameter.
13577 <m_dwarf2_per_objfile>: New field.
13578 <lookup>: Use m_dwarf2_per_objfile.
13579 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13580 (psyms_seen_size): Likewise.
13581 (write_gdbindex): Replace objfile parameter with
13582 dwarf2_per_objfile.
13583 (write_debug_names): Likewise.
13584 (write_psymtabs_to_index): Likewise.
13585 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13586 calls.
13587
e3b94546
SM
135882018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13589
13590 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13591 <dwarf2_per_objfile>: New field.
13592 (struct dwarf2_per_cu_data) <objfile>: Remove.
13593 <dwarf2_per_objfile>: New field.
13594 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13595 of objfile.
13596 (create_signatured_type_table_from_index): Likewise.
13597 (create_debug_type_hash_table): Likewise.
13598 (fill_in_sig_entry_from_dwo_entry): Likewise.
13599 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13600 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13601 objfile.
13602 (create_partial_symtab): Access objfile through
13603 dwarf2_per_objfile.
13604 (process_psymtab_comp_unit_reader): Likewise.
13605 (read_comp_units_from_section): Likewise.
13606 (scan_partial_symbols): Likewise.
13607 (add_partial_symbol): Likewise.
13608 (add_partial_subprogram): Likewise.
13609 (peek_die_abbrev): Likewise.
13610 (fixup_go_packaging): Likewise.
13611 (process_full_comp_unit): Likewise.
13612 (process_full_type_unit): Likewise.
13613 (process_imported_unit_die): Likewise.
13614 (dwarf2_compute_name): Likewise.
13615 (dwarf2_physname): Likewise.
13616 (read_import_statement): Likewise.
13617 (create_cus_hash_table): Assign dwarf2_physname instead of
13618 objfile.
13619 (read_func_scope): Access objfile through dwarf2_per_objfile.
13620 (read_lexical_block_scope): Likewise.
13621 (read_call_site_scope): Likewise.
13622 (read_variable): Likewise.
13623 (dwarf2_rnglists_process): Likewise.
13624 (dwarf2_ranges_process): Likewise.
13625 (dwarf2_ranges_read): Likewise.
13626 (dwarf2_record_block_ranges): Likewise.
13627 (dwarf2_add_field): Likewise.
13628 (dwarf2_add_member_fn): Likewise.
13629 (read_structure_type): Likewise.
13630 (process_structure_scope): Likewise.
13631 (read_enumeration_type): Likewise.
13632 (read_array_type): Likewise.
13633 (read_common_block): Likewise.
13634 (read_namespace_type): Likewise.
13635 (read_namespace): Likewise.
13636 (read_module_type): Likewise.
13637 (read_tag_pointer_type): Likewise.
13638 (read_tag_ptr_to_member_type): Likewise.
13639 (read_tag_string_type): Likewise.
13640 (read_subroutine_type): Likewise.
13641 (read_typedef): Likewise.
13642 (read_base_type): Likewise.
13643 (attr_to_dynamic_prop): Likewise.
13644 (read_subrange_type): Likewise.
13645 (read_unspecified_type): Likewise.
13646 (load_partial_dies): Likewise.
13647 (read_partial_die): Likewise.
13648 (find_partial_die): Likewise.
13649 (guess_partial_die_structure_name): Likewise.
13650 (fixup_partial_die): Likewise.
13651 (read_attribute_value): Likewise.
13652 (read_addr_index_from_leb128): Likewise.
13653 (dwarf2_read_addr_index): Likewise.
13654 (dwarf2_string_attr): Likewise.
13655 (lnp_state_machine::check_line_address): Likewise.
13656 (dwarf_decode_lines_1): Likewise.
13657 (dwarf_decode_lines): Likewise.
13658 (dwarf2_start_symtab): Likewise.
13659 (var_decode_location): Likewise.
13660 (new_symbol_full): Likewise.
13661 (dwarf2_const_value_data): Likewise.
13662 (dwarf2_const_value_attr): Likewise.
13663 (dwarf2_const_value): Likewise.
13664 (die_type): Likewise.
13665 (die_containing_type): Likewise.
13666 (lookup_die_type): Likewise.
13667 (guess_full_die_structure_name): Likewise.
13668 (anonymous_struct_prefix): Likewise.
13669 (dwarf2_name): Likewise.
13670 (follow_die_ref_or_sig): Likewise.
13671 (follow_die_offset): Likewise.
13672 (follow_die_ref): Likewise.
13673 (dwarf2_fetch_die_loc_sect_off): Likewise.
13674 (dwarf2_fetch_constant_bytes): Likewise.
13675 (dwarf2_fetch_die_type_sect_off): Likewise.
13676 (dwarf2_get_die_type): Likewise.
13677 (follow_die_sig): Likewise.
13678 (decode_locdesc): Likewise.
13679 (dwarf2_per_cu_objfile): Likewise.
13680 (dwarf2_per_cu_text_offset): Likewise.
13681 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13682 objfile.
13683 (set_die_type): Access objfile through
13684 dwarf2_per_objfile.
13685
b01ba14d
SM
136862018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13687
13688 * valprint.c (converted_character_d): Remove typedef.
13689 (DEF_VEC_O (converted_character_d)): Remove.
13690 (count_next_character): Use std::vector.
13691 (print_converted_chars_to_obstack): Likewise.
13692 (generic_printstr): Likewise.
13693
4d0fdd9b
SM
136942018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13695
13696 * xml-support.h (struct gdb_xml_value): Add constructor.
13697 <value>: Change type to unique_xmalloc_ptr.
13698 (gdb_xml_value_s): Remove typedef.
13699 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13700 (gdb_xml_element_start_handler): Change parameter type to
13701 std::vector.
13702 (xml_find_attribute): Likewise.
13703 * xml-support.c (xml_find_attribute): Change parameter type to
13704 std::vector and adjust.
13705 (gdb_xml_values_cleanup): Remove.
13706 (gdb_xml_parser::start_element): Adjust to std::vector.
13707 (xinclude_start_include): Change paraeter type to std::vector
13708 and adjust.
13709 * btrace.c (check_xml_btrace_version): Likewise.
13710 (parse_xml_btrace_block): Likewise.
13711 (parse_xml_btrace_pt_config_cpu): Likewise.
13712 (parse_xml_btrace_pt): Likewise.
13713 (parse_xml_btrace_conf_bts): Likewise.
13714 (parse_xml_btrace_conf_pt): Likewise.
13715 * memory-map.c (memory_map_start_memory): Likewise.
13716 (memory_map_start_property): Likewise.
13717 * osdata.c (osdata_start_osdata): Likewise.
13718 (osdata_start_item): Likewise.
13719 (osdata_start_column): Likewise.
13720 * remote.c (start_thread): Likewise.
13721 * solib-aix.c (library_list_start_library): Likewise.
13722 (library_list_start_list): Likewise.
13723 * solib-svr4.c (library_list_start_library): Likewise.
13724 (svr4_library_list_start_list): Likewise.
13725 * solib-target.c (library_list_start_segment): Likewise.
13726 (library_list_start_section): Likewise.
13727 (library_list_start_library): Likewise.
13728 (library_list_start_list): Likewise.
13729 * tracepoint.c (traceframe_info_start_memory): Likewise.
13730 (traceframe_info_start_tvar): Likewise.
13731 * xml-syscall.c (syscall_start_syscall): Likewise.
13732 * xml-tdesc.c (tdesc_start_target): Likewise.
13733 (tdesc_start_feature): Likewise.
13734 (tdesc_start_reg): Likewise.
13735 (tdesc_start_union): Likewise.
13736 (tdesc_start_struct): Likewise.
13737 (tdesc_start_flags): Likewise.
13738 (tdesc_start_enum): Likewise.
13739 (tdesc_start_field): Likewise.
13740 (tdesc_start_enum_value): Likewise.
13741 (tdesc_start_vector): Likewise.
13742
f979c73f
SM
137432018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13744
13745 * extension.h (struct xmethod_worker) <clone>: Remove.
13746 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13747 Remove.
13748 (python_xmethod_worker::clone): Remove.
13749 * valops.c (find_overload_match): Use std::move instead of
13750 clone.
13751
ba18742c
SM
137522018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13753
13754 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13755 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13756 <free_xmethod_worker_data>: Remove.
13757 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13758 <get_xmethod_arg_types>: Remove.
13759 <get_xmethod_result_type>: Remove.
13760 <invoke_xmethod>: Remove.
13761 * extension.c (new_xmethod_worker): Remove.
13762 (clone_xmethod_worker): Remove.
13763 (get_matching_xmethod_workers): Return void, pass std::vector by
13764 pointer.
13765 (get_xmethod_arg_types): Rename to...
13766 (xmethod_worker::get_arg_types): ... this, and adjust.
13767 (get_xmethod_result_type): Rename to...
13768 (xmethod_worker::get_result_type): ... this, and adjust.
13769 (invoke_xmethod): Remove.
13770 (free_xmethod_worker): Remove.
13771 (free_xmethod_worker_vec): Remove.
13772 * extension.h (enum ext_lang_rc): Move here from
13773 extension-priv.h.
13774 (struct xmethod_worker): Add constructor and destructor.
13775 <data>: Remove.
13776 <value>: Remove.
13777 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13778 virtual pure methods.
13779 <get_arg_types, get_result_type>: New methods.
13780 (xmethod_worker_ptr): Remove typedef.
13781 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13782 (xmethod_worker_vec): Remove typedef.
13783 (xmethod_worker_up): New typedef.
13784 (invoke_xmethod): Remove.
13785 (clone_xmethod_worker): Remove.
13786 (free_xmethod_worker): Remove.
13787 (free_xmethod_worker_vec): Remove.
13788 (get_xmethod_arg_types): Remove.
13789 (get_xmethod_result_type): Remove.
13790 * valops.c (find_method_list): Use std::vector, don't use
13791 intermediate vector.
13792 (value_find_oload_method_list): Use std::vector.
13793 (find_overload_match): Use std::vector.
13794 (find_oload_champ): Use std::vector.
13795 * value.c (value_free): Use operator delete.
13796 (value_of_xmethod): Rename to...
13797 (value_from_xmethod): ... this. Don't assign
13798 xmethod_worker::value, take rvalue-reference.
13799 (result_type_of_xmethod): Adjust.
13800 (call_xmethod): Adjust.
13801 * value.h: Include extension.h.
13802 (struct xmethod_worker): Don't forward-declare.
13803 (value_of_xmethod): Rename to...
13804 (value_from_xmethod): ... this, take rvalue-reference.
13805 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13806 (struct python_xmethod_worker): ... this, add constructor and
13807 destructor.
13808 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13809 (gdbpy_free_xmethod_worker_data): Rename to...
13810 (python_xmethod_worker::~python_xmethod_worker): ... this and
13811 adjust.
13812 (gdbpy_clone_xmethod_worker_data): Rename to...
13813 (python_xmethod_worker::clone): ... this and adjust.
13814 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13815 temporary vector.
13816 (gdbpy_get_xmethod_arg_types): Rename to...
13817 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13818 (gdbpy_get_xmethod_result_type): Rename to...
13819 (python_xmethod_worker::do_get_result_type): ... this and
13820 adjust.
13821 (gdbpy_invoke_xmethod): Rename to...
13822 (python_xmethod_worker::invoke): ... this and adjust.
13823 (new_python_xmethod_worker): Rename to...
13824 (python_xmethod_worker::python_xmethod_worker): ... this and
13825 adjust.
13826 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13827 Remove.
13828 (gdbpy_free_xmethod_worker_data): Remove.
13829 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13830 (gdbpy_get_xmethod_arg_types): Remove.
13831 (gdbpy_get_xmethod_result_type): Remove.
13832 (gdbpy_invoke_xmethod): Remove.
13833 * python/python.c (python_extension_ops): Remove obsolete
13834 callbacks.
13835
e379cee6
PA
138362018-01-05 Pedro Alves <palves@redhat.com>
13837
13838 PR gdb/18653
13839 * common/signals-state-save-restore.c
13840 (save_original_signals_state): New parameter 'quiet'. Warn if we
13841 find a custom handler preinstalled, instead of internal erroring.
13842 But only warn if !quiet.
13843 * common/signals-state-save-restore.h
13844 (save_original_signals_state): New parameter 'quiet'.
13845 * main.c (captured_main_1): Move save_original_signals_state call
13846 after option handling, and pass QUIET.
13847
a655456c
PA
138482018-01-05 Pedro Alves <palves@redhat.com>
13849
13850 * spu-tdep.c (spu_catch_start): Pass
13851 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13852
de63c46b
PA
138532018-01-05 Pedro Alves <palves@redhat.com>
13854
13855 PR gdb/22670
13856 * ada-lang.c (literal_symbol_name_matcher): New function.
13857 (ada_get_symbol_name_matcher): Use it for
13858 symbol_name_match_type::SEARCH_NAME.
13859 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13860 it down instead of assuming symbol_name_match_type::FULL.
13861 * block.h (block_lookup_symbol): New parameter 'match_type'.
13862 * c-valprint.c (print_unpacked_pointer): Use
13863 lookup_symbol_search_name instead of lookup_symbol.
13864 * compile/compile-object-load.c (get_out_value_type): Pass down
13865 symbol_name_match_type::SEARCH_NAME.
13866 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13867 symbol_name_match_type::FULL.
13868 * cp-support.c (cp_get_symbol_name_matcher): Handle
13869 symbol_name_match_type::SEARCH_NAME.
13870 * infrun.c (insert_exception_resume_breakpoint): Use
13871 lookup_symbol_search_name.
13872 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13873 * psymtab.c (maintenance_check_psymtabs): Use
13874 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13875 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13876 SYMBOL_SEARCH_NAME.
13877 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13878 if symbol_name_match_type::SEARCH_NAME.
13879 (lookup_symbol_in_language): Pass down
13880 symbol_name_match_type::FULL.
13881 (lookup_symbol_search_name): New.
13882 (lookup_language_this): Pass down
13883 symbol_name_match_type::SEARCH_NAME.
13884 (lookup_symbol_aux, lookup_local_symbol): New parameter
13885 'match_type'. Pass it down.
13886 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13887 (lookup_symbol_search_name): New declaration.
13888 (lookup_symbol_in_block): New 'match_type' parameter.
13889
f98fc17b
PA
138902018-01-05 Pedro Alves <palves@redhat.com>
13891
13892 PR gdb/22670
13893 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13894 ada_lookup_symbol.
13895 (ada_lookup_symbol): Reimplement in terms of
13896 ada_lookup_symbol_list, bits factored out from
13897 ada_lookup_encoded_symbol.
13898
342f8240
JB
138992018-01-05 Joel Brobecker <brobecker@adacore.com>
13900
13901 * ada-exp.y (write_object_renaming): When subscripting an array
13902 using a symbol as the index, pass the block in call to
13903 ada_lookup_encoded_symbol when looking that symbol up.
13904
7150d33c
JG
139052018-01-05 Jerome Guitton <guitton@adacore.com>
13906
13907 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13908 TYPE_INDEX_TYPE.
13909
cc0e770c
JB
139102018-01-05 Joel Brobecker <brobecker@adacore.com>
13911
13912 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13913 the case where VALUE_LVAL (val0) is not lval_memory.
13914
f79da888 139152018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
13916
13917 * ada-valprint.c (print_optional_low_bound): Handle
13918 character-indexed array printing like boolean-indexed array
13919 printing.
13920
cd385f94
JB
139212018-01-05 Joel Brobecker <brobecker@adacore.com>
13922
13923 * NEWS: Create a new section for the next release branch.
13924 Rename the section of the current branch, now that it has
13925 been cut.
13926
09aca949
JB
139272018-01-05 Joel Brobecker <brobecker@adacore.com>
13928
13929 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13930 * version.in: Bump version to 8.1.50.DATE-git.
13931
9f757bf7
XR
139322018-01-03 Xavier Roirand <roirand@adacore.com>
13933
13934 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13935 Add field.
13936 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13937 Add field.
13938 (default_exception_support_info) <catch_handlers_sym>: Add field.
13939 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13940 (ada_exception_name_addr_1): Add "catch handlers" handling.
13941 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13942 Update all callers.
13943 (create_excep_cond_exprs) <ex>: Add parameter.
13944 (re_set_exception): Update create_excep_cond_exprs call.
13945 (print_it_exception, print_one_exception, print_mention_exception)
13946 (print_recreate_exception): Add "catch handler" handling.
13947 (allocate_location_catch_handlers, re_set_catch_handlers)
13948 (check_status_catch_handlers, print_it_catch_handlers)
13949 (print_one_catch_handlers, print_mention_catch_handlers)
13950 (print_recreate_catch_handlers): New function.
13951 (catch_handlers_breakpoint_ops): New variable.
13952 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13953 Add parameter. Add "catch handler" handling.
13954 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13955 Add "catch handler" handling.
13956 (ada_exception_catchpoint_cond_string): Add "catch handler"
13957 handling.
13958 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13959 call.
13960 (catch_ada_handlers_command): New function.
13961 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13962 operations structure.
13963 (_initialize_ada_language): Add "catch handlers" command entry.
13964 * NEWS: Document "catch handlers" feature.
13965
9fe561ab
JB
139662018-01-02 Joel Brobecker <brobecker@adacore.com>
13967
13968 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13969 account when creating the array type of the slice.
13970 (ada_value_slice): Likewise.
13971
a405673c
JB
139722018-01-02 Joel Brobecker <brobecker@adacore.com>
13973
13974 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13975 New enum value.
13976 (create_array_type_with_stride): Add byte_stride_prop parameter.
13977 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13978 New parameter. Update all callers in this file.
13979 (array_type_has_dynamic_stride): New function.
13980 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13981 of arrays with dynamic byte strides.
13982 * dwarf2read.c (read_array_type): Add support for dynamic
13983 DW_AT_byte_stride attributes.
13984
74a2f8ff
JB
139852018-01-02 Joel Brobecker <brobecker@adacore.com>
13986
13987 * dwarf2read.c (read_unspecified_type): Treat
13988 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13989
e2882c85
JB
139902018-01-01 Joel Brobecker <brobecker@adacore.com>
13991
13992 Update copyright year range in all GDB files.
13993
1690bb24
JB
139942018-01-01 Joel Brobecker <brobecker@adacore.com>
13995
13996 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13997 and gdb/testsuite/gdb.base/step-line.c.
13998
0f0c98a8
JB
139992018-01-01 Joel Brobecker <brobecker@adacore.com>
14000
14001 * copyright.py (main): Dump the contents of
14002 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14003 even if BY_HAND is empty.
14004
82e1e79a
JB
140052018-01-01 Joel Brobecker <brobecker@adacore.com>
14006
14007 * top.c (print_gdb_version): Update Copyright year in version
14008 message.
14009
053f54e5 140102018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 14011
053f54e5 14012 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 14013
053f54e5 14014For older changes see ChangeLog-2017.
c906108c
SS
14015\f
14016Local Variables:
14017mode: change-log
14018left-margin: 8
14019fill-column: 74
14020version-control: never
57da7796 14021coding: utf-8
c906108c 14022End:
This page took 2.734803 seconds and 4 git commands to generate.