]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Constify maintenance_print_user_registers
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4d4589ef
TT
12017-09-27 Tom Tromey <tom@tromey.com>
2
3 * user-regs.c (maintenance_print_user_registers): Constify.
4
32a7bf17
TT
52017-09-27 Tom Tromey <tom@tromey.com>
6
7 * cp-namespace.c (maintenance_cplus_namespace): Constify.
8
4a475551
TT
92017-09-27 Tom Tromey <tom@tromey.com>
10
11 * cp-support.c (first_component_command): Constify.
12
990b9f9f
TT
132017-09-27 Tom Tromey <tom@tromey.com>
14
15 * psymtab.c (maintenance_print_psymbols)
16 (maintenance_info_psymtabs, maintenance_check_psymtabs):
17 Constify.
18
c281872e
TT
192017-09-27 Tom Tromey <tom@tromey.com>
20
21 * windows-tdep.c (display_tib): Constify.
22
5b64bf74
TT
232017-09-27 Tom Tromey <tom@tromey.com>
24
25 * linux-fork.c (delete_checkpoint_command)
26 (detach_checkpoint_command): Constify.
27
4ada038f
TT
282017-09-27 Tom Tromey <tom@tromey.com>
29
30 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
31
57f5a81b
TT
322017-09-27 Tom Tromey <tom@tromey.com>
33
34 * arc-tdep.c (dump_arc_instruction_command): Constify.
35
b0a8e6c4
TT
362017-09-27 Tom Tromey <tom@tromey.com>
37
38 * valprint.c (set_radix, show_radix): Constify.
39
8d97dc1c
TT
402017-09-27 Tom Tromey <tom@tromey.com>
41
42 * dtrace-probe.c (info_probes_dtrace_command): Constify.
43
eb7c454d
TT
442017-09-27 Tom Tromey <tom@tromey.com>
45
46 * command.h (not_just_help_class_command): Update.
47 * cli/cli-decode.h (not_just_help_class_command): Update.
48 * cli/cli-decode.c (not_just_help_class_command): Constify.
49
e4e33335
TT
502017-09-27 Tom Tromey <tom@tromey.com>
51
52 * gdb_bfd.c (maintenance_info_bfds): Constify.
53
0450cc4c
TT
542017-09-27 Tom Tromey <tom@tromey.com>
55
56 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
57 overloads.
58 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
59 (do_const_cfunc): New function.
60 (cmd_cfunc_eq): New overload.
61 (cli_user_command_p): Check do_const_cfunc.
62 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
63 const_cfunc.
64 * command.h (add_cmd): Add const overload and no-function
65 overload.
66 (set_cmd_cfunc): Add const overload.
67 (cmd_const_cfunc_ftype): Declare.
68 (cmd_cfunc_eq): Add const overload.
69 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
70 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
71 overload.
72
a9bbfbd8
TT
732017-09-27 Tom Tromey <tom@tromey.com>
74
75 * macroexp.c (get_next_token_for_substitution): New function.
76 (substitute_args): Call it. Check for __VA_OPT__.
77
5230b05a
WT
782017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
79 Pedro Alves <palves@redhat.com>
80
81 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
82 producer_is_icc_lt_14.
83 (producer_is_icc_lt_14): New function.
84 (check_producer): Add code for checking version of ICC.
85 (producer_is_icc): Move to producer.c.
86 (read_structure_type): Restrict ICC workaround to ICC<14.
87 * producer.c: Include selftest.h.
88 (producer_is_icc, producer_parsing_tests, _initialize_producer):
89 New functions.
90 * producer.h (producer_is_icc): New declaration.
91
b32b108a
WT
922017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
93
94 * Makefile.in (SFILES): Add producer.c.
95 (COMMON_OBS): Add producer.o
96 * amd64-tdep.c (producer.h): Add new include.
97 * dwarf2read.c (producer.h): Add new include.
98 * producer.c: New file.
99 * producer.h: New file.
100 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
101 producer.c.
102 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
103 producer.h.
104
5007d765
MK
1052017-09-26 Matthias Klose <doko@ubuntu.com>
106
107 * configure.ac: Search ncursesw before ncurses.
108 Check ncursesw/ncurses.h before ncurses/ncurses.h.
109 * gdb_curses.h: Include <ncursesw/ncurses.h>
110 * config.in, configure: Regenerate.
111
281c4447
RO
1122017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
113
114 PR gdb/22185
115 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
116 obsolete.
117 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
118 Remove i386sol2 support.
119 * configure.nat <i386sol2>: Remove.
120 <sol2-64>: Fold into ...
121 <sol2>: ... this.
122 Move common settings to default section.
123 Add sol-thread.o.
124 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
125 x86_64-*-solaris2.1[0-9]*>: Rename to ...
126 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
127 <i[34567]86-*-solaris*>: Remove.
128 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
129
130 * configure.ac: Remove wctype in libw check.
131 (_MSE_INT_H): Don't define on Solaris 7-9.
132 <solaris*>: Remove libthread_db.so.1 check.
133 * configure: Regenerate.
134 * config.in: Regenerate.
135
136 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
137 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
138 (gdb_ps_size_t): Remove.
139 Use base types in users.
140 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
141
142 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
143
39b06c20
RO
1442017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
145
146 PR build/22206
147 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
148 (adi_is_addr_mapped): Likewise.
149 (PSR_ICC): Don't redefine.
150 (PSR_IMPL): Likewise.
151
6c3e20f1
TT
1522017-09-25 Tom Tromey <tom@tromey.com>
153
154 * regcache.c (regcache::dump): Use string_printf.
155
b292235f
TT
1562017-09-25 Tom Tromey <tom@tromey.com>
157
158 * regcache.c (class regcache_invalidator): New.
159 (struct register_to_invalidate): Remove.
160 (make_cleanup_regcache_invalidate): Remove.
161 (regcache::raw_write): Use regcache_invalidator.
162
9ac86b52
TT
1632017-09-25 Tom Tromey <tom@tromey.com>
164
165 * spu-tdep.c (spu2ppu_sniffer): Update.
166 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
167 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
168 Remove.
169 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
170 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
171 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
172 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
173 (frame_pop): Update.
174
c0e383c6
TT
1752017-09-25 Tom Tromey <tom@tromey.com>
176
177 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
178 * regcache.h (regcache_xfree): Don't declare.
179 * regcache.c (regcache_xfree): Remove.
180 (do_regcache_xfree): Use delete.
181 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
182 * linux-fork.c (free_fork): Use delete.
183 (fork_save_infrun_state): Likewise.
184 * jit.c (jit_dealloc_cache): Use delete.
185 * infrun.c (discard_infcall_suspend_state): Use delete.
186
791199cc
TT
1872017-09-25 Tom Tromey <tom@tromey.com>
188
189 * regcache.h (regcache_xmalloc): Don't declare.
190 (regcache_raw_set_cached_value): Update comment.
191 * regcache.c (regcache_xmalloc): Remove.
192 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
193 * jit.c (jit_frame_sniffer): Use new.
194 * frame.c (frame_save_as_regcache): Use new.
195
289e23aa
AA
1962017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
197
198 * NEWS: Advertise support for guarded-storage registers on IBM z.
199
1b63490c
AA
2002017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
201
202 * s390-linux-nat.c (have_regset_gs): New static variable.
203 (s390_linux_fetch_inferior_registers): Handle guarded-storage
204 control block and guarded-storage broadcast control regsets.
205 (s390_read_description): Detect whether the target has
206 guarded-storage support, return appropriate tdesc.
207 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
208 (features/s390x-gs-linux64.c): Likewise.
209 (struct gdbarch_tdep) <have_gs>: New field.
210 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
211 (s390_gsbc_regset): New variables.
212 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
213 and s390_gsbc_regset, if applicable.
214 (s390_core_read_description): Check whether core file was from a
215 target with guarded-storage support; include appropriate regsets.
216 (s390_gdbarch_init): Add registers for guarded-storage support.
217 (_initialize_s390_tdep): Initialize new target descriptions that
218 include registers for guarded-storage support.
219 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
220 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
221 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
222 (S390_NUM_REGS): Adjust macro definition.
223 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
224 (tdesc_s390x_gs_linux64): New declarations.
225
96235dc1
AA
2262017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
227
228 * features/s390-gs-linux64.xml: New file.
229 * features/s390-gs.xml: New file.
230 * features/s390-gsbc.xml: New file.
231 * features/s390x-gs-linux64.xml: New file.
232 * features/Makefile (WHICH): Add s390-gs-linux64 and
233 s390x-gs-linux64.
234 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
235 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
236 * features/s390-gs-linux64.c: New generated file.
237 * features/s390x-gs-linux64.c: New file.
238 * regformats/s390-gs-linux64.dat: New file.
239 * regformats/s390x-gs-linux64.dat: New file.
240
b4a7c699
TT
2412017-09-23 Tom Tromey <tom@tromey.com>
242
243 * defs.h (make_cleanup_override_quit_handler): Don't declare.
244
c2f97536
TT
2452017-09-22 Tom Tromey <tom@tromey.com>
246
247 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
248 type to scoped_restore_tmpl.
249 <scoped_input_handler>: Initialize m_quit_handler directly.
250
43573013
SDJ
2512017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
252
253 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
254 (cd_command): Likewise. Free "current_directory" before
255 assigning to it.
256 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
257 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
258 * top.c (gdb_dirbuf): Remove global declaration.
259 * top.h (gdb_dirbuf): Likewise.
260
6ec2e0f5
SDJ
2612017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
262
263 * gnulib/aclocal.m4: Regenerate.
264 * gnulib/config.in: Regenerate.
265 * gnulib/configure: Regenerate.
266 * gnulib/import/Makefile.am: Regenerate.
267 * gnulib/import/Makefile.in: Regenerate.
268 * gnulib/import/assure.h: New file.
269 * gnulib/import/at-func.c: Likewise
270 * gnulib/import/chdir-long.c: New file.
271 * gnulib/import/chdir-long.h: New file.
272 * gnulib/import/cloexec.c: New file.
273 * gnulib/import/cloexec.h: New file.
274 * gnulib/import/close.c: New file.
275 * gnulib/import/closedir.c: New file.
276 * gnulib/import/dirent-private.h: New file.
277 * gnulib/import/dup-safer.c: New file.
278 * gnulib/import/dup.c: New file.
279 * gnulib/import/dup2.c: New file.
280 * gnulib/import/error.c: New file.
281 * gnulib/import/error.h: New file.
282 * gnulib/import/exitfail.c: New file.
283 * gnulib/import/exitfail.h: New file.
284 * gnulib/import/fchdir.c: New file.
285 * gnulib/import/fcntl.c: New file.
286 * gnulib/import/fcntl.in.h: New file.
287 * gnulib/import/fd-hook.c: New file.
288 * gnulib/import/fd-hook.h: New file.
289 * gnulib/import/fd-safer.c: New file.
290 * gnulib/import/fdopendir.c: New file.
291 * gnulib/import/filename.h: New file.
292 * gnulib/import/filenamecat-lgpl.c: New file.
293 * gnulib/import/filenamecat.h: New file.
294 * gnulib/import/fstat.c: New file.
295 * gnulib/import/fstatat.c: New file.
296 * gnulib/import/getcwd-lgpl.c: New file.
297 * gnulib/import/getcwd.c: New file.
298 * gnulib/import/getdtablesize.c: New file.
299 * gnulib/import/getlogin_r.c: New file.
300 * gnulib/import/getprogname.c: New file.
301 * gnulib/import/getprogname.h: New file.
302 * gnulib/import/gettext.h: New file.
303 * gnulib/import/glob-libc.h: New file.
304 * gnulib/import/glob.c: New file.
305 * gnulib/import/glob.in.h: New file.
306 * gnulib/import/intprops.h: New file.
307 * gnulib/import/m4/chdir-long.m4: New file.
308 * gnulib/import/m4/close.m4: New file.
309 * gnulib/import/m4/closedir.m4: New file.
310 * gnulib/import/m4/d-ino.m4: New file.
311 * gnulib/import/m4/d-type.m4: New file.
312 * gnulib/import/m4/dup.m4: New file.
313 * gnulib/import/m4/dup2.m4: New file.
314 * gnulib/import/m4/error.m4: New file.
315 * gnulib/import/m4/fchdir.m4: New file.
316 * gnulib/import/m4/fcntl.m4: New file.
317 * gnulib/import/m4/fcntl_h.m4: New file.
318 * gnulib/import/m4/fdopendir.m4: New file.
319 * gnulib/import/m4/filenamecat.m4: New file.
320 * gnulib/import/m4/fstat.m4: New file.
321 * gnulib/import/m4/fstatat.m4: New file.
322 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
323 * gnulib/import/m4/getcwd-path-max.m4: New file.
324 * gnulib/import/m4/getcwd.m4: New file.
325 * gnulib/import/m4/getdtablesize.m4: New file.
326 * gnulib/import/m4/getlogin_r.m4: New file.
327 * gnulib/import/m4/getprogname.m4: New file.
328 * gnulib/import/m4/glob.m4: New file.
329 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
330 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
331 * gnulib/import/m4/mempcpy.m4: New file.
332 * gnulib/import/m4/memrchr.m4: New file.
333 * gnulib/import/m4/mode_t.m4: New file.
334 * gnulib/import/m4/msvc-inval.m4: New file.
335 * gnulib/import/m4/msvc-nothrow.m4: New file.
336 * gnulib/import/m4/open.m4: New file.
337 * gnulib/import/m4/openat.m4: New file.
338 * gnulib/import/m4/opendir.m4: New file.
339 * gnulib/import/m4/readdir.m4: New file.
340 * gnulib/import/m4/realloc.m4: New file.
341 * gnulib/import/m4/rewinddir.m4: New file.
342 * gnulib/import/m4/save-cwd.m4: New file.
343 * gnulib/import/m4/strdup.m4: New file.
344 * gnulib/import/m4/strerror.m4: New file.
345 * gnulib/import/m4/unistd-safer.m4: New file.
346 * gnulib/import/mempcpy.c: New file.
347 * gnulib/import/memrchr.c: New file.
348 * gnulib/import/msvc-inval.c: New file.
349 * gnulib/import/msvc-inval.h: New file.
350 * gnulib/import/msvc-nothrow.c: New file.
351 * gnulib/import/msvc-nothrow.h: New file.
352 * gnulib/import/open.c: New file.
353 * gnulib/import/openat-die.c: New file.
354 * gnulib/import/openat-priv.h: New file.
355 * gnulib/import/openat-proc.c: New file.
356 * gnulib/import/openat.c: New file.
357 * gnulib/import/openat.h: New file.
358 * gnulib/import/opendir.c: New file.
359 * gnulib/import/pipe-safer.c: New file.
360 * gnulib/import/readdir.c: New file.
361 * gnulib/import/realloc.c: New file.
362 * gnulib/import/rewinddir.c: New file.
363 * gnulib/import/save-cwd.c: New file.
364 * gnulib/import/save-cwd.h: New file.
365 * gnulib/import/strdup.c: New file.
366 * gnulib/import/strerror-override.c: New file.
367 * gnulib/import/strerror-override.h: New file.
368 * gnulib/import/strerror.c: New file.
369 * gnulib/import/unistd--.h: New file.
370 * gnulib/import/unistd-safer.h: New file.
371 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
372 "getcwd" and "glob".
373 * ser-tcp.c: Undefine "close" before redefining it.
374
432ae719
SM
3752017-09-21 Simon Marchi <simon.marchi@ericsson.com>
376
377 * guile/scm-value.c (gdbscm_value_address): Initialize address,
378 get rid of res_val.
379
4fa7574e
RO
3802017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
381
382 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
383 <sol2,sparc>: Likewise.
384 <sol2-64,i386>: Likewise.
385
386 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
387 -Wdeprecated-declarations on *-*-solaris*.
388 * configure: Regenerate.
389
390 * procfs.c: Include "nat/inferior.h".
391 (procfs_info_proc): Fix typo.
392
f6327dcb
KB
3932017-09-21 Kevin Buettner <kevinb@redhat.com>
394
395 * remote.c (vector): Include.
396 (struct private_thread_info): Add field, thread_handle.
397 (free_private_thread_info): Deallocate storage associated with
398 thread handle.
399 (get_private_info_thread): Initialize `thread_handle' field.
400 (struct thread_item): Add field, thread_handle.
401 (clear_threads_listing_context): Deallocate storage associated
402 with thread handle.
403 (start_thread): Add support for "handle" attribute.
404 (thread_attributes): Add "handle".
405 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
406 field.
407 (remote_update_thread_list): Update thread_handle.
408 (remote_thread_handle_to_thread_info): New function.
409 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
410
fbbe5337
KB
4112017-09-21 Kevin Buettner <kevinb@redhat.com>
412
413 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
414 function.
415 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
416 * python/python-internal.h (thread_object_type): Declare.
417
e04ee09e
KB
4182017-09-21 Kevin Buettner <kevinb@redhat.com>
419
420 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
421 (target_thread_handle_to_thread_info): Declare.
422 * target.c (target_thread_handle_to_thread_info): New function.
423 * target-delegates.c: Regenerate.
424 * gdbthread.h (find_thread_by_handle): Declare.
425 * thread.c (find_thread_by_handle): New function.
426 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
427 function.
428 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
429
1e5b66ed
SM
4302017-09-21 Simon Marchi <simon.marchi@ericsson.com>
431
432 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
433
ebe48ba0
SM
4342017-09-21 Simon Marchi <simon.marchi@ericsson.com>
435
436 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
437
0a0bf5dc
YQ
4382017-09-21 Yao Qi <yao.qi@linaro.org>
439
440 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
441 to gdb_target_obs.
442
d1b0a7bf
TT
4432017-09-20 Tom Tromey <tom@tromey.com>
444
445 * breakpoint.c (struct counted_command_line): Remove.
446 (breakpoint_commands): Update.
447 (alloc_counted_command_line, incref_counted_command_line)
448 (decref_counted_command_line, do_cleanup_counted_command_line)
449 (make_cleanup_decref_counted_command_line): Remove.
450 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
451 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
452 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
453 (save_breakpoints): Update.
454 * breakpoint.h (counted_command_line): Now a typedef to
455 shared_ptr.
456 (struct breakpoint) <commands>: Now a counted_command_line.
457 (struct bpstats) <command>: Likewise.
458
48649e1b
TT
4592017-09-20 Tom Tromey <tom@tromey.com>
460
461 * breakpoint.c (struct commands_info, do_map_commands_command):
462 Remove.
463 (commands_command_1): Update.
464 (iterate_over_related_breakpoints): Take a function_view.
465 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
466 (delete_command): Update.
467 (map_breakpoint_numbers): Take a function_view.
468 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
469 (disable_command): Update.
470 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
471 (enable_command): Update.
472 (struct disp_data, do_enable_breakpoint_disp)
473 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
474 (do_map_enable_delete_breakpoint): Remove.
475 (enable_once_command, enable_count_command, enable_delete_command)
476 (delete_trace_variable_command): Update.
477
04afa70c
TT
4782017-09-20 Tom Tromey <tom@tromey.com>
479
480 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
481 (bpstat_clear): Use delete.
482 (bpstats): New constructors.
483 (bpstat_copy, bpstat_stop_status): Use new.
484 (dprintf_after_condition_true): Update.
485 * breakpoint.h (bpstats::bpstats): Add constructors.
486 (bpstats::~bpstats): Add destructor.
487
c83833f4
PA
4882017-09-20 Pedro Alves <palves@redhat.com>
489
490 * eval.c (make_params): Delete, refactored as ...
491 (class fake_method): ... this new type's ctor.
492 (fake_method::~fake_method): New.
493 (evaluate_subexp_standard): Use 'fake_method'.
494
223ffa71
TT
4952017-09-20 Tom Tromey <tom@tromey.com>
496
497 * windows-nat.c (get_windows_debug_event, windows_wait)
498 (do_initial_windows_stuff, windows_attach): Update.
499 * utils.c (vwarning, internal_vproblem): Update.
500 (ui_unregister_input_event_handler_cleanup)
501 (prepare_to_handle_input): Remove.
502 (class scoped_input_handler): New.
503 (defaulted_query, prompt_for_continue): Update.
504 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
505 Update.
506 * top.c (undo_terminal_modifications_before_exit): Update.
507 * target/target.h (target_terminal_init, target_terminal_inferior)
508 (target_terminal_ours): Don't declare.
509 (class target_terminal): New.
510 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
511 (target_terminal_ours_for_output)
512 (make_cleanup_restore_target_terminal): Don't declare.
513 (target_terminal_info): Remove.
514 * target.c (enum terminal_state, terminal_state): Remove.
515 (target_terminal::terminal_state): Define.
516 (target_terminal::init): Rename from target_terminal_init.
517 (target_terminal::inferior): Rename from
518 target_terminal_inferior.
519 (target_terminal::ours): Rename from target_terminal_ours.
520 (target_terminal::ours_for_output): Rename from
521 target_terminal_ours_for_output.
522 (target_terminal::info): New method.
523 (cleanup_restore_target_terminal)
524 (make_cleanup_restore_target_terminal): Remove.
525 * solib.c (handle_solib_event): Update.
526 * remote.c (remote_serial_quit_handler): Update.
527 (remote_terminal_inferior, remote_wait_as): Update.
528 * record-full.c (record_full_wait_1): Update.
529 * nto-procfs.c (procfs_create_inferior): Update.
530 * nat/fork-inferior.c (startup_inferior): Update.
531 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
532 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
533 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
534 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
535 (mi_breakpoint_created, mi_breakpoint_deleted)
536 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
537 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
538 (mi_user_selected_context_changed, report_initial_inferior):
539 Update.
540 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
541 (linux_nat_terminal_inferior): Update.
542 * infrun.c (follow_fork_inferior)
543 (handle_vfork_child_exec_or_exit, do_target_resume)
544 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
545 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
546 Update.
547 * inflow.c (child_terminal_init, info_terminal_command): Update.
548 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
549 (attach_command): Update.
550 * infcall.c (call_thread_fsm_should_stop): Update.
551 * gnu-nat.c (gnu_attach): Update.
552 * extension.c (struct active_ext_lang_state)
553 (restore_active_ext_lang): Update.
554 * exceptions.c (print_flush): Update.
555 * event-top.c (async_enable_stdin, default_quit_handler): Update.
556 (struct quit_handler_cleanup_data, restore_quit_handler)
557 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
558 Remove.
559 * cp-support.c (gdb_demangle): Update.
560 * breakpoint.c (update_inserted_breakpoint_locations)
561 (insert_breakpoint_locations, handle_jit_event)
562 (disable_breakpoints_in_unloaded_shlib): Update.
563 * annotate.c (annotate_breakpoints_invalid)
564 (annotate_frames_invalid): Update.
565
013af3fc
TT
5662017-09-20 Tom Tromey <tom@tromey.com>
567
568 * main.c (catch_command_errors): Rename from
569 catch_command_errors_const.
570 (captured_main_1): Update.
571
06871ae8
PA
5722017-09-20 Pedro Alves <palves@redhat.com>
573
574 * cli/cli-cmds.c (list_command): Use print_sal_location.
575 (print_sal_location): New function.
576 (ambiguous_line_spec): Use print_sal_location.
577 * linespec.c (symbol_to_sal): Record the symbol in the sal.
578 * symtab.c (find_function_start_sal): Likewise.
579 * symtab.h (symtab_and_line::symbol): New field.
580
e5f25bc5
PA
5812017-09-20 Pedro Alves <palves@redhat.com>
582
583 * linespec.c (minsym_found): Handle non-text minsyms.
584 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
585
1b7fa39e
WT
5862017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
587
588 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
589 backslash.
590
37dd0825
WT
5912017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
592
593 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
594 vmovups instead vmovaps.
595 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
596
4e5a4f58
JB
5972017-09-19 John Baldwin <jhb@FreeBSD.org>
598
599 * NEWS (Changes since GDB 8.0): Add starti.
600 * infcmd.c (enum run_break): New.
601 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
602 case.
603 (run_command): Use enum run_how.
604 (start_command): Likewise.
605 (starti_command): New function.
606 (RUN_ARGS_HELP): New macro.
607 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
608 commands. Add starti command.
609
aa70c9f1
YQ
6102017-09-19 Yao Qi <yao.qi@linaro.org>
611
612 * Makefile.in (monitor.o): Remove the rule.
613
d6541620
YQ
6142017-09-19 Yao Qi <yao.qi@linaro.org>
615
616 * annotate.h (struct annotate_arg_emitter): Use
617 DISABLE_COPY_AND_ASSIGN.
618 * common/refcounted-object.h (refcounted_object): Likewise.
619 * completer.h (struct completion_result): Likewise.
620 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
621 * filename-seen-cache.h (filename_seen_cache): Likewise.
622 * gdbcore.h (thread_section_name): Likewise.
623 * gdb_regex.h (compiled_regex): Likewise.
624 * gdbthread.h (scoped_restore_current_thread): Likewise.
625 * inferior.h (scoped_restore_current_inferior): Likewise.
626 * jit.c (jit_reader): Likewise.
627 * linespec.h (struct linespec_result): Likewise.
628 * mi/mi-parse.h (struct mi_parse): Likewise.
629 * nat/fork-inferior.c (execv_argv): Likewise.
630 * progspace.h (scoped_restore_current_program_space): Likewise.
631 * python/python-internal.h (class gdbpy_enter): Likewise.
632 * regcache.h (regcache): Likewise.
633 * target-descriptions.c (struct tdesc_reg): Likewise.
634 (struct tdesc_type): Likewise.
635 (struct tdesc_feature): Likewise.
636 * ui-out.h (ui_out_emit_type): Likewise.
637
0615127c
SM
6382017-09-18 Simon Marchi <simon.marchi@ericsson.com>
639
640 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
641 label abort_expression.
642
5e187554
SM
6432017-09-16 Simon Marchi <simon.marchi@ericsson.com>
644
645 * common/buffer.c (buffer_xml_printf): Adjust.
646 * common/xml-utils.c (xml_escape_text): Change return type to
647 std::string, update code accordingly.
648 * common/xml-utils.h (xml_escape_text): Change return type to
649 std::string.
650 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
651 * windows-tdep.c (windows_xfer_shared_library): Adjust.
652 * unittests/xml-utils-selftests.c (test_xml_escape_text):
653 Adjust.
654
c3d7b541
SM
6552017-09-16 Simon Marchi <simon.marchi@ericsson.com>
656
657 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
658 (SUBDIR_UNITTESTS_OBS): Add new object file.
659 * unittests/xml-utils-selftests.c: New file.
660
1526853e
SM
6612017-09-16 Simon Marchi <simon.marchi@ericsson.com>
662
663 * common/selftest.h (selftest): New struct/interface.
664 (register_test): Add name parameter, add new overload.
665 (run_tests): Add filter parameter.
666 (for_each_selftest_ftype): New typedef.
667 (for_each_selftest): New declaration.
668 * common/selftest.c (tests): Change type to
669 map<string, unique_ptr<selftest>>.
670 (simple_selftest): New struct.
671 (register_test): New function.
672 (register_test): Add name parameter and use it.
673 (run_tests): Add filter parameter and use it. Add prints.
674 Adjust to vector -> map change.
675 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
676 registering selftests.
677 * arm-tdep.c (_initialize_arm_tdep): Likewise.
678 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
679 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
680 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
681 * findvar.c (_initialize_findvar): Likewise.
682 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
683 * maint.c (maintenance_selftest): Update call to run_tests.
684 (maintenance_info_selftests): New function.
685 (_initialize_maint_cmds): Register "maintenance info selftests"
686 command. Update "maintenance selftest" doc.
687 * regcache.c (_initialize_regcache): Add names when registering
688 selftests.
689 * rust-exp.y (_initialize_rust_exp): Likewise.
690 * selftest-arch.c (gdbarch_selftest): New struct.
691 (gdbarch_tests): Remove.
692 (register_test_foreach_arch): Add name parameter. Call
693 register_test.
694 (tests_with_arch): Remove, move most content to
695 gdbarch_selftest::operator().
696 (_initialize_selftests_foreach_arch): Remove.
697 * selftest-arch.h (register_test_foreach_arch): Add name
698 parameter.
699 (run_tests_with_arch): New declaration.
700 * utils-selftests.c (_initialize_utils_selftests): Add names
701 when registering selftests.
702 * utils.c (_initialize_utils): Likewise.
703 * unittests/array-view-selftests.c
704 (_initialize_array_view_selftests): Likewise.
705 * unittests/environ-selftests.c (_initialize_environ_selftests):
706 Likewise.
707 * unittests/function-view-selftests.c
708 (_initialize_function_view_selftests): Likewise.
709 * unittests/offset-type-selftests.c
710 (_initialize_offset_type_selftests): Likewise.
711 * unittests/optional-selftests.c
712 (_initialize_optional_selftests): Likewise.
713 * unittests/scoped_restore-selftests.c
714 (_initialize_scoped_restore_selftests): Likewise.
715 * NEWS: Document "maintenance selftest" and "maint info
716 selftests".
717
5846367a
SM
7182017-09-16 Simon Marchi <simon.marchi@ericsson.com>
719
720 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
721 scoped_restore.
722
bd77e8ff
SM
7232017-09-16 Simon Marchi <simon.marchi@ericsson.com>
724
725 * mi/mi-main.c (mi_load_progress): Make uiout variable
726 a unique_ptr.
727
26a67918
PA
7282017-09-15 Pedro Alves <palves@redhat.com>
729
730 * compile/compile-c-types.c (convert_enum, convert_int)
731 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
732
3f8a7804
SM
7332017-09-15 Simon Marchi <simon.marchi@ericsson.com>
734
735 * dwarf2read.c (copy_string): Remove.
736 (parse_macro_definition): Replace copy_string with savestring.
737
8d200706
YQ
7382017-09-15 Yao Qi <yao.qi@linaro.org>
739
740 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
741 gdb_target_obs.
742 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
743 Likewise.
744 (i[34567]86-*-linux*): Likewise.
745
d185219d
SM
7462017-09-14 Simon Marchi <simon.marchi@ericsson.com>
747
748 * dwarf2expr.h (dwarf_stack_value): Add constructor.
749 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
750 <stack>: Change type to std::vector.
751 <stack_len, stack_allocated>: Remove.
752 <grow_stack>: Remove.
753 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
754 (dwarf_expr_context::~dwarf_expr_context): Remove.
755 (dwarf_expr_context::grow_stack): Remove.
756 (dwarf_expr_context::push): Adjust.
757 (dwarf_expr_context::pop): Adjust.
758 (dwarf_expr_context::fetch): Adjust.
759 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
760 (dwarf_expr_context::stack_empty_p): Adjust.
761 (dwarf_expr_context::execute_stack_op): Adjust.
762
eccd80d6
SM
7632017-09-14 Simon Marchi <simon.marchi@ericsson.com>
764
765 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
766 return type to bool.
767 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
768
69009882
SM
7692017-09-14 Simon Marchi <simon.marchi@ericsson.com>
770
771 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
772 Change type to bool.
773 (dwarf_stack_value) <in_stack_memory>: Likewise.
774 (dwarf_expr_context) <push_address>: Change parameter type to
775 bool.
776 <fetch_in_stack_memory>: Change return type to bool.
777 <push>: Change parameter type to bool.
778 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
779 to bool.
780 (dwarf_expr_context::push_address): Likewise.
781 (dwarf_expr_context::fetch_in_stack_memory): Change return type
782 to bool.
783 (dwarf_expr_context::execute_stack_op): Adjust.
784 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
785
1e467161
SM
7862017-09-14 Simon Marchi <simon.marchi@ericsson.com>
787
788 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
789 (struct dwarf_expr_context) <n_pieces>: Remove.
790 <pieces>: Change type to std::vector.
791 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
792 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
793 pieces.
794 (dwarf_expr_context::add_piece): Adjust.
795 * dwarf2loc.c (struct piece_closure): Initialize fields.
796 <n_pieces>: Remove.
797 <pieces>: Change type to std::vector.
798 (allocate_piece_closure): Adjust, change parameter to
799 std::vector rvalue and std::move it to piece_closure.
800 (rw_pieced_value): Adjust.
801 (check_pieced_synthetic_pointer): Adjust.
802 (indirect_synthetic_pointer): Adjust.
803 (coerce_pieced_ref): Adjust.
804 (free_pieced_value_closure): Adjust. Use delete to free
805 piece_closure.
806 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
807 to allocate_piece_closure.
808 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
809
0782db84
SM
8102017-09-12 Simon Marchi <simon.marchi@ericsson.com>
811
812 * probe.h (probe_ops_cp): Remove typedef.
813 (DEF_VEC_P (probe_ops_cp)): Remove.
814 (all_probe_ops): Change type to std::vector.
815 * probe.c (info_probes_for_ops): Adjust to vector change.
816 (probe_linespec_to_ops): Likewise.
817 (all_probe_ops): Change type to std::vector.
818 (_initialize_probe): Adjust to vector change.
819 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
820 * elfread.c (elf_get_probes): Likewise.
821 * stap-probe.c (_initialize_stap_probe): Likewise.
822
1eac6bea
SM
8232017-09-12 Simon Marchi <simon.marchi@ericsson.com>
824
825 * probe.h (struct bound_probe): Define constructors.
826 * probe.c (bound_probe_s): Remove typedef.
827 (DEF_VEC_O (bound_probe_s)): Remove VEC.
828 (collect_probes): Change return type to std::vector, remove
829 cleanup.
830 (compare_probes): Return bool, change parameter type. Change
831 semantic to "less than".
832 (gen_ui_out_table_header_info): Change parameter to std::vector
833 and update.
834 (exists_probe_with_pops): Likewise.
835 (info_probes_for_ops): Update to std::vector change.
836 (enable_probes_command): Likewise.
837 (disable_probes_command): Likewise.
838
aaa63a31
SM
8392017-09-12 Simon Marchi <simon.marchi@ericsson.com>
840
841 * probe.h (struct probe_ops) <get_probes>: Change parameter from
842 vec to std::vector.
843 * probe.c (parse_probes_in_pspace): Update.
844 (find_probes_in_objfile): Update.
845 (find_probe_by_pc): Update.
846 (collect_probes): Update.
847 (probe_any_get_probes): Update.
848 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
849 return type to reference to std::vector.
850 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
851 std::vector and update.
852 (dtrace_process_dof): Likewise.
853 (dtrace_get_probes): Likewise.
854 * elfread.c (elf_get_probes): Change return type to std::vector,
855 store an std::vector in bfd_data.
856 (probe_key_free): Update to std::vector.
857 * stap-probe.c (handle_stap_probe): Change parameter to
858 std::vector and update.
859 (stap_get_probes): Likewise.
860 * symfile-debug.c (debug_sym_get_probes): Change return type to
861 std::vector and update.
862
cb85b21b
TT
8632017-09-11 Tom Tromey <tom@tromey.com>
864
865 * breakpoint.c (program_breakpoint_here_p): Update.
866 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
867 from make_show_memory_breakpoints_cleanup. Return a
868 scoped_restore_tmpl<int>.
869 (restore_show_memory_breakpoints): Remove.
870 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
871 * mem-break.c (memory_validate_breakpoint): Update.
872 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
873 (ia64_memory_remove_breakpoint): Update.
874 (ia64_breakpoint_from_pc): Update.
875 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
876 from make_show_memory_breakpoints_cleanup.
877
8fbc99ef
TT
8782017-09-11 Tom Tromey <tom@tromey.com>
879
880 * d-namespace.c (d_lookup_symbol): Use std::string.
881 (find_symbol_in_baseclass): Likewise.
882
50feb4bd
TT
8832017-09-11 Tom Tromey <tom@tromey.com>
884
885 * ctf.c (ctf_start): Use std::string.
886
c6dc63a1
TT
8872017-09-11 Tom Tromey <tom@tromey.com>
888
889 * ada-lang.c (is_known_support_routine): Update.
890 (ada_unhandled_exception_name_addr_from_raise): Update.
891 * guile/scm-frame.c (gdbscm_frame_name): Update.
892 * python/py-frame.c (frapy_name): Update.
893 (frapy_function): Update.
894 * stack.h (find_frame_funname): Update.
895 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
896 (print_frame): Update.
897
d6b9b80f
TT
8982017-09-11 Tom Tromey <tom@tromey.com>
899
900 * findcmd.c (put_bits): Take a gdb::byte_vector.
901 (parse_find_args): Return gdb::byte_vector. "args" now const.
902 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
903 cleanups.
904 (find_command): Update.
905
a9921622
TT
9062017-09-11 Tom Tromey <tom@tromey.com>
907
908 * cli/cli-script.c (class scoped_restore_hook_in): New.
909 (clear_hook_in_cleanup): Remove.
910 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
911 scoped_restore_hook_in.
912
be0d7abb
TT
9132017-09-11 Tom Tromey <tom@tromey.com>
914
915 * cli/cli-script.c (restore_interp): Remove.
916 (read_command_lines): Use scoped_restore_interp.
917 * interps.c (scoped_restore_interp::set_temp): Rename from
918 interp_set_temp.
919 * interps.h (class scoped_restore_interp): New.
920 (interp_set_temp): Remove.
921
00f675ff
TT
9222017-09-11 Tom Tromey <tom@tromey.com>
923
924 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
925 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
926 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
927 scoped_restore.
928 (mi_cmd_break_insert_1): Update.
929 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
930 scoped_restore.
931
cb791d59
TT
9322017-09-11 Tom Tromey <tom@tromey.com>
933
934 * demangle.c (demangle_command): Update.
935 * breakpoint.c (disable_command): Update.
936 (enable_command): Update.
937 (find_location_by_number): Make "number" const. Use
938 get_number_trailer.
939 * cli/cli-utils.c (extract_arg): Return std::string.
940 * probe.c (parse_probe_linespec): Update. Change types.
941 (collect_probes): Take string arguments.
942 (parse_probe_linespec): Likewise.
943 (info_probes_for_ops): Update.
944 (enable_probes_command): Update.
945 (disable_probes_command): Update.
946 * break-catch-sig.c (catch_signal_split_args): Update.
947 * mi/mi-parse.c (mi_parse): Update.
948
2039bd9f
TT
9492017-09-11 Tom Tromey <tom@tromey.com>
950
951 * language.h (language_enum): Make argument const.
952 * language.c (language_enum): Make argument const.
953
f1735a53
TT
9542017-09-11 Tom Tromey <tom@tromey.com>
955
956 * common/common-utils.h (skip_to_space): Remove macro, redeclare
957 as function.
958 (skip_to_space): Rename from skip_to_space_const.
959 * common/common-utils.c (skip_to_space): New function.
960 (skip_to_space): Rename from skip_to_space_const.
961 * cli/cli-utils.h (get_number): Rename from get_number_const.
962 (extract_arg): Rename from extract_arg_const.
963 * cli/cli-utils.c (get_number): Rename from get_number_const.
964 (extract_arg): Rename from extract_arg_const.
965 (number_or_range_parser::get_number): Use ::get_number.
966 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
967 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
968 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
969 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
970 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
971 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
972 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
973 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
974
7d221d74
TT
9752017-09-11 Tom Tromey <tom@tromey.com>
976
977 * python/python.c (do_start_initialization): Use
978 py-event-types.def to initialize types.
979 Define all object type structures.
980 * python/python-internal.h: Don't declare event initialization
981 functions.
982 * python/py-threadevent.c (thread_event_object_type): Don't
983 define.
984 * python/py-stopevent.c (stop_event_object_type): Don't define.
985 * python/py-signalevent.c (signal_event_object_type): Don't
986 declare or define.
987 * python/py-newobjfileevent.c (new_objfile_event_object_type)
988 (clear_objfiles_event_object_type): Don't declare or define.
989 * python/py-infevents.c (inferior_call_pre_event_object_type)
990 (inferior_call_post_event_object_type)
991 (register_changed_event_object_type)
992 (memory_changed_event_object_type): Don't declare or define.
993 * python/py-inferior.c (new_thread_event_object_type)
994 (new_inferior_event_object_type)
995 (inferior_deleted_event_object_type): Don't declare or define.
996 * python/py-exitedevent.c (exited_event_object_type): Don't
997 declare or define.
998 * python/py-evts.c (gdbpy_initialize_py_events): Use
999 py-all-events.def.
1000 * python/py-events.h (thread_event_object_type): Don't declare.
1001 (events_object): Use py-all-events.def.
1002 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
1003 py-event-types.def.
1004 * python/py-event-types.def: New file.
1005 * python/py-continueevent.c (create_continue_event_object): Don't
1006 declare or define.
1007 * python/py-bpevent.c (breakpoint_event_object_type): Don't
1008 declare or define.
1009 * python/py-all-events.def: New file.
1010
35c61a1d
TT
10112017-09-11 Tom Tromey <tom@tromey.com>
1012
1013 * python/py-threadevent.c (create_thread_event_object): Return
1014 gdbpy_ref.
1015 * python/py-stopevent.h (create_stop_event_object)
1016 (create_breakpoint_event_object, create_signal_event_object):
1017 Update.
1018 * python/py-stopevent.c (create_stop_event_object): Return
1019 gdbpy_ref.
1020 (emit_stop_event): Update.
1021 * python/py-signalevent.c (create_signal_event_object): Return
1022 gdbpy_ref.
1023 * python/py-infevents.c (create_inferior_call_event_object):
1024 Update.
1025 * python/py-event.h (create_event_object)
1026 (create_thread_event_object): Update.
1027 * python/py-event.c (create_event_object): Return gdbpy_ref.
1028 * python/py-continueevent.c: Return gdbpy_ref.
1029 * python/py-bpevent.c (create_breakpoint_event_object): Return
1030 gdbpy_ref.
1031
7c96f8c1
TT
10322017-09-11 Tom Tromey <tom@tromey.com>
1033
1034 PR python/15622:
1035 * NEWS: Add entry.
1036 * python/python.c (do_start_initialization): Initialize new event
1037 types.
1038 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
1039 (gdbpy_initialize_inferior_deleted_event)
1040 (gdbpy_initialize_new_thread_event): Declare.
1041 * python/py-threadevent.c (create_thread_event_object): Add option
1042 "thread" parameter.
1043 * python/py-inferior.c (new_thread_event_object_type)
1044 (new_inferior_event_object_type)
1045 (inferior_deleted_event_object_type): Declare.
1046 (python_new_inferior, python_inferior_deleted): New functions.
1047 (add_thread_object): Emit new_thread event.
1048 (gdbpy_initialize_inferior): Attach new functions to corresponding
1049 observers.
1050 (new_thread, new_inferior, inferior_deleted): Define new event
1051 types.
1052 * python/py-evts.c (gdbpy_initialize_py_events): Add new
1053 registries.
1054 * python/py-events.h (events_object) <new_inferior,
1055 inferior_deleted, new_thread>: New fields.
1056 * python/py-event.h (create_thread_event_breakpoint): Add optional
1057 "thread" parameter.
1058
72542b8e
AB
10592017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1060
1061 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
1062 check current_ui instead.
1063 (internal_vproblem): Likewise.
1064
0d64823e
SM
10652017-09-09 Simon Marchi <simon.marchi@ericsson.com>
1066
1067 * thread.c (print_thread_info_1): Remove unnecessary calls to
1068 uiout->is_mi_like_p.
1069
eb1e02fd
TT
10702017-09-09 Tom Tromey <tom@tromey.com>
1071
1072 * namespace.h (add_using_directive): Update.
1073 * namespace.c (add_using_directive): Change type of excludes to
1074 std::vector.
1075 * dwarf2read.c (read_import_statement): Use std::vector.
1076 (read_namespace): Update.
1077 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1078
0fc21fd8
TT
10792017-09-09 Tom Tromey <tom@tromey.com>
1080
1081 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
1082
49663d05
TT
10832017-09-09 Tom Tromey <tom@tromey.com>
1084
1085 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
1086
0b868b60
TT
10872017-09-09 Tom Tromey <tom@tromey.com>
1088
1089 * stack.c (func_command): Use gdb::def_vector.
1090
c0470d48
TT
10912017-09-09 Tom Tromey <tom@tromey.com>
1092
1093 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
1094 ui_out_emit_list, ui_out_emit_tuple.
1095 (mi_cmd_var_update): Likewise.
1096
ca5909c7
TT
10972017-09-09 Tom Tromey <tom@tromey.com>
1098
1099 * mi/mi-interp.c (mi_user_selected_context_changed): Use
1100 ui_out_redirect_pop.
1101 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1102 ui_out_redirect_pop.
1103 * utils.c (do_ui_out_redirect_pop)
1104 (make_cleanup_ui_out_redirect_pop): Remove.
1105 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
1106 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
1107 * ui-out.h (ui_out_redirect_pop): New class.
1108
e6a2252a
TT
11092017-09-09 Tom Tromey <tom@tromey.com>
1110
1111 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
1112 (list_available_thread_groups, mi_cmd_list_thread_groups)
1113 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
1114 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
1115 Likewise.
1116
393702cd
TT
11172017-09-09 Tom Tromey <tom@tromey.com>
1118
1119 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1120 ui_out_emit_tuple.
1121
76f9c9cf
TT
11222017-09-09 Tom Tromey <tom@tromey.com>
1123
1124 * target.c (flash_erase_command): Use ui_out_emit_tuple.
1125 * stack.c (print_frame): Use ui_out_emit_tuple.
1126 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
1127 (info_spu_mailbox_command, info_spu_dma_command)
1128 (info_spu_proxydma_command): Likewise.
1129 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
1130 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
1131 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
1132 ui_out_emit_tuple.
1133 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
1134
dc9fe180
TT
11352017-09-09 Tom Tromey <tom@tromey.com>
1136
1137 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
1138 (class ui_out_emit_table): Update comment.
1139 * ui-out.c (do_cleanup_table_end)
1140 (make_cleanup_ui_out_table_begin_end): Remove.
1141 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
1142 (info_spu_dma_cmdlist): Likewise.
1143 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
1144 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
1145 ui_out_emit_table.
1146
f8cc3da6
TT
11472017-09-09 Tom Tromey <tom@tromey.com>
1148
1149 * thread.c (print_thread_info_1): Use ui_out_emit_table,
1150 ui_out_emit_list, gdb::optional.
1151
481695ed
JB
11522017-09-09 John Baldwin <jhb@FreeBSD.org>
1153
1154 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
1155 prototype.
1156 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
1157 prototype.
1158 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
1159 prototype.
1160 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
1161 * ada-exp.y: Remove _initialize_ada_exp prototype.
1162 * ada-lang.c: Remove _initialize_ada_language prototype.
1163 * ada-tasks.c: Remove _initialize_tasks prototype.
1164 * addrmap.c: Remove _initialize_addrmap prototype.
1165 * agent.c: Remove _initialize_agent prototype.
1166 * aix-thread.c: Remove _initialize_aix_thread prototype.
1167 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
1168 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
1169 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
1170 prototype.
1171 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
1172 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
1173 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
1174 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
1175 prototype.
1176 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
1177 prototype.
1178 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
1179 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
1180 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
1181 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
1182 prototype.
1183 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
1184 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
1185 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
1186 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
1187 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1188 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
1189 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
1190 prototype.
1191 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
1192 prototype.
1193 * annotate.c: Remove _initialize_annotate prototype.
1194 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
1195 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
1196 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
1197 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
1198 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
1199 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
1200 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
1201 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
1202 prototype.
1203 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
1204 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
1205 * auto-load.c: Remove _initialize_auto_load prototype.
1206 * auxv.c: Remove _initialize_auxv prototype.
1207 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
1208 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
1209 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
1210 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
1211 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
1212 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
1213 prototype.
1214 * break-catch-throw.c: Remove _initialize_break_catch_throw
1215 prototype.
1216 * breakpoint.c: Remove _initialize_breakpoint prototype.
1217 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
1218 * btrace.c: Remove _initialize_btrace prototype.
1219 * charset.c: Remove _initialize_charset prototype.
1220 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
1221 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
1222 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
1223 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
1224 * cli/cli-script.c: Remove _initialize_cli_script prototype.
1225 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
1226 * coffread.c: Remove _initialize_coffread prototype.
1227 * compile/compile.c: Remove _initialize_compile prototype.
1228 * complaints.c: Remove _initialize_complaints prototype.
1229 * completer.c: Remove _initialize_completer prototype.
1230 * copying.awk: Remove _initialize_copying prototype.
1231 * copying.c: Regenerate.
1232 * core-regset.c: Remove _initialize_core_regset prototype.
1233 * corefile.c: Remove _initialize_core prototype.
1234 * corelow.c: Remove _initialize_corelow prototype.
1235 * cp-abi.c: Remove _initialize_cp_abi prototype.
1236 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
1237 * cp-support.c: Remove _initialize_cp_support prototype.
1238 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
1239 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
1240 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
1241 * ctf.c: Remove _initialize_ctf prototype.
1242 * d-lang.c: Remove _initialize_d_language prototype.
1243 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
1244 prototype.
1245 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
1246 * dbxread.c: Remove _initialize_dbxread prototype.
1247 * dcache.c: Remove _initialize_dcache prototype.
1248 * demangle.c: Remove _initialize_demangler prototype.
1249 * disasm-selftests.c: Remove _initialize_disasm_selftests
1250 prototype.
1251 * disasm.c: Remove _initialize_disasm prototype.
1252 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
1253 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
1254 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
1255 prototype.
1256 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
1257 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
1258 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
1259 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
1260 * elfread.c: Remove _initialize_elfread prototype.
1261 * exec.c: Remove _initialize_exec prototype.
1262 * extension.c: Remove _initialize_extension prototype.
1263 * f-lang.c: Remove _initialize_f_language prototype.
1264 * f-valprint.c: Remove _initialize_f_valprint prototype.
1265 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
1266 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
1267 * filesystem.c: Remove _initialize_filesystem prototype.
1268 * findcmd.c: Remove _initialize_mem_search prototype.
1269 * fork-child.c: Remove _initialize_fork_child prototype.
1270 * frame-base.c: Remove _initialize_frame_base prototype.
1271 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
1272 * frame.c: Remove _initialize_frame prototype.
1273 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
1274 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
1275 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
1276 * gcore.c: Remove _initialize_gcore prototype.
1277 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
1278 * gdbarch.c: Regenerate.
1279 * gdbarch.sh: Remove _initialize_gdbarch prototype.
1280 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
1281 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
1282 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
1283 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
1284 * go-lang.c: Remove _initialize_go_language prototype.
1285 * go32-nat.c: Remove _initialize_go32_nat prototype.
1286 * guile/guile.c: Remove _initialize_guile prototype.
1287 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
1288 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
1289 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
1290 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
1291 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
1292 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
1293 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
1294 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
1295 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
1296 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
1297 prototype.
1298 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
1299 prototype.
1300 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
1301 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
1302 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
1303 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
1304 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
1305 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
1306 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
1307 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
1308 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
1309 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
1310 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
1311 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
1312 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
1313 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1314 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
1315 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
1316 prototype.
1317 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
1318 prototype.
1319 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
1320 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
1321 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
1322 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
1323 * infcall.c: Remove _initialize_infcall prototype.
1324 * infcmd.c: Remove _initialize_infcmd prototype.
1325 * inferior.c: Remove _initialize_inferiors prototype.
1326 * inflow.c: Remove _initialize_inflow prototype.
1327 * infrun.c: Remove _initialize_infrun prototype.
1328 * interps.c: Remove _initialize_interpreter prototype.
1329 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
1330 * jit.c: Remove _initialize_jit prototype.
1331 * language.c: Remove _initialize_language prototype.
1332 * linux-fork.c: Remove _initialize_linux_fork prototype.
1333 * linux-nat.c: Remove _initialize_linux_nat prototype.
1334 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
1335 * linux-thread-db.c: Remove _initialize_thread_db prototype.
1336 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
1337 * m2-lang.c: Remove _initialize_m2_language prototype.
1338 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
1339 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
1340 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
1341 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
1342 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
1343 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1344 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1345 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
1346 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
1347 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
1348 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1349 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1350 * machoread.c: Remove _initialize_machoread prototype.
1351 * macrocmd.c: Remove _initialize_macrocmd prototype.
1352 * macroscope.c: Remove _initialize_macroscope prototype.
1353 * maint.c: Remove _initialize_maint_cmds prototype.
1354 * mdebugread.c: Remove _initialize_mdebugread prototype.
1355 * memattr.c: Remove _initialize_mem prototype.
1356 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
1357 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
1358 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
1359 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
1360 * mi/mi-main.c: Remove _initialize_mi_main prototype.
1361 * microblaze-linux-tdep.c: Remove
1362 _initialize_microblaze_linux_tdep prototype.
1363 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
1364 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
1365 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
1366 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
1367 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
1368 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
1369 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
1370 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
1371 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
1372 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
1373 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
1374 prototype.
1375 * mipsread.c: Remove _initialize_mipsread prototype.
1376 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
1377 prototype.
1378 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
1379 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
1380 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
1381 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
1382 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
1383 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
1384 prototype.
1385 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
1386 * nto-procfs.c: Remove _initialize_procfs prototype.
1387 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
1388 * objc-lang.c: Remove _initialize_objc_language prototype.
1389 * objfiles.c: Remove _initialize_objfiles prototype.
1390 * observer.c: Remove observer_test_first_notification_function,
1391 observer_test_second_notification_function,
1392 observer_test_third_notification_function, and
1393 _initialize_observer prototypes.
1394 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
1395 * osabi.c: Remove _initialize_gdb_osabi prototype.
1396 * osdata.c: Remove _initialize_osdata prototype.
1397 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
1398 * parse.c: Remove _initialize_parse prototype.
1399 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
1400 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
1401 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
1402 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
1403 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
1404 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
1405 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
1406 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
1407 * printcmd.c: Remove _initialize_printcmd prototype.
1408 * probe.c: Remove _initialize_probe prototype.
1409 * proc-api.c: Remove _initialize_proc_api prototype.
1410 * proc-events.c: Remove _initialize_proc_events prototype.
1411 * proc-service.c: Remove _initialize_proc_service prototype.
1412 * procfs.c: Remove _initialize_procfs prototype.
1413 * psymtab.c: Remove _initialize_psymtab prototype.
1414 * python/python.c: Remove _initialize_python prototype.
1415 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
1416 * record-btrace.c: Remove _initialize_record_btrace prototype.
1417 * record-full.c: Remove _initialize_record_full prototype.
1418 * record.c: Remove _initialize_record prototype.
1419 * regcache.c: Remove _initialize_regcache prototype.
1420 * reggroups.c: Remove _initialize_reggroup prototype.
1421 * remote-notif.c: Remove _initialize_notif prototype.
1422 * remote-sim.c: Remove _initialize_remote_sim prototype.
1423 * remote.c: Remove _initialize_remote prototype.
1424 * reverse.c: Remove _initialize_reverse prototype.
1425 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
1426 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
1427 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
1428 prototype.
1429 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
1430 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
1431 * rust-exp.y: Remove _initialize_rust_exp prototype.
1432 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
1433 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
1434 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
1435 * score-tdep.c: Remove _initialize_score_tdep prototype.
1436 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
1437 prototype.
1438 * ser-go32.c: Remove _initialize_ser_dos prototype.
1439 * ser-mingw.c: Remove _initialize_ser_windows prototype.
1440 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
1441 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
1442 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
1443 * serial.c: Remove _initialize_serial prototype.
1444 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
1445 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
1446 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
1447 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
1448 * skip.c: Remove _initialize_step_skip prototype.
1449 * sol-thread.c: Remove _initialize_sol_thread prototype.
1450 * solib-aix.c: Remove _initialize_solib_aix prototype.
1451 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
1452 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
1453 * solib-frv.c: Remove _initialize_frv_solib prototype.
1454 * solib-spu.c: Remove _initialize_spu_solib prototype.
1455 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
1456 * solib-target.c: Remove _initialize_solib_target prototype.
1457 * solib.c: Remove _initialize_solib prototype.
1458 * source.c: Remove _initialize_source prototype.
1459 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
1460 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
1461 prototype.
1462 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
1463 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
1464 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
1465 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
1466 prototype.
1467 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
1468 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
1469 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
1470 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
1471 prototype.
1472 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
1473 prototype.
1474 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
1475 prototype.
1476 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
1477 prototype.
1478 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
1479 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
1480 prototype.
1481 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
1482 prototype.
1483 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
1484 prototype.
1485 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
1486 prototype.
1487 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
1488 prototype.
1489 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
1490 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
1491 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
1492 * stabsread.c: Remove _initialize_stabsread prototype.
1493 * stack.c: Remove _initialize_stack prototype.
1494 * stap-probe.c: Remove _initialize_stap_probe prototype.
1495 * std-regs.c: Remove _initialize_frame_reg prototype.
1496 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
1497 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
1498 * symfile.c: Remove _initialize_symfile prototype.
1499 * symmisc.c: Remove _initialize_symmisc prototype.
1500 * symtab.c: Remove _initialize_symtab prototype.
1501 * target-dcache.c: Remove _initialize_target_dcache prototype.
1502 * target-descriptions.c: Remove _initialize_target_descriptions
1503 prototype.
1504 * thread.c: Remove _initialize_thread prototype.
1505 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
1506 prototype.
1507 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
1508 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
1509 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
1510 prototype.
1511 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
1512 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
1513 * tracefile.c: Remove _initialize_tracefile prototype.
1514 * tracepoint.c: Remove _initialize_tracepoint prototype.
1515 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
1516 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
1517 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
1518 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
1519 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
1520 * tui/tui-win.c: Remove _initialize_tui_win prototype.
1521 * tui/tui.c: Remove _initialize_tui prototype.
1522 * typeprint.c: Remove _initialize_typeprint prototype.
1523 * user-regs.c: Remove _initialize_user_regs prototype.
1524 * utils.c: Remove _initialize_utils prototype.
1525 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
1526 * valarith.c: Remove _initialize_valarith prototype.
1527 * valops.c: Remove _initialize_valops prototype.
1528 * valprint.c: Remove _initialize_valprint prototype.
1529 * value.c: Remove _initialize_values prototype.
1530 * varobj.c: Remove _initialize_varobj prototype.
1531 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
1532 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
1533 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
1534 * windows-nat.c: Remove _initialize_windows_nat,
1535 _initialize_check_for_gdb_ini, and _initialize_loadable
1536 prototypes.
1537 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
1538 * xcoffread.c: Remove _initialize_xcoffread prototype.
1539 * xml-support.c: Remove _initialize_xml_support prototype.
1540 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
1541 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
1542 prototype.
1543 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
1544 prototype.
1545 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
1546
a611b5cb
KS
15472017-09-08 Keith Seitz <keiths@redhat.com>
1548
1549 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
1550 field.
1551
469412dd
CW
15522017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
1553
1554 * f-valprint.c (f_val_print): Remove check for one byte
1555 sized integers. Remove printing of character type.
1556
a5ad232b
FP
15572017-09-08 Frank Penczek <frank.penczek@intel.com>
1558 Christoph Weinmann <christoph.t.weinmann@intel.com>
1559 Bernhard Heckel <bernhard.heckel@intel.com>
1560
1561 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
1562 to maintain proper indentation when printing pointers/refs.
1563
e5014227
JB
15642017-09-07 Joel Brobecker <brobecker@adacore.com>
1565
1566 GDB 8.0.1 released.
1567
63c99141
JB
15682017-09-07 Joel Brobecker <brobecker@adacore.com>
1569
1570 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
1571
69c1e056
TT
15722017-09-05 Tom Tromey <tom@tromey.com>
1573
1574 * parse.c (funcall_chain): Now a std::vector.
1575 (start_arglist, end_arglist): Simplify.
1576 (free_funcalls): Remove.
1577 (parse_exp_in_context_1): Remove cleanup.
1578
fef704bf
TT
15792017-09-05 Tom Tromey <tom@tromey.com>
1580
1581 * go-exp.y (go_parse): Don't create a cleanup.
1582
5613c585
TT
15832017-09-05 Tom Tromey <tom@tromey.com>
1584
1585 * d-exp.y (PrimaryExpression): Use std::string.
1586 (d_parse): Don't create a cleanup.
1587
eae49211
TT
15882017-09-05 Tom Tromey <tom@tromey.com>
1589
1590 * utils.c (do_clear_parser_state): Remove.
1591 (make_cleanup_clear_parser_state): Remove.
1592 * p-exp.y (pascal_parse): Use scoped_restore.
1593 * m2-exp.y (m2_parse): Use scoped_restore.
1594 * f-exp.y (f_parse): Use scoped_restore.
1595 * d-exp.y (d_parse): Use scoped_restore.
1596 * c-exp.y (c_parse): Use scoped_restore.
1597 * ada-exp.y (ada_parse): Use scoped_restore.
1598 * utils.h (make_cleanup_clear_parser_state): Remove.
1599
73b9be8b
KS
16002017-09-06 Keith Seitz <keiths@redhat.com>
1601
1602 * dwarf2read.c (dw2_linkage_name_attr): New function.
1603 (dw2_linkage_name): New function.
1604 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
1605 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
1606 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
1607
a102602b
KR
16082017-09-06 Kamil Rytarowski <n54@gmx.com>
1609
1610 * config/djgpp/djconfig.sh: Correct shell portability issue.
1611
28ad437d
KR
16122017-09-06 Kamil Rytarowski <n54@gmx.com>
1613
1614 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
1615
351787dd
JB
16162017-09-06 John Baldwin <jhb@FreeBSD.org>
1617
1618 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
1619 * NEWS: Mention new FreeBSD/mips native configuration.
1620 * configure.host: Add aarch64*-*-freebsd*.
1621 * configure.nat: Likewise.
1622 * aarch64-fbsd-nat.c: New file.
1623
c0f84956
JB
16242017-09-06 John Baldwin <jhb@FreeBSD.org>
1625
1626 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
1627 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
1628 * NEWS: Mention new FreeBSD/aarch64 target.
1629 * configure.tgt: Add aarch64*-*-freebsd*.
1630 * aarch64-fbsd-tdep.c: New file.
1631 * aarch64-fbsd-tdep.h: New file.
1632
7610297a
KR
16332017-09-06 Kamil Rytarowski <n54@gmx.com>
1634
1635 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
1636
fbd1b771
JK
16372017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1638
1639 * parse.c (find_minsym_type_and_address): Don't relocate addresses
1640 of TLS symbols.
1641
5ca79eae
PW
16422017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1643
1644 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
1645 call.
1646
bf93d7ba
SM
16472017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1648
1649 * infrun.c (follow_exec): Call add_thread after
1650 target_find_description.
1651
1bb7c059
SM
16522017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1653
1654 * infrun.c (handle_inferior_event_1): When exec'ing, read
1655 stop_pc after follow_exec.
1656
fc809827
SM
16572017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1658
1659 * remote.c (process_g_packet): Update error message.
1660
d2fcdd85
YQ
16612017-09-05 Yao Qi <yao.qi@linaro.org>
1662
1663 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
1664 targets.
1665
e69570ee
PA
16662017-09-05 Pedro Alves <palves@redhat.com>
1667
1668 * eval.c (eval_call, evaluate_funcall): New functions, factored
1669 out from ...
1670 (evaluate_subexp_standard): ... this.
1671
22916b07
YQ
16722017-09-05 Yao Qi <yao.qi@linaro.org>
1673
1674 * amd64-tdep.c (amd64_target_description): Create target
1675 descriptions.
1676 (_initialize_amd64_tdep): Don't call functions
1677 initialize_tdesc_amd64_*. Add self tests.
1678 * arch/amd64.c (amd64_create_target_description): Add parameter
1679 is_linux. Call set_tdesc_osabi if is_linux is true.
1680 * arch/amd64.h (amd64_create_target_description): Update the
1681 declaration.
1682 * arch/i386.c (i386_create_target_description): Add parameter
1683 is_linux. Call set_tdesc_osabi if is_linux is true.
1684 * arch/i386.h (i386_create_target_description): Update
1685 declaration.
1686 * configure.tgt: Add i386.o to gdb_target_obs.
1687 * features/Makefile (XMLTOC): Remove i386/*.xml.
1688 * features/i386/amd64-avx-avx512.c: Remove.
1689 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
1690 * features/i386/amd64-avx-mpx.c: Remove.
1691 * features/i386/amd64-avx.c: Remove.
1692 * features/i386/amd64-mpx.c: Remove.
1693 * features/i386/amd64.c: Remove.
1694 * features/i386/i386-avx-avx512.c: Remove.
1695 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
1696 * features/i386/i386-avx-mpx.c: Remove.
1697 * features/i386/i386-avx.c: Remove.
1698 * features/i386/i386-mmx.c: Remove.
1699 * features/i386/i386-mpx.c: Remove.
1700 * features/i386/i386.c: Remove.
1701 * i386-tdep.c: Don't include features/i386/i386*.c., include
1702 target-descriptions.h and arch/i386.h.
1703 (i386_target_description): Create target descriptions.
1704 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
1705 functions. Do self tests.
1706
0854b7b1
YQ
17072017-09-05 Yao Qi <yao.qi@linaro.org>
1708
1709 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
1710 * features/i386/amd64-avx-avx512-linux.c: Removed.
1711 * features/i386/amd64-avx-linux.c: Removed.
1712 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
1713 * features/i386/amd64-avx-mpx-linux.c: Removed.
1714 * features/i386/amd64-linux.c: Removed.
1715 * features/i386/amd64-mpx-linux.c: Removed.
1716 * features/i386/x32-avx-avx512-linux.c: Removed.
1717 * features/i386/x32-avx-linux.c: Removed.
1718 * features/i386/x32-linux.c: Removed.
1719
b4570e4b
YQ
17202017-09-05 Yao Qi <yao.qi@linaro.org>
1721
1722 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
1723 features/i386/*.c.
1724 (amd64_linux_read_description): Call
1725 amd64_create_target_description.
1726 * arch/amd64.c: New file.
1727 * arch/amd64.h: New file.
1728 * configure.tgt (x86_64-*-linux*): Append amd64.o.
1729 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
1730
6c73f67f
YQ
17312017-09-05 Yao Qi <yao.qi@linaro.org>
1732
1733 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
1734 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
1735 (amd64_linux_read_description): Create target descriptions.
1736 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
1737 functions. Add unit tests.
1738 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
1739 x32-core.xml.
1740 * features/i386/64bit-avx.c: Generated.
1741 * features/i386/64bit-avx512.c: Generated.
1742 * features/i386/64bit-core.c: Generated.
1743 * features/i386/64bit-linux.c: Generated.
1744 * features/i386/64bit-mpx.c: Generated.
1745 * features/i386/64bit-pkeys.c: Generated.
1746 * features/i386/64bit-segments.c: Generated.
1747 * features/i386/64bit-sse.c: Generated.
1748 * features/i386/x32-core.c: Generated.
1749 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
1750 c files for amd64-linux and x32-linux.
1751
9d3d478b
YQ
17522017-09-05 Yao Qi <yao.qi@linaro.org>
1753
1754 * amd64-linux-tdep.c (amd64_linux_read_description): New
1755 function.
1756 (amd64_linux_core_read_description): Call
1757 amd64_linux_read_description.
1758 (amd64_linux_init_abi): Likewise.
1759 (amd64_x32_linux_init_abi): Likewise.
1760 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
1761 * x86-linux-nat.c (x86_linux_read_description): Call
1762 amd64_linux_read_description.
1763
b9f1d50f
YQ
17642017-09-05 Yao Qi <yao.qi@linaro.org>
1765
1766 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
1767 comments.
1768
188c9e6d
YQ
17692017-09-05 Yao Qi <yao.qi@linaro.org>
1770
1771 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
1772 * features/i386/i386-avx-avx512-linux.c: Remove.
1773 * features/i386/i386-avx-linux.c: Remove.
1774 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
1775 * features/i386/i386-avx-mpx-linux.c: Remove.
1776 * features/i386/i386-linux.c: Remove.
1777 * features/i386/i386-mmx-linux.c: Remove.
1778 * features/i386/i386-mpx-linux.c: Remove.
1779
5f035c07
YQ
17802017-09-05 Yao Qi <yao.qi@linaro.org>
1781
1782 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
1783 (SFILES): Add arch/i386.c.
1784 (HFILES_NO_SRCDIR): Add arch/i386.h.
1785 * arch/i386.c: New file.
1786 * arch/i386.h: New file.
1787 * arch/tdesc.h (allocate_target_description): Declare.
1788 (set_tdesc_architecture): Declare.
1789 (set_tdesc_osabi): Declare.
1790 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
1791 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
1792 include arch/i386.h.
1793 (i386_linux_read_description): Remove code and call
1794 i386_create_target_description.
1795 (set_tdesc_architecture): New function.
1796 (set_tdesc_osabi): New function.
1797 * target-descriptions.h (allocate_target_description): Remove.
1798
0abe8a89
YQ
17992017-09-05 Yao Qi <yao.qi@linaro.org>
1800
1801 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
1802 * target-descriptions.c (tdesc_create_feature): Likewise, and
1803 adjust code.
1804 * features/i386/32bit-avx.c: Re-generated.
1805 * features/i386/32bit-avx512.c: Re-generated.
1806 * features/i386/32bit-core.c: Re-generated.
1807 * features/i386/32bit-linux.c: Re-generated.
1808 * features/i386/32bit-mpx.c: Re-generated.
1809 * features/i386/32bit-pkeys.c: Re-generated.
1810 * features/i386/32bit-sse.c: Re-generated.
1811
0a188386
YQ
18122017-09-05 Yao Qi <yao.qi@linaro.org>
1813
1814 * regformats/regdef.h (struct reg): Override operator == and !=.
1815
f49ff000
YQ
18162017-09-05 Yao Qi <yao.qi@linaro.org>
1817
1818 * arch/tdesc.h: New file.
1819 * regformats/regdat.sh: Generate code using tdesc_create_reg.
1820 * target-descriptions.c: Update comments.
1821 * target-descriptions.h: Include "arch/tdesc.h". Remove the
1822 declarations.
1823 * features/i386/32bit-avx.c: Re-generated.
1824 * features/i386/32bit-avx512.c: Re-generated.
1825 * features/i386/32bit-core.c: Re-generated.
1826 * features/i386/32bit-linux.c: Re-generated.
1827 * features/i386/32bit-mpx.c: Re-generated.
1828 * features/i386/32bit-pkeys.c: Re-generated.
1829 * features/i386/32bit-sse.c: Re-generated.
1830
f7000548
YQ
18312017-09-05 Yao Qi <yao.qi@linaro.org>
1832
1833 * regformats/regdat.sh: Update generated code.
1834
c9a5e2a5
YQ
18352017-09-05 Yao Qi <yao.qi@linaro.org>
1836
1837 * regformats/regdat.sh: Adjust code order.
1838
d6b687ac
SM
18392017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1840
1841 * expprint.c (dump_subexp_body_standard): Use constant format
1842 string in fprintf_filtered call.
1843
a379bfd0
JB
18442017-09-04 John Baldwin <jhb@FreeBSD.org>
1845
1846 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
1847 NetBSD/i386.
1848 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
1849
f7efc967
JB
18502017-09-04 John Baldwin <jhb@FreeBSD.org>
1851
1852 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
1853
c49fbc6c
JB
18542017-09-04 John Baldwin <jhb@FreeBSD.org>
1855
1856 * bsd-kvm.o: Define _KMEMUSER.
1857 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
1858 * configure: Regenerate.
1859
26562e73
JB
18602017-09-04 John Baldwin <jhb@FreeBSD.org>
1861
1862 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
1863 * i386-fbsd-nat.c: Likewise.
1864
31cf1487
JB
18652017-09-04 John Baldwin <jhb@FreeBSD.org>
1866
1867 * unittests/array-view-selftests.c: Add include of <array>.
1868
5b9f8a7c
JB
18692017-09-04 John Baldwin <jhb@FreeBSD.org>
1870
1871 * spu-tdep.c (flush_ea_cache): Add missing argument to
1872 call_function_by_hand.
1873
d69cf9b2
PA
18742017-09-04 Pedro Alves <palves@redhat.com>
1875
1876 * NEWS (Safer support for debugging with no debug info): New.
1877
3693fdb3
PA
18782017-09-04 Pedro Alves <palves@redhat.com>
1879
1880 * c-exp.y (function_method, function_method_void): Add current
1881 instance flags to TYPE_INSTANCE.
1882 * dwarf2read.c (check_modifier): New.
1883 (compute_delayed_physnames): Assert that only C++ adds delayed
1884 physnames. Mark fn_fields as const/volatile depending on
1885 physname.
1886 * eval.c (make_params): New type_instance_flags parameter. Use
1887 it as the new type's instance flags.
1888 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
1889 flags element and pass it to make_params.
1890 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
1891 instance flags element.
1892 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
1893 * gdbtypes.h: Include "enum-flags.h".
1894 (type_instance_flags): New enum-flags type.
1895 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
1896 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
1897 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
1898 (follow_type_instance_flags): New function.
1899 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
1900 * parser-defs.h (follow_type_instance_flags): Declare.
1901 * valops.c (value_struct_elt_for_reference): const/volatile must
1902 match too.
1903
e68cb8e0
PA
19042017-09-04 Pedro Alves <palves@redhat.com>
1905
1906 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
1907 function/method scopes; lookup the nested name as a function local
1908 static variable.
1909
858be34c
PA
19102017-09-04 Pedro Alves <palves@redhat.com>
1911
1912 (%type <voidval>): Add function_method.
1913 * c-exp.y (exp): New production for calls with no arguments.
1914 (function_method, function_method_void_or_typelist): New
1915 productions.
1916 (exp): New production for "method()::static_var".
1917 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
1918 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1919 Handle OP_FUNC_STATIC_VAR.
1920 * parse.c (operator_length_standard):
1921 Handle OP_FUNC_STATIC_VAR.
1922
dd5901a6
PA
19232017-09-04 Pedro Alves <palves@redhat.com>
1924
1925 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
1926 handling.
1927 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1928 Ditto.
1929 * parse.c (operator_length_standard, operator_check_standard):
1930 Ditto.
1931 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
1932
46a4882b
PA
19332017-09-04 Pedro Alves <palves@redhat.com>
1934
1935 * ax-gdb.c: Include "typeprint.h".
1936 (gen_expr_for_cast): New function.
1937 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
1938 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
1939 type is unknown.
1940 * dwarf2read.c (new_symbol_full): Fallback to int instead of
1941 nodebug_data_symbol.
1942 * eval.c: Include "typeprint.h".
1943 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
1944 Error out if symbol has unknown type.
1945 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
1946 evaluate_subexp_for_cast.
1947 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
1948 OP_VAR_MSYM_VALUE.
1949 (evaluate_subexp_for_cast): New function.
1950 * gdbtypes.c (init_nodebug_var_type): New function.
1951 (objfile_type): Use it to initialize types of variables with no
1952 debug info.
1953 * typeprint.c (error_unknown_type): New.
1954 * typeprint.h (error_unknown_type): New declaration.
1955 * compile/compile-c-types.c (convert_type_basic): Handle
1956 TYPE_CODE_ERROR; warn and fallback to int for variables with
1957 unknown type.
1958
fe13dfec
PA
19592017-09-04 Pedro Alves <palves@redhat.com>
1960
1961 * eval.c (evaluate_var_value): New function, factored out from ...
1962 (evaluate_subexp_standard): ... here.
1963
d008ee21
PA
19642017-09-04 Pedro Alves <palves@redhat.com>
1965
1966 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
1967 Remove useless assignments to 'op'.
1968
827d0c51
PA
19692017-09-04 Pedro Alves <palves@redhat.com>
1970
1971 * eval.c (eval_skip_value): New function.
1972 (evaluate_subexp_standard): Use it.
1973
2c5a2be1
PA
19742017-09-04 Pedro Alves <palves@redhat.com>
1975
1976 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
1977 function name from symbol/minsym and pass it to
1978 error_call_unknown_return_type.
1979
74ea4be4
PA
19802017-09-04 Pedro Alves <palves@redhat.com>
1981
1982 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
1983 * ax-gdb.c (gen_msym_var_ref): New function.
1984 (gen_expr): Handle OP_VAR_MSYM_VALUE.
1985 * eval.c (evaluate_var_msym_value): New function.
1986 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
1987 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
1988 to call_function_by_hand.
1989 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1990 Handle OP_VAR_MSYM_VALUE.
1991 (union exp_element) <msymbol>: New field.
1992 * minsyms.h (struct type): Forward declare.
1993 (find_minsym_type_and_address): Declare.
1994 * parse.c (write_exp_elt_msym): New function.
1995 (write_exp_msymbol): Delete, refactored as ...
1996 (find_minsym_type_and_address): ... this new function.
1997 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
1998 (operator_length_standard, operator_check_standard): Handle
1999 OP_VAR_MSYM_VALUE.
2000 * std-operator.def (OP_VAR_MSYM_VALUE): New.
2001
7022349d
PA
20022017-09-04 Pedro Alves <palves@redhat.com>
2003
2004 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
2005 TYPE_GNU_IFUNC specially here. Throw error if return type is
2006 unknown.
2007 * ada-typeprint.c (print_func_type): Handle functions with unknown
2008 return type.
2009 * c-typeprint.c (c_type_print_base): Handle functions and methods
2010 with unknown return type.
2011 * compile/compile-c-symbols.c (convert_symbol_bmsym)
2012 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
2013 * compile/compile-c-types.c: Include "objfiles.h".
2014 (convert_func): For functions with unknown return type, warn and
2015 default to int.
2016 * compile/compile-object-run.c (compile_object_run): Adjust call
2017 to call_function_by_hand_dummy.
2018 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
2019 call_function_by_hand.
2020 * eval.c (evaluate_subexp_standard): Adjust calls to
2021 call_function_by_hand. Handle functions and methods with unknown
2022 return type. Pass expect_type to call_function_by_hand.
2023 * f-typeprint.c (f_type_print_base): Handle functions with unknown
2024 return type.
2025 * gcore.c (call_target_sbrk): Adjust call to
2026 call_function_by_hand.
2027 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
2028 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
2029 an integer address type instead of nodebug.
2030 * guile/scm-value.c (gdbscm_value_call): Adjust call to
2031 call_function_by_hand.
2032 * infcall.c (error_call_unknown_return_type): New function.
2033 (call_function_by_hand): New "default_return_type" parameter.
2034 Pass it down.
2035 (call_function_by_hand_dummy): New "default_return_type"
2036 parameter. Use it instead of defaulting to int. If there's no
2037 default and the return type is unknown, throw an error. If
2038 there's a default return type, and the called function has no
2039 debug info, then assume the function is prototyped.
2040 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
2041 New "default_return_type" parameter.
2042 (error_call_unknown_return_type): New declaration.
2043 * linux-fork.c (call_lseek): Cast return type of lseek.
2044 (inferior_call_waitpid, checkpoint_command): Adjust calls to
2045 call_function_by_hand.
2046 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
2047 calls to call_function_by_hand.
2048 * m2-typeprint.c (m2_procedure): Handle functions with unknown
2049 return type.
2050 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2051 (value_nsstring, print_object_command): Adjust calls to
2052 call_function_by_hand.
2053 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
2054 functions with unknown return type.
2055 (pascal_type_print_func_varspec_suffix): New function.
2056 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
2057 TYPE_CODE_METHOD>: Use it.
2058 * python/py-value.c (valpy_call): Adjust call to
2059 call_function_by_hand.
2060 * rust-lang.c (rust_evaluate_funcall): Adjust call to
2061 call_function_by_hand.
2062 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
2063 call_function_by_hand.
2064 * valops.c (value_allocate_space_in_inferior): Adjust call to
2065 call_function_by_hand.
2066 * typeprint.c (type_print_unknown_return_type): New function.
2067 * typeprint.h (type_print_unknown_return_type): New declaration.
2068
54990598
PA
20692017-09-04 Pedro Alves <palves@redhat.com>
2070
2071 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
2072 types with more than one parameter as prototyped.
2073
9a24775b
PA
20742017-09-04 Pedro Alves <palves@redhat.com>
2075
2076 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
2077 (disassemble_command): Use gdb_disassembly_flags instead of bare
2078 int.
2079 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
2080 (dump_insns, do_mixed_source_and_assembly_deprecated)
2081 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
2082 Use gdb_disassembly_flags instead of bare int.
2083 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
2084 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
2085 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
2086 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
2087 (enum gdb_disassembly_flag): ... values of this new enumeration.
2088 (gdb_disassembly_flags): Define.
2089 (gdb_disassembly)
2090 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
2091 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
2092 gdb_disassembly_flags instead of bare int.
2093 * record-btrace.c (btrace_insn_history)
2094 (record_btrace_insn_history, record_btrace_insn_history_range)
2095 (record_btrace_insn_history_from): Use gdb_disassembly_flags
2096 instead of bare int.
2097 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
2098 Use gdb_disassembly_flags instead of bare int.
2099 * target-debug.h (target_debug_print_gdb_disassembly_flags):
2100 Define.
2101 * target-delegates.c: Regenerate.
2102 * target.c (target_insn_history, target_insn_history_from)
2103 (target_insn_history_range): Use gdb_disassembly_flags instead of
2104 bare int.
2105 * target.h: Include "disasm.h".
2106 (struct target_ops) <to_insn_history, to_insn_history_from,
2107 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
2108 int.
2109 (target_insn_history, target_insn_history_from)
2110 (target_insn_history_range): Use gdb_disassembly_flags instead of
2111 bare int.
2112
80a65e9b
SM
21132017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2114
2115 * cli/cli-script.c (build_command_line): For if/while commands,
2116 check whether args is empty.
2117
6b66338c
SM
21182017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2119
2120 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
2121 (enum command_control_type): Likewise.
2122 (struct command_line): Likewise.
2123 (free_command_lines): Likewise.
2124 (struct command_lines_deleter): Likewise.
2125 (command_line_up): Likewise.
2126 (read_command_lines): Likewise.
2127 (read_command_lines_1): Likewise.
2128 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
2129 (enum command_control_type): Likewise.
2130 (struct command_line): Likewise.
2131 (free_command_lines): Likewise.
2132 (struct command_lines_deleter): Likewise.
2133 (command_line_up): Likewise.
2134 (read_command_lines): Likewise.
2135 (read_command_lines_1): Likewise.
2136 * breakpoint.h: Include cli/cli-script.h.
2137 * extension-priv.h: Likewise.
2138 * gdbcmd.h: Likewise.
2139
51abb421
PA
21402017-09-04 Pedro Alves <palves@redhat.com>
2141
2142 * ada-lang.c (is_known_support_routine): Move sal declaration to
2143 where it is initialized.
2144 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
2145 (parse_breakpoint_sals, decode_static_tracepoint_spec)
2146 (clear_command, update_static_tracepoint): Remove init_sal
2147 references. Move declarations closer to initializations.
2148 * cli/cli-cmds.c (list_command): Move sal declarations closer to
2149 initializations.
2150 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
2151 references. Move sal declarations closer to initializations.
2152 * frame.c (find_frame_sal): Return a symtab_and_line via function
2153 return instead of output parameter. Remove init_sal references.
2154 * frame.h (find_frame_sal): Return a symtab_and_line via function
2155 return instead of output parameter.
2156 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
2157 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
2158 instead of memset.
2159 (gdbscm_find_pc_line): Remove init_sal reference.
2160 * infcall.c (call_function_by_hand_dummy): Remove init_sal
2161 references. Move declarations closer to initializations.
2162 * infcmd.c (set_step_frame): Update. Move declarations closer to
2163 initializations.
2164 (finish_backward): Remove init_sal references. Move declarations
2165 closer to initializations.
2166 * infrun.c (process_event_stop_test, handle_step_into_function)
2167 (insert_hp_step_resume_breakpoint_at_frame)
2168 (insert_step_resume_breakpoint_at_caller): Likewise.
2169 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
2170 (symbol_to_sal): Likewise.
2171 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
2172 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
2173 to its initialization.
2174 * reverse.c (save_bookmark_command): Use new/delete. Remove
2175 init_sal references. Move declarations closer to initializations.
2176 * source.c (get_current_source_symtab_and_line): Remove brace
2177 initialization.
2178 (set_current_source_symtab_and_line): Now takes the sal by const
2179 reference. Remove brace initialization.
2180 (line_info): Remove init_sal reference.
2181 * source.h (set_current_source_symtab_and_line): Now takes a
2182 symtab_and_line via const reference.
2183 * stack.c (set_current_sal_from_frame): Adjust.
2184 (print_frame_info): Adjust.
2185 (get_last_displayed_sal): Return the sal via function return
2186 instead of via output parameter. Simplify.
2187 (frame_info): Adjust.
2188 * stack.h (get_last_displayed_sal): Return the sal via function
2189 return instead of via output parameter.
2190 * symtab.c (init_sal): Delete.
2191 (find_pc_sect_line): Remove init_sal references. Move
2192 declarations closer to initializations.
2193 (find_function_start_sal): Remove init_sal references. Move
2194 declarations closer to initializations.
2195 * symtab.h (struct symtab_and_line): In-class initialize all
2196 fields.
2197 * tracepoint.c (set_traceframe_context)
2198 (print_one_static_tracepoint_marker): Remove init_sal references.
2199 Move declarations closer to initializations.
2200 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
2201 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
2202 declarations closer to initializations.
2203 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
2204 init_sal references. Adjust.
2205
6c5b2ebe
PA
22062017-09-04 Pedro Alves <palves@redhat.com>
2207
2208 * ax-gdb.c (agent_command_1): Use range-for.
2209 * break-catch-throw.c (re_set_exception_catchpoint): Update.
2210 * breakpoint.c: Include "common/array-view.h".
2211 (init_breakpoint_sal, create_breakpoint_sal): Change sals
2212 parameter from struct symtabs_and_lines to
2213 array_view<symtab_and_line>. Adjust. Use range-for. Update.
2214 (breakpoint_sals_to_pc): Change sals parameter from struct
2215 symtabs_and_lines to std::vector reference.
2216 (check_fast_tracepoint_sals): Change sals parameter from struct
2217 symtabs_and_lines to std::array_view. Use range-for.
2218 (decode_static_tracepoint_spec): Return a std::vector instead of
2219 symtabs_and_lines. Update.
2220 (create_breakpoint): Update.
2221 (break_range_command, until_break_command, clear_command): Update.
2222 (base_breakpoint_decode_location, bkpt_decode_location)
2223 (bkpt_probe_create_sals_from_location)
2224 (bkpt_probe_decode_location, tracepoint_decode_location)
2225 (tracepoint_probe_decode_location)
2226 (strace_marker_create_sals_from_location): Return a std::vector
2227 instead of symtabs_and_lines.
2228 (strace_marker_create_breakpoints_sal): Update.
2229 (strace_marker_decode_location): Return a std::vector instead of
2230 symtabs_and_lines. Update.
2231 (update_breakpoint_locations): Change struct symtabs_and_lines
2232 parameters to gdb::array_view. Adjust.
2233 (location_to_sals): Return a std::vector instead of
2234 symtabs_and_lines. Update.
2235 (breakpoint_re_set_default): Use std::vector instead of struct
2236 symtabs_and_lines.
2237 (decode_location_default): Return a std::vector instead of
2238 symtabs_and_lines. Update.
2239 * breakpoint.h: Include "common/array-view.h".
2240 (struct breakpoint_ops) <decode_location>: Now returns a
2241 std::vector instead of returning a symtabs_and_lines via output
2242 parameter.
2243 (update_breakpoint_locations): Change sals parameters to use
2244 gdb::array_view.
2245 * cli/cli-cmds.c (edit_command, list_command): Update to use
2246 std::vector and gdb::array_view.
2247 (ambiguous_line_spec): Adjust to use gdb::array_view and
2248 range-for.
2249 (compare_symtabs): Rename to ...
2250 (cmp_symtabs): ... this. Change parameters to symtab_and_line
2251 const reference and adjust.
2252 (filter_sals): Rewrite using std::vector and standard algorithms.
2253 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
2254 (jump_command): Update to use std::vector.
2255 * linespec.c (struct linespec_state) <canonical_names>: Update
2256 comment.
2257 (add_sal_to_sals_basic): Delete.
2258 (add_sal_to_sals, filter_results, convert_results_to_lsals)
2259 (decode_line_2, create_sals_line_offset)
2260 (convert_address_location_to_sals, convert_linespec_to_sals)
2261 (convert_explicit_location_to_sals, parse_linespec)
2262 (event_location_to_sals, decode_line_full, decode_line_1)
2263 (decode_line_with_current_source)
2264 (decode_line_with_last_displayed, decode_objc)
2265 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
2266 (linespec_result::~linespec_result): Adjust to use std::vector
2267 instead of symtabs_and_lines.
2268 * linespec.h (linespec_sals::sals): Now a std::vector.
2269 (struct linespec_result): Use std::vector, bool, and in-class
2270 initialization.
2271 (decode_line_1, decode_line_with_current_source)
2272 (decode_line_with_last_displayed): Return std::vector.
2273 * macrocmd.c (info_macros_command): Use std::vector.
2274 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
2275 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
2276 std::vector.
2277 * probe.h (parse_probes): Return a std::vector.
2278 * python/python.c (gdbpy_decode_line): Use std::vector and
2279 gdb::array_view.
2280 * source.c (select_source_symtab, line_info): Use std::vector.
2281 * stack.c (func_command): Use std::vector.
2282 * symtab.h (struct symtabs_and_lines): Delete.
2283 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
2284
7c44b49c
PA
22852017-09-04 Pedro Alves <palves@redhat.com>
2286
2287 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2288 unittests/array-view-selftests.c.
2289 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
2290 * common/array-view.h: New file.
2291 * unittests/array-view-selftests.c: New file.
2292
e439fa14
PA
22932017-09-04 Pedro Alves <palves@redhat.com>
2294
2295 * cli/cli-cmds.c (edit_command): Pass message to
2296 ambiguous_line_spec.
2297 (list_command): Pass message to ambiguous_line_spec. Say
2298 "first"/"last" instead of "start" and "end" to be consistent with
2299 the manual.
2300 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
2301 them to print formatted message.
2302
7525b645
PA
23032017-09-04 Pedro Alves <palves@redhat.com>
2304
2305 * btrace.c (ftrace_add_pt): Pass btrace_insn to
2306 ftrace_update_insns by reference instead of pointer.
2307
badc0020
YQ
23082017-09-04 Yao Qi <yao.qi@linaro.org>
2309
2310 * i386-go32-tdep.c: Include x86-xstate.h.
2311 (i386_go32_init_abi): Call i386_target_description.
2312 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
2313 if xcr0 is X86_XSTATE_X87_MASK.
2314 * i386-tdep.h (tdesc_i386): Remove the declaration.
2315 (tdesc_i386_mmx): Likewise.
2316
d78bdb54
YQ
23172017-09-04 Yao Qi <yao.qi@linaro.org>
2318
2319 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
2320 X86_XSTATE_SSE_MASK instead of 0.
2321
ca1fa5ee
YQ
23222017-09-04 Yao Qi <yao.qi@linaro.org>
2323
2324 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
2325 i386_target_description.
2326 * i386-fbsd-nat.c (i386fbsd_read_description): Call
2327 i386_target_description.
2328 * i386-tdep.c (i386_gdbarch_init): Likewise.
2329
2434b019
YQ
23302017-09-04 Yao Qi <yao.qi@linaro.org>
2331
2332 * amd64-darwin-tdep.c: Include "x86-xstate.h".
2333 (x86_darwin_init_abi_64): Call amd64_target_description.
2334 * amd64-dicos-tdep.c: Likewise.
2335 * amd64-fbsd-nat.c: Likewise.
2336 * amd64-fbsd-tdep.c: Likewise.
2337 * amd64-nbsd-tdep.c: Likewise.
2338 * amd64-obsd-tdep.c: Likewise.
2339 * amd64-sol2-tdep.c: Likewise.
2340 * amd64-windows-tdep.c: Likewise.
2341 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
2342
0860c437
SM
23432017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2344
2345 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
2346 (btrace_function) <insn>: Change type to use std::vector.
2347 * btrace.c (ftrace_debug, ftrace_call_num_insn,
2348 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
2349 ftrace_update_insns, ftrace_compute_global_level_offset,
2350 btrace_stitch_bts, btrace_clear, btrace_insn_get,
2351 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
2352 change to std::vector.
2353 (ftrace_update_insns): Adjust to change to std::vector, change
2354 type of INSN parameter.
2355 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
2356 * record-btrace.c (btrace_call_history_insn_range,
2357 btrace_compute_src_line_range,
2358 record_btrace_frame_prev_register): Adjust to change to
2359 std::vector.
2360 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
2361 to change to std::vector.
2362
0638b7f9
TT
23632017-09-03 Tom Tromey <tom@tromey.com>
2364
2365 * corefile.c (reopen_exec_file): Use std::string.
2366
8f84fb0e
TT
23672017-09-03 Tom Tromey <tom@tromey.com>
2368
2369 * compile/compile.c (compile_register_name_mangled): Return
2370 std::string.
2371 * compile/compile-loc2c.c (pushf_register_address): Update.
2372 (pushf_register): Update.
2373 * compile/compile-c-types.c (convert_array): Update.
2374 * compile/compile-c-symbols.c (generate_vla_size): Update.
2375 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
2376 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
2377 (convert_one_symbol): Update.
2378 (generate_c_for_for_one_variable): Update.
2379 * compile/compile-c-support.c (c_get_range_decl_name): Return a
2380 std::string.
2381 (generate_register_struct): Update.
2382 * compile/compile-internal.h (c_get_range_decl_name): Return a
2383 std::string.
2384 (compile_register_name_mangled): Return std::string.
2385
18e9961f
TT
23862017-09-03 Tom Tromey <tom@tromey.com>
2387
2388 * utils.c (perror_string): Return a std::string.
2389 (throw_perror_with_name, perror_warning_with_name): Update.
2390
45343786
TT
23912017-09-03 Tom Tromey <tom@tromey.com>
2392
2393 * demangle.c (demangle_command): Use std::string,
2394 unique_xmalloc_ptr.
2395
b57af503
TT
23962017-09-03 Tom Tromey <tom@tromey.com>
2397
2398 * cli/cli-setshow.c (do_set_command): Use std::string.
2399
6eecf35f
TT
24002017-09-03 Tom Tromey <tom@tromey.com>
2401
2402 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
2403
56496dd4
TT
24042017-09-03 Tom Tromey <tom@tromey.com>
2405
2406 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
2407
e91a1fa7
TT
24082017-09-03 Tom Tromey <tom@tromey.com>
2409
2410 * mi/mi-cmd-env.c (env_execute_cli_command): Use
2411 gdb::unique_xmalloc_ptr.
2412
7ffd83d7
TT
24132017-09-03 Tom Tromey <tom@tromey.com>
2414
2415 * thread.c (print_thread_info_1): Use string_printf.
2416 (thread_apply_command, thread_apply_all_command): Use
2417 std::string.
2418
1ccbe998
TT
24192017-09-03 Tom Tromey <tom@tromey.com>
2420
2421 * valprint.c (val_print_string): Update.
2422 * gdbcore.h (memory_error_message): Return std::string.
2423 * corefile.c (memory_error_message): Return std::string.
2424 (memory_error): Update.
2425 * breakpoint.c (insert_bp_location): Update.
2426
23fdd69e
SM
24272017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2428
2429 * target/waitstatus.h (target_waitstatus_to_string): Change
2430 return type to std::string.
2431 * target/waitstatus.c (target_waitstatus_to_string): Return
2432 std::string.
2433 * target.h (target_waitstatus_to_string): Remove declaration.
2434 * infrun.c (resume, clear_proceed_status_thread,
2435 print_target_wait_results, do_target_wait, save_waitstatus,
2436 stop_all_threads): Adjust.
2437 * record-btrace.c (record_btrace_wait): Adjust.
2438 * target-debug.h
2439 (target_debug_print_struct_target_waitstatus_p): Adjust.
2440
5c811d30
JK
24412017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2442
2443 PR gdb/22046
2444 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
2445 detection.
2446
0a2dde4a
SDJ
24472017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2448
2449 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
2450 for setting/unsetting environment variables on the remote target.
2451 (New remote packets): Add entries for QEnvironmentHexEncoded,
2452 QEnvironmentUnset and QEnvironmentReset.
2453 * common/environ.c (gdb_environ::operator=): Extend method to
2454 handle m_user_set_env_list and m_user_unset_env_list.
2455 (gdb_environ::clear): Likewise.
2456 (match_var_in_string): Change type of first parameter from 'char
2457 *' to 'const char *'.
2458 (gdb_environ::set): Extend method to handle
2459 m_user_set_env_list and m_user_unset_env_list.
2460 (gdb_environ::unset): Likewise.
2461 (gdb_environ::clear_user_set_env): New method.
2462 (gdb_environ::user_set_envp): Likewise.
2463 (gdb_environ::user_unset_envp): Likewise.
2464 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
2465 m_user_unset_env_list on move constructor/assignment.
2466 (unset): Add new default parameter 'update_unset_list = true'.
2467 (clear_user_set_env): New method.
2468 (user_set_envp): Likewise.
2469 (user_unset_envp): Likewise.
2470 (m_user_set_env_list): New std::set.
2471 (m_user_unset_env_list): Likewise.
2472 * common/rsp-low.c (hex2str): New function.
2473 (bin2hex): New overload for bin2hex function.
2474 * common/rsp-low.c (hex2str): New prototype.
2475 (str2hex): New overload prototype.
2476 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
2477 QEnvironmentUnset and QEnvironmentReset.
2478 (remote_protocol_features): Add QEnvironmentHexEncoded,
2479 QEnvironmentUnset and QEnvironmentReset packets.
2480 (send_environment_packet): New function.
2481 (extended_remote_environment_support): Likewise.
2482 (extended_remote_create_inferior): Call
2483 extended_remote_environment_support.
2484 (_initialize_remote): Add QEnvironmentHexEncoded,
2485 QEnvironmentUnset and QEnvironmentReset packet configs.
2486 * unittests/environ-selftests.c (gdb_selftest_env_var):
2487 New variable.
2488 (test_vector_initialization): New function.
2489 (test_init_from_host_environ): Likewise.
2490 (test_reinit_from_host_environ): Likewise.
2491 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
2492 Likewise.
2493 (test_unset_set_empty_vector): Likewise.
2494 (test_vector_clear): Likewise.
2495 (test_std_move): Likewise.
2496 (test_move_constructor):
2497 (test_self_move): Likewise.
2498 (test_set_unset_reset): Likewise.
2499 (run_tests): Rewrite in terms of the functions above.
2500
654670a4
WP
25012017-08-31 Weimin Pan <weimin.pan@oracle.com>
2502
2503 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
2504 (adi_available): Use a temp variable of type CORE_ADDR as argument
2505 3 when calling target_auxv_search.
2506 (adi_normalize_address): Use masks and xor operators to calculate
2507 normalized address.
2508 (adi_read_versions, adi_write_versions, adi_print_versions)
2509 (do_examine, do_assign): Use paddress.
2510
7755ddb7
JB
25112017-08-29 John Baldwin <jhb@FreeBSD.org>
2512
2513 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
2514 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
2515 out of loop and add supply of FIR.
2516 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
2517 add collect of FIR.
2518
fd437cbc
SM
25192017-08-28 Simon Marchi <simon.marchi@ericsson.com>
2520
3804a343 2521 PR gdb/21827
fd437cbc
SM
2522 * cli/cli-script.c (define_command): Don't convert command name
2523 to lower case.
2524
988f6b3d
JB
25252017-08-25 Joel Brobecker <brobecker@adacore.com>
2526
2527 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
2528 Update all callers accordingly. Remove all code blocks handling
2529 the case where DISPP is not NULL.
2530
663c44ac
JK
25312017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2532
2533 PR symtab/22003
2534 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
2535 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
2536 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
2537
f1902523
JK
25382017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2539
2540 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
2541 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
2542 (read_comp_units_from_section): New parameter abbrev_section, use
2543 read_and_check_comp_unit_head, allocate signatured_type if needed.
2544 (create_all_comp_units): Update read_comp_units_from_section caller.
2545
87215ad1
SDJ
25462017-08-23 Pedro Alves <palves@redhat.com>
2547
2548 PR remote/21852
2549 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
2550 to null_ptid and switch to thread without reading the registers
2551 after adding the inferior.
2552
6e41ddec
JK
25532017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2554
2555 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
2556 compile-gcc.
2557 * compile/compile.c (compile_gcc, show_compile_gcc): New.
2558 (compile_to_object): Implement compile_gcc.
2559 (_initialize_compile): Install "set compile-gcc". Initialize
2560 compile_gcc.
2561
e68c32d5
JK
25622017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2563
2564 * compile/compile.c (compile_to_object): Conditionally call
2565 set_verbose. Conditionally call compile or compile_v0.
2566
58afddc6
WP
25672017-08-07 Weimin Pan <weimin.pan@oracle.com>
2568
2569 * sparc64-tdep.h: (adi_normalize_address): New export.
2570 * sparc-nat.h: (open_adi_tag_fd): New export.
2571 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
2572 * sparc64-linux-tdep.c:
2573 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
2574 (sparc64_linux_handle_segmentation_fault): New function.
2575 (sparc64_linux_init_abi): Register
2576 sparc64_linux_handle_segmentation_fault
2577 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
2578 (sparc64_addr_bits_remove): New function.
2579 (sparc64_init_abi): Register sparc64_addr_bits_remove.
2580 (MAX_PROC_NAME_SIZE): New macro.
2581 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
2582 (sparc64adilist): New variable.
2583 (adi_proc_list): New variable.
2584 (find_adi_info): New function.
2585 (add_adi_info): New function.
2586 (get_adi_info_proc): New function.
2587 (get_adi_info): New function.
2588 (info_adi_command): New function.
2589 (read_maps_entry): New function.
2590 (adi_available): New function.
2591 (adi_normalize_address): New function.
2592 (adi_align_address): New function.
2593 (adi_convert_byte_count): New function.
2594 (adi_tag_fd): New function.
2595 (adi_is_addr_mapped): New function.
2596 (adi_read_versions): New function.
2597 (adi_write_versions): New function.
2598 (adi_print_versions): New function.
2599 (do_examine): New function.
2600 (do_assign): New function.
2601 (adi_examine_command): New function.
2602 (adi_assign_command): New function.
2603 (_initialize_sparc64_adi_tdep): New function.
2604
11db9430
SM
26052017-08-22 Simon Marchi <simon.marchi@ericsson.com>
2606
2607 * breakpoint.c (breakpoints_info): Rename to ...
2608 (info_breakpoints_command): ... this.
2609 (watchpoints_info): Rename to ...
2610 (info_watchpoints_command): ... this.
2611 (tracepoints_info): Rename to ...
2612 (info_tracepoints_command): ... this.
2613 (_initialize_breakpoint): Adjust.
2614 * dcache.c (dcache_info): Rename to ...
2615 (info_display_command): ... this.
2616 (_initialize_dcache): Adjust.
2617 * frame.h (args_info): Rename to ...
2618 (info_args_command): ... this.
2619 (locals_info): Rename to ...
2620 (info_locals_command): ... this.
2621 * infcmd.c (nofp_registers_info): Rename to ...
2622 (info_registers_command): ... this.
2623 (float_info): Rename to ...
2624 (info_float_command): ... this.
2625 (program_info): Rename to ...
2626 (info_program_command): ... this.
2627 (all_registers_info): Rename to ...
2628 (info_all_registers_command): ... this.
2629 (vector_info): Rename to ...
2630 (info_vector_command): ... this.
2631 (float_info): Rename to ...
2632 (info_float_command): ... this.
2633 (_initialize_infcmd): Adjust.
2634 * inferior.h (term_info): Rename to ...
2635 (info_terminal_command): ... this.
2636 * inflow.c (term_info): Rename to ...
2637 (info_terminal_command): ... this.
2638 (_initialize_inflow): Adjust.
2639 * infrun.c (signals_info): Rename to ...
2640 (info_signals_command): ... this.
2641 (_initialize_infrun): Adjust.
2642 * objc-lang.c (classes_info): Rename to ...
2643 (info_classes_command): ... this.
2644 (selectors_info): Rename to ...
2645 (info_selectors_command): ... this.
2646 (_initialize_objc_language): Adjust.
2647 * printcmd.c (sym_info): Rename to ...
2648 (info_symbol_command): ... this.
2649 (address_info): Rename to ...
2650 (info_address_command): ... this.
2651 (display_info): Rename to ...
2652 (info_display_command): ... this.
2653 (_initialize_printcmd): Adjust.
2654 * reverse.c (bookmarks_info): Rename to ...
2655 (info_breakpoints_command): ... this.
2656 (_initialize_reverse): Adjust.
2657 * ser-go32.c (dos_info): Rename to ...
2658 (info_serial_command): ... this.
2659 (_initialize_ser_dos): Adjust.
2660 * skip.c (skip_info): Rename to ...
2661 (info_skip_command): ... this.
2662 (_initialize_step_skip): Adjust.
2663 * source.c (line_info): Rename to ...
2664 (info_line_command): ... this.
2665 (source_info): Rename to ...
2666 (info_source_command)
2667 * stack.c (frame_info): Rename to ...
2668 (info_frame_command): ... this.
2669 (locals_info): Rename to ...
2670 (info_locals_command): ... this.
2671 (args_info): Rename to ...
2672 (info_args_command): ... this.
2673 (_initialize_stack): Adjust.
2674 * symtab.c (sources_info): Rename to ...
2675 (info_sources_command): ... this.
2676 (variables_info): Rename to ...
2677 (info_variables_command): ... this.
2678 (functions_info): Rename to ...
2679 (info_functions_command): ... this.
2680 (types_info): Rename to ...
2681 (info_types_command): ... this.
2682 (_initialize_symtab): Adjust.
2683 * target.c (target_info): Rename to ...
2684 (info_target_command): ... this.
2685 (initialize_targets): Adjust.
2686 * tracepoint.c (tvariables_info): Rename to ...
2687 (info_tvariables_command): ... this.
2688 (scope_info): Rename to ...
2689 (info_scope_command): ... this.
2690 (trace_dump_actions): Adjust.
2691 (_initialize_tracepoint): Adjust.
2692
b270e6f9
TT
26932017-08-22 Tom Tromey <tom@tromey.com>
2694
2695 * breakpoint.h (install_breakpoint): Update.
2696 * breakpoint.c (add_solib_catchpoint): Update.
2697 (install_breakpoint): Change argument to a std::unique_ptr.
2698 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
2699 (create_breakpoint_sal, create_breakpoint): Update.
2700 (watch_command_1, catch_exec_command_1)
2701 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
2702 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
2703 Return the breakpoint.
2704 (set_raw_breakpoint_without_location, set_raw_breakpoint)
2705 (new_single_step_breakpoint): Update.
2706 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
2707 std::unique_ptr.
2708 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
2709 std::unique_ptr.
2710 * break-catch-sig.c (create_signal_catchpoint): Use
2711 std::unique_ptr.
2712 * ada-lang.c (create_ada_exception_catchpoint): Use
2713 std::unique_ptr.
2714
36bd8eaa
TT
27152017-08-22 Tom Tromey <tom@tromey.com>
2716
2717 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
2718
56f37645
TT
27192017-08-22 Tom Tromey <tom@tromey.com>
2720
2721 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
2722 (lookup_partial_symbol): Update.
2723
0b581c69
TT
27242017-08-22 Tom Tromey <tom@tromey.com>
2725
2726 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
2727 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
2728 (find_and_open_source, symtab_to_fullname): Update.
2729 * psymtab.c (psymtab_to_fullname): Update.
2730
14278e1f
TT
27312017-08-22 Tom Tromey <tom@tromey.com>
2732
2733 * exec.c (exec_file_attach): Update.
2734 * linux-thread-db.c (try_thread_db_load): Update.
2735 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
2736 * utils.c (gdb_realpath): Change return type.
2737 (gdb_realpath_keepfile): Update.
2738 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
2739 (_initialize_utils): Register the new self test.
2740 * source.c (openp): Update.
2741 (find_and_open_source): Update.
2742 * nto-tdep.c (nto_find_and_open_solib): Update.
2743 * main.c (set_gdb_data_directory): Update.
2744 (captured_main_1): Update.
2745 * dwarf2read.c (dwarf2_get_dwz_file): Update
2746 (dw2_map_symbol_filenames): Update.
2747 * auto-load.c (auto_load_safe_path_vec_update): Update.
2748 (filename_is_in_auto_load_safe_path_vec): Change type of
2749 "filename_realp".
2750 (auto_load_objfile_script): Update.
2751 (file_is_auto_load_safe): Update. Use std::string.
2752 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
2753
4971c9a7
TT
27542017-08-22 Tom Tromey <tom@tromey.com>
2755
2756 * utils.c (gdb_realpath_keepfile): Return a
2757 gdb::unique_xmalloc_ptr.
2758 * exec.c (exec_file_attach): Update.
2759 * utils.h (gdb_realpath_keepfile): Return a
2760 gdb::unique_xmalloc_ptr.
2761
e3e41d58
TT
27622017-08-22 Tom Tromey <tom@tromey.com>
2763
2764 * compile/compile.c (compile_file_command): Use
2765 gdb::unique_xmalloc_ptr, std::string.
2766 * utils.c (gdb_abspath): Change return type.
2767 * source.c (openp): Update.
2768 * objfiles.c (allocate_objfile): Update.
2769 * main.c (set_gdb_data_directory): Update.
2770 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
2771
0d999a6e
ZZ
27722017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
2773
2774 * cli-cmds.c (list_commands): List actual code around more than
2775 one location.
2776
329d5e7e
JB
27772017-08-21 John Baldwin <jhb@FreeBSD.org>
2778
2779 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
2780
bf223d3e
PA
27812017-08-21 Pedro Alves <palves@redhat.com>
2782
2783 PR gdb/19487
2784 * c-exp.y (variable production): Handle function aliases.
2785 * minsyms.c (msymbol_is_text): New function.
2786 * minsyms.h (msymbol_is_text): Declare.
2787 * symtab.c (find_function_alias_target): New function.
2788 * symtab.h (find_function_alias_target): Declare.
2789
c973d0aa
PA
27902017-08-21 Pedro Alves <palves@redhat.com>
2791
2792 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
2793 typedefs.
2794 * typeprint.c (whatis_exp): If handling "whatis", and expression
2795 is OP_TYPE, strip one typedef level. Otherwise don't strip
2796 typedefs here.
2797 * valops.c (value_cast): Save "to" type before resolving
2798 stubs/typedefs. Use that type as resulting value's type.
2799
2989a365
TT
28002017-08-18 Tom Tromey <tom@tromey.com>
2801 Pedro Alves <palves@redhat.com>
2802
2803 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
2804 * sol-thread.c (sol_thread_resume, sol_thread_wait)
2805 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
2806 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
2807 * proc-service.c (ps_xfer_memory): Use scoped_restore.
2808 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
2809 (linux_get_siginfo_data): Add "thread" argument. Use
2810 scoped_restore.
2811 * linux-nat.c (linux_child_follow_fork)
2812 (check_stopped_by_watchpoint): Use scoped_restore.
2813 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
2814 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
2815 (restore_inferior_ptid, save_inferior_ptid): Remove.
2816 * btrace.c (btrace_fetch): Use scoped_restore.
2817 * bsd-uthread.c (bsd_uthread_fetch_registers)
2818 (bsd_uthread_store_registers): Use scoped_restore.
2819 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
2820 scoped_restore.
2821 * aix-thread.c (aix_thread_resume, aix_thread_wait)
2822 (aix_thread_xfer_partial): Use scoped_restore.
2823 * inferior.h (save_inferior_ptid): Remove.
2824
e60eb288
YQ
28252017-08-18 Yao Qi <yao.qi@linaro.org>
2826
2827 PR tdep/21818
2828 * arm-tdep.c (gdb_print_insn_arm): Mark
2829 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
2830
6d580b63
YQ
28312017-08-18 Yao Qi <yao.qi@linaro.org>
2832
2833 * NEWS: Mention GDBserver's new option "--selftest".
2834 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
2835 * selftest.c: Move it to common/selftest.c.
2836 * selftest.h: Move it to common/selftest.h.
2837 * selftest-arch.c (reset): New function.
2838 (tests_with_arch): Call reset.
2839
86dcbf50
YQ
28402017-08-18 Yao Qi <yao.qi@linaro.org>
2841
2842 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
2843 instead of exception_fprintf and printf_filtered.
2844
7649770c
YQ
28452017-08-18 Yao Qi <yao.qi@linaro.org>
2846
2847 * selftest.c (register_self_test): Rename it to
2848 selftests::register_test.
2849 (run_self_tests): selftest::run_tests.
2850 * selftest.h: Update declarations.
2851 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
2852 selftests::register_test_foreach_arch.
2853 * selftest-arch.h: Update declaration.
2854 * aarch64-tdep.c: Update.
2855 * arm-tdep.c: Likewise.
2856 * disasm-selftests.c: Likewise.
2857 * dwarf2loc.c: Likewise.
2858 * dwarf2-frame.c: Likewise.
2859 * findvar.c: Likewise.
2860 * gdbarch-selftests.c: Likewise.
2861 * maint.c (maintenance_selftest): Likewise.
2862 * regcache.c: Likewise.
2863 * rust-exp.y: Likewise.
2864 * selftest-arch.c: Likewise.
2865 * unittests/environ-selftests.c: Likewise.
2866 * unittests/function-view-selftests.c: Likewise.
2867 * unittests/offset-type-selftests.c: Likewise.
2868 * unittests/optional-selftests.c: Likewise.
2869 * unittests/scoped_restore-selftests.c: Likewise.
2870 * utils-selftests.c: Likewise.
2871
b0cba12e
PA
28722017-08-17 Pedro Alves <palves@redhat.com>
2873
2874 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
2875 local.
2876
4c8aa72d
PA
28772017-08-17 Pedro Alves <palves@redhat.com>
2878
2879 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
2880 field.
2881 (reset_die_in_process): Delete, replaced by ...
2882 (process_die_scope): ... this new class. Make it responsible for
2883 freeing cu->line_header too.
2884 (process_die): Use process_die_scope.
2885 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
2886 cu->line_header_die_owner. Don't release the line header if it's
2887 owned by the CU.
2888 (setup_type_unit_groups): Make the CU/DIE own the line header.
2889 Don't release the line header here.
2890
ba713918
AL
28912017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
2892
2893 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
2894
44d0fb3a
RK
28952017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
2896
2897 * NEWS: Mention new shortcuts for nexti and stepi in TUI
2898 Single-Key mode
2899
a5afdb16
RK
29002017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
2901
2902 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
2903 mode command list.
2904
47613aeb
SH
29052017-08-15 Stafford Horne <shorne@gmail.com>
2906
2907 * MAINTAINERS (Write After Approval): Add Stafford Horne.
2908
9c3cc999
SH
29092017-08-15 Stafford Horne <shorne@gmail.com>
2910
2911 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
2912
206726fb
SDJ
29132017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
2914
2915 PR gdb/21954
2916 * infcmd.c (unset_environment_command): Use the 'clear' method on
2917 the environment instead of resetting it.
2918
0335ac6d
JB
29192017-08-15 John Baldwin <jhb@FreeBSD.org>
2920
2921 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
2922 platforms.
2923
d3abe1c8
TT
29242017-08-14 Tom Tromey <tom@tromey.com>
2925
2926 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
2927 (print_binary_chars): Likewise.
2928 (BITS_IN_BYTES): Remove.
2929
d6382fff
TT
29302017-08-14 Tom Tromey <tom@tromey.com>
2931
2932 PR gdb/21675
2933 * valprint.c (LOW_ZERO): Change value to 034.
2934 (print_octal_chars): Add static_asserts for octal constants.
2935 * printcmd.c (print_scalar_formatted): Add 'd' case.
2936
f978cb06
TT
29372017-08-11 Tom Tromey <tom@tromey.com>
2938
2939 * symfile.c (add_symbol_file_command): Use std::vector.
2940
2f5404b3
TT
29412017-08-14 Tom Tromey <tom@tromey.com>
2942
2943 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
2944 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
2945 std::move.
2946 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
2947
de7985c3
PA
29482017-08-11 Pedro Alves <palves@redhat.com>
2949
2950 * infrun.c (process_event_stop_test): Adjust
2951 function_name_is_marked_for_skip call.
2952 * skip.c: Include <list>.
2953 (skiplist_entry): Make it a class with private fields, and
2954 getters/setters.
2955 (skiplist_entry_chain): Delete.
2956 (skiplist_entries): New.
2957 (skiplist_entry_count): Delete.
2958 (highest_skiplist_entry_num): New.
2959 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
2960 (add_skiplist_entry): Delete.
2961 (skiplist_entry::skiplist_entry): New.
2962 (skiplist_entry::add_entry): New.
2963 (skip_file_command, skip_function): Adjust.
2964 (compile_skip_regexp): Delete.
2965 (skip_command): Don't compile regexp here. Adjust to use
2966 skiplist_entry::add_entry.
2967 (skip_info): Adjust to use range-for and getters.
2968 (skip_enable_command, skip_disable_command): Adjust to use
2969 range-for and setters.
2970 (skip_delete_command): Adjust to use std::list.
2971 (add_skiplist_entry): Delete.
2972 (skip_file_p): Delete, refactored as ...
2973 (skiplist_entry::do_skip_file_p): ... this new method.
2974 (skip_gfile_p): Delete, refactored as ...
2975 (skiplist_entry::do_gskip_file_p): ... this new method.
2976 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
2977 (skiplist_entry::skip_function_p): ... this new method.
2978 (function_name_is_marked_for_skip): Now returns bool, and takes
2979 the function sal by const reference. Adjust to use range-for and
2980 skiplist_entry methods.
2981 (_initialize_step_skip): Remove references to
2982 skiplist_entry_chain, skiplist_entry_count.
2983 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
2984 takes the function sal by const reference.
2985
be7d3cd5
YQ
29862017-08-11 Yao Qi <yao.qi@linaro.org>
2987
2988 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
2989 (dwarf2_frame_cache): Remove reset_cache_cleanup.
2990 (dwarf2_frame_cache):
2991 * frame-unwind.c (frame_unwind_try_unwinder): Catch
2992 RETURN_MASK_ALL and set *this_case to NULL.
2993 * frame-unwind.h: Update comments.
2994
1c90d9f0
YQ
29952017-08-11 Yao Qi <yao.qi@linaro.org>
2996
2997 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
2998 (dwarf2_frame_state_copy_regs): Remove.
2999 (dwarf2_frame_state_free_regs): Remove.
3000 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
3001 (dwarf2_restore_rule): Call method .alloc_regs instead of
3002 dwarf2_frame_state_alloc_regs.
3003 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
3004 constructor. Call std::move.
3005 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
3006 (dwarf2_frame_cache): Likewise.
3007
3008 [GDB_SELF_TEST]: Include selftest.h and
3009 selftest-arch.h.
3010 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
3011 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
3012 execute_cfa_program_test.
3013
3014 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
3015 copy ctor, assignment operator, move assignment.
3016 <alloc_regs>: New method.
3017 <swap>: New method.
3018 (struct dwarf2_frame_state): Delete dtor.
3019 (dwarf2_frame_state_alloc_regs): Remove declaration.
3020 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
3021 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
3022
afe37d6b
YQ
30232017-08-11 Yao Qi <yao.qi@linaro.org>
3024
3025 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
3026 (dwarf2_frame_state::dwarf2_frame_state): New.
3027 (dwarf2_frame_state::~dwarf2_frame_state): New.
3028 (dwarf2_fetch_cfa_info): Update.
3029 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
3030 rather than a pointer. Update code.
3031 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
3032 dtor.
3033 <data_align, code_align, retaddr_column>: Change them to const.
3034 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
3035 to bool.
3036
b348037f
YQ
30372017-08-11 Yao Qi <yao.qi@linaro.org>
3038
3039 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
3040 <loc.exp>: New field.
3041 * dwarf2-frame.c (execute_cfa_program): Update.
3042 (dwarf2_frame_prev_register): Update.
3043
e7c9de26
PA
30442017-08-10 Pedro Alves <palves@redhat.com>
3045
3046 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
3047
e8c6b620
JB
30482017-08-09 John Baldwin <jhb@FreeBSD.org>
3049
3050 * fbsd-nat.c (struct fbsd_fork_info): Remove.
3051 (fbsd_pending_children): Use std::list.
3052 (fbsd_remember_child): Likewise.
3053 (fbsd_is_child_pending): Likewise.
3054 (fbsd_pending_vfork_done): Use std::forward_list.
3055 (fbsd_add_vfork_done): Likewise.
3056 (fbsd_is_vfork_done_pending): Likewise.
3057 (fbsd_next_vfork_done): Likewise.
3058
e4a26669
JB
30592017-08-09 John Baldwin <jhb@FreeBSD.org>
3060
3061 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
3062 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
3063 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
3064 for `mapfilename'.
3065 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 3066 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 3067
142311d3
JB
30682017-08-09 John Baldwin <jhb@FreeBSD.org>
3069
3070 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
3071 "filestuff.h".
3072 (fbsd_find_memory_regions): Fix `mapfile' initialization.
3073
42fa2e0e
TT
30742017-08-09 Tom Tromey <tom@tromey.com>
3075
3076 * skip.c (skiplist_entry): New constructor.
3077 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
3078 (skiplist_entry::file_is_glob): Now bool.
3079 (skiplist_entry::file, skiplist_entry::function): Now
3080 std::string.
3081 (make_skip_entry): Return a unique_ptr. Use new.
3082 (free_skiplist_entry, free_skiplist_entry_cleanup)
3083 (make_free_skiplist_entry_cleanup): Remove.
3084 (skip_command, skip_disable_command, add_skiplist_entry)
3085 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
3086 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
3087 (function_name_is_marked_for_skip): Update.
3088 (skip_delete_command): Update. Use delete.
3089
cd3af38d
JW
30902017-08-09 Jiong Wang <jiong.wang@arm.com>
3091
3092 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
3093 (aarch64_linux_core_read_description): New function.
3094 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
3095
29592bde
PA
30962017-08-09 Pedro Alves <palves@redhat.com>
3097
3098 * cp-name-parser.y (cp_comp_to_string): Return a
3099 gdb::unique_xmalloc_ptr<char>.
3100 * cp-support.c (replace_typedefs_qualified_name)
3101 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
3102 (cp_canonicalize_string_full): Use op= instead of explicit
3103 convertion.
3104 (cp_class_name_from_physname, method_name_from_physname)
3105 (cp_func_name, cp_remove_params): Adjust to use
3106 gdb::unique_xmalloc_ptr<char>.
3107 * cp-support.h (cp_comp_to_string): Return a
3108 gdb::unique_xmalloc_ptr<char>.
3109 * python/py-type.c (typy_lookup_type): Adjust to use
3110 gdb::unique_xmalloc_ptr<char>.
3111
b3340438
L
31122017-08-09 H.J. Lu <hongjiu.lu@intel.com>
3113
3114 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
3115
e88e8651
YQ
31162017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
3117 Yao Qi <yao.qi@linaro.org>
3118
3119 * cp-support.c (cp_canonicalize_string_full): Use
3120 gdb::unique_xmalloc_ptr<char>.
3121 (cp_canonicalize_string): Likewise.
3122
f5a29eb0
YQ
31232017-08-09 Yao Qi <yao.qi@linaro.org>
3124
3125 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
3126 * regformats/i386/amd64-avx-avx512.dat: Remove.
3127 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
3128 * regformats/i386/amd64-avx-mpx.dat:Remove.
3129 * regformats/i386/amd64-avx.dat: Remove.
3130 * regformats/i386/amd64-mpx.dat: Remove.
3131 * regformats/i386/i386-avx-avx512.dat: Remove.
3132 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
3133 * regformats/i386/i386-avx-mpx.dat: Remove.
3134 * regformats/i386/i386-mmx.dat: Remove.
3135 * regformats/i386/i386-mpx.dat: Remove.
3136
57757c2f
YQ
31372017-08-09 Yao Qi <yao.qi@linaro.org>
3138
3139 * amd64-tdep.h (tdesc_x32): Remove the declaration.
3140 * amd64-tdep.c: Don't include features/i386/x32*.c.
3141 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
3142 functions.
3143 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
3144 and i386/x32-avx-avx512.
3145 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
3146 and i386/x32.xml.
3147 * features/i386/x32-avx-avx512.c: Removed.
3148 * features/i386/x32-avx-avx512.xml: Removed.
3149 * features/i386/x32-avx.c: Removed.
3150 * features/i386/x32-avx.xml: Removed.
3151 * features/i386/x32.c: Removed.
3152 * features/i386/x32.xml: Removed.
3153 * regformats/i386/x32-avx-avx512.dat: Removed.
3154 * regformats/i386/x32-avx.dat: Removed.
3155 * regformats/i386/x32.dat: Removed.
3156
ba7b109b
MR
31572017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3158
3159 PR breakpoints/21886
3160 * mem-break.c (default_memory_insert_breakpoint): Use
3161 `->placed_address' rather than `->reqstd_address' for the
3162 breakpoint location.
3163
e347efc3
MR
31642017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3165
3166 * arch-utils.c (default_print_insn): Remove arch/mach/endian
3167 assertions.
3168
0dba2a6c
MR
31692017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3170
3171 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
3172 a union of `tdep_info', `tdesc_data' and `id'.
3173 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
3174 rather than `info.tdep_info'.
3175 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
3176 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3177 * i386-tdep.c (i386_gdbarch_init): Likewise.
3178 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
3179 * mips-tdep.c (mips_gdbarch_init): Likewise.
3180 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
3181 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3182 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
3183 `info.tdep_info'.
3184 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
3185 `info.tdep_info'.
3186 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3187 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
3188 `info.tdep_info'.
3189 * spu-tdep.c (spu_gdbarch_init): Likewise.
3190 * gdbarch.h: Regenerate.
3191
16eb6b2d
LS
31922017-08-07 Leszek Swirski <leszeks@google.com>
3193
7b005726 3194 PR symtab/20899
16eb6b2d
LS
3195 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
3196
74cbb09e
SM
31972017-08-07 Simon Marchi <simon.marchi@ericsson.com>
3198
3199 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
3200 (gdbsim_open): Rename gdb_argv args object to argv.
3201
ee0c3293
TT
32022017-08-05 Tom Tromey <tom@tromey.com>
3203
3204 * compile/compile-object-load.c (compile_object_load): Use
3205 gdb::unique_xmalloc_ptr.
3206 * cli/cli-dump.c (scan_filename): Rename from
3207 scan_filename_with_cleanup. Change return type.
3208 (scan_expression): Rename from scan_expression_with_cleanup.
3209 Change return type.
3210 (dump_memory_to_file, dump_value_to_file, restore_command):
3211 Use gdb::unique_xmalloc_ptr. Update.
3212 * cli/cli-cmds.c (find_and_open_script): Use
3213 gdb::unique_xmalloc_ptr.
3214 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
3215 * symmisc.c (maintenance_print_symbols)
3216 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
3217 * symfile.c (symfile_bfd_open, generic_load)
3218 (add_symbol_file_command, remove_symbol_file_command): Use
3219 gdb::unique_xmalloc_ptr.
3220 * source.c (openp): Use gdb::unique_xmalloc_ptr.
3221 * psymtab.c (maintenance_print_psymbols): Use
3222 gdb::unique_xmalloc_ptr.
3223 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
3224 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
3225 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
3226 (reload_shared_libraries_1): Likewise.
3227
3232fabd
TT
32282017-08-05 Tom Tromey <tom@tromey.com>
3229
3230 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
3231 (rust_op_vector, rust_set_vector): New typedefs.
3232 (current_parser): New global.
3233 (work_obstack): Change to pointer type. Update all users.
3234 (rust_ast, pstate): Remove globals.
3235 (struct rust_parser): New.
3236 (%union) <params, field_inits>: Change type.
3237 (start, tuple_expr, unit_expr, struct_expr_list, literal)
3238 (field_expr, expr_list, maybe_expr_list, type_list): Update.
3239 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
3240 (convert_params_to_types, convert_params_to_expression): Change
3241 type of "params".
3242 (ast_string): Change type of "fields".
3243 (rust_parse): Make a rust_parser. Remove cleanups.
3244 (rust_lex_tests): Make and install an auto_obstack.
3245
f02fd774
YQ
32462017-08-04 Yao Qi <yao.qi@linaro.org>
3247
3248 * configure.srv (ipa_x32_linux_regobj): New.
3249 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
3250 instead of X86_TDESC_AVX512.
3251 (initialize_low_tracepoint): Call
3252 init_registers_x32_avx_avx512_linux.
3253
91975afd
YQ
32542017-08-04 Yao Qi <yao.qi@linaro.org>
3255
3256 * utils.h (gdb_argv): Add namespace std for nullptr_t.
3257
2331fa3a
RK
32582017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
3259
3260 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
3261
744e4fe1
TT
32622017-08-03 Tom Tromey <tom@tromey.com>
3263
3264 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
3265 Remove.
3266 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
3267
1c034b67
TT
32682017-08-03 Tom Tromey <tom@tromey.com>
3269
3270 * python/py-param.c (compute_enum_values): Use gdb_argv.
3271
773a1edc
TT
32722017-08-03 Tom Tromey <tom@tromey.com>
3273
3274 * utils.h (struct gdb_argv_deleter): New.
3275 (gdb_argv): New class.
3276 * utils.c (gdb_argv::reset): New method.
3277 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
3278 * tracefile.c (tsave_command): Use gdb_argv.
3279 * top.c (new_ui_command): Use gdb_argv.
3280 * symmisc.c (maintenance_print_symbols)
3281 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
3282 * symfile.c (symbol_file_command, generic_load)
3283 (remove_symbol_file_command): Use gdb_argv.
3284 * stack.c (backtrace_command): Use gdb_argv.
3285 * source.c (add_path, show_substitute_path_command)
3286 (unset_substitute_path_command, set_substitute_path_command):
3287 Use gdb_argv.
3288 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
3289 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
3290 * remote.c (extended_remote_run, remote_put_command)
3291 (remote_get_command, remote_delete_command): Use gdb_argv.
3292 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
3293 (gdbsim_open): Use gdb_argv.
3294 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
3295 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
3296 * procfs.c (procfs_info_proc): Use gdb_argv.
3297 * interps.c (interpreter_exec_cmd): Use gdb_argv.
3298 * infrun.c (handle_command): Use gdb_argv.
3299 * inferior.c (add_inferior_command, clone_inferior_command):
3300 Use gdb_argv.
3301 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
3302 * exec.c (exec_file_command): Use gdb_argv.
3303 * cli/cli-cmds.c (alias_command): Use gdb_argv.
3304 * compile/compile.c (build_argc_argv): Use gdb_argv.
3305
0d50bde3
TT
33062017-08-03 Tom Tromey <tom@tromey.com>
3307
3308 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
3309
7f968c89
TT
33102017-08-03 Tom Tromey <tom@tromey.com>
3311
3312 * python/python.c (compute_python_string): Return std::string.
3313 (gdbpy_eval_from_control_command): Update.
3314 (do_start_initialization): Use std::string.
3315 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
3316 xstrprintf.
3317 * python/py-breakpoint.c (local_setattro): Use string_printf, not
3318 xstrprintf.
3319
3c9ebddd
TT
33202017-08-03 Tom Tromey <tom@tromey.com>
3321
3322 * top.h (do_restore_instream_cleanup): Remove.
3323 * top.c (do_restore_instream_cleanup): Remove.
3324 (read_command_file): Use scoped_restore.
3325 * cli/cli-script.c (execute_user_command): Use scoped_restore.
3326
b51b225e
TT
33272017-08-03 Tom Tromey <tom@tromey.com>
3328
3329 * cli/cli-script.c (execute_user_command)
3330 (execute_control_command): Use scoped_restore.
3331
ac991630
TT
33322017-08-03 Tom Tromey <tom@tromey.com>
3333
3334 * cli/cli-script.c (do_restore_user_call_depth): Remove.
3335 (execute_user_command): Remove user_call_depth; use
3336 user_args_stack's size instead.
3337
898e0c8e
TT
33382017-08-03 Tom Tromey <tom@tromey.com>
3339
3340 * top.h (in_user_command): Remove.
3341 * top.c (in_user_command): Remove.
3342 * cli/cli-script.c (do_restore_user_call_depth)
3343 (execute_user_command): Update.
3344
26fcd5d7
TT
33452017-08-03 Tom Tromey <tom@tromey.com>
3346
3347 * valops.c (search_struct_method): Use gdb::byte_vector.
3348 * valarith.c (value_concat): Use std::vector.
3349 * target.c (memory_xfer_partial): Use gdb::byte_vector.
3350 (simple_search_memory): Likewise.
3351 * printcmd.c (find_string_backward): Use gdb::byte_vector.
3352 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
3353 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
3354 * elfread.c (elf_rel_plt_read): Use std::string.
3355 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
3356 * cli/cli-dump.c (restore_section_callback): Use
3357 gdb::byte_vector.
3358
7c218e6c
TT
33592017-08-03 Tom Tromey <tom@tromey.com>
3360
3361 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
3362
31b68d4a
TT
33632017-08-03 Tom Tromey <tom@tromey.com>
3364
3365 * tui/tui-regs.c (tui_restore_gdbout): Remove.
3366 (tui_register_format): Use scoped_restore.
3367
2ec845e7
TT
33682017-08-03 Tom Tromey <tom@tromey.com>
3369
3370 * reverse.c (exec_direction_default): Remove.
3371 (exec_reverse_once): Use scoped_restore.
3372 * remote.c (restore_remote_timeout): Remove.
3373 (remote_flash_erase, remote_flash_write, remote_flash_done)
3374 (readchar, remote_serial_write): Use scoped_restore.
3375 * cli/cli-script.c (struct source_cleanup_lines_args)
3376 (source_cleanup_lines): Remove.
3377 (script_from_file): Use scoped_restore.
3378 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
3379 (source_command): Use scoped_restore.
3380
b3bc8453
TT
33812017-08-03 Tom Tromey <tom@tromey.com>
3382
3383 * utils.h (make_cleanup_free_so): Remove.
3384 * utils.c (do_free_so, make_cleanup_free_so): Remove.
3385 * solist.h (struct so_deleter): New.
3386 (so_list_up): New typedef.
3387 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
3388
e3ad2841
TT
33892017-08-03 Tom Tromey <tom@tromey.com>
3390
3391 * utils.h (make_cleanup_restore_current_language): Remove.
3392 * utils.c (do_restore_current_language)
3393 (make_cleanup_restore_current_language): Remove.
3394 * parse.c (parse_exp_in_context_1)
3395 (parse_expression_with_language): Use
3396 scoped_restore_current_language.
3397 * mi/mi-main.c (mi_cmd_execute): Use
3398 scoped_restore_current_language.
3399 * language.h (scoped_restore_current_language): New class.
3400
b80cf838
TT
34012017-08-03 Tom Tromey <tom@tromey.com>
3402
3403 * compile/compile.c (cleanup_unlink_file): Remove.
3404 (compile_to_object): Use gdb::unlinker.
3405 (eval_compile_command): Likewise.
3406
fad0444a
TT
34072017-08-03 Tom Tromey <tom@tromey.com>
3408
3409 * utils.h (make_cleanup_fclose): Remove.
3410 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
3411
6e7bc05c
TT
34122017-08-03 Tom Tromey <tom@tromey.com>
3413
3414 * top.c (open_terminal_stream): Return gdb_file_up.
3415 (new_ui_command): Update.
3416
4a45905b
TT
34172017-08-03 Tom Tromey <tom@tromey.com>
3418
3419 * source.c (print_source_lines_base, forward_search_command)
3420 (reverse_search_command): Use gdb_file_up.
3421
7cd06d6e
TT
34222017-08-03 Tom Tromey <tom@tromey.com>
3423
3424 * fbsd-nat.c (fbsd_find_memory_regions): Update.
3425
ed166945
TT
34262017-08-03 Tom Tromey <tom@tromey.com>
3427
3428 * cli/cli-cmds.c (find_and_open_script): Change return type.
3429 Remove "streamp" and "full_path" parameters.
3430 (source_script_with_search): Update.
3431 * auto-load.c (source_script_file): Update.
3432 * cli/cli-cmds.h (find_and_open_script): Change type.
3433 (open_script): New struct.
3434
d419f42d
TT
34352017-08-03 Tom Tromey <tom@tromey.com>
3436
3437 * xml-support.c (xml_fetch_content_from_file): Update.
3438 * ui-file.c (stdio_file::open): Update.
3439 * tracefile-tfile.c (tfile_start): Update.
3440 * remote.c (remote_file_put, remote_file_get): Update.
3441 * nat/linux-procfs.c (linux_proc_get_int)
3442 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
3443 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
3444 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
3445 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
3446 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
3447 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
3448 * linux-nat.c (linux_proc_pending_signals): Update.
3449 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
3450 (file_closer): Remove.
3451 * compile/compile.c (compile_to_object): Update.
3452 * common/filestuff.h (struct gdb_file_deleter): New.
3453 (gdb_file_up): New typedef.
3454 (gdb_fopen_cloexec): Change return type.
3455 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
3456 * cli/cli-dump.c (fopen_with_cleanup): Remove.
3457 (dump_binary_file, restore_binary_file): Update.
3458 * auto-load.c (auto_load_objfile_script_1): Update.
3459
4a2b031d
TT
34602017-08-03 Tom Tromey <tom@tromey.com>
3461
3462 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
3463 (info_static_tracepoint_markers_command): Likewise.
3464 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
3465 * skip.c (skip_info): Use ui_out_emit_table.
3466 * progspace.c (print_program_space): Use ui_out_emit_table.
3467 * osdata.c (info_osdata): Use ui_out_emit_table.
3468 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
3469 ui_out_emit_table.
3470 * linux-thread-db.c (info_auto_load_libthread_db): Use
3471 ui_out_emit_table.
3472 * inferior.c (print_inferior): Use ui_out_emit_table.
3473 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
3474 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
3475 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
3476 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
3477 * ui-out.h (class ui_out_emit_table): New.
3478
a4f320fd
MR
34792017-08-02 Maciej W. Rozycki <macro@imgtec.com>
3480
3481 * mips-tdep.c (mips_fpu_type_str): New function.
3482 (mips_dump_tdep): Call it.
3483
a2f1f308
MR
34842017-08-01 Maciej W. Rozycki <macro@imgtec.com>
3485
3486 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
3487 `->mips_fpu_type'.
3488
7e5ed83b
XR
34892017-07-31 Xavier Roirand <roirand@adacore.com>
3490
3491 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3492
4c9dc811
XR
34932017-07-27 Xavier Roirand <roirand@adacore.com>
3494
3495 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
3496
27d41eac
YQ
34972017-07-26 Yao Qi <yao.qi@linaro.org>
3498
3499 * cli/cli-cmds.c (maintenancechecklist): New variable.
3500 * gdbcmd.h (maintenancechecklist): Declare it.
3501 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
3502 Call i386_linux_read_description with different masks.
3503 * maint.c (maintenance_check_command): New function.
3504 (_initialize_maint_cmds): Call add_prefix_cmd.
3505 * target-descriptions.c (tdesc_reg): override operator != and ==.
3506 (tdesc_type): Likewise.
3507 (tdesc_feature): Likewise.
3508 (target_desc): Likewise.
3509 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
3510 (maintenance_check_xml_descriptions): New function.
3511 (_initialize_target_descriptions) Add command "xml-descriptions".
3512 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
3513
ea03d0d3
YQ
35142017-07-26 Yao Qi <yao.qi@linaro.org>
3515
3516 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
3517 Include features/i386/32bit-*.c.
3518 (i386_linux_read_description): Generate target description if it
3519 doesn't exist.
3520 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
3521 functions.
3522 * features/i386/32bit-linux.c: Re-generated.
3523 * features/i386/32bit-sse.c: Likewise.
3524 * target-descriptions.c (print_c_feature::visit): Print code to
3525 set register number if needed.
3526 (print_c_feature) <m_next_regnum>: New field.
3527
25aa13e5
YQ
35282017-07-26 Yao Qi <yao.qi@linaro.org>
3529
3530 * features/Makefile (CFILES): Rename with TDESC_CFILES.
3531 (FEATURE_XMLFILES): New.
3532 (FEATURE_CFILES): New.
3533 New rules.
3534 (clean-cfiles): Remove generated c files.
3535 * features/i386/32bit-avx.c: Generated.
3536 * features/i386/32bit-avx512.c: Generated.
3537 * features/i386/32bit-core.c: Generated.
3538 * features/i386/32bit-linux.c: Generated.
3539 * features/i386/32bit-mpx.c: Generated.
3540 * features/i386/32bit-pkeys.c: Generated.
3541 * features/i386/32bit-sse.c: Generated.
3542 * target-descriptions.c: Include algorithm.
3543 (tdesc_element_visitor): Add method visit_end.
3544 (print_c_tdesc): Implement visit_end.
3545 (print_c_tdesc:: m_filename_after_features): Move it to
3546 protected.
3547 (print_c_feature): New class.
3548 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
3549 name starts with "i386/32bit-".
3550
6eb1e6a8
YQ
35512017-07-26 Yao Qi <yao.qi@linaro.org>
3552
3553 * target-descriptions.c (tdesc_element_visitor): New class.
3554 (tdesc_element): New class.
3555 (tdesc_reg): Inherit from tdesc_element.
3556 (tdesc_reg::accept): New function.
3557 (tdesc_type): Inherit from tdesc_element.
3558 (tdesc_type::accept): New function.
3559 (tdesc_feature): Inherit from tdesc_element.
3560 (tdesc_feature::accept): New function.
3561 (target_desc): Inherit from tdesc_element.
3562 (target_desc::target_desc): New.
3563 (target_desc::~target_desc): New.
3564 (target_desc::accept): New.
3565 (allocate_target_description): Use new.
3566 (free_target_description): Use delete.
3567 (print_c_tdesc): New class.
3568 (maint_print_c_tdesc_cmd): Adjust.
3569
3570 * features/aarch64.c: Re-generated.
3571 * features/arc-arcompact.c: Re-generated.
3572 * features/arc-v2.c: Re-generated.
3573 * features/arm/arm-with-iwmmxt.c: Re-generated.
3574 * features/arm/arm-with-m.c: Re-generated.
3575 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
3576 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
3577 * features/arm/arm-with-neon.c: Re-generated.
3578 * features/arm/arm-with-vfpv2.c: Re-generated.
3579 * features/arm/arm-with-vfpv3.c: Re-generated.
3580 * features/i386/amd64-avx-avx512.c: Re-generated.
3581 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
3582 * features/i386/amd64-avx.c: Re-generated.
3583 * features/i386/amd64-avx-linux.c: Re-generated.
3584 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
3585 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
3586 * features/i386/amd64-avx-mpx.c: Re-generated.
3587 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
3588 * features/i386/amd64.c: Re-generated.
3589 * features/i386/amd64-linux.c: Re-generated.
3590 * features/i386/amd64-mpx.c: Re-generated.
3591 * features/i386/amd64-mpx-linux.c: Re-generated.
3592 * features/i386/i386-avx-avx512.c: Re-generated.
3593 * features/i386/i386-avx-avx512-linux.c: Re-generated.
3594 * features/i386/i386-avx.c: Re-generated.
3595 * features/i386/i386-avx-linux.c: Re-generated.
3596 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
3597 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
3598 * features/i386/i386-avx-mpx.c: Re-generated.
3599 * features/i386/i386-avx-mpx-linux.c: Re-generated.
3600 * features/i386/i386.c: Re-generated.
3601 * features/i386/i386-linux.c: Re-generated.
3602 * features/i386/i386-mmx.c: Re-generated.
3603 * features/i386/i386-mmx-linux.c: Re-generated.
3604 * features/i386/i386-mpx.c: Re-generated.
3605 * features/i386/i386-mpx-linux.c: Re-generated.
3606 * features/i386/x32-avx-avx512.c: Re-generated.
3607 * features/i386/x32-avx-avx512-linux.c: Re-generated.
3608 * features/i386/x32-avx.c: Re-generated.
3609 * features/i386/x32-avx-linux.c: Re-generated.
3610 * features/i386/x32.c: Re-generated.
3611 * features/i386/x32-linux.c: Re-generated.
3612 * features/microblaze.c: Re-generated.
3613 * features/microblaze-with-stack-protect.c: Re-generated.
3614 * features/mips64-dsp-linux.c: Re-generated.
3615 * features/mips64-linux.c: Re-generated.
3616 * features/mips-dsp-linux.c: Re-generated.
3617 * features/mips-linux.c: Re-generated.
3618 * features/nds32.c: Re-generated.
3619 * features/nios2.c: Re-generated.
3620 * features/nios2-linux.c: Re-generated.
3621 * features/rs6000/powerpc-32.c: Re-generated.
3622 * features/rs6000/powerpc-32l.c: Re-generated.
3623 * features/rs6000/powerpc-403.c: Re-generated.
3624 * features/rs6000/powerpc-403gc.c : Re-generated.
3625 * features/rs6000/powerpc-405.c: Re-generated.
3626 * features/rs6000/powerpc-505.c: Re-generated.
3627 * features/rs6000/powerpc-601.c: Re-generated.
3628 * features/rs6000/powerpc-602.c: Re-generated.
3629 * features/rs6000/powerpc-603.c: Re-generated.
3630 * features/rs6000/powerpc-604.c: Re-generated.
3631 * features/rs6000/powerpc-64.c: Re-generated.
3632 * features/rs6000/powerpc-64l.c: Re-generated.
3633 * features/rs6000/powerpc-7400.c: Re-generated.
3634 * features/rs6000/powerpc-750.c: Re-generated.
3635 * features/rs6000/powerpc-860.c: Re-generated.
3636 * features/rs6000/powerpc-altivec32.c: Re-generated.
3637 * features/rs6000/powerpc-altivec32l.c: Re-generated.
3638 * features/rs6000/powerpc-altivec64.c: Re-generated.
3639 * features/rs6000/powerpc-altivec64l.c: Re-generated.
3640 * features/rs6000/powerpc-cell32l.c: Re-generated.
3641 * features/rs6000/powerpc-cell64l.c: Re-generated.
3642 * features/rs6000/powerpc-e500.c: Re-generated.
3643 * features/rs6000/powerpc-e500l.c: Re-generated.
3644 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
3645 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
3646 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
3647 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
3648 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
3649 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
3650 * features/rs6000/powerpc-vsx32.c: Re-generated.
3651 * features/rs6000/powerpc-vsx32l.c: Re-generated.
3652 * features/rs6000/powerpc-vsx64.c: Re-generated.
3653 * features/rs6000/powerpc-vsx64l.c: Re-generated.
3654 * features/rs6000/rs6000.c: Re-generated.
3655 * features/s390-linux32.c: Re-generated.
3656 * features/s390-linux32v1.c: Re-generated.
3657 * features/s390-linux32v2.c: Re-generated.
3658 * features/s390-linux64.c: Re-generated.
3659 * features/s390-linux64v1.c: Re-generated.
3660 * features/s390-linux64v2.c: Re-generated.
3661 * features/s390-te-linux64.c: Re-generated.
3662 * features/s390-tevx-linux64.c: Re-generated.
3663 * features/s390-vx-linux64.c: Re-generated.
3664 * features/s390x-linux64.c: Re-generated.
3665 * features/s390x-linux64v1.c: Re-generated.
3666 * features/s390x-linux64v2.c: Re-generated.
3667 * features/s390x-te-linux64.c: Re-generated.
3668 * features/s390x-tevx-linux64.c: Re-generated.
3669 * features/s390x-vx-linux64.c: Re-generated.
3670 * features/sparc/sparc32-solaris.c: Re-generated.
3671 * features/sparc/sparc64-solaris.c: Re-generated.
3672 * features/tic6x-c62x.c: Re-generated.
3673 * features/tic6x-c62x-linux.c: Re-generated.
3674 * features/tic6x-c64x.c: Re-generated.
3675 * features/tic6x-c64x-linux.c: Re-generated.
3676 * features/tic6x-c64xp.c: Re-generated.
3677 * features/tic6x-c64xp-linux.c: Re-generated.
3678
35b4818d
YQ
36792017-07-26 Yao Qi <yao.qi@linaro.org>
3680
3681 * i386-linux-tdep.c (i386_linux_read_description): New function.
3682 (i386_linux_core_read_description): Call
3683 i386_linux_read_description.
3684 * i386-linux-tdep.h (i386_linux_read_description): Declare.
3685 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
3686 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
3687 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
3688 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
3689 * x86-linux-nat.c (x86_linux_read_description): Call
3690 i386_linux_read_description.
3691
8e2141c6
YQ
36922017-07-26 Yao Qi <yao.qi@linaro.org>
3693
3694 * NEWS: Mention it.
3695 * features/Makefile (%.c: %.xml): Pass the xml file name to
3696 command "maint print c-tdesc".
3697 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
3698 name from 'arg'.
3699
b468ff4c
YQ
37002017-07-26 Yao Qi <yao.qi@linaro.org>
3701
3702 * target-descriptions.c (target_desc): Add ctor and dtor. Do
3703 in-class initialization.
3704 (tdesc_create_feature): Call new instead of XCNEW.
3705 (free_target_description): Ue delete.
3706
b9c0e1b4
JB
37072017-07-25 John Baldwin <jhb@FreeBSD.org>
3708
3709 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
3710
a04b5337
YQ
37112017-07-25 Yao Qi <yao.qi@linaro.org>
3712
3713 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
3714 constant.
3715 (amd64_x32_init_abi): Likewise.
3716 * amd64-tdep.h (amd64_init_abi): Update declaration.
3717 (amd64_x32_init_abi): Likewise.
3718
02ad7fc2
YQ
37192017-07-25 Yao Qi <yao.qi@linaro.org>
3720
3721 PR tdep/21717
3722 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
3723 condition for FPSCR.
3724 (arm_linux_store_inferior_registers): Likewise.
3725
b6f48cb0
TT
37262017-07-22 Tom Tromey <tom@tromey.com>
3727
3728 * break-catch-syscall.c (struct catch_syscall_inferior_data)
3729 <syscalls_counts>: Now a std::vector.
3730 (get_catch_syscall_inferior_data): Use "new".
3731 (catch_syscall_inferior_data_cleanup): Use "delete".
3732 (insert_catch_syscall, remove_catch_syscall)
3733 (clear_syscall_counts): Update.
3734
e12c9b7a
TT
37352017-07-22 Tom Tromey <tom@tromey.com>
3736
3737 * break-catch-syscall.c (syscall_catchpoint)
3738 <syscalls_to_be_caught>: Now a std::vector<int>
3739 (~syscall_catchpoint): Remove.
3740 (insert_catch_syscall, remove_catch_syscall)
3741 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
3742 (print_mention_catch_syscall, print_recreate_catch_syscall):
3743 Update.
3744 (create_syscall_event_catchpoint): Change type of "filter"
3745 parameter.
3746 (catch_syscall_split_args): Return a std::vector.
3747 (catch_syscall_command_1, catching_syscall_number_1): Update.
3748
4fa8aeac
TT
37492017-07-22 Tom Tromey <tom@tromey.com>
3750
3751 * break-catch-throw.c (struct exception_catchpoint)
3752 <exception_rx>: Now a std::string.
3753 (~exception_catchpoint): Remove.
3754 (print_one_detail_exception_catchpoint): Update.
3755 (handle_gnu_v3_exceptions): Change type of except_rx.
3756 (extract_exception_regexp): Return a std::string.
3757 (catch_exception_command_1): Update.
3758
f746a154
TT
37592017-07-22 Tom Tromey <tom@tromey.com>
3760
3761 * break-catch-sig.c (gdb_signal_type): Remove typedef.
3762 (struct signal_catchpoint) <signals_to_be_caught>: Now a
3763 std::vector.
3764 <catch_all>: Now a bool.
3765 (~signal_catchpoint): Remove.
3766 (signal_catchpoint_insert_location)
3767 (signal_catchpoint_remove_location)
3768 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
3769 (signal_catchpoint_print_mention)
3770 (signal_catchpoint_print_recreate)
3771 (signal_catchpoint_explains_signal): Update.
3772 (create_signal_catchpoint): Change type of "filter" and
3773 "catch_all".
3774 (catch_signal_split_args): Return a std::vector. Change type of
3775 "catch_all".
3776 (catch_signal_command): Update.
3777
47e77640
PA
37782017-07-20 Pedro Alves <palves@redhat.com>
3779
3780 * ada-lang.c (ada_language_defn): Make extern.
3781 (_initialize_ada_language): Remove add_language call.
3782 * c-lang.c (c_language_defn, cplus_language_defn)
3783 (asm_language_defn, minimal_language_defn): Make extern.
3784 (_initialize_c_language): Delete.
3785 * completer.c (compare_cstrings): Delete, moved to utils.h.
3786 * d-lang.c (d_language_defn): Make extern.
3787 (_initialize_d_language): Remove add_language calls.
3788 * defs.h (enum language): Add comment.
3789 * f-lang.c (f_language_defn): Make extern.
3790 (_initialize_f_language): Remove add_language call.
3791 * go-lang.c (go_language_defn): Make extern.
3792 (_initialize_go_language): Remove add_language call.
3793 * language.c: Include <algorithm>.
3794 (languages): Redefine as const array.
3795 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
3796 (set_language_command): Handle "local". Use for-range loop.
3797 (set_language): Remove loop.
3798 (language_enum): Rewrite.
3799 (language_def, language_str): Remove loops.
3800 (add_language): Delete.
3801 (add_set_language_command): New, based on add_languages.
3802 (skip_language_trampoline): Adjust.
3803 (local_language_defn): Delete.
3804 (language_gdbarch_post_init): Adjust.
3805 (_initialize_language): Remove add_language calls. Call
3806 add_set_language_command.
3807 * language.h (add_language): Delete.
3808 (auto_language_defn)
3809 (unknown_language_defn, minimal_language_defn, ada_language_defn)
3810 (asm_language_defn, c_language_defn, cplus_language_defn)
3811 (d_language_defn, f_language_defn, go_language_defn)
3812 (m2_language_defn, objc_language_defn, opencl_language_defn)
3813 (pascal_language_defn, rust_language_defn): Declare.
3814 * m2-lang.c (m2_language_defn): Make extern.
3815 (_initialize_m2_language): Remove add_language call.
3816 * objc-lang.c (objc_language_defn): Make extern.
3817 (_initialize_objc_language): Remove add_language call.
3818 * opencl-lang.c (opencl_language_defn): Make extern.
3819 (_initialize_opencl_language): Remove add_language call.
3820 * p-lang.c (pascal_language_defn): Make extern.
3821 (_initialize_pascal_language): Delete.
3822 * rust-lang.c (rust_language_defn): Make extern.
3823 (_initialize_rust_language): Delete.
3824 * utils.h (compare_cstrings): New static inline function.
3825
edb0c9cb
PA
38262017-07-20 Pedro Alves <palves@redhat.com>
3827
3828 * ada-lang.c (ada_to_fixed_type_1): Adjust.
3829 (get_var_value): Constify parameters.
3830 (get_int_var_value): Change prototype.
3831 (to_fixed_range_type): Adjust.
3832 * ada-lang.h (get_int_var_value): Change prototype.
3833
a778f165
PA
38342017-07-20 Pedro Alves <palves@redhat.com>
3835
3836 * dwarf2read.c (dw2_lookup_symbol): Use
3837 SYMBOL_MATCHES_SEARCH_NAME.
3838 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
3839
42edd901
PA
38402017-07-20 Pedro Alves <palves@redhat.com>
3841
3842 * block.c (block_iter_name_step, block_iter_name_first)
3843 (block_iter_name_next): Delete.
3844 (block_lookup_symbol_primary): Adjust to use
3845 dict_iter_match_first/dict_iter_match_next.
3846 * block.h (block_iter_name_first, block_iter_name_next): Delete
3847 declarations.
3848 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
3849 dict_iter_match_first/dict_iter_match_next.
3850
cf325299
PA
38512017-07-20 Pedro Alves <palves@redhat.com>
3852
3853 * cp-support.c (cp_find_first_component_aux): Add missing case for
3854 end of string.
3855
c5ed0576
DB
38562017-07-18 David Blaikie <dblaikie@gmail.com>
3857
3858 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
3859 of dwo_cu's dwo_file.
3860
27841e76
YQ
38612017-07-18 Yao Qi <yao.qi@linaro.org>
3862
3863 * remote.c (store_registers_using_G): Remove one line comment.
3864
cfb7e58b
YQ
38652017-07-18 Yao Qi <yao.qi@linaro.org>
3866
3867 * regcache.c (regcache_cpy): Simplify it.
3868 (regcache::cpy_no_passthrough): Remove it.
3869 * regcache.h (cpy_no_passthrough): Remove it.
3870 (regcache_dup, regcache_cpy): Update comments.
3871
386535dd
PA
38722017-07-18 Pedro Alves <palves@redhat.com>
3873
3874 * remote-sim.c (sim_command_completer): Adjust to work with a
3875 completion_tracker instead of a VEC.
3876
c45ec17c
PA
38772017-07-17 Pedro Alves <palves@redhat.com>
3878
3879 * completer.c (complete_source_filenames): New function.
3880 (complete_address_and_linespec_locations): New function.
3881 (location_completer): Use complete_address_and_linespec_locations.
3882 (completion_tracker::build_completion_result): Honor the tracker's
3883 request to suppress append.
3884 * completer.h (completion_tracker::suppress_append_ws)
3885 (completion_tracker::set_suppress_append_ws): New methods.
3886 (completion_tracker::m_suppress_append_ws): New field.
3887 (complete_source_filenames): New declaration.
3888 * linespec.c (linespec_complete_what): New.
3889 (struct ls_parser) <complete_what, completion_word,
3890 completion_quote_char, completion_quote_end, completion_tracker>:
3891 New fields.
3892 (string_find_incomplete_keyword_at_end): New.
3893 (linespec_lexer_lex_string): Record quote char. If in completion
3894 mode, don't throw.
3895 (linespec_lexer_consume_token): Advance the completion word point.
3896 (linespec_lexer_peek_token): Save/restore completion info.
3897 (save_stream_and_consume_token): New.
3898 (set_completion_after_number): New.
3899 (linespec_parse_basic): Set what to complete next depending on
3900 token. Handle function and label completions specially.
3901 (parse_linespec): Disable objc shortcut in completion mode. Set
3902 what to complete next depending on token type. Skip keyword if in
3903 completion mode.
3904 (complete_linespec_component, linespec_complete): New.
3905 * linespec.h (linespec_complete): Declare.
3906
be966d42
PA
39072017-07-17 Pedro Alves <palves@redhat.com>
3908
3909 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
3910 Handle 'operator<' / 'operator<<'.
3911
a2459270
PA
39122017-07-17 Pedro Alves <palves@redhat.com>
3913
3914 * completer.c (collect_explicit_location_matches): Handle
3915 MATCH_LABEL.
3916 (convert_explicit_location_to_linespec): New, factored out from
3917 ...
3918 (convert_explicit_location_to_sals): ... this.
3919 (complete_label): New.
3920 (linespec_complete_label, find_label_symbols_in_block): New.
3921 (find_label_symbols): Add completion_mode parameter and adjust to
3922 call find_label_symbols_in_block.
3923 * linespec.h (linespec_complete_label): Declare.
3924
c6756f62
PA
39252017-07-17 Pedro Alves <palves@redhat.com>
3926
3927 * ada-lang.c (ada_collect_symbol_completion_matches): Add
3928 complete_symbol_mode parameter.
3929 * cli/cli-cmds.c (complete_command): Get the completion result out
3930 of the handle_brkchars tracker if used a custom word point.
3931 * completer.c: Include "linespec.h".
3932 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
3933 (advance_to_expression_complete_word_point): New.
3934 (completion_tracker::completes_to_completion_word): New.
3935 (complete_files_symbols): Pass down
3936 complete_symbol_mode::EXPRESSION.
3937 (explicit_options, probe_options): New.
3938 (collect_explicit_location_matches): Complete on the
3939 explictit_loc->foo instead of word. Use
3940 linespec_complete_function. Handle MATCH_LINE. Handle offering
3941 keyword and options completions.
3942 (backup_text_ptr): Delete.
3943 (skip_keyword): New.
3944 (complete_explicit_location): Remove 'word' parameter. Add
3945 language, quoted_arg_start and quoted_arg_end parameters.
3946 Rewrite, parsing left to right.
3947 (location_completer): Rewrite.
3948 (location_completer_handle_brkchars): New function.
3949 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
3950 (enum complete_line_internal_reason): Adjust comments.
3951 (completion_tracker::discard_completions): New.
3952 (completer_handle_brkchars_func_for_completer): Handle
3953 location_completer.
3954 (gdb_custom_word_point_brkchars)
3955 (gdb_org_rl_basic_quote_characters): New.
3956 (gdb_completion_word_break_characters_throw)
3957 (completion_find_completion_word): Handle trackers that use a
3958 custom word point.
3959 (completion_tracker::advance_custom_word_point_by): New.
3960 (completion_tracker::build_completion_result): Don't rely on
3961 readline appending the quote char.
3962 (gdb_rl_attempted_completion_function_throw): Handle trackers that
3963 use a custom word point.
3964 (gdb_rl_attempted_completion_function): Restore
3965 rl_basic_quote_characters.
3966 * completer.h (class completion_tracker): Extend intro comment.
3967 (completion_tracker::set_quote_char)
3968 (completion_tracker::quote_char)
3969 (completion_tracker::set_use_custom_word_point)
3970 (completion_tracker::use_custom_word_point)
3971 (completion_tracker::custom_word_point)
3972 (completion_tracker::set_custom_word_point)
3973 (completion_tracker::advance_custom_word_point_by)
3974 (completion_tracker::completes_to_completion_word)
3975 (completion_tracker::discard_completions): New methods.
3976 (completion_tracker::m_quote_char)
3977 (completion_tracker::m_use_custom_word_point)
3978 (completion_tracker::m_custom_word_point): New fields.
3979 (advance_to_expression_complete_word_point): Declare.
3980 * f-lang.c (f_collect_symbol_completion_matches): Add
3981 complete_symbol_mode parameter.
3982 * language.h (struct language_defn)
3983 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
3984 parameter.
3985 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
3986 (linespec_complete_function): New function.
3987 (linespec_lexer_lex_keyword): Adjust.
3988 * linespec.h (linespec_keywords, linespec_complete_function): New
3989 declarations.
3990 * location.c (find_end_quote): New function.
3991 (explicit_location_lex_one): Add explicit_completion_info
3992 parameter. Save quoting info. Don't throw if being called for
3993 completion. Don't handle Ada operators here.
3994 (is_cp_operator, skip_op_false_positives, first_of)
3995 (explicit_location_lex_one_function): New function.
3996 (string_to_explicit_location): Replace 'dont_throw' parameter with
3997 an explicit_completion_info pointer parameter. Handle it. Don't
3998 use explicit_location_lex_one to lex function names. Use
3999 explicit_location_lex_one_function instead.
4000 * location.h (struct explicit_completion_info): New.
4001 (string_to_explicit_location): Replace 'dont_throw' parameter with
4002 an explicit_completion_info pointer parameter.
4003 * symtab.c (default_collect_symbol_completion_matches_break_on):
4004 Add complete_symbol_mode parameter. Handle LINESPEC mode.
4005 (default_collect_symbol_completion_matches)
4006 (collect_symbol_completion_matches): Add complete_symbol_mode
4007 parameter.
4008 (collect_symbol_completion_matches_type): Pass down
4009 complete_symbol_mode::EXPRESSION.
4010 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4011 parameter. Handle LINESPEC mode.
4012 * symtab.h (complete_symbol_mode): New.
4013 (default_collect_symbol_completion_matches_break_on)
4014 (default_collect_symbol_completion_matches)
4015 (collect_symbol_completion_matches)
4016 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4017 parameter.
4018
1d550c82
PA
40192017-07-17 Pedro Alves <palves@redhat.com>
4020
4021 * utils.c (enum class strncmp_iw_mode): New.
4022 (strcmp_iw): Rename to ...
4023 (strncmp_iw_with_mode): ... this. Add string2_len and mode
4024 parameters. Handle them.
4025 (strncmp_iw): New.
4026 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
4027 * utils.h (strncmp_iw): Declare.
4028 (strcmp_iw): Move describing comments here.
4029
8090b426
PA
40302017-07-17 Pedro Alves <palves@redhat.com>
4031
4032 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
4033 CP_OPERATOR_STR.
4034 * c-typeprint.c (is_type_conversion_operator): Use
4035 CP_OPERATOR_STR.
4036 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
4037 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
4038 CP_OPERATOR_LEN.
4039 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
4040 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
4041 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
4042 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
4043 CP_OPERATOR_STR.
4044 * location.c: Include "cp-support.h".
4045 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
4046 CP_OPERATOR_STR.
4047 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
4048 CP_OPERATOR_LEN.
4049
6a2c1b87
PA
40502017-07-17 Pedro Alves <palves@redhat.com>
4051
4052 * cli/cli-cmds.c (complete_command): Use a completion tracker
4053 along with completion_find_completion_word for handle_brkchars
4054 phase.
4055 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
4056 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
4057 (struct gdb_rl_completion_word_info): New.
4058 (gdb_rl_find_completion_word): New.
4059 (completion_find_completion_word): New.
4060 * completer.h (completion_find_completion_word): Declare.
4061
eb3ff9a5
PA
40622017-07-17 Pedro Alves <palves@redhat.com>
4063
4064 * ada-lang.c (symbol_completion_match): Adjust comments.
4065 (symbol_completion_add): Replace vector parameter with
4066 completion_tracker parameter. Use it.
4067 (ada_make_symbol_completion_list): Rename to...
4068 (ada_collect_symbol_completion_matches): ... this. Add
4069 completion_tracker parameter and use it.
4070 (ada_language_defn): Adjust.
4071 * break-catch-syscall.c (catch_syscall_completer): Adjust
4072 prototype and work with completion_tracker instead of VEC.
4073 * breakpoint.c (condition_completer): Adjust prototype and work
4074 with completion_tracker instead of VEC.
4075 * c-lang.c (c_language_defn, cplus_language_defn)
4076 (asm_language_defn, minimal_language_defn): Adjust to renames.
4077 * cli/cli-cmds.c (complete_command): Rework using
4078 completion_tracker. Catch exceptions when completing.
4079 * cli/cli-decode.c (integer_unlimited_completer)
4080 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
4081 with completion_tracker instead of VEC.
4082 * command.h (struct completion_tracker): Forward declare.
4083 (completer_ftype, completer_handle_brkchars_ftype): Change
4084 types.
4085 (complete_on_cmdlist, complete_on_enum): Adjust.
4086 * completer.c: Include <algorithm>.
4087 (struct gdb_completer_state): New.
4088 (current_completion): New global.
4089 (readline_line_completion_function): Delete.
4090 (noop_completer, filename_completer)
4091 (filename_completer_handle_brkchars, complete_files_symbols)
4092 (linespec_location_completer): Adjust to work with a
4093 completion_tracker instead of a VEC.
4094 (string_or_empty): New.
4095 (collect_explicit_location_matches): Adjust to work with a
4096 completion_tracker instead of a VEC.
4097 (explicit_location_completer): Rename to ...
4098 (complete_explicit_location): ... this and adjust to work with a
4099 completion_tracker instead of a VEC.
4100 (location_completer): Adjust to work with a completion_tracker
4101 instead of a VEC.
4102 (add_struct_fields): Adjust to work with a completion_list instead
4103 of VEC.
4104 (expression_completer): Rename to ...
4105 (complete_expression): ... this and adjust to work with a
4106 completion_tracker instead of a VEC. Use complete_files_symbols.
4107 (expression_completer): Reimplement on top of complete_expression.
4108 (symbol_completer): Adjust to work with a completion_tracker
4109 instead of a VEC.
4110 (enum complete_line_internal_reason): Add describing comments.
4111 (complete_line_internal_normal_command): Adjust to work with a
4112 completion_tracker instead of a VEC.
4113 (complete_line_internal): Rename to ...
4114 (complete_line_internal_1): ... this and adjust to work with a
4115 completion_tracker instead of a VEC. Assert TEXT is NULL in the
4116 handle_brkchars phase.
4117 (new_completion_tracker): Delete.
4118 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
4119 complete_line_internal_1.
4120 (free_completion_tracker): Delete.
4121 (INITIAL_COMPLETION_HTAB_SIZE): New.
4122 (completion_tracker::completion_tracker)
4123 (completion_tracker::~completion_tracker): New.
4124 (maybe_add_completion): Delete.
4125 (completion_tracker::maybe_add_completion)
4126 (completion_tracker::add_completion)
4127 (completion_tracker::add_completions): New.
4128 (throw_max_completions_reached_error): Delete.
4129 (complete_line): Adjust to work with a completion_tracker instead
4130 of a VEC. Don't create a completion_tracker_t or check for max
4131 completions here.
4132 (command_completer, command_completer_handle_brkchars)
4133 (signal_completer, reg_or_group_completer_1)
4134 (reg_or_group_completer, default_completer_handle_brkchars):
4135 Adjust to work with a completion_tracker.
4136 (gdb_completion_word_break_characters_throw): New.
4137 (gdb_completion_word_break_characters): Reimplement.
4138 (line_completion_function): Delete.
4139 (completion_tracker::recompute_lowest_common_denominator)
4140 (expand_preserving_ws)
4141 (completion_tracker::build_completion_result)
4142 (completion_result::completion_result)
4143 (completion_result::completion_result)
4144 (completion_result::~completion_result)
4145 (completion_result::completion_result)
4146 (completion_result::release_match_list, compare_cstrings)
4147 (completion_result::sort_match_list)
4148 (completion_result::reset_match_list)
4149 (gdb_rl_attempted_completion_function_throw)
4150 (gdb_rl_attempted_completion_function): New.
4151 * completer.h (completion_list, struct completion_result)
4152 (class completion_tracker): New.
4153 (complete_line): Add completion_tracker parameter.
4154 (readline_line_completion_function): Delete.
4155 (gdb_rl_attempted_completion_function): New.
4156 (noop_completer, filename_completer, expression_completer)
4157 (location_completer, symbol_completer, command_completer)
4158 (signal_completer, reg_or_group_completer): Update prototypes.
4159 (completion_tracker_t, new_completion_tracker)
4160 (make_cleanup_free_completion_tracker): Delete.
4161 (enum maybe_add_completion_enum): Delete.
4162 (maybe_add_completion): Delete.
4163 (throw_max_completions_reached_error): Delete.
4164 * corefile.c (complete_set_gnutarget): Adjust to work with a
4165 completion_tracker instead of a VEC.
4166 * cp-abi.c (cp_abi_completer): Adjust to work with a
4167 completion_tracker instead of a VEC.
4168 * d-lang.c (d_language_defn): Adjust.
4169 * disasm.c (disassembler_options_completer): Adjust to work with a
4170 completion_tracker instead of a VEC.
4171 * f-lang.c (f_make_symbol_completion_list): Rename to ...
4172 (f_collect_symbol_completion_matches): ... this. Adjust to work
4173 with a completion_tracker instead of a VEC.
4174 (f_language_defn): Adjust.
4175 * go-lang.c (go_language_defn): Adjust.
4176 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
4177 Adjust to work with a completion_tracker instead of a VEC.
4178 * infrun.c (handle_completer): Likewise.
4179 * interps.c (interpreter_completer): Likewise.
4180 * interps.h (interpreter_completer): Likewise.
4181 * language.c (unknown_language_defn, auto_language_defn)
4182 (local_language_defn): Adjust.
4183 * language.h (language_defn::la_make_symbol_completion_list):
4184 Rename to ...
4185 (language_defn::la_collect_symbol_completion_matches): ... this
4186 and adjust to work with a completion_tracker instead of a VEC.
4187 * m2-lang.c (m2_language_defn): Adjust.
4188 * objc-lang.c (objc_language_defn): Adjust.
4189 * opencl-lang.c (opencl_language_defn): Adjust.
4190 * p-lang.c (pascal_language_defn): Adjust.
4191 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
4192 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
4193 with a completion_tracker.
4194 * rust-lang.c (rust_language_defn): Adjust.
4195 * symtab.c (free_completion_list, do_free_completion_list)
4196 (return_val, completion_tracker): Delete.
4197 (completion_list_add_name, completion_list_add_symbol)
4198 (completion_list_add_msymbol, completion_list_objc_symbol)
4199 (completion_list_add_fields, add_symtab_completions): Add
4200 completion_tracker parameter and use it.
4201 (default_make_symbol_completion_list_break_on_1): Rename to...
4202 (default_collect_symbol_completion_matches_break_on): ... this.
4203 Add completion_tracker parameter and use it instead of allocating
4204 a completion tracker here.
4205 (default_make_symbol_completion_list_break_on): Delete old
4206 implementation.
4207 (default_make_symbol_completion_list): Delete.
4208 (default_collect_symbol_completion_matches): New.
4209 (make_symbol_completion_list): Delete.
4210 (collect_symbol_completion_matches): New.
4211 (make_symbol_completion_type): Rename to ...
4212 (collect_symbol_completion_matches_type): ... this. Add
4213 completion_tracker parameter and use it instead of VEC.
4214 (make_file_symbol_completion_list_1): Rename to...
4215 (collect_file_symbol_completion_matches): ... this. Add
4216 completion_tracker parameter and use it instead of VEC.
4217 (make_file_symbol_completion_list): Delete.
4218 (add_filename_to_list): Use completion_list instead of a VEC.
4219 (add_partial_filename_data::list): Now a completion_list.
4220 (make_source_files_completion_list): Work with a completion_list
4221 instead of a VEC.
4222 * symtab.h: Include "completer.h".
4223 (default_make_symbol_completion_list_break_on)
4224 (default_make_symbol_completion_list, make_symbol_completion_list)
4225 (make_symbol_completion_type, make_file_symbol_completion_list)
4226 (make_source_files_completion_list): Delete.
4227 (default_collect_symbol_completion_matches_break_on)
4228 (default_collect_symbol_completion_matches)
4229 (collect_symbol_completion_matches)
4230 (collect_symbol_completion_matches_type)
4231 (collect_file_symbol_completion_matches)
4232 (make_source_files_completion_list): New.
4233 * top.c (init_main): Don't install a rl_completion_entry_function
4234 hook. Install a rl_attempted_completion_function hook instead.
4235 * tui/tui-layout.c (layout_completer): Adjust to work with a
4236 completion_tracker.
4237 * tui/tui-regs.c (tui_reggroup_completer):
4238 * tui/tui-win.c (window_name_completer, focus_completer)
4239 (winheight_completer): Adjust to work with a completion_tracker.
4240 * value.c: Include "completer.h".
4241 (complete_internalvar): Adjust to work with a completion_tracker.
4242 * value.h (complete_internalvar): Likewise.
4243
6e1dbf8c
PA
42442017-07-17 Pedro Alves <palves@redhat.com>
4245
4246 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
4247 renames.
4248 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
4249 comments to completer_ftype's declaration.
4250 <completer_handle_brkchars>: Change type to
4251 completer_handle_brkchars_ftype.
4252 * command.h (completer_ftype): Add describing comment and give
4253 names to parameters.
4254 (completer_ftype_void): Rename to ...
4255 (completer_handle_brkchars_ftype) ... this. Add describing comment.
4256 (set_cmd_completer_handle_brkchars): Adjust.
4257 * completer.c (filename_completer_handle_brkchars): New function.
4258 (complete_line_internal_normal_command): New function, factored
4259 out from ...
4260 (complete_line_internal): ... here.
4261 (command_completer_handle_brkchars)
4262 (default_completer_handle_brkchars)
4263 (completer_handle_brkchars_func_for_completer): New functions.
4264 * completer.h (set_gdb_completion_word_break_characters): Delete
4265 declaration.
4266 (completer_handle_brkchars_func_for_completer): New declaration.
4267 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
4268 completer_handle_brkchars_func_for_completer.
4269
78b13106
PA
42702017-07-17 Pedro Alves <palves@redhat.com>
4271
4272 * completer.c (symbol_completer): New function, based on
4273 make_symbol_completion_list_fn.
4274 * completer.h (symbol_completer): New declaration.
4275 * guile/scm-cmd.c (cmdscm_completers): Adjust.
4276 * python/py-cmd.c (completers): Adjust.
4277 * symtab.c (make_symbol_completion_list_fn): Delete.
4278 * symtab.h (make_symbol_completion_list_fn): Delete.
4279 * cli/cli-decode.c (add_cmd): Adjust.
4280
bbf2f4df
PA
42812017-07-17 Pedro Alves <palves@redhat.com>
4282
4283 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
4284 * dwarf2read.c: Include "filename-seen-cache.h".
4285 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
4286 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
4287 * filename-seen-cache.c: New file.
4288 * filename-seen-cache.h: New file.
4289 * symtab.c: Include "filename-seen-cache.h".
4290 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
4291 (create_filename_seen_cache, clear_filename_seen_cache)
4292 (delete_filename_seen_cache, filename_seen): Delete, parts moved
4293 to filename-seen-cache.h/filename-seen-cache.c.
4294 (output_source_filename, sources_info)
4295 (maybe_add_partial_symtab_filename)
4296 (make_source_files_completion_list): Adjust to use
4297 filename_seen_cache.
4298
330cdd98
PA
42992017-07-17 Pedro Alves <palves@redhat.com>
4300
4301 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
4302 fields.
4303 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
4304 dwarf2_debug_sections*)): New.
4305 (dwarf2_per_objfile::dwarf2_per_objfile(const
4306 dwarf2_per_objfile&)): Declare as deleted.
4307 (dwarf2_per_objfile::operator=): Declare as deleted.
4308 (dwarf2_per_objfile::dwarf2_per_objfile)
4309 (dwarf2_per_objfile::~dwarf2_per_objfile)
4310 (dwarf2_per_objfile::free_cached_comp_units): New.
4311 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
4312 ctor. Call dwarf2_per_objfile's ctor manually.
4313 (dwarf2_locate_sections): Deleted/refactored as ...
4314 (dwarf2_per_objfile::locate_sections): ... this new method.
4315 (free_cached_comp_units): Defer to
4316 dwarf2_per_objfile::free_cached_comp_units.
4317 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
4318
8880f2a9
TT
43192017-07-14 Tom Tromey <tom@tromey.com>
4320
4321 PR rust/21764:
4322 * rust-exp.y (convert_ast_to_expression): Add "want_type"
4323 parameter.
4324 <UNOP_SIZEOF>: Split into separate case.
4325 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
4326
65547233
TT
43272017-07-14 Tom Tromey <tom@tromey.com>
4328
4329 PR rust/21763:
4330 * symtab.c (symbol_matches_domain): Add language_rust to special
4331 case.
4332 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
4333 treat LOC_TYPEDEF symbols as variables.
4334
8f14146e
PA
43352017-07-14 Pedro Alves <palves@redhat.com>
4336
4337 * symtab.c (make_file_symbol_completion_list_1): Iterate over
4338 symtabs matching all symtabs with SRCFILE as file name instead of
4339 only considering the first hit, with lookup_symtab.
4340
2347965c
SM
43412017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4342
4343 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
4344 operator_name parameters.
4345 (gen_expr): Update function call.
4346
40f4af28
SM
43472017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4348
4349 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
4350 parameter.
4351 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
4352 Likewise.
4353 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
4354 parameter, use agent_expr::gdbarch instead, update function
4355 calls.
4356 (locexpr_tracepoint_var_ref): Likewise.
4357 (loclist_tracepoint_var_ref): Likewise.
4358 * ax-gdb.c (gen_trace_static_fields): Likewise.
4359 (gen_traced_pop): Likewise.
4360 (gen_frame_args_address): Likewise.
4361 (gen_frame_locals_address): Likewise.
4362 (gen_var_ref): Likewise.
4363 (gen_struct_ref_recursive): Likewise.
4364 (gen_static_field): Likewise.
4365 (gen_maybe_namespace_elt): Likewise.
4366 (gen_expr): Likewise.
4367 (gen_trace_for_var): Likewise.
4368 (gen_trace_for_expr): Likewise.
4369 (gen_trace_for_return_address): Likewise.
4370
053f8057
SM
43712017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4372
4373 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
4374 parameter.
4375 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
4376
6661ad48
SM
43772017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4378
4379 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
4380 from ax, update calls.
4381 (gen_usual_arithmetic): Likewise.
4382 (gen_integral_promotions): Likewise.
4383 (gen_bitfield_ref): Likewise.
4384 (gen_primitive_field): Likewise.
4385 (gen_struct_ref_recursive): Likewise.
4386 (gen_struct_ref): Likewise.
4387 (gen_maybe_namespace_elt): Likewise.
4388 (gen_struct_elt_for_reference): Likewise.
4389 (gen_namespace_elt): Likewise.
4390 (gen_aggregate_elt_ref): Likewise.
4391 (gen_expr): Get gdbarch from ax, update calls.
4392 (gen_expr_binop_rest): Likewise.
4393
c55a47e7
PA
43942017-07-13 Pedro Alves <palves@redhat.com>
4395
4396 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
4397 as default tdesc.
4398 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
4399 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
4400 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
4401 tdesc_amd64_linux as default tdesc. Get final tdesc from the
4402 tdep.
4403 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
4404 Get final tdesc from the tdep.
4405 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
4406 default tdesc.
4407 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4408 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4409 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
4410 Use it as default tdesc.
4411 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
4412 down to amd_init_abi. No longer handle fallback tdesc here.
4413 * amd64-tdep.h (tdesc_x32): Declare.
4414 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
4415 parameter.
4416 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
4417 as default tdesc.
4418
55efceab
AA
44192017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4420
4421 * s390-linux-tdep.c (s390_process_record): Add support for
4422 instructions new in arch12.
4423
0aa37b65
JB
44242017-07-11 John Baldwin <jhb@FreeBSD.org>
4425
4426 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4427 PT_GETFSBASE and PT_GETGSBASE.
4428 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
4429 PT_SETGSBASE.
4430
48aeef91
JB
44312017-07-11 John Baldwin <jhb@FreeBSD.org>
4432
4433 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
4434 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
4435 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
4436 those rules.
4437 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
4438 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
4439 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
4440 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
4441 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
4442 * features/i386/amd64.xml: Add 64bit-segments.xml.
4443 * features/i386/amd64-avx-avx512.c: Regenerated.
4444 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
4445 * features/i386/amd64-avx-mpx.c: Regenerated.
4446 * features/i386/amd64-avx.c: Regenerated.
4447 * features/i386/amd64-mpx.c: Regenerated.
4448 * features/i386/amd64.c: Regenerated.
4449 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
4450 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4451 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
4452 * regformats/i386/amd64-avx.dat: Regenerated.
4453 * regformats/i386/amd64-mpx.dat: Regenerated.
4454 * regformats/i386/amd64.dat: Regenerated.
4455
77c501bc
YQ
44562017-07-10 Yao Qi <yao.qi@linaro.org>
4457
4458 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4459 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4460
6dc8d757
AK
44612017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
4462
4463 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
4464 unsetenv.
4465 * gnulib/aclocal.m4: Regenerate.
4466 * gnulib/config.in: Regenerate.
4467 * gnulib/configure: Regenerate.
4468 * gnulib/import/Makefile.am: Regenerate.
4469 * gnulib/import/Makefile.in: Regenerate.
4470 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4471 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4472 * gnulib/import/m4/environ.m4: New file.
4473 * gnulib/import/m4/setenv.m4: New file.
4474 * gnulib/import/setenv.c: New file.
4475 * gnulib/import/unsetenv.c: New file.
4476
266934d1
SM
44772017-07-09 Simon Marchi <simon.marchi@ericsson.com>
4478
4479 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
4480 address when op is DW_OP_addr.
4481
03278692
TT
44822017-07-09 Tom Tromey <tom@tromey.com>
4483
4484 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
4485 check and apply to outer type.
4486
4b654465
JB
44872017-07-07 John Baldwin <jhb@FreeBSD.org>
4488
4489 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
4490 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
4491 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
4492 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
4493
2af9fc44
JB
44942017-07-07 John Baldwin <jhb@FreeBSD.org>
4495
4496 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
4497
382b69bb
JB
44982017-07-07 John Baldwin <jhb@FreeBSD.org>
4499
4500 * corelow.c (get_core_siginfo): Remove.
4501 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
4502 instead of get_core_siginfo.
4503 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
4504 * gdbarch.h: Re-generate.
4505 * gdbarch.c: Re-generate.
4506 * linux-tdep.c (linux_core_xfer_siginfo): New.
4507 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
4508
6e5eab33
JB
45092017-07-07 John Baldwin <jhb@FreeBSD.org>
4510
4511 * corelow.c (thread_section_name): Move to ...
4512 * gdbcore.h (thread_section_name): ... here.
4513
929edea9
JB
45142017-07-07 John Baldwin <jhb@FreeBSD.org>
4515
4516 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
4517 (struct siginfo32): New.
4518 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
4519 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
4520 via ptrace(PT_LWPINFO).
4521
762c974a
JB
45222017-07-07 John Baldwin <jhb@FreeBSD.org>
4523
4524 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
4525 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
4526 (fbsd_get_siginfo_type): New.
4527 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4528 (_initialize_fbsd_tdep): New.
4529
33c5cd75
DB
45302017-07-06 David Blaikie <dblaikie@gmail.com>
4531
4532 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
4533 a singular dwo_unit*) to support multiple CUs in the same way that
4534 multiple TUs are supported.
4535 (create_cus_hash_table): Replace create_dwo_cu with a function for
4536 parsing multiple CUs from a DWO file.
4537 (open_and_init_dwo_file): Use create_cus_hash_table rather than
4538 create_dwo_cu.
4539 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
4540 htab_find, rather than comparing the signature to a singleton CU in
4541 the dwo_file.
4542
8455d262
PA
45432017-07-06 Pedro Alves <palves@redhat.com>
4544
4545 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
4546
4da3eb35
PA
45472017-07-04 Pedro Alves <palves@redhat.com>
4548
4549 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
4550 * gdbtypes.h (TYPE_STATIC): Delete.
4551 (struct fn_field) <is_public, is_abstract, is_static, is_final,
4552 is_synchronized, is_native>: Delete.
4553 <dummy>: Bump.
4554 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
4555 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
4556 (TYPE_FN_FIELD_ABSTRACT): Delete.
4557
5bfd255c
SM
45582017-07-03 Simon Marchi <simon.marchi@ericsson.com>
4559
4560 * buffer.h (buffer_finish): Fix spelling mistakes.
4561
25c54127
EZ
45622017-07-01 Eli Zaretskii <eliz@gnu.org>
4563
4564 * .dir-locals.el: Automatically switch to C-style comments in
4565 versions of Emacs that support the feature.
4566
dc4bde35
SDJ
45672017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4568 Pedro Alves <palves@redhat.com>
4569
4570 PR cli/21688
4571 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
4572 (process_next_line): New variable 'inline_cmd'.
4573 Adjust 'if' clauses for "python", "compile" and "guile" to use
4574 'command_name_equals' and check for '!inline_cmd'.
4575
51ed89aa
SDJ
45762017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4577
4578 PR cli/21688
4579 * cli/cli-script.c (command_name_equals_not_inline): New function.
4580 (process_next_line): Adjust 'if' clauses for "python", "compile"
4581 and "guile" to use command_name_equals_not_inline.
4582
eb17d413
PA
45832017-06-29 Pedro Alves <palves@redhat.com>
4584
4585 * completer.c (expression_completer): Call
4586 linespec_location_completer instead of location_completer.
4587
195bcdd5
PA
45882017-06-29 Pedro Alves <palves@redhat.com>
4589
4590 * completer.c (expression_completer): Remove code that recomputes
4591 'text' from 'word'.
4592
adc764e7
YQ
45932017-06-29 Yao Qi <yao.qi@linaro.org>
4594
4595 * regformats/regdat.sh: Generate code with
4596 "ifndef IN_PROCESS_AGENT".
4597
6e75794e
PA
45982017-06-28 Pedro Alves <palves@redhat.com>
4599
4600 * command.h: Include "common/scoped_restore.h".
4601
bc491f2e
YQ
46022017-06-28 Yao Qi <yao.qi@linaro.org>
4603
4604 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
4605 instead of obstack_grow.
4606
41664b45
DG
46072017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
4608
4609 PR gdb/21337
4610 * symfile.c (reread_symbols): Call objfiles_changed just before
4611 read_symbols.
4612
6da67eb1
PA
46132017-06-27 Pedro Alves <palves@redhat.com>
4614
4615 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
4616 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
4617 (completion_list_add_symbol, completion_list_add_msymbol):
4618 ... these new functions.
4619 (add_symtab_completions)
4620 (default_make_symbol_completion_list_break_on_1): Adjust.
4621
23732b1e
PA
46222017-06-27 Pedro Alves <palves@redhat.com>
4623
4624 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
4625 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
4626 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
4627 dtor.
4628 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
4629 'storage_obstack' field an auto_obstack. In-class initialize all
4630 non-bitfield fields. Make minsyms_read bool.
4631 * symfile.c (read_symbols): Adjust.
4632
a4d1e79a
AH
46332017-06-27 Alan Hayward <alan.hayward@arm.com>
4634
4635 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
4636 (gdbsim_store_register): Likewise.
4637
8268c778
PA
46382017-06-27 Pedro Alves <palves@redhat.com>
4639
4640 * c-exp.y (name_obstack): Now an auto_obstack.
4641 (yylex): Use auto_obstack::clear.
4642 (c_parse): Use auto_obstack::clear instead of reinitializing and
4643 freeing the obstack.
4644 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
4645 * d-exp.y (name_obstack): Now an auto_obstack.
4646 (yylex): Use auto_obstack::clear.
4647 (d_parse): Use auto_obstack::clear instead of reinitializing and
4648 freeing the obstack.
4649 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
4650 auto_obstack.
4651 * dwarf2read.c (create_addrmap_from_index)
4652 (dwarf2_build_psymtabs_hard)
4653 (update_enumeration_type_from_children): Likewise.
4654 * gdb_obstack.h (auto_obstack): New type.
4655 * go-exp.y (name_obstack): Now an auto_obstack.
4656 (build_packaged_name): Use auto_obstack::clear.
4657 (go_parse): Use auto_obstack::clear instead of reinitializing and
4658 freeing the obstack.
4659 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
4660 auto_obstack.
4661 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
4662 * rust-exp.y (work_obstack): Now an auto_obstack.
4663 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
4664 reinitializing and freeing the obstack.
4665 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
4666 (host_char_to_target): Use auto_obstack.
4667 * utils.h (make_cleanup_obstack_free): Delete declaration.
4668 * valprint.c (generic_emit_char, generic_printstr): Use
4669 auto_obstack.
4670
db665f42
SM
46712017-06-27 Simon Marchi <simon.marchi@ericsson.com>
4672
4673 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
4674 thread.
4675 (darwin_init_thread_list): Don't update dummy thread.
4676 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
4677
873c0814
SM
46782017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4679
4680 * record-full.c (netorder16): Remove.
4681
8b5a7a6e
SM
46822017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4683
4684 * common/diagnostics.h: Define macros for GCC.
4685 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
4686 * common/vec.h: Include diagnostics.h.
4687 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
4688 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
4689 warning.
4690
d1435379
SM
46912017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4692
4693 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
4694 New macro.
4695 * ada-lex.l: Ignore deprecated register warnings.
4696
cc75e0fd
SM
46972017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4698
4699 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
4700 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
4701
07809eaf
SM
47022017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4703
4704 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
4705 its own line.
4706
f076f034
SM
47072017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4708
4709 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
4710
0dd5cbc5
AH
47112017-06-23 Alan Hayward <alan.hayward@arm.com>
4712
4713 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
4714 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
4715 (xtensa_register_read_masked): Likewise.
4716
d4c6ce5b
SDJ
47172017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
4718
4719 * common/environ.c (gdb_environ::unset): Update comment.
4720
16892a03
AH
47212017-06-22 Alan Hayward <alan.hayward@arm.com>
4722
4723 * python/py-unwind.c (pyuw_sniffer): Allocate space for
4724 registers.
4725
d7dcbefc
AH
47262017-06-22 Alan Hayward <alan.hayward@arm.com>
4727
4728 * record-full.c (record_full_exec_insn): Use byte_vector.
4729
b30ff123
YQ
47302017-06-22 Yao Qi <yao.qi@linaro.org>
4731
4732 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
4733 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4734
4fa847d7
AH
47352017-06-22 Alan Hayward <alan.hayward@arm.com>
4736
4737 * remote.c (cached_reg): Move from here...
4738 * regcache.h (cached_reg): ...to here.
4739 * python/py-unwind.c (struct reg_info): Remove.
4740 (cached_frame_info): Use cached_reg_t.
4741 (pyuw_prev_register): Likewise.
4742 (pyuw_sniffer): Use cached_reg_t and allocate registers.
4743 (pyuw_dealloc_cache): Free all registers.
4744
f4906a9a
PA
47452017-06-22 Pedro Alves <palves@redhat.com>
4746 Simon Marchi <simon.marchi@ericsson.com>
4747
4748 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
4749 warning.
4750 * common/diagnostics.h: New file.
4751
b45a1208
PA
47522017-06-22 Pedro Alves <palves@redhat.com>
4753
4754 * common/agent.h: Add include guards.
4755
e4da2c61
SM
47562017-06-21 Simon Marchi <simon.marchi@ericsson.com>
4757
4758 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
4759 talk about addressable units instead of bytes.
4760
96160d60
SDJ
47612017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4762
4763 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
4764 of '::const_iterator'.
4765
9a6c7d9c
SDJ
47662017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4767
4768 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4769 'unittests/environ-selftests.c'.
4770 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
4771 * charset.c (find_charset_names): Declare object 'iconv_env'.
4772 Update code to use 'iconv_env' object. Remove call to
4773 'free_environ'.
4774 * common/environ.c: Include <utility>.
4775 (make_environ): Delete function.
4776 (free_environ): Delete function.
4777 (gdb_environ::clear): New function.
4778 (gdb_environ::operator=): New function.
4779 (gdb_environ::get): Likewise.
4780 (environ_vector): Delete function.
4781 (set_in_environ): Delete function.
4782 (gdb_environ::set): New function.
4783 (unset_in_environ): Delete function.
4784 (gdb_environ::unset): New function.
4785 (gdb_environ::envp): Likewise.
4786 * common/environ.h: Include <vector>.
4787 (struct gdb_environ): Delete; transform into...
4788 (class gdb_environ): ... this class.
4789 (free_environ): Delete prototype.
4790 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
4791 environ_vector): Likewise.
4792 * infcmd.c (run_command_1): Update code to call
4793 'envp' from 'gdb_environ' class.
4794 (environment_info): Update code to call methods from 'gdb_environ'
4795 class.
4796 (unset_environment_command): Likewise.
4797 (path_info): Likewise.
4798 (path_command): Likewise.
4799 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
4800 (inferior::inferior): Initialize 'environment' using the host's
4801 information.
4802 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
4803 Include "environ.h".
4804 (class inferior) <environment>: Change type from 'struct
4805 gdb_environ' to 'gdb_environ'.
4806 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
4807 methods from 'gdb_environ' class.
4808 * solib.c (solib_find_1): Likewise
4809 * unittests/environ-selftests.c: New file.
4810
75c554cf
YQ
48112017-06-20 Yao Qi <yao.qi@linaro.org>
4812
4813 * features/i386/i386-linux.xml: Exchange the order of including
4814 32bit-linux.xml and 32bit-sse.xml.
4815 * features/i386/i386-linux.c: Regenerated.
4816
72ddacb7
YQ
48172017-06-20 Yao Qi <yao.qi@linaro.org>
4818
4819 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
4820 Delete copy ctor and assignment operator.
4821 (tdesc_type): Likewise.
4822 (tdesc_feature): Likewise.
4823 (tdesc_free_reg): Remove.
4824 (tdesc_create_reg): Use new.
4825 (tdesc_free_type): Remove.
4826 (tdesc_create_vector): Use new.
4827 (tdesc_create_union): Likewise.
4828 (tdesc_create_flags): Likewise.
4829 (tdesc_create_enum): Likewise.
4830 (tdesc_free_feature): Delete.
4831 (free_target_description): Use delete.
4832
325c9fd4
JB
48332017-06-19 John Baldwin <jhb@FreeBSD.org>
4834
4835 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
4836 registers.
4837
16b7a719
PA
48382017-06-19 Pedro Alves <palves@redhat.com>
4839
4840 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
4841 after gdb::unlinker.
4842
1c8e01c9
SDJ
48432017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
4844
4845 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
4846 gdb_environ to access an environment variable.
4847
ffce45d2
TP
48482017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
4849
4850 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
4851 gdb_byte*.
4852
1d4fbac9
SM
48532017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4854
4855 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
4856
8465943a
SM
48572017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4858
4859 * configure: Re-generate.
4860 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
4861
3e019bdc
SM
48622017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4863
4864 * configure: Re-generate.
4865 * warning.m4: Pass -Werror to compiler when checking for
4866 supported warning flags.
4867
cf0dd6f0
SM
48682017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4869
4870 * Makefile.in (COMPILE.pre): Add "-x c++".
4871
6f98355c
YQ
48722017-06-16 Alan Hayward <alan.hayward@arm.com>
4873 Pedro Alves <palves@redhat.com>
4874 Yao Qi <yao.qi@linaro.org>
4875
4876 * defs.h (RequireLongest): New.
4877 (extract_integer): Declare function template.
4878 (extract_signed_integer): Remove the declaration, but define it
4879 static inline.
4880 (extract_unsigned_integer): Likewise.
4881 (store_integer): Declare function template.
4882 (store_signed_integer): Remove the declaration, but define it
4883 static inline.
4884 (store_unsigned_integer): Likewise.
4885 * findvar.c (extract_integer): New function template.
4886 (extract_signed_integer): Remove.
4887 (extract_unsigned_integer): Remove.
4888 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
4889 instantiations.
4890 (store_integer): New function template.
4891 (store_signed_integer): Remove.
4892 (store_unsigned_integer): Remove.
4893 (store_integer): Explicit instantiations.
4894 * regcache.c (regcache_raw_read_signed): Update.
4895 (regcache::raw_read): New function.
4896 (regcache::raw_read_signed): Remove.
4897 (regcache::raw_read_unsigned): Remove.
4898 (regcache_raw_read_unsigned): Update.
4899 (regcache_raw_write_unsigned): Update.
4900 (regcache::raw_write_signed): Remove.
4901 (regcache::raw_write): New function.
4902 (regcache_cooked_read_signed): Update.
4903 (regcache::raw_write_unsigned): Remove.
4904 (regcache::cooked_read_signed): Remove.
4905 (regcache_cooked_read_unsigned): Update.
4906 (regcache::cooked_read_unsigned): Remove.
4907 (regcache_cooked_write_signed): Update.
4908 (regcache_cooked_write_unsigned): Update.
4909 * regcache.h (regcache) <raw_read_signed>: Remove.
4910 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
4911 <raw_read, raw_write>: New.
4912 <cooked_read_signed, cooked_write_signed>: Remove.
4913 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
4914 <cooked_read, cooked_write>: New.
4915 * sh64-tdep.c (sh64_pseudo_register_read): Update.
4916 (sh64_pseudo_register_write): Update.
4917
a87dc45a
AK
49182017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
4919
4920 * arc-tdep.c (arc_disassembler_options): New variable.
4921 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
4922 of default_print_insn.
4923 (arc_delayed_print_insn): Set info->section when needed,
4924 use default_print_insn to retrieve a disassembler.
4925
45159d6a
SDJ
49262017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
4927
4928 PR gdb/21574
4929 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
4930 to mention $SHELL and startup-with-shell.
4931
b46c4cf0
MF
49322017-06-14 Max Filippov <jcmvbkbc@gmail.com>
4933
4934 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
4935
6394c606
YQ
49362017-06-14 Yao Qi <yao.qi@linaro.org>
4937
4938 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
4939 default_print_insn instead of print_insn_aarch64.
4940 * arm-tdep.c (gdb_print_insn_arm): Call
4941 default_print_insn instead of print_insn_big_arm
4942 and print_insn_little_arm.
4943 * i386-tdep.c (i386_print_insn): Call default_print_insn
4944 instead of print_insn_i386.
4945 * ia64-tdep.c (ia64_print_insn): Call
4946 default_print_insn instead of print_insn_ia64.
4947 * mips-tdep.c (gdb_print_insn_mips): Call
4948 default_print_insn instead of print_insn_big_mips
4949 and print_insn_little_mips.
4950 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
4951 instead of print_insn_spu.
4952
d5722aa2
PA
49532017-06-14 Pedro Alves <palves@redhat.com>
4954
4955 * ada-lang.c: Include "common/byte-vector.h".
4956 (ada_value_primitive_packed_val): Use gdb::byte_vector.
4957 * charset.c (wchar_iterator::iterate): Resize the vector instead
4958 of reserving it.
4959 * common/byte-vector.h: Include "common/def-vector.h".
4960 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
4961 * cli/cli-dump.c: Include "common/byte-vector.h".
4962 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
4963 * common/byte-vector.h: New file.
4964 * common/def-vector.h: New file.
4965 * common/default-init-alloc.h: New file.
4966 * dwarf2loc.c: Include "common/byte-vector.h".
4967 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
4968 instead of reserving it.
4969 * dwarf2read.c: Include "common/byte-vector.h".
4970 (data_buf::m_vec): Now a gdb::byte_vector.
4971 * gdb_regex.c: Include "common/def-vector.h".
4972 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
4973 * mi/mi-main.c: Include "common/byte-vector.h".
4974 (mi_cmd_data_read_memory): Use gdb::byte_vector.
4975 * printcmd.c: Include "common/byte-vector.h".
4976 (print_scalar_formatted): Use gdb::byte_vector.
4977 * valprint.c: Include "common/byte-vector.h".
4978 (maybe_negate_by_bytes, print_decimal_chars): Use
4979 gdb::byte_vector.
4980
01ec7a27
SM
49812017-06-13 Simon Marchi <simon.marchi@ericsson.com>
4982
4983 * darwin-nat.c: Include "nat/fork-inferior.h".
4984
848d9074
SM
49852017-06-13 Simon Marchi <simon.marchi@ericsson.com>
4986
4987 * configure.nat: Factor out Darwin bits that are not
4988 architecture-specific. Add fork-inferior.o.
4989
3b912944
SM
49902017-06-13 Simon Marchi <simon.marchi@ericsson.com>
4991
4992 * configure.nat: Factor out AIX bits that are not
4993 architecture-specific. Add fork-inferior.o.
4994
55acdf22
AA
49952017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4996
4997 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
4998 (read_pieced_value, write_pieced_value): ...here. Reduce to
4999 wrappers that just call rw_pieced_value.
5000
f65e2044
AA
50012017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5002
5003 * dwarf2loc.c (write_pieced_value): When writing the data for a
5004 memory piece, use write_memory_with_notification instead of
5005 write_memory.
5006
23f945bf
AA
50072017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5008
5009 * valops.c (read_value_memory): Change embedded_offset to
5010 represent a bit offset instead of a byte offset.
5011 * value.h (read_value_memory): Adjust comment.
5012
f236533e
AA
50132017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5014
5015 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
5016 dest_offset_bits and source_offset_bits.
5017 (write_pieced_value): Likewise.
5018
65d84b76
AA
50192017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5020
5021 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
5022 given by DW_OP_bit_piece.
5023 (write_pieced_value): Likewise.
5024
242d31ab
AA
50252017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5026
5027 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
5028 some other preparations to the places where sufficient information
5029 is available.
5030 (write_pieced_value): Likewise.
5031
03c8af18
AA
50322017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5033
5034 * dwarf2loc.c (bits_to_bytes): New function.
5035 (read_pieced_value): Fix offset calculations for register pieces
5036 on big-endian targets.
5037 (write_pieced_value): Likewise.
5038
840989c1
AA
50392017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5040
5041 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
5042 (write_pieced_value): Likewise.
5043
359b19bb
AA
50442017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5045
5046 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
5047 transfer the source value's least significant bits, instead of its
5048 lowest-addressed ones. Rename type_len to max_offset.
5049 (read_pieced_value): Mirror above changes to write_pieced_value as
5050 applicable.
5051
07c9ca3b
AA
50522017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5053
5054 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
5055 truncate full bytes from dest_offset_bits before using it as an
5056 offset into the buffer.
5057
f1cc9874
AA
50582017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5059
5060 * dwarf2loc.c (write_pieced_value): Include transfer size in
5061 byte-wise check.
5062
cdaac320
AA
50632017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5064
5065 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
5066 calculation of this_size.
5067
af547a96
AA
50682017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5069
5070 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
5071 when targeting a bit-field.
5072 (write_pieced_value): Likewise.
5073
ddd7882a
AA
50742017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5075
5076 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
5077 (allocate_piece_closure): Drop addr_size parameter.
5078 (dwarf2_evaluate_loc_desc_full): Adjust call to
5079 allocate_piece_closure.
5080
e9352324
AA
50812017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5082
5083 PR gdb/21226
5084 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
5085 the LSB end, independent of endianness.
5086
d5d1163e
AA
50872017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5088
5089 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
5090 size capping.
5091
032bb6ea
YQ
50922017-06-13 Yao Qi <yao.qi@linaro.org>
5093
5094 * mips-linux-nat.c: Move include features/mips*-linux.c to
5095 mips-linux-tdep.c.
5096 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
5097 to mips-linux-tdep.c.
5098 * mips-linux-tdep.c: Include features/mips*-linux.c
5099 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
5100 functions.
5101 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
5102 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
5103 (tdesc_mips64_dsp_linux): Declare.
5104
f12f6bad
TT
51052017-06-12 Tom Tromey <tom@tromey.com>
5106
5107 * valprint.h (val_print_type_code_int): Remove.
5108 * valprint.c (generic_val_print_int): Always call
5109 val_print_scalar_formatted.
5110 (val_print_type_code_int): Remove.
5111 * printcmd.c (print_scalar_formatted): Handle options->format==0.
5112 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
5113 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
5114 * ada-valprint.c (ada_val_print_num): Use
5115 val_print_scalar_formatted.
5116
d9109c80
TT
51172017-06-12 Tom Tromey <tom@tromey.com>
5118
5119 * printcmd.c (print_scalar_formatted): Unify the two switches.
5120 Don't convert scalars to LONGEST.
5121
4ac0cb1c
TT
51222017-06-12 Tom Tromey <tom@tromey.com>
5123
5124 PR exp/16225:
5125 * valprint.h (print_decimal_chars): Update.
5126 * valprint.c (maybe_negate_by_bytes): New function.
5127 (print_decimal_chars): Add "is_signed" argument.
5128 * printcmd.c (print_scalar_formatted): Update.
5129
30a25466
TT
51302017-06-12 Tom Tromey <tom@tromey.com>
5131
5132 PR exp/16225:
5133 * valprint.h (print_binary_chars, print_hex_chars): Update.
5134 * valprint.c (val_print_type_code_int): Update.
5135 (print_binary_chars): Add "zero_pad" argument.
5136 (emit_octal_digit): New function.
5137 (print_octal_chars): Don't zero-pad.
5138 (print_decimal_chars): Likewise.
5139 (print_hex_chars): Add "zero_pad" argument.
5140 * sh64-tdep.c (sh64_do_fp_register): Update.
5141 * regcache.c (regcache::dump): Update.
5142 * printcmd.c (print_scalar_formatted): Update.
5143 * infcmd.c (default_print_one_register_info): Update.
5144
b3464d03
PA
51452017-06-12 Pedro Alves <palves@redhat.com>
5146 Alan Hayward <alan.hayward@arm.com>
5147
5148 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
5149 (mips_eabi_push_dummy_call): Rename local 'regsize' to
5150 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
5151 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
5152 Assert that abi_regsize bytes fit in 'ref_valbuf'.
5153
4b76cda9
PA
51542017-06-12 Pedro Alves <palves@redhat.com>
5155
5156 * dwarf2read.c (mapped_symtab::data): Now a vector of
5157 symtab_index_entry instead of vector of
5158 std::unique_ptr<symtab_index_entry>. All users adjusted to check
5159 whether an element's name is NULL instead of checking whether the
5160 element itself is NULL.
5161 (find_slot): Change return type. Adjust.
5162 (hash_expand, , add_index_entry, uniquify_cu_indices)
5163 (write_hash_table): Adjust.
5164
e8f8bcb3
PA
51652017-06-12 Pedro Alves <palves@redhat.com>
5166
5167 * dwarf2read.c (recursively_count_psymbols): New function.
5168 (write_psymtabs_to_index): Call it to compute number of psyms and
5169 pass estimate size of psyms_seen to unordered_set's ctor.
5170
70a1152b
PA
51712017-06-12 Pedro Alves <palves@redhat.com>
5172
5173 * dwarf2read.c (write_hash_table): Check if key already exists
5174 before emplacing.
5175
c2f134ac
PA
51762017-06-12 Pedro Alves <palves@redhat.com>
5177
5178 * dwarf2read.c (data_buf::append_space): Rename to...
5179 (data_buf::grow): ... this, and make private. Adjust all callers.
5180 (data_buf::append_uint): New method.
5181 (add_address_entry, write_one_signatured_type)
5182 (write_psymtabs_to_index): Use it.
5183
a81e6d4d
PA
51842017-06-12 Pedro Alves <palves@redhat.com>
5185
5186 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
5187 (file_write (FILE *, const std::vector<Elem>&)): Delete.
5188 (data_buf::file_write): Call ::fwrite directly.
5189
6fd931f2
PA
51902017-06-12 Pedro Alves <palves@redhat.com>
5191
5192 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
5193 std::vector::erase.
5194
bc8f2430
JK
51952017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5196
5197 Code cleanup: C++ify .gdb_index producer.
5198 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
5199 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
5200 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
5201 (create_strtab, add_string): Remove.
5202 (file_write, data_buf): New.
5203 (struct symtab_index_entry): Use std::vector for cu_indices.
5204 (struct mapped_symtab): Use std::vector for data.
5205 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
5206 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
5207 Remove.
5208 (find_slot): Change return type. Update it to the new data structures.
5209 (hash_expand, add_index_entry): Update it to the new data structures.
5210 (offset_type_compare): Remove.
5211 (uniquify_cu_indices): Update it to the new data structures.
5212 (c_str_view, c_str_view_hasher, vector_hasher): New.
5213 (add_indices_to_cpool): Remove.
5214 (write_hash_table): Update it to the new data structures.
5215 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
5216 (eq_psymtab_cu_index): Remove.
5217 (psym_index_map): New typedef.
5218 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
5219 reference and std::unordered_map for cu_index_htab.
5220 (add_address_entry, add_address_entry_worker, write_address_map)
5221 (write_psymbols): Update it to the new data structures.
5222 (write_obstack): Remove.
5223 (struct signatured_type_index_data): Change types_list to a data_buf
5224 reference and psyms_seen to a std::unordered_set reference.
5225 (write_one_signatured_type, recursively_write_psymbols)
5226 (write_psymtabs_to_index): Update it to the new data structures.
5227
c4dcb155
SM
52282017-06-11 Simon Marchi <simon.marchi@ericsson.com>
5229
5230 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
5231 separate-debug-file commands.
5232 * symfile.h (separate_debug_file_debug): New global.
5233 * symfile.c (separate_debug_file_debug): New global.
5234 (separate_debug_file_exists, find_separate_debug_file): Add
5235 debug output.
5236 (_initialize_symfile): Add "set debug separate-debug-file"
5237 command.
5238 * build-id.c (build_id_to_debug_bfd,
5239 find_separate_debug_file_by_buildid): Add debug output.
5240
6d45d4b4
SM
52412017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5242
5243 * gdbarch.sh (displaced_step_free_closure): Remove.
5244 * gdbarch.h, gdbarch.c: Re-generate.
5245 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
5246 displaced_step_free_closure.
5247 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
5248 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5249 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5250 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
5251 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5252 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5253 * arch-utils.h (simple_displaced_step_free_closure): Remove.
5254 * arch-utils.c (simple_displaced_step_free_closure): Remove.
5255 * infrun.c (displaced_step_clear): Call xfree instead of
5256 gdbarch_displaced_step_free_closure.
5257
2f91880f
SDJ
52582017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
5259
5260 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
5261 NULL".
5262
b8b6e72f
AH
52632017-06-08 Alan Hayward <alan.hayward@arm.com>
5264
5265 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
5266 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
5267 (mn10300_push_dummy_call): Likewise.
5268
5369082e
AH
52692017-06-08 Alan Hayward <alan.hayward@arm.com>
5270
5271 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
5272
ff4ca5ac
AH
52732017-06-08 Alan Hayward <alan.hayward@arm.com>
5274
5275 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
5276
aefd8b33
SDJ
52772017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5278
5279 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
5280 able to start inferiors using a shell.
5281 (New remote packets): Announce new packet "QStartupWithShell".
5282 * remote.c: Add PACKET_QStartupWithShell.
5283 (extended_remote_create_inferior): Handle new
5284 PACKET_QStartupWithShell.
5285 (remote_protocol_features) <QStartupWithShell>: New entry for
5286 PACKET_QStartupWithShell.
5287 (_initialize_remote): Call "add_packet_config_cmd" for
5288 QStartupShell.
5289
2090129c
SDJ
52902017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5291 Pedro Alves <palves@redhat.com>
5292
5293 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
5294 and "nat/fork-inferior.h".
5295 * common/common-inferior.h: New file, with contents from
5296 "gdb/inferior.h".
5297 * commom/common-utils.c: Include "common-utils.h".
5298 (stringify_argv): New function.
5299 * common/common-utils.h (stringify_argv): New prototype.
5300 * configure.nat: Add "fork-inferior.o" as a dependency for
5301 "*linux*", "fbsd*" and "nbsd*" hosts.
5302 * corefile.c (get_exec_file): Update comment.
5303 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
5304 instead of "startup_inferior".
5305 (darwin_create_inferior): Call "add_thread_silent" after
5306 "fork_inferior".
5307 * fork-child.c: Cleanup unnecessary includes.
5308 (SHELL_FILE): Move to "common/common-fork-child.c".
5309 (environ): Likewise.
5310 (exec_wrapper): Initialize.
5311 (get_exec_wrapper): New function.
5312 (breakup_args): Move to "common/common-fork-child.c"; rename to
5313 "breakup_args_for_exec".
5314 (escape_bang_in_quoted_argument): Move to
5315 "common/common-fork-child.c".
5316 (saved_ui): New variable.
5317 (prefork_hook): New function.
5318 (postfork_hook): Likewise.
5319 (postfork_child_hook): Likewise.
5320 (gdb_startup_inferior): Likewise.
5321 (fork_inferior): Move to "common/common-fork-child.c". Update
5322 function to support gdbserver.
5323 (startup_inferior): Likewise.
5324 * gdbcore.h (get_exec_file): Remove declaration.
5325 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
5326 instead of "startup_inferior". Call "add_thread_silent" after
5327 "fork_inferior".
5328 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
5329 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
5330 instead of "startup_inferior". Call "add_thread_silent" after
5331 "fork_inferior".
5332 * inferior.h: Include "common-inferior.h".
5333 (trace_start_error): Move to "common/common-utils.h".
5334 (trace_start_error_with_name): Likewise.
5335 (fork_inferior): Move prototype to "nat/fork-inferior.h".
5336 (startup_inferior): Likewise.
5337 (gdb_startup_inferior): New prototype.
5338 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
5339 * nat/fork-inferior.h: New file.
5340 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
5341 instead of "startup_inferior". Call "add_thread_silent" after
5342 "fork_inferior".
5343 * target.h (target_terminal_init): Move prototype to
5344 "target/target.h".
5345 (target_terminal_inferior): Likewise.
5346 (target_terminal_ours): Likewise.
5347 * target/target.h (target_terminal_init): New prototype, moved
5348 from "target.h".
5349 (target_terminal_inferior): Likewise.
5350 (target_terminal_ours): Likewise.
5351 * utils.c (gdb_flush_out_err): New function.
5352
043a4934
SDJ
53532017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5354
5355 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
5356 * common/common-gdbthread.h: New file, with parts from
5357 "gdb/gdbthread.h".
5358 * gdbthread.h: Include "common-gdbthread.h".
5359 (switch_to_thread): Moved to "common/common-gdbthread.h".
5360
15652511
SDJ
53612017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5362
5363 * Makefile.in (SFILES): Add "common/job-control.c".
5364 (HFILES_NO_SRCDIR): Add "common/job-control.h".
5365 (COMMON_OBS): Add "job-control.o".
5366 * common/job-control.c: New file, with contents from
5367 "gdb/inflow.c".
5368 * common/job-control.h: New file, with contents from "terminal.h".
5369 * fork-child.c: Include "job-control.h".
5370 * inflow.c: Include "job-control.h".
5371 (gdb_setpgid): Move to "common/common-inflow.c".
5372 (_initialize_inflow): Move setting of "job_control" to
5373 "handle_job_control".
5374 * terminal.h (job_control): Moved to "common/common-terminal.h".
5375 (gdb_setpgid): Likewise.
5376 * top.c: Include "job_control.h".
5377 * utils.c: Likewise.
5378 (job_control): Moved to "job-control.c".
5379
2d7cc5c7
PA
53802017-06-07 Pedro Alves <palves@redhat.com>
5381
5382 * Makefile.in (SFILES): Add gdb_regex.c.
5383 (COMMON_OBS): Add gdb_regex.o.
5384 * ada-lang.c (ada_add_standard_exceptions)
5385 (ada_add_exceptions_from_frame, name_matches_regex)
5386 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
5387 parameter type to compiled_regex. Adjust.
5388 (ada_exceptions_list): Use compiled_regex.
5389 * break-catch-throw.c (exception_catchpoint::pattern): Now a
5390 std::unique_ptr<compiled_regex>.
5391 (exception_catchpoint::~exception_catchpoint): Remove regfree
5392 call.
5393 (check_status_exception_catchpoint): Adjust to use compiled_regex.
5394 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
5395 * breakpoint.c (solib_catchpoint::compiled): Now a
5396 std::unique_ptr<compiled_regex>.
5397 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
5398 (check_status_catch_solib): Adjust to use compiled_regex.
5399 (add_solib_catchpoint): Adjust to use compiled_regex.
5400 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
5401 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
5402 compiled_regex reference. Adjust to use it.
5403 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
5404 declaration. Include "gdb_regex.h".
5405 (apropos_cmd): Change regex parameter to compiled_regex reference.
5406 * gdb_regex.c: New file.
5407 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
5408 declarations.
5409 (class compiled_regex): New.
5410 * linux-tdep.c: Include "common/gdb_optional.h".
5411 (struct mapping_regexes): New, factored out from
5412 mapping_is_anonymous_p, and adjusted to use compiled_regex.
5413 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
5414 gdb::optional and remove cleanups. Adjust to compiled_regex.
5415 * probe.c: Include "common/gdb_optional.h".
5416 (collect_probes): Use compiled_regex and gdb::optional and remove
5417 cleanups.
5418 * skip.c: Include "common/gdb_optional.h".
5419 (skiplist_entry::compiled_function_regexp): Now a
5420 gdb::optional<compiled_regex>.
5421 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
5422 (free_skiplist_entry): Remove regfree call.
5423 (compile_skip_regexp, skip_rfunction_p): Adjust to use
5424 compiled_regex and gdb::optional.
5425 * symtab.c: Include "common/gdb_optional.h".
5426 (search_symbols): Use compiled_regex and gdb::optional.
5427 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
5428 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
5429 to gdb_regex.c.
5430
50d6adef
AH
54312017-06-07 Alan Hayward <alan.hayward@arm.com>
5432
5433 * regcache.c (regcache::save): Avoid buffer use.
5434 (regcache::dump): Likewise.
5435
4a8a33c8
AH
54362017-06-07 Alan Hayward <alan.hayward@arm.com>
5437
5438 * sh-tdep.c (sh_pseudo_register_read): Remove
5439 MAX_REGISTER_SIZE.
5440 (sh_pseudo_register_write): Likewise.
5441 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
5442 (sh64_pseudo_register_write): Likewise
5443
d1be909e
AH
54442017-06-07 Alan Hayward <alan.hayward@arm.com>
5445
5446 * aarch64-tdep.c (aarch64_store_return_value): Use
5447 V_REGISTER_SIZE.
5448 (aarch64_pseudo_read_value): Likewise.
5449 (aarch64_pseudo_write): Likewise.
5450
f4a65042
YQ
54512017-06-06 Yao Qi <yao.qi@linaro.org>
5452
5453 * regformats/regdef.h (set_register_cache): Remove the
5454 declaration.
5455
9f7fb0aa
AH
54562017-06-06 Alan Hayward <alan.hayward@arm.com>
5457
5458 * frame.c (frame_unwind_register_signed): Use
5459 frame_unwind_register_value.
5460
e1e01040
PA
54612017-06-06 Pedro Alves <palves@redhat.com>
5462
5463 PR breakpoints/21553
5464 * breakpoint.c (create_breakpoints_sal_default)
5465 (init_breakpoint_sal, create_breakpoint_sal): Use
5466 gdb::unique_xmalloc_ptr for string parameters.
5467 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5468 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
5469 (base_breakpoint_create_breakpoints_sal)
5470 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
5471 (strace_marker_create_breakpoints_sal)
5472 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
5473 string parameters.
5474 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
5475 gdb::unique_xmalloc_ptr for string parameters.
5476 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5477 parameters.
5478
fbe654c8
AH
54792017-06-06 Alan Hayward <alan.hayward@arm.com>
5480
5481 * alpha-tdep.c (alpha_register_to_value): Use
5482 get_frame_register_value.
5483 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
5484
ae0d01d6
AH
54852017-06-06 Alan Hayward <alan.hayward@arm.com>
5486
5487 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
5488 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
5489 (ia64_value_to_register): Likewise.
5490 (ia64_extract_return_value): Likewise.
5491 (ia64_store_return_value): Likewise.
5492 (ia64_push_dummy_call): Likewise.
5493
49cf576c
JB
54942017-06-04 Joel Brobecker <brobecker@adacore.com>
5495
5496 GDB 8.0 released.
5497
26b6a6ab
SM
54982017-06-03 Simon Marchi <simon.marchi@ericsson.com>
5499
5500 * x86-linux-nat.c (struct arch_lwp_info): Remove.
5501
22827c51
SM
55022017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
5503
5504 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
5505 parameter.
5506 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
5507
0e05cf3a
SM
55082017-06-02 Simon Marchi <simon.marchi@ericsson.com>
5509
5510 * event-loop.c (poll_timers): Unallocate timer using delete
5511 instead of xfree.
5512
c1fc2657
SM
55132017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5514
5515 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
5516 (struct breakpoint) <~breakpoint>: New.
5517 (struct watchpoint): Inherit from breakpoint.
5518 <~watchpoint>: New.
5519 <base>: Remove.
5520 (struct tracepoint): Inherit from breakpoint.
5521 <base>: Remove.
5522 * breakpoint.c (longjmp_breakpoint_ops): Remove.
5523 (struct longjmp_breakpoint): Inherit from breakpoint.
5524 <~longjmp_breakpoint>: New.
5525 <base>: Remove.
5526 (new_breakpoint_from_type): Remove casts.
5527 (watchpoint_in_thread_scope): Remove reference to base field.
5528 (watchpoint_del_at_next_stop): Likewise.
5529 (update_watchpoint): Likewise.
5530 (watchpoint_check): Likewise.
5531 (bpstat_check_watchpoint): Likewise.
5532 (set_longjmp_breakpoint): Likewise.
5533 (struct fork_catchpoint): Inherit from breakpoint.
5534 <base>: Remove.
5535 (struct solib_catchpoint): Inherit from breakpoint.
5536 <~solib_catchpoint>: New.
5537 <base>: Remove.
5538 (dtor_catch_solib): Change to ...
5539 (solib_catchpoint::~solib_catchpoint): ... this.
5540 (breakpoint_hit_catch_solib): Remove reference to base field.
5541 (add_solib_catchpoint): Likewise.
5542 (create_fork_vfork_event_catchpoint): Likewise.
5543 (struct exec_catchpoint): Inherit from breakpoint.
5544 <~exec_catchpoint>: New.
5545 <base>: Remove.
5546 (dtor_catch_exec): Change to ...
5547 (exec_catchpoint::~exec_catchpoint): ... this.
5548 (dtor_watchpoint): Change to ...
5549 (watchpoint::~watchpoint): ... this.
5550 (watch_command_1): Remove reference to base field.
5551 (catch_exec_command_1): Likewise.
5552 (base_breakpoint_dtor): Change to ...
5553 (breakpoint::~breakpoint): ... this.
5554 (base_breakpoint_ops): Remove dtor field value.
5555 (longjmp_bkpt_dtor): Change to ...
5556 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
5557 (strace_marker_create_breakpoints_sal): Remove reference to base
5558 field.
5559 (delete_breakpoint): Don't manually call breakpoint destructor.
5560 (create_tracepoint_from_upload): Remove reference to base field.
5561 (trace_pass_set_count): Likewise.
5562 (initialize_breakpoint_ops): Don't initialize
5563 momentary_breakpoint_ops, don't set dtors.
5564 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
5565 <~ada_catchpoint>: New.
5566 <base>: Remove.
5567 (create_excep_cond_exprs): Remove reference to base field.
5568 (dtor_exception): Change to ...
5569 (ada_catchpoint::~ada_catchpoint): ... this.
5570 (dtor_catch_exception): Remove.
5571 (dtor_catch_exception_unhandled): Remove.
5572 (dtor_catch_assert): Remove.
5573 (create_ada_exception_catchpoint): Remove reference to base
5574 field.
5575 (initialize_ada_catchpoint_ops): Don't set dtors.
5576 * break-catch-sig.c (struct signal_catchpoint): Inherit from
5577 breakpoint.
5578 <~signal_catchpoint>: New.
5579 <base>: Remove.
5580 (signal_catchpoint_dtor): Change to ...
5581 (signal_catchpoint::~signal_catchpoint): ... this.
5582 (create_signal_catchpoint): Remove reference to base field.
5583 (initialize_signal_catchpoint_ops): Don't set dtor.
5584 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
5585 from breakpoint.
5586 <~syscall_catchpoint>: New.
5587 <base>: Remove.
5588 (dtor_catch_syscall): Change to ...
5589 (syscall_catchpoint::~syscall_catchpoint): ... this.
5590 (create_syscall_event_catchpoint): Remove reference to base
5591 field.
5592 (initialize_syscall_catchpoint_ops): Don't set dtor.
5593 * break-catch-throw.c (struct exception_catchpoint): Inherit
5594 from breakpoint.
5595 <~exception_catchpoint>: New.
5596 <base>: Remove.
5597 (dtor_exception_catchpoint): Change to ...
5598 (exception_catchpoint::~exception_catchpoint): ... this.
5599 (handle_gnu_v3_exceptions): Remove reference to base field.
5600 (initialize_throw_catchpoint_ops): Don't set dtor.
5601 * ctf.c (ctf_get_traceframe_address): Remove reference to base
5602 field.
5603 * remote.c (remote_get_tracepoint_status): Likewise.
5604 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
5605 * tracefile.c (tracefile_fetch_registers): Likewise.
5606 * tracepoint.c (actions_command): Likewise.
5607 (validate_actionline): Likewise.
5608 (tfind_1): Likewise.
5609 (get_traceframe_location): Likewise.
5610 (find_matching_tracepoint_location): Likewise.
5611 (parse_tracepoint_status): Likewise.
5612 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
5613
3b0871f4
SM
56142017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5615
5616 * breakpoint.c (struct longjmp_breakpoint): New struct.
5617 (is_tracepoint_type): Change return type to bool.
5618 (is_longjmp_type): New function.
5619 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
5620 (set_raw_breakpoint_without_location): Use
5621 new_breakpoint_from_type.
5622 (set_raw_breakpoint): Likewise.
5623
a5e364af
SM
56242017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5625
5626 * breakpoint.c (new_breakpoint_from_type): New function.
5627 (create_breakpoint_sal): Use new_breakpoint_from_type and
5628 unique_ptr.
5629 (create_breakpoint): Likewise.
5630
ae3b3f34
SM
56312017-05-31 Simon Marchi <simon.marchi@ericsson.com>
5632
5633 * memattr.c (mem_info_command): Rename to ...
5634 (info_mem_command): ... this.
5635 (mem_enable_command): Rename to ...
5636 (enable_mem_command): ... this.
5637 (mem_disable_command): Rename to ...
5638 (disable_mem_command): ... this.
5639 (mem_delete_command): Rename to ...
5640 (delete_mem_command): ... this.
5641 (_initialize_mem): Adjust function names.
5642
13ace077
MM
56432017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5644
5645 * btrace.c (handle_pt_insn_events): New.
5646 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
5647 STATUS. Split into this and ...
5648 (handle_pt_insn_event_flags): ... this.
5649
c56ccc05
MM
56502017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5651
5652 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
5653 and struct pt_insn.resynced.
5654 * configure: Regenerated.
5655 * config.in: Regenerated.
5656
08c3f6d2
TW
56572017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5658
5659 * btrace.c (ftrace_find_call_by_number): New function.
5660 (ftrace_new_function): Store objects, not pointers.
5661 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
5662 ftrace_new_gap, ftrace_update_function,
5663 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
5664 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
5665 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
5666 btrace_ends_with_single_insn, btrace_call_get): Account for
5667 btrace_thread_info::functions now storing objects.
5668 * btrace.h (struct btrace_thread_info): Add constructor.
5669 (struct btrace_thread_info) <functions>: Make std::vector.
5670 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
5671 Initialize with default values.
5672 * record-btrace.c (record_btrace_frame_sniffer): Account for
5673 btrace_thread_info::functions now storing objects.
5674
8ffd39f2
TW
56752017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5676
5677 * btrace.c: Remove typedef bfun_s.
5678 (ftrace_new_gap): Directly add gaps to the list of gaps.
5679 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
5680 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
5681 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
5682 instead of gdb VEC.
5683
4aeb0dfc
TW
56842017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5685
5686 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
5687 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
5688 with btrace_thread_info::next_segment and
5689 btrace_thread_info::prev_segment.
5690 * btrace.h: Remove struct btrace_func_link.
5691 (struct btrace_function): Replace pair of function segment pointers
5692 with pair of indices.
5693 * python/py-record-btrace.c (btpy_call_prev_sibling,
5694 btpy_call_next_sibling): Replace references to
5695 btrace_thread_info::segment with btrace_thread_info::next_segment and
5696 btrace_thread_info::prev_segment.
5697 * record-btrace.c (record_btrace_frame_this_id): Use
5698 btrace_find_call_by_number.
5699
eb8f2b9c
TW
57002017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5701
5702 * btrace.c (ftrace_new_function, ftrace_fixup_level,
5703 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
5704 btrace_insn_next, btrace_insn_prev): Remove references to
5705 btrace_thread_info::flow.
5706 * btrace.h (struct btrace_function): Remove FLOW.
5707
42bfe59e
TW
57082017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5709
5710 * btrace.c (ftrace_find_call_by_number): New function.
5711 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
5712 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
5713 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
5714 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
5715 index.
5716 * btrace.h (struct btrace_function): Turn UP into an index.
5717 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
5718 as an index.
5719 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
5720 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
5721 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
5722
b54b03bd
TW
57232017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5724
5725 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5726 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5727 ftrace_update_function, ftrace_compute_global_level_offset,
5728 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
5729 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
5730 btrace_insn_end, btrace_is_empty): Remove references to
5731 btrace_thread_info::begin and btrace_thread_info::end.
5732 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
5733 (struct btrace_thread_info) <functions>: Adjust comment.
5734 * record-btrace.c (record_btrace_start_replaying): Remove reference to
5735 btrace_thread_info::begin.
5736
8286623c
TW
57372017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5738
5739 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5740 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5741 ftrace_update_function): Remove arguments that implicitly were always
5742 BTINFO->END.
5743 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
5744 Don't pass BTINFO->END.
5745
a0f1b963
TW
57462017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5747
5748 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
5749 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
5750 btrace_find_insn_by_number): Replace function segment pointer with
5751 index.
5752 (btrace_insn_cmp): Simplify.
5753 * btrace.h: (struct btrace_insn_iterator) Rename index to
5754 insn_index. Replace function segment pointer with index into function
5755 segment vector.
5756 * record-btrace.c (record_btrace_call_history): Replace function
5757 segment pointer use with index.
5758 (record_btrace_frame_sniffer): Retrieve function call segment through
5759 vector.
5760 (record_btrace_set_replay): Remove defunc't safety check.
5761
f158f208
TW
57622017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5763
5764 * btrace.c (btrace_ends_with_single_insn): New function.
5765 (btrace_call_get, btrace_call_number, btrace_call_begin,
5766 btrace_call_end, btrace_call_next, btrace_call_prev,
5767 btrace_find_call_by_number): Use index into call segment vector
5768 instead of pointer.
5769 (btrace_call_cmp): Simplify.
5770 * btrace.h (struct btrace_call_iterator): Replace function call segment
5771 pointer with index into vector.
5772 * record-btrace.c (record_btrace_call_history): Use index instead of
5773 pointer.
5774
521103fd
TW
57752017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5776
5777 * btrace.c (btrace_insn_begin, btrace_insn_end,
5778 btrace_find_insn_by_number): Add btinfo to iterator.
5779 * btrace.h (struct btrace_insn_iterator): Add btinfo.
5780
17b89b34
TW
57812017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5782
5783 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
5784 and save pointers directly.
5785 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
5786 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
5787 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
5788 changed signature of functions.
5789 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
5790 (btrace_fetch): Remove code that adds btrace_function pointers to
5791 vector of btrace_functions.
5792 (btrace_clear): Simplify freeing vector of btrace_functions.
5793
2b51eddc
TW
57942017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5795
5796 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
5797 Replace VEC_* with std::vector functions.
5798 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
5799 (struct btrace_thread_info)<functions>: Change type to std::vector.
5800
db6be0d5
SM
58012017-05-30 Simon Marchi <simon.marchi@ericsson.com>
5802
5803 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
5804 "Removed targets and native configurations" up. Merge duplicate
5805 "New commands" sub-sections. Add "New options" sub-sections.
5806
b057297a
AH
58072017-05-26 Alan Hayward <alan.hayward@arm.com>
5808
5809 * defs.h (copy_integer_to_size): New declaration.
5810 * findvar.c (copy_integer_to_size): New function.
5811 (do_cint_test): New selftest function.
5812 (copy_integer_to_size_test): Likewise.
5813 (_initialize_findvar): Likewise.
5814 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
5815 (mips_fbsd_collect_reg): Use raw_collect_integer.
5816 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
5817 (mips64_fill_gregset): Use raw_collect_integer
5818 (mips64_fill_fpregset): Use raw_supply_integer.
5819 * regcache.c (regcache::raw_supply_integer): New function.
5820 (regcache::raw_collect_integer): Likewise.
5821 * regcache.h: (regcache::raw_supply_integer): New declaration.
5822 (regcache::raw_collect_integer): Likewise.
5823
b77b02a5
YQ
58242017-05-24 Yao Qi <yao.qi@linaro.org>
5825
5826 * Makefile.in (SFILES): Add gdbarch-selftests.c.
5827 (COMMON_OBS): Add gdbarch-selftests.o.
5828 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
5829 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
5830 * gdbarch-selftests.c: New file.
5831 * regcache.h (regcache) <~regcache>: Mark it virtual if
5832 GDB_SELF_TEST.
5833 <raw_write>: Likewise.
5834
e521e87e
YQ
58352017-05-24 Yao Qi <yao.qi@linaro.org>
5836
5837 * regcache.c (current_regcache): Change it to
5838 regcache::current_regcache.
5839 (regcache_observer_target_changed): Update.
5840 (regcache_thread_ptid_changed): Make it a regcache static
5841 method.
5842 (regcache_thread_ptid_changed): Update.
5843 (class regcache_access): New.
5844 (current_regcache_test): Update.
5845 (_initialize_regcache): Update.
5846 * regcache.h: Include forward_list.
5847 (regcache): Declare regcache_thread_ptid_changed and declare
5848 registers_changed_ptid as friend.
5849
d8e07dda
YQ
58502017-05-24 Yao Qi <yao.qi@linaro.org>
5851
5852 * i387-tdep.c (i387_register_to_value): Use register_size
5853 instead of TYPE_LENGTH.
5854 * m68k-tdep.c (m68k_register_to_value): Likewise.
5855
8c8f9122
YQ
58562017-05-24 Yao Qi <yao.qi@linaro.org>
5857
5858 * i387-tdep.c (i387_convert_register_p): Return false if type
5859 code isn't TYPE_CODE_FLT.
5860
68fce50f
YQ
58612017-05-24 Yao Qi <yao.qi@linaro.org>
5862
5863 * alpha-tdep.c (alpha_convert_register_p): Return true if type
5864 length is 4.
5865 (alpha_register_to_value): Remove type length check.
5866 (alpha_value_to_register): Likewise.
5867
88954b49
YQ
58682017-05-24 Yao Qi <yao.qi@linaro.org>
5869
5870 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
5871 TYPE_CODE_FLT.
5872
e3ec9b69
YQ
58732017-05-24 Yao Qi <yao.qi@linaro.org>
5874
5875 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
5876 TYPE_CODE_FLT or not.
5877
cdd238da
YQ
58782017-05-24 Yao Qi <yao.qi@linaro.org>
5879
5880 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
5881 * avr-tdep.c (avr_gdbarch_init): Likewise.
5882 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5883 * cris-tdep.c (cris_gdbarch_init): Likewise.
5884 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5885 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
5886 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
5887 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5888 * mep-tdep.c (mep_gdbarch_init): Likewise.
5889 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
5890 * mips-tdep.c (mips_gdbarch_init): Likewise.
5891 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5892 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
5893 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
5894 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5895 * v850-tdep.c (v850_gdbarch_init): Likewise.
5896
7a3929c4
YQ
58972017-05-24 Yao Qi <yao.qi@linaro.org>
5898
5899 * selftest-arch.c (tests_with_arch): Call registers_changed
5900 and reinit_frame_cache.
5901 * selftest.c (run_self_tests): Likewise.
5902
f4985dba
YQ
59032017-05-24 Yao Qi <yao.qi@linaro.org>
5904
5905 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
5906 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
5907
ab20fa4a
YQ
59082017-05-24 Yao Qi <yao.qi@linaro.org>
5909
5910 * rl78-tdep.c (rl78_gdbarch_init): Don't call
5911 set_gdbarch_print_insn.
5912
f532ab94
YQ
59132017-05-24 Yao Qi <yao.qi@linaro.org>
5914
5915 * h8300-tdep.c (h8300_gdbarch_init): Don't call
5916 set_gdbarch_print_insn.
5917
39503f82
YQ
59182017-05-24 Yao Qi <yao.qi@linaro.org>
5919
5920 * alpha-tdep.c (alpha_gdbarch_init): Don't call
5921 set_gdbarch_print_insn.
5922 * arc-tdep.c (arc_gdbarch_init): Likewise.
5923 * arch-utils.c: include dis-asm.h.
5924 (default_print_insn): New function.
5925 * arch-utils.h (default_print_insn): Declare.
5926 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
5927 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5928 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
5929 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
5930 * frv-tdep.c (frv_gdbarch_init): Likewise.
5931 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5932 * gdbarch.sh (print_insn): Use default_print_insn.
5933 * gdbarch.c: Regenerated.
5934 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
5935 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
5936 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
5937 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
5938 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
5939 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
5940 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
5941 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
5942 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
5943 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
5944 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5945 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
5946 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
5947 * mt-tdep.c (mt_gdbarch_init): Likewise.
5948 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
5949 * nios2-tdep.c (nios2_print_insn): Remove.
5950 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
5951 * rx-tdep.c (rx_gdbarch_init): Likewise.
5952 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5953 * score-tdep.c (score_print_insn): Remove.
5954 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
5955 * sh-tdep.c (sh_gdbarch_init): Likewise.
5956 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5957 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
5958 * tic6x-tdep.c (tic6x_print_insn): Remove.
5959 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
5960 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
5961 * v850-tdep.c (v850_gdbarch_init): Likewise.
5962 * vax-tdep.c (vax_gdbarch_init): Likewise.
5963 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5964 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
5965
f7241d4f
JB
59662017-05-23 John Baldwin <jhb@FreeBSD.org>
5967
5968 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
5969 (MIPS_FP0_REGNUM): Remove.
5970 (MIPS_FSR_REGNUM): Remove.
5971 (mips_fbsd_supply_fpregs): Use mips_regnum.
5972 (mips_fbsd_supply_gregs): Likewise.
5973 (mips_fbsd_collect_fpregs): Likewise.
5974 (mips_fbsd_collect_gregs): Likewise.
5975
d489d81d
JB
59762017-05-23 John Baldwin <jhb@FreeBSD.org>
5977
5978 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
5979 (getpfpregs_supplies): New function.
5980 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
5981 getfpregs_supplies.
5982 (mips_fbsd_store_inferior_registers): Likewise.
5983
e11b3cdc
PA
59842017-05-22 Pedro Alves <palves@redhat.com>
5985
5986 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
5987 maintainer.
5988
0f068fb5
AH
59892017-05-22 Alan Hayward <alan.hayward@arm.com>
5990
5991 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
5992 (store_register): Likewise.
5993 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
5994 (get_decimal_float_return_value): Likewise.
5995 (do_ppc_sysv_return_value): Likewise.
5996 (ppc64_sysv_abi_push_integer): Likewise.
5997 (ppc64_sysv_abi_push_freg): Likewise.
5998 (ppc64_sysv_abi_return_value_base): Likewise.
5999 (ppc64_sysv_abi_return_value): Likewise.
6000 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
6001 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
6002 * rs6000-nat.c: Likewise.
6003 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
6004 (rs6000_value_to_register): Likewise.
6005 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
6006
e6cf65f2
TT
60072017-05-21 Tom Tromey <tom@tromey.com>
6008
6009 PR rust/21466:
6010 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
6011 arrays as "[T]", not "[T; ]".
6012
43cc5389
TT
60132017-05-19 Tom Tromey <tom@tromey.com>
6014
6015 PR rust/21484:
6016 * rust-lang.c (exp_descriptor_rust): New function.
6017 (rust_language_defn): Use it.
6018 * p-lang.c (pascal_language_defn): Update.
6019 * opencl-lang.c (opencl_language_defn): Update.
6020 * objc-lang.c (objc_language_defn): Update.
6021 * m2-lang.c (m2_language_defn): Update.
6022 * language.h (struct language_defn)
6023 <la_watch_location_expression>: New member.
6024 * language.c (unknown_language_defn, auto_language_defn)
6025 (local_language_defn): Update.
6026 * go-lang.c (go_language_defn): Update.
6027 * f-lang.c (f_language_defn): Update.
6028 * d-lang.c (d_language_defn): Update.
6029 * c-lang.h (c_watch_location_expression): Declare.
6030 * c-lang.c (c_watch_location_expression): New function.
6031 (c_language_defn, cplus_language_defn, asm_language_defn)
6032 (minimal_language_defn): Use it.
6033 * breakpoint.c (watch_command_1): Call
6034 la_watch_location_expression.
6035 * ada-lang.c (ada_language_defn): Update.
6036
7a6e7fcc
RO
60372017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6038
6e7e1744
RO
6039 PR tui/21482
6040 * gdb_curses.h (NOMACROS): Define.
6041 (NCURSES_NOMACROS): Define.
6042
60432017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6044
6045 PR tui/21482
7a6e7fcc
RO
6046 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
6047 arg to char *.
6048 * tui/tui-wingeneral.c (box_win): Likewise.
6049 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
6050 (tui_show_source_line): Likewise.
6051 (tui_show_exec_info_content): Likewise.
6052
1933fd8e
VM
60532017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
6054
6055 * sparc-tdep.c (sparc_structure_return_p)
6056 (sparc_arg_on_registers_p): New functions.
6057 (sparc32_store_arguments): Use them.
6058 * sparc64-tdep.c (sparc64_16_byte_align_p)
6059 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
6060 Handle TYPE_CODE_ARRAY.
6061
21873064
YQ
60622017-05-17 Yao Qi <yao.qi@linaro.org>
6063
6064 * cli/cli-decode.c (add_alias_cmd): New function.
6065 * command.h (add_alias_cmd): Declare.
6066 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
6067 instead call add_alias_cmd.
6068
2b351b19
PA
60692017-05-17 Pedro Alves <palves@redhat.com>
6070
6071 * Makefile.in (nat_extra_makefile_frag): Rename to ...
6072 (nat_makefile_frag): ... this. All references updated.
6073 * configure.ac: Likewise.
6074 * configure.nat: Likewise. Enhance comments.
6075 * configure: Regenerate.
6076
5f2ad7a3
RO
60772017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6078
6079 * procfs.c (procfs_create_inferior): Change prototype to match
6080 definition.
6081
adf3dde5
EZ
60822017-05-13 Eli Zaretskii <eliz@gnu.org>
6083
6084 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
6085 C++ compiler warning.
6086
6830f270
TT
60872017-05-12 Tom Tromey <tom@tromey.com>
6088
6089 PR rust/21483:
6090 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
6091 recurse, just call value_struct_elt directly.
6092
68f2f2e3
TT
60932017-05-12 Tom Tromey <tom@tromey.com>
6094
6095 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
6096 OP_RUST_ARRAY>: Fix.
6097
256afbc2
TT
60982017-05-12 Tom Tromey <tom@tromey.com>
6099
6100 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
6101
94bb8dfe
YQ
61022017-05-09 Yao Qi <yao.qi@linaro.org>
6103
6104 * regcache.c: Include <forward_list>.
6105 (struct regcache_list): Remove.
6106 (current_regcache): Update.
6107 (get_thread_arch_aspace_regcache): Update for std::forward_list.
6108 (regcache_thread_ptid_changed): Likewise.
6109 (registers_changed_ptid): Likewise.
6110 (current_regcache_size): Likewise.
6111
8248946c
YQ
61122017-05-09 Yao Qi <yao.qi@linaro.org>
6113
6114 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
6115 (current_regcache_size): New function.
6116 (current_regcache_test): New function.
6117 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
6118
313c5961
AH
61192017-05-08 Alan Hayward <alan.hayward@arm.com>
6120
6121 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
6122 (print_gp_register_row): Use get_frame_register_value.
6123
27bfc1d1
AH
61242017-05-08 Alan Hayward <alan.hayward@arm.com>
6125
6126 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
6127 (mips_supply_fpregset): Likewise.
6128 (mips64_supply_gregset): Likewise.
6129
146e6c5c
AH
61302017-05-08 Alan Hayward <alan.hayward@arm.com>
6131
6132 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
6133 regcache->raw_supply_zeroed.
6134
e50f25ec
SDJ
61352017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6136
6137 * configure.nat: Rearrange 'case' statements to match
6138 host before cpu.
6139
21ea5acd
SDJ
61402017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6141
6142 * Makefile.in: Remove "@host_makefile_frag@". Add variables
6143 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
6144 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
6145 "@nat_extra_makefile_frag@".
6146 (Makefile): Remove dependency on "@frags@".
6147 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
6148 (data-directory/Makefile): Likewise.
6149 * config/aarch64/linux.mh: Deleted; moved contents to
6150 "gdb/configure.nat".
6151 * config/alpha/alpha-linux.mh: Likewise.
6152 * config/alpha/nbsd.mh: Likewise.
6153 * config/arm/linux.mh: Likewise.
6154 * config/arm/nbsdelf.mh: Likewise.
6155 * config/i386/cygwin.mh: Likewise.
6156 * config/i386/cygwin64.mh: Likewise.
6157 * config/i386/darwin.mh: Likewise.
6158 * config/i386/fbsd.mh: Likewise.
6159 * config/i386/fbsd64.mh: Likewise.
6160 * config/i386/go32.mh: Likewise.
6161 * config/i386/i386gnu.mh: Likewise.
6162 * config/i386/i386sol2.mh: Likewise.
6163 * config/i386/linux.mh: Likewise.
6164 * config/i386/linux64.mh: Likewise.
6165 * config/i386/mingw.mh: Likewise.
6166 * config/i386/mingw64.mh: Likewise.
6167 * config/i386/nbsd64.mh: Likewise.
6168 * config/i386/nbsdelf.mh: Likewise.
6169 * config/i386/nto.mh: Likewise.
6170 * config/i386/obsd.mh: Likewise.
6171 * config/i386/obsd64.mh: Likewise.
6172 * config/i386/sol2-64.mh: Likewise.
6173 * config/ia64/linux.mh: Likewise.
6174 * config/m32r/linux.mh: Likewise.
6175 * config/m68k/linux.mh: Likewise.
6176 * config/m68k/nbsdelf.mh: Likewise.
6177 * config/m68k/obsd.mh: Likewise.
6178 * config/m88k/obsd.mh: Likewise.
6179 * config/mips/fbsd.mh: Likewise.
6180 * config/mips/linux.mh: Likewise.
6181 * config/mips/nbsd.mh: Likewise.
6182 * config/mips/obsd64.mh: Likewise.
6183 * config/pa/linux.mh: Likewise.
6184 * config/pa/nbsd.mh: Likewise.
6185 * config/pa/obsd.mh: Likewise.
6186 * config/powerpc/aix.mh: Likewise.
6187 * config/powerpc/fbsd.mh: Likewise.
6188 * config/powerpc/linux.mh: Likewise.
6189 * config/powerpc/nbsd.mh: Likewise.
6190 * config/powerpc/obsd.mh: Likewise.
6191 * config/powerpc/ppc64-linux.mh: Likewise.
6192 * config/powerpc/spu-linux.mh: Likewise.
6193 * config/s390/linux.mh: Likewise.
6194 * config/sh/nbsd.mh: Likewise.
6195 * config/sparc/fbsd.mh: Likewise.
6196 * config/sparc/linux.mh: Likewise.
6197 * config/sparc/linux64.mh: Likewise.
6198 * config/sparc/nbsd64.mh: Likewise.
6199 * config/sparc/nbsdelf.mh: Likewise.
6200 * config/sparc/obsd64.mh: Likewise.
6201 * config/sparc/sol2.mh: Likewise.
6202 * config/tilegx/linux.mh: Likewise.
6203 * config/vax/nbsdelf.mh: Likewise.
6204 * config/vax/obsd.mh: Likewise.
6205 * config/xtensa/linux.mh: Likewise.
6206 * config/i386/i386gnu.mn: New file, with excerpts from
6207 "config/i386/i386gnu.mh".
6208 * configure: Regenerate.
6209 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
6210 *.mh files under "gdb/config".
6211 * configure.nat: New file, with contents from the
6212 "gdb/config/*/*.mh" files.
6213
7ed1acaf
TW
62142017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
6215
6216 * btrace.c (btrace_clear): Free insn vector.
6217
e13cb306
PA
62182017-05-05 Pedro Alves <palves@redhat.com>
6219
6220 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
6221 * configure: Regenerate.
6222
5ed8105e
PA
62232017-05-04 Pedro Alves <palves@redhat.com>
6224
6225 * Makefile.in (SFILES): Add progspace-and-thread.c.
6226 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
6227 (COMMON_OBS): Add progspace-and-thread.o.
6228 * breakpoint.c: Include "progspace-and-thread.h".
6229 (update_inserted_breakpoint_locations)
6230 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
6231 Use scoped_restore_current_pspace_and_thread.
6232 (create_std_terminate_master_breakpoint): Use
6233 scoped_restore_current_program_space.
6234 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
6235 (print_breakpoint_location): Use
6236 scoped_restore_current_program_space.
6237 (bp_loc_is_permanent): Use
6238 scoped_restore_current_pspace_and_thread.
6239 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
6240 (download_tracepoint_locations): Use
6241 scoped_restore_current_pspace_and_thread.
6242 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
6243 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
6244 (enum step_over_calls_kind): Moved from inferior.h.
6245 (class scoped_restore_current_thread): New class.
6246 * gdbthread.h (make_cleanup_restore_current_thread): Delete
6247 declaration.
6248 (scoped_restore_current_thread): New class.
6249 * infcmd.c: Include "common/gdb_optional.h".
6250 (continue_1, proceed_after_attach): Use
6251 scoped_restore_current_thread.
6252 (notice_new_inferior): Use scoped_restore_current_thread.
6253 * inferior.c: Include "progspace-and-thread.h".
6254 (restore_inferior, save_current_inferior): Delete.
6255 (add_inferior_command, clone_inferior_command): Use
6256 scoped_restore_current_pspace_and_thread.
6257 * inferior.h (scoped_restore_current_inferior): New class.
6258 * infrun.c: Include "progspace-and-thread.h" and
6259 "common/gdb_optional.h".
6260 (follow_fork_inferior): Use
6261 scoped_restore_current_pspace_and_thread.
6262 (scoped_restore_exited_inferior): New class.
6263 (handle_vfork_child_exec_or_exit): Use
6264 scoped_restore_exited_inferior,
6265 scoped_restore_current_pspace_and_thread,
6266 scoped_restore_current_thread and scoped_restore.
6267 (fetch_inferior_event): Use scoped_restore_current_thread.
6268 * linespec.c (decode_line_full, decode_line_1): Use
6269 scoped_restore_current_program_space.
6270 * mi/mi-main.c: Include "progspace-and-thread.h".
6271 (exec_continue): Use scoped_restore_current_thread.
6272 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
6273 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
6274 * proc-service.c (ps_pglobal_lookup): Use
6275 scoped_restore_current_program_space.
6276 * progspace-and-thread.c: New file.
6277 * progspace-and-thread.h: New file.
6278 * progspace.c (release_program_space, clone_program_space): Use
6279 scoped_restore_current_program_space.
6280 (restore_program_space, save_current_program_space)
6281 (save_current_space_and_thread): Delete.
6282 (switch_to_program_space_and_thread): Moved to
6283 progspace-and-thread.c.
6284 * progspace.h (save_current_program_space)
6285 (save_current_space_and_thread): Delete declarations.
6286 (scoped_restore_current_program_space): New class.
6287 * remote.c (remote_btrace_maybe_reopen): Use
6288 scoped_restore_current_thread.
6289 * symtab.c: Include "progspace-and-thread.h".
6290 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
6291 * thread.c (print_thread_info_1): Use
6292 scoped_restore_current_thread.
6293 (struct current_thread_cleanup): Delete.
6294 (do_restore_current_thread_cleanup)
6295 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
6296 (scoped_restore_current_thread::~scoped_restore_current_thread):
6297 ... this new dtor.
6298 (make_cleanup_restore_current_thread): Rename/convert to ...
6299 (scoped_restore_current_thread::scoped_restore_current_thread):
6300 ... this new ctor.
6301 (thread_apply_all_command): Use scoped_restore_current_thread.
6302 (thread_apply_command): Use scoped_restore_current_thread.
6303 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
6304 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
6305
f6223dbb
PA
63062017-05-04 Pedro Alves <palves@redhat.com>
6307
6308 * thread.c (make_cleanup_restore_current_thread): Move
6309 find_thread_ptid call before the is_stopped call. Assert that the
6310 thread is found. Replace is_stopped call by checking the thread's
6311 state directly. Remove unnecessary NULL-thread check.
6312
3c3ae77e
PA
63132017-05-04 Pedro Alves <palves@redhat.com>
6314
6315 * corelow.c (thread_section_name): New class.
6316 (get_core_register_section, get_core_siginfo): Use it.
6317
45eba0ab
AA
63182017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6319
6320 * corelow.c (sniff_core_bfd): Remove extra semicolon.
6321 (get_core_register_section): Remove xfree of NULL pointer.
6322
f81fdd35
AH
63232017-05-03 Alan Hayward <alan.hayward@arm.com>
6324
6325 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
6326 * regcache.c (regcache::raw_supply_zeroed): New function.
6327 * regcache.h (regcache::raw_supply_zeroed): New declaration.
6328
35837774
SM
63292017-05-03 Simon Marchi <simon.marchi@ericsson.com>
6330
6331 * gdbarch.sh: Remove commented out definition of
6332 TARGET_CHAR_BIT.
6333 * gdbarch.h: Re-generate.
6334
c94fee56
SDJ
63352017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6336
6337 * configure: Regenerate.
6338
d17f7b36
SM
63392017-05-02 Simon Marchi <simon.marchi@ericsson.com>
6340
6341 * solib-target.c (solib_target_relocate_section_addresses):
6342 Remove num_section_bases, num_bases, segment_bases variables.
6343
b560ebd6
SM
63442017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6345
6346 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
6347
f2f46dfc
SM
63482017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6349
6350 * solib-target.c: Include <vector>
6351 (struct lm_info_target) <~lm_info_target>: Remove.
6352 <segment_bases, section_bases>: Change type to
6353 std::vector<CORE_ADDR>.
6354 (library_list_start_segment, library_list_start_section,
6355 library_list_end_library,
6356 solib_target_relocate_section_addresses): Adjust.
6357
a0ff9e1a
SM
63582017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6359
6360 * gdbarch.sh (software_single_step): Change return type to
6361 std::vector<CORE_ADDR>.
6362 * gdbarch.c, gdbarch.h: Re-generate.
6363 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
6364 Adjust.
6365 (arm_deal_with_atomic_sequence_raw): Adjust.
6366 (thumb_get_next_pcs_raw): Adjust.
6367 (arm_get_next_pcs_raw): Adjust.
6368 (arm_get_next_pcs): Adjust.
6369 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
6370 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
6371 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
6372 (alpha_software_single_step): Adjust.
6373 * alpha-tdep.h (alpha_software_single_step): Adjust.
6374 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
6375 * arm-tdep.c (arm_software_single_step): Adjust.
6376 (arm_breakpoint_kind_from_current_state): Adjust.
6377 * arm-tdep.h (arm_software_single_step): Adjust.
6378 * breakpoint.c (insert_single_step_breakpoint): Adjust.
6379 * cris-tdep.c (cris_software_single_step): Adjust.
6380 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
6381 (micromips_deal_with_atomic_sequence): Adjust.
6382 (deal_with_atomic_sequence): Adjust.
6383 (mips_software_single_step): Adjust.
6384 * mips-tdep.h (mips_software_single_step): Adjust.
6385 * moxie-tdep.c (moxie_software_single_step): Adjust.
6386 * nios2-tdep.c (nios2_software_single_step): Adjust.
6387 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
6388 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
6389 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
6390 * s390-linux-tdep.c (s390_software_single_step): Adjust.
6391 * sparc-tdep.c (sparc_software_single_step): Adjust.
6392 * spu-tdep.c (spu_software_single_step): Adjust.
6393 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
6394
ea480a30
SM
63952017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6396
6397 * gdbarch.sh: Use semi-colon as field separator instead of colon.
6398 * gdbarch.h: Re-generate.
6399
d050f7d7
TW
64002017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6401
6402 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
6403 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
6404 * python/py-instruction.c, python/py-instruction.h: New file.
6405 * python/py-record.c: Add py-instruction.h include.
6406 (gdbpy_initialize_record): Make gdb.Instruction a super class of
6407 gdb.RecordInstruction.
6408 * python/python-internal.h: Add gdbpy_initialize_instruction
6409 declaration.
6410 * python/python.c (do_start_initialization): Add
6411 gdbpy_initialize_instruction.
6412
14f819c8
TW
64132017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6414
6415 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
6416 Remove.
6417 (btrace_func_from_recpy_func): New function.
6418 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
6419 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
6420 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
6421 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
6422 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
6423 Also, use new helper functions.
6424 (btpy_list_item): Use new helper functions.
6425 (recpy_bt_function_call_history): Use new type name.
6426 (btpy_call_getset): Remove.
6427 (gdbpy_initialize_btrace): Remove code to initialize
6428 gdb.BtraceFunctionCall.
6429 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
6430 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
6431 recpy_bt_func_prev, recpy_bt_func_next): New export.
6432 * python/py-record.c (recpy_func_type): New static object.
6433 (recpy_func_new, recpy_func_level, recpy_func_symbol,
6434 recpy_func_instructions, recpy_func_up, recpy_func_prev,
6435 recpy_func_next): New function.
6436 (recpy_element_hash, recpy_element_richcompare): Updated comment.
6437 (recpy_func_getset): New static object.
6438 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
6439 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
6440
0ed5da75
TW
64412017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6442
6443 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
6444 (btpy_object, btpy_insn_type, btpy_new): Remove.
6445 (btpy_list_object): Use gdb.RecordInstruction type instead of
6446 gdb.BtraceInstruction type.
6447 (btrace_insn_from_recpy_insn): New function.
6448 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
6449 btpy_new.
6450 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
6451 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
6452 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
6453 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
6454 instead of btpy_object.
6455 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6456 btpy_insn_data, btpy_insn_decode): Rename to ...
6457 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
6458 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
6459 recpy_bt_insn_decode): This. Also, use new helper functions.
6460 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
6461 recpy_insn_type.
6462 (btpy_insn_getset): Remove.
6463 (gdbpy_initialize_btrace): Remove code to initialize
6464 gdb.BtraceInstruction. Use recpy_element_object.
6465 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
6466 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
6467 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
6468 * python/py-record.c (recpy_insn_type): New static object.
6469 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
6470 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
6471 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
6472 New function.
6473 (recpy_insn_getset): New static object.
6474 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
6475 * python/py-record.h (recpy_element_object): New typedef.
6476 (recpy_insn_type, recpy_insn_new): New export.
6477
913aeadd
TW
64782017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6479
6480 * py-record-btrace.c (btpy_insn_new): Removed.
6481 (btpy_insn_or_gap_new): New function.
6482 (btpy_insn_error): Removed.
6483 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6484 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
6485 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
6486 btpy_insn_or_gap_new instead of btpy_insn_new.
6487 (btpy_insn_getset): Remove btpy_insn_error.
6488 * py-record.c (recpy_gap_type): New static object.
6489 (recpy_gap_object): New typedef.
6490 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
6491 recpy_gap_reason_string): New function.
6492 (recpy_gap_getset): New static object.
6493 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
6494 * py-record.h (recpy_gap_new): New export.
6495
a3be24ad
TW
64962017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6497
6498 * python/py-record.c (recpy_ptid): Remove.
6499 (recpy_record_getset): Remove recpy_ptid.
6500
ae20e79a
TW
65012017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6502
6503 * btrace.c (btrace_fetch): Set inferior_ptid.
6504 * python/py-record-btrace.c: Add "py-record.h" include.
6505 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
6506 recpy_bt_end, recpy_bt_instruction_history,
6507 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
6508 in gdb.Record object instead of current ptid.
6509 * python/py-record.c: Include new "py-record.h" file.
6510 (recpy_record_object): Moved to py-record.h.
6511 * python/py-record.h: New file.
6512
8d0050ea
TW
65132017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6514
6515 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
6516 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
6517 indentation.
6518
3f380b50
JB
65192017-05-01 Joel Brobecker <brobecker@adacore.com>
6520
6521 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
6522 the past maintainers section.
6523
07495424
YQ
65242017-04-28 Yao Qi <yao.qi@linaro.org>
6525
6526 * infcmd.c (get_return_value): Use regcache ctor, and remove
6527 cleanup.
6528
deb1fa3e
YQ
65292017-04-28 Yao Qi <yao.qi@linaro.org>
6530 Pedro Alves <palves@redhat.com>
6531
6532 * regcache.c (regcache::regcache): New tag dispatch ctor.
6533 (do_cooked_read): Moved above.
6534 (regcache_dup): Use the tag dispatch ctor..
6535 * regcache.h (regcache): Declare ctor, delete copy ctor and
6536 assignment operator, remove friend regcache_dup.
6537
b421c83c
YQ
65382017-04-28 Yao Qi <yao.qi@linaro.org>
6539
6540 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
6541 call method save instead of regcache_cpy.
6542 * regcache.h (struct regcache): Make regcache_dup a friend.
6543
ef79d9a3
YQ
65442017-04-28 Yao Qi <yao.qi@linaro.org>
6545
6546 * regcache.c (struct regcache): Move to regcache.h
6547 (regcache::arch): New method.
6548 (regcache_get_ptid): Update.
6549 (get_regcache_arch): Call arch method.
6550 (get_regcache_aspace): Call method aspace.
6551 (register_buffer): Change it to method.
6552 (regcache_save): Change it to regcache::save.
6553 (regcache_restore): Likewise.
6554 (regcache_cpy_no_passthrough): Remove the declaration.
6555 (regcache_cpy): Call methods restore and cpy_no_passthrough.
6556 (regcache_cpy_no_passthrough): Change it to method
6557 cpy_no_passthrough.
6558 (regcache_register_status): Change it to method
6559 get_register_status.
6560 (regcache_invalidate): Change it to method invalidate.
6561 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
6562 (regcache_raw_update): Change it to method raw_update.
6563 (regcache_raw_read): Likewise.
6564 (regcache_raw_read_signed): Likewise.
6565 (regcache_raw_read_unsigned): Likewise.
6566 (regcache_raw_write_signed): Likewise.
6567 (regcache_raw_write_unsigned): Likewise.
6568 (regcache_cooked_read): Likewise.
6569 (regcache_cooked_read_value): Likewise.
6570 (regcache_cooked_read_signed): Likewise.
6571 (regcache_cooked_read_unsigned): Likewise.
6572 (regcache_cooked_write_signed): Likewise.
6573 (regcache_cooked_write_unsigned): Likewise.
6574 (regcache_raw_set_cached_value): Likewise.
6575 (regcache_raw_write): Likewise.
6576 (regcache_cooked_write): Likewise.
6577 (regcache_xfer_part): Likewise.
6578 (regcache_raw_read_part): Likewise.
6579 (regcache_raw_write_part): Likewise.
6580 (regcache_cooked_read_part): Likewise.
6581 (regcache_cooked_write_part): Likewise.
6582 (regcache_raw_supply): Likewise.
6583 (regcache_raw_collect): Likewise.
6584 (regcache_transfer_regset): Likewise.
6585 (regcache_supply_regset): Likewise.
6586 (regcache_collect_regset): Likewise.
6587 (regcache_debug_print_register): Likewise.
6588 (enum regcache_dump_what): Move it to regcache.h.
6589 (regcache_dump): Change it to method dump.
6590 * regcache.h (enum regcache_dump_what): New.
6591 (class regcache): New.
6592 * target.c (target_fetch_registers): Call method
6593 debug_print_register.
6594 (target_store_registers): Likewise.
6595
f8fdb78e
SM
65962017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6597
6598 * windows-nat.c (struct lm_info_windows): Initialize field.
6599 (windows_make_so): Allocate lm_info_windows with new.
6600 (windows_free_so): Free lm_info_windows with delete.
6601
9ccbfd7b
SM
66022017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6603
6604 * solib-darwin.c (struct lm_info_darwin): Initialize field.
6605 (darwin_current_sos): Allocate lm_info_darwin with new, remove
6606 cleanup.
6607 (darwin_free_so): Free lm_info_darwin with delete.
6608
76e75227
SM
66092017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6610
6611 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
6612 <l_addr_p>: Change type to bool.
6613 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
6614 (svr4_free_so): Free lm_info_svr4 with delete.
6615 (svr4_copy_library_list): Replace memcpy with call to copy
6616 constructor.
6617 (library_list_start_library, svr4_default_sos): Allocate
6618 lm_info_svr4 with new.
6619
51046d9e
SM
66202017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6621
6622 * solib-target.c (struct lm_info_target): Add destructor,
6623 initialize fields.
6624 <name>: Change type to std::string.
6625 (library_list_start_library): Allocate lm_info_target with new.
6626 (solib_target_free_library_list): Free lm_info_target with
6627 delete.
6628 (solib_target_current_sos): Adapt to std::string.
6629 (solib_target_free_so): Free lm_info_target with delete.
6630
4023ae76
SM
66312017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6632
6633 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
6634 fields.
6635 (frv_current_sos): Allocate lm_info_frv with new.
6636 (frv_relocate_main_executable): Free lm_info_frv with delete,
6637 allocate with new.
6638 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
6639
af43057b
SM
66402017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6641
6642 * solib-frv.c (struct lm_info_frv): Fix indentation.
6643
b0911207
SM
66442017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6645
6646 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
6647 map field.
6648 (dsbt_current_sos): Allocate lm_info_dsbt with new.
6649 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
6650 and allocate with new.
6651 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
6652
6c401f72
SM
66532017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6654
6655 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
6656 <filename, member_name>: Change type to std::string.
6657 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
6658 (library_list_start_library): Allocate lm_info_aix with new.
6659 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
6660 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
6661 with copy constructor.
6662
d0e449a1
SM
66632017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6664
6665 * solist.h (struct lm_info): Remove.
6666 (struct lm_info_base): New class.
6667 (struct so_list) <lm_info>: Change type to lm_info_base *.
6668 * nto-tdep.c (struct lm_info): Remove.
6669 (lm_addr): Adjust.
6670 * solib-aix.c (struct lm_info): Rename to ...
6671 (struct lm_info_aix): ... this. Extend lm_info_base.
6672 (lm_info_p): Rename to ...
6673 (lm_info_aix_p): ... this, and adjust.
6674 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
6675 solib_aix_parse_libraries, library_list_start_library,
6676 solib_aix_free_library_list, solib_aix_parse_libraries,
6677 solib_aix_get_library_list,
6678 solib_aix_relocate_section_addresses, solib_aix_free_so,
6679 solib_aix_get_section_offsets,
6680 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
6681 Adjust.
6682 (struct solib_aix_inferior_data) <library_list>: Adjust.
6683 * solib-darwin.c (struct lm_info): Rename to ...
6684 (struct lm_info_darwin): ... this. Extend lm_info_base.
6685 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
6686 * solib-dsbt.c (struct lm_info): Rename to ...
6687 (struct lm_info_dsbt): ... this. Extend lm_info_base.
6688 (struct dsbt_info) <main_executable_lm_info): Adjust.
6689 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
6690 dsbt_relocate_section_addresses): Adjust.
6691 * solib-frv.c (struct lm_info): Rename to ...
6692 (struct lm_info_frv): ... this. Extend lm_info_base.
6693 (main_executable_lm_info): Adjust.
6694 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
6695 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
6696 find_canonical_descriptor_in_load_object,
6697 frv_fdpic_find_canonical_descriptor): Adjust.
6698 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
6699 to lm_info_svr4.
6700 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
6701 svr4_clear_so, svr4_copy_library_list,
6702 library_list_start_library, svr4_default_sos, svr4_read_so_list,
6703 svr4_current_sos, svr4_fetch_objfile_link_map,
6704 solist_update_incremental): Adjust.
6705 * solib-svr4.h (struct lm_info_svr4): Move here from
6706 solib-svr4.c.
6707 * solib-target.c (struct lm_info): Rename to ...
6708 (struct lm_info_target): ... this. Extend lm_info_base.
6709 (lm_info_p): Rename to ...
6710 (lm_info_target_p): ... this.
6711 (solib_target_parse_libraries, library_list_start_segment,
6712 library_list_start_section, library_list_start_library,
6713 library_list_end_library, solib_target_free_library_list,
6714 solib_target_current_sos, solib_target_free_so,
6715 solib_target_relocate_section_addresses): Adjust.
6716 * windows-nat.c (struct lm_info): Rename to ...
6717 (struct lm_info_windows): ... this. Extend lm_info_base.
6718 (windows_make_so, handle_load_dll, handle_unload_dll,
6719 windows_xfer_shared_libraries): Adjust.
6720
434a4023
SM
67212017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6722
6723 * solib-darwin.c (struct darwin_so_list): Remove.
6724 (darwin_current_sos): Allocate an so_list object instead of a
6725 darwin_so_list, separately allocate an lm_info object.
6726 (darwin_free_so): Free lm_info.
6727
428544e8
JB
67282017-04-28 John Baldwin <jhb@FreeBSD.org>
6729
6730 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
6731 with fprintf_filtered.
6732
4621115f
YQ
67332017-04-28 Yao Qi <yao.qi@linaro.org>
6734
6735 * regcache.c (regcache::regcache): New function.
6736 (regcache::~regcache): New function.
6737 (regcache_xmalloc_1): Remove.
6738 (regcache_xmalloc): Call new regcache.
6739 (regcache_xfree): Call delete regcache.
6740 (get_thread_arch_aspace_regcache): Call new regcache.
6741
339053c2
YQ
67422017-04-28 Yao Qi <yao.qi@linaro.org>
6743
6744 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
6745 lwp instead of ptid_get_lwp.
6746
7974a605
YQ
67472017-04-28 Yao Qi <yao.qi@linaro.org>
6748
6749 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
6750 lwp_info instead of getting from inferior_ptid.
6751
e15c3eb4
KS
67522017-04-27 Keith Seitz <keiths@redhat.com>
6753
6754 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
6755 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
6756 (CV_CONVERSION_BADNESS): Define.
6757 (rank_one_type): Remove overly restrictive rvalue reference
6758 rank checks.
6759 Add cv-qualifier checks and subranks for type equality.
6760 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
6761 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
6762 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
6763
72bc1d24
SM
67642017-04-27 Simon Marchi <simon.marchi@ericsson.com>
6765
6766 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
6767 count when creating the object.
6768
55bcecda
UW
67692017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
6770 Ulrich Weigand <uweigand@de.ibm.com>
6771
6772 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
6773 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
6774 is used in AIX.
6775 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
6776 (process_xcoff_symbol): Likewise.
6777 (scan_xcoff_symtab): Likewise.
6778
5c99fcf8
AH
67792017-04-26 Alan Hayward <alan.hayward@arm.com>
6780
6781 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
6782 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
6783 (ia64_access_reg): Use get_frame_register_unsigned.
6784 (ia64_access_rse_reg): Likewise.
6785 (ia64_libunwind_frame_prev_register): Likewise.
6786
b41c5a85
JW
67872017-04-26 Jiong Wang <jiong.wang@arm.com>
6788
6789 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
6790 * gdbarch.c: Regenerated.
6791 * gdbarch.h: Regenerated.
6792 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
6793 visibility external.
6794 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
6795 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
6796 (enum cfa_how_kind): Move to ...
6797 (struct dwarf2_frame_state_reg_info): Likewise.
6798 (struct dwarf2_frame_state): Likewise.
6799 * dwarf2-frame.h: ... here.
6800 (dwarf2_frame_state_alloc_regs): New declaration.
6801 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
6802 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
6803
c185f580
AH
68042017-04-26 Alan Hayward <alan.hayward@arm.com>
6805
6806 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
6807 regcache_raw_read_unsigned.
6808 (xtensa_pseudo_register_write): Likewise.
6809
19c45594
AH
68102017-04-26 Alan Hayward <alan.hayward@arm.com>
6811
6812 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
6813 (nds32_pseudo_register_write): Likewise.
6814
4658f12e
YQ
68152017-04-25 Yao Qi <yao.qi@linaro.org>
6816
6817 * regcache.c (struct regcache) <readonly_p>: Change its type
6818 to bool.
6819 (regcache_xmalloc_1): Update parameter type and callers update.
6820
d581dda8
YQ
68212017-04-25 Yao Qi <yao.qi@linaro.org>
6822
6823 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
6824 set_gdbarch_wchar_bit.
6825 * arm-tdep.c (arm_gdbarch_init): Likewise.
6826
debed3db
PA
68272017-04-25 Pedro Alves <palves@redhat.com>
6828
6829 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
6830 (BothAreRelocatable, memcopy, memmove): Don't define.
6831 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
6832 macros.
6833
b0b92aeb
PA
68342017-04-25 Pedro Alves <palves@redhat.com>
6835
6836 * common/common-defs.h: Include "common/poison.h".
6837 * common/function-view.h: (Not, Or, Requires): Move to traits.h
6838 and adjust.
6839 * common/poison.h: New file.
6840 * common/traits.h: Include <type_traits>.
6841 (Not, Or, Requires): New, moved from common/function-view.h.
6842
16c4d54a
PA
68432017-04-25 Pedro Alves <palves@redhat.com>
6844
6845 * breakpoint.h (struct breakpoint): In-class initialize all
6846 fields. Make boolean fields "bool".
6847 * breakpoint.c (init_raw_breakpoint_without_location): Remove
6848 memset call and initializations no longer necessary.
6849
b5c36682
PA
68502017-04-25 Pedro Alves <palves@redhat.com>
6851
6852 * btrace.c (pt_btrace_insn_flags): Change parameter type to
6853 reference.
6854 (pt_btrace_insn): New function.
6855 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
6856
5625a286
PA
68572017-04-25 Pedro Alves <palves@redhat.com>
6858
6859 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
6860 "base" field and inherit from "bp_location" instead. Add
6861 non-default ctor.
6862 (allocate_location_exception): Use new non-default ctor.
6863 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
6864 (init_bp_location): Convert to ...
6865 (bp_location::bp_location): ... this new ctor, and remove memset
6866 call.
6867 (base_breakpoint_allocate_location): Use the new non-default ctor.
6868 * breakpoint.h (bp_location): Now a class. Declare default and
6869 non-default ctors. In-class initialize all members.
6870 (init_bp_location): Remove declaration.
6871
23bcc18f
PA
68722017-04-25 Pedro Alves <palves@redhat.com>
6873
6874 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
6875 assignment operator.
6876
e1ba3053
YQ
68772017-04-24 Yao Qi <yao.qi@linaro.org>
6878
6879 * doublest.c (convert_doublest_to_floatformat): Call
6880 floatformat_totalsize_bytes.
6881
10f489e5
TT
68822017-04-22 Tom Tromey <tom@tromey.com>
6883
6884 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
6885 ui_out_emit_list.
6886 * stack.c (print_frame): Use ui_out_emit_list.
6887 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
6888 ui_out_emit_list.
6889 * mi/mi-main.c (print_one_inferior)
6890 (mi_cmd_data_list_register_names)
6891 (mi_cmd_data_list_register_values, mi_cmd_list_features)
6892 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
6893 ui_out_emit_list.
6894 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
6895 (mi_output_solib_attribs): Use ui_out_emit_list,
6896 ui_out_emit_tuple.
6897 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
6898 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6899 (mi_cmd_stack_list_args, list_args_or_locals): Use
6900 ui_out_emit_list.
6901 * disasm.c (do_assembly_only): Use ui_out_emit_list.
6902 * breakpoint.c (print_solib_event, output_thread_groups): Use
6903 ui_out_emit_list.
6904
0092b74d
TT
69052017-04-22 Tom Tromey <tom@tromey.com>
6906
6907 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
6908 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
6909 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
6910
a14a62dd
TT
69112017-04-22 Tom Tromey <tom@tromey.com>
6912
6913 * tracepoint.c (tvariables_info_1)
6914 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
6915
46b9c129
TT
69162017-04-22 Tom Tromey <tom@tromey.com>
6917
6918 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
6919 annotate_arg_emitter.
6920 * breakpoint.c (print_mention_watchpoint)
6921 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
6922 * annotate.h (struct annotate_arg_emitter): New.
6923
2e783024
TT
69242017-04-22 Tom Tromey <tom@tromey.com>
6925
6926 * record-btrace.c (record_btrace_insn_history)
6927 (record_btrace_insn_history_range, record_btrace_call_history)
6928 (record_btrace_call_history_range): Use ui_out_emit_tuple.
6929 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
6930 ui_out_emit_tuple.
6931 * stack.c (print_frame_info): Use ui_out_emit_tuple.
6932 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
6933 * skip.c (skip_info): Use ui_out_emit_tuple.
6934 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
6935 * progspace.c (print_program_space): Use ui_out_emit_tuple.
6936 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
6937 * osdata.c (info_osdata): Use ui_out_emit_tuple.
6938 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
6939 ui_out_emit_tuple.
6940 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
6941 (output_register, mi_cmd_data_read_memory)
6942 (mi_cmd_data_read_memory_bytes, mi_load_progress)
6943 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
6944 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
6945 Use ui_out_emit_tuple.
6946 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
6947 ui_out_emit_tuple.
6948 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
6949 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
6950 * linux-thread-db.c (info_auto_load_libthread_db): Use
6951 ui_out_emit_tuple.
6952 * inferior.c (print_inferior): Use ui_out_emit_tuple.
6953 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
6954 * disasm.c (do_mixed_source_and_assembly_deprecated)
6955 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
6956 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
6957 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
6958 * breakpoint.c (print_one_breakpoint_location)
6959 (print_one_breakpoint): Use ui_out_emit_tuple.
6960 * auto-load.c (print_script, info_auto_load_cmd): Use
6961 ui_out_emit_tuple.
6962 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
6963
9be21bb4
SM
69642017-04-21 Simon Marchi <simon.marchi@ericsson.com>
6965
6966 * thread.c (print_thread_info_1): Remove dead code.
6967
0d4c07af
JK
69682017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6969
6970 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
6971 GDB_SELF_TEST.
6972 * arm-tdep.c (selftests::arm_record_test): Likewise.
6973
4daf993d
YQ
69742017-04-21 Yao Qi <yao.qi@linaro.org>
6975
6976 * regcache.c (regcache_restore): Remove argument 2. Replace
6977 argument 3 with regcache. Get register status from
6978 src->register_status and get register contents from
6979 register_buffer (src, regnum).
6980 (regcache_cpy): Update.
6981
a6c21d4a
PA
69822017-04-19 Pedro Alves <palves@redhat.com>
6983
6984 * gdbthread.h (thread): Add missing closing parenthesis in
6985 comment.
6986
3a3fd0fd
PA
69872017-04-19 Pedro Alves <palves@redhat.com>
6988
6989 * common/refcounted-object.h: New file.
6990 * gdbthread.h: Include "common/refcounted-object.h".
6991 (thread_info): Inherit from refcounted_object and add comments.
6992 (thread_info::incref, thread_info::decref)
6993 (thread_info::m_refcount): Delete.
6994 (thread_info::deletable): Use the refcounted_object::refcount()
6995 method.
6996 * inferior.c (current_inferior_): Add comment.
6997 (set_current_inferior): Increment/decrement refcounts.
6998 (prune_inferiors, remove_inferior_command): Skip inferiors marked
6999 not-deletable instead of comparing with the current inferior.
7000 (initialize_inferiors): Increment the initial inferior's refcount.
7001 * inferior.h (struct inferior): Forward declare.
7002 Include "common/refcounted-object.h".
7003 (current_inferior, set_current_inferior): Move declaration to
7004 before struct inferior's definition, and fix comment.
7005 (inferior): Inherit from refcounted_object. Add comments.
7006 * thread.c (switch_to_thread_no_regs): Reference the thread's
7007 inferior pointer directly instead of doing a ptid lookup.
7008 (switch_to_no_thread): New function.
7009 (switch_to_thread(thread_info *)): New function, factored out
7010 from ...
7011 (switch_to_thread(ptid_t)): ... this.
7012 (restore_current_thread): Delete.
7013 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
7014 fields, and add 'inf' field.
7015 (do_restore_current_thread_cleanup): Check whether old->inf is
7016 alive instead of looking up an inferior by ptid. Use
7017 switch_to_thread and switch_to_no_thread.
7018 (restore_current_thread_cleanup_dtor): Use old->inf directly
7019 instead of lookup up an inferior by id. Decref the inferior.
7020 Don't restore 'removable'.
7021 (make_cleanup_restore_current_thread): Same the inferior pointer
7022 in old, instead of the inferior number. Incref the inferior.
7023 Don't save/clear 'removable'.
7024
9bcb1f16
PA
70252017-04-19 Pedro Alves <palves@redhat.com>
7026
7027 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7028 unittests/scoped_restore-selftests.c.
7029 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
7030 * common/scoped_restore.h (scoped_restore_base): Make "class".
7031 (scoped_restore_base::release): New public method.
7032 (scoped_restore_base::scoped_restore_base): New protected ctor.
7033 (scoped_restore_base::m_saved_var): New protected field.
7034 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
7035 scoped_restore_base base class instead of m_saved_var directly.
7036 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
7037 (scoped_restore_tmpl::scoped_restore_tmpl(const
7038 scoped_restore_tmpl<T>&)): Likewise.
7039 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
7040 method.
7041 (scoped_restore_tmpl::saved_var): New method.
7042 (scoped_restore_tmpl::m_saved_var): Delete.
7043 * inferior.h (inferior::detaching): Now a bool.
7044 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
7045 cleanup.
7046 * unittests/scoped_restore-selftests.c: New file.
7047
26fcd539
PA
70482017-04-19 Pedro Alves <palves@redhat.com>
7049
7050 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
7051 Re-sort in alphabetic order.
7052
fdd243b0
PA
70532017-04-18 Pedro Alves <palves@redhat.com>
7054
7055 * xml-support.c (obstack_xml_printf): Delete.
7056 * xml-support.h (obstack_xml_printf): Delete.
7057
4895cde2
PA
70582017-04-18 Pedro Alves <palves@redhat.com>
7059
7060 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
7061 vdebug, verror, body_text, start_element, end_element, name,
7062 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
7063 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
7064 is_xinclude>: Make private and add m_ prefix.
7065 (gdb_xml_parser::body_text): New method, based on ...
7066 (gdb_xml_body_text): ... this. Adjust.
7067 (gdb_xml_parser::vdebug): New method, based on ...
7068 (gdb_xml_debug): ... this. Adjust.
7069 (gdb_xml_parser::verror): New method, based on ...
7070 (gdb_xml_error): ... this. Adjust.
7071 (gdb_xml_parser::start_element): New method, based on ...
7072 (gdb_xml_start_element): ... this. Adjust.
7073 (gdb_xml_start_element_wrapper): Defer to
7074 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
7075 (gdb_xml_parser::end_element): New method, based on ...
7076 (gdb_xml_end_element_wrapper): ... this. Adjust.
7077 (gdb_xml_parser::~gdb_xml_parser): Adjust.
7078 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
7079 (gdb_xml_parser::use_dtd): New method, based on ...
7080 (gdb_xml_use_dtd): ... this. Adjust.
7081 (gdb_xml_parser::parse): New method, based on ...
7082 (gdb_xml_parse): ... this. Adjust.
7083 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
7084 (xinclude_start_include): Adjust to call the parser's name method.
7085 (xml_xinclude_default, xml_xinclude_start_doctype)
7086 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
7087 method.
7088 (xml_process_xincludes): Adjust to call parser methods.
7089 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
7090 declarations.
7091
bd8a901f
PA
70922017-04-18 Pedro Alves <palves@redhat.com>
7093
7094 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
7095 gdb::optional<std::string>.
7096 * xml-support.c: Include <string>.
7097 (scope_level::scope_level(scope_level &&))
7098 (scope_level::~scope_level): Delete.
7099 (scope_level::body): Now a std::string.
7100 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
7101 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
7102 parameter.
7103 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
7104 (xinclude_parsing_data::output): Now a std::string reference.
7105 (xinclude_start_include): Adjust.
7106 (xml_xinclude_default): Adjust.
7107 (xml_process_xincludes): Add 'output' parameter, and return bool.
7108 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
7109 and return bool.
7110 * xml-tdesc.c: Include <unordered_map> and <string>.
7111 (tdesc_xml_cache): Delete.
7112 (tdesc_xml_cache_s): Delete.
7113 (xml_cache): Now an std::unordered_map.
7114 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
7115 (target_fetch_description_xml): Change return type to
7116 gdb::optional<std::string>, and adjust.
7117 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
7118 (target_fetch_description_xml): Change return type to
7119 gdb::optional<std::string>.
7120
d35d1958
PA
71212017-04-18 Pedro Alves <palves@redhat.com>
7122
7123 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7124 unittests/optional-selftests.c.
7125 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
7126 * unittests/optional-selftests.c: New file.
7127 * unittests/optional/assignment/1.cc: New file.
7128 * unittests/optional/assignment/2.cc: New file.
7129 * unittests/optional/assignment/3.cc: New file.
7130 * unittests/optional/assignment/4.cc: New file.
7131 * unittests/optional/assignment/5.cc: New file.
7132 * unittests/optional/assignment/6.cc: New file.
7133 * unittests/optional/assignment/7.cc: New file.
7134 * unittests/optional/cons/copy.cc: New file.
7135 * unittests/optional/cons/default.cc: New file.
7136 * unittests/optional/cons/move.cc: New file.
7137 * unittests/optional/cons/value.cc: New file.
7138 * unittests/optional/in_place.cc: New file.
7139 * unittests/optional/observers/1.cc: New file.
7140 * unittests/optional/observers/2.cc: New file.
7141
22796e97
PA
71422017-04-18 Pedro Alves <palves@redhat.com>
7143
7144 * common/gdb_optional.h: Include common/traits.h.
7145 (in_place_t): New type.
7146 (in_place): New constexpr variable.
7147 (optional::optional): Remove member initialization of
7148 m_instantiated.
7149 (optional::optional(in_place_t...)): New constructor.
7150 (optional::~optional): Use reset.
7151 (optional::optional(const optional&)): New.
7152 (optional::optional(const optional&&)): New.
7153 (optional::optional(T &)): New.
7154 (optional::optional(T &&)): New.
7155 (operator::operator=(const optional &)): New.
7156 (operator::operator=(optional &&)): New.
7157 (operator::operator= (const T &))
7158 (operator::operator= (T &&))
7159 (operator::emplace (Args &&... args)): Return a T&. Use reset.
7160 (operator::reset): New.
7161 (operator::m_instantiated):: Add in-class initializer.
7162 * common/traits.h: Include <type_traits>.
7163 (struct And): New types.
7164
a7fc9b61
PA
71652017-04-18 Pedro Alves <palves@redhat.com>
7166
7167 * xml-support.c: Include <vector>.
7168 (scope_level::scope_level(const gdb_xml_element *))
7169 (scope_level::scope_level(scope_level&&)): New.
7170 (scope_level::~scope_level): New.
7171 (scope_level_s): Delete.
7172 (gdb_xml_parser::scopes): Now a std::vector.
7173 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
7174 Use std::vector.
7175 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
7176 scope cleanup code.
7177 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
7178 of the scopes member. Use std::vector::emplace_back.
7179
010151c9
PA
71802017-04-18 Pedro Alves <palves@redhat.com>
7181
7182 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
7183 a bool.
7184 (gdb_xml_end_element): Change type of first parameter.
7185 (gdb_xml_cleanup): Rename to ...
7186 (gdb_xml_parser::~gdb_xml_parser): ... this.
7187 (gdb_xml_create_parser_and_cleanup): Delete with ...
7188 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
7189 to this new ctor.
7190 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
7191 using gdb_xml_create_parser_and_cleanup.
7192 (xinclude_parsing_data): Add ctor/dtor.
7193 (xml_xinclude_cleanup): Delete.
7194 (xml_process_xincludes): Create a local xinclude_parsing_data
7195 instead of heap-allocating one. Create a local gdb_xml_parser
7196 instead of heap-allocating one with
7197 gdb_xml_create_parser_and_cleanup.
7198
d56060f0
JB
71992017-04-18 John Baldwin <jhb@FreeBSD.org>
7200
7201 PR threads/20743
7202 * fbsd-nat.c (resume_one_thread_cb): Remove.
7203 (resume_all_threads_cb): Remove.
7204 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
7205 iterate_over_threads.
7206
305d16a9
JB
72072017-04-17 Joel Brobecker <brobecker@adacore.com>
7208
7209 * NEWS: Create a new section for the next release branch.
7210 Rename the section of the current branch, now that it has
7211 been cut.
7212
8bb57231
JB
72132017-04-17 Joel Brobecker <brobecker@adacore.com>
7214
7215 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
7216 * version.in: Bump version to 8.0.50.DATE-git.
7217
096c92dd
SDJ
72182017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
7219
7220 PR gdb/21385
7221 * windows-nat.c (windows_create_inferior): Declare 'allargs'
7222 independently of the host, and fix build breakage on Cygwin.
7223
0550c955
PA
72242017-04-13 Pedro Alves <palves@redhat.com>
7225
7226 * inferior.c (free_inferior): Convert to ...
7227 (inferior::~inferior): ... this dtor.
7228 (inferior::inferior): New ctor, factored out from ...
7229 (add_inferior_silent): ... here. Allocate the inferior with a new
7230 expression.
7231 (delete_inferior): Call delete instead of free_inferior.
7232 * inferior.h (gdb_environ, continuation): Forward declare.
7233 (inferior): Now a class. Add in-class initialization to all
7234 members. Make boolean fields bool, except 'detaching'.
7235 (inferior::inferior): New explicit ctor.
7236 (inferior::~inferior): New.
7237
e3d60dfc
PA
72382017-04-13 Pedro Alves <palves@redhat.com>
7239
7240 * inferior.c (init_inferior_list): Delete.
7241 * inferior.h (init_inferior_list): Delete.
7242
5fd69d0a
PA
72432017-04-13 Pedro Alves <palves@redhat.com>
7244
7245 PR threads/13217
7246 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
7247 (top level): Call it twice, with different thread sets.
7248
c6609450
PA
72492017-04-13 Pedro Alves <palves@redhat.com>
7250
7251 * thread.c: Include <algorithm>.
7252 (thread_array_cleanup): Delete.
7253 (scoped_inc_dec_ref): New class.
7254 (live_threads_count): New function.
7255 (set_thread_refcount): Delete.
7256 (tp_array_compar_ascending): Now a bool.
7257 (tp_array_compar): Convert to a std::sort comparison function.
7258 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
7259 and live_threads_count.
7260
2a00d7ce
PA
72612017-04-13 Pedro Alves <palves@redhat.com>
7262
7263 * infrun.c (follow_fork_inferior): Also switch the current
7264 inferior.
7265
441d7c93
PA
72662017-04-13 Pedro Alves <palves@redhat.com>
7267
7268 * breakpoint.c (watch_command_1): Save watchpoint-frame info
7269 before calling create_internal_breakpoint.
7270
808480f6
PA
72712017-04-13 Pedro Alves <palves@redhat.com>
7272
7273 * fork-child.c (execv_argv): New class.
7274 (breakup_args): Refactored as ...
7275 (execv_argv::init_for_no_shell): .. this method of execv_argv.
7276 Copy arguments to storage and replace separators with NULL
7277 terminators in place.
7278 (escape_bang_in_quoted_argument): Adjust to return bool.
7279 (execv_argv::execv_argv): New ctor.
7280 (execv_argv::init_for_shell): New method, factored out from
7281 fork_inferior. Don't strdup strings into the vector.
7282 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
7283 Remove free_vector_argv call.
7284
ad3d022a
YQ
72852017-04-13 Yao Qi <yao.qi@linaro.org>
7286
7287 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
7288 tdep->rx_psw_type.
7289
e6ddc3bf
YQ
72902017-04-13 Yao Qi <yao.qi@linaro.org>
7291
7292 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
7293 * rx-tdep.c (rx_gdbarch_init): Likewise.
7294
bfb8cf90
PA
72952017-04-13 Pedro Alves <palves@redhat.com>
7296
7297 * breakpoint.h (struct breakpoint): Reindent.
7298
f5336ca5
PA
72992017-04-13 Pedro Alves <palves@redhat.com>
7300
7301 * breakpoint.c (bp_location): Rename to ...
7302 (bp_locations): ... this. All references updated.
7303 (bp_location_count): Rename to ...
7304 (bp_locations_count): ... this. All references updated.
7305 (bp_location_placed_address_before_address_max): Rename to ...
7306 (bp_locations_placed_address_before_address_max): ... this. All
7307 references updated.
7308 (bp_location_shadow_len_after_address_max): Rename to ...
7309 (bp_locations_shadow_len_after_address_max): ... this. All
7310 references updated.
7311 (bp_location_compare_addrs): Rename to ...
7312 (bp_locations_compare_addrs): ... this. All references updated.
7313 (bp_location_compare):Rename to ...
7314 (bp_locations_compare): ... this. All references updated.
7315 (bp_location_target_extensions_update): Rename to ...
7316 (bp_locations_target_extensions_update): ... this. All references
7317 updated.
7318
be628ab8
SDJ
73192017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7320
7321 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
7322 * common/common.m4: Check headers 'termios.h', 'termio.h' and
7323 'sgtty.h'.
7324 * common/gdb_termios.h: New file, with parts of "terminal.h".
7325 * inflow.c: Include "gdb_termios.h".
7326 * ser-unix.c: Include "gdb_termios.h".
7327 * terminal.h: Move terminal-related defines to
7328 "common/gdb_termios.h".
7329
8e9e35b1
TT
73302017-04-12 Tom Tromey <tom@tromey.com>
7331
7332 * probe.c (parse_probes): Update.
7333 * location.h (delete_event_location): Don't declare.
7334 (event_location_deleter::operator()): Update.
7335 * location.c (event_location_deleter::operator()): Rename from
7336 delete_event_location.
7337 * linespec.h (linespec_result) <location>: Change type to
7338 event_location_up.
7339 * linespec.c (canonicalize_linespec, event_location_to_sals)
7340 (decode_objc): Update.
7341 (linespec_result): Don't call delete_event_location.
7342 * breakpoint.c (create_breakpoints_sal)
7343 (bkpt_probe_create_sals_from_location)
7344 (strace_marker_create_sals_from_location): Update.
7345
16e802b9
TT
73462017-04-12 Tom Tromey <tom@tromey.com>
7347
7348 * linespec.h (struct linespec_result): Add constructor and
7349 destructor.
7350 (init_linespec_result, destroy_linespec_result)
7351 (make_cleanup_destroy_linespec_result): Don't declare.
7352 * linespec.c (init_linespec_result): Remove.
7353 (linespec_result::~linespec_result): Rename from
7354 destroy_linespec_result. Update.
7355 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
7356 Remove.
7357 * breakpoint.c (create_breakpoint, break_range_command)
7358 (decode_location_default): Update.
7359 * ax-gdb.c (agent_command_1): Update.
7360
d28cd78a
TT
73612017-04-12 Tom Tromey <tom@tromey.com>
7362
7363 * remote.c (remote_download_tracepoint): Update.
7364 * python/py-breakpoint.c (bppy_get_location): Update.
7365 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
7366 (gdbscm_breakpoint_location): Update.
7367 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
7368 * breakpoint.h (struct breakpoint) <location, location_range_end>:
7369 Change type to event_location_up.
7370 * breakpoint.c (create_overlay_event_breakpoint)
7371 (create_longjmp_master_breakpoint)
7372 (create_std_terminate_master_breakpoint)
7373 (create_exception_master_breakpoint)
7374 (breakpoint_event_location_empty_p, print_breakpoint_location)
7375 (print_one_breakpoint_location, create_thread_event_breakpoint)
7376 (init_breakpoint_sal, create_breakpoint)
7377 (print_recreate_ranged_breakpoint, break_range_command)
7378 (init_ada_exception_breakpoint, say_where): Update.
7379 (base_breakpoint_dtor): Don't call delete_event_location.
7380 (bkpt_print_recreate, tracepoint_print_recreate)
7381 (dprintf_print_recreate, update_static_tracepoint)
7382 (breakpoint_re_set_default): Update.
7383
711799d5
TT
73842017-04-12 Tom Tromey <tom@tromey.com>
7385
7386 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
7387 type of "to_do". Update.
7388 (compute_stack_depth): Use std::vector.
7389
52d214d3
TT
73902017-04-12 Tom Tromey <tom@tromey.com>
7391
7392 * printcmd.c (find_instruction_backward): Use std::vector.
7393
4c404b8b
TT
73942017-04-12 Tom Tromey <tom@tromey.com>
7395
7396 * symfile.c (objfilep): Remove typedef.
7397 (reread_symbols): Use a std::vector.
7398
156d9eab
TT
73992017-04-12 Tom Tromey <tom@tromey.com>
7400
7401 * mi/mi-main.c (exec_direction_forward): Remove.
7402 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
7403 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7404 scoped_restore.
7405 * guile/guile.c (guile_repl_command, guile_command)
7406 (gdbscm_execute_gdb_command): Use scoped_restore.
7407 * go-exp.y (go_parse): Use scoped_restore.
7408 * d-exp.y (d_parse): Use scoped_restore.
7409 * cli/cli-decode.c (cmd_func): Use scoped_restore.
7410 * c-exp.y (c_parse): Use scoped_restore.
7411
4d89769a
TT
74122017-04-12 Tom Tromey <tom@tromey.com>
7413
7414 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
7415 (mi_parse): Update return type.
7416 (mi_parse_free): Remove.
7417 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
7418 (mi_parse::~mi_parse): Rename from mi_parse_free.
7419 (mi_parse_cleanup): Remove.
7420 (mi_parse): Return a unique_ptr. Use new.
7421 * mi/mi-main.c (mi_execute_command): Update.
7422
4b217cc7
TT
74232017-04-12 Tom Tromey <tom@tromey.com>
7424
7425 * location.c (explicit_location_lex_one): Return a
7426 unique_xmalloc_ptr.
7427 (string_to_explicit_location): Update. Remove cleanups.
7428
59d3651b
TT
74292017-04-12 Tom Tromey <tom@tromey.com>
7430
7431 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
7432 (compare_value_and_voffset): Change type. Update.
7433 (compute_vtable_size): Change type of "offset_vec".
7434 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
7435 (gnuv3_get_typeid): Remove extraneous declaration.
7436
b24b0d6c
TT
74372017-04-12 Tom Tromey <tom@tromey.com>
7438
7439 * charset.h (wchar_iterator): Fix comment.
7440
80a3b8c5
TT
74412017-04-12 Tom Tromey <tom@tromey.com>
7442
7443 * charset.c (iconv_wrapper): New class.
7444 (cleanup_iconv): Remove.
7445 (convert_between_encodings): Use it.
7446
c83dd867
TT
74472017-04-12 Tom Tromey <tom@tromey.com>
7448
7449 * symfile.h (increment_reading_symtab): Update type.
7450 * symfile.c (decrement_reading_symtab): Remove.
7451 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
7452 * psymtab.c (psymtab_to_symtab): Update.
7453 * dwarf2read.c (dw2_instantiate_symtab): Update.
7454
0e8621a0
TT
74552017-04-12 Tom Tromey <tom@tromey.com>
7456
7457 * jit.c (struct jit_reader): Declare separately. Add constructor
7458 and destructor. Change type of "handle".
7459 (loaded_jit_reader): Define separately.
7460 (jit_reader_load): Update. New "new".
7461 (jit_reader_unload_command): Use "delete".
7462 * gdb-dlfcn.h (struct dlclose_deleter): New.
7463 (gdb_dlhandle_up): New typedef.
7464 (gdb_dlopen, gdb_dlsym): Update types.
7465 (gdb_dlclose): Remove.
7466 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
7467 (gdb_dlsym): Change type of "handle".
7468 (make_cleanup_dlclose): Remove.
7469 (dlclose_deleter::operator()): Rename from gdb_dlclose.
7470 * compile/compile-c-support.c (load_libcc): Update.
7471
67d89901
TT
74722017-04-12 Tom Tromey <tom@tromey.com>
7473
7474 * symtab.h (find_pcs_for_symtab_line): Change return type.
7475 * symtab.c (find_pcs_for_symtab_line): Change return type.
7476 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
7477 type of "vec". Update.
7478 (ltpy_get_pcs_for_line): Update.
7479 * linespec.c (decode_digits_ordinary): Update.
7480
93921405
TT
74812017-04-12 Tom Tromey <tom@tromey.com>
7482
7483 * tracepoint.c (actions_command): Update.
7484 * python/python.c (python_command, python_interactive_command):
7485 Update.
7486 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7487 * guile/guile.c (guile_command): Update.
7488 * defs.h (read_command_lines, read_command_lines_1): Return
7489 command_line_up.
7490 (command_lines_deleter): New struct.
7491 (command_line_up): New typedef.
7492 * compile/compile.c (compile_code_command)
7493 (compile_print_command): Update.
7494 * cli/cli-script.h (get_command_line, copy_command_lines): Return
7495 command_line_up.
7496 (make_cleanup_free_command_lines): Remove.
7497 * cli/cli-script.c (get_command_line, read_command_lines_1)
7498 (copy_command_lines): Return command_line_up.
7499 (while_command, if_command, read_command_lines, define_command)
7500 (document_command): Update.
7501 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
7502 Remove.
7503 * breakpoint.h (breakpoint_set_commands): Change type of
7504 "commands".
7505 * breakpoint.c (breakpoint_set_commands): Change type of
7506 "commands". Update.
7507 (do_map_commands_command, update_dprintf_command_list)
7508 (create_tracepoint_from_upload): Update.
7509
ffc2605c
TT
75102017-04-12 Tom Tromey <tom@tromey.com>
7511
7512 * tracepoint.c (scope_info): Update.
7513 * spu-tdep.c (spu_catch_start): Update.
7514 * python/python.c (gdbpy_decode_line): Update.
7515 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
7516 * python/py-breakpoint.c (bppy_init): Update.
7517 * probe.c (parse_probes): Update.
7518 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
7519 * location.h (event_location_deleter): New struct.
7520 (event_location_up): New typedef.
7521 (new_linespec_location, new_address_location, new_probe_location)
7522 (new_explicit_location, copy_event_location)
7523 (string_to_event_location, string_to_event_location_basic)
7524 (string_to_explicit_location): Update return type.
7525 (make_cleanup_delete_event_location): Remove.
7526 * location.c (new_linespec_location, new_address_location)
7527 (new_probe_location, new_explicit_location, copy_event_location):
7528 Return event_location_up.
7529 (delete_event_location_cleanup)
7530 (make_cleanup_delete_event_location): Remove.
7531 (string_to_explicit_location, string_to_event_location_basic)
7532 (string_to_event_location): Return event_location_up.
7533 * linespec.c (canonicalize_linespec, event_location_to_sals)
7534 (decode_line_with_current_source)
7535 (decode_line_with_last_displayed, decode_objc): Update.
7536 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7537 * completer.c (location_completer): Update.
7538 * cli/cli-cmds.c (edit_command, list_command): Update.
7539 * breakpoint.c (create_overlay_event_breakpoint)
7540 (create_longjmp_master_breakpoint)
7541 (create_std_terminate_master_breakpoint)
7542 (create_exception_master_breakpoint)
7543 (create_thread_event_breakpoint): Update.
7544 (init_breakpoint_sal): Update. Remove some dead code.
7545 (create_breakpoint_sal): Change type of "location". Update.
7546 (create_breakpoints_sal, create_breakpoint, break_command_1)
7547 (dprintf_command, break_range_command, until_break_command)
7548 (init_ada_exception_breakpoint)
7549 (strace_marker_create_sals_from_location)
7550 (update_static_tracepoint, trace_command, ftrace_command)
7551 (strace_command, create_tracepoint_from_upload): Update.
7552 * break-catch-throw.c (re_set_exception_catchpoint): Update.
7553 * ax-gdb.c (agent_command_1): Update.
7554
8f10c932
PA
75552017-04-12 Pedro Alves <palves@redhat.com>
7556
7557 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
7558 * configure.tgt: Handle i[34567]86-*-go32* and
7559 i[34567]86-*-msdosdjgpp*.
7560 * i386-tdep.c (i386_svr4_reg_to_regnum):
7561 Make extern.
7562 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
7563 i386-go32-tdep.c.
7564 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
7565 * i386-go32-tdep.c: New file.
7566 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
7567 declarations.
7568
0a31ccfb
SM
75692017-04-12 Simon Marchi <simon.marchi@ericsson.com>
7570
7571 * aix-thread.c (pd_status2str): Change return type to const char *.
7572
e9bb3fbb
PA
75732017-04-12 Pedro Alves <palves@redhat.com>
7574
7575 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
7576 calls to set_gdbarch_gnu_triplet_regexp.
7577
53375380
PA
75782017-04-12 Pedro Alves <palves@redhat.com>
7579
7580 PR gdb/21323
7581 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
7582 New enum value.
7583 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
7584 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
7585 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
7586 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
7587 * gdbarch.h, gdbarch.c: Regenerate.
7588 * aarch64-tdep.c (aarch64_gdbarch_init): Override
7589 gdbarch_wchar_bit and gdbarch_wchar_signed.
7590 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
7591 * arm-tdep.c (arm_gdbarch_init): Likewise.
7592 * avr-tdep.c (avr_gdbarch_init): Likewise.
7593 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
7594 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
7595 * i386-tdep.c (i386_go32_init_abi): Likewise.
7596 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7597 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7598 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7599 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
7600 * sh-tdep.c (sh_gdbarch_init): Likewise.
7601 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7602 * sparc64-tdep.c (sparc64_init_abi): Likewise.
7603 * windows-tdep.c (windows_init_abi): Likewise.
7604 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7605
53e710ac
PA
76062017-04-12 Pedro Alves <palves@redhat.com>
7607
7608 PR c++/21323
7609 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
7610 cplus_primitive_type_char32_t>: New enum values.
7611 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
7612 and cplus_primitive_type_char32_t.
7613 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
7614 32, use the archtecture's built-in type for char16_t and char32_t,
7615 respectively. Otherwise, fallback to init_integer_type as before,
7616 but make the type unsigned, and issue a complaint.
7617 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
7618
ab0538b8
AH
76192017-04-12 Alan Hayward <alan.hayward@arm.com>
7620
5e0e0422 7621 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
7622 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
7623
5430098f
SDJ
76242017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7625
7626 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
7627 'const char *'.
7628
7c5ded6a
SDJ
76292017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7630
7631 * common/common-utils.c (free_vector_argv): New function.
7632 * common/common-utils.h: Include <vector>.
7633 (free_vector_argv): New prototype.
7634 * darwin-nat.c (darwin_create_inferior): Rewrite function
7635 prototype in order to constify "exec_file" and accept a
7636 "std::string" for "allargs".
7637 * fork-child.c: Include <vector>.
7638 (breakup_args): Rewrite function, using C++.
7639 (fork_inferior): Rewrite function header, constify "exec_file_arg"
7640 and accept "std::string" for "allargs". Update the code to
7641 calculate "argv" based on "allargs". Update calls to "exec_fun"
7642 and "execvp".
7643 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
7644 order to constify "exec_file" and accept a "std::string" for
7645 "allargs".
7646 * go32-nat.c (go32_create_inferior): Likewise.
7647 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
7648 * infcmd.c (run_command_1): Constify "exec_file". Use
7649 "std::string" for inferior arguments.
7650 * inferior.h (fork_inferior): Update prototype.
7651 * linux-nat.c (linux_nat_create_inferior): Rewrite function
7652 prototype in order to constify "exec_file" and accept a
7653 "std::string" for "allargs".
7654 * nto-procfs.c (procfs_create_inferior): Likewise.
7655 * procfs.c (procfs_create_inferior): Likewise.
7656 * remote-sim.c (gdbsim_create_inferior): Likewise.
7657 * remote.c (extended_remote_run): Update code to accept
7658 "std::string" as argument.
7659 (extended_remote_create_inferior): Rewrite function prototype in
7660 order to constify "exec_file" and accept a "std::string" for
7661 "allargs".
7662 * rs6000-nat.c (super_create_inferior): Likewise.
7663 (rs6000_create_inferior): Likewise.
7664 * target.h (struct target_ops) <to_create_inferior>: Likewise.
7665 * windows-nat.c (windows_create_inferior): Likewise.
7666
ae0eee42
PA
76672017-04-11 Pedro Alves <palves@redhat.com>
7668
7669 * thread.c: Fix whitespace throughout.
7670
a6acac06
PR
76712017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
7672
7673 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
7674
64403bd1
AH
76752017-04-11 Alan Hayward <alan.hayward@arm.com>
7676
7677 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
7678
a5bef50f
SDJ
76792017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
7680
7681 PR gdb/21364
7682 * osdata.c (info_osdata): Check if 'type' is an empty string
7683 instead of NULL.
7684
9295a5a9
PA
76852017-04-10 Pedro Alves <palves@redhat.com>
7686
7687 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
7688 (ptid_to_global_thread_id, in_thread_list)
7689 (do_captured_list_thread_ids, set_resumed, set_running)
7690 (set_executing, set_stop_requested, finish_thread_state)
7691 (validate_registers_access, can_access_registers_ptid)
7692 (print_thread_info_1, switch_to_thread)
7693 (do_restore_current_thread_cleanup)
7694 (make_cleanup_restore_current_thread, thread_command)
7695 (thread_name_command): Use operator== instead of ptid_equal.
7696
996812e3
PA
76972017-04-10 Pedro Alves <palves@redhat.com>
7698
7699 * thread.c (struct current_thread_cleanup) <next>: Delete field.
7700 (current_thread_cleanup_chain): Delete.
7701 (restore_current_thread_cleanup_dtor)
7702 (make_cleanup_restore_current_thread): Remove references to
7703 current_thread_cleanup_chain.
7704
845b344f
AH
77052017-04-10 Alan Hayward <alan.hayward@arm.com>
7706
7707 * msp430-tdep.c (msp430_pseudo_register_read): Never return
7708 REG_UNKNOWN.
7709
803bdfe4
YQ
77102017-04-10 Yao Qi <yao.qi@linaro.org>
7711
7712 PR gdb/19942
7713 * gdbthread.h (thread_info::deletable): New method.
7714 (thread_info::incref): New method.
7715 (thread_info::decref): New method.
7716 (thread_info::refcount): Move it to private.
7717 * infrun.c (save_stop_context): Call inc_refcount.
7718 (release_stop_context_cleanup): Likewise.
7719 * thread.c (set_thread_exited): New function.
7720 (init_thread_list): Delete "tp" only it is deletable, otherwise
7721 call set_thread_exited.
7722 (delete_thread_1): Call set_thread_exited.
7723 (current_thread_cleanup) <inferior_pid>: Remove.
7724 <thread>: New field.
7725 (restore_current_thread_ptid_changed): Removed.
7726 (do_restore_current_thread_cleanup): Adjust.
7727 (restore_current_thread_cleanup_dtor): Don't call
7728 find_thread_ptid.
7729 (set_thread_refcount): Use dec_refcount.
7730 (make_cleanup_restore_current_thread): Adjust.
7731 (thread_apply_all_command): Call inc_refcount.
7732 (_initialize_thread): Don't call
7733 observer_attach_thread_ptid_changed.
7734
8c25b497
YQ
77352017-04-10 Yao Qi <yao.qi@linaro.org>
7736
7737 * thread.c (delete_thread_1): Hoist code on marking thread as
7738 exited.
7739
8473b447
SM
77402017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7741
7742 * windows-nat.c (windows_detach): Initialize ptid with
7743 minus_one_ptid.
7744
6670ec13
SM
77452017-04-07 Simon Marchi <simon.marchi@ericsson.com>
7746
7747 * unittests/ptid-selftests.c: Fix erroneous assert messages.
7748
ba2f91bb
AH
77492017-04-07 Alan Hayward <alan.hayward@arm.com>
7750
7751 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
7752 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
7753 (bfin_pseudo_register_write): Likewise
7754
436252de
SM
77552017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7756
7757 * common/ptid.h (struct ptid): Change to...
7758 (class ptid_t): ... this.
7759 <ptid_t>: New constructors.
7760 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
7761 matches>: New methods.
7762 <make_null, make_minus_one>: New static methods.
7763 <pid>: Rename to...
7764 <m_pid>: ...this.
7765 <lwp>: Rename to...
7766 <m_lwp>: ...this.
7767 <tid>: Rename to...
7768 <m_tid>: ...this.
7769 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
7770 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
7771 as references, move comment to class ptid_t.
7772 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
7773 ptid_t static methods.
7774 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
7775 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
7776 Take ptid arguments as references, implement using ptid_t methods.
7777 * unittests/ptid-selftests.c: New file.
7778 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7779 unittests/ptid-selftests.c.
7780 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
7781
0dedf377
TP
77822017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
7783
7784 * python/python.c (python_run_simple_file): Cast mode literal to
7785 non-const char pointer as expected by PyFile_FromString.
7786
4e9868d4
SM
77872017-04-05 Simon Marchi <simon.marchi@ericsson.com>
7788
7789 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
7790 minus_one_ptid and null_ptid.
7791
9bf2a700
PA
77922017-04-05 Pedro Alves <palves@redhat.com>
7793
7794 * warning.m4 (build_warnings): Remove -Wno-write-strings.
7795 * configure: Regenerate.
7796
a121b7c1
PA
77972017-04-05 Pedro Alves <palves@redhat.com>
7798
7799 * ada-exp.y (yyerror): Constify.
7800 * ada-lang.c (bound_name, get_selections)
7801 (ada_variant_discrim_type)
7802 (ada_variant_discrim_name, ada_value_struct_elt)
7803 (ada_lookup_struct_elt_type, is_unchecked_variant)
7804 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
7805 (catch_ada_exception_command_split)
7806 (catch_ada_assert_command_split, catch_assert_command)
7807 (ada_op_name): Constify.
7808 * ada-lang.h (ada_yyerror, get_selections)
7809 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
7810 * arc-tdep.c (arc_print_frame_cache): Constify.
7811 * arm-tdep.c (arm_skip_stub): Constify.
7812 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
7813 (gen_aggregate_elt_ref): Constify.
7814 * bcache.c (print_bcache_statistics): Constify.
7815 * bcache.h (print_bcache_statistics): Constify.
7816 * break-catch-throw.c (catch_exception_command_1):
7817 * breakpoint.c (struct ep_type_description::description):
7818 Constify.
7819 (add_solib_catchpoint): Constify.
7820 (catch_fork_command_1): Add cast.
7821 (add_catch_command): Constify.
7822 * breakpoint.h (add_catch_command, add_solib_catchpoint):
7823 Constify.
7824 * bsd-uthread.c (bsd_uthread_state): Constify.
7825 * buildsym.c (patch_subfile_names): Constify.
7826 * buildsym.h (next_symbol_text_func, patch_subfile_names):
7827 Constify.
7828 * c-exp.y (yyerror): Constify.
7829 (token::oper): Constify.
7830 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
7831 * c-varobj.c (cplus_describe_child): Constify.
7832 * charset.c (find_charset_names): Add cast.
7833 (find_charset_names): Constify array and add const_cast.
7834 * cli/cli-cmds.c (complete_command, cd_command): Constify.
7835 (edit_command): Constify.
7836 * cli/cli-decode.c (lookup_cmd): Constify.
7837 * cli/cli-dump.c (dump_memory_command, dump_value_command):
7838 Constify.
7839 (struct dump_context): Constify.
7840 (add_dump_command, restore_command): Constify.
7841 * cli/cli-script.c (get_command_line): Constify.
7842 * cli/cli-script.h (get_command_line): Constify.
7843 * cli/cli-utils.c (check_for_argument): Constify.
7844 * cli/cli-utils.h (check_for_argument): Constify.
7845 * coff-pe-read.c (struct read_pe_section_data): Constify.
7846 * command.h (lookup_cmd): Constify.
7847 * common/print-utils.c (decimal2str): Constify.
7848 * completer.c (gdb_print_filename): Constify.
7849 * corefile.c (set_gnutarget): Constify.
7850 * cp-name-parser.y (yyerror): Constify.
7851 * cp-valprint.c (cp_print_class_member): Constify.
7852 * cris-tdep.c (cris_register_name, crisv32_register_name):
7853 Constify.
7854 * d-exp.y (yyerror): Constify.
7855 (struct token::oper): Constify.
7856 * d-lang.h (d_yyerror): Constify.
7857 * dbxread.c (struct header_file_location::name): Constify.
7858 (add_old_header_file, add_new_header_file, last_function_name)
7859 (dbx_next_symbol_text, add_bincl_to_list)
7860 (find_corresponding_bincl_psymtab, set_namestring)
7861 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
7862 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
7863 * defs.h (command_line_input, print_address_symbolic)
7864 (deprecated_readline_begin_hook): Constify.
7865 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
7866 Constify.
7867 * event-top.c (handle_line_of_input): Constify and add cast.
7868 * exceptions.c (catch_errors): Constify.
7869 * exceptions.h (catch_errors): Constify.
7870 * expprint.c (print_subexp_standard, op_string, op_name)
7871 (op_name_standard, dump_raw_expression, dump_raw_expression):
7872 * expression.h (op_name, op_string, dump_raw_expression):
7873 Constify.
7874 * f-exp.y (yyerror): Constify.
7875 (struct token::oper): Constify.
7876 (struct f77_boolean_val::name): Constify.
7877 * f-lang.c (f_word_break_characters): Constify.
7878 * f-lang.h (f_yyerror): Constify.
7879 * fork-child.c (fork_inferior): Add cast.
7880 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
7881 (new_variant): Constify.
7882 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
7883 * gdbarch.c: Regenerate.
7884 * gdbcore.h (set_gnutarget): Constify.
7885 * go-exp.y (yyerror): Constify.
7886 (token::oper): Constify.
7887 * go-lang.h (go_yyerror): Constify.
7888 * go32-nat.c (go32_sysinfo): Constify.
7889 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
7890 * guile/scm-cmd.c (cmdscm_function): Constify.
7891 * guile/scm-param.c (pascm_param_value): Constify.
7892 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
7893 (h8300sx_register_name): Constify.
7894 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
7895 Constify.
7896 * ia64-tdep.c (ia64_register_names): Constify.
7897 * infcmd.c (construct_inferior_arguments): Constify.
7898 (path_command, attach_post_wait): Constify.
7899 * language.c (show_range_command, show_case_command)
7900 (unk_lang_error): Constify.
7901 * language.h (language_defn::la_error)
7902 (language_defn::la_name_of_this): Constify.
7903 * linespec.c (decode_line_2): Constify.
7904 * linux-thread-db.c (thread_db_err_str): Constify.
7905 * lm32-tdep.c (lm32_register_name): Constify.
7906 * m2-exp.y (yyerror): Constify.
7907 * m2-lang.h (m2_yyerror): Constify.
7908 * m32r-tdep.c (m32r_register_names): Constify and make static.
7909 * m68hc11-tdep.c (m68hc11_register_names): Constify.
7910 * m88k-tdep.c (m88k_register_name): Constify.
7911 * macroexp.c (appendmem): Constify.
7912 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
7913 (upgrade_type, parse_external, parse_partial_symbols)
7914 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
7915 (new_symbol): Constify.
7916 * memattr.c (mem_info_command): Constify.
7917 * mep-tdep.c (register_name_from_keyword): Constify.
7918 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
7919 Constify.
7920 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
7921 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
7922 * mi/mi-main.c (captured_mi_execute_command): Constify and add
7923 cast.
7924 (mi_execute_async_cli_command): Constify.
7925 * mips-tdep.c (mips_register_name): Constify.
7926 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
7927 (am33_register_name, am33_2_register_name)
7928 * moxie-tdep.c (moxie_register_names): Constify.
7929 * nat/linux-osdata.c (osdata_type): Constify fields.
7930 * nto-tdep.c (nto_parse_redirection): Constify.
7931 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
7932 (lookup_child_selector): Constify.
7933 (objc_methcall::name): Constify.
7934 * objc-lang.h (lookup_objc_class, lookup_child_selector)
7935 (lookup_struct_typedef): Constify.
7936 * objfiles.c (pc_in_section): Constify.
7937 * objfiles.h (pc_in_section): Constify.
7938 * p-exp.y (struct token::oper): Constify.
7939 (yyerror): Constify.
7940 * p-lang.h (pascal_yyerror): Constify.
7941 * parser-defs.h (op_name_standard): Constify.
7942 (op_print::string): Constify.
7943 (exp_descriptor::op_name): Constify.
7944 * printcmd.c (print_address_symbolic): Constify.
7945 * psymtab.c (print_partial_symbols): Constify.
7946 * python/py-breakpoint.c (stop_func): Constify.
7947 (bppy_get_expression): Constify.
7948 * python/py-cmd.c (cmdpy_completer::name): Constify.
7949 (cmdpy_function): Constify.
7950 * python/py-event.c (evpy_add_attribute)
7951 (gdbpy_initialize_event_generic): Constify.
7952 * python/py-event.h (evpy_add_attribute)
7953 (gdbpy_initialize_event_generic): Constify.
7954 * python/py-evts.c (add_new_registry): Constify.
7955 * python/py-finishbreakpoint.c (outofscope_func): Constify.
7956 * python/py-framefilter.c (get_py_iter_from_func): Constify.
7957 * python/py-inferior.c (get_buffer): Add cast.
7958 * python/py-param.c (parm_constant::name): Constify.
7959 * python/py-unwind.c (fprint_frame_id): Constify.
7960 * python/python.c (gdbpy_parameter_value): Constify.
7961 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
7962 * remote.c (memory_packet_config::name): Constify.
7963 (show_packet_config_cmd, remote_write_bytes)
7964 (remote_buffer_add_string):
7965 * reverse.c (exec_reverse_once): Constify.
7966 * rs6000-tdep.c (variant::name, variant::description): Constify.
7967 * rust-exp.y (rustyyerror): Constify.
7968 * rust-lang.c (rust_op_name): Constify.
7969 * rust-lang.h (rustyyerror): Constify.
7970 * serial.h (serial_ops::name): Constify.
7971 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
7972 (sh_sh3e_register_name, sh_sh2e_register_name)
7973 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
7974 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
7975 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
7976 (sh_sh4al_dsp_register_name): Constify.
7977 * sh64-tdep.c (sh64_register_name): Constify.
7978 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
7979 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
7980 * stabsread.c (patch_block_stabs, read_type_number)
7981 (ref_map::stabs, ref_add, process_reference)
7982 (symbol_reference_defined, define_symbol, define_symbol)
7983 (error_type, read_type, read_member_functions, read_cpp_abbrev)
7984 (read_one_struct_field, read_struct_fields, read_baseclasses)
7985 (read_tilde_fields, read_struct_type, read_array_type)
7986 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
7987 (read_huge_number, read_range_type, read_args, common_block_start)
7988 (find_name_end): Constify.
7989 * stabsread.h (common_block_start, define_symbol)
7990 (process_one_symbol, symbol_reference_defined, ref_add):
7991 * symfile.c (get_section_index, add_symbol_file_command):
7992 * symfile.h (get_section_index): Constify.
7993 * target-descriptions.c (tdesc_type::name): Constify.
7994 (tdesc_free_type): Add cast.
7995 * target.c (find_default_run_target):
7996 (add_deprecated_target_alias, find_default_run_target)
7997 (target_announce_detach): Constify.
7998 (do_option): Constify.
7999 * target.h (add_deprecated_target_alias): Constify.
8000 * thread.c (print_thread_info_1): Constify.
8001 * top.c (deprecated_readline_begin_hook, command_line_input):
8002 Constify.
8003 (init_main): Add casts.
8004 * top.h (handle_line_of_input): Constify.
8005 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
8006 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
8007 (tfind_command): Rename to ...
8008 (tfind_command_1): ... this and constify.
8009 (tfind_command): New function.
8010 (tfind_end_command, tfind_start_command): Adjust.
8011 (encode_source_string): Constify.
8012 * tracepoint.h (encode_source_string): Constify.
8013 * tui/tui-data.c (tui_partial_win_by_name): Constify.
8014 * tui/tui-data.h (tui_partial_win_by_name): Constify.
8015 * tui/tui-source.c (tui_set_source_content_nil): Constify.
8016 * tui/tui-source.h (tui_set_source_content_nil): Constify.
8017 * tui/tui-win.c (parse_scrolling_args): Constify.
8018 * tui/tui-windata.c (tui_erase_data_content): Constify.
8019 * tui/tui-windata.h (tui_erase_data_content): Constify.
8020 * tui/tui-winsource.c (tui_erase_source_content): Constify.
8021 * tui/tui.c (tui_enable): Add cast.
8022 * utils.c (defaulted_query): Constify.
8023 (init_page_info): Add cast.
8024 (puts_debug, subset_compare): Constify.
8025 * utils.h (subset_compare): Constify.
8026 * varobj.c (varobj_format_string): Constify.
8027 * varobj.h (varobj_format_string): Constify.
8028 * vax-tdep.c (vax_register_name): Constify.
8029 * windows-nat.c (windows_detach): Constify.
8030 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
8031 * xml-support.c (gdb_xml_end_element): Constify.
8032 * xml-tdesc.c (tdesc_start_reg): Constify.
8033 * xstormy16-tdep.c (xstormy16_register_name): Constify.
8034 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
8035 * xtensa-tdep.h (xtensa_register_t::name): Constify.
8036
995816ba
PA
80372017-04-05 Pedro Alves <palves@redhat.com>
8038
8039 * proc-api.c (struct trans): Constify.
8040 (procfs_note): Constify.
8041 * proc-events.c (struct trans, syscall_table):
8042 * proc-flags.c (struct trans): Constify.
8043 * proc-utils.h (procfs_note): Constify.
8044 * proc-why.c (struct trans): Constify.
8045 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
8046 (procfs_detach): Constify.
8047 * sol-thread.c (struct string_map): Constify.
8048 (td_err_string, td_state_string): Constify.
8049
3e83a920
PA
80502017-04-05 Pedro Alves <palves@redhat.com>
8051
8052 * proc-api.c (procfs_filename): Don't initialize
8053 procfs_filename.
8054 (prepare_to_trace): Assume procfs_filename is non-NULL.
8055 (_initialize_proc_api): Give procfs_filename a default value here.
8056
63160a43
PA
80572017-04-05 Pedro Alves <palves@redhat.com>
8058
8059 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
8060 'cond_string' parameter.
8061 (extract_exception_regexp): Constify 'string' parameter.
8062 (catch_exception_command_1): Constify.
8063 * breakpoint.c (init_catchpoint)
8064 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
8065 parameter.
8066 (ep_parse_optional_if_clause, catch_fork_command_1)
8067 (catch_exec_command_1): Constify.
8068 * breakpoint.h (init_catchpoint): Constify 'cond_string'
8069 parameter.
8070 (ep_parse_optional_if_clause): Constify.
8071 * cli/cli-utils.c (remove_trailing_whitespace)
8072 (check_for_argument): Constify.
8073 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
8074 non-const overload.
8075 (check_for_argument): Likewise.
8076
9b2eba3d
PA
80772017-04-05 Pedro Alves <palves@redhat.com>
8078
8079 * event-top.c (command_line_handler): Add cast to execute_command
8080 call.
8081 * record-btrace.c (cmd_record_btrace_bts_start)
8082 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
8083 (cmd_record_btrace_start): Add cast to execute_command call.
8084 * record-full.c (record_full_goto_insn):
8085 * record.c (record_start, record_stop): Add cast to
8086 execute_command_to_string calls.
8087 (cmd_record_start): Add cast to execute_command calls.
8088
2adadf51
PA
80892017-04-05 Pedro Alves <palves@redhat.com>
8090
8091 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
8092 static inline function.
8093 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
8094 array and use gdb_PyArg_ParseTupleAndKeywords.
8095 * python/py-cmd.c (cmdpy_init): Likewise.
8096 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
8097 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
8098 (infpy_search_memory): Likewise.
8099 * python/py-objfile.c (objfpy_add_separate_debug_file)
8100 (gdbpy_lookup_objfile): Likewise.
8101 * python/py-symbol.c (gdbpy_lookup_symbol)
8102 (gdbpy_lookup_global_symbol): Likewise.
8103 * python/py-type.c (gdbpy_lookup_type): Likewise.
8104 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
8105 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
8106 Likewise.
8107
0d1f4ceb
PA
81082017-04-05 Pedro Alves <palves@redhat.com>
8109
8110 * python/python-internal.h (gdb_PyGetSetDef): New type.
8111 * python/py-block.c (block_object_getset)
8112 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
8113 * python/py-event.c (event_object_getset)
8114 (finish_breakpoint_object_getset): Likewise.
8115 * python/py-inferior.c (inferior_object_getset): Likewise.
8116 * python/py-infthread.c (thread_object_getset): Likewise.
8117 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
8118 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
8119 * python/py-objfile.c (objfile_getset): Likewise.
8120 * python/py-progspace.c (pspace_getset): Likewise.
8121 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
8122 Likewise.
8123 * python/py-record.c (recpy_record_getset): Likewise.
8124 * python/py-symbol.c (symbol_object_getset): Likewise.
8125 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
8126 Likewise.
8127 * python/py-type.c (type_object_getset, field_object_getset):
8128 Likewise.
8129 * python/py-value.c (value_object_getset): Likewise.
8130
4d759979
PA
81312017-04-05 Pedro Alves <palves@redhat.com>
8132
8133 * python/python-internal.h (gdb_PyObject_CallMethod)
8134 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
8135 New functions.
8136 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
8137 (PySys_GetObject, PySys_SetPath): New macros.
8138
fdf9e36f
PA
81392017-04-05 Pedro Alves <palves@redhat.com>
8140
8141 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
8142 info_osdata_command.
8143 * osdata.c (info_osdata_command): Rename to ...
8144 (info_osdata): ... this. Constify 'type' parameter, and remove
8145 the 'from_tty' parameter. Accept NULL TYPE.
8146 (info_osdata_command): New function.
8147 * osdata.h (info_osdata_command): Remove declaration.
8148 (info_osdata): New declaration.
8149
9f33b8b7
PA
81502017-04-05 Pedro Alves <palves@redhat.com>
8151
8152 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
8153 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
8154 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
8155 parameter.
8156 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
8157 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
8158 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
8159 parameter.
8160 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
8161 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
8162 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8163 (mi_cmd_file_list_exec_source_files)
8164 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
8165 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8166 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
8167 parameter.
8168 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
8169 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
8170 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8171 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
8172 (mi_cmd_stack_info_frame): Constify 'command' parameter.
8173 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
8174 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
8175 'command' parameter.
8176 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
8177 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
8178 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
8179 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
8180 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
8181 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
8182 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
8183 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
8184 (mi_cmd_var_set_update_range): Constify 'command' parameter.
8185 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
8186 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
8187 parameter.
8188 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
8189 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
8190 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
8191 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
8192 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
8193 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
8194 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
8195 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
8196 (mi_cmd_data_list_changed_registers)
8197 (mi_cmd_data_write_register_values)
8198 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
8199 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
8200 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
8201 (mi_cmd_list_features, mi_cmd_list_target_features)
8202 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
8203 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
8204 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
8205 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
8206 (mi_cmd_trace_frame_collected): Constify 'command'
8207 parameter.
8208 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
8209 'command' parameter.
8210
67cb5b2d
PA
82112017-04-05 Pedro Alves <palves@redhat.com>
8212
8213 * ada-lang.c (ada_completer_word_break_characters): Now a const
8214 array.
8215 (ada_get_gdb_completer_word_break_characters): Constify.
8216 * completer.c (gdb_completer_command_word_break_characters)
8217 (gdb_completer_file_name_break_characters)
8218 (gdb_completer_quote_characters): Now const arrays.
8219 (get_gdb_completer_quote_characters): Constify.
8220 (set_rl_completer_word_break_characters): New function.
8221 (set_gdb_completion_word_break_characters)
8222 (complete_line_internal): Use it.
8223 * completer.h (get_gdb_completer_quote_characters): Constify.
8224 (set_rl_completer_word_break_characters): Declare.
8225 * f-lang.c (f_word_break_characters): Constify.
8226 * language.c (default_word_break_characters): Constify.
8227 * language.h (language_defn::la_word_break_characters): Constify.
8228 (default_word_break_characters): Constify.
8229 * top.c (init_main): Use set_rl_completer_word_break_characters.
8230
7a114964
PA
82312017-04-05 Pedro Alves <palves@redhat.com>
8232
8233 * aix-thread.c (aix_thread_pid_to_str)
8234 (aix_thread_extra_thread_info): Constify.
8235 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
8236 * bsd-uthread.c (bsd_uthread_extra_thread_info)
8237 (bsd_uthread_pid_to_str): Constify.
8238 * corelow.c (core_pid_to_str): Constify.
8239 * darwin-nat.c (darwin_pid_to_str): Constify.
8240 * fbsd-nat.c (fbsd_pid_to_str): Constify.
8241 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
8242 Constify.
8243 * gnu-nat.c (gnu_pid_to_str): Constify.
8244 * go32-nat.c (go32_pid_to_str): Constify.
8245 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
8246 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
8247 * inferior.c (inferior_pid_to_str): Constify.
8248 * linux-nat.c (linux_nat_pid_to_str): Constify.
8249 * linux-tdep.c (linux_core_pid_to_str): Constify.
8250 * linux-thread-db.c (thread_db_pid_to_str)
8251 (thread_db_extra_thread_info): Constify.
8252 * nto-tdep.c (nto_extra_thread_info): Constify.
8253 * nto-tdep.h (nto_extra_thread_info): Constify.
8254 * obsd-nat.c (obsd_pid_to_str): Constify.
8255 * procfs.c (procfs_pid_to_str): Constify.
8256 * ravenscar-thread.c (ravenscar_extra_thread_info)
8257 (ravenscar_pid_to_str): Constify.
8258 * remote-sim.c (gdbsim_pid_to_str): Constify.
8259 * remote.c (remote_threads_extra_info, remote_pid_to_str):
8260 Constify.
8261 * sol-thread.c (solaris_pid_to_str): Constify.
8262 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
8263 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
8264 * target.c (default_pid_to_str, target_pid_to_str)
8265 (normal_pid_to_str, default_pid_to_str): Constify.
8266 * target.h (target_ops::to_pid_to_str)
8267 (target_ops::to_extra_thread_info): Constify.
8268 (target_pid_to_str, normal_pid_to_str): Constify.
8269 * windows-nat.c (windows_pid_to_str): Constify.
8270 * gdbarch.sh (core_pid_to_str): Constify.
8271 * target-delegates.c: Regenerate.
8272 * gdbarch.h, gdbarch.c: Regenerate.
8273
69bbf465
PA
82742017-04-05 Pedro Alves <palves@redhat.com>
8275
8276 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
8277 the memory of the temporary warning_pre_print override.
8278 * utils.c (warning_pre_print): Constify.
8279 * utils.h (warning_pre_print): Constify.
8280
be47f9e8
PA
82812017-04-05 Pedro Alves <palves@redhat.com>
8282
8283 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
8284 (shell_command): New function.
8285 (make_command): Use std::string.
8286 (init_cli_cmds): Register shell_command instead of shell_escape.
8287
bde6261a
PA
82882017-04-05 Pedro Alves <palves@redhat.com>
8289
8290 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
8291 * tracepoint.c (default_collect): Don't initialize.
8292
b38ef47f
PA
82932017-04-05 Pedro Alves <palves@redhat.com>
8294
8295 * macroexp.c (macro_buffer::shared): Now a bool.
8296 (init_buffer): Update.
8297 (init_shared_buffer): Constify 'addr' parameter.
8298 (substitute_args, expand, macro_expand, macro_expand_next): Remove
8299 casts.
8300
f995bbe8
PA
83012017-04-05 Pedro Alves <palves@redhat.com>
8302
8303 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
8304 * disasm.c (set_disassembler_options): Constify local.
8305 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
8306
4a596fe2
SDJ
83072017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
8308
8309 PR gdb/21352
8310 * tracefile.c (tsave_command): Fix argument parsing for '-r'
8311 option.
8312
2cad08ea
YQ
83132017-04-05 Yao Qi <yao.qi@linaro.org>
8314
8315 * frame.c (frame_unwind_register_unsigned): Call
8316 frame_unwind_register_value.
8317
55a98976
YQ
83182017-04-05 Yao Qi <yao.qi@linaro.org>
8319
8320 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
8321 Use gdb_test_multiple, and don't match anchor.
8322
4ac40124
PA
83232017-04-05 Pedro Alves <palves@redhat.com>
8324
8325 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
8326 (Write After Approval): Remove Simon Marchi.
8327
c053b654
PA
83282017-04-05 Pedro Alves <palves@redhat.com>
8329
8330 * common/gdb_optional.h (optional::optional): Make constexpr and
8331 initialize m_dummy.
8332
4c7bf4f9
JB
83332017-04-04 John Baldwin <jhb@FreeBSD.org>
8334
8335 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8336 (amd64fbsd_jmp_buf_reg_offset): Remove.
8337 (amd64fbsd_supply_uthread): Remove function.
8338 (amd64fbsd_collect_uthread): Remove function.
8339 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
8340 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
8341 (x86_64-*-freebsd*): Remove bsd-uthread.o.
8342 (fbsd-nat.c): Update comment.
8343 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8344 (i386fbsd_jmp_buf_reg_offset): Remove.
8345 (i386fbsd_supply_uthread): Remove function.
8346 (i386fbsd_collect_uthread): Remove function.
8347 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
8348
1e1a8bef
JB
83492017-04-04 John Baldwin <jhb@FreeBSD.org>
8350
8351 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
8352 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
8353 * NEWS: Mention that support for FreeBSD/alpha was removed.
8354 * alpha-fbsd-tdep.c: Delete file.
8355 * config/alpha/fbsd.mh: Delete file.
8356 * configure.host: Delete alpha*-*-freebsd* and
8357 alpha*-*-kfreebsd*-gnu.
8358 * configure.tgt: Delete alpha*-*-freebsd* and
8359 alpha*-*-kfreebsd*-gnu.
8360
49907934
JB
83612017-04-04 John Baldwin <jhb@FreeBSD.org>
8362
8363 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
8364 amd64bsd_store_inferior_registers): Use ptid from regcache.
8365
6f77053d
PA
83662017-04-04 Pedro Alves <palves@redhat.com>
8367
8368 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
8369 data fields, make them private and add "m_" prefixes.
8370 (lnp_state_machine::lnp_state_machine): New ctor.
8371 (record_line, check_line_address, handle_set_discriminator)
8372 (handle_set_address, handle_advance_pc, handle_special_opcode)
8373 (handle_advance_line, handle_set_file, handle_negate_stmt)
8374 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
8375 (end_sequence, advance_line): New methods.
8376 (m_gdbarch, m_record_lines_p): New fields.
8377 (lnp_reader_state): Delete.
8378 (dwarf_record_line): Rename to ...
8379 (lnp_state_machine::record_line): ... adjust.
8380 (init_lnp_state_machine): Delete.
8381 (lnp_state_machine::lnp_state_machine): New.
8382 (check_line_address): Rename to ...
8383 (lnp_state_machine::check_line_address): This.
8384 (dwarf_decode_lines_1): Remove reference to "reader_state".
8385 Adjust lnp_state_machine having a non-default ctor. Use bool.
8386 State machine internal state manipulation moved to
8387 lnp_state_machine methods.
8388
9c541725
PA
83892017-04-04 Pedro Alves <palves@redhat.com>
8390
8391 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8392 unittests/offset-type-selftests.c.
8393 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
8394 * common/offset-type.h: New file.
8395 * common/preprocessor.h: New file.
8396 * common/traits.h: New file.
8397 * common/valid-expr.h: New file.
8398 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
8399 sect_offset and cu_offset strong typedefs throughout.
8400 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
8401 typedefs throughout.
8402 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
8403 sect_offset and cu_offset strong typedefs throughout.
8404 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
8405 typedefs throughout.
8406 * gdbtypes.h: Include "common/offset-type.h".
8407 (cu_offset): Now an offset type (strong typedef) instead of a
8408 struct.
8409 (sect_offset): Likewise.
8410 (union call_site_parameter_u): Rename "param_offset" field to
8411 "param_cu_off".
8412 * unittests/offset-type-selftests.c: New file.
8413
ecfb656c
PA
84142017-04-04 Pedro Alves <palves@redhat.com>
8415
8416 * common/underlying.h: New file.
8417 * dwarf2read.c: Include "common/gdb_optional.h" and
8418 "common/underlying.h".
8419 (dir_index, file_name_index): New types.
8420 (file_entry): Use them.
8421 (file_entry::include): Use to_underlying.
8422 (line_header::add_file_name): Use dir_index.
8423 (read_formatted_entries): Use gdb::optional. Read form before
8424 writting to file_entry.
8425 (dwarf_decode_line_header): Use dir_index.
8426 (lnp_state_machine::current_file): Use to_underlying.
8427 (lnp_state_machine::file): Change type to file_name_index.
8428 (dwarf_record_line): Use to_underlying.
8429 (init_lnp_state_machine): Use file_name_index.
8430 (dwarf_decode_lines_1): Use dir_index and file_name_index.
8431
d194f1fe
PA
84322017-04-04 Pedro Alves <palves@redhat.com>
8433
8434 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
8435 operator bool, has_value and get methods.
8436
fff8551c
PA
84372017-04-04 Pedro Alves <palves@redhat.com>
8438
8439 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
8440 fields.
8441 (line_header): Initialize all data fields. Change type of
8442 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
8443 Change type of include_dirs to std::vector<const char *>. Remove
8444 num_include_dirs, include_dirs_size. Change type of file_names to
8445 std::vector<file_entry>. Remove num_file_names, file_names_size.
8446 (line_header::line_header): New.
8447 (line_header::add_include_dir, line_header::add_file_name): New
8448 methods.
8449 (line_header::include_dir_at): Remove NULL check.
8450 (line_header::file_name_at): Add const overload.
8451 (line_header_up): New unique_ptr typedef.
8452 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
8453 std::vector. Remove free_line_header call.
8454 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
8455 free_line_header call.
8456 (free_cu_line_header): Delete.
8457 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
8458 (setup_type_unit_groups): Use line_header_up instead of cleanups.
8459 Adjust to use std::vector.
8460 (free_line_header): Delete.
8461 (free_line_header_voidp): Use delete.
8462 (add_include_dir): Replace with ...
8463 (line_header::add_include_dir): ... this method. Use std::vector.
8464 (add_file_name): Replace with ...
8465 (line_header::add_file_name): ... this method. Use std::vector.
8466 (add_include_dir_stub): Delete.
8467 (read_formatted_entries): Remove memset.
8468 (dwarf_decode_line_header): Return a line_header_up instead of a
8469 raw pointer. Remove cleanup handling. Pass lambdas to
8470 read_formatted_entries. Adjust to use line_header methods.
8471 (dwarf_decode_lines_1): Adjust to use line_header methods.
8472 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
8473 use std::vector.
8474
d62a8ae2
SM
84752017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
8476
8477 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
8478 instead of struct ptid.
8479
db3a1dc7
AH
84802017-05-04 Alan Hayward <alan.hayward@arm.com>
8481
8482 * frame.c (get_frame_register_bytes): Unwind using value.
8483 (put_frame_register_bytes): Likewise.
8484
b1b45502
IB
84852017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
8486
8487 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
8488 aggregate-like.
8489
ec13808e
JK
84902017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8491
8492 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
8493
12316564
YQ
84942017-03-29 Yao Qi <yao.qi@linaro.org>
8495
8496 * gdbthread.h (struct thread_info): Declare constructor and
8497 destructor. Add some in-class member initializers.
8498 * thread.c (free_thread): Remove.
8499 (init_thread_list): Call delete instead of free_thread.
8500 (new_thread): Call thread_info constructor.
8501 (thread_info::thread_info): New function.
8502 (thread_info::~thread_info): New function.
8503 (delete_thread_1): Call delete instead of free_thread.
8504 (make_cleanup_restore_current_thread): Move tp and frame to
8505 inner block.
8506
fe5f7374
AK
85072017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8508
8509 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
8510 (arc_skip_prologue): Likewise.
8511 (arc_make_frame_cache): Likewise.
8512 (arc_pv_get_operand): New function.
8513 (arc_is_in_prologue): Likewise.
8514 (arc_analyze_prologue): Likewise.
8515 (arc_print_frame_cache): Likewise.
8516 (MAX_PROLOGUE_LENGTH): New constant.
8517
eea78757
AK
85182017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8519
8520 * configure.tgt: Add arc-insn.o.
8521 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
8522 (dump_arc_instruction_command): New function.
8523 (arc_fprintf_disasm): Likewise.
8524 (arc_disassemble_info): Likewise.
8525 (arc_insn_get_operand_value): Likewise.
8526 (arc_insn_get_operand_value_signed): Likewise.
8527 (arc_insn_get_memory_base_reg): Likewise.
8528 (arc_insn_get_memory_offset): Likewise.
8529 (arc_insn_get_branch_target): Likewise.
8530 (arc_insn_dump): Likewise.
8531 (arc_insn_get_linear_next_pc): Likewise.
8532 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
8533 (arc_disassemble_info): Likewise.
8534 (arc_insn_get_branch_target): Likewise.
8535 (arc_insn_get_linear_next_pc): Likewise.
8536 * NEWS: Mention new "maint print arc arc-instruction".
8537
3be78afd
AK
85382017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8539
8540 * arc-tdep (maintenance_print_arc_list): New variable.
8541 (maintenance_print_arc_command): New function.
8542
296ec4fa
AK
85432017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8544
8545 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
8546 Add "limm" and "reserved".
8547 (arc_cannot_fetch_register, arc_cannot_store_register): Add
8548 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
8549 * arc-tdep.h (arc_regnum): Likewise.
8550
f74f865e
MF
85512017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8552
8553 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8554 for THREADPTR register.
8555 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
8556 register.
8557 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
8558 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
8559 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
8560
0d0bf81a
MF
85612017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8562
8563 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
8564 registers above gdbarch_num_regs (gdbarch) as privileged in
8565 call0 ABI.
8566
0ce4291e
MF
85672017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8568
8569 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8570 for a single specified register or for all registers in
8571 a0_base..a0_base + C0_NREGS range.
8572 (supply_gregset_reg): Call regcache_raw_supply for a single
8573 specified register or for all registers in a0_base..a0_base +
8574 C0_NREGS range.
8575
c56054f9
MF
85762017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8577
8578 * arch/xtensa.h (C0_NREGS): Add definition.
8579 * xtensa-tdep.c (C0_NREGS): Remove definition.
8580
a4398628
MF
85812017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8582
8583 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
8584 Drop xtensa_default_isa initialization.
8585 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
8586
8c43009f
PA
85872017-03-27 Pedro Alves <palves@redhat.com>
8588
8589 * dwarf2read.c (file_entry) <dir_index>: Add comment.
8590 (file_entry::include_dir): New method.
8591 (line_header::include_dir_at, line_header::file_name_at): New
8592 methods.
8593 (setup_type_unit_groups, setup_type_unit_groups)
8594 (psymtab_include_file_name): Simplify using the new methods.
8595 (lnp_state_machine) <the_line_header>: New field.
8596 <file>: Add comment.
8597 (lnp_state_machine::current_file): New method.
8598 (dwarf_record_line): Simplify using the new methods.
8599 (init_lnp_state_machine): Initialize the "the_line_header" field.
8600 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
8601 Simplify using the new methods.
8602
a7e80b9e
PA
86032017-03-27 Pedro Alves <palves@redhat.com>
8604
8605 * cp-name-parser.y (make_empty): Delete.
8606 (demangler_special, nested_name, ptr_operator, array_indicator)
8607 (direct_declarator, declarator_1): Use fill_comp instead of
8608 make_empty.
8609
21047726
PA
86102017-03-27 Pedro Alves <palves@redhat.com>
8611
8612 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
8613 to ATTRIBUTE_PRINTF.
8614 * solib-target.c (library_list_start_list): Print "string" not
8615 "version".
8616 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
8617 gdb_xml_error call.
8618
d721ba37
PA
86192017-03-27 Pedro Alves <palves@redhat.com>
8620
8621 * dwarf2read.c (struct file_and_directory): New.
8622 (dwarf2_get_dwz_file): Adjust to use std::string.
8623 (dw2_get_file_names_reader): Adjust to use file_and_directory.
8624 (find_file_and_directory): Adjust to return a file_and_directory
8625 object.
8626 (read_file_scope): Adjust to use file_and_directory. Remove
8627 make_cleanup/do_cleanups calls.
8628 (open_and_init_dwp_file): Adjust to use std::string. Remove
8629 make_cleanup/do_cleanups calls.
8630 * python/python.c (do_start_initialization): Adjust to ldirname
8631 returning a std::string.
8632 * utils.c (ldirname): Now returns a std::string.
8633 * utils.h (ldirname): Change return type to std::string.
8634 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
8635 returning a std::string.
8636 * xml-tdesc.c (file_read_description_xml): Likewise.
8637
ed771251
AH
86382017-03-24 Alan Hayward <alan.hayward@arm.com>
8639
8640 * regcache.c (regcache_debug_print_register): New function.
8641 * regcache.h (regcache_debug_print_register): New declaration.
8642 * target.c (debug_print_register): Remove.
8643 (target_fetch_registers): Call regcache_debug_print_register.
8644 (target_store_registers): Likewise.
8645
568c1b9f
PB
86462017-03-24 Pádraig Brady <pbrady@fb.com>
8647
8648 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
8649 reference beyond the 'lh->include_dirs' array before accessing to
8650 it.
8651 (psymtab_include_file_name): Likewise.
8652 (dwarf_decode_lines_1): Likewise.
8653 (dwarf_decode_lines): Likewise.
8654 (file_file_name): Likewise.
8655
3e00d44f
SM
86562017-03-23 Simon Marchi <simon.marchi@ericsson.com>
8657
8658 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
8659 inferior_ptid.
8660 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8661 ps_lsetfpregs): Likewise.
8662 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
8663 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8664 ps_lsetfpregs): Likewise.
8665 * target.c (target_fetch_registers, target_store_registers):
8666 Remove asserts.
8667
077ae656
AH
86682017-03-23 Alan Hayward <alan.hayward@arm.com>
8669
8670 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
8671
1e2b521d
YQ
86722017-03-23 Yao Qi <yao.qi@linaro.org>
8673
8674 * aarch64-tdep.c (aarch64_process_record_test): Declare.
8675 (_initialize_aarch64_tdep): Register it.
8676 (aarch64_record_load_store): Handle PRFM instruction.
8677 (aarch64_process_record_test): New function.
8678
33877125
YQ
86792017-03-23 Yao Qi <yao.qi@linaro.org>
8680
8681 * aarch64-tdep.c (aarch64_record_load_store): Fix code
8682 indentation.
8683
a0eef940
YQ
86842017-03-23 Yao Qi <yao.qi@linaro.org>
8685
8686 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
8687
3f2a3564
PR
86882017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8689
8690 python/python.c (do_start_initialization): Fix memory leak.
8691
b67aeab0
SM
86922017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8693
8694 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
8695 using get_ptrace_pid.
8696 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
8697 inferior_ptid.
8698 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
8699 inferior_ptid instead of pid.
8700
ffdbe864
YQ
87012017-03-22 Yao Qi <yao.qi@linaro.org>
8702
8703 * aarch64-tdep.c: Wrap locally used classes in anonymous
8704 namespace.
8705 * arm-tdep.c: Likewise.
8706 * linespec.c: Likewise.
8707 * ui-out.c: Likewise.
8708
9d736fbf
JG
87092017-03-22 Jonah Graham <jonah@kichwacoders.com>
8710
8711 PR gdb/19637
8712 * python/lib/gdb/printer/bound_registers.py: Import sys.
8713
3de88e9a
SM
87142017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8715
8716 * windows-nat.c (do_windows_fetch_inferior_registers): Add
8717 windows_thread_info parameter and use it instead of
8718 current_thread.
8719 (windows_fetch_inferior_registers): Don't set current_thread,
8720 pass the thread to do_windows_fetch_inferior_registers. Use
8721 ptid from regcache instead of inferior_ptid.
8722 (do_windows_store_inferior_registers): Add windows_thread_info
8723 parameter and use it instead of current_thread.
8724 (windows_store_inferior_registers): Don't set current_thread,
8725 pass the thread to do_windows_store_inferior_registers. Use
8726 ptid from regcache instead of inferior_ptid.
8727
0e7b8f61
SM
87282017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8729
8730 * ser-mingw.c (ser_windows_raw): Remove reference to
8731 struct serial::current_timeout.
8732
5badf10a
IR
87332017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
8734
8735 PR tdep/20928
8736 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
8737 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
8738 (sparc64_fsr_type): Fix %fsr decoding.
8739
cee59b3f
TW
87402017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
8741
8742 * python/py-record-btrace.c (btpy_insn_data): Change return type
8743 for Python 2.
8744
639a9038
SM
87452017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
8746
8747 * spu-linux-nat.c (spu_fetch_inferior_registers,
8748 spu_store_inferior_registers): Use ptid from regcache, set and
8749 restore inferior_ptid.
8750 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
8751 Likewise.
8752
bcc0c096
SM
87532017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
8754
8755 * i386-linux-nat.c (fetch_register, store_register,
8756 i386_linux_fetch_inferior_registers,
8757 i386_linux_store_inferior_registers): Use ptid from regcache.
8758 * ia64-linux-nat.c (ia64_linux_fetch_register,
8759 ia64_linux_store_register): Likewise.
8760 * inf-ptrace.c (inf_ptrace_fetch_register,
8761 inf_ptrace_store_register): Likewise.
8762 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
8763 m32r_linux_store_inferior_registers): Likewise.
8764 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
8765 m68kbsd_store_inferior_registers): Likewise.
8766 * m68k-linux-nat.c (fetch_register, store_register,
8767 m68k_linux_fetch_inferior_registers,
8768 m68k_linux_store_inferior_registers): Likewise.
8769 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
8770 m88kbsd_store_inferior_registers): Likewise.
8771 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
8772 mips_fbsd_store_inferior_registers): Likewise.
8773 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
8774 mips64_linux_regsets_store_registers): Likewise.
8775 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
8776 mipsnbsd_store_inferior_registers): Likewise.
8777 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
8778 mips64obsd_store_inferior_registers): Likewise.
8779 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
8780 Likewise.
8781 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
8782 ppcfbsd_store_inferior_registers): Likewise.
8783 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
8784 ppc_linux_store_inferior_registers): Likewise.
8785 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
8786 ppcnbsd_store_inferior_registers): Likewise.
8787 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
8788 ppcobsd_store_registers): Likewise.
8789 * procfs.c (procfs_fetch_registers, procfs_store_registers):
8790 Likewise.
8791 * ravenscar-thread.c (ravenscar_fetch_registers,
8792 ravenscar_store_registers, ravenscar_prepare_to_store):
8793 Likewise.
8794 * record-btrace.c (record_btrace_fetch_registers,
8795 record_btrace_store_registers, record_btrace_prepare_to_store):
8796 Likewise.
8797 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
8798 Lookup inferior using ptid from regcache, instead of
8799 current_inferior.
8800 * remote.c (remote_fetch_registers, remote_store_registers): Use
8801 ptid from regcache.
8802 * rs6000-nat.c (fetch_register, store_register): Likewise.
8803 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
8804 s390_linux_store_inferior_registers): Likewise.
8805 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
8806 shnbsd_store_inferior_registers): Likewise.
8807 * sol-thread.c (sol_thread_fetch_registers,
8808 sol_thread_store_registers): Likewise.
8809 * sparc-nat.c (sparc_fetch_inferior_registers,
8810 sparc_store_inferior_registers): Likewise.
8811 * tilegx-linux-nat.c (fetch_inferior_registers,
8812 store_inferior_registers): Likewise.
8813 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
8814 vaxbsd_store_inferior_registers): Likewise.
8815 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
8816 store_xtregs): Likewise.
8817
c0f55cc6
AV
88182017-03-20 Artemiy Volkov <artemiyv@acm.org>
8819
8820 PR gdb/14441
8821 * NEWS: Mention support for rvalue references in GDB and python.
8822 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
8823 supports both lvalue and rvalue references.
8824
15c0a2a9
AV
88252017-03-20 Artemiy Volkov <artemiyv@acm.org>
8826
8827 PR gdb/14441
8828 * gdbtypes.c (rank_one_type): Implement overloading
8829 resolution rules regarding rvalue references.
8830
aa006118
AV
88312017-03-20 Artemiy Volkov <artemiyv@acm.org>
8832
8833 PR gdb/14441
8834 * aarch64-tdep.c (aarch64_type_align)
8835 (aarch64_extract_return_value, aarch64_store_return_value): Change
8836 lvalue reference type checks to general reference type checks.
8837 * amd64-tdep.c (amd64_classify): Likewise.
8838 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
8839 Likewise.
8840 * arm-tdep.c (arm_type_align, arm_extract_return_value)
8841 (arm_store_return_value): Likewise.
8842 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
8843 * c-typeprint.c (c_print_type): Likewise.
8844 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
8845 (cplus_number_of_children, cplus_describe_child): Likewise.
8846 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
8847 * completer.c (expression_completer): Likewise.
8848 * cp-support.c (make_symbol_overload_list_adl_namespace):
8849 Likewise.
8850 * darwin-nat-info.c (info_mach_region_command): Likewise.
8851 * dwarf2loc.c (entry_data_value_coerce_ref)
8852 (value_of_dwarf_reg_entry): Likewise.
8853 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
8854 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
8855 Likewise.
8856 * findvar.c (extract_typed_address, store_typed_address):
8857 Likewise.
8858 * gdbtypes.c (rank_one_type): Likewise.
8859 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
8860 * infcall.c (value_arg_coerce): Likewise.
8861 * language.c (pointer_type): Likewise.
8862 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
8863 Likewise.
8864 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
8865 * mn10300-tdep.c (mn10300_type_align): Likewise.
8866 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
8867 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
8868 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
8869 Likewise.
8870 * printcmd.c (print_formatted, x_command): Likewise.
8871 * python/py-type.c (typy_get_composite, typy_template_argument):
8872 Likewise.
8873 * python/py-value.c (valpy_referenced_value)
8874 (valpy_get_dynamic_type, value_has_field): Likewise.
8875 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
8876 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
8877 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
8878 * spu-tdep.c (spu_scalar_value_p): Likewise.
8879 * symtab.c (lookup_symbol_aux): Likewise.
8880 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
8881 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
8882 Likewise.
8883 * valops.c (value_cast_pointers, value_cast)
8884 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
8885 (value_struct_elt, value_struct_elt_bitpos)
8886 (value_find_oload_method_list, find_overload_match)
8887 (value_rtti_indirect_type): Likewise.
8888 * valprint.c (val_print_scalar_type_p, generic_val_print):
8889 Likewise.
8890 * value.c (value_actual_type, value_as_address, unpack_long)
8891 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
8892 (coerce_ref): Likewise.
8893 * varobj.c (varobj_get_value_type): Likewise.
8894
3fcf899d
AV
88952017-03-20 Artemiy Volkov <artemiyv@acm.org>
8896
8897 PR gdb/14441
8898 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
8899 table of constants.
8900 * python/lib/gdb/command/explore.py: Support exploring values
8901 of rvalue reference types.
8902 * python/lib/gdb/types.py: Implement get_basic_type() for
8903 rvalue reference types.
8904 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
8905 constant.
8906 * python/py-value.c (valpy_getitem): Add an rvalue reference
8907 check.
8908 (valpy_reference_value): Add new parameter "refcode".
8909 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
8910 New wrappers for valpy_reference_value().
8911 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
8912 (gdbpy_invoke_xmethod): Likewise.
8913
4297a3f0
AV
89142017-03-20 Artemiy Volkov <artemiyv@acm.org>
8915
8916 PR gdb/14441
8917 * dwarf2read.c (process_die, read_type_die_1): Handle the
8918 DW_TAG_rvalue_reference_type DIE.
8919 (read_tag_reference_type): Add new parameter "refcode".
8920
e1cb3213
AV
89212017-03-20 Artemiy Volkov <artemiyv@acm.org>
8922
8923 PR gdb/14441
8924 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
8925 (c_type_print_modifier, c_type_print_varspec_suffix)
8926 (c_type_print_base): Support printing rvalue reference types.
8927 * c-valprint.c (c_val_print, c_value_print): Support printing
8928 rvalue reference values.
8929
e4347c89
AV
89302017-03-20 Artemiy Volkov <artemiyv@acm.org>
8931
8932 PR gdb/14441
8933 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
8934 typename.
8935 * cp-support.c (replace_typedefs): Handle
8936 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
8937 * python/py-type.c (typy_lookup_type): Likewise.
8938
53cc15f5
AV
89392017-03-20 Artemiy Volkov <artemiyv@acm.org>
8940
8941 PR gdb/14441
8942 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
8943 * parse.c (insert_type): Change assert statement.
8944 (follow_types): Handle rvalue reference types.
8945 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
8946 constant.
8947
a65cfae5
AV
89482017-03-20 Artemiy Volkov <artemiyv@acm.org>
8949
8950 PR gdb/14441
8951 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
8952 value_ref() interface.
8953 * c-valprint.c (c_value_print): Likewise.
8954 * infcall.c (value_arg_coerce): Likewise.
8955 * python/py-value.c (valpy_reference_value): Likewise.
8956 * valops.c (value_cast, value_reinterpret_cast)
8957 (value_dynamic_cast, typecmp): Likewise.
8958 (value_ref): Parameterize by kind of return value reference type.
8959 * value.h (value_ref): Add new parameter "refcode".
8960
3b224330
AV
89612017-03-20 Artemiy Volkov <artemiyv@acm.org>
8962
8963 PR gdb/14441
8964 * dwarf2read.c (read_tag_reference_type): Use
8965 lookup_lvalue_reference_type() instead of lookup_reference_type().
8966 * eval.c (evaluate_subexp_standard): Likewise.
8967 * f-exp.y: Likewise.
8968 * gdbtypes.c (make_reference_type, lookup_reference_type):
8969 Generalize with rvalue reference types.
8970 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
8971 convenience wrappers for lookup_reference_type().
8972 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
8973 reference kind parameter.
8974 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
8975 wrappers for lookup_reference_type().
8976 * guile/scm-type.c (gdbscm_type_reference): Use
8977 lookup_lvalue_reference_type() instead of lookup_reference_type().
8978 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
8979 * parse.c (follow_types): Likewise.
8980 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
8981 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
8982 Likewise.
8983 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
8984 (gdbpy_invoke_xmethod): Likewise.
8985 * stabsread.c: Provide extra argument to make_reference_type()
8986 call.
8987 * valops.c (value_ref, value_rtti_indirect_type): Use
8988 lookup_lvalue_reference_type() instead of lookup_reference_type().
8989
f9aeb8d4
AV
89902017-03-20 Artemiy Volkov <artemiyv@acm.org>
8991
8992 PR gdb/14441
8993 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
8994 (TYPE_IS_REFERENCE): New macro.
8995 (struct type): Add rvalue_reference_type field.
8996 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
8997
51457a05
MAL
89982017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8999
9000 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
9001 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
9002 New function definition.
9003 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
9004 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
9005 New function declaration.
9006 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
9007 * mi/mi-interp.h: New file.
9008 * solib.c (info_sharedlibrary_command): Replace for loop with
9009 ALL_SO_LIBS macro
9010 * solib.h (update_solib_list): New function declaration.
9011 (so_list_head): Move macro.
9012 * solist.h (ALL_SO_LIBS): New macro.
9013
e696b3ad
MAL
90142017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9015
9016 * infcmd.c (post_create_inferior): Remove unused argument in
9017 call to solib_add.
9018 * remote.c (remote_start_remote): Likewise.
9019 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
9020 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
9021 (enable_break): Likewise.
9022 * solib.c (update_solib_list): Remove unused target argument
9023 and its documentation.
9024 (solib_add): Remove unused target argument. Remove unused
9025 argument in call to update_solib_list.
9026 (info_sharedlibrary_command): Remove unused argument in call
9027 to update_solib_list.
9028 (sharedlibrary_command): Remove unused argument in call to
9029 solib_add.
9030 (handle_solib_event): Likewise.
9031 (reload_shared_libraries): Likewise.
9032 * solib.h (solib_add): Remove unused target argument.
9033
dcb84eda
AA
90342017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
9035
9036 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
9037 (s390_displaced_step_fixup): Cover relative branches with the
9038 default fixup handling. This fixes lack of support for some
9039 relative branch instructions.
9040
d9cb6cdc
SM
90412017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9042
9043 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
9044 ptid from regcache.
9045
1afaf9f4
SM
90462017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9047
9048 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
9049 i386_darwin_store_inferior_registers): Use ptid from regcache.
9050
aac12e24
SM
90512017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9052
9053 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
9054 i386bsd_store_inferior_registers): Use ptid from regcache.
9055
bbe1eef1
SM
90562017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9057
9058 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
9059 hppaobsd_store_registers): Use ptid from regcache.
9060
10799020
SM
90612017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9062
9063 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
9064 hppanbsd_store_registers): Use ptid from regcache.
9065
00204cf7
SM
90662017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9067
9068 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
9069 from regcache. Use get_ptrace_pid.
9070
11a33714
SM
90712017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9072
9073 * corelow.c (get_core_register_section): Use ptid from regcache,
9074 update doc.
9075
317cd492
SM
90762017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9077
9078 * bsd-uthread.c (bsd_uthread_fetch_registers,
9079 bsd_uthread_store_registers): Use ptid from regcache, set and
9080 restore inferior_ptid.
9081
9ac8a7c2
SM
90822017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9083
9084 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
9085 fetch_fp_regs, store_register, store_regs, store_fp_register,
9086 store_fp_regs): Use ptid from regcache.
9087
4ac4bb6a
SM
90882017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9089
9090 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
9091 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
9092 store_vfp_regs): Use ptid from regcache.
9093
9bcbdca8
PA
90942017-03-17 Pedro Alves <palves@redhat.com>
9095
9096 PR remote/21188
9097 * ser-base.c (ser_base_wait_for): Add comment.
9098 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
9099 version.
9100 * ser-unix.c (hardwire_raw): Remove reference to
9101 scb->current_timeout.
9102 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
9103 (hardwire_ops): Install ser_base_readchar instead of
9104 hardwire_readchar.
9105 * serial.h (struct serial) <current_timeout, timeout_remaining>:
9106 Remove fields.
9107
7503099f
JG
91082017-03-17 Jonah Graham <jonah@kichwacoders.com>
9109
9110 PR gdb/19637
9111 * python/lib/gdb/printer/bound_registers.py: Add support for
9112 Python 3.
9113
7942e96e
AA
91142017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
9115
9116 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
9117 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
9118 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
9119 byte_offset to subobj_byte_offset. Fix the handling of
9120 DWARF_VALUE_STACK on big-endian targets when coming via an
9121 implicit pointer.
9122 (dwarf2_evaluate_loc_desc): Adjust call to
9123 dwarf2_evaluate_loc_desc_full.
9124 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
9125 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
9126
ba14f379
YQ
91272017-03-16 Yao Qi <yao.qi@linaro.org>
9128
9129 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
9130 and REVSH instructions.
9131
b121eeb9
YQ
91322017-03-16 Yao Qi <yao.qi@linaro.org>
9133
9134 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
9135 (arm_record_test): Declare.
9136 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
9137 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
9138 align with the manual.
9139 (thumb_record_misc): Adjust the code order to align with the
9140 manual.
9141 (thumb2_record_decode_insn_handler): Fix instruction matching.
9142 (instruction_reader_thumb): New class.
9143 (arm_record_test): New function.
9144
728a7913
YQ
91452017-03-16 Yao Qi <yao.qi@linaro.org>
9146
9147 * arm-tdep.c (abstract_memory_reader): New class.
9148 (instruction_reader): New class.
9149 (extract_arm_insn): Add argument 'reader'. Callers updated.
9150 (decode_insn): Likewise.
9151
34b43320
DE
91522017-03-16 Doug Evans <dje@google.com>
9153
a7c0469f
DE
9154 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
9155 member. Change type of TYPE member to SCM. All uses updated.
9156 (lsscm_make_lazy_string_smob): Add assert.
9157 (lsscm_make_lazy_string): Flag bad length values.
9158 (lsscm_elt_type): New function.
9159 (gdbscm_lazy_string_to_value): Rewrite to use
9160 lsscm_safe_lazy_string_to_value.
9161 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
9162 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
9163 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
9164 in incoming type.
9165 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9166 * guile/scm-type.c (tyscm_scm_to_type): New function.
9167
91682017-03-15 Doug Evans <dje@google.com>
9169
34b43320
DE
9170 PR python/17728, python/18439, python/18779
9171 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
9172 member. Change type of TYPE member to PyObject *. All uses updated.
9173 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
9174 (gdbpy_create_lazy_string_object): Flag bad length values.
9175 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
9176 Handle typedefs in incoming type.
9177 (stpy_lazy_string_elt_type): New function.
9178 (gdbpy_extract_lazy_string): Call it.
9179 * python/py-value.c (valpy_lazy_string): Flag bad length values.
9180 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
9181 typedefs in incoming type.
9182
a3a5fecc
DE
91832017-03-16 Doug Evans <dje@google.com>
9184
9185 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9186 * guile/scm-type.c (tyscm_scm_to_type): New function.
9187
28f1c605
JW
91882017-03-16 Jiong Wang <jiong.wang@arm.com>
9189
9190 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
9191 "ULONGEST" for "skip".
9192
87c336f6
AA
91932017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9194
9195 PR gdb/21220
9196 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
9197 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
9198 (inf_ptrace_peek_poke): ...here. New function. Now also loop
9199 over ptrace peek/poke until end of buffer or error.
9200
cf81cf60
SM
92012017-03-14 Simon Marchi <simon.marchi@ericsson.com>
9202
9203 * parse.c (length_of_subexp): Make static.
9204 * parser-defs.h (length_of_subexp): Remove.
9205
a379284a
AA
92062017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9207
9208 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
9209 as well.
9210
8a6200ba
PA
92112017-03-14 Pedro Alves <palves@redhat.com>
9212
9213 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
9214 (main): Use std::unique_ptr. Remove calls to
9215 cp_demangled_name_parse_free.
9216
f79ec206
SM
92172017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9218
9219 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
9220 alphabsd_store_inferior_registers): Use regcache->ptid instead
9221 of inferior_ptid.
9222
edb5fb00
SM
92232017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9224
9225 * aix-thread.c (aix_thread_fetch_registers,
9226 aix_thread_store_registers): Use regcache->ptid instead of
9227 inferior_ptid.
9228
55119686
SM
92292017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9230
9231 * aarch64-linux-nat.c (fetch_gregs_from_thread,
9232 store_gregs_to_thread, fetch_fpregs_from_thread,
9233 store_fpregs_to_thread): Use regcache->ptid instead of
9234 inferior_ptid.
9235
6a06fbb7
SM
92362017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9237
9238 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
9239 amd64_linux_fetch_inferior_registers): Use regcache->ptid
9240 instead of inferior_ptid.
9241
c6386875
SM
92422017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9243
9244 * target.c (target_fetch_registers, target_store_registers): Add
9245 assert.
9246
ddaaf0fb
SM
92472017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9248
9249 * regcache.h (regcache_get_ptid): New function.
9250 * regcache.c (regcache_get_ptid): New function.
9251
b9da89d1 92522017-03-13 Mark Wielaard <mark@klomp.org>
9253
9254 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
9255
5f4d1085
KS
92562017-03-10 Keith Seitz <keiths@redhat.com>
9257
9258 PR c++/8218
9259 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
9260
c65d6b55
PA
92612017-03-08 Pedro Alves <palves@redhat.com>
9262
9263 PR gdb/18360
9264 * infrun.c (start_step_over, do_target_resume, resume)
9265 (restart_threads): Assert we're not resuming a thread that is
9266 meant to be stopped.
9267 (infrun_thread_stop_requested_callback): Delete.
9268 (infrun_thread_stop_requested): If the thread is internally
9269 stopped, queue a pending stop event and clear the thread's
9270 inline-frame state.
9271 (handle_stop_requested): New function.
9272 (handle_syscall_event, handle_inferior_event_1): Use
9273 handle_stop_requested.
9274 (handle_stop_requested): New function.
9275 (handle_signal_stop): Set the thread's stop_signal here instead of
9276 at caller.
9277 (finish_step_over): Clear step over info unconditionally.
9278 (handle_signal_stop): If the user had interrupted the event
9279 thread, consider the stop a random signal.
9280 (handle_signal_stop) <signal arrived while stepping over
9281 breakpoint>: Don't restart threads here.
9282 (stop_waiting): Don't clear step-over info here.
9283
15c22686
PA
92842017-03-08 Pedro Alves <palves@redhat.com>
9285
9286 PR 21206
9287 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
9288 goes to argument 2, not 1.
9289
6e5d74e7
PA
92902017-03-08 Pedro Alves <palves@redhat.com>
9291
9292 PR cli/21218
9293 * top.c (gdb_readline_wrapper): Avoid passing NULL to
9294 display_gdb_prompt.
9295 (command_line_input): Add comment.
9296
9753a2f6
PA
92972017-03-08 Pedro Alves <palves@redhat.com>
9298
9299 PR tui/21216
9300 * tui/tui-file.c (tui_file::write): New.
9301 * tui/tui-file.h (tui_file): Override "write".
9302 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
9303 factored out from ...
9304 (tui_puts): ... here.
9305 (tui_putc): Use them.
9306 (tui_write): New function.
9307 * tui/tui-io.h (tui_write): Declare.
9308
1672e0d9
SDJ
93092017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
9310
9311 * Makefile.in (SFILES): Replace "environ.c" with
9312 "common/environ.c".
9313 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
9314 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
9315 to...
9316 * common/environ.c: ... here.
9317 * environ.h: Moved to...
9318 * common/environ.h: ... here.
9319
f7bb4e3a
PB
93202017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9321
9322 * gdbarch.sh (pstring_ptr): New static function.
9323 (gdbarch_disassembler_options): Use it.
9324 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
9325 not valid_disassembler_option->name.
9326 * gdbarch.c: Regenerate.
9327
e45ced6c
PB
93282017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9329
9330 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
9331
5f6fd321
PA
93322017-03-07 Pedro Alves <palves@redhat.com>
9333
9334 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
9335
6dbb839a 93362017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
9337
9338 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
9339 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
9340 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 9341 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 9342
d274ecf4
SM
93432017-03-06 Simon Marchi <simon.marchi@ericsson.com>
9344
9345 * xtensa-linux-nat.c (fetch_gregs): Remove const.
9346
df97be55
SM
93472017-03-03 Simon Marchi <simon.marchi@ericsson.com>
9348
9349 * remote.c (remote_add_target_side_commands): Use range-based
9350 for loop.
9351
7d45f3df
YQ
93522017-03-03 Yao Qi <yao.qi@linaro.org>
9353
9354 PR gdb/21165
9355 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
9356 value is lazy.
9357 * valprint.c (common_val_print): Likewise.
9358
65b48a81
PB
93592017-02-28 Peter Bergner <bergner@vnet.ibm.com>
9360
9361 * NEWS: Mention new set/show disassembler-options commands.
9362 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
9363 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
9364 (prospective_options): New static variable.
9365 (gdb_disassembler::gdb_disassembler): Initialize
9366 m_di.disassembler_options.
9367 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
9368 (get_disassembler_options): New function.
9369 (set_disassembler_options): Likewise.
9370 (set_disassembler_options_sfunc): Likewise.
9371 (show_disassembler_options_sfunc): Likewise.
9372 (disassembler_options_completer): Likewise.
9373 (_initialize_disasm): Likewise.
9374 * disasm.h (get_disassembler_options): New prototype.
9375 (set_disassembler_options): Likewise.
9376 * gdbarch.sh (gdbarch_disassembler_options): New variable.
9377 (gdbarch_verify_disassembler_options): Likewise.
9378 * gdbarch.c: Regenerate.
9379 * gdbarch.h: Likewise.
9380 * arm-tdep.c (num_disassembly_options): Delete.
9381 (set_disassembly_style): Likewise.
9382 (arm_disassembler_options): New static variable.
9383 (set_disassembly_style_sfunc): Convert short style name into long
9384 option name. Call set_disassembler_options.
9385 (show_disassembly_style_sfunc): New function.
9386 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
9387 set_gdbarch_verify_disassembler_options.
9388 (_initialize_arm_tdep): Delete regnames variable and update callers.
9389 (arm_disassembler_options): Initialize.
9390 (disasm_options): New variable.
9391 (num_disassembly_options): Rename from this...
9392 (num_disassembly_styles): ...to this. Compute by scanning through
9393 disasm_options.
9394 (valid_disassembly_styles): Initialize using disasm_options.
9395 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
9396 set_arm_regname_option.
9397 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
9398 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
9399 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
9400 set_gdbarch_verify_disassembler_options.
9401 * s390-tdep.c (s390_disassembler_options): New static variable.
9402 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
9403 set_gdbarch_verify_disassembler_options.
9404
d538e36d
SM
94052017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9406
9407 * remote.c (remote_add_target_side_condition): Remove "struct"
9408 keyword from range-based for loop.
9409
83621223
SM
94102017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9411
9412 * remote.c (remote_add_target_side_condition): Use range-based
9413 for loop. Update comment.
9414
2123df0e
YQ
94152017-02-27 Yao Qi <yao.qi@linaro.org>
9416
9417 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
9418
8e368124
AH
94192017-02-26 Alan Hayward <alan.hayward@arm.com>
9420
9421 * regcache.c (regcache_raw_update): New function.
9422 (regcache_raw_read): Move code to regcache_raw_update.
9423 * regcache.h (regcache_raw_update): New declaration.
9424 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
9425
a49dd8dd
JK
94262017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9427
9428 * dwarf2read.c (create_debug_type_hash_table): Initialize
9429 header.signature and header.type_offset_in_tu.
9430
34e4bae9
PA
94312017-02-24 Pedro Alves <palves@redhat.com>
9432
9433 * symtab.c (make_file_symbol_completion_list_1): Use
9434 add_symtab_completions.
9435
b0e4b369
AH
94362017-02-24 Alan Hayward <alan.hayward@arm.com>
9437
9438 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
9439
975c21ab
AH
94402017-02-24 Alan Hayward <alan.hayward@arm.com>
9441
9442 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
9443 I386_MAX_REGISTER_SIZE.
9444 (i386_pseudo_register_write): Likewise.
9445 (i386_process_record): Likewise.
9446 * i387-tdep.c (i387_supply_xsave): Likewise.
9447 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
9448 (store_register): Likewise.
9449
14bc53a8
PA
94502017-02-23 Pedro Alves <palves@redhat.com>
9451
9452 * ada-lang.c: Include "common/function-view.h".
9453 (ada_iterate_over_symbols): Adjust to use function_view as
9454 callback type.
9455 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
9456 (ada_make_symbol_completion_list): Use a lambda.
9457 (ada_exc_search_name_matches): Delete.
9458 (name_matches_regex): New.
9459 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
9460 * compile/compile-c-support.c: Include "common/function-view.h".
9461 (print_one_macro): Change prototype to accept a ui_file pointer.
9462 (write_macro_definitions): Use a lambda.
9463 * dwarf2read.c: Include "common/function-view.h".
9464 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9465 (dw2_expand_symtabs_matching): Adjust to use function_view as
9466 callback type.
9467 * language.h: Include "common/function-view.h".
9468 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
9469 function_view as callback type.
9470 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
9471 * linespec.c: Include "common/function-view.h".
9472 (collect_info::add_symbol): New method.
9473 (struct symbol_and_data_callback, iterate_inline_only, struct
9474 symbol_matcher_data, iterate_name_matcher): Delete.
9475 (iterate_over_all_matching_symtabs): Adjust to use function_view
9476 as callback type and lambdas.
9477 (iterate_over_file_blocks): Adjust to use function_view as
9478 callback type.
9479 (decode_compound_collector): Now a class with private fields.
9480 (decode_compound_collector::release_symbols): New method.
9481 (collect_one_symbol): Rename to...
9482 (decode_compound_collector::operator()): ... this and adjust.
9483 (lookup_prefix_sym): decode_compound_collector construction bits
9484 move to decode_compound_collector ctor. Pass the
9485 decode_compound_collector object directly as callback. Remove
9486 cleanups and use decode_compound_collector::release_symbols
9487 instead.
9488 (symtab_collector): Now a class with private fields.
9489 (symtab_collector::release_symtabs): New method.
9490 (add_symtabs_to_list): Rename to...
9491 (symtab_collector::operator()): ... this and adjust.
9492 (collect_symtabs_from_filename): symtab_collector construction
9493 bits move to symtab_collector ctor. Pass the symtab_collector
9494 object directly as callback. Remove cleanups and use
9495 symtab_collector::release_symtabs instead.
9496 (collect_symbols): Delete.
9497 (add_matching_symbols_to_info): Use lambdas.
9498 * macrocmd.c (print_macro_callback): Delete.
9499 (info_macro_command): Use a lambda.
9500 (info_macros_command): Pass print_macro_definition as callable
9501 directly.
9502 (print_one_macro): Remove 'ignore' parameter.
9503 (macro_list_command): Adjust.
9504 * macrotab.c (macro_for_each_data::fn): Now a function_view.
9505 (macro_for_each_data::user_data): Delete field.
9506 (foreach_macro): Adjust to call the function_view.
9507 (macro_for_each): Adjust to use function_view as callback type.
9508 (foreach_macro_in_scope): Adjust to call the function_view.
9509 (macro_for_each_in_scope): Adjust to use function_view as callback
9510 type.
9511 * macrotab.h: Include "common/function-view.h".
9512 (macro_callback_fn): Declare a prototype instead of a pointer.
9513 Remove "user_data" parameter.
9514 (macro_for_each, macro_for_each_in_scope): Adjust to use
9515 function_view as callback type.
9516 * psymtab.c (partial_map_expand_apply)
9517 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
9518 Adjust to use function_view as callback type and to return bool.
9519 (psym_expand_symtabs_matching): Adjust to use function_view as
9520 callback types.
9521 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
9522 to use function_view as callback type and to return bool.
9523 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
9524 callback types.
9525 * symfile.c (expand_symtabs_matching): Adjust to use function_view
9526 as callback types.
9527 * symfile.h: Include "common/function-view.h".
9528 (expand_symtabs_file_matcher_ftype)
9529 (expand_symtabs_symbol_matcher_ftype)
9530 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
9531 return bool.
9532 (quick_symbol_functions::map_symtabs_matching_filename)
9533 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
9534 function_view as callback type and return bool.
9535 (expand_symtabs_matching): Adjust to use function_view as callback
9536 type.
9537 (maintenance_expand_name_matcher)
9538 (maintenance_expand_file_matcher): Delete.
9539 (maintenance_expand_symtabs): Use lambdas.
9540 * symtab.c (iterate_over_some_symtabs): Adjust to use
9541 function_view as callback types and return bool.
9542 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
9543 of a cleanup.
9544 (lookup_symtab_callback): Delete.
9545 (lookup_symtab): Use a lambda.
9546 (iterate_over_symbols): Adjust to use function_view as callback
9547 type.
9548 (struct search_symbols_data, search_symbols_file_matches)
9549 (search_symbols_name_matches): Delete.
9550 (search_symbols): Use a pair of lambdas.
9551 (struct add_name_data, add_macro_name, symbol_completion_matcher)
9552 (symtab_expansion_callback): Delete.
9553 (default_make_symbol_completion_list_break_on_1): Use lambdas.
9554 * symtab.h: Include "common/function-view.h".
9555 (iterate_over_some_symtabs): Adjust to use function_view as
9556 callback type and return bool.
9557 (iterate_over_symtabs): Adjust to use function_view as callback
9558 type.
9559 (symbol_found_callback_ftype): Remove 'data' parameter and return
9560 bool.
9561 (iterate_over_symbols): Adjust to use function_view as callback
9562 type.
9563
07e253aa
PA
95642017-02-23 Pedro Alves <palves@redhat.com>
9565
9566 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
9567 (%.o) <unittests/%.c>: New pattern.
9568 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
9569 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
9570 * common/function-view.h: New file.
9571 * unittests/function-view-selftests.c: New file.
9572 * configure: Regenerate.
9573
8eaf5320
SM
95742017-02-23 Simon Marchi <simon.marchi@ericsson.com>
9575
9576 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
9577 inferior_ptid.
9578 * go32-nat.c (go32_thread_alive): Likewise.
9579
38768751
YQ
95802017-02-23 Yao Qi <yao.qi@linaro.org>
9581
9582 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
9583 delete.
9584
0a8beaba
YQ
95852017-02-23 Yao Qi <yao.qi@linaro.org>
9586
9587 * varobj.c (varobj_clear_saved_item): Use delete instead of
9588 xfree.
9589 (update_dynamic_varobj_children): Likewise.
9590
58fdfd2c
JK
95912017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9592
9593 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
9594
1b90b139
SM
95952017-02-21 Simon Marchi <simon.marchi@ericsson.com>
9596
9597 * common/enum-flags.h (enum_flags::enum_flags): Initialize
9598 m_enum_value to 0 in default constructor.
9599
2039d74e
EBM
96002017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9601
9602 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
9603 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
9604 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
9605 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
9606 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
9607 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
9608 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
9609 IS_STORE_CONDITIONAL_INSN.
9610
7814882a
JK
96112017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9612
9613 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
9614
0ae60b63
JK
96152017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9616
9617 * NEWS (Changes since GDB 7.12): Add DWARF-5.
9618
0224619f
JK
96192017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9620
9621 * dwarf2read.c (skip_one_die, read_attribute_value)
9622 (dwarf2_const_value_attr, dump_die_shallow)
9623 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9624 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
9625
0af92d60
JK
96262017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9627
9628 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
9629 (dwarf_parse_macro_header): Accept DWARF version 5.
9630 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
9631
216f72a1
JK
96322017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9633
9634 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
9635 DW_AT_GNU_*.
9636 * common/common-exceptions.h (enum errors): Likewise.
9637 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
9638 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
9639 (dwarf_expr_context::execute_stack_op): Likewise.
9640 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
9641 Likewise.
9642 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
9643 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9644 (show_entry_values_debug, call_site_to_target_addr)
9645 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
9646 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
9647 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
9648 (value_of_dwarf_block_entry, indirect_pieced_value)
9649 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
9650 (disassemble_dwarf_expression): Likewise.
9651 * dwarf2read.c (process_die, inherit_abstract_dies)
9652 (read_call_site_scope): Likewise.
9653 * gdbtypes.h (struct func_type, struct call_site_parameter)
9654 (struct call_site): Likewise.
9655 * stack.c (read_frame_arg): Likewise.
9656 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
9657
43988095
JK
96582017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9659
9660 * defs.h (read_unsigned_leb128): New declaration.
9661 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
9662 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
9663 (dwarf2_find_location_expression): Call also
9664 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
9665 * dwarf2loc.h (dwarf2_version): New declaration.
9666 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
9667 rnglists.
9668 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
9669 .debug_rnglists.
9670 (struct dwop_section_names): Add loclists_dwo.
9671 (dwop_section_names): Add .debug_loclists.dwo.
9672 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
9673 (struct dwarf2_per_cu_data): Add dwarf_version.
9674 (struct dwo_sections): Add loclists.
9675 (struct attr_abbrev): Add implicit_const.
9676 (read_indirect_line_string): New declaration.
9677 (read_unsigned_leb128): Delete declaration.
9678 (rcuh_kind): New definition.
9679 (read_and_check_comp_unit_head): Change parameter
9680 is_debug_types_section to section_kind.
9681 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
9682 (read_comp_unit_head): Change parameter abfd to section, add parameter
9683 section_kind. Handle DWARF-5.
9684 (error_check_comp_unit_head): Accept also DWARF version 5.
9685 (read_and_check_comp_unit_head): Change parameter
9686 is_debug_types_section to section_kind.
9687 (read_and_check_type_unit_head): Delete function.
9688 (read_abbrev_offset): Handle DWARF-5.
9689 (create_debug_type_hash_table): Add parameter section_kind. Process
9690 only DW_UT_type. Use signature and type_offset_in_tu from struct
9691 comp_unit_head.
9692 (create_debug_types_hash_table): Update create_debug_type_hash_table
9693 caller.
9694 (create_all_type_units): Call create_debug_type_hash_table.
9695 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
9696 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
9697 caller.
9698 (skip_one_die): Handle DW_FORM_implicit_const.
9699 (dwarf2_rnglists_process): New function.
9700 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
9701 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
9702 (read_attribute_value): Handle DW_FORM_implicit_const,
9703 DW_FORM_line_strp.
9704 (read_attribute): Handle DW_FORM_implicit_const.
9705 (read_indirect_string_at_offset_from): New function from
9706 read_indirect_string_at_offset.
9707 (read_indirect_string_at_offset): Call
9708 read_indirect_string_at_offset_from.
9709 (read_indirect_line_string_at_offset): New function.
9710 (read_indirect_string): New function comment.
9711 (read_indirect_line_string): New function.
9712 (read_unsigned_leb128): Make it global.
9713 (dwarf2_string_attr): Handle DWARF-5.
9714 (add_include_dir_stub, read_formatted_entries): New functions.
9715 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
9716 Handle DWARF-5.
9717 (per_cu_header_read_in): Update read_comp_unit_head caller.
9718 (dwarf2_version): New function.
9719 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
9720 rnglists.
9721 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
9722 fields.
9723
22d2f3ab
JK
97242017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9725
9726 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
9727
5f46c5a5
JK
97282017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9729
9730 * dwarf2read.c (dwarf2_ranges_process): New function from
9731 dwarf2_ranges_read.
9732 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
9733 dwarf2_ranges_process.
9734
78d4d2c5
JK
97352017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9736
9737 * dwarf2read.c (create_debug_type_hash_table): New function from
9738 create_debug_types_hash_table.
9739 (create_debug_types_hash_table): Call create_debug_type_hash_table.
9740 (create_all_type_units, open_and_init_dwo_file): Update
9741 create_debug_types_hash_table callers.
9742
1b076f25
SDJ
97432017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9744
9745 PR gdb/16188
9746 * fork-child.c (trace_start_error): Fix thinko. va_end should
9747 refer to 'ap', not 'args'.
9748
0db8980c
SDJ
97492017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9750 Pedro Alves <palves@redhat.com>
9751
9752 PR gdb/16188
9753 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
9754 calls succeeded.
9755 * fork-child.c (trace_start_error): New function.
9756 (trace_start_error_with_name): Likewise.
9757 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
9758 * inf-ptrace.c (inf_ptrace_me): Likewise.
9759 * inferior.h (trace_start_error): New prototype.
9760 (trace_start_error_with_name): Likewise.
9761
99e8a4f9
SDJ
97622017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
9763
9764 PR gdb/21164
9765 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
9766 NULL before using it.
9767 * symmisc.c (maintenance_print_symbols): Likewise.
9768 (maintenance_print_msymbols): Likewise.
9769
4e746bb6
TW
97702017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9771
9772 * NEWS: Add record Python bindings entry.
9773
97742017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9775
9776 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
9777 py-record-full.o.
9778 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
9779 * python/py-record-btrace.c, python/py-record-btrace.h,
9780 python/py-record-full.c, python/py-record-full.h: New file.
9781 * python/py-record.c: Add include for py-record-btrace.h and
9782 py-record-full.h.
9783 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
9784 recpy_instruction_history, recpy_function_call_history, recpy_begin,
9785 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
9786 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
9787 New definition.
9788 (gdbpy_initialize_btrace): New export.
9789 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
9790
97912017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9792
9793 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
9794 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
9795 * python/py-record.c: New file.
9796 * python/python-internal.h (gdbpy_start_recording,
9797 gdbpy_current_recording, gdpy_stop_recording,
9798 gdbpy_initialize_record): New export.
9799 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
9800 (python_GdbMethods): Add gdbpy_start_recording,
9801 gdbpy_current_recording and gdbpy_stop_recording.
9802
98032017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9804
9805 * record-btrace.c (record_btrace_record_method): New function.
9806 (init_record_btrace_ops): Initialize to_record_method.
9807 * record-full.c (record_full_record_method): New function.
9808 (init_record_full_ops, init_record_full_core_ops): Add
9809 record_full_record_method.
9810 * record.h (enum record_method): New enum.
9811 * target-debug.h (target_debug_print_enum_record_method: New define.
9812 * target-delegates.c: Regenerate.
9813 * target.c (target_record_method): New function.
9814 * target.h: Include record.h.
9815 (struct target_ops) <to_record_method>: New field.
9816 (target_record_method): New export.
9817
98182017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9819
9820 * record.h (record_start, record_stop): New export.
9821 * record.c (record_start, record_stop): New function.
9822
98232017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9824
9825 * btrace.c (btrace_fetch): Copy function call segments pointer
9826 into a vector.
9827 (btrace_clear): Clear the vector.
9828 (btrace_find_insn_by_number): Use binary search to find the correct
9829 function call segment.
9830 * btrace.h (brace_fun_p): New typedef.
9831 (struct btrace_thread_info) <functions>: New field.
9832
98332017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9834
9835 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
9836 * btrace.c (btrace_decode_error): ... here. New function.
9837 * btrace.h (btrace_decode_error): New export.
9838
98392017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9840
9841 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
9842 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
9843 btrace_find_insn_by_number): Remove special case for gaps.
9844 * btrace.h (btrace_insn_get_error): New export.
9845 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
9846 * record-btrace.c (btrace_insn_history): Print number for gaps.
9847 (record_btrace_info, record_btrace_goto): Handle gaps.
9848
3f77c769
TT
98492017-02-14 Tom Tromey <tom@tromey.com>
9850
9851 PR python/13598:
9852 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
9853 event.
9854 * python/py-evts.c (gdbpy_initialize_py_events): Add
9855 before_prompt registry.
9856 * python/py-events.h (events_object) <before_prompt>: New field.
9857
4c2c7ac6
MM
98582017-02-14 Markus Metzger <markus.t.metzger@intel.com>
9859
9860 * btrace.c (ftrace_new_switch): Preserve up link and flags.
9861
5cf30ebf
LM
98622017-02-13 Luis Machado <lgustavo@codesourcery.com>
9863
9864 * symfile (_initialize_symfile): Add usage text to the load command's
9865 help text.
9866
26a06916
SM
98672017-02-10 Simon Marchi <simon.marchi@ericsson.com>
9868
9869 * utils.c (defaulted_query): Don't query on secondary UIs.
9870
0b145e37
TT
98712017-02-10 Tom Tromey <tom@tromey.com>
9872
9873 * rust-lang.c (rust_get_disr_info): Remove unused variable.
9874
2d8365c4
TT
98752017-02-10 Tom Tromey <tom@tromey.com>
9876
9877 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
9878 "cleanup" local.
9879 * python/py-type.c (typy_legacy_template_argument): Remove
9880 unnecessary "cleanup" local.
9881
2bb8f231
TT
98822017-02-10 Tom Tromey <tom@tromey.com>
9883
9884 * python/python.c (do_start_initialization): New function, from
9885 _initialize_python.
9886 (_initialize_python): Call do_start_initialization.
9887 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
9888 goto.
9889
1bdfaf42
TT
98902017-02-10 Tom Tromey <tom@tromey.com>
9891
9892 * python/py-prettyprint.c (pretty_print_one_value): Use
9893 gdbpy_ref.
9894
88b6faea
TT
98952017-02-10 Tom Tromey <tom@tromey.com>
9896
9897 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
9898 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
9899 gdbpy_ref.
9900 * python/py-type.c (field_new): Use gdbpy_ref.
9901 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
9902 gdbpy_ref.
9903 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
9904 (py_free_pspace): Likewise.
9905 (pspace_to_pspace_object): Likewise.
9906 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
9907 (py_free_objfile): Likewise.
9908 (objfile_to_objfile_object): Likewise.
9909 * python/py-inferior.c (delete_thread_object): Use
9910 gdbpy_ref.
9911 (infpy_read_memory): Likewise.
9912 (py_free_inferior): Likewise.
9913 * python/py-evtregistry.c (create_eventregistry_object): Use
9914 gdbpy_ref.
9915 * python/py-event.c (create_event_object): Use gdbpy_ref.
9916
7780f186
TT
99172017-02-10 Tom Tromey <tom@tromey.com>
9918
9919 * python/py-ref.h (gdbpy_ref_policy): Now a template.
9920 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
9921 used.
9922 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
9923 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
9924 python/py-exitedevent.c, python/py-finishbreakpoint.c,
9925 python/py-framefilter.c, python/py-function.c,
9926 python/py-inferior.c, python/py-infevents.c,
9927 python/py-linetable.c, python/py-newobjfileevent.c,
9928 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
9929 python/py-signalevent.c, python/py-stopevent.c,
9930 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
9931 python/py-unwind.c, python/py-utils.c, python/py-value.c,
9932 python/py-varobj.c, python/py-xmethods.c, python/python.c,
9933 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
9934
d4b0bb18
TT
99352017-02-10 Tom Tromey <tom@tromey.com>
9936
9937 * ui-out.h (ui_out_emit_type): New class.
9938 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
9939 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
9940 and ui_out_emit_tuple.
9941 (enumerate_locals): Likewise.
9942 (py_mi_print_variables, py_print_locals, py_print_args): Use
9943 ui_out_emit_list.
9944 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
9945 ui_out_emit_list.
9946 * common/gdb_optional.h: New file.
9947
f67f945c
MG
99482017-02-10 Martin Galvan <martingalvan@sourceware.org>
9949
9950 * MAINTAINERS (Write After Approval): Update my e-mail address.
9951
18da0c51
MG
99522017-02-10 Martin Galvan <martingalvan@sourceware.org>
9953
9954 PR gdb/21122
9955 * breakpoint.c (_initialize_breakpoint): Update the help description
9956 of the 'commands' command to indicate that it takes a list argument.
9957
62c14536
SM
99582017-02-09 Simon Marchi <simon.marchi@ericsson.com>
9959
9960 * interps.c (current_interp_set_logging): Remove "return".
9961
ff6fa247
GB
99622017-02-09 Gary Benson <gbenson@redhat.com>
9963
9964 * symtab.c (add_symtab_completions): Prevent NULL pointer
9965 dereference.
9966
a474bd8e
PA
99672017-02-08 Pedro Alves <palves@redhat.com>
9968
9969 * interps.c (interp::interp): Remove reference to quiet_p.
9970 (interp_set): Make static. Remove dead "Switching to" output
9971 code.
9972 (interp_quiet_p, interp_set_quiet): Delete.
9973 (interpreter_exec_cmd): Don't set the interpreter quiet.
9974 * interps.h (interp_quiet_p): Make static.
9975 (class interp) <quiet_p>: Remove field
9976
3d7b173c
JG
99772017-02-08 Jerome Guitton <guitton@adacore.com>
9978
604c4576
JG
9979 * cli/cli-decode.c (find_command_name_length): Make it extern.
9980 * cli/cli-decode.h (find_command_name_length): Declare.
9981 * cli/cli-script.c (command_name_equals, line_first_arg):
9982 New functions.
9983 (process_next_line): Use cli-decode to parse command names.
9984 (build_command_line): Make args a constant pointer.
9985
99862017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 9987
3d7b173c
JG
9988 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
9989 Remove case-insensitive search.
9990
1291063d
JM
99912017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
9992
9993 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
9994 at the end of the line. Avoids an ARI warning.
9995
20b477a7
LM
99962017-02-06 Luis Machado <lgustavo@codesourcery.com>
9997
9998 * NEWS: Mention support for record/replay of Intel 64 rdrand and
9999 rdseed instructions.
10000 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
10001
3f7b46f2
IR
100022017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
10003
10004 PR tdep/20936
10005 Provide and use sparc32 and sparc64 target description XML files.
10006 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
10007 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
10008 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
10009 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
10010 * features/sparc/sparc32-solaris.xml: New file.
10011 * features/sparc/sparc64-solaris.xml: New file.
10012 * features/sparc/sparc32-solaris.c: Generated.
10013 * features/sparc/sparc64-solaris.c: Generated.
10014 * sparc-tdep.h: Account for differences in target descriptions.
10015 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
10016 (sparc32_register_type): Use target provided registers.
10017 (validate_tdesc_registers): New function.
10018 (sparc32_gdbarch_init): Use tdesc_has_registers.
10019 Set pseudoregister functions.
10020 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
10021 (sparc64_register_type): Use target provided registers.
10022 (sparc64_init_abi): Set pseudoregister functions.
10023
f0fd41c1
TT
100242017-02-03 Tom Tromey <tom@tromey.com>
10025
10026 PR rust/21097:
10027 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
10028 with a single member.
10029
d6f9b0fb
PA
100302017-02-03 Pedro Alves <palves@redhat.com>
10031
10032 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
10033 (cli_interp_base::~cli_interp_base): New.
10034 (cli_interp): New struct.
10035 (as_cli_interp): Cast the interp itself to cli_interp.
10036 (cli_interpreter_pre_command_loop): Rename to ...
10037 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
10038 parameter.
10039 (cli_interpreter_init): Rename to ...
10040 (cli_interp::init): ... this. Remove 'self' parameter. Use
10041 boolean. Make extern.
10042 (cli_interpreter_resume): Rename to ...
10043 (cli_interp::resume): ... this. Remove 'data' parameter. Make
10044 extern.
10045 (cli_interpreter_suspend): Rename to ...
10046 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
10047 extern.
10048 (cli_interpreter_exec): Rename to ...
10049 (cli_interp::exec): ... this. Remove 'data' parameter. Make
10050 extern.
10051 (cli_interpreter_supports_command_editing): Rename to ...
10052 (cli_interp_base::supports_command_editing): ... this. Remove
10053 'interp' parameter. Make extern.
10054 (cli_ui_out): Rename to ...
10055 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
10056 Make extern.
10057 (cli_set_logging): Rename to ...
10058 (cli_interp_base::set_logging): ... this. Remove 'interp'
10059 parameter. Make extern.
10060 (cli_interp_procs): Delete.
10061 (cli_interp_factory): Adjust to use "new".
10062 * cli/cli-interp.h: Include "interps.h".
10063 (struct cli_interp_base): New struct.
10064 * interps.c (struct interp): Delete. Fields moved to interps.h.
10065 (interp_new): Delete.
10066 (interp::interp, interp::~interp): New.
10067 (interp_set): Use bool, and return void. Assume the interpreter
10068 has suspend, init and resume methods, and that the all return
10069 void.
10070 (set_top_level_interpreter): interp_set returns void.
10071 (interp_ui_out): Adapt.
10072 (current_interp_set_logging): Adapt.
10073 (interp_data): Delete.
10074 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
10075 (interp_exec): Adapt.
10076 (top_level_interpreter_data): Delete.
10077 * interps.h (interp_init_ftype, interp_resume_ftype)
10078 (interp_suspend_ftype, interp_exec_ftype)
10079 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
10080 (class interp): New.
10081 (interp_new): Delete.
10082 (interp_set): Now returns void. Use bool.
10083 (interp_data, top_level_interpreter_data): Delete.
10084 * mi/mi-common.h: Include interps.h.
10085 (class mi_interp): Inherit from interp. Define a ctor. Declare
10086 init, resume, suspect, exec, interp_ui_out, set_logging and
10087 pre_command_loop methods.
10088 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
10089 (mi_interpreter_init): Rename to ...
10090 (mi_interp::init): ... this. Remove the 'interp' parameter, use
10091 bool, return void and make extern. Adjust.
10092 (mi_interpreter_resume): ... Rename to ...
10093 (mi_interp::resume): ... this. Remove the 'data' parameter,
10094 return void and make extern. Adjust.
10095 (mi_interpreter_suspend): ... Rename to ...
10096 (mi_interp::suspend): ... this. Remove the 'data' parameter,
10097 return void and make extern. Adjust.
10098 (mi_interpreter_exec): ... Rename to ...
10099 (mi_interp::exec): ... this. Remove the 'data' parameter and make
10100 extern. Adjust.
10101 (mi_interpreter_pre_command_loop): ... Rename to ...
10102 (mi_interp::pre_command_loop): ... this. Remove the 'self'
10103 parameter and make extern.
10104 (mi_on_normal_stop_1): Adjust.
10105 (mi_ui_out): Rename to ...
10106 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
10107 parameter and make extern. Adjust.
10108 (mi_set_logging): Rename to ...
10109 (mi_interp::set_logging): ... this. Remove the 'interp'
10110 parameter and make extern. Adjust.
10111 (mi_interp_procs): Delete.
10112 (mi_interp_factory): Adjust to use 'new'.
10113 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
10114 (mi_print_exception, mi_execute_command, mi_load_progress):
10115 Adjust.
10116 * tui/tui-interp.c (tui_interp): New class.
10117 (as_tui_interp): Return a tui_interp pointer.
10118 (tui_on_normal_stop, tui_on_signal_received)
10119 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
10120 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
10121 to use interp::interp_ui_out.
10122 (tui_init): Rename to ...
10123 (tui_interp::init): ... this. Remove the 'self' parameter, use
10124 bool, return void and make extern. Adjust.
10125 (tui_resume): Rename to ...
10126 (tui_interp::resume): ... this. Remove the 'data' parameter,
10127 return void and make extern. Adjust.
10128 (tui_suspend): Rename to ...
10129 (tui_interp::suspend): ... this. Remove the 'data' parameter,
10130 return void and make extern. Adjust.
10131 (tui_ui_out): Rename to ...
10132 (tui_interp::interp_ui_out): ... this. Remove the 'self'
10133 parameter, and make extern. Adjust.
10134 (tui_exec): Rename to ...
10135 (tui_interp::exec): ... this. Remove the 'data' parameter and
10136 make extern.
10137 (tui_interp_procs): Delete.
10138 (tui_interp_factory): Use "new".
10139
65c40c95
TT
101402017-02-02 Tom Tromey <tom@tromey.com>
10141
10142 * rust-exp.y (ends_raw_string, space_then_number)
10143 (rust_identifier_start_p): Return bool.
10144 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
10145 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
10146 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
10147 (rust_chartype_p): Return bool.
10148 (val_print_struct, rust_print_struct_def, rust_print_type):
10149 Update.
10150 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
10151 Return bool.
10152
b50f188d
TT
101532017-02-02 Tom Tromey <tom@tromey.com>
10154
10155 * rust-lang.c: Reindent.
10156
03c85b11
TT
101572017-02-02 Tom Tromey <tom@tromey.com>
10158
10159 * rust-lang.h (rust_crate_for_block): Update.
10160 * rust-lang.c (rust_crate_for_block): Return std::string.
10161 (rust_get_disr_info): Use std:;string, not
10162 gdb::unique_xmalloc_ptr.
10163 * rust-exp.y (crate_name): Update.
10164
9b6da501
PA
101652017-02-02 Pedro Alves <palves@redhat.com>
10166
10167 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
10168 field out of gdb_disassembler_test and make it static.
10169
ec4cb20b
PA
101702017-02-02 Pedro Alves <palves@redhat.com>
10171
10172 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
10173 mi1_interp and mi_interp fields.
10174
5be5dbf0
PA
101752017-02-02 Pedro Alves <palves@redhat.com>
10176
616268b6
PA
10177 * cli/cli-interp.c (struct saved_output_files, saved_output):
10178 Moved from cli/cli-logging.c.
10179 (cli_set_logging): New function.
10180 (cli_interp_procs): Install cli_set_logging.
10181 * cli/cli-interp.h (make_logging_output, cli_set_logging):
10182 Declare.
10183 * cli/cli-logging.c (struct saved_output_files, saved_output):
10184 Moved to cli/cli-interp.c.
10185 (pop_output_files): Don't save outputs here.
10186 (make_logging_output): New function.
10187 (handle_redirections): Don't build tee nor save previous outputs
10188 here.
10189 * interps.c (current_interp_set_logging): Change prototype.
10190 Assume there's always a set_logging_proc method installed.
10191 * interps.h (interp_set_logging_ftype): Change prototype.
10192 (current_interp_set_logging): Change prototype and adjust comment.
10193 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
10194 use make_logging_output.
10195 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
101962017-02-02 Pedro Alves <palves@redhat.com>
10197
5be5dbf0
PA
10198 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
10199 from ...
10200 (set_logging_overwrite): ... here.
10201 (logging_no_redirect_file): Delete.
10202 (set_logging_redirect): Don't handle redirection on the fly.
10203 Instead warn that "logging off" / "logging on" is necessary.
10204 (pop_output_files): Delete references to logging_no_redirect_file.
10205 (show_logging_command): Always speak in terms of what will happen
10206 once logging is reenabled.
10207
c99cc448
PA
102082017-02-02 Pedro Alves <palves@redhat.com>
10209
10210 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
10211
8b172ce7
PA
102122017-02-02 Pedro Alves <palves@redhat.com>
10213
10214 * disasm.c (gdb_pretty_print_insn): Rename to ...
10215 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
10216 Remove gdbarch parameter. Adapt to clear the object's buffers
10217 instead of allocating new buffers, and to print using the object's
10218 gdb_disassembler instead of calling gdb_print_insn.
10219 (dump_insns): Use gdb_pretty_print_disassembler.
10220 * disasm.h (gdb_pretty_print_insn): Delete declaration.
10221 (gdb_pretty_print_disassembler): New class.
10222 * record-btrace.c (btrace_insn_history): Use
10223 gdb_pretty_print_disassembler.
10224
d7e74731
PA
102252017-02-02 Pedro Alves <palves@redhat.com>
10226
10227 * ada-lang.c (type_as_string): Use string_file.
10228 * ada-valprint.c (ada_print_floating): Use string_file.
10229 * ada-varobj.c (ada_varobj_scalar_image)
10230 (ada_varobj_get_value_image): Use string_file.
10231 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
10232 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
10233 * breakpoint.c (update_inserted_breakpoint_locations)
10234 (insert_breakpoint_locations, reattach_breakpoints)
10235 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
10236 (print_it_watchpoint): Use string_file.
10237 (save_breakpoints): Use stdio_file.
10238 * c-exp.y (oper): Use string_file.
10239 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
10240 tee_file.
10241 (pop_output_files): Use delete.
10242 (handle_redirections): Use stdio_file and tee_file.
10243 * cli/cli-setshow.c (do_show_command): Use string_file.
10244 * compile/compile-c-support.c (c_compute_program): Use
10245 string_file.
10246 * compile/compile-c-symbols.c (generate_vla_size): Take a
10247 'string_file &' instead of a 'ui_file *'.
10248 (generate_c_for_for_one_variable): Take a 'string_file &' instead
10249 of a 'ui_file *'. Use string_file.
10250 (generate_c_for_variable_locations): Take a 'string_file &'
10251 instead of a 'ui_file *'.
10252 * compile/compile-internal.h (generate_c_for_for_one_variable):
10253 Take a 'string_file &' instead of a 'ui_file *'.
10254 * compile/compile-loc2c.c (push, pushf, unary, binary)
10255 (print_label, pushf_register_address, pushf_register)
10256 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
10257 'ui_file *'. Adjust.
10258 * compile/compile.c (compile_to_object): Use string_file.
10259 * compile/compile.h (compile_dwarf_expr_to_c)
10260 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
10261 'ui_file *'.
10262 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
10263 (replace_typedefs_qualified_name): Use string_file and
10264 obstack_copy0.
10265 * disasm.c (gdb_pretty_print_insn): Use string_file.
10266 (gdb_disassembly): Adjust reference the null_stream global.
10267 (do_ui_file_delete): Delete.
10268 (gdb_insn_length): Use null_stream.
10269 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
10270 * dwarf2loc.c (dwarf2_compile_property_to_c)
10271 (locexpr_generate_c_location, loclist_generate_c_location): Take a
10272 'string_file &' instead of a 'ui_file *'.
10273 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
10274 * dwarf2read.c (do_ui_file_peek_last): Delete.
10275 (dwarf2_compute_name): Use string_file.
10276 * event-top.c (gdb_setup_readline): Use stdio_file.
10277 * gdbarch.sh (verify_gdbarch): Use string_file.
10278 * gdbtypes.c (safe_parse_type): Use null_stream.
10279 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
10280 string_file.
10281 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
10282 'string_file *' instead of a 'ui_file *'.
10283 (gdbscm_arch_disassemble): Use string_file.
10284 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
10285 * guile/scm-ports.c (class ioscm_file_port): Now a class that
10286 inherits from ui_file.
10287 (ioscm_file_port_delete, ioscm_file_port_rewind)
10288 (ioscm_file_port_put): Delete.
10289 (ioscm_file_port_write): Rename to ...
10290 (ioscm_file_port::write): ... this. Remove file_port_magic
10291 checks.
10292 (ioscm_file_port_new): Delete.
10293 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
10294 ui_file_up.
10295 * guile/scm-type.c (tyscm_type_name): Use string_file.
10296 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
10297 Use string_file.
10298 * infcmd.c (print_return_value_1): Use string_file.
10299 * infrun.c (print_target_wait_results): Use string_file.
10300 * language.c (add_language): Use string_file.
10301 * location.c (explicit_to_string_internal): Use string_file.
10302 * main.c (captured_main_1): Use null_file.
10303 * maint.c (maintenance_print_architecture): Use stdio_file.
10304 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
10305 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
10306 event_channel>: Change type to mi_console_file pointer.
10307 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
10308 (mi_console_file_delete): Delete.
10309 (struct mi_console_file): Delete.
10310 (mi_console_file_magic): Delete.
10311 (mi_console_file_new): Delete.
10312 (mi_console_file::mi_console_file): New.
10313 (mi_console_file_delete): Delete.
10314 (mi_console_file_fputs): Delete.
10315 (mi_console_file::write): New.
10316 (mi_console_raw_packet): Delete.
10317 (mi_console_file::flush): New.
10318 (mi_console_file_flush): Delete.
10319 (mi_console_set_raw): Rename to ...
10320 (mi_console_file::set_raw): ... this.
10321 * mi/mi-console.h (class mi_console_file): New class.
10322 (mi_console_file_new, mi_console_set_raw): Delete.
10323 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
10324 (mi_set_logging): Use delete and tee_file. Adjust.
10325 * mi/mi-main.c (output_register): Use string_file.
10326 (mi_cmd_data_evaluate_expression): Use string_file.
10327 (mi_cmd_data_read_memory): Use string_file.
10328 (mi_cmd_execute, print_variable_or_computed): Use string_file.
10329 * mi/mi-out.c (mi_ui_out::main_stream): New.
10330 (mi_ui_out::rewind): Use main_stream and
10331 string_file.
10332 (mi_ui_out::put): Use main_stream and string_file.
10333 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10334 Allocate a 'string_file' instead.
10335 (mi_out_new): Don't allocate a mem_fileopen stream here.
10336 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10337 (mi_ui_out::main_stream): Declare method.
10338 * printcmd.c (eval_command): Use string_file.
10339 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
10340 * python/py-arch.c (archpy_disassemble): Use string_file.
10341 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
10342 * python/py-frame.c (frapy_str): Use string_file.
10343 * python/py-framefilter.c (py_print_type, py_print_single_arg):
10344 Use string_file.
10345 * python/py-type.c (typy_str): Use string_file.
10346 * python/py-unwind.c (unwind_infopy_str): Use string_file.
10347 * python/py-value.c (valpy_str): Use string_file.
10348 * record-btrace.c (btrace_insn_history): Use string_file.
10349 * regcache.c (regcache_print): Use stdio_file.
10350 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
10351 * remote.c (escape_buffer): Use string_file.
10352 * rust-lang.c (rust_get_disr_info): Use string_file.
10353 * serial.c (serial_open_ops_1): Use stdio_file.
10354 (do_serial_close): Use delete.
10355 * stack.c (print_frame_arg): Use string_file.
10356 (print_frame_args): Remove local mem_fileopen stream, not used.
10357 (print_frame): Use string_file.
10358 * symmisc.c (maintenance_print_symbols): Use stdio_file.
10359 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
10360 Take a 'string_file *' instead of a 'ui_file *'.
10361 * top.c (new_ui): Use stdio_file and stderr_file.
10362 (free_ui): Use delete.
10363 (execute_command_to_string): Use string_file.
10364 (quit_confirm): Use string_file.
10365 * tracepoint.c (collection_list::append_exp): Use string_file.
10366 * tui/tui-disasm.c (tui_disassemble): Use string_file.
10367 * tui/tui-file.c: Don't include "ui-file.h".
10368 (enum streamtype, struct tui_stream): Delete.
10369 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
10370 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
10371 (tui_file::tui_file): New method.
10372 (tui_file_fputs): Delete.
10373 (tui_file_get_strbuf): Delete.
10374 (tui_file::puts): New method.
10375 (tui_file_adjust_strbuf): Delete.
10376 (tui_file_flush): Delete.
10377 (tui_file::flush): New method.
10378 * tui/tui-file.h: Tweak intro comment.
10379 Include ui-file.h.
10380 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
10381 (tui_file_adjust_strbuf): Delete declarations.
10382 (class tui_file): New class.
10383 * tui/tui-io.c (tui_initialize_io): Use tui_file.
10384 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
10385 (tui_register_format): Use string_stream.
10386 * tui/tui-stack.c (tui_make_status_line): Use string_file.
10387 (tui_get_function_from_frame): Use string_file.
10388 * typeprint.c (type_to_string): Use string_file.
10389 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
10390 (null_stream): New global.
10391 (ui_file_delete): Delete.
10392 (ui_file::ui_file): New.
10393 (null_file_isatty): Delete.
10394 (ui_file::~ui_file): New.
10395 (null_file_rewind): Delete.
10396 (ui_file::printf): New.
10397 (null_file_put): Delete.
10398 (null_file_flush): Delete.
10399 (ui_file::putstr): New.
10400 (null_file_write): Delete.
10401 (ui_file::putstrn): New.
10402 (null_file_read): Delete.
10403 (ui_file::putc): New.
10404 (null_file_fputs): Delete.
10405 (null_file_write_async_safe): Delete.
10406 (ui_file::vprintf): New.
10407 (null_file_delete): Delete.
10408 (null_file::write): New.
10409 (null_file_fseek): Delete.
10410 (null_file::puts): New.
10411 (ui_file_data): Delete.
10412 (null_file::write_async_safe): New.
10413 (gdb_flush, ui_file_isatty): Adjust.
10414 (ui_file_put, ui_file_rewind): Delete.
10415 (ui_file_write): Adjust.
10416 (ui_file_write_for_put): Delete.
10417 (ui_file_write_async_safe, ui_file_read): Adjust.
10418 (ui_file_fseek): Delete.
10419 (fputs_unfiltered): Adjust.
10420 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
10421 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
10422 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
10423 (set_ui_file_data): Delete.
10424 (string_file::~string_file, string_file::write)
10425 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
10426 (do_ui_file_as_string, ui_file_as_string): Delete.
10427 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
10428 (struct mem_file): Delete.
10429 (mem_file_new): Delete.
10430 (stdio_file::stdio_file): New.
10431 (mem_file_delete): Delete.
10432 (stdio_file::stdio_file): New.
10433 (mem_fileopen): Delete.
10434 (stdio_file::~stdio_file): New.
10435 (mem_file_rewind): Delete.
10436 (stdio_file::set_stream): New.
10437 (mem_file_put): Delete.
10438 (stdio_file::open): New.
10439 (mem_file_write): Delete.
10440 (stdio_file_magic, struct stdio_file): Delete.
10441 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
10442 (stdio_file::flush): New.
10443 (stdio_file_read): Rename to ...
10444 (stdio_file::read): ... this. Adjust.
10445 (stdio_file_write): Rename to ...
10446 (stdio_file::write): ... this. Adjust.
10447 (stdio_file_write_async_safe): Rename to ...
10448 (stdio_file::write_async_safe) ... this. Adjust.
10449 (stdio_file_fputs): Rename to ...
10450 (stdio_file::puts) ... this. Adjust.
10451 (stdio_file_isatty): Delete.
10452 (stdio_file_fseek): Delete.
10453 (stdio_file::isatty): New.
10454 (stderr_file_write): Rename to ...
10455 (stderr_file::write) ... this. Adjust.
10456 (stderr_file_fputs): Rename to ...
10457 (stderr_file::puts) ... this. Adjust.
10458 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
10459 (stderr_file::stderr_file): New.
10460 (tee_file_magic): Delete.
10461 (struct tee_file): Delete.
10462 (tee_file::tee_file): New.
10463 (tee_file_new): Delete.
10464 (tee_file::~tee_file): New.
10465 (tee_file_delete): Delete.
10466 (tee_file_flush): Rename to ...
10467 (tee_file::flush): ... this. Adjust.
10468 (tee_file_write): Rename to ...
10469 (tee_file::write): ... this. Adjust.
10470 (tee_file::write_async_safe): New.
10471 (tee_file_fputs): Rename to ...
10472 (tee_file::puts): ... this. Adjust.
10473 (tee_file_isatty): Rename to ...
10474 (tee_file::isatty): ... this. Adjust.
10475 * ui-file.h (struct obstack, struct ui_file): Don't
10476 forward-declare.
10477 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
10478 (ui_file_write_ftype)
10479 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
10480 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
10481 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
10482 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
10483 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
10484 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
10485 (set_ui_file_fseek): Delete.
10486 (ui_file_data, ui_file_delete, ui_file_rewind)
10487 (struct ui_file): New.
10488 (ui_file_up): New.
10489 (class null_file): New.
10490 (null_stream): Declare.
10491 (ui_file_write_for_put, ui_file_put): Delete.
10492 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
10493 Delete.
10494 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
10495 (gdb_fopen, tee_file_new): Delete.
10496 (struct string_file): New.
10497 (struct stdio_file): New.
10498 (stdio_file_up): New.
10499 (struct stderr_file): New.
10500 (class tee_file): New.
10501 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
10502 of a 'ui_file *'. Adjust.
10503 * ui-out.h (class ui_out) <field_stream>: Likewise.
10504 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
10505 (null_stream): Delete.
10506 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
10507 Adjust.
10508 * utils.h (struct ui_file): Delete forward declaration..
10509 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
10510 (error_stream): Take a 'string_file &' instead of a
10511 'ui_file *'.
10512 * varobj.c (varobj_value_get_print_value): Use string_file.
10513 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
10514 * gdbarch.c: Regenerate.
10515
187808b0
PA
105162017-02-02 Pedro Alves <palves@redhat.com>
10517
10518 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
10519 (gdb_pretty_print_insn): ... this. Now a free function. Add back
10520 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
10521 Adjust to call gdb_print_insn instead of
10522 gdb_disassembler::print_insn.
10523 (dump_insns, do_mixed_source_and_assembly_deprecated)
10524 (do_mixed_source_and_assembly, do_assembly_only): Add back a
10525 'gdbarch' parameter. Remove gdb_disassembler parameter.
10526 (gdb_disassembly): Don't allocate a gdb_disassembler here.
10527 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
10528 declaration.
10529 (gdb_pretty_print_insn): Re-add declaration.
10530 * record-btrace.c (btrace_insn_history): Don't allocate a
10531 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
10532
7a8eb317
SM
105332017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
10534
10535 * disasm.h (gdb_disassembly): Remove file_string parameter.
10536 * disasm.c (gdb_disassembly): Likewise.
10537 * cli/cli-cmds.c (print_disassembly): Adapt.
10538 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10539 * stack.c (do_gdb_disassembly): Likewise.
10540
7346ef59
AA
105412017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
10542
10543 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
10544 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
10545 targets. And if the implicit value is longer than needed, extract
10546 the first bytes instead of the "least significant" ones.
10547
cd4007e4
MM
105482017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10549
10550 * btrace.c (btrace_enable): Do not call btrace_add_pc for
10551 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
10552 (btrace_fetch): Assert can_access_registers_ptid.
10553 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
10554 validate_registers_access.
10555
cf77c34e
MM
105562017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10557
10558 * gdbthread.h (can_access_registers_ptid): New.
10559 * thread.c (can_access_registers_ptid): New.
10560
be85ce7d
PA
105612017-02-01 Pedro Alves <palves@redhat.com>
10562
10563 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
10564
29b0b251
PA
105652017-01-31 Pedro Alves <palves@redhat.com>
10566
10567 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
10568 Fix typos.
10569
289b5b24
PA
105702017-01-31 Pedro Alves <palves@redhat.com>
10571
10572 * stack.c (print_frame_args): Remove local mem_fileopen stream,
10573 not used.
10574
b47413b4
PA
105752017-01-31 Pedro Alves <palves@redhat.com>
10576
10577 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
10578
60adb36c
PA
105792017-01-31 Pedro Alves <palves@redhat.com>
10580
10581 * common/scoped_restore.h
10582 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
10583 change the value's parameter type to T2.
10584 (make_scoped_restore): Likewise.
10585
2735833d
WT
105862017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10587 Richard Henderson <rth@redhat.com>
10588
10589 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
10590 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
10591 GS_BASE for older kernels.
10592 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
10593 GS_BASE for older kernels.
10594 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
10595 and GS_BASE to the offset table.
10596 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
10597 system register group.
10598 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
10599 for older kernels.
10600 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
10601 amd64 ABI.
10602 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
10603 AMD64_GSBASE_REGNUM.
10604 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
10605 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
10606 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
10607 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
10608 i386/64bit-segments.xml in those rules.
10609 * features/i386/64bit-segments.xml: New file.
10610 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
10611 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
10612 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
10613 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
10614 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
10615 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
10616 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
10617 * features/i386/amd64-avx-linux.c: Regenerated.
10618 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
10619 * features/i386/amd64-avx-mpx.c: Regenerated.
10620 * features/i386/amd64-avx512-linux.c: Regenerated.
10621 * features/i386/amd64-linux.c: Regenerated.
10622 * features/i386/amd64-mpx-linux.c: Regenerated.
10623 * features/i386/i386-avx-mpx-linux.c: Regenerated.
10624 * features/i386/i386-avx-mpx.c: Regenerated.
10625 * features/i386/x32-avx-linux.c: Regenerated.
10626 * features/i386/x32-avx512-linux.c: Regenerated.
10627 * regformats/i386/amd64-avx-linux.dat: Regenerated.
10628 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
10629 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
10630 * regformats/i386/amd64-linux.dat: Regenerated.
10631 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
10632 * regformats/i386/x32-avx-linux.dat: Regenerated.
10633 * regformats/i386/x32-avx512-linux.dat: Regenerated.
10634 * regformats/i386/x32-linux.dat: Regenerated.
10635
8884e97e
WT
106362017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10637
10638 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
10639 Set to AMD64_NUM_REGS.
10640
7005d26a
WT
106412017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10642
10643 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
10644 that checks validity of a register number.
10645
4bd2e1b2
KC
106462017-01-27 Kees Cook <keescook@google.com>
10647
10648 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
10649 fetch_fpregs if target has fpa registers.
10650 (arm_linux_store_inferior_registers): Call store_fpregs if target
10651 has fpa registers.
10652
7cf1de6c
AA
106532017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
10654
10655 * cris-tdep.c (cris_gdbarch_init): Remove check for
10656 info.byte_order and force it to BFD_ENDIAN_LITTLE.
10657
874a1c8c
AT
106582017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10659
10660 * corelow.c (get_core_register_section): Check for regset
10661 existence before checking for REGSET_VARIABLE_SIZE.
10662
d8b49cf0
YQ
106632017-01-26 Yao Qi <yao.qi@linaro.org>
10664 Pedro Alves <palves@redhat.com>
10665
10666 PR gdb/20939
10667 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
10668 call memory_error, save memaddr instead.
10669 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
10670 negative, cal memory_error.
10671 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
10672
658ca58c
YQ
106732017-01-26 Yao Qi <yao.qi@linaro.org>
10674
10675 * disasm-selftests.c (memory_error_test): New function.
10676 (_initialize_disasm_selftests): Register memory_error_test.
10677
79843d45
YQ
106782017-01-26 Yao Qi <yao.qi@linaro.org>
10679
10680 * Makefile.in (SFILES): Add disasm-selftests.c and
10681 selftest-arch.c.
10682 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
10683 * disasm-selftests.c: New file.
10684 * selftest-arch.c: New file.
10685 * selftest-arch.h: New file.
10686
8cafda32
YQ
106872017-01-26 Yao Qi <yao.qi@linaro.org>
10688
10689 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
10690 to bfd_arch_mep. Don't return 0 if section is not
10691 found. Call print_insn_mep.
10692
e47ad6c0
YQ
106932017-01-26 Pedro Alves <palves@redhat.com>
10694 Yao Qi <yao.qi@linaro.org>
10695
10696 * arm-tdep.c: Include "disasm.h".
10697 (gdb_print_insn_arm): Update code to get gdbarch.
10698 * disasm.c (dis_asm_read_memory): Change it to
10699 gdb_disassembler::dis_asm_read_memory.
10700 (dis_asm_memory_error): Likewise.
10701 (dis_asm_print_address): Likewise.
10702 (gdb_pretty_print_insn): Change it to
10703 gdb_disassembler::pretty_print_insn.
10704 (dump_insns): Add one argument gdb_disassemlber. All
10705 callers updated.
10706 (do_mixed_source_and_assembly_deprecated): Likewise.
10707 (do_mixed_source_and_assembly): Likewise.
10708 (do_assembly_only): Likewise.
10709 (gdb_disassembler::gdb_disassembler): New.
10710 (gdb_disassembler::print_insn): New.
10711 * disasm.h (class gdb_disassembler): New.
10712 (gdb_pretty_print_insn): Remove declaration.
10713 (gdb_disassemble_info): Likewise.
10714 * guile/scm-disasm.c (class gdbscm_disassembler): New.
10715 (gdbscm_disasm_read_memory_worker): Update.
10716 (gdbscm_disasm_read_memory): Update.
10717 (gdbscm_disasm_memory_error): Remove.
10718 (gdbscm_disasm_print_address): Remove.
10719 (gdbscm_disassembler::gdbscm_disassembler): New.
10720 (gdbscm_print_insn_from_port): Update.
10721 * mips-tdep.c: Include disasm.h.
10722 (gdb_print_insn_mips): Update code to get gdbarch.
10723 * record-btrace.c (btrace_insn_history): Update.
10724 * spu-tdep.c: Include disasm.h.
10725 (struct spu_dis_asm_data): Remove.
10726 (struct spu_dis_asm_info): New.
10727 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
10728 SPU id.
10729 (gdb_print_insn_spu): Cast disassemble_info to
10730 spu_dis_asm_info.
10731
80d75874
YQ
107322017-01-26 Yao Qi <yao.qi@linaro.org>
10733
10734 * disasm.c (do_ui_file_delete): Delete.
10735 (gdb_insn_length): Move code creating stream to ...
10736 * utils.c (null_stream): ... here. New function.
10737 * utils.h (null_stream): Declare.
10738
60685cd0
SM
107392017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10740
10741 * python/py-inferior.c (find_thread_object): Return directly
10742 from the loop. Remove "found" variable.
10743
eb1cdb62
JB
107442017-01-21 Joel Brobecker <brobecker@adacore.com>
10745
10746 GDB 7.12.1 released.
10747
b1ce6568
SM
107482017-01-20 Simon Marchi <simon.marchi@ericsson.com>
10749
10750 * python/py-function.c (fnpy_call): Reorder declarations to have
10751 the gdbpy_enter object declared first.
10752 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
10753
6f8b0407
SM
107542017-01-20 Simon Marchi <simon.marchi@ericsson.com>
10755
fec93fb1 10756 PR python/21068
6f8b0407
SM
10757 * python/python-internal.h (PyMem_RawMalloc): Define for
10758 Python < 3.4.
10759 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
10760 PyMem_RawMalloc instead of PyMem_Malloc.
10761
78cbbba8
LM
107622017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
10763 Luis Machado <lgustavo@codesourcery.com>
10764
10765 * NEWS (New commands): Mention flash-erase.
10766 (New MI commands): Mention target-flash-erase.
10767 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
10768 command.
10769 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
10770 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
10771 * target.c (flash_erase_command): New function.
10772 (initialize_targets): Add new flash-erase command.
10773 * target.h (flash_erase_command): New declaration.
10774
2132fe85
JB
107752017-01-20 Joel Brobecker <brobecker@adacore.com>
10776
10777 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
10778 HAVE_SYS_PROCFS_H is defined.
10779
d1dff226
AH
107802017-01-18 Alan Hayward <alan.hayward@arm.com>
10781
10782 * remote.c (struct cached_reg): Change data into a pointer.
10783 * (stop_reply_dtr): Free data pointers before deleting vector.
10784 (process_stop_reply): Likewise.
10785 (remote_parse_stop_reply): Allocate space for data
10786
9890e433
AH
107872017-01-18 Alan Hayward <alan.hayward@arm.com>
10788
10789 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
10790 MAX_REGISTER_SIZE.
10791 (amd64_pseudo_register_read_value): Likewise.
10792 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
10793 (store_register_using_P): Likewise.
10794 * regcache.c (regcache_xfer_part): Likewise.
10795
7a36499a
IR
107962017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
10797
10798 Split real and pseudo registers.
10799 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
10800 (sparc32_pseudo_regnum): New enum.
10801 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
10802 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
10803 (SPARC32_CP0_REGISTERS): New macro.
10804 (sparc32_pseudo_register_name): New function.
10805 (sparc32_register_name): Use sparc32_pseudo_register_name.
10806 (sparc32_pseudo_register_type): New function.
10807 (sparc32_register_type): Use sparc32_pseudo_register_type.
10808 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
10809 pseudo register numbers.
10810 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
10811 (SPARC64_CP0_REGISTERS): New macro.
10812 (sparc64_pseudo_register_name): New function.
10813 (sparc64_register_name): Use sparc64_pseudo_register_name.
10814 (sparc64_pseudo_register_type): New function.
10815 (sparc64_register_type): Use sparc64_pseudo_register_type.
10816 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
10817 pseudo register numbers.
10818 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
10819 sparc64_store_arguments): Handle pseudo register numbers.
10820
6f8976bf
YQ
108212017-01-13 Yao Qi <yao.qi@linaro.org>
10822
10823 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
10824 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
10825 output.
10826 (getpkt_or_notif_sane_1): Likewise.
10827
e4241ace
YQ
108282017-01-13 Yao Qi <yao.qi@linaro.org>
10829
10830 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
10831 of CC. Pass "-x c++-header" instead of "-x c".
10832
3015c064
SM
108332017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10834
10835 * remote.c (remote_can_async_p): Update comment.
10836
fde1b17d
SM
108372017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10838
10839 * linux-nat.c (linux_nat_can_async_p): Update comment.
10840
ca1ca08b
SM
108412017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10842
10843 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
10844
4ad2da73
SM
108452017-01-11 Simon Marchi <simon.marchi@ericsson.com>
10846
10847 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
10848
c8b23b3f
TT
108492017-01-10 Tom Tromey <tom@tromey.com>
10850
10851 * python/py-type.c (typy_legacy_template_argument): Update.
10852 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
10853 ~demangle_parse_info): Declare new members.
10854 (cp_demangled_name_to_comp): Return unique_ptr.
10855 (cp_demangled_name_parse_free)
10856 (make_cleanup_cp_demangled_name_parse_free)
10857 (cp_new_demangle_parse_info): Remove.
10858 * cp-support.c (do_demangled_name_parse_free_cleanup)
10859 (make_cleanup_cp_demangled_name_parse_free): Remove.
10860 (inspect_type, cp_canonicalize_string_full)
10861 (cp_canonicalize_string): Update.
10862 (mangled_name_to_comp): Change return type.
10863 (cp_class_name_from_physname, method_name_from_physname)
10864 (cp_func_name, cp_remove_params): Update.
10865 * cp-name-parser.y (demangle_parse_info): New constructor, from
10866 cp_new_demangle_parse_info.
10867 (~demangle_parse_info): New destructor, from
10868 cp_demangled_name_parse_free.
10869 (cp_merge_demangle_parse_infos): Update.
10870 (cp_demangled_name_to_comp): Change return type.
10871
1ac32117
TT
108722017-01-10 Tom Tromey <tom@tromey.com>
10873
10874 * top.c (prevent_dont_repeat): Change return type.
10875 * python/python.c (execute_gdb_command): Use std::string.
10876 Update.
10877 * guile/guile.c (gdbscm_execute_gdb_command): Update.
10878 * command.h (prevent_dont_repeat): Change return type.
10879 * breakpoint.c (bpstat_do_actions_1): Update.
10880
0cf08227
TT
108812017-01-10 Tom Tromey <tom@tromey.com>
10882
10883 * value.h (scoped_value_mark::~scoped_value_mark): Call
10884 free_to_mark.
10885 (scoped_value_mark::free_to_mark): New method.
10886 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
10887 scoped_value_mark.
10888
eb115069
TT
108892017-01-10 Tom Tromey <tom@tromey.com>
10890
10891 * python/py-value.c (valpy_dereference, valpy_referenced_value)
10892 (valpy_reference_value, valpy_const_value, valpy_get_address)
10893 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10894 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
10895 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
10896 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
10897 scoped_value_mark.
10898 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
10899 * value.h (scoped_value_mark): New class.
10900
906768f9
TT
109012017-01-10 Tom Tromey <tom@tromey.com>
10902
10903 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
10904 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
10905 * psymtab.c (discard_psymtabs_upto): Remove.
10906 (make_cleanup_discard_psymtabs): Remove.
10907 (struct psymtab_state): Remove.
10908
bef155c3
TT
109092017-01-10 Tom Tromey <tom@tromey.com>
10910
10911 * record-full.c (record_full_save_cleanups): Remove.
10912 (record_full_save): Use gdb::unlinker.
10913 * gcore.c (do_bfd_delete_cleanup): Remove.
10914 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
10915 cleanups.
10916 * dwarf2read.c (unlink_if_set): Remove.
10917 (write_psymtabs_to_index): Use gdb::unlinker.
10918 * common/gdb_unlinker.h: New file.
10919
192b62ce
TT
109202017-01-10 Tom Tromey <tom@tromey.com>
10921
10922 * windows-tdep.c (windows_xfer_shared_library): Update.
10923 * windows-nat.c (windows_make_so): Update.
10924 * utils.h (make_cleanup_bfd_unref): Remove.
10925 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
10926 * symfile.h (symfile_bfd_open)
10927 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
10928 * symfile.c (read_symbols, symbol_file_add)
10929 (separate_debug_file_exists): Update.
10930 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
10931 (generic_load, reread_symbols): Update.
10932 * symfile-mem.c (symbol_file_add_from_memory): Update.
10933 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
10934 (spu_symbol_file_add_from_memory): Update.
10935 * solist.h (struct target_so_ops) <bfd_open>: Return
10936 gdb_bfd_ref_ptr.
10937 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
10938 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
10939 gdb_bfd_ref_ptr.
10940 (solib_map_sections, reload_shared_libraries_1): Update.
10941 * solib-svr4.c (enable_break): Update.
10942 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
10943 * solib-frv.c (enable_break2): Update.
10944 * solib-dsbt.c (enable_break): Update.
10945 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
10946 gdb_bfd_ref_ptr.
10947 (darwin_solib_get_all_image_info_addr_at_init): Update.
10948 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
10949 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
10950 * record-full.c (record_full_save): Update.
10951 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
10952 * procfs.c (insert_dbx_link_bpt_in_file): Update.
10953 * minidebug.c (find_separate_debug_file_in_section): Return
10954 gdb_bfd_ref_ptr.
10955 * machoread.c (macho_add_oso_symfile): Change abfd to
10956 gdb_bfd_ref_ptr.
10957 (macho_symfile_read_all_oso): Update.
10958 (macho_check_dsym): Return gdb_bfd_ref_ptr.
10959 (macho_symfile_read): Update.
10960 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
10961 (jit_bfd_try_read_symtab): Update.
10962 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10963 (gdb_bfd_openw, gdb_bfd_openr_iovec)
10964 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
10965 gdb_bfd_ref_ptr.
10966 (gdb_bfd_ref_policy): New struct.
10967 (gdb_bfd_ref_ptr): New typedef.
10968 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10969 (gdb_bfd_openw, gdb_bfd_openr_iovec)
10970 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
10971 gdb_bfd_ref_ptr.
10972 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
10973 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
10974 (gcore_command): Update.
10975 * exec.c (exec_file_attach): Update.
10976 * elfread.c (elf_symfile_read): Update.
10977 * dwarf2read.c (dwarf2_get_dwz_file): Update.
10978 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
10979 (open_and_init_dwo_file): Update.
10980 (open_dwp_file): Return gdb_bfd_ref_ptr.
10981 (open_and_init_dwp_file): Update.
10982 * corelow.c (core_open): Update.
10983 * compile/compile-object-load.c (compile_object_load): Update.
10984 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
10985 * coffread.c (coff_symfile_read): Update.
10986 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
10987 gdb_bfd_ref_ptr. Rename.
10988 (dump_bfd_file, restore_command): Update.
10989 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
10990 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
10991 (find_separate_debug_file_by_buildid): Update.
10992
50315b21
TT
109932017-01-10 Tom Tromey <tom@tromey.com>
10994
10995 * common/gdb_ref_ptr.h: New file.
10996 * python/py-ref.h (struct gdbpy_ref_policy): New.
10997 (gdbpy_ref): Now a typedef.
10998
fc4007c9
TT
109992017-01-10 Tom Tromey <tom@tromey.com>
11000
11001 * utils.h (make_cleanup_htab_delete): Don't declare.
11002 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
11003 Remove.
11004 * linespec.c (decode_compound_collector): Add constructor,
11005 destructor.
11006 (lookup_prefix_sym): Remove cleanup.
11007 (symtab_collector): Add constructor, destructor.
11008 (collect_symtabs_from_filename): Remove cleanup.
11009 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
11010 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
11011 Use htab_up.
11012 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
11013 * dwarf2read.c (dw2_expand_symtabs_matching)
11014 (dw2_map_symbol_filenames, dwarf_decode_macros)
11015 (write_psymtabs_to_index): Use htab_up.
11016 * dwarf2loc.c (func_verify_no_selftailcall)
11017 (call_site_find_chain_1, func_verify_no_selftailcall)
11018 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
11019 std::vector, gdb::unique_xmalloc_ptr.
11020 (call_sitep): Remove typedef.
11021 (dwarf2_locexpr_baton_eval): Remove unused variable.
11022
8dbcee67
TT
110232017-01-10 Tom Tromey <tom@tromey.com>
11024
11025 * python/python-internal.h (make_cleanup_py_decref)
11026 (make_cleanup_py_xdecref): Don't declare.
11027 * python/py-utils.c (py_decref, make_cleanup_py_decref)
11028 (py_xdecref, make_cleanup_py_xdecref): Remove.
11029
13df46cc
TT
110302017-01-10 Tom Tromey <tom@tromey.com>
11031
11032 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
11033 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
11034
06fc9bf7
TT
110352017-01-10 Tom Tromey <tom@tromey.com>
11036
11037 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
11038
830a4934
TT
110392017-01-10 Tom Tromey <tom@tromey.com>
11040
11041 * python/py-utils.c (unicode_to_encoded_string)
11042 (python_string_to_target_string)
11043 (python_string_to_target_python_string)
11044 (python_string_to_host_string, gdbpy_obj_to_string)
11045 (get_addr_from_python): Use gdbpy_ref.
11046
4586d543
TT
110472017-01-10 Tom Tromey <tom@tromey.com>
11048
11049 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
11050 gdbpy_ref.
11051
59876f8f
TT
110522017-01-10 Tom Tromey <tom@tromey.com>
11053
11054 * python/python.c (eval_python_command, gdbpy_decode_line)
11055 (gdbpy_run_events, gdbpy_start_type_printers)
11056 (gdbpy_apply_type_printers): Use gdbpy_ref.
11057
97d83487
TT
110582017-01-10 Tom Tromey <tom@tromey.com>
11059
11060 * python/py-param.c (get_doc_string, compute_enum_values): Use
11061 gdbpy_ref.
11062
9205649a
TT
110632017-01-10 Tom Tromey <tom@tromey.com>
11064
11065 * python/py-inferior.c (find_thread_object, build_inferior_list):
11066 Use gdbpy_ref.
11067
74c49d45
TT
110682017-01-10 Tom Tromey <tom@tromey.com>
11069
11070 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11071
16361ffb
TT
110722017-01-10 Tom Tromey <tom@tromey.com>
11073
11074 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
11075 gdbpy_ref.
11076
905f2cca
TT
110772017-01-10 Tom Tromey <tom@tromey.com>
11078
11079 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
11080 extra incref.
11081 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
11082 Use gdbpy_ref.
11083
64081434
TT
110842017-01-10 Tom Tromey <tom@tromey.com>
11085
11086 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11087 gdbpy_ref.
11088
59e9e831
TT
110892017-01-10 Tom Tromey <tom@tromey.com>
11090
11091 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
11092 decref results of PyArg_ParseTupleAndKeywords.
11093
9de10f6d
TT
110942017-01-10 Tom Tromey <tom@tromey.com>
11095
11096 * python/python.c (python_run_simple_file): Use
11097 unique_xmalloc_ptr, gdbpy_ref.
11098
2bd5759d
TT
110992017-01-10 Tom Tromey <tom@tromey.com>
11100
11101 * python/py-prettyprint.c (print_stack_unless_memory_error)
11102 (print_string_repr, print_children): Use gdbpy_ref.
11103 (dummy_python_frame): New class.
11104 (dummy_python_frame::dummy_python_frame): Rename from
11105 push_dummy_python_frame.
11106 (py_restore_tstate): Remove.
11107
3b4e0e01
TT
111082017-01-10 Tom Tromey <tom@tromey.com>
11109
11110 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11111
17a22718
TT
111122017-01-10 Tom Tromey <tom@tromey.com>
11113
11114 * python/python.c (ensure_python_env, restore_python_env):
11115 Remove.
11116 * python/python-internal.h (ensure_python_env): Don't declare.
11117 * varobj.h (varobj_ensure_python_env): Don't declare.
11118 * varobj.c (varobj_ensure_python_env): Remove.
11119
68cdc557
TT
111202017-01-10 Tom Tromey <tom@tromey.com>
11121
11122 * varobj.c (varobj_value_get_print_value): Use
11123 gdbpy_enter_varobj.
11124
1eba6383
TT
111252017-01-10 Tom Tromey <tom@tromey.com>
11126
11127 * python/py-prettyprint.c (print_string_repr, print_children):
11128 Update.
11129 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
11130 of "encoding".
11131 * varobj.c (varobj_value_get_print_value): Update.
11132 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
11133
bde7b3e3
TT
111342017-01-10 Tom Tromey <tom@tromey.com>
11135
11136 * varobj.c (varobj_get_display_hint)
11137 (dynamic_varobj_has_child_method, install_new_value_visualizer)
11138 (varobj_set_visualizer, free_variable): Use
11139 gdbpy_enter_varobj.
11140
a7785f8c
TT
111412017-01-10 Tom Tromey <tom@tromey.com>
11142
11143 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
11144 (do_finish_initialization): New function. Use gdbpy_ref.
11145 (gdbpy_finish_initialization): Use gdbpy_enter. Call
11146 do_finish_initialization.
11147
2865bfce
TT
111482017-01-10 Tom Tromey <tom@tromey.com>
11149
11150 * python/py-param.c (get_set_value, get_show_value): Use
11151 gdbpy_enter, gdbpy_ref.
11152
0e9dcc75
TT
111532017-01-10 Tom Tromey <tom@tromey.com>
11154
11155 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
11156
12a5cedd
TT
111572017-01-10 Tom Tromey <tom@tromey.com>
11158
11159 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
11160
788f2586
TT
111612017-01-10 Tom Tromey <tom@tromey.com>
11162
11163 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
11164 Use gdbpy_enter_varobj.
11165
6cd67bea
TT
111662017-01-10 Tom Tromey <tom@tromey.com>
11167
11168 * varobj.c (gdbpy_enter_varobj): New constructor.
11169 * python/python-internal.h (gdbpy_enter_varobj): New class.
11170 * python/py-varobj.c (py_varobj_get_iterator): Use
11171 gdbpy_enter_varobj.
11172
14b122bf
TT
111732017-01-10 Tom Tromey <tom@tromey.com>
11174
11175 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
11176 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11177 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
11178 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
11179 unique_xmalloc_ptr.
11180 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
11181
bf1ca3b9
TT
111822017-01-10 Tom Tromey <tom@tromey.com>
11183
11184 * python/py-xmethods.c (invoke_match_method): Use
11185 gdbpy_ref.
11186
572a5524
TT
111872017-01-10 Tom Tromey <tom@tromey.com>
11188
11189 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
11190 gdbpy_enter, gdbpy_ref.
11191
396a78b6
TT
111922017-01-10 Tom Tromey <tom@tromey.com>
11193
11194 * python/python.c (python_interactive_command): Use gdbpy_enter.
11195
a88b13c7
TT
111962017-01-10 Tom Tromey <tom@tromey.com>
11197
11198 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
11199 gdbpy_ref.
11200
e9f0c363
TT
112012017-01-10 Tom Tromey <tom@tromey.com>
11202
11203 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
11204 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11205
6349f452
TT
112062017-01-10 Tom Tromey <tom@tromey.com>
11207
11208 * utils.h (htab_deleter): New struct.
11209 (htab_up): New typedef.
11210 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
11211 gdbpy_enter, gdbpy_ref, htab_up.
11212
c0171de6
TT
112132017-01-10 Tom Tromey <tom@tromey.com>
11214
11215 * python/py-unwind.c (pending_frame_invalidate): Remove.
11216 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
11217
f18e226f
TT
112182017-01-10 Tom Tromey <tom@tromey.com>
11219
11220 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
11221 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
11222
c57af3f1
TT
112232017-01-10 Tom Tromey <tom@tromey.com>
11224
11225 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
11226
60e600ec
TT
112272017-01-10 Tom Tromey <tom@tromey.com>
11228
11229 * python/python.c (gdbpy_eval_from_control_command)
11230 (gdbpy_source_script, gdbpy_run_events)
11231 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
11232 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
11233 gdbpy_enter.
11234
bf7da5b0
TT
112352017-01-10 Tom Tromey <tom@tromey.com>
11236
11237 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
11238
2d38bced
TT
112392017-01-10 Tom Tromey <tom@tromey.com>
11240
11241 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
11242
07bc7329
TT
112432017-01-10 Tom Tromey <tom@tromey.com>
11244
11245 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
11246 (python_on_inferior_call_pre, python_on_inferior_call_post)
11247 (python_on_memory_change, python_on_register_change)
11248 (python_inferior_exit, python_new_objfile, add_thread_object)
11249 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
11250
6e7c365e
TT
112512017-01-10 Tom Tromey <tom@tromey.com>
11252
11253 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
11254 (bpfinishpy_handle_exit): Use gdbpy_enter.
11255
6ba0cd40
TT
112562017-01-10 Tom Tromey <tom@tromey.com>
11257
11258 * python/py-cmd.c (cmdpy_destroyer)
11259 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
11260 gdbpy_enter.
11261
de2dc875
TT
112622017-01-10 Tom Tromey <tom@tromey.com>
11263
11264 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11265 gdbpy_enter.
11266 (gdbpy_breakpoint_has_cond): Likewise.
11267
4ecee2c4
TT
112682017-01-10 Tom Tromey <tom@tromey.com>
11269
11270 * python/python.c (gdbpy_enter): New constructor.
11271 (~gdbpy_enter): New destructor.
11272 (restore_python_env, ensure_python_env): Rewrite.
11273 * python/python-internal.h (gdbpy_enter): New class.
11274
37fce74f
TT
112752017-01-10 Tom Tromey <tom@tromey.com>
11276
11277 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
11278
53a0cca3
TT
112792017-01-10 Tom Tromey <tom@tromey.com>
11280
11281 * python/py-value.c (value_has_field, get_field_flag)
11282 (get_field_type, valpy_getitem, convert_value_from_python): Use
11283 gdbpy_ref.
11284
ff3724f5
TT
112852017-01-10 Tom Tromey <tom@tromey.com>
11286
11287 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
11288 gdbpy_ref.
11289
0700aea5
TT
112902017-01-10 Tom Tromey <tom@tromey.com>
11291
11292 * python/py-prettyprint.c (search_pp_list)
11293 (find_pretty_printer_from_objfiles)
11294 (find_pretty_printer_from_progspace)
11295 (find_pretty_printer_from_gdb, find_pretty_printer)
11296 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
11297 gdbpy_ref.
11298
1bb44c9f
TT
112992017-01-10 Tom Tromey <tom@tromey.com>
11300
11301 * python/py-param.c (call_doc_function): Use gdbpy_ref.
11302
87ce03fd
TT
113032017-01-10 Tom Tromey <tom@tromey.com>
11304
11305 * python/py-linetable.c (build_line_table_tuple_from_pcs)
11306 (ltpy_get_all_source_lines): Use gdbpy_ref.
11307
ee0a3fb8
TT
113082017-01-10 Tom Tromey <tom@tromey.com>
11309
11310 * python/py-framefilter.c (extract_sym, extract_value)
11311 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
11312 gdbpy_ref.
11313
bf2a52fa
TT
113142017-01-10 Tom Tromey <tom@tromey.com>
11315
11316 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
11317
f59fe7f8
TT
113182017-01-10 Tom Tromey <tom@tromey.com>
11319
11320 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
11321
80bd970a
TT
113222017-01-10 Tom Tromey <tom@tromey.com>
11323
11324 * python/py-function.c (convert_values_to_python, fnpy_init): Use
11325 gdbpy_ref.
11326
d1b3de2e
TT
113272017-01-10 Tom Tromey <tom@tromey.com>
11328
11329 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
11330
3bb43384
TT
113312017-01-10 Tom Tromey <tom@tromey.com>
11332
11333 * python/py-type.c (convert_field, make_fielditem, typy_fields)
11334 (typy_range): Use gdbpy_ref.
11335
abf5651e
TT
113362017-01-10 Tom Tromey <tom@tromey.com>
11337
11338 * python/py-threadevent.c (create_thread_event_object): Use
11339 gdbpy_ref.
11340 * python/py-stopevent.c (create_stop_event_object): Simplify.
11341 (emit_stop_event): Use gdbpy_ref.
11342 * python/py-signalevent.c (create_signal_event_object): Use
11343 gdbpy_ref.
11344 * python/py-newobjfileevent.c (create_new_objfile_event_object)
11345 (emit_new_objfile_event, create_clear_objfiles_event_object)
11346 (emit_clear_objfiles_event): Use gdbpy_ref.
11347 * python/py-infevents.c (create_inferior_call_event_object)
11348 (create_register_changed_event_object)
11349 (create_memory_changed_event_object, emit_inferior_call_event)
11350 (emit_memory_changed_event, emit_register_changed_event): Use
11351 gdbpy_ref.
11352 * python/py-exitedevent.c (create_exited_event_object)
11353 (emit_exited_event): Use gdbpy_ref.
11354 * python/py-event.h (evpy_emit_event): Remove
11355 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
11356 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
11357 * python/py-continueevent.c (emit_continue_event): Use
11358 gdbpy_ref.
11359 * python/py-breakpoint.c (gdbpy_breakpoint_created)
11360 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
11361 gdbpy_ref.
11362 * python/py-bpevent.c (create_breakpoint_event_object): Use
11363 gdbpy_ref.
11364
a68ff33e
TT
113652017-01-10 Tom Tromey <tom@tromey.com>
11366
11367 * python/py-ref.h: New file.
11368
7becfd03
SM
113692017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11370
11371 * cli-out.c (cli_ui_out::do_redirect): Change return type to
11372 void.
11373 * cli-out.h (cli_ui_out::do_redirect): Likewise.
11374 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
11375 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
11376 * ui-out.c (ui_out::redirect): Likewise.
11377 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
11378 * cli/cli-logging.c (set_logging_redirect): Update call site of
11379 ui_out::redirect.
11380 (handle_redirections): Likewise.
11381 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
11382 * top.c (execute_command_to_string): Likewise.
11383 * utils.c (do_ui_out_redirect_pop): Likewise.
11384
df294654
SM
113852017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11386
11387 * stack.c (_initialize_stack): Update "frame" command help message.
11388
f5e6296e
IB
113892017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
11390
11391 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
11392
0e2d6fa6
YQ
113932017-01-06 Yao Qi <yao.qi@linaro.org>
11394
11395 * x86-linux-nat.h: Include gdb_proc_service.h.
11396
44d6d3f9
YQ
113972017-01-06 Yao Qi <yao.qi@linaro.org>
11398
11399 * ser-base.h: Include serial.h.
11400
656731fe
YQ
114012017-01-06 Yao Qi <yao.qi@linaro.org>
11402
11403 * ppc-linux-tdep.h: Include ppc-tdep.h.
11404
1ca8f924
YQ
114052017-01-06 Yao Qi <yao.qi@linaro.org>
11406
11407 * nat/amd64-linux-siginfo.h: Include signal.h.
11408
bc3008c4
YQ
114092017-01-06 Yao Qi <yao.qi@linaro.org>
11410
11411 * nat/aarch64-linux-hw-point.h: Include break-common.h.
11412
66c80d03
YQ
114132017-01-06 Yao Qi <yao.qi@linaro.org>
11414
11415 * mi/mi-parse.h: Include mi-cmds.h.
11416
051d2dda
YQ
114172017-01-06 Yao Qi <yao.qi@linaro.org>
11418
11419 * inf-loop.c: Don't include "target.h".
11420 * inf-loop.h: Include it here.
11421
8018d34f
YQ
114222017-01-06 Yao Qi <yao.qi@linaro.org>
11423
11424 * dfp.h: Include "dboulest.h" and "expression.h".
11425
c0b8369c
YQ
114262017-01-06 Yao Qi <yao.qi@linaro.org>
11427
11428 * ax-gdb.h: Include "ax.h".
11429
ad5cba2a
YQ
114302017-01-06 Yao Qi <yao.qi@linaro.org>
11431
11432 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
11433 with nat/gdb_ptrace.h.
11434
1c33cd7f
YQ
114352017-01-05 Yao Qi <yao.qi@linaro.org>
11436
11437 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
11438 new line.
11439 (mips64_fbsd_sigframe_init): Likewise.
11440
c988ac1d
JB
114412017-01-04 John Baldwin <jhb@FreeBSD.org>
11442
11443 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
11444 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
11445
b268007c
JB
114462017-01-04 John Baldwin <jhb@FreeBSD.org>
11447
11448 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
11449 * NEWS: Mention new FreeBSD/mips native configuration.
11450 * config/mips/fbsd.mh: New file.
11451 * configure.host: Add mips*-*-freebsd*.
11452 * mips-fbsd-nat.c: New file.
11453
387360da
JB
114542017-01-04 John Baldwin <jhb@FreeBSD.org>
11455
11456 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
11457 (ALLDEPFILES): Add mips-fbsd-tdep.c.
11458 * NEWS: Mention new FreeBSD/mips target.
11459 * configure.tgt: Add mips*-*-freebsd*.
11460 * mips-fbsd-tdep.c: New file.
11461 * mips-fbsd-tdep.h: New file.
11462
2aaaf250
YQ
114632017-01-04 Yao Qi <yao.qi@linaro.org>
11464
11465 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
11466 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
11467
61baf725
JB
114682017-01-01 Joel Brobecker <brobecker@adacore.com>
11469
6dbb839a 11470 Update copyright year range in all GDB files.
61baf725 11471
c113e7ff 114722017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 11473
c113e7ff 11474 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 11475
c113e7ff 11476For older changes see ChangeLog-2016.
c906108c
SS
11477\f
11478Local Variables:
11479mode: change-log
11480left-margin: 8
11481fill-column: 74
11482version-control: never
57da7796 11483coding: utf-8
c906108c 11484End: