Constify core_file_command
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d64097b1
TT
12017-09-27 Tom Tromey <tom@tromey.com>
2
3 * gdbcore.h (core_file_command): Update.
4 * corefile.c (core_file_command): Constify.
5
4d4589ef
TT
62017-09-27 Tom Tromey <tom@tromey.com>
7
8 * user-regs.c (maintenance_print_user_registers): Constify.
9
32a7bf17
TT
102017-09-27 Tom Tromey <tom@tromey.com>
11
12 * cp-namespace.c (maintenance_cplus_namespace): Constify.
13
4a475551
TT
142017-09-27 Tom Tromey <tom@tromey.com>
15
16 * cp-support.c (first_component_command): Constify.
17
990b9f9f
TT
182017-09-27 Tom Tromey <tom@tromey.com>
19
20 * psymtab.c (maintenance_print_psymbols)
21 (maintenance_info_psymtabs, maintenance_check_psymtabs):
22 Constify.
23
c281872e
TT
242017-09-27 Tom Tromey <tom@tromey.com>
25
26 * windows-tdep.c (display_tib): Constify.
27
5b64bf74
TT
282017-09-27 Tom Tromey <tom@tromey.com>
29
30 * linux-fork.c (delete_checkpoint_command)
31 (detach_checkpoint_command): Constify.
32
4ada038f
TT
332017-09-27 Tom Tromey <tom@tromey.com>
34
35 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
36
57f5a81b
TT
372017-09-27 Tom Tromey <tom@tromey.com>
38
39 * arc-tdep.c (dump_arc_instruction_command): Constify.
40
b0a8e6c4
TT
412017-09-27 Tom Tromey <tom@tromey.com>
42
43 * valprint.c (set_radix, show_radix): Constify.
44
8d97dc1c
TT
452017-09-27 Tom Tromey <tom@tromey.com>
46
47 * dtrace-probe.c (info_probes_dtrace_command): Constify.
48
eb7c454d
TT
492017-09-27 Tom Tromey <tom@tromey.com>
50
51 * command.h (not_just_help_class_command): Update.
52 * cli/cli-decode.h (not_just_help_class_command): Update.
53 * cli/cli-decode.c (not_just_help_class_command): Constify.
54
e4e33335
TT
552017-09-27 Tom Tromey <tom@tromey.com>
56
57 * gdb_bfd.c (maintenance_info_bfds): Constify.
58
0450cc4c
TT
592017-09-27 Tom Tromey <tom@tromey.com>
60
61 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
62 overloads.
63 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
64 (do_const_cfunc): New function.
65 (cmd_cfunc_eq): New overload.
66 (cli_user_command_p): Check do_const_cfunc.
67 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
68 const_cfunc.
69 * command.h (add_cmd): Add const overload and no-function
70 overload.
71 (set_cmd_cfunc): Add const overload.
72 (cmd_const_cfunc_ftype): Declare.
73 (cmd_cfunc_eq): Add const overload.
74 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
75 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
76 overload.
77
a9bbfbd8
TT
782017-09-27 Tom Tromey <tom@tromey.com>
79
80 * macroexp.c (get_next_token_for_substitution): New function.
81 (substitute_args): Call it. Check for __VA_OPT__.
82
5230b05a
WT
832017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
84 Pedro Alves <palves@redhat.com>
85
86 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
87 producer_is_icc_lt_14.
88 (producer_is_icc_lt_14): New function.
89 (check_producer): Add code for checking version of ICC.
90 (producer_is_icc): Move to producer.c.
91 (read_structure_type): Restrict ICC workaround to ICC<14.
92 * producer.c: Include selftest.h.
93 (producer_is_icc, producer_parsing_tests, _initialize_producer):
94 New functions.
95 * producer.h (producer_is_icc): New declaration.
96
b32b108a
WT
972017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
98
99 * Makefile.in (SFILES): Add producer.c.
100 (COMMON_OBS): Add producer.o
101 * amd64-tdep.c (producer.h): Add new include.
102 * dwarf2read.c (producer.h): Add new include.
103 * producer.c: New file.
104 * producer.h: New file.
105 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
106 producer.c.
107 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
108 producer.h.
109
5007d765
MK
1102017-09-26 Matthias Klose <doko@ubuntu.com>
111
112 * configure.ac: Search ncursesw before ncurses.
113 Check ncursesw/ncurses.h before ncurses/ncurses.h.
114 * gdb_curses.h: Include <ncursesw/ncurses.h>
115 * config.in, configure: Regenerate.
116
281c4447
RO
1172017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
118
119 PR gdb/22185
120 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
121 obsolete.
122 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
123 Remove i386sol2 support.
124 * configure.nat <i386sol2>: Remove.
125 <sol2-64>: Fold into ...
126 <sol2>: ... this.
127 Move common settings to default section.
128 Add sol-thread.o.
129 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
130 x86_64-*-solaris2.1[0-9]*>: Rename to ...
131 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
132 <i[34567]86-*-solaris*>: Remove.
133 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
134
135 * configure.ac: Remove wctype in libw check.
136 (_MSE_INT_H): Don't define on Solaris 7-9.
137 <solaris*>: Remove libthread_db.so.1 check.
138 * configure: Regenerate.
139 * config.in: Regenerate.
140
141 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
142 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
143 (gdb_ps_size_t): Remove.
144 Use base types in users.
145 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
146
147 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
148
39b06c20
RO
1492017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
150
151 PR build/22206
152 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
153 (adi_is_addr_mapped): Likewise.
154 (PSR_ICC): Don't redefine.
155 (PSR_IMPL): Likewise.
156
6c3e20f1
TT
1572017-09-25 Tom Tromey <tom@tromey.com>
158
159 * regcache.c (regcache::dump): Use string_printf.
160
b292235f
TT
1612017-09-25 Tom Tromey <tom@tromey.com>
162
163 * regcache.c (class regcache_invalidator): New.
164 (struct register_to_invalidate): Remove.
165 (make_cleanup_regcache_invalidate): Remove.
166 (regcache::raw_write): Use regcache_invalidator.
167
9ac86b52
TT
1682017-09-25 Tom Tromey <tom@tromey.com>
169
170 * spu-tdep.c (spu2ppu_sniffer): Update.
171 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
172 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
173 Remove.
174 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
175 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
176 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
177 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
178 (frame_pop): Update.
179
c0e383c6
TT
1802017-09-25 Tom Tromey <tom@tromey.com>
181
182 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
183 * regcache.h (regcache_xfree): Don't declare.
184 * regcache.c (regcache_xfree): Remove.
185 (do_regcache_xfree): Use delete.
186 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
187 * linux-fork.c (free_fork): Use delete.
188 (fork_save_infrun_state): Likewise.
189 * jit.c (jit_dealloc_cache): Use delete.
190 * infrun.c (discard_infcall_suspend_state): Use delete.
191
791199cc
TT
1922017-09-25 Tom Tromey <tom@tromey.com>
193
194 * regcache.h (regcache_xmalloc): Don't declare.
195 (regcache_raw_set_cached_value): Update comment.
196 * regcache.c (regcache_xmalloc): Remove.
197 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
198 * jit.c (jit_frame_sniffer): Use new.
199 * frame.c (frame_save_as_regcache): Use new.
200
289e23aa
AA
2012017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
202
203 * NEWS: Advertise support for guarded-storage registers on IBM z.
204
1b63490c
AA
2052017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
206
207 * s390-linux-nat.c (have_regset_gs): New static variable.
208 (s390_linux_fetch_inferior_registers): Handle guarded-storage
209 control block and guarded-storage broadcast control regsets.
210 (s390_read_description): Detect whether the target has
211 guarded-storage support, return appropriate tdesc.
212 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
213 (features/s390x-gs-linux64.c): Likewise.
214 (struct gdbarch_tdep) <have_gs>: New field.
215 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
216 (s390_gsbc_regset): New variables.
217 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
218 and s390_gsbc_regset, if applicable.
219 (s390_core_read_description): Check whether core file was from a
220 target with guarded-storage support; include appropriate regsets.
221 (s390_gdbarch_init): Add registers for guarded-storage support.
222 (_initialize_s390_tdep): Initialize new target descriptions that
223 include registers for guarded-storage support.
224 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
225 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
226 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
227 (S390_NUM_REGS): Adjust macro definition.
228 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
229 (tdesc_s390x_gs_linux64): New declarations.
230
96235dc1
AA
2312017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
232
233 * features/s390-gs-linux64.xml: New file.
234 * features/s390-gs.xml: New file.
235 * features/s390-gsbc.xml: New file.
236 * features/s390x-gs-linux64.xml: New file.
237 * features/Makefile (WHICH): Add s390-gs-linux64 and
238 s390x-gs-linux64.
239 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
240 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
241 * features/s390-gs-linux64.c: New generated file.
242 * features/s390x-gs-linux64.c: New file.
243 * regformats/s390-gs-linux64.dat: New file.
244 * regformats/s390x-gs-linux64.dat: New file.
245
b4a7c699
TT
2462017-09-23 Tom Tromey <tom@tromey.com>
247
248 * defs.h (make_cleanup_override_quit_handler): Don't declare.
249
c2f97536
TT
2502017-09-22 Tom Tromey <tom@tromey.com>
251
252 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
253 type to scoped_restore_tmpl.
254 <scoped_input_handler>: Initialize m_quit_handler directly.
255
43573013
SDJ
2562017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
257
258 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
259 (cd_command): Likewise. Free "current_directory" before
260 assigning to it.
261 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
262 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
263 * top.c (gdb_dirbuf): Remove global declaration.
264 * top.h (gdb_dirbuf): Likewise.
265
6ec2e0f5
SDJ
2662017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
267
268 * gnulib/aclocal.m4: Regenerate.
269 * gnulib/config.in: Regenerate.
270 * gnulib/configure: Regenerate.
271 * gnulib/import/Makefile.am: Regenerate.
272 * gnulib/import/Makefile.in: Regenerate.
273 * gnulib/import/assure.h: New file.
274 * gnulib/import/at-func.c: Likewise
275 * gnulib/import/chdir-long.c: New file.
276 * gnulib/import/chdir-long.h: New file.
277 * gnulib/import/cloexec.c: New file.
278 * gnulib/import/cloexec.h: New file.
279 * gnulib/import/close.c: New file.
280 * gnulib/import/closedir.c: New file.
281 * gnulib/import/dirent-private.h: New file.
282 * gnulib/import/dup-safer.c: New file.
283 * gnulib/import/dup.c: New file.
284 * gnulib/import/dup2.c: New file.
285 * gnulib/import/error.c: New file.
286 * gnulib/import/error.h: New file.
287 * gnulib/import/exitfail.c: New file.
288 * gnulib/import/exitfail.h: New file.
289 * gnulib/import/fchdir.c: New file.
290 * gnulib/import/fcntl.c: New file.
291 * gnulib/import/fcntl.in.h: New file.
292 * gnulib/import/fd-hook.c: New file.
293 * gnulib/import/fd-hook.h: New file.
294 * gnulib/import/fd-safer.c: New file.
295 * gnulib/import/fdopendir.c: New file.
296 * gnulib/import/filename.h: New file.
297 * gnulib/import/filenamecat-lgpl.c: New file.
298 * gnulib/import/filenamecat.h: New file.
299 * gnulib/import/fstat.c: New file.
300 * gnulib/import/fstatat.c: New file.
301 * gnulib/import/getcwd-lgpl.c: New file.
302 * gnulib/import/getcwd.c: New file.
303 * gnulib/import/getdtablesize.c: New file.
304 * gnulib/import/getlogin_r.c: New file.
305 * gnulib/import/getprogname.c: New file.
306 * gnulib/import/getprogname.h: New file.
307 * gnulib/import/gettext.h: New file.
308 * gnulib/import/glob-libc.h: New file.
309 * gnulib/import/glob.c: New file.
310 * gnulib/import/glob.in.h: New file.
311 * gnulib/import/intprops.h: New file.
312 * gnulib/import/m4/chdir-long.m4: New file.
313 * gnulib/import/m4/close.m4: New file.
314 * gnulib/import/m4/closedir.m4: New file.
315 * gnulib/import/m4/d-ino.m4: New file.
316 * gnulib/import/m4/d-type.m4: New file.
317 * gnulib/import/m4/dup.m4: New file.
318 * gnulib/import/m4/dup2.m4: New file.
319 * gnulib/import/m4/error.m4: New file.
320 * gnulib/import/m4/fchdir.m4: New file.
321 * gnulib/import/m4/fcntl.m4: New file.
322 * gnulib/import/m4/fcntl_h.m4: New file.
323 * gnulib/import/m4/fdopendir.m4: New file.
324 * gnulib/import/m4/filenamecat.m4: New file.
325 * gnulib/import/m4/fstat.m4: New file.
326 * gnulib/import/m4/fstatat.m4: New file.
327 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
328 * gnulib/import/m4/getcwd-path-max.m4: New file.
329 * gnulib/import/m4/getcwd.m4: New file.
330 * gnulib/import/m4/getdtablesize.m4: New file.
331 * gnulib/import/m4/getlogin_r.m4: New file.
332 * gnulib/import/m4/getprogname.m4: New file.
333 * gnulib/import/m4/glob.m4: New file.
334 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
335 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
336 * gnulib/import/m4/mempcpy.m4: New file.
337 * gnulib/import/m4/memrchr.m4: New file.
338 * gnulib/import/m4/mode_t.m4: New file.
339 * gnulib/import/m4/msvc-inval.m4: New file.
340 * gnulib/import/m4/msvc-nothrow.m4: New file.
341 * gnulib/import/m4/open.m4: New file.
342 * gnulib/import/m4/openat.m4: New file.
343 * gnulib/import/m4/opendir.m4: New file.
344 * gnulib/import/m4/readdir.m4: New file.
345 * gnulib/import/m4/realloc.m4: New file.
346 * gnulib/import/m4/rewinddir.m4: New file.
347 * gnulib/import/m4/save-cwd.m4: New file.
348 * gnulib/import/m4/strdup.m4: New file.
349 * gnulib/import/m4/strerror.m4: New file.
350 * gnulib/import/m4/unistd-safer.m4: New file.
351 * gnulib/import/mempcpy.c: New file.
352 * gnulib/import/memrchr.c: New file.
353 * gnulib/import/msvc-inval.c: New file.
354 * gnulib/import/msvc-inval.h: New file.
355 * gnulib/import/msvc-nothrow.c: New file.
356 * gnulib/import/msvc-nothrow.h: New file.
357 * gnulib/import/open.c: New file.
358 * gnulib/import/openat-die.c: New file.
359 * gnulib/import/openat-priv.h: New file.
360 * gnulib/import/openat-proc.c: New file.
361 * gnulib/import/openat.c: New file.
362 * gnulib/import/openat.h: New file.
363 * gnulib/import/opendir.c: New file.
364 * gnulib/import/pipe-safer.c: New file.
365 * gnulib/import/readdir.c: New file.
366 * gnulib/import/realloc.c: New file.
367 * gnulib/import/rewinddir.c: New file.
368 * gnulib/import/save-cwd.c: New file.
369 * gnulib/import/save-cwd.h: New file.
370 * gnulib/import/strdup.c: New file.
371 * gnulib/import/strerror-override.c: New file.
372 * gnulib/import/strerror-override.h: New file.
373 * gnulib/import/strerror.c: New file.
374 * gnulib/import/unistd--.h: New file.
375 * gnulib/import/unistd-safer.h: New file.
376 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
377 "getcwd" and "glob".
378 * ser-tcp.c: Undefine "close" before redefining it.
379
432ae719
SM
3802017-09-21 Simon Marchi <simon.marchi@ericsson.com>
381
382 * guile/scm-value.c (gdbscm_value_address): Initialize address,
383 get rid of res_val.
384
4fa7574e
RO
3852017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
386
387 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
388 <sol2,sparc>: Likewise.
389 <sol2-64,i386>: Likewise.
390
391 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
392 -Wdeprecated-declarations on *-*-solaris*.
393 * configure: Regenerate.
394
395 * procfs.c: Include "nat/inferior.h".
396 (procfs_info_proc): Fix typo.
397
f6327dcb
KB
3982017-09-21 Kevin Buettner <kevinb@redhat.com>
399
400 * remote.c (vector): Include.
401 (struct private_thread_info): Add field, thread_handle.
402 (free_private_thread_info): Deallocate storage associated with
403 thread handle.
404 (get_private_info_thread): Initialize `thread_handle' field.
405 (struct thread_item): Add field, thread_handle.
406 (clear_threads_listing_context): Deallocate storage associated
407 with thread handle.
408 (start_thread): Add support for "handle" attribute.
409 (thread_attributes): Add "handle".
410 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
411 field.
412 (remote_update_thread_list): Update thread_handle.
413 (remote_thread_handle_to_thread_info): New function.
414 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
415
fbbe5337
KB
4162017-09-21 Kevin Buettner <kevinb@redhat.com>
417
418 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
419 function.
420 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
421 * python/python-internal.h (thread_object_type): Declare.
422
e04ee09e
KB
4232017-09-21 Kevin Buettner <kevinb@redhat.com>
424
425 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
426 (target_thread_handle_to_thread_info): Declare.
427 * target.c (target_thread_handle_to_thread_info): New function.
428 * target-delegates.c: Regenerate.
429 * gdbthread.h (find_thread_by_handle): Declare.
430 * thread.c (find_thread_by_handle): New function.
431 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
432 function.
433 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
434
1e5b66ed
SM
4352017-09-21 Simon Marchi <simon.marchi@ericsson.com>
436
437 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
438
ebe48ba0
SM
4392017-09-21 Simon Marchi <simon.marchi@ericsson.com>
440
441 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
442
0a0bf5dc
YQ
4432017-09-21 Yao Qi <yao.qi@linaro.org>
444
445 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
446 to gdb_target_obs.
447
d1b0a7bf
TT
4482017-09-20 Tom Tromey <tom@tromey.com>
449
450 * breakpoint.c (struct counted_command_line): Remove.
451 (breakpoint_commands): Update.
452 (alloc_counted_command_line, incref_counted_command_line)
453 (decref_counted_command_line, do_cleanup_counted_command_line)
454 (make_cleanup_decref_counted_command_line): Remove.
455 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
456 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
457 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
458 (save_breakpoints): Update.
459 * breakpoint.h (counted_command_line): Now a typedef to
460 shared_ptr.
461 (struct breakpoint) <commands>: Now a counted_command_line.
462 (struct bpstats) <command>: Likewise.
463
48649e1b
TT
4642017-09-20 Tom Tromey <tom@tromey.com>
465
466 * breakpoint.c (struct commands_info, do_map_commands_command):
467 Remove.
468 (commands_command_1): Update.
469 (iterate_over_related_breakpoints): Take a function_view.
470 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
471 (delete_command): Update.
472 (map_breakpoint_numbers): Take a function_view.
473 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
474 (disable_command): Update.
475 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
476 (enable_command): Update.
477 (struct disp_data, do_enable_breakpoint_disp)
478 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
479 (do_map_enable_delete_breakpoint): Remove.
480 (enable_once_command, enable_count_command, enable_delete_command)
481 (delete_trace_variable_command): Update.
482
04afa70c
TT
4832017-09-20 Tom Tromey <tom@tromey.com>
484
485 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
486 (bpstat_clear): Use delete.
487 (bpstats): New constructors.
488 (bpstat_copy, bpstat_stop_status): Use new.
489 (dprintf_after_condition_true): Update.
490 * breakpoint.h (bpstats::bpstats): Add constructors.
491 (bpstats::~bpstats): Add destructor.
492
c83833f4
PA
4932017-09-20 Pedro Alves <palves@redhat.com>
494
495 * eval.c (make_params): Delete, refactored as ...
496 (class fake_method): ... this new type's ctor.
497 (fake_method::~fake_method): New.
498 (evaluate_subexp_standard): Use 'fake_method'.
499
223ffa71
TT
5002017-09-20 Tom Tromey <tom@tromey.com>
501
502 * windows-nat.c (get_windows_debug_event, windows_wait)
503 (do_initial_windows_stuff, windows_attach): Update.
504 * utils.c (vwarning, internal_vproblem): Update.
505 (ui_unregister_input_event_handler_cleanup)
506 (prepare_to_handle_input): Remove.
507 (class scoped_input_handler): New.
508 (defaulted_query, prompt_for_continue): Update.
509 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
510 Update.
511 * top.c (undo_terminal_modifications_before_exit): Update.
512 * target/target.h (target_terminal_init, target_terminal_inferior)
513 (target_terminal_ours): Don't declare.
514 (class target_terminal): New.
515 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
516 (target_terminal_ours_for_output)
517 (make_cleanup_restore_target_terminal): Don't declare.
518 (target_terminal_info): Remove.
519 * target.c (enum terminal_state, terminal_state): Remove.
520 (target_terminal::terminal_state): Define.
521 (target_terminal::init): Rename from target_terminal_init.
522 (target_terminal::inferior): Rename from
523 target_terminal_inferior.
524 (target_terminal::ours): Rename from target_terminal_ours.
525 (target_terminal::ours_for_output): Rename from
526 target_terminal_ours_for_output.
527 (target_terminal::info): New method.
528 (cleanup_restore_target_terminal)
529 (make_cleanup_restore_target_terminal): Remove.
530 * solib.c (handle_solib_event): Update.
531 * remote.c (remote_serial_quit_handler): Update.
532 (remote_terminal_inferior, remote_wait_as): Update.
533 * record-full.c (record_full_wait_1): Update.
534 * nto-procfs.c (procfs_create_inferior): Update.
535 * nat/fork-inferior.c (startup_inferior): Update.
536 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
537 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
538 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
539 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
540 (mi_breakpoint_created, mi_breakpoint_deleted)
541 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
542 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
543 (mi_user_selected_context_changed, report_initial_inferior):
544 Update.
545 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
546 (linux_nat_terminal_inferior): Update.
547 * infrun.c (follow_fork_inferior)
548 (handle_vfork_child_exec_or_exit, do_target_resume)
549 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
550 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
551 Update.
552 * inflow.c (child_terminal_init, info_terminal_command): Update.
553 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
554 (attach_command): Update.
555 * infcall.c (call_thread_fsm_should_stop): Update.
556 * gnu-nat.c (gnu_attach): Update.
557 * extension.c (struct active_ext_lang_state)
558 (restore_active_ext_lang): Update.
559 * exceptions.c (print_flush): Update.
560 * event-top.c (async_enable_stdin, default_quit_handler): Update.
561 (struct quit_handler_cleanup_data, restore_quit_handler)
562 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
563 Remove.
564 * cp-support.c (gdb_demangle): Update.
565 * breakpoint.c (update_inserted_breakpoint_locations)
566 (insert_breakpoint_locations, handle_jit_event)
567 (disable_breakpoints_in_unloaded_shlib): Update.
568 * annotate.c (annotate_breakpoints_invalid)
569 (annotate_frames_invalid): Update.
570
013af3fc
TT
5712017-09-20 Tom Tromey <tom@tromey.com>
572
573 * main.c (catch_command_errors): Rename from
574 catch_command_errors_const.
575 (captured_main_1): Update.
576
06871ae8
PA
5772017-09-20 Pedro Alves <palves@redhat.com>
578
579 * cli/cli-cmds.c (list_command): Use print_sal_location.
580 (print_sal_location): New function.
581 (ambiguous_line_spec): Use print_sal_location.
582 * linespec.c (symbol_to_sal): Record the symbol in the sal.
583 * symtab.c (find_function_start_sal): Likewise.
584 * symtab.h (symtab_and_line::symbol): New field.
585
e5f25bc5
PA
5862017-09-20 Pedro Alves <palves@redhat.com>
587
588 * linespec.c (minsym_found): Handle non-text minsyms.
589 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
590
1b7fa39e
WT
5912017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
592
593 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
594 backslash.
595
37dd0825
WT
5962017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
597
598 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
599 vmovups instead vmovaps.
600 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
601
4e5a4f58
JB
6022017-09-19 John Baldwin <jhb@FreeBSD.org>
603
604 * NEWS (Changes since GDB 8.0): Add starti.
605 * infcmd.c (enum run_break): New.
606 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
607 case.
608 (run_command): Use enum run_how.
609 (start_command): Likewise.
610 (starti_command): New function.
611 (RUN_ARGS_HELP): New macro.
612 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
613 commands. Add starti command.
614
aa70c9f1
YQ
6152017-09-19 Yao Qi <yao.qi@linaro.org>
616
617 * Makefile.in (monitor.o): Remove the rule.
618
d6541620
YQ
6192017-09-19 Yao Qi <yao.qi@linaro.org>
620
621 * annotate.h (struct annotate_arg_emitter): Use
622 DISABLE_COPY_AND_ASSIGN.
623 * common/refcounted-object.h (refcounted_object): Likewise.
624 * completer.h (struct completion_result): Likewise.
625 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
626 * filename-seen-cache.h (filename_seen_cache): Likewise.
627 * gdbcore.h (thread_section_name): Likewise.
628 * gdb_regex.h (compiled_regex): Likewise.
629 * gdbthread.h (scoped_restore_current_thread): Likewise.
630 * inferior.h (scoped_restore_current_inferior): Likewise.
631 * jit.c (jit_reader): Likewise.
632 * linespec.h (struct linespec_result): Likewise.
633 * mi/mi-parse.h (struct mi_parse): Likewise.
634 * nat/fork-inferior.c (execv_argv): Likewise.
635 * progspace.h (scoped_restore_current_program_space): Likewise.
636 * python/python-internal.h (class gdbpy_enter): Likewise.
637 * regcache.h (regcache): Likewise.
638 * target-descriptions.c (struct tdesc_reg): Likewise.
639 (struct tdesc_type): Likewise.
640 (struct tdesc_feature): Likewise.
641 * ui-out.h (ui_out_emit_type): Likewise.
642
0615127c
SM
6432017-09-18 Simon Marchi <simon.marchi@ericsson.com>
644
645 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
646 label abort_expression.
647
5e187554
SM
6482017-09-16 Simon Marchi <simon.marchi@ericsson.com>
649
650 * common/buffer.c (buffer_xml_printf): Adjust.
651 * common/xml-utils.c (xml_escape_text): Change return type to
652 std::string, update code accordingly.
653 * common/xml-utils.h (xml_escape_text): Change return type to
654 std::string.
655 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
656 * windows-tdep.c (windows_xfer_shared_library): Adjust.
657 * unittests/xml-utils-selftests.c (test_xml_escape_text):
658 Adjust.
659
c3d7b541
SM
6602017-09-16 Simon Marchi <simon.marchi@ericsson.com>
661
662 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
663 (SUBDIR_UNITTESTS_OBS): Add new object file.
664 * unittests/xml-utils-selftests.c: New file.
665
1526853e
SM
6662017-09-16 Simon Marchi <simon.marchi@ericsson.com>
667
668 * common/selftest.h (selftest): New struct/interface.
669 (register_test): Add name parameter, add new overload.
670 (run_tests): Add filter parameter.
671 (for_each_selftest_ftype): New typedef.
672 (for_each_selftest): New declaration.
673 * common/selftest.c (tests): Change type to
674 map<string, unique_ptr<selftest>>.
675 (simple_selftest): New struct.
676 (register_test): New function.
677 (register_test): Add name parameter and use it.
678 (run_tests): Add filter parameter and use it. Add prints.
679 Adjust to vector -> map change.
680 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
681 registering selftests.
682 * arm-tdep.c (_initialize_arm_tdep): Likewise.
683 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
684 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
685 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
686 * findvar.c (_initialize_findvar): Likewise.
687 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
688 * maint.c (maintenance_selftest): Update call to run_tests.
689 (maintenance_info_selftests): New function.
690 (_initialize_maint_cmds): Register "maintenance info selftests"
691 command. Update "maintenance selftest" doc.
692 * regcache.c (_initialize_regcache): Add names when registering
693 selftests.
694 * rust-exp.y (_initialize_rust_exp): Likewise.
695 * selftest-arch.c (gdbarch_selftest): New struct.
696 (gdbarch_tests): Remove.
697 (register_test_foreach_arch): Add name parameter. Call
698 register_test.
699 (tests_with_arch): Remove, move most content to
700 gdbarch_selftest::operator().
701 (_initialize_selftests_foreach_arch): Remove.
702 * selftest-arch.h (register_test_foreach_arch): Add name
703 parameter.
704 (run_tests_with_arch): New declaration.
705 * utils-selftests.c (_initialize_utils_selftests): Add names
706 when registering selftests.
707 * utils.c (_initialize_utils): Likewise.
708 * unittests/array-view-selftests.c
709 (_initialize_array_view_selftests): Likewise.
710 * unittests/environ-selftests.c (_initialize_environ_selftests):
711 Likewise.
712 * unittests/function-view-selftests.c
713 (_initialize_function_view_selftests): Likewise.
714 * unittests/offset-type-selftests.c
715 (_initialize_offset_type_selftests): Likewise.
716 * unittests/optional-selftests.c
717 (_initialize_optional_selftests): Likewise.
718 * unittests/scoped_restore-selftests.c
719 (_initialize_scoped_restore_selftests): Likewise.
720 * NEWS: Document "maintenance selftest" and "maint info
721 selftests".
722
5846367a
SM
7232017-09-16 Simon Marchi <simon.marchi@ericsson.com>
724
725 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
726 scoped_restore.
727
bd77e8ff
SM
7282017-09-16 Simon Marchi <simon.marchi@ericsson.com>
729
730 * mi/mi-main.c (mi_load_progress): Make uiout variable
731 a unique_ptr.
732
26a67918
PA
7332017-09-15 Pedro Alves <palves@redhat.com>
734
735 * compile/compile-c-types.c (convert_enum, convert_int)
736 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
737
3f8a7804
SM
7382017-09-15 Simon Marchi <simon.marchi@ericsson.com>
739
740 * dwarf2read.c (copy_string): Remove.
741 (parse_macro_definition): Replace copy_string with savestring.
742
8d200706
YQ
7432017-09-15 Yao Qi <yao.qi@linaro.org>
744
745 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
746 gdb_target_obs.
747 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
748 Likewise.
749 (i[34567]86-*-linux*): Likewise.
750
d185219d
SM
7512017-09-14 Simon Marchi <simon.marchi@ericsson.com>
752
753 * dwarf2expr.h (dwarf_stack_value): Add constructor.
754 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
755 <stack>: Change type to std::vector.
756 <stack_len, stack_allocated>: Remove.
757 <grow_stack>: Remove.
758 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
759 (dwarf_expr_context::~dwarf_expr_context): Remove.
760 (dwarf_expr_context::grow_stack): Remove.
761 (dwarf_expr_context::push): Adjust.
762 (dwarf_expr_context::pop): Adjust.
763 (dwarf_expr_context::fetch): Adjust.
764 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
765 (dwarf_expr_context::stack_empty_p): Adjust.
766 (dwarf_expr_context::execute_stack_op): Adjust.
767
eccd80d6
SM
7682017-09-14 Simon Marchi <simon.marchi@ericsson.com>
769
770 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
771 return type to bool.
772 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
773
69009882
SM
7742017-09-14 Simon Marchi <simon.marchi@ericsson.com>
775
776 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
777 Change type to bool.
778 (dwarf_stack_value) <in_stack_memory>: Likewise.
779 (dwarf_expr_context) <push_address>: Change parameter type to
780 bool.
781 <fetch_in_stack_memory>: Change return type to bool.
782 <push>: Change parameter type to bool.
783 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
784 to bool.
785 (dwarf_expr_context::push_address): Likewise.
786 (dwarf_expr_context::fetch_in_stack_memory): Change return type
787 to bool.
788 (dwarf_expr_context::execute_stack_op): Adjust.
789 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
790
1e467161
SM
7912017-09-14 Simon Marchi <simon.marchi@ericsson.com>
792
793 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
794 (struct dwarf_expr_context) <n_pieces>: Remove.
795 <pieces>: Change type to std::vector.
796 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
797 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
798 pieces.
799 (dwarf_expr_context::add_piece): Adjust.
800 * dwarf2loc.c (struct piece_closure): Initialize fields.
801 <n_pieces>: Remove.
802 <pieces>: Change type to std::vector.
803 (allocate_piece_closure): Adjust, change parameter to
804 std::vector rvalue and std::move it to piece_closure.
805 (rw_pieced_value): Adjust.
806 (check_pieced_synthetic_pointer): Adjust.
807 (indirect_synthetic_pointer): Adjust.
808 (coerce_pieced_ref): Adjust.
809 (free_pieced_value_closure): Adjust. Use delete to free
810 piece_closure.
811 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
812 to allocate_piece_closure.
813 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
814
0782db84
SM
8152017-09-12 Simon Marchi <simon.marchi@ericsson.com>
816
817 * probe.h (probe_ops_cp): Remove typedef.
818 (DEF_VEC_P (probe_ops_cp)): Remove.
819 (all_probe_ops): Change type to std::vector.
820 * probe.c (info_probes_for_ops): Adjust to vector change.
821 (probe_linespec_to_ops): Likewise.
822 (all_probe_ops): Change type to std::vector.
823 (_initialize_probe): Adjust to vector change.
824 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
825 * elfread.c (elf_get_probes): Likewise.
826 * stap-probe.c (_initialize_stap_probe): Likewise.
827
1eac6bea
SM
8282017-09-12 Simon Marchi <simon.marchi@ericsson.com>
829
830 * probe.h (struct bound_probe): Define constructors.
831 * probe.c (bound_probe_s): Remove typedef.
832 (DEF_VEC_O (bound_probe_s)): Remove VEC.
833 (collect_probes): Change return type to std::vector, remove
834 cleanup.
835 (compare_probes): Return bool, change parameter type. Change
836 semantic to "less than".
837 (gen_ui_out_table_header_info): Change parameter to std::vector
838 and update.
839 (exists_probe_with_pops): Likewise.
840 (info_probes_for_ops): Update to std::vector change.
841 (enable_probes_command): Likewise.
842 (disable_probes_command): Likewise.
843
aaa63a31
SM
8442017-09-12 Simon Marchi <simon.marchi@ericsson.com>
845
846 * probe.h (struct probe_ops) <get_probes>: Change parameter from
847 vec to std::vector.
848 * probe.c (parse_probes_in_pspace): Update.
849 (find_probes_in_objfile): Update.
850 (find_probe_by_pc): Update.
851 (collect_probes): Update.
852 (probe_any_get_probes): Update.
853 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
854 return type to reference to std::vector.
855 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
856 std::vector and update.
857 (dtrace_process_dof): Likewise.
858 (dtrace_get_probes): Likewise.
859 * elfread.c (elf_get_probes): Change return type to std::vector,
860 store an std::vector in bfd_data.
861 (probe_key_free): Update to std::vector.
862 * stap-probe.c (handle_stap_probe): Change parameter to
863 std::vector and update.
864 (stap_get_probes): Likewise.
865 * symfile-debug.c (debug_sym_get_probes): Change return type to
866 std::vector and update.
867
cb85b21b
TT
8682017-09-11 Tom Tromey <tom@tromey.com>
869
870 * breakpoint.c (program_breakpoint_here_p): Update.
871 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
872 from make_show_memory_breakpoints_cleanup. Return a
873 scoped_restore_tmpl<int>.
874 (restore_show_memory_breakpoints): Remove.
875 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
876 * mem-break.c (memory_validate_breakpoint): Update.
877 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
878 (ia64_memory_remove_breakpoint): Update.
879 (ia64_breakpoint_from_pc): Update.
880 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
881 from make_show_memory_breakpoints_cleanup.
882
8fbc99ef
TT
8832017-09-11 Tom Tromey <tom@tromey.com>
884
885 * d-namespace.c (d_lookup_symbol): Use std::string.
886 (find_symbol_in_baseclass): Likewise.
887
50feb4bd
TT
8882017-09-11 Tom Tromey <tom@tromey.com>
889
890 * ctf.c (ctf_start): Use std::string.
891
c6dc63a1
TT
8922017-09-11 Tom Tromey <tom@tromey.com>
893
894 * ada-lang.c (is_known_support_routine): Update.
895 (ada_unhandled_exception_name_addr_from_raise): Update.
896 * guile/scm-frame.c (gdbscm_frame_name): Update.
897 * python/py-frame.c (frapy_name): Update.
898 (frapy_function): Update.
899 * stack.h (find_frame_funname): Update.
900 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
901 (print_frame): Update.
902
d6b9b80f
TT
9032017-09-11 Tom Tromey <tom@tromey.com>
904
905 * findcmd.c (put_bits): Take a gdb::byte_vector.
906 (parse_find_args): Return gdb::byte_vector. "args" now const.
907 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
908 cleanups.
909 (find_command): Update.
910
a9921622
TT
9112017-09-11 Tom Tromey <tom@tromey.com>
912
913 * cli/cli-script.c (class scoped_restore_hook_in): New.
914 (clear_hook_in_cleanup): Remove.
915 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
916 scoped_restore_hook_in.
917
be0d7abb
TT
9182017-09-11 Tom Tromey <tom@tromey.com>
919
920 * cli/cli-script.c (restore_interp): Remove.
921 (read_command_lines): Use scoped_restore_interp.
922 * interps.c (scoped_restore_interp::set_temp): Rename from
923 interp_set_temp.
924 * interps.h (class scoped_restore_interp): New.
925 (interp_set_temp): Remove.
926
00f675ff
TT
9272017-09-11 Tom Tromey <tom@tromey.com>
928
929 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
930 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
931 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
932 scoped_restore.
933 (mi_cmd_break_insert_1): Update.
934 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
935 scoped_restore.
936
cb791d59
TT
9372017-09-11 Tom Tromey <tom@tromey.com>
938
939 * demangle.c (demangle_command): Update.
940 * breakpoint.c (disable_command): Update.
941 (enable_command): Update.
942 (find_location_by_number): Make "number" const. Use
943 get_number_trailer.
944 * cli/cli-utils.c (extract_arg): Return std::string.
945 * probe.c (parse_probe_linespec): Update. Change types.
946 (collect_probes): Take string arguments.
947 (parse_probe_linespec): Likewise.
948 (info_probes_for_ops): Update.
949 (enable_probes_command): Update.
950 (disable_probes_command): Update.
951 * break-catch-sig.c (catch_signal_split_args): Update.
952 * mi/mi-parse.c (mi_parse): Update.
953
2039bd9f
TT
9542017-09-11 Tom Tromey <tom@tromey.com>
955
956 * language.h (language_enum): Make argument const.
957 * language.c (language_enum): Make argument const.
958
f1735a53
TT
9592017-09-11 Tom Tromey <tom@tromey.com>
960
961 * common/common-utils.h (skip_to_space): Remove macro, redeclare
962 as function.
963 (skip_to_space): Rename from skip_to_space_const.
964 * common/common-utils.c (skip_to_space): New function.
965 (skip_to_space): Rename from skip_to_space_const.
966 * cli/cli-utils.h (get_number): Rename from get_number_const.
967 (extract_arg): Rename from extract_arg_const.
968 * cli/cli-utils.c (get_number): Rename from get_number_const.
969 (extract_arg): Rename from extract_arg_const.
970 (number_or_range_parser::get_number): Use ::get_number.
971 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
972 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
973 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
974 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
975 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
976 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
977 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
978 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
979
7d221d74
TT
9802017-09-11 Tom Tromey <tom@tromey.com>
981
982 * python/python.c (do_start_initialization): Use
983 py-event-types.def to initialize types.
984 Define all object type structures.
985 * python/python-internal.h: Don't declare event initialization
986 functions.
987 * python/py-threadevent.c (thread_event_object_type): Don't
988 define.
989 * python/py-stopevent.c (stop_event_object_type): Don't define.
990 * python/py-signalevent.c (signal_event_object_type): Don't
991 declare or define.
992 * python/py-newobjfileevent.c (new_objfile_event_object_type)
993 (clear_objfiles_event_object_type): Don't declare or define.
994 * python/py-infevents.c (inferior_call_pre_event_object_type)
995 (inferior_call_post_event_object_type)
996 (register_changed_event_object_type)
997 (memory_changed_event_object_type): Don't declare or define.
998 * python/py-inferior.c (new_thread_event_object_type)
999 (new_inferior_event_object_type)
1000 (inferior_deleted_event_object_type): Don't declare or define.
1001 * python/py-exitedevent.c (exited_event_object_type): Don't
1002 declare or define.
1003 * python/py-evts.c (gdbpy_initialize_py_events): Use
1004 py-all-events.def.
1005 * python/py-events.h (thread_event_object_type): Don't declare.
1006 (events_object): Use py-all-events.def.
1007 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
1008 py-event-types.def.
1009 * python/py-event-types.def: New file.
1010 * python/py-continueevent.c (create_continue_event_object): Don't
1011 declare or define.
1012 * python/py-bpevent.c (breakpoint_event_object_type): Don't
1013 declare or define.
1014 * python/py-all-events.def: New file.
1015
35c61a1d
TT
10162017-09-11 Tom Tromey <tom@tromey.com>
1017
1018 * python/py-threadevent.c (create_thread_event_object): Return
1019 gdbpy_ref.
1020 * python/py-stopevent.h (create_stop_event_object)
1021 (create_breakpoint_event_object, create_signal_event_object):
1022 Update.
1023 * python/py-stopevent.c (create_stop_event_object): Return
1024 gdbpy_ref.
1025 (emit_stop_event): Update.
1026 * python/py-signalevent.c (create_signal_event_object): Return
1027 gdbpy_ref.
1028 * python/py-infevents.c (create_inferior_call_event_object):
1029 Update.
1030 * python/py-event.h (create_event_object)
1031 (create_thread_event_object): Update.
1032 * python/py-event.c (create_event_object): Return gdbpy_ref.
1033 * python/py-continueevent.c: Return gdbpy_ref.
1034 * python/py-bpevent.c (create_breakpoint_event_object): Return
1035 gdbpy_ref.
1036
7c96f8c1
TT
10372017-09-11 Tom Tromey <tom@tromey.com>
1038
1039 PR python/15622:
1040 * NEWS: Add entry.
1041 * python/python.c (do_start_initialization): Initialize new event
1042 types.
1043 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
1044 (gdbpy_initialize_inferior_deleted_event)
1045 (gdbpy_initialize_new_thread_event): Declare.
1046 * python/py-threadevent.c (create_thread_event_object): Add option
1047 "thread" parameter.
1048 * python/py-inferior.c (new_thread_event_object_type)
1049 (new_inferior_event_object_type)
1050 (inferior_deleted_event_object_type): Declare.
1051 (python_new_inferior, python_inferior_deleted): New functions.
1052 (add_thread_object): Emit new_thread event.
1053 (gdbpy_initialize_inferior): Attach new functions to corresponding
1054 observers.
1055 (new_thread, new_inferior, inferior_deleted): Define new event
1056 types.
1057 * python/py-evts.c (gdbpy_initialize_py_events): Add new
1058 registries.
1059 * python/py-events.h (events_object) <new_inferior,
1060 inferior_deleted, new_thread>: New fields.
1061 * python/py-event.h (create_thread_event_breakpoint): Add optional
1062 "thread" parameter.
1063
72542b8e
AB
10642017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1065
1066 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
1067 check current_ui instead.
1068 (internal_vproblem): Likewise.
1069
0d64823e
SM
10702017-09-09 Simon Marchi <simon.marchi@ericsson.com>
1071
1072 * thread.c (print_thread_info_1): Remove unnecessary calls to
1073 uiout->is_mi_like_p.
1074
eb1e02fd
TT
10752017-09-09 Tom Tromey <tom@tromey.com>
1076
1077 * namespace.h (add_using_directive): Update.
1078 * namespace.c (add_using_directive): Change type of excludes to
1079 std::vector.
1080 * dwarf2read.c (read_import_statement): Use std::vector.
1081 (read_namespace): Update.
1082 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1083
0fc21fd8
TT
10842017-09-09 Tom Tromey <tom@tromey.com>
1085
1086 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
1087
49663d05
TT
10882017-09-09 Tom Tromey <tom@tromey.com>
1089
1090 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
1091
0b868b60
TT
10922017-09-09 Tom Tromey <tom@tromey.com>
1093
1094 * stack.c (func_command): Use gdb::def_vector.
1095
c0470d48
TT
10962017-09-09 Tom Tromey <tom@tromey.com>
1097
1098 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
1099 ui_out_emit_list, ui_out_emit_tuple.
1100 (mi_cmd_var_update): Likewise.
1101
ca5909c7
TT
11022017-09-09 Tom Tromey <tom@tromey.com>
1103
1104 * mi/mi-interp.c (mi_user_selected_context_changed): Use
1105 ui_out_redirect_pop.
1106 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1107 ui_out_redirect_pop.
1108 * utils.c (do_ui_out_redirect_pop)
1109 (make_cleanup_ui_out_redirect_pop): Remove.
1110 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
1111 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
1112 * ui-out.h (ui_out_redirect_pop): New class.
1113
e6a2252a
TT
11142017-09-09 Tom Tromey <tom@tromey.com>
1115
1116 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
1117 (list_available_thread_groups, mi_cmd_list_thread_groups)
1118 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
1119 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
1120 Likewise.
1121
393702cd
TT
11222017-09-09 Tom Tromey <tom@tromey.com>
1123
1124 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1125 ui_out_emit_tuple.
1126
76f9c9cf
TT
11272017-09-09 Tom Tromey <tom@tromey.com>
1128
1129 * target.c (flash_erase_command): Use ui_out_emit_tuple.
1130 * stack.c (print_frame): Use ui_out_emit_tuple.
1131 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
1132 (info_spu_mailbox_command, info_spu_dma_command)
1133 (info_spu_proxydma_command): Likewise.
1134 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
1135 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
1136 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
1137 ui_out_emit_tuple.
1138 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
1139
dc9fe180
TT
11402017-09-09 Tom Tromey <tom@tromey.com>
1141
1142 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
1143 (class ui_out_emit_table): Update comment.
1144 * ui-out.c (do_cleanup_table_end)
1145 (make_cleanup_ui_out_table_begin_end): Remove.
1146 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
1147 (info_spu_dma_cmdlist): Likewise.
1148 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
1149 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
1150 ui_out_emit_table.
1151
f8cc3da6
TT
11522017-09-09 Tom Tromey <tom@tromey.com>
1153
1154 * thread.c (print_thread_info_1): Use ui_out_emit_table,
1155 ui_out_emit_list, gdb::optional.
1156
481695ed
JB
11572017-09-09 John Baldwin <jhb@FreeBSD.org>
1158
1159 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
1160 prototype.
1161 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
1162 prototype.
1163 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
1164 prototype.
1165 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
1166 * ada-exp.y: Remove _initialize_ada_exp prototype.
1167 * ada-lang.c: Remove _initialize_ada_language prototype.
1168 * ada-tasks.c: Remove _initialize_tasks prototype.
1169 * addrmap.c: Remove _initialize_addrmap prototype.
1170 * agent.c: Remove _initialize_agent prototype.
1171 * aix-thread.c: Remove _initialize_aix_thread prototype.
1172 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
1173 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
1174 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
1175 prototype.
1176 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
1177 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
1178 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
1179 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
1180 prototype.
1181 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
1182 prototype.
1183 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
1184 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
1185 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
1186 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
1187 prototype.
1188 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
1189 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
1190 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
1191 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
1192 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1193 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
1194 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
1195 prototype.
1196 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
1197 prototype.
1198 * annotate.c: Remove _initialize_annotate prototype.
1199 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
1200 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
1201 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
1202 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
1203 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
1204 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
1205 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
1206 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
1207 prototype.
1208 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
1209 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
1210 * auto-load.c: Remove _initialize_auto_load prototype.
1211 * auxv.c: Remove _initialize_auxv prototype.
1212 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
1213 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
1214 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
1215 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
1216 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
1217 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
1218 prototype.
1219 * break-catch-throw.c: Remove _initialize_break_catch_throw
1220 prototype.
1221 * breakpoint.c: Remove _initialize_breakpoint prototype.
1222 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
1223 * btrace.c: Remove _initialize_btrace prototype.
1224 * charset.c: Remove _initialize_charset prototype.
1225 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
1226 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
1227 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
1228 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
1229 * cli/cli-script.c: Remove _initialize_cli_script prototype.
1230 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
1231 * coffread.c: Remove _initialize_coffread prototype.
1232 * compile/compile.c: Remove _initialize_compile prototype.
1233 * complaints.c: Remove _initialize_complaints prototype.
1234 * completer.c: Remove _initialize_completer prototype.
1235 * copying.awk: Remove _initialize_copying prototype.
1236 * copying.c: Regenerate.
1237 * core-regset.c: Remove _initialize_core_regset prototype.
1238 * corefile.c: Remove _initialize_core prototype.
1239 * corelow.c: Remove _initialize_corelow prototype.
1240 * cp-abi.c: Remove _initialize_cp_abi prototype.
1241 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
1242 * cp-support.c: Remove _initialize_cp_support prototype.
1243 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
1244 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
1245 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
1246 * ctf.c: Remove _initialize_ctf prototype.
1247 * d-lang.c: Remove _initialize_d_language prototype.
1248 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
1249 prototype.
1250 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
1251 * dbxread.c: Remove _initialize_dbxread prototype.
1252 * dcache.c: Remove _initialize_dcache prototype.
1253 * demangle.c: Remove _initialize_demangler prototype.
1254 * disasm-selftests.c: Remove _initialize_disasm_selftests
1255 prototype.
1256 * disasm.c: Remove _initialize_disasm prototype.
1257 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
1258 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
1259 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
1260 prototype.
1261 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
1262 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
1263 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
1264 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
1265 * elfread.c: Remove _initialize_elfread prototype.
1266 * exec.c: Remove _initialize_exec prototype.
1267 * extension.c: Remove _initialize_extension prototype.
1268 * f-lang.c: Remove _initialize_f_language prototype.
1269 * f-valprint.c: Remove _initialize_f_valprint prototype.
1270 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
1271 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
1272 * filesystem.c: Remove _initialize_filesystem prototype.
1273 * findcmd.c: Remove _initialize_mem_search prototype.
1274 * fork-child.c: Remove _initialize_fork_child prototype.
1275 * frame-base.c: Remove _initialize_frame_base prototype.
1276 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
1277 * frame.c: Remove _initialize_frame prototype.
1278 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
1279 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
1280 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
1281 * gcore.c: Remove _initialize_gcore prototype.
1282 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
1283 * gdbarch.c: Regenerate.
1284 * gdbarch.sh: Remove _initialize_gdbarch prototype.
1285 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
1286 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
1287 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
1288 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
1289 * go-lang.c: Remove _initialize_go_language prototype.
1290 * go32-nat.c: Remove _initialize_go32_nat prototype.
1291 * guile/guile.c: Remove _initialize_guile prototype.
1292 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
1293 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
1294 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
1295 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
1296 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
1297 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
1298 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
1299 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
1300 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
1301 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
1302 prototype.
1303 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
1304 prototype.
1305 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
1306 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
1307 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
1308 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
1309 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
1310 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
1311 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
1312 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
1313 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
1314 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
1315 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
1316 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
1317 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
1318 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1319 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
1320 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
1321 prototype.
1322 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
1323 prototype.
1324 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
1325 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
1326 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
1327 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
1328 * infcall.c: Remove _initialize_infcall prototype.
1329 * infcmd.c: Remove _initialize_infcmd prototype.
1330 * inferior.c: Remove _initialize_inferiors prototype.
1331 * inflow.c: Remove _initialize_inflow prototype.
1332 * infrun.c: Remove _initialize_infrun prototype.
1333 * interps.c: Remove _initialize_interpreter prototype.
1334 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
1335 * jit.c: Remove _initialize_jit prototype.
1336 * language.c: Remove _initialize_language prototype.
1337 * linux-fork.c: Remove _initialize_linux_fork prototype.
1338 * linux-nat.c: Remove _initialize_linux_nat prototype.
1339 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
1340 * linux-thread-db.c: Remove _initialize_thread_db prototype.
1341 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
1342 * m2-lang.c: Remove _initialize_m2_language prototype.
1343 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
1344 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
1345 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
1346 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
1347 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
1348 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1349 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1350 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
1351 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
1352 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
1353 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1354 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1355 * machoread.c: Remove _initialize_machoread prototype.
1356 * macrocmd.c: Remove _initialize_macrocmd prototype.
1357 * macroscope.c: Remove _initialize_macroscope prototype.
1358 * maint.c: Remove _initialize_maint_cmds prototype.
1359 * mdebugread.c: Remove _initialize_mdebugread prototype.
1360 * memattr.c: Remove _initialize_mem prototype.
1361 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
1362 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
1363 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
1364 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
1365 * mi/mi-main.c: Remove _initialize_mi_main prototype.
1366 * microblaze-linux-tdep.c: Remove
1367 _initialize_microblaze_linux_tdep prototype.
1368 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
1369 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
1370 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
1371 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
1372 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
1373 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
1374 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
1375 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
1376 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
1377 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
1378 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
1379 prototype.
1380 * mipsread.c: Remove _initialize_mipsread prototype.
1381 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
1382 prototype.
1383 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
1384 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
1385 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
1386 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
1387 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
1388 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
1389 prototype.
1390 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
1391 * nto-procfs.c: Remove _initialize_procfs prototype.
1392 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
1393 * objc-lang.c: Remove _initialize_objc_language prototype.
1394 * objfiles.c: Remove _initialize_objfiles prototype.
1395 * observer.c: Remove observer_test_first_notification_function,
1396 observer_test_second_notification_function,
1397 observer_test_third_notification_function, and
1398 _initialize_observer prototypes.
1399 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
1400 * osabi.c: Remove _initialize_gdb_osabi prototype.
1401 * osdata.c: Remove _initialize_osdata prototype.
1402 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
1403 * parse.c: Remove _initialize_parse prototype.
1404 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
1405 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
1406 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
1407 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
1408 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
1409 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
1410 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
1411 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
1412 * printcmd.c: Remove _initialize_printcmd prototype.
1413 * probe.c: Remove _initialize_probe prototype.
1414 * proc-api.c: Remove _initialize_proc_api prototype.
1415 * proc-events.c: Remove _initialize_proc_events prototype.
1416 * proc-service.c: Remove _initialize_proc_service prototype.
1417 * procfs.c: Remove _initialize_procfs prototype.
1418 * psymtab.c: Remove _initialize_psymtab prototype.
1419 * python/python.c: Remove _initialize_python prototype.
1420 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
1421 * record-btrace.c: Remove _initialize_record_btrace prototype.
1422 * record-full.c: Remove _initialize_record_full prototype.
1423 * record.c: Remove _initialize_record prototype.
1424 * regcache.c: Remove _initialize_regcache prototype.
1425 * reggroups.c: Remove _initialize_reggroup prototype.
1426 * remote-notif.c: Remove _initialize_notif prototype.
1427 * remote-sim.c: Remove _initialize_remote_sim prototype.
1428 * remote.c: Remove _initialize_remote prototype.
1429 * reverse.c: Remove _initialize_reverse prototype.
1430 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
1431 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
1432 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
1433 prototype.
1434 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
1435 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
1436 * rust-exp.y: Remove _initialize_rust_exp prototype.
1437 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
1438 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
1439 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
1440 * score-tdep.c: Remove _initialize_score_tdep prototype.
1441 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
1442 prototype.
1443 * ser-go32.c: Remove _initialize_ser_dos prototype.
1444 * ser-mingw.c: Remove _initialize_ser_windows prototype.
1445 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
1446 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
1447 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
1448 * serial.c: Remove _initialize_serial prototype.
1449 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
1450 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
1451 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
1452 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
1453 * skip.c: Remove _initialize_step_skip prototype.
1454 * sol-thread.c: Remove _initialize_sol_thread prototype.
1455 * solib-aix.c: Remove _initialize_solib_aix prototype.
1456 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
1457 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
1458 * solib-frv.c: Remove _initialize_frv_solib prototype.
1459 * solib-spu.c: Remove _initialize_spu_solib prototype.
1460 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
1461 * solib-target.c: Remove _initialize_solib_target prototype.
1462 * solib.c: Remove _initialize_solib prototype.
1463 * source.c: Remove _initialize_source prototype.
1464 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
1465 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
1466 prototype.
1467 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
1468 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
1469 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
1470 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
1471 prototype.
1472 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
1473 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
1474 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
1475 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
1476 prototype.
1477 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
1478 prototype.
1479 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
1480 prototype.
1481 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
1482 prototype.
1483 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
1484 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
1485 prototype.
1486 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
1487 prototype.
1488 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
1489 prototype.
1490 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
1491 prototype.
1492 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
1493 prototype.
1494 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
1495 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
1496 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
1497 * stabsread.c: Remove _initialize_stabsread prototype.
1498 * stack.c: Remove _initialize_stack prototype.
1499 * stap-probe.c: Remove _initialize_stap_probe prototype.
1500 * std-regs.c: Remove _initialize_frame_reg prototype.
1501 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
1502 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
1503 * symfile.c: Remove _initialize_symfile prototype.
1504 * symmisc.c: Remove _initialize_symmisc prototype.
1505 * symtab.c: Remove _initialize_symtab prototype.
1506 * target-dcache.c: Remove _initialize_target_dcache prototype.
1507 * target-descriptions.c: Remove _initialize_target_descriptions
1508 prototype.
1509 * thread.c: Remove _initialize_thread prototype.
1510 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
1511 prototype.
1512 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
1513 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
1514 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
1515 prototype.
1516 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
1517 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
1518 * tracefile.c: Remove _initialize_tracefile prototype.
1519 * tracepoint.c: Remove _initialize_tracepoint prototype.
1520 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
1521 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
1522 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
1523 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
1524 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
1525 * tui/tui-win.c: Remove _initialize_tui_win prototype.
1526 * tui/tui.c: Remove _initialize_tui prototype.
1527 * typeprint.c: Remove _initialize_typeprint prototype.
1528 * user-regs.c: Remove _initialize_user_regs prototype.
1529 * utils.c: Remove _initialize_utils prototype.
1530 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
1531 * valarith.c: Remove _initialize_valarith prototype.
1532 * valops.c: Remove _initialize_valops prototype.
1533 * valprint.c: Remove _initialize_valprint prototype.
1534 * value.c: Remove _initialize_values prototype.
1535 * varobj.c: Remove _initialize_varobj prototype.
1536 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
1537 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
1538 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
1539 * windows-nat.c: Remove _initialize_windows_nat,
1540 _initialize_check_for_gdb_ini, and _initialize_loadable
1541 prototypes.
1542 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
1543 * xcoffread.c: Remove _initialize_xcoffread prototype.
1544 * xml-support.c: Remove _initialize_xml_support prototype.
1545 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
1546 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
1547 prototype.
1548 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
1549 prototype.
1550 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
1551
a611b5cb
KS
15522017-09-08 Keith Seitz <keiths@redhat.com>
1553
1554 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
1555 field.
1556
469412dd
CW
15572017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
1558
1559 * f-valprint.c (f_val_print): Remove check for one byte
1560 sized integers. Remove printing of character type.
1561
a5ad232b
FP
15622017-09-08 Frank Penczek <frank.penczek@intel.com>
1563 Christoph Weinmann <christoph.t.weinmann@intel.com>
1564 Bernhard Heckel <bernhard.heckel@intel.com>
1565
1566 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
1567 to maintain proper indentation when printing pointers/refs.
1568
e5014227
JB
15692017-09-07 Joel Brobecker <brobecker@adacore.com>
1570
1571 GDB 8.0.1 released.
1572
63c99141
JB
15732017-09-07 Joel Brobecker <brobecker@adacore.com>
1574
1575 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
1576
69c1e056
TT
15772017-09-05 Tom Tromey <tom@tromey.com>
1578
1579 * parse.c (funcall_chain): Now a std::vector.
1580 (start_arglist, end_arglist): Simplify.
1581 (free_funcalls): Remove.
1582 (parse_exp_in_context_1): Remove cleanup.
1583
fef704bf
TT
15842017-09-05 Tom Tromey <tom@tromey.com>
1585
1586 * go-exp.y (go_parse): Don't create a cleanup.
1587
5613c585
TT
15882017-09-05 Tom Tromey <tom@tromey.com>
1589
1590 * d-exp.y (PrimaryExpression): Use std::string.
1591 (d_parse): Don't create a cleanup.
1592
eae49211
TT
15932017-09-05 Tom Tromey <tom@tromey.com>
1594
1595 * utils.c (do_clear_parser_state): Remove.
1596 (make_cleanup_clear_parser_state): Remove.
1597 * p-exp.y (pascal_parse): Use scoped_restore.
1598 * m2-exp.y (m2_parse): Use scoped_restore.
1599 * f-exp.y (f_parse): Use scoped_restore.
1600 * d-exp.y (d_parse): Use scoped_restore.
1601 * c-exp.y (c_parse): Use scoped_restore.
1602 * ada-exp.y (ada_parse): Use scoped_restore.
1603 * utils.h (make_cleanup_clear_parser_state): Remove.
1604
73b9be8b
KS
16052017-09-06 Keith Seitz <keiths@redhat.com>
1606
1607 * dwarf2read.c (dw2_linkage_name_attr): New function.
1608 (dw2_linkage_name): New function.
1609 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
1610 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
1611 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
1612
a102602b
KR
16132017-09-06 Kamil Rytarowski <n54@gmx.com>
1614
1615 * config/djgpp/djconfig.sh: Correct shell portability issue.
1616
28ad437d
KR
16172017-09-06 Kamil Rytarowski <n54@gmx.com>
1618
1619 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
1620
351787dd
JB
16212017-09-06 John Baldwin <jhb@FreeBSD.org>
1622
1623 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
1624 * NEWS: Mention new FreeBSD/mips native configuration.
1625 * configure.host: Add aarch64*-*-freebsd*.
1626 * configure.nat: Likewise.
1627 * aarch64-fbsd-nat.c: New file.
1628
c0f84956
JB
16292017-09-06 John Baldwin <jhb@FreeBSD.org>
1630
1631 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
1632 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
1633 * NEWS: Mention new FreeBSD/aarch64 target.
1634 * configure.tgt: Add aarch64*-*-freebsd*.
1635 * aarch64-fbsd-tdep.c: New file.
1636 * aarch64-fbsd-tdep.h: New file.
1637
7610297a
KR
16382017-09-06 Kamil Rytarowski <n54@gmx.com>
1639
1640 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
1641
fbd1b771
JK
16422017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1643
1644 * parse.c (find_minsym_type_and_address): Don't relocate addresses
1645 of TLS symbols.
1646
5ca79eae
PW
16472017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1648
1649 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
1650 call.
1651
bf93d7ba
SM
16522017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1653
1654 * infrun.c (follow_exec): Call add_thread after
1655 target_find_description.
1656
1bb7c059
SM
16572017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1658
1659 * infrun.c (handle_inferior_event_1): When exec'ing, read
1660 stop_pc after follow_exec.
1661
fc809827
SM
16622017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1663
1664 * remote.c (process_g_packet): Update error message.
1665
d2fcdd85
YQ
16662017-09-05 Yao Qi <yao.qi@linaro.org>
1667
1668 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
1669 targets.
1670
e69570ee
PA
16712017-09-05 Pedro Alves <palves@redhat.com>
1672
1673 * eval.c (eval_call, evaluate_funcall): New functions, factored
1674 out from ...
1675 (evaluate_subexp_standard): ... this.
1676
22916b07
YQ
16772017-09-05 Yao Qi <yao.qi@linaro.org>
1678
1679 * amd64-tdep.c (amd64_target_description): Create target
1680 descriptions.
1681 (_initialize_amd64_tdep): Don't call functions
1682 initialize_tdesc_amd64_*. Add self tests.
1683 * arch/amd64.c (amd64_create_target_description): Add parameter
1684 is_linux. Call set_tdesc_osabi if is_linux is true.
1685 * arch/amd64.h (amd64_create_target_description): Update the
1686 declaration.
1687 * arch/i386.c (i386_create_target_description): Add parameter
1688 is_linux. Call set_tdesc_osabi if is_linux is true.
1689 * arch/i386.h (i386_create_target_description): Update
1690 declaration.
1691 * configure.tgt: Add i386.o to gdb_target_obs.
1692 * features/Makefile (XMLTOC): Remove i386/*.xml.
1693 * features/i386/amd64-avx-avx512.c: Remove.
1694 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
1695 * features/i386/amd64-avx-mpx.c: Remove.
1696 * features/i386/amd64-avx.c: Remove.
1697 * features/i386/amd64-mpx.c: Remove.
1698 * features/i386/amd64.c: Remove.
1699 * features/i386/i386-avx-avx512.c: Remove.
1700 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
1701 * features/i386/i386-avx-mpx.c: Remove.
1702 * features/i386/i386-avx.c: Remove.
1703 * features/i386/i386-mmx.c: Remove.
1704 * features/i386/i386-mpx.c: Remove.
1705 * features/i386/i386.c: Remove.
1706 * i386-tdep.c: Don't include features/i386/i386*.c., include
1707 target-descriptions.h and arch/i386.h.
1708 (i386_target_description): Create target descriptions.
1709 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
1710 functions. Do self tests.
1711
0854b7b1
YQ
17122017-09-05 Yao Qi <yao.qi@linaro.org>
1713
1714 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
1715 * features/i386/amd64-avx-avx512-linux.c: Removed.
1716 * features/i386/amd64-avx-linux.c: Removed.
1717 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
1718 * features/i386/amd64-avx-mpx-linux.c: Removed.
1719 * features/i386/amd64-linux.c: Removed.
1720 * features/i386/amd64-mpx-linux.c: Removed.
1721 * features/i386/x32-avx-avx512-linux.c: Removed.
1722 * features/i386/x32-avx-linux.c: Removed.
1723 * features/i386/x32-linux.c: Removed.
1724
b4570e4b
YQ
17252017-09-05 Yao Qi <yao.qi@linaro.org>
1726
1727 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
1728 features/i386/*.c.
1729 (amd64_linux_read_description): Call
1730 amd64_create_target_description.
1731 * arch/amd64.c: New file.
1732 * arch/amd64.h: New file.
1733 * configure.tgt (x86_64-*-linux*): Append amd64.o.
1734 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
1735
6c73f67f
YQ
17362017-09-05 Yao Qi <yao.qi@linaro.org>
1737
1738 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
1739 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
1740 (amd64_linux_read_description): Create target descriptions.
1741 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
1742 functions. Add unit tests.
1743 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
1744 x32-core.xml.
1745 * features/i386/64bit-avx.c: Generated.
1746 * features/i386/64bit-avx512.c: Generated.
1747 * features/i386/64bit-core.c: Generated.
1748 * features/i386/64bit-linux.c: Generated.
1749 * features/i386/64bit-mpx.c: Generated.
1750 * features/i386/64bit-pkeys.c: Generated.
1751 * features/i386/64bit-segments.c: Generated.
1752 * features/i386/64bit-sse.c: Generated.
1753 * features/i386/x32-core.c: Generated.
1754 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
1755 c files for amd64-linux and x32-linux.
1756
9d3d478b
YQ
17572017-09-05 Yao Qi <yao.qi@linaro.org>
1758
1759 * amd64-linux-tdep.c (amd64_linux_read_description): New
1760 function.
1761 (amd64_linux_core_read_description): Call
1762 amd64_linux_read_description.
1763 (amd64_linux_init_abi): Likewise.
1764 (amd64_x32_linux_init_abi): Likewise.
1765 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
1766 * x86-linux-nat.c (x86_linux_read_description): Call
1767 amd64_linux_read_description.
1768
b9f1d50f
YQ
17692017-09-05 Yao Qi <yao.qi@linaro.org>
1770
1771 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
1772 comments.
1773
188c9e6d
YQ
17742017-09-05 Yao Qi <yao.qi@linaro.org>
1775
1776 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
1777 * features/i386/i386-avx-avx512-linux.c: Remove.
1778 * features/i386/i386-avx-linux.c: Remove.
1779 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
1780 * features/i386/i386-avx-mpx-linux.c: Remove.
1781 * features/i386/i386-linux.c: Remove.
1782 * features/i386/i386-mmx-linux.c: Remove.
1783 * features/i386/i386-mpx-linux.c: Remove.
1784
5f035c07
YQ
17852017-09-05 Yao Qi <yao.qi@linaro.org>
1786
1787 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
1788 (SFILES): Add arch/i386.c.
1789 (HFILES_NO_SRCDIR): Add arch/i386.h.
1790 * arch/i386.c: New file.
1791 * arch/i386.h: New file.
1792 * arch/tdesc.h (allocate_target_description): Declare.
1793 (set_tdesc_architecture): Declare.
1794 (set_tdesc_osabi): Declare.
1795 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
1796 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
1797 include arch/i386.h.
1798 (i386_linux_read_description): Remove code and call
1799 i386_create_target_description.
1800 (set_tdesc_architecture): New function.
1801 (set_tdesc_osabi): New function.
1802 * target-descriptions.h (allocate_target_description): Remove.
1803
0abe8a89
YQ
18042017-09-05 Yao Qi <yao.qi@linaro.org>
1805
1806 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
1807 * target-descriptions.c (tdesc_create_feature): Likewise, and
1808 adjust code.
1809 * features/i386/32bit-avx.c: Re-generated.
1810 * features/i386/32bit-avx512.c: Re-generated.
1811 * features/i386/32bit-core.c: Re-generated.
1812 * features/i386/32bit-linux.c: Re-generated.
1813 * features/i386/32bit-mpx.c: Re-generated.
1814 * features/i386/32bit-pkeys.c: Re-generated.
1815 * features/i386/32bit-sse.c: Re-generated.
1816
0a188386
YQ
18172017-09-05 Yao Qi <yao.qi@linaro.org>
1818
1819 * regformats/regdef.h (struct reg): Override operator == and !=.
1820
f49ff000
YQ
18212017-09-05 Yao Qi <yao.qi@linaro.org>
1822
1823 * arch/tdesc.h: New file.
1824 * regformats/regdat.sh: Generate code using tdesc_create_reg.
1825 * target-descriptions.c: Update comments.
1826 * target-descriptions.h: Include "arch/tdesc.h". Remove the
1827 declarations.
1828 * features/i386/32bit-avx.c: Re-generated.
1829 * features/i386/32bit-avx512.c: Re-generated.
1830 * features/i386/32bit-core.c: Re-generated.
1831 * features/i386/32bit-linux.c: Re-generated.
1832 * features/i386/32bit-mpx.c: Re-generated.
1833 * features/i386/32bit-pkeys.c: Re-generated.
1834 * features/i386/32bit-sse.c: Re-generated.
1835
f7000548
YQ
18362017-09-05 Yao Qi <yao.qi@linaro.org>
1837
1838 * regformats/regdat.sh: Update generated code.
1839
c9a5e2a5
YQ
18402017-09-05 Yao Qi <yao.qi@linaro.org>
1841
1842 * regformats/regdat.sh: Adjust code order.
1843
d6b687ac
SM
18442017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1845
1846 * expprint.c (dump_subexp_body_standard): Use constant format
1847 string in fprintf_filtered call.
1848
a379bfd0
JB
18492017-09-04 John Baldwin <jhb@FreeBSD.org>
1850
1851 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
1852 NetBSD/i386.
1853 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
1854
f7efc967
JB
18552017-09-04 John Baldwin <jhb@FreeBSD.org>
1856
1857 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
1858
c49fbc6c
JB
18592017-09-04 John Baldwin <jhb@FreeBSD.org>
1860
1861 * bsd-kvm.o: Define _KMEMUSER.
1862 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
1863 * configure: Regenerate.
1864
26562e73
JB
18652017-09-04 John Baldwin <jhb@FreeBSD.org>
1866
1867 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
1868 * i386-fbsd-nat.c: Likewise.
1869
31cf1487
JB
18702017-09-04 John Baldwin <jhb@FreeBSD.org>
1871
1872 * unittests/array-view-selftests.c: Add include of <array>.
1873
5b9f8a7c
JB
18742017-09-04 John Baldwin <jhb@FreeBSD.org>
1875
1876 * spu-tdep.c (flush_ea_cache): Add missing argument to
1877 call_function_by_hand.
1878
d69cf9b2
PA
18792017-09-04 Pedro Alves <palves@redhat.com>
1880
1881 * NEWS (Safer support for debugging with no debug info): New.
1882
3693fdb3
PA
18832017-09-04 Pedro Alves <palves@redhat.com>
1884
1885 * c-exp.y (function_method, function_method_void): Add current
1886 instance flags to TYPE_INSTANCE.
1887 * dwarf2read.c (check_modifier): New.
1888 (compute_delayed_physnames): Assert that only C++ adds delayed
1889 physnames. Mark fn_fields as const/volatile depending on
1890 physname.
1891 * eval.c (make_params): New type_instance_flags parameter. Use
1892 it as the new type's instance flags.
1893 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
1894 flags element and pass it to make_params.
1895 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
1896 instance flags element.
1897 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
1898 * gdbtypes.h: Include "enum-flags.h".
1899 (type_instance_flags): New enum-flags type.
1900 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
1901 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
1902 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
1903 (follow_type_instance_flags): New function.
1904 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
1905 * parser-defs.h (follow_type_instance_flags): Declare.
1906 * valops.c (value_struct_elt_for_reference): const/volatile must
1907 match too.
1908
e68cb8e0
PA
19092017-09-04 Pedro Alves <palves@redhat.com>
1910
1911 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
1912 function/method scopes; lookup the nested name as a function local
1913 static variable.
1914
858be34c
PA
19152017-09-04 Pedro Alves <palves@redhat.com>
1916
1917 (%type <voidval>): Add function_method.
1918 * c-exp.y (exp): New production for calls with no arguments.
1919 (function_method, function_method_void_or_typelist): New
1920 productions.
1921 (exp): New production for "method()::static_var".
1922 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
1923 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1924 Handle OP_FUNC_STATIC_VAR.
1925 * parse.c (operator_length_standard):
1926 Handle OP_FUNC_STATIC_VAR.
1927
dd5901a6
PA
19282017-09-04 Pedro Alves <palves@redhat.com>
1929
1930 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
1931 handling.
1932 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1933 Ditto.
1934 * parse.c (operator_length_standard, operator_check_standard):
1935 Ditto.
1936 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
1937
46a4882b
PA
19382017-09-04 Pedro Alves <palves@redhat.com>
1939
1940 * ax-gdb.c: Include "typeprint.h".
1941 (gen_expr_for_cast): New function.
1942 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
1943 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
1944 type is unknown.
1945 * dwarf2read.c (new_symbol_full): Fallback to int instead of
1946 nodebug_data_symbol.
1947 * eval.c: Include "typeprint.h".
1948 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
1949 Error out if symbol has unknown type.
1950 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
1951 evaluate_subexp_for_cast.
1952 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
1953 OP_VAR_MSYM_VALUE.
1954 (evaluate_subexp_for_cast): New function.
1955 * gdbtypes.c (init_nodebug_var_type): New function.
1956 (objfile_type): Use it to initialize types of variables with no
1957 debug info.
1958 * typeprint.c (error_unknown_type): New.
1959 * typeprint.h (error_unknown_type): New declaration.
1960 * compile/compile-c-types.c (convert_type_basic): Handle
1961 TYPE_CODE_ERROR; warn and fallback to int for variables with
1962 unknown type.
1963
fe13dfec
PA
19642017-09-04 Pedro Alves <palves@redhat.com>
1965
1966 * eval.c (evaluate_var_value): New function, factored out from ...
1967 (evaluate_subexp_standard): ... here.
1968
d008ee21
PA
19692017-09-04 Pedro Alves <palves@redhat.com>
1970
1971 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
1972 Remove useless assignments to 'op'.
1973
827d0c51
PA
19742017-09-04 Pedro Alves <palves@redhat.com>
1975
1976 * eval.c (eval_skip_value): New function.
1977 (evaluate_subexp_standard): Use it.
1978
2c5a2be1
PA
19792017-09-04 Pedro Alves <palves@redhat.com>
1980
1981 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
1982 function name from symbol/minsym and pass it to
1983 error_call_unknown_return_type.
1984
74ea4be4
PA
19852017-09-04 Pedro Alves <palves@redhat.com>
1986
1987 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
1988 * ax-gdb.c (gen_msym_var_ref): New function.
1989 (gen_expr): Handle OP_VAR_MSYM_VALUE.
1990 * eval.c (evaluate_var_msym_value): New function.
1991 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
1992 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
1993 to call_function_by_hand.
1994 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1995 Handle OP_VAR_MSYM_VALUE.
1996 (union exp_element) <msymbol>: New field.
1997 * minsyms.h (struct type): Forward declare.
1998 (find_minsym_type_and_address): Declare.
1999 * parse.c (write_exp_elt_msym): New function.
2000 (write_exp_msymbol): Delete, refactored as ...
2001 (find_minsym_type_and_address): ... this new function.
2002 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
2003 (operator_length_standard, operator_check_standard): Handle
2004 OP_VAR_MSYM_VALUE.
2005 * std-operator.def (OP_VAR_MSYM_VALUE): New.
2006
7022349d
PA
20072017-09-04 Pedro Alves <palves@redhat.com>
2008
2009 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
2010 TYPE_GNU_IFUNC specially here. Throw error if return type is
2011 unknown.
2012 * ada-typeprint.c (print_func_type): Handle functions with unknown
2013 return type.
2014 * c-typeprint.c (c_type_print_base): Handle functions and methods
2015 with unknown return type.
2016 * compile/compile-c-symbols.c (convert_symbol_bmsym)
2017 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
2018 * compile/compile-c-types.c: Include "objfiles.h".
2019 (convert_func): For functions with unknown return type, warn and
2020 default to int.
2021 * compile/compile-object-run.c (compile_object_run): Adjust call
2022 to call_function_by_hand_dummy.
2023 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
2024 call_function_by_hand.
2025 * eval.c (evaluate_subexp_standard): Adjust calls to
2026 call_function_by_hand. Handle functions and methods with unknown
2027 return type. Pass expect_type to call_function_by_hand.
2028 * f-typeprint.c (f_type_print_base): Handle functions with unknown
2029 return type.
2030 * gcore.c (call_target_sbrk): Adjust call to
2031 call_function_by_hand.
2032 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
2033 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
2034 an integer address type instead of nodebug.
2035 * guile/scm-value.c (gdbscm_value_call): Adjust call to
2036 call_function_by_hand.
2037 * infcall.c (error_call_unknown_return_type): New function.
2038 (call_function_by_hand): New "default_return_type" parameter.
2039 Pass it down.
2040 (call_function_by_hand_dummy): New "default_return_type"
2041 parameter. Use it instead of defaulting to int. If there's no
2042 default and the return type is unknown, throw an error. If
2043 there's a default return type, and the called function has no
2044 debug info, then assume the function is prototyped.
2045 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
2046 New "default_return_type" parameter.
2047 (error_call_unknown_return_type): New declaration.
2048 * linux-fork.c (call_lseek): Cast return type of lseek.
2049 (inferior_call_waitpid, checkpoint_command): Adjust calls to
2050 call_function_by_hand.
2051 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
2052 calls to call_function_by_hand.
2053 * m2-typeprint.c (m2_procedure): Handle functions with unknown
2054 return type.
2055 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2056 (value_nsstring, print_object_command): Adjust calls to
2057 call_function_by_hand.
2058 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
2059 functions with unknown return type.
2060 (pascal_type_print_func_varspec_suffix): New function.
2061 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
2062 TYPE_CODE_METHOD>: Use it.
2063 * python/py-value.c (valpy_call): Adjust call to
2064 call_function_by_hand.
2065 * rust-lang.c (rust_evaluate_funcall): Adjust call to
2066 call_function_by_hand.
2067 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
2068 call_function_by_hand.
2069 * valops.c (value_allocate_space_in_inferior): Adjust call to
2070 call_function_by_hand.
2071 * typeprint.c (type_print_unknown_return_type): New function.
2072 * typeprint.h (type_print_unknown_return_type): New declaration.
2073
54990598
PA
20742017-09-04 Pedro Alves <palves@redhat.com>
2075
2076 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
2077 types with more than one parameter as prototyped.
2078
9a24775b
PA
20792017-09-04 Pedro Alves <palves@redhat.com>
2080
2081 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
2082 (disassemble_command): Use gdb_disassembly_flags instead of bare
2083 int.
2084 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
2085 (dump_insns, do_mixed_source_and_assembly_deprecated)
2086 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
2087 Use gdb_disassembly_flags instead of bare int.
2088 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
2089 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
2090 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
2091 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
2092 (enum gdb_disassembly_flag): ... values of this new enumeration.
2093 (gdb_disassembly_flags): Define.
2094 (gdb_disassembly)
2095 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
2096 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
2097 gdb_disassembly_flags instead of bare int.
2098 * record-btrace.c (btrace_insn_history)
2099 (record_btrace_insn_history, record_btrace_insn_history_range)
2100 (record_btrace_insn_history_from): Use gdb_disassembly_flags
2101 instead of bare int.
2102 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
2103 Use gdb_disassembly_flags instead of bare int.
2104 * target-debug.h (target_debug_print_gdb_disassembly_flags):
2105 Define.
2106 * target-delegates.c: Regenerate.
2107 * target.c (target_insn_history, target_insn_history_from)
2108 (target_insn_history_range): Use gdb_disassembly_flags instead of
2109 bare int.
2110 * target.h: Include "disasm.h".
2111 (struct target_ops) <to_insn_history, to_insn_history_from,
2112 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
2113 int.
2114 (target_insn_history, target_insn_history_from)
2115 (target_insn_history_range): Use gdb_disassembly_flags instead of
2116 bare int.
2117
80a65e9b
SM
21182017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2119
2120 * cli/cli-script.c (build_command_line): For if/while commands,
2121 check whether args is empty.
2122
6b66338c
SM
21232017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2124
2125 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
2126 (enum command_control_type): Likewise.
2127 (struct command_line): Likewise.
2128 (free_command_lines): Likewise.
2129 (struct command_lines_deleter): Likewise.
2130 (command_line_up): Likewise.
2131 (read_command_lines): Likewise.
2132 (read_command_lines_1): Likewise.
2133 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
2134 (enum command_control_type): Likewise.
2135 (struct command_line): Likewise.
2136 (free_command_lines): Likewise.
2137 (struct command_lines_deleter): Likewise.
2138 (command_line_up): Likewise.
2139 (read_command_lines): Likewise.
2140 (read_command_lines_1): Likewise.
2141 * breakpoint.h: Include cli/cli-script.h.
2142 * extension-priv.h: Likewise.
2143 * gdbcmd.h: Likewise.
2144
51abb421
PA
21452017-09-04 Pedro Alves <palves@redhat.com>
2146
2147 * ada-lang.c (is_known_support_routine): Move sal declaration to
2148 where it is initialized.
2149 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
2150 (parse_breakpoint_sals, decode_static_tracepoint_spec)
2151 (clear_command, update_static_tracepoint): Remove init_sal
2152 references. Move declarations closer to initializations.
2153 * cli/cli-cmds.c (list_command): Move sal declarations closer to
2154 initializations.
2155 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
2156 references. Move sal declarations closer to initializations.
2157 * frame.c (find_frame_sal): Return a symtab_and_line via function
2158 return instead of output parameter. Remove init_sal references.
2159 * frame.h (find_frame_sal): Return a symtab_and_line via function
2160 return instead of output parameter.
2161 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
2162 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
2163 instead of memset.
2164 (gdbscm_find_pc_line): Remove init_sal reference.
2165 * infcall.c (call_function_by_hand_dummy): Remove init_sal
2166 references. Move declarations closer to initializations.
2167 * infcmd.c (set_step_frame): Update. Move declarations closer to
2168 initializations.
2169 (finish_backward): Remove init_sal references. Move declarations
2170 closer to initializations.
2171 * infrun.c (process_event_stop_test, handle_step_into_function)
2172 (insert_hp_step_resume_breakpoint_at_frame)
2173 (insert_step_resume_breakpoint_at_caller): Likewise.
2174 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
2175 (symbol_to_sal): Likewise.
2176 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
2177 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
2178 to its initialization.
2179 * reverse.c (save_bookmark_command): Use new/delete. Remove
2180 init_sal references. Move declarations closer to initializations.
2181 * source.c (get_current_source_symtab_and_line): Remove brace
2182 initialization.
2183 (set_current_source_symtab_and_line): Now takes the sal by const
2184 reference. Remove brace initialization.
2185 (line_info): Remove init_sal reference.
2186 * source.h (set_current_source_symtab_and_line): Now takes a
2187 symtab_and_line via const reference.
2188 * stack.c (set_current_sal_from_frame): Adjust.
2189 (print_frame_info): Adjust.
2190 (get_last_displayed_sal): Return the sal via function return
2191 instead of via output parameter. Simplify.
2192 (frame_info): Adjust.
2193 * stack.h (get_last_displayed_sal): Return the sal via function
2194 return instead of via output parameter.
2195 * symtab.c (init_sal): Delete.
2196 (find_pc_sect_line): Remove init_sal references. Move
2197 declarations closer to initializations.
2198 (find_function_start_sal): Remove init_sal references. Move
2199 declarations closer to initializations.
2200 * symtab.h (struct symtab_and_line): In-class initialize all
2201 fields.
2202 * tracepoint.c (set_traceframe_context)
2203 (print_one_static_tracepoint_marker): Remove init_sal references.
2204 Move declarations closer to initializations.
2205 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
2206 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
2207 declarations closer to initializations.
2208 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
2209 init_sal references. Adjust.
2210
6c5b2ebe
PA
22112017-09-04 Pedro Alves <palves@redhat.com>
2212
2213 * ax-gdb.c (agent_command_1): Use range-for.
2214 * break-catch-throw.c (re_set_exception_catchpoint): Update.
2215 * breakpoint.c: Include "common/array-view.h".
2216 (init_breakpoint_sal, create_breakpoint_sal): Change sals
2217 parameter from struct symtabs_and_lines to
2218 array_view<symtab_and_line>. Adjust. Use range-for. Update.
2219 (breakpoint_sals_to_pc): Change sals parameter from struct
2220 symtabs_and_lines to std::vector reference.
2221 (check_fast_tracepoint_sals): Change sals parameter from struct
2222 symtabs_and_lines to std::array_view. Use range-for.
2223 (decode_static_tracepoint_spec): Return a std::vector instead of
2224 symtabs_and_lines. Update.
2225 (create_breakpoint): Update.
2226 (break_range_command, until_break_command, clear_command): Update.
2227 (base_breakpoint_decode_location, bkpt_decode_location)
2228 (bkpt_probe_create_sals_from_location)
2229 (bkpt_probe_decode_location, tracepoint_decode_location)
2230 (tracepoint_probe_decode_location)
2231 (strace_marker_create_sals_from_location): Return a std::vector
2232 instead of symtabs_and_lines.
2233 (strace_marker_create_breakpoints_sal): Update.
2234 (strace_marker_decode_location): Return a std::vector instead of
2235 symtabs_and_lines. Update.
2236 (update_breakpoint_locations): Change struct symtabs_and_lines
2237 parameters to gdb::array_view. Adjust.
2238 (location_to_sals): Return a std::vector instead of
2239 symtabs_and_lines. Update.
2240 (breakpoint_re_set_default): Use std::vector instead of struct
2241 symtabs_and_lines.
2242 (decode_location_default): Return a std::vector instead of
2243 symtabs_and_lines. Update.
2244 * breakpoint.h: Include "common/array-view.h".
2245 (struct breakpoint_ops) <decode_location>: Now returns a
2246 std::vector instead of returning a symtabs_and_lines via output
2247 parameter.
2248 (update_breakpoint_locations): Change sals parameters to use
2249 gdb::array_view.
2250 * cli/cli-cmds.c (edit_command, list_command): Update to use
2251 std::vector and gdb::array_view.
2252 (ambiguous_line_spec): Adjust to use gdb::array_view and
2253 range-for.
2254 (compare_symtabs): Rename to ...
2255 (cmp_symtabs): ... this. Change parameters to symtab_and_line
2256 const reference and adjust.
2257 (filter_sals): Rewrite using std::vector and standard algorithms.
2258 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
2259 (jump_command): Update to use std::vector.
2260 * linespec.c (struct linespec_state) <canonical_names>: Update
2261 comment.
2262 (add_sal_to_sals_basic): Delete.
2263 (add_sal_to_sals, filter_results, convert_results_to_lsals)
2264 (decode_line_2, create_sals_line_offset)
2265 (convert_address_location_to_sals, convert_linespec_to_sals)
2266 (convert_explicit_location_to_sals, parse_linespec)
2267 (event_location_to_sals, decode_line_full, decode_line_1)
2268 (decode_line_with_current_source)
2269 (decode_line_with_last_displayed, decode_objc)
2270 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
2271 (linespec_result::~linespec_result): Adjust to use std::vector
2272 instead of symtabs_and_lines.
2273 * linespec.h (linespec_sals::sals): Now a std::vector.
2274 (struct linespec_result): Use std::vector, bool, and in-class
2275 initialization.
2276 (decode_line_1, decode_line_with_current_source)
2277 (decode_line_with_last_displayed): Return std::vector.
2278 * macrocmd.c (info_macros_command): Use std::vector.
2279 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
2280 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
2281 std::vector.
2282 * probe.h (parse_probes): Return a std::vector.
2283 * python/python.c (gdbpy_decode_line): Use std::vector and
2284 gdb::array_view.
2285 * source.c (select_source_symtab, line_info): Use std::vector.
2286 * stack.c (func_command): Use std::vector.
2287 * symtab.h (struct symtabs_and_lines): Delete.
2288 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
2289
7c44b49c
PA
22902017-09-04 Pedro Alves <palves@redhat.com>
2291
2292 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2293 unittests/array-view-selftests.c.
2294 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
2295 * common/array-view.h: New file.
2296 * unittests/array-view-selftests.c: New file.
2297
e439fa14
PA
22982017-09-04 Pedro Alves <palves@redhat.com>
2299
2300 * cli/cli-cmds.c (edit_command): Pass message to
2301 ambiguous_line_spec.
2302 (list_command): Pass message to ambiguous_line_spec. Say
2303 "first"/"last" instead of "start" and "end" to be consistent with
2304 the manual.
2305 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
2306 them to print formatted message.
2307
7525b645
PA
23082017-09-04 Pedro Alves <palves@redhat.com>
2309
2310 * btrace.c (ftrace_add_pt): Pass btrace_insn to
2311 ftrace_update_insns by reference instead of pointer.
2312
badc0020
YQ
23132017-09-04 Yao Qi <yao.qi@linaro.org>
2314
2315 * i386-go32-tdep.c: Include x86-xstate.h.
2316 (i386_go32_init_abi): Call i386_target_description.
2317 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
2318 if xcr0 is X86_XSTATE_X87_MASK.
2319 * i386-tdep.h (tdesc_i386): Remove the declaration.
2320 (tdesc_i386_mmx): Likewise.
2321
d78bdb54
YQ
23222017-09-04 Yao Qi <yao.qi@linaro.org>
2323
2324 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
2325 X86_XSTATE_SSE_MASK instead of 0.
2326
ca1fa5ee
YQ
23272017-09-04 Yao Qi <yao.qi@linaro.org>
2328
2329 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
2330 i386_target_description.
2331 * i386-fbsd-nat.c (i386fbsd_read_description): Call
2332 i386_target_description.
2333 * i386-tdep.c (i386_gdbarch_init): Likewise.
2334
2434b019
YQ
23352017-09-04 Yao Qi <yao.qi@linaro.org>
2336
2337 * amd64-darwin-tdep.c: Include "x86-xstate.h".
2338 (x86_darwin_init_abi_64): Call amd64_target_description.
2339 * amd64-dicos-tdep.c: Likewise.
2340 * amd64-fbsd-nat.c: Likewise.
2341 * amd64-fbsd-tdep.c: Likewise.
2342 * amd64-nbsd-tdep.c: Likewise.
2343 * amd64-obsd-tdep.c: Likewise.
2344 * amd64-sol2-tdep.c: Likewise.
2345 * amd64-windows-tdep.c: Likewise.
2346 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
2347
0860c437
SM
23482017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2349
2350 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
2351 (btrace_function) <insn>: Change type to use std::vector.
2352 * btrace.c (ftrace_debug, ftrace_call_num_insn,
2353 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
2354 ftrace_update_insns, ftrace_compute_global_level_offset,
2355 btrace_stitch_bts, btrace_clear, btrace_insn_get,
2356 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
2357 change to std::vector.
2358 (ftrace_update_insns): Adjust to change to std::vector, change
2359 type of INSN parameter.
2360 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
2361 * record-btrace.c (btrace_call_history_insn_range,
2362 btrace_compute_src_line_range,
2363 record_btrace_frame_prev_register): Adjust to change to
2364 std::vector.
2365 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
2366 to change to std::vector.
2367
0638b7f9
TT
23682017-09-03 Tom Tromey <tom@tromey.com>
2369
2370 * corefile.c (reopen_exec_file): Use std::string.
2371
8f84fb0e
TT
23722017-09-03 Tom Tromey <tom@tromey.com>
2373
2374 * compile/compile.c (compile_register_name_mangled): Return
2375 std::string.
2376 * compile/compile-loc2c.c (pushf_register_address): Update.
2377 (pushf_register): Update.
2378 * compile/compile-c-types.c (convert_array): Update.
2379 * compile/compile-c-symbols.c (generate_vla_size): Update.
2380 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
2381 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
2382 (convert_one_symbol): Update.
2383 (generate_c_for_for_one_variable): Update.
2384 * compile/compile-c-support.c (c_get_range_decl_name): Return a
2385 std::string.
2386 (generate_register_struct): Update.
2387 * compile/compile-internal.h (c_get_range_decl_name): Return a
2388 std::string.
2389 (compile_register_name_mangled): Return std::string.
2390
18e9961f
TT
23912017-09-03 Tom Tromey <tom@tromey.com>
2392
2393 * utils.c (perror_string): Return a std::string.
2394 (throw_perror_with_name, perror_warning_with_name): Update.
2395
45343786
TT
23962017-09-03 Tom Tromey <tom@tromey.com>
2397
2398 * demangle.c (demangle_command): Use std::string,
2399 unique_xmalloc_ptr.
2400
b57af503
TT
24012017-09-03 Tom Tromey <tom@tromey.com>
2402
2403 * cli/cli-setshow.c (do_set_command): Use std::string.
2404
6eecf35f
TT
24052017-09-03 Tom Tromey <tom@tromey.com>
2406
2407 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
2408
56496dd4
TT
24092017-09-03 Tom Tromey <tom@tromey.com>
2410
2411 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
2412
e91a1fa7
TT
24132017-09-03 Tom Tromey <tom@tromey.com>
2414
2415 * mi/mi-cmd-env.c (env_execute_cli_command): Use
2416 gdb::unique_xmalloc_ptr.
2417
7ffd83d7
TT
24182017-09-03 Tom Tromey <tom@tromey.com>
2419
2420 * thread.c (print_thread_info_1): Use string_printf.
2421 (thread_apply_command, thread_apply_all_command): Use
2422 std::string.
2423
1ccbe998
TT
24242017-09-03 Tom Tromey <tom@tromey.com>
2425
2426 * valprint.c (val_print_string): Update.
2427 * gdbcore.h (memory_error_message): Return std::string.
2428 * corefile.c (memory_error_message): Return std::string.
2429 (memory_error): Update.
2430 * breakpoint.c (insert_bp_location): Update.
2431
23fdd69e
SM
24322017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2433
2434 * target/waitstatus.h (target_waitstatus_to_string): Change
2435 return type to std::string.
2436 * target/waitstatus.c (target_waitstatus_to_string): Return
2437 std::string.
2438 * target.h (target_waitstatus_to_string): Remove declaration.
2439 * infrun.c (resume, clear_proceed_status_thread,
2440 print_target_wait_results, do_target_wait, save_waitstatus,
2441 stop_all_threads): Adjust.
2442 * record-btrace.c (record_btrace_wait): Adjust.
2443 * target-debug.h
2444 (target_debug_print_struct_target_waitstatus_p): Adjust.
2445
5c811d30
JK
24462017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2447
2448 PR gdb/22046
2449 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
2450 detection.
2451
0a2dde4a
SDJ
24522017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2453
2454 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
2455 for setting/unsetting environment variables on the remote target.
2456 (New remote packets): Add entries for QEnvironmentHexEncoded,
2457 QEnvironmentUnset and QEnvironmentReset.
2458 * common/environ.c (gdb_environ::operator=): Extend method to
2459 handle m_user_set_env_list and m_user_unset_env_list.
2460 (gdb_environ::clear): Likewise.
2461 (match_var_in_string): Change type of first parameter from 'char
2462 *' to 'const char *'.
2463 (gdb_environ::set): Extend method to handle
2464 m_user_set_env_list and m_user_unset_env_list.
2465 (gdb_environ::unset): Likewise.
2466 (gdb_environ::clear_user_set_env): New method.
2467 (gdb_environ::user_set_envp): Likewise.
2468 (gdb_environ::user_unset_envp): Likewise.
2469 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
2470 m_user_unset_env_list on move constructor/assignment.
2471 (unset): Add new default parameter 'update_unset_list = true'.
2472 (clear_user_set_env): New method.
2473 (user_set_envp): Likewise.
2474 (user_unset_envp): Likewise.
2475 (m_user_set_env_list): New std::set.
2476 (m_user_unset_env_list): Likewise.
2477 * common/rsp-low.c (hex2str): New function.
2478 (bin2hex): New overload for bin2hex function.
2479 * common/rsp-low.c (hex2str): New prototype.
2480 (str2hex): New overload prototype.
2481 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
2482 QEnvironmentUnset and QEnvironmentReset.
2483 (remote_protocol_features): Add QEnvironmentHexEncoded,
2484 QEnvironmentUnset and QEnvironmentReset packets.
2485 (send_environment_packet): New function.
2486 (extended_remote_environment_support): Likewise.
2487 (extended_remote_create_inferior): Call
2488 extended_remote_environment_support.
2489 (_initialize_remote): Add QEnvironmentHexEncoded,
2490 QEnvironmentUnset and QEnvironmentReset packet configs.
2491 * unittests/environ-selftests.c (gdb_selftest_env_var):
2492 New variable.
2493 (test_vector_initialization): New function.
2494 (test_init_from_host_environ): Likewise.
2495 (test_reinit_from_host_environ): Likewise.
2496 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
2497 Likewise.
2498 (test_unset_set_empty_vector): Likewise.
2499 (test_vector_clear): Likewise.
2500 (test_std_move): Likewise.
2501 (test_move_constructor):
2502 (test_self_move): Likewise.
2503 (test_set_unset_reset): Likewise.
2504 (run_tests): Rewrite in terms of the functions above.
2505
654670a4
WP
25062017-08-31 Weimin Pan <weimin.pan@oracle.com>
2507
2508 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
2509 (adi_available): Use a temp variable of type CORE_ADDR as argument
2510 3 when calling target_auxv_search.
2511 (adi_normalize_address): Use masks and xor operators to calculate
2512 normalized address.
2513 (adi_read_versions, adi_write_versions, adi_print_versions)
2514 (do_examine, do_assign): Use paddress.
2515
7755ddb7
JB
25162017-08-29 John Baldwin <jhb@FreeBSD.org>
2517
2518 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
2519 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
2520 out of loop and add supply of FIR.
2521 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
2522 add collect of FIR.
2523
fd437cbc
SM
25242017-08-28 Simon Marchi <simon.marchi@ericsson.com>
2525
3804a343 2526 PR gdb/21827
fd437cbc
SM
2527 * cli/cli-script.c (define_command): Don't convert command name
2528 to lower case.
2529
988f6b3d
JB
25302017-08-25 Joel Brobecker <brobecker@adacore.com>
2531
2532 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
2533 Update all callers accordingly. Remove all code blocks handling
2534 the case where DISPP is not NULL.
2535
663c44ac
JK
25362017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2537
2538 PR symtab/22003
2539 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
2540 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
2541 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
2542
f1902523
JK
25432017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2544
2545 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
2546 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
2547 (read_comp_units_from_section): New parameter abbrev_section, use
2548 read_and_check_comp_unit_head, allocate signatured_type if needed.
2549 (create_all_comp_units): Update read_comp_units_from_section caller.
2550
87215ad1
SDJ
25512017-08-23 Pedro Alves <palves@redhat.com>
2552
2553 PR remote/21852
2554 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
2555 to null_ptid and switch to thread without reading the registers
2556 after adding the inferior.
2557
6e41ddec
JK
25582017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2559
2560 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
2561 compile-gcc.
2562 * compile/compile.c (compile_gcc, show_compile_gcc): New.
2563 (compile_to_object): Implement compile_gcc.
2564 (_initialize_compile): Install "set compile-gcc". Initialize
2565 compile_gcc.
2566
e68c32d5
JK
25672017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2568
2569 * compile/compile.c (compile_to_object): Conditionally call
2570 set_verbose. Conditionally call compile or compile_v0.
2571
58afddc6
WP
25722017-08-07 Weimin Pan <weimin.pan@oracle.com>
2573
2574 * sparc64-tdep.h: (adi_normalize_address): New export.
2575 * sparc-nat.h: (open_adi_tag_fd): New export.
2576 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
2577 * sparc64-linux-tdep.c:
2578 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
2579 (sparc64_linux_handle_segmentation_fault): New function.
2580 (sparc64_linux_init_abi): Register
2581 sparc64_linux_handle_segmentation_fault
2582 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
2583 (sparc64_addr_bits_remove): New function.
2584 (sparc64_init_abi): Register sparc64_addr_bits_remove.
2585 (MAX_PROC_NAME_SIZE): New macro.
2586 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
2587 (sparc64adilist): New variable.
2588 (adi_proc_list): New variable.
2589 (find_adi_info): New function.
2590 (add_adi_info): New function.
2591 (get_adi_info_proc): New function.
2592 (get_adi_info): New function.
2593 (info_adi_command): New function.
2594 (read_maps_entry): New function.
2595 (adi_available): New function.
2596 (adi_normalize_address): New function.
2597 (adi_align_address): New function.
2598 (adi_convert_byte_count): New function.
2599 (adi_tag_fd): New function.
2600 (adi_is_addr_mapped): New function.
2601 (adi_read_versions): New function.
2602 (adi_write_versions): New function.
2603 (adi_print_versions): New function.
2604 (do_examine): New function.
2605 (do_assign): New function.
2606 (adi_examine_command): New function.
2607 (adi_assign_command): New function.
2608 (_initialize_sparc64_adi_tdep): New function.
2609
11db9430
SM
26102017-08-22 Simon Marchi <simon.marchi@ericsson.com>
2611
2612 * breakpoint.c (breakpoints_info): Rename to ...
2613 (info_breakpoints_command): ... this.
2614 (watchpoints_info): Rename to ...
2615 (info_watchpoints_command): ... this.
2616 (tracepoints_info): Rename to ...
2617 (info_tracepoints_command): ... this.
2618 (_initialize_breakpoint): Adjust.
2619 * dcache.c (dcache_info): Rename to ...
2620 (info_display_command): ... this.
2621 (_initialize_dcache): Adjust.
2622 * frame.h (args_info): Rename to ...
2623 (info_args_command): ... this.
2624 (locals_info): Rename to ...
2625 (info_locals_command): ... this.
2626 * infcmd.c (nofp_registers_info): Rename to ...
2627 (info_registers_command): ... this.
2628 (float_info): Rename to ...
2629 (info_float_command): ... this.
2630 (program_info): Rename to ...
2631 (info_program_command): ... this.
2632 (all_registers_info): Rename to ...
2633 (info_all_registers_command): ... this.
2634 (vector_info): Rename to ...
2635 (info_vector_command): ... this.
2636 (float_info): Rename to ...
2637 (info_float_command): ... this.
2638 (_initialize_infcmd): Adjust.
2639 * inferior.h (term_info): Rename to ...
2640 (info_terminal_command): ... this.
2641 * inflow.c (term_info): Rename to ...
2642 (info_terminal_command): ... this.
2643 (_initialize_inflow): Adjust.
2644 * infrun.c (signals_info): Rename to ...
2645 (info_signals_command): ... this.
2646 (_initialize_infrun): Adjust.
2647 * objc-lang.c (classes_info): Rename to ...
2648 (info_classes_command): ... this.
2649 (selectors_info): Rename to ...
2650 (info_selectors_command): ... this.
2651 (_initialize_objc_language): Adjust.
2652 * printcmd.c (sym_info): Rename to ...
2653 (info_symbol_command): ... this.
2654 (address_info): Rename to ...
2655 (info_address_command): ... this.
2656 (display_info): Rename to ...
2657 (info_display_command): ... this.
2658 (_initialize_printcmd): Adjust.
2659 * reverse.c (bookmarks_info): Rename to ...
2660 (info_breakpoints_command): ... this.
2661 (_initialize_reverse): Adjust.
2662 * ser-go32.c (dos_info): Rename to ...
2663 (info_serial_command): ... this.
2664 (_initialize_ser_dos): Adjust.
2665 * skip.c (skip_info): Rename to ...
2666 (info_skip_command): ... this.
2667 (_initialize_step_skip): Adjust.
2668 * source.c (line_info): Rename to ...
2669 (info_line_command): ... this.
2670 (source_info): Rename to ...
2671 (info_source_command)
2672 * stack.c (frame_info): Rename to ...
2673 (info_frame_command): ... this.
2674 (locals_info): Rename to ...
2675 (info_locals_command): ... this.
2676 (args_info): Rename to ...
2677 (info_args_command): ... this.
2678 (_initialize_stack): Adjust.
2679 * symtab.c (sources_info): Rename to ...
2680 (info_sources_command): ... this.
2681 (variables_info): Rename to ...
2682 (info_variables_command): ... this.
2683 (functions_info): Rename to ...
2684 (info_functions_command): ... this.
2685 (types_info): Rename to ...
2686 (info_types_command): ... this.
2687 (_initialize_symtab): Adjust.
2688 * target.c (target_info): Rename to ...
2689 (info_target_command): ... this.
2690 (initialize_targets): Adjust.
2691 * tracepoint.c (tvariables_info): Rename to ...
2692 (info_tvariables_command): ... this.
2693 (scope_info): Rename to ...
2694 (info_scope_command): ... this.
2695 (trace_dump_actions): Adjust.
2696 (_initialize_tracepoint): Adjust.
2697
b270e6f9
TT
26982017-08-22 Tom Tromey <tom@tromey.com>
2699
2700 * breakpoint.h (install_breakpoint): Update.
2701 * breakpoint.c (add_solib_catchpoint): Update.
2702 (install_breakpoint): Change argument to a std::unique_ptr.
2703 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
2704 (create_breakpoint_sal, create_breakpoint): Update.
2705 (watch_command_1, catch_exec_command_1)
2706 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
2707 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
2708 Return the breakpoint.
2709 (set_raw_breakpoint_without_location, set_raw_breakpoint)
2710 (new_single_step_breakpoint): Update.
2711 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
2712 std::unique_ptr.
2713 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
2714 std::unique_ptr.
2715 * break-catch-sig.c (create_signal_catchpoint): Use
2716 std::unique_ptr.
2717 * ada-lang.c (create_ada_exception_catchpoint): Use
2718 std::unique_ptr.
2719
36bd8eaa
TT
27202017-08-22 Tom Tromey <tom@tromey.com>
2721
2722 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
2723
56f37645
TT
27242017-08-22 Tom Tromey <tom@tromey.com>
2725
2726 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
2727 (lookup_partial_symbol): Update.
2728
0b581c69
TT
27292017-08-22 Tom Tromey <tom@tromey.com>
2730
2731 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
2732 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
2733 (find_and_open_source, symtab_to_fullname): Update.
2734 * psymtab.c (psymtab_to_fullname): Update.
2735
14278e1f
TT
27362017-08-22 Tom Tromey <tom@tromey.com>
2737
2738 * exec.c (exec_file_attach): Update.
2739 * linux-thread-db.c (try_thread_db_load): Update.
2740 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
2741 * utils.c (gdb_realpath): Change return type.
2742 (gdb_realpath_keepfile): Update.
2743 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
2744 (_initialize_utils): Register the new self test.
2745 * source.c (openp): Update.
2746 (find_and_open_source): Update.
2747 * nto-tdep.c (nto_find_and_open_solib): Update.
2748 * main.c (set_gdb_data_directory): Update.
2749 (captured_main_1): Update.
2750 * dwarf2read.c (dwarf2_get_dwz_file): Update
2751 (dw2_map_symbol_filenames): Update.
2752 * auto-load.c (auto_load_safe_path_vec_update): Update.
2753 (filename_is_in_auto_load_safe_path_vec): Change type of
2754 "filename_realp".
2755 (auto_load_objfile_script): Update.
2756 (file_is_auto_load_safe): Update. Use std::string.
2757 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
2758
4971c9a7
TT
27592017-08-22 Tom Tromey <tom@tromey.com>
2760
2761 * utils.c (gdb_realpath_keepfile): Return a
2762 gdb::unique_xmalloc_ptr.
2763 * exec.c (exec_file_attach): Update.
2764 * utils.h (gdb_realpath_keepfile): Return a
2765 gdb::unique_xmalloc_ptr.
2766
e3e41d58
TT
27672017-08-22 Tom Tromey <tom@tromey.com>
2768
2769 * compile/compile.c (compile_file_command): Use
2770 gdb::unique_xmalloc_ptr, std::string.
2771 * utils.c (gdb_abspath): Change return type.
2772 * source.c (openp): Update.
2773 * objfiles.c (allocate_objfile): Update.
2774 * main.c (set_gdb_data_directory): Update.
2775 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
2776
0d999a6e
ZZ
27772017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
2778
2779 * cli-cmds.c (list_commands): List actual code around more than
2780 one location.
2781
329d5e7e
JB
27822017-08-21 John Baldwin <jhb@FreeBSD.org>
2783
2784 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
2785
bf223d3e
PA
27862017-08-21 Pedro Alves <palves@redhat.com>
2787
2788 PR gdb/19487
2789 * c-exp.y (variable production): Handle function aliases.
2790 * minsyms.c (msymbol_is_text): New function.
2791 * minsyms.h (msymbol_is_text): Declare.
2792 * symtab.c (find_function_alias_target): New function.
2793 * symtab.h (find_function_alias_target): Declare.
2794
c973d0aa
PA
27952017-08-21 Pedro Alves <palves@redhat.com>
2796
2797 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
2798 typedefs.
2799 * typeprint.c (whatis_exp): If handling "whatis", and expression
2800 is OP_TYPE, strip one typedef level. Otherwise don't strip
2801 typedefs here.
2802 * valops.c (value_cast): Save "to" type before resolving
2803 stubs/typedefs. Use that type as resulting value's type.
2804
2989a365
TT
28052017-08-18 Tom Tromey <tom@tromey.com>
2806 Pedro Alves <palves@redhat.com>
2807
2808 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
2809 * sol-thread.c (sol_thread_resume, sol_thread_wait)
2810 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
2811 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
2812 * proc-service.c (ps_xfer_memory): Use scoped_restore.
2813 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
2814 (linux_get_siginfo_data): Add "thread" argument. Use
2815 scoped_restore.
2816 * linux-nat.c (linux_child_follow_fork)
2817 (check_stopped_by_watchpoint): Use scoped_restore.
2818 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
2819 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
2820 (restore_inferior_ptid, save_inferior_ptid): Remove.
2821 * btrace.c (btrace_fetch): Use scoped_restore.
2822 * bsd-uthread.c (bsd_uthread_fetch_registers)
2823 (bsd_uthread_store_registers): Use scoped_restore.
2824 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
2825 scoped_restore.
2826 * aix-thread.c (aix_thread_resume, aix_thread_wait)
2827 (aix_thread_xfer_partial): Use scoped_restore.
2828 * inferior.h (save_inferior_ptid): Remove.
2829
e60eb288
YQ
28302017-08-18 Yao Qi <yao.qi@linaro.org>
2831
2832 PR tdep/21818
2833 * arm-tdep.c (gdb_print_insn_arm): Mark
2834 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
2835
6d580b63
YQ
28362017-08-18 Yao Qi <yao.qi@linaro.org>
2837
2838 * NEWS: Mention GDBserver's new option "--selftest".
2839 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
2840 * selftest.c: Move it to common/selftest.c.
2841 * selftest.h: Move it to common/selftest.h.
2842 * selftest-arch.c (reset): New function.
2843 (tests_with_arch): Call reset.
2844
86dcbf50
YQ
28452017-08-18 Yao Qi <yao.qi@linaro.org>
2846
2847 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
2848 instead of exception_fprintf and printf_filtered.
2849
7649770c
YQ
28502017-08-18 Yao Qi <yao.qi@linaro.org>
2851
2852 * selftest.c (register_self_test): Rename it to
2853 selftests::register_test.
2854 (run_self_tests): selftest::run_tests.
2855 * selftest.h: Update declarations.
2856 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
2857 selftests::register_test_foreach_arch.
2858 * selftest-arch.h: Update declaration.
2859 * aarch64-tdep.c: Update.
2860 * arm-tdep.c: Likewise.
2861 * disasm-selftests.c: Likewise.
2862 * dwarf2loc.c: Likewise.
2863 * dwarf2-frame.c: Likewise.
2864 * findvar.c: Likewise.
2865 * gdbarch-selftests.c: Likewise.
2866 * maint.c (maintenance_selftest): Likewise.
2867 * regcache.c: Likewise.
2868 * rust-exp.y: Likewise.
2869 * selftest-arch.c: Likewise.
2870 * unittests/environ-selftests.c: Likewise.
2871 * unittests/function-view-selftests.c: Likewise.
2872 * unittests/offset-type-selftests.c: Likewise.
2873 * unittests/optional-selftests.c: Likewise.
2874 * unittests/scoped_restore-selftests.c: Likewise.
2875 * utils-selftests.c: Likewise.
2876
b0cba12e
PA
28772017-08-17 Pedro Alves <palves@redhat.com>
2878
2879 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
2880 local.
2881
4c8aa72d
PA
28822017-08-17 Pedro Alves <palves@redhat.com>
2883
2884 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
2885 field.
2886 (reset_die_in_process): Delete, replaced by ...
2887 (process_die_scope): ... this new class. Make it responsible for
2888 freeing cu->line_header too.
2889 (process_die): Use process_die_scope.
2890 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
2891 cu->line_header_die_owner. Don't release the line header if it's
2892 owned by the CU.
2893 (setup_type_unit_groups): Make the CU/DIE own the line header.
2894 Don't release the line header here.
2895
ba713918
AL
28962017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
2897
2898 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
2899
44d0fb3a
RK
29002017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
2901
2902 * NEWS: Mention new shortcuts for nexti and stepi in TUI
2903 Single-Key mode
2904
a5afdb16
RK
29052017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
2906
2907 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
2908 mode command list.
2909
47613aeb
SH
29102017-08-15 Stafford Horne <shorne@gmail.com>
2911
2912 * MAINTAINERS (Write After Approval): Add Stafford Horne.
2913
9c3cc999
SH
29142017-08-15 Stafford Horne <shorne@gmail.com>
2915
2916 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
2917
206726fb
SDJ
29182017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
2919
2920 PR gdb/21954
2921 * infcmd.c (unset_environment_command): Use the 'clear' method on
2922 the environment instead of resetting it.
2923
0335ac6d
JB
29242017-08-15 John Baldwin <jhb@FreeBSD.org>
2925
2926 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
2927 platforms.
2928
d3abe1c8
TT
29292017-08-14 Tom Tromey <tom@tromey.com>
2930
2931 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
2932 (print_binary_chars): Likewise.
2933 (BITS_IN_BYTES): Remove.
2934
d6382fff
TT
29352017-08-14 Tom Tromey <tom@tromey.com>
2936
2937 PR gdb/21675
2938 * valprint.c (LOW_ZERO): Change value to 034.
2939 (print_octal_chars): Add static_asserts for octal constants.
2940 * printcmd.c (print_scalar_formatted): Add 'd' case.
2941
f978cb06
TT
29422017-08-11 Tom Tromey <tom@tromey.com>
2943
2944 * symfile.c (add_symbol_file_command): Use std::vector.
2945
2f5404b3
TT
29462017-08-14 Tom Tromey <tom@tromey.com>
2947
2948 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
2949 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
2950 std::move.
2951 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
2952
de7985c3
PA
29532017-08-11 Pedro Alves <palves@redhat.com>
2954
2955 * infrun.c (process_event_stop_test): Adjust
2956 function_name_is_marked_for_skip call.
2957 * skip.c: Include <list>.
2958 (skiplist_entry): Make it a class with private fields, and
2959 getters/setters.
2960 (skiplist_entry_chain): Delete.
2961 (skiplist_entries): New.
2962 (skiplist_entry_count): Delete.
2963 (highest_skiplist_entry_num): New.
2964 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
2965 (add_skiplist_entry): Delete.
2966 (skiplist_entry::skiplist_entry): New.
2967 (skiplist_entry::add_entry): New.
2968 (skip_file_command, skip_function): Adjust.
2969 (compile_skip_regexp): Delete.
2970 (skip_command): Don't compile regexp here. Adjust to use
2971 skiplist_entry::add_entry.
2972 (skip_info): Adjust to use range-for and getters.
2973 (skip_enable_command, skip_disable_command): Adjust to use
2974 range-for and setters.
2975 (skip_delete_command): Adjust to use std::list.
2976 (add_skiplist_entry): Delete.
2977 (skip_file_p): Delete, refactored as ...
2978 (skiplist_entry::do_skip_file_p): ... this new method.
2979 (skip_gfile_p): Delete, refactored as ...
2980 (skiplist_entry::do_gskip_file_p): ... this new method.
2981 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
2982 (skiplist_entry::skip_function_p): ... this new method.
2983 (function_name_is_marked_for_skip): Now returns bool, and takes
2984 the function sal by const reference. Adjust to use range-for and
2985 skiplist_entry methods.
2986 (_initialize_step_skip): Remove references to
2987 skiplist_entry_chain, skiplist_entry_count.
2988 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
2989 takes the function sal by const reference.
2990
be7d3cd5
YQ
29912017-08-11 Yao Qi <yao.qi@linaro.org>
2992
2993 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
2994 (dwarf2_frame_cache): Remove reset_cache_cleanup.
2995 (dwarf2_frame_cache):
2996 * frame-unwind.c (frame_unwind_try_unwinder): Catch
2997 RETURN_MASK_ALL and set *this_case to NULL.
2998 * frame-unwind.h: Update comments.
2999
1c90d9f0
YQ
30002017-08-11 Yao Qi <yao.qi@linaro.org>
3001
3002 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
3003 (dwarf2_frame_state_copy_regs): Remove.
3004 (dwarf2_frame_state_free_regs): Remove.
3005 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
3006 (dwarf2_restore_rule): Call method .alloc_regs instead of
3007 dwarf2_frame_state_alloc_regs.
3008 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
3009 constructor. Call std::move.
3010 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
3011 (dwarf2_frame_cache): Likewise.
3012
3013 [GDB_SELF_TEST]: Include selftest.h and
3014 selftest-arch.h.
3015 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
3016 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
3017 execute_cfa_program_test.
3018
3019 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
3020 copy ctor, assignment operator, move assignment.
3021 <alloc_regs>: New method.
3022 <swap>: New method.
3023 (struct dwarf2_frame_state): Delete dtor.
3024 (dwarf2_frame_state_alloc_regs): Remove declaration.
3025 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
3026 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
3027
afe37d6b
YQ
30282017-08-11 Yao Qi <yao.qi@linaro.org>
3029
3030 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
3031 (dwarf2_frame_state::dwarf2_frame_state): New.
3032 (dwarf2_frame_state::~dwarf2_frame_state): New.
3033 (dwarf2_fetch_cfa_info): Update.
3034 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
3035 rather than a pointer. Update code.
3036 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
3037 dtor.
3038 <data_align, code_align, retaddr_column>: Change them to const.
3039 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
3040 to bool.
3041
b348037f
YQ
30422017-08-11 Yao Qi <yao.qi@linaro.org>
3043
3044 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
3045 <loc.exp>: New field.
3046 * dwarf2-frame.c (execute_cfa_program): Update.
3047 (dwarf2_frame_prev_register): Update.
3048
e7c9de26
PA
30492017-08-10 Pedro Alves <palves@redhat.com>
3050
3051 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
3052
e8c6b620
JB
30532017-08-09 John Baldwin <jhb@FreeBSD.org>
3054
3055 * fbsd-nat.c (struct fbsd_fork_info): Remove.
3056 (fbsd_pending_children): Use std::list.
3057 (fbsd_remember_child): Likewise.
3058 (fbsd_is_child_pending): Likewise.
3059 (fbsd_pending_vfork_done): Use std::forward_list.
3060 (fbsd_add_vfork_done): Likewise.
3061 (fbsd_is_vfork_done_pending): Likewise.
3062 (fbsd_next_vfork_done): Likewise.
3063
e4a26669
JB
30642017-08-09 John Baldwin <jhb@FreeBSD.org>
3065
3066 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
3067 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
3068 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
3069 for `mapfilename'.
3070 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 3071 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 3072
142311d3
JB
30732017-08-09 John Baldwin <jhb@FreeBSD.org>
3074
3075 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
3076 "filestuff.h".
3077 (fbsd_find_memory_regions): Fix `mapfile' initialization.
3078
42fa2e0e
TT
30792017-08-09 Tom Tromey <tom@tromey.com>
3080
3081 * skip.c (skiplist_entry): New constructor.
3082 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
3083 (skiplist_entry::file_is_glob): Now bool.
3084 (skiplist_entry::file, skiplist_entry::function): Now
3085 std::string.
3086 (make_skip_entry): Return a unique_ptr. Use new.
3087 (free_skiplist_entry, free_skiplist_entry_cleanup)
3088 (make_free_skiplist_entry_cleanup): Remove.
3089 (skip_command, skip_disable_command, add_skiplist_entry)
3090 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
3091 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
3092 (function_name_is_marked_for_skip): Update.
3093 (skip_delete_command): Update. Use delete.
3094
cd3af38d
JW
30952017-08-09 Jiong Wang <jiong.wang@arm.com>
3096
3097 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
3098 (aarch64_linux_core_read_description): New function.
3099 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
3100
29592bde
PA
31012017-08-09 Pedro Alves <palves@redhat.com>
3102
3103 * cp-name-parser.y (cp_comp_to_string): Return a
3104 gdb::unique_xmalloc_ptr<char>.
3105 * cp-support.c (replace_typedefs_qualified_name)
3106 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
3107 (cp_canonicalize_string_full): Use op= instead of explicit
3108 convertion.
3109 (cp_class_name_from_physname, method_name_from_physname)
3110 (cp_func_name, cp_remove_params): Adjust to use
3111 gdb::unique_xmalloc_ptr<char>.
3112 * cp-support.h (cp_comp_to_string): Return a
3113 gdb::unique_xmalloc_ptr<char>.
3114 * python/py-type.c (typy_lookup_type): Adjust to use
3115 gdb::unique_xmalloc_ptr<char>.
3116
b3340438
L
31172017-08-09 H.J. Lu <hongjiu.lu@intel.com>
3118
3119 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
3120
e88e8651
YQ
31212017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
3122 Yao Qi <yao.qi@linaro.org>
3123
3124 * cp-support.c (cp_canonicalize_string_full): Use
3125 gdb::unique_xmalloc_ptr<char>.
3126 (cp_canonicalize_string): Likewise.
3127
f5a29eb0
YQ
31282017-08-09 Yao Qi <yao.qi@linaro.org>
3129
3130 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
3131 * regformats/i386/amd64-avx-avx512.dat: Remove.
3132 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
3133 * regformats/i386/amd64-avx-mpx.dat:Remove.
3134 * regformats/i386/amd64-avx.dat: Remove.
3135 * regformats/i386/amd64-mpx.dat: Remove.
3136 * regformats/i386/i386-avx-avx512.dat: Remove.
3137 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
3138 * regformats/i386/i386-avx-mpx.dat: Remove.
3139 * regformats/i386/i386-mmx.dat: Remove.
3140 * regformats/i386/i386-mpx.dat: Remove.
3141
57757c2f
YQ
31422017-08-09 Yao Qi <yao.qi@linaro.org>
3143
3144 * amd64-tdep.h (tdesc_x32): Remove the declaration.
3145 * amd64-tdep.c: Don't include features/i386/x32*.c.
3146 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
3147 functions.
3148 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
3149 and i386/x32-avx-avx512.
3150 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
3151 and i386/x32.xml.
3152 * features/i386/x32-avx-avx512.c: Removed.
3153 * features/i386/x32-avx-avx512.xml: Removed.
3154 * features/i386/x32-avx.c: Removed.
3155 * features/i386/x32-avx.xml: Removed.
3156 * features/i386/x32.c: Removed.
3157 * features/i386/x32.xml: Removed.
3158 * regformats/i386/x32-avx-avx512.dat: Removed.
3159 * regformats/i386/x32-avx.dat: Removed.
3160 * regformats/i386/x32.dat: Removed.
3161
ba7b109b
MR
31622017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3163
3164 PR breakpoints/21886
3165 * mem-break.c (default_memory_insert_breakpoint): Use
3166 `->placed_address' rather than `->reqstd_address' for the
3167 breakpoint location.
3168
e347efc3
MR
31692017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3170
3171 * arch-utils.c (default_print_insn): Remove arch/mach/endian
3172 assertions.
3173
0dba2a6c
MR
31742017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3175
3176 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
3177 a union of `tdep_info', `tdesc_data' and `id'.
3178 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
3179 rather than `info.tdep_info'.
3180 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
3181 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3182 * i386-tdep.c (i386_gdbarch_init): Likewise.
3183 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
3184 * mips-tdep.c (mips_gdbarch_init): Likewise.
3185 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
3186 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3187 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
3188 `info.tdep_info'.
3189 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
3190 `info.tdep_info'.
3191 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3192 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
3193 `info.tdep_info'.
3194 * spu-tdep.c (spu_gdbarch_init): Likewise.
3195 * gdbarch.h: Regenerate.
3196
16eb6b2d
LS
31972017-08-07 Leszek Swirski <leszeks@google.com>
3198
7b005726 3199 PR symtab/20899
16eb6b2d
LS
3200 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
3201
74cbb09e
SM
32022017-08-07 Simon Marchi <simon.marchi@ericsson.com>
3203
3204 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
3205 (gdbsim_open): Rename gdb_argv args object to argv.
3206
ee0c3293
TT
32072017-08-05 Tom Tromey <tom@tromey.com>
3208
3209 * compile/compile-object-load.c (compile_object_load): Use
3210 gdb::unique_xmalloc_ptr.
3211 * cli/cli-dump.c (scan_filename): Rename from
3212 scan_filename_with_cleanup. Change return type.
3213 (scan_expression): Rename from scan_expression_with_cleanup.
3214 Change return type.
3215 (dump_memory_to_file, dump_value_to_file, restore_command):
3216 Use gdb::unique_xmalloc_ptr. Update.
3217 * cli/cli-cmds.c (find_and_open_script): Use
3218 gdb::unique_xmalloc_ptr.
3219 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
3220 * symmisc.c (maintenance_print_symbols)
3221 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
3222 * symfile.c (symfile_bfd_open, generic_load)
3223 (add_symbol_file_command, remove_symbol_file_command): Use
3224 gdb::unique_xmalloc_ptr.
3225 * source.c (openp): Use gdb::unique_xmalloc_ptr.
3226 * psymtab.c (maintenance_print_psymbols): Use
3227 gdb::unique_xmalloc_ptr.
3228 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
3229 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
3230 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
3231 (reload_shared_libraries_1): Likewise.
3232
3232fabd
TT
32332017-08-05 Tom Tromey <tom@tromey.com>
3234
3235 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
3236 (rust_op_vector, rust_set_vector): New typedefs.
3237 (current_parser): New global.
3238 (work_obstack): Change to pointer type. Update all users.
3239 (rust_ast, pstate): Remove globals.
3240 (struct rust_parser): New.
3241 (%union) <params, field_inits>: Change type.
3242 (start, tuple_expr, unit_expr, struct_expr_list, literal)
3243 (field_expr, expr_list, maybe_expr_list, type_list): Update.
3244 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
3245 (convert_params_to_types, convert_params_to_expression): Change
3246 type of "params".
3247 (ast_string): Change type of "fields".
3248 (rust_parse): Make a rust_parser. Remove cleanups.
3249 (rust_lex_tests): Make and install an auto_obstack.
3250
f02fd774
YQ
32512017-08-04 Yao Qi <yao.qi@linaro.org>
3252
3253 * configure.srv (ipa_x32_linux_regobj): New.
3254 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
3255 instead of X86_TDESC_AVX512.
3256 (initialize_low_tracepoint): Call
3257 init_registers_x32_avx_avx512_linux.
3258
91975afd
YQ
32592017-08-04 Yao Qi <yao.qi@linaro.org>
3260
3261 * utils.h (gdb_argv): Add namespace std for nullptr_t.
3262
2331fa3a
RK
32632017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
3264
3265 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
3266
744e4fe1
TT
32672017-08-03 Tom Tromey <tom@tromey.com>
3268
3269 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
3270 Remove.
3271 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
3272
1c034b67
TT
32732017-08-03 Tom Tromey <tom@tromey.com>
3274
3275 * python/py-param.c (compute_enum_values): Use gdb_argv.
3276
773a1edc
TT
32772017-08-03 Tom Tromey <tom@tromey.com>
3278
3279 * utils.h (struct gdb_argv_deleter): New.
3280 (gdb_argv): New class.
3281 * utils.c (gdb_argv::reset): New method.
3282 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
3283 * tracefile.c (tsave_command): Use gdb_argv.
3284 * top.c (new_ui_command): Use gdb_argv.
3285 * symmisc.c (maintenance_print_symbols)
3286 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
3287 * symfile.c (symbol_file_command, generic_load)
3288 (remove_symbol_file_command): Use gdb_argv.
3289 * stack.c (backtrace_command): Use gdb_argv.
3290 * source.c (add_path, show_substitute_path_command)
3291 (unset_substitute_path_command, set_substitute_path_command):
3292 Use gdb_argv.
3293 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
3294 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
3295 * remote.c (extended_remote_run, remote_put_command)
3296 (remote_get_command, remote_delete_command): Use gdb_argv.
3297 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
3298 (gdbsim_open): Use gdb_argv.
3299 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
3300 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
3301 * procfs.c (procfs_info_proc): Use gdb_argv.
3302 * interps.c (interpreter_exec_cmd): Use gdb_argv.
3303 * infrun.c (handle_command): Use gdb_argv.
3304 * inferior.c (add_inferior_command, clone_inferior_command):
3305 Use gdb_argv.
3306 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
3307 * exec.c (exec_file_command): Use gdb_argv.
3308 * cli/cli-cmds.c (alias_command): Use gdb_argv.
3309 * compile/compile.c (build_argc_argv): Use gdb_argv.
3310
0d50bde3
TT
33112017-08-03 Tom Tromey <tom@tromey.com>
3312
3313 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
3314
7f968c89
TT
33152017-08-03 Tom Tromey <tom@tromey.com>
3316
3317 * python/python.c (compute_python_string): Return std::string.
3318 (gdbpy_eval_from_control_command): Update.
3319 (do_start_initialization): Use std::string.
3320 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
3321 xstrprintf.
3322 * python/py-breakpoint.c (local_setattro): Use string_printf, not
3323 xstrprintf.
3324
3c9ebddd
TT
33252017-08-03 Tom Tromey <tom@tromey.com>
3326
3327 * top.h (do_restore_instream_cleanup): Remove.
3328 * top.c (do_restore_instream_cleanup): Remove.
3329 (read_command_file): Use scoped_restore.
3330 * cli/cli-script.c (execute_user_command): Use scoped_restore.
3331
b51b225e
TT
33322017-08-03 Tom Tromey <tom@tromey.com>
3333
3334 * cli/cli-script.c (execute_user_command)
3335 (execute_control_command): Use scoped_restore.
3336
ac991630
TT
33372017-08-03 Tom Tromey <tom@tromey.com>
3338
3339 * cli/cli-script.c (do_restore_user_call_depth): Remove.
3340 (execute_user_command): Remove user_call_depth; use
3341 user_args_stack's size instead.
3342
898e0c8e
TT
33432017-08-03 Tom Tromey <tom@tromey.com>
3344
3345 * top.h (in_user_command): Remove.
3346 * top.c (in_user_command): Remove.
3347 * cli/cli-script.c (do_restore_user_call_depth)
3348 (execute_user_command): Update.
3349
26fcd5d7
TT
33502017-08-03 Tom Tromey <tom@tromey.com>
3351
3352 * valops.c (search_struct_method): Use gdb::byte_vector.
3353 * valarith.c (value_concat): Use std::vector.
3354 * target.c (memory_xfer_partial): Use gdb::byte_vector.
3355 (simple_search_memory): Likewise.
3356 * printcmd.c (find_string_backward): Use gdb::byte_vector.
3357 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
3358 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
3359 * elfread.c (elf_rel_plt_read): Use std::string.
3360 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
3361 * cli/cli-dump.c (restore_section_callback): Use
3362 gdb::byte_vector.
3363
7c218e6c
TT
33642017-08-03 Tom Tromey <tom@tromey.com>
3365
3366 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
3367
31b68d4a
TT
33682017-08-03 Tom Tromey <tom@tromey.com>
3369
3370 * tui/tui-regs.c (tui_restore_gdbout): Remove.
3371 (tui_register_format): Use scoped_restore.
3372
2ec845e7
TT
33732017-08-03 Tom Tromey <tom@tromey.com>
3374
3375 * reverse.c (exec_direction_default): Remove.
3376 (exec_reverse_once): Use scoped_restore.
3377 * remote.c (restore_remote_timeout): Remove.
3378 (remote_flash_erase, remote_flash_write, remote_flash_done)
3379 (readchar, remote_serial_write): Use scoped_restore.
3380 * cli/cli-script.c (struct source_cleanup_lines_args)
3381 (source_cleanup_lines): Remove.
3382 (script_from_file): Use scoped_restore.
3383 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
3384 (source_command): Use scoped_restore.
3385
b3bc8453
TT
33862017-08-03 Tom Tromey <tom@tromey.com>
3387
3388 * utils.h (make_cleanup_free_so): Remove.
3389 * utils.c (do_free_so, make_cleanup_free_so): Remove.
3390 * solist.h (struct so_deleter): New.
3391 (so_list_up): New typedef.
3392 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
3393
e3ad2841
TT
33942017-08-03 Tom Tromey <tom@tromey.com>
3395
3396 * utils.h (make_cleanup_restore_current_language): Remove.
3397 * utils.c (do_restore_current_language)
3398 (make_cleanup_restore_current_language): Remove.
3399 * parse.c (parse_exp_in_context_1)
3400 (parse_expression_with_language): Use
3401 scoped_restore_current_language.
3402 * mi/mi-main.c (mi_cmd_execute): Use
3403 scoped_restore_current_language.
3404 * language.h (scoped_restore_current_language): New class.
3405
b80cf838
TT
34062017-08-03 Tom Tromey <tom@tromey.com>
3407
3408 * compile/compile.c (cleanup_unlink_file): Remove.
3409 (compile_to_object): Use gdb::unlinker.
3410 (eval_compile_command): Likewise.
3411
fad0444a
TT
34122017-08-03 Tom Tromey <tom@tromey.com>
3413
3414 * utils.h (make_cleanup_fclose): Remove.
3415 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
3416
6e7bc05c
TT
34172017-08-03 Tom Tromey <tom@tromey.com>
3418
3419 * top.c (open_terminal_stream): Return gdb_file_up.
3420 (new_ui_command): Update.
3421
4a45905b
TT
34222017-08-03 Tom Tromey <tom@tromey.com>
3423
3424 * source.c (print_source_lines_base, forward_search_command)
3425 (reverse_search_command): Use gdb_file_up.
3426
7cd06d6e
TT
34272017-08-03 Tom Tromey <tom@tromey.com>
3428
3429 * fbsd-nat.c (fbsd_find_memory_regions): Update.
3430
ed166945
TT
34312017-08-03 Tom Tromey <tom@tromey.com>
3432
3433 * cli/cli-cmds.c (find_and_open_script): Change return type.
3434 Remove "streamp" and "full_path" parameters.
3435 (source_script_with_search): Update.
3436 * auto-load.c (source_script_file): Update.
3437 * cli/cli-cmds.h (find_and_open_script): Change type.
3438 (open_script): New struct.
3439
d419f42d
TT
34402017-08-03 Tom Tromey <tom@tromey.com>
3441
3442 * xml-support.c (xml_fetch_content_from_file): Update.
3443 * ui-file.c (stdio_file::open): Update.
3444 * tracefile-tfile.c (tfile_start): Update.
3445 * remote.c (remote_file_put, remote_file_get): Update.
3446 * nat/linux-procfs.c (linux_proc_get_int)
3447 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
3448 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
3449 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
3450 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
3451 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
3452 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
3453 * linux-nat.c (linux_proc_pending_signals): Update.
3454 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
3455 (file_closer): Remove.
3456 * compile/compile.c (compile_to_object): Update.
3457 * common/filestuff.h (struct gdb_file_deleter): New.
3458 (gdb_file_up): New typedef.
3459 (gdb_fopen_cloexec): Change return type.
3460 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
3461 * cli/cli-dump.c (fopen_with_cleanup): Remove.
3462 (dump_binary_file, restore_binary_file): Update.
3463 * auto-load.c (auto_load_objfile_script_1): Update.
3464
4a2b031d
TT
34652017-08-03 Tom Tromey <tom@tromey.com>
3466
3467 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
3468 (info_static_tracepoint_markers_command): Likewise.
3469 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
3470 * skip.c (skip_info): Use ui_out_emit_table.
3471 * progspace.c (print_program_space): Use ui_out_emit_table.
3472 * osdata.c (info_osdata): Use ui_out_emit_table.
3473 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
3474 ui_out_emit_table.
3475 * linux-thread-db.c (info_auto_load_libthread_db): Use
3476 ui_out_emit_table.
3477 * inferior.c (print_inferior): Use ui_out_emit_table.
3478 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
3479 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
3480 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
3481 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
3482 * ui-out.h (class ui_out_emit_table): New.
3483
a4f320fd
MR
34842017-08-02 Maciej W. Rozycki <macro@imgtec.com>
3485
3486 * mips-tdep.c (mips_fpu_type_str): New function.
3487 (mips_dump_tdep): Call it.
3488
a2f1f308
MR
34892017-08-01 Maciej W. Rozycki <macro@imgtec.com>
3490
3491 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
3492 `->mips_fpu_type'.
3493
7e5ed83b
XR
34942017-07-31 Xavier Roirand <roirand@adacore.com>
3495
3496 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3497
4c9dc811
XR
34982017-07-27 Xavier Roirand <roirand@adacore.com>
3499
3500 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
3501
27d41eac
YQ
35022017-07-26 Yao Qi <yao.qi@linaro.org>
3503
3504 * cli/cli-cmds.c (maintenancechecklist): New variable.
3505 * gdbcmd.h (maintenancechecklist): Declare it.
3506 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
3507 Call i386_linux_read_description with different masks.
3508 * maint.c (maintenance_check_command): New function.
3509 (_initialize_maint_cmds): Call add_prefix_cmd.
3510 * target-descriptions.c (tdesc_reg): override operator != and ==.
3511 (tdesc_type): Likewise.
3512 (tdesc_feature): Likewise.
3513 (target_desc): Likewise.
3514 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
3515 (maintenance_check_xml_descriptions): New function.
3516 (_initialize_target_descriptions) Add command "xml-descriptions".
3517 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
3518
ea03d0d3
YQ
35192017-07-26 Yao Qi <yao.qi@linaro.org>
3520
3521 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
3522 Include features/i386/32bit-*.c.
3523 (i386_linux_read_description): Generate target description if it
3524 doesn't exist.
3525 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
3526 functions.
3527 * features/i386/32bit-linux.c: Re-generated.
3528 * features/i386/32bit-sse.c: Likewise.
3529 * target-descriptions.c (print_c_feature::visit): Print code to
3530 set register number if needed.
3531 (print_c_feature) <m_next_regnum>: New field.
3532
25aa13e5
YQ
35332017-07-26 Yao Qi <yao.qi@linaro.org>
3534
3535 * features/Makefile (CFILES): Rename with TDESC_CFILES.
3536 (FEATURE_XMLFILES): New.
3537 (FEATURE_CFILES): New.
3538 New rules.
3539 (clean-cfiles): Remove generated c files.
3540 * features/i386/32bit-avx.c: Generated.
3541 * features/i386/32bit-avx512.c: Generated.
3542 * features/i386/32bit-core.c: Generated.
3543 * features/i386/32bit-linux.c: Generated.
3544 * features/i386/32bit-mpx.c: Generated.
3545 * features/i386/32bit-pkeys.c: Generated.
3546 * features/i386/32bit-sse.c: Generated.
3547 * target-descriptions.c: Include algorithm.
3548 (tdesc_element_visitor): Add method visit_end.
3549 (print_c_tdesc): Implement visit_end.
3550 (print_c_tdesc:: m_filename_after_features): Move it to
3551 protected.
3552 (print_c_feature): New class.
3553 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
3554 name starts with "i386/32bit-".
3555
6eb1e6a8
YQ
35562017-07-26 Yao Qi <yao.qi@linaro.org>
3557
3558 * target-descriptions.c (tdesc_element_visitor): New class.
3559 (tdesc_element): New class.
3560 (tdesc_reg): Inherit from tdesc_element.
3561 (tdesc_reg::accept): New function.
3562 (tdesc_type): Inherit from tdesc_element.
3563 (tdesc_type::accept): New function.
3564 (tdesc_feature): Inherit from tdesc_element.
3565 (tdesc_feature::accept): New function.
3566 (target_desc): Inherit from tdesc_element.
3567 (target_desc::target_desc): New.
3568 (target_desc::~target_desc): New.
3569 (target_desc::accept): New.
3570 (allocate_target_description): Use new.
3571 (free_target_description): Use delete.
3572 (print_c_tdesc): New class.
3573 (maint_print_c_tdesc_cmd): Adjust.
3574
3575 * features/aarch64.c: Re-generated.
3576 * features/arc-arcompact.c: Re-generated.
3577 * features/arc-v2.c: Re-generated.
3578 * features/arm/arm-with-iwmmxt.c: Re-generated.
3579 * features/arm/arm-with-m.c: Re-generated.
3580 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
3581 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
3582 * features/arm/arm-with-neon.c: Re-generated.
3583 * features/arm/arm-with-vfpv2.c: Re-generated.
3584 * features/arm/arm-with-vfpv3.c: Re-generated.
3585 * features/i386/amd64-avx-avx512.c: Re-generated.
3586 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
3587 * features/i386/amd64-avx.c: Re-generated.
3588 * features/i386/amd64-avx-linux.c: Re-generated.
3589 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
3590 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
3591 * features/i386/amd64-avx-mpx.c: Re-generated.
3592 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
3593 * features/i386/amd64.c: Re-generated.
3594 * features/i386/amd64-linux.c: Re-generated.
3595 * features/i386/amd64-mpx.c: Re-generated.
3596 * features/i386/amd64-mpx-linux.c: Re-generated.
3597 * features/i386/i386-avx-avx512.c: Re-generated.
3598 * features/i386/i386-avx-avx512-linux.c: Re-generated.
3599 * features/i386/i386-avx.c: Re-generated.
3600 * features/i386/i386-avx-linux.c: Re-generated.
3601 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
3602 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
3603 * features/i386/i386-avx-mpx.c: Re-generated.
3604 * features/i386/i386-avx-mpx-linux.c: Re-generated.
3605 * features/i386/i386.c: Re-generated.
3606 * features/i386/i386-linux.c: Re-generated.
3607 * features/i386/i386-mmx.c: Re-generated.
3608 * features/i386/i386-mmx-linux.c: Re-generated.
3609 * features/i386/i386-mpx.c: Re-generated.
3610 * features/i386/i386-mpx-linux.c: Re-generated.
3611 * features/i386/x32-avx-avx512.c: Re-generated.
3612 * features/i386/x32-avx-avx512-linux.c: Re-generated.
3613 * features/i386/x32-avx.c: Re-generated.
3614 * features/i386/x32-avx-linux.c: Re-generated.
3615 * features/i386/x32.c: Re-generated.
3616 * features/i386/x32-linux.c: Re-generated.
3617 * features/microblaze.c: Re-generated.
3618 * features/microblaze-with-stack-protect.c: Re-generated.
3619 * features/mips64-dsp-linux.c: Re-generated.
3620 * features/mips64-linux.c: Re-generated.
3621 * features/mips-dsp-linux.c: Re-generated.
3622 * features/mips-linux.c: Re-generated.
3623 * features/nds32.c: Re-generated.
3624 * features/nios2.c: Re-generated.
3625 * features/nios2-linux.c: Re-generated.
3626 * features/rs6000/powerpc-32.c: Re-generated.
3627 * features/rs6000/powerpc-32l.c: Re-generated.
3628 * features/rs6000/powerpc-403.c: Re-generated.
3629 * features/rs6000/powerpc-403gc.c : Re-generated.
3630 * features/rs6000/powerpc-405.c: Re-generated.
3631 * features/rs6000/powerpc-505.c: Re-generated.
3632 * features/rs6000/powerpc-601.c: Re-generated.
3633 * features/rs6000/powerpc-602.c: Re-generated.
3634 * features/rs6000/powerpc-603.c: Re-generated.
3635 * features/rs6000/powerpc-604.c: Re-generated.
3636 * features/rs6000/powerpc-64.c: Re-generated.
3637 * features/rs6000/powerpc-64l.c: Re-generated.
3638 * features/rs6000/powerpc-7400.c: Re-generated.
3639 * features/rs6000/powerpc-750.c: Re-generated.
3640 * features/rs6000/powerpc-860.c: Re-generated.
3641 * features/rs6000/powerpc-altivec32.c: Re-generated.
3642 * features/rs6000/powerpc-altivec32l.c: Re-generated.
3643 * features/rs6000/powerpc-altivec64.c: Re-generated.
3644 * features/rs6000/powerpc-altivec64l.c: Re-generated.
3645 * features/rs6000/powerpc-cell32l.c: Re-generated.
3646 * features/rs6000/powerpc-cell64l.c: Re-generated.
3647 * features/rs6000/powerpc-e500.c: Re-generated.
3648 * features/rs6000/powerpc-e500l.c: Re-generated.
3649 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
3650 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
3651 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
3652 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
3653 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
3654 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
3655 * features/rs6000/powerpc-vsx32.c: Re-generated.
3656 * features/rs6000/powerpc-vsx32l.c: Re-generated.
3657 * features/rs6000/powerpc-vsx64.c: Re-generated.
3658 * features/rs6000/powerpc-vsx64l.c: Re-generated.
3659 * features/rs6000/rs6000.c: Re-generated.
3660 * features/s390-linux32.c: Re-generated.
3661 * features/s390-linux32v1.c: Re-generated.
3662 * features/s390-linux32v2.c: Re-generated.
3663 * features/s390-linux64.c: Re-generated.
3664 * features/s390-linux64v1.c: Re-generated.
3665 * features/s390-linux64v2.c: Re-generated.
3666 * features/s390-te-linux64.c: Re-generated.
3667 * features/s390-tevx-linux64.c: Re-generated.
3668 * features/s390-vx-linux64.c: Re-generated.
3669 * features/s390x-linux64.c: Re-generated.
3670 * features/s390x-linux64v1.c: Re-generated.
3671 * features/s390x-linux64v2.c: Re-generated.
3672 * features/s390x-te-linux64.c: Re-generated.
3673 * features/s390x-tevx-linux64.c: Re-generated.
3674 * features/s390x-vx-linux64.c: Re-generated.
3675 * features/sparc/sparc32-solaris.c: Re-generated.
3676 * features/sparc/sparc64-solaris.c: Re-generated.
3677 * features/tic6x-c62x.c: Re-generated.
3678 * features/tic6x-c62x-linux.c: Re-generated.
3679 * features/tic6x-c64x.c: Re-generated.
3680 * features/tic6x-c64x-linux.c: Re-generated.
3681 * features/tic6x-c64xp.c: Re-generated.
3682 * features/tic6x-c64xp-linux.c: Re-generated.
3683
35b4818d
YQ
36842017-07-26 Yao Qi <yao.qi@linaro.org>
3685
3686 * i386-linux-tdep.c (i386_linux_read_description): New function.
3687 (i386_linux_core_read_description): Call
3688 i386_linux_read_description.
3689 * i386-linux-tdep.h (i386_linux_read_description): Declare.
3690 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
3691 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
3692 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
3693 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
3694 * x86-linux-nat.c (x86_linux_read_description): Call
3695 i386_linux_read_description.
3696
8e2141c6
YQ
36972017-07-26 Yao Qi <yao.qi@linaro.org>
3698
3699 * NEWS: Mention it.
3700 * features/Makefile (%.c: %.xml): Pass the xml file name to
3701 command "maint print c-tdesc".
3702 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
3703 name from 'arg'.
3704
b468ff4c
YQ
37052017-07-26 Yao Qi <yao.qi@linaro.org>
3706
3707 * target-descriptions.c (target_desc): Add ctor and dtor. Do
3708 in-class initialization.
3709 (tdesc_create_feature): Call new instead of XCNEW.
3710 (free_target_description): Ue delete.
3711
b9c0e1b4
JB
37122017-07-25 John Baldwin <jhb@FreeBSD.org>
3713
3714 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
3715
a04b5337
YQ
37162017-07-25 Yao Qi <yao.qi@linaro.org>
3717
3718 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
3719 constant.
3720 (amd64_x32_init_abi): Likewise.
3721 * amd64-tdep.h (amd64_init_abi): Update declaration.
3722 (amd64_x32_init_abi): Likewise.
3723
02ad7fc2
YQ
37242017-07-25 Yao Qi <yao.qi@linaro.org>
3725
3726 PR tdep/21717
3727 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
3728 condition for FPSCR.
3729 (arm_linux_store_inferior_registers): Likewise.
3730
b6f48cb0
TT
37312017-07-22 Tom Tromey <tom@tromey.com>
3732
3733 * break-catch-syscall.c (struct catch_syscall_inferior_data)
3734 <syscalls_counts>: Now a std::vector.
3735 (get_catch_syscall_inferior_data): Use "new".
3736 (catch_syscall_inferior_data_cleanup): Use "delete".
3737 (insert_catch_syscall, remove_catch_syscall)
3738 (clear_syscall_counts): Update.
3739
e12c9b7a
TT
37402017-07-22 Tom Tromey <tom@tromey.com>
3741
3742 * break-catch-syscall.c (syscall_catchpoint)
3743 <syscalls_to_be_caught>: Now a std::vector<int>
3744 (~syscall_catchpoint): Remove.
3745 (insert_catch_syscall, remove_catch_syscall)
3746 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
3747 (print_mention_catch_syscall, print_recreate_catch_syscall):
3748 Update.
3749 (create_syscall_event_catchpoint): Change type of "filter"
3750 parameter.
3751 (catch_syscall_split_args): Return a std::vector.
3752 (catch_syscall_command_1, catching_syscall_number_1): Update.
3753
4fa8aeac
TT
37542017-07-22 Tom Tromey <tom@tromey.com>
3755
3756 * break-catch-throw.c (struct exception_catchpoint)
3757 <exception_rx>: Now a std::string.
3758 (~exception_catchpoint): Remove.
3759 (print_one_detail_exception_catchpoint): Update.
3760 (handle_gnu_v3_exceptions): Change type of except_rx.
3761 (extract_exception_regexp): Return a std::string.
3762 (catch_exception_command_1): Update.
3763
f746a154
TT
37642017-07-22 Tom Tromey <tom@tromey.com>
3765
3766 * break-catch-sig.c (gdb_signal_type): Remove typedef.
3767 (struct signal_catchpoint) <signals_to_be_caught>: Now a
3768 std::vector.
3769 <catch_all>: Now a bool.
3770 (~signal_catchpoint): Remove.
3771 (signal_catchpoint_insert_location)
3772 (signal_catchpoint_remove_location)
3773 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
3774 (signal_catchpoint_print_mention)
3775 (signal_catchpoint_print_recreate)
3776 (signal_catchpoint_explains_signal): Update.
3777 (create_signal_catchpoint): Change type of "filter" and
3778 "catch_all".
3779 (catch_signal_split_args): Return a std::vector. Change type of
3780 "catch_all".
3781 (catch_signal_command): Update.
3782
47e77640
PA
37832017-07-20 Pedro Alves <palves@redhat.com>
3784
3785 * ada-lang.c (ada_language_defn): Make extern.
3786 (_initialize_ada_language): Remove add_language call.
3787 * c-lang.c (c_language_defn, cplus_language_defn)
3788 (asm_language_defn, minimal_language_defn): Make extern.
3789 (_initialize_c_language): Delete.
3790 * completer.c (compare_cstrings): Delete, moved to utils.h.
3791 * d-lang.c (d_language_defn): Make extern.
3792 (_initialize_d_language): Remove add_language calls.
3793 * defs.h (enum language): Add comment.
3794 * f-lang.c (f_language_defn): Make extern.
3795 (_initialize_f_language): Remove add_language call.
3796 * go-lang.c (go_language_defn): Make extern.
3797 (_initialize_go_language): Remove add_language call.
3798 * language.c: Include <algorithm>.
3799 (languages): Redefine as const array.
3800 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
3801 (set_language_command): Handle "local". Use for-range loop.
3802 (set_language): Remove loop.
3803 (language_enum): Rewrite.
3804 (language_def, language_str): Remove loops.
3805 (add_language): Delete.
3806 (add_set_language_command): New, based on add_languages.
3807 (skip_language_trampoline): Adjust.
3808 (local_language_defn): Delete.
3809 (language_gdbarch_post_init): Adjust.
3810 (_initialize_language): Remove add_language calls. Call
3811 add_set_language_command.
3812 * language.h (add_language): Delete.
3813 (auto_language_defn)
3814 (unknown_language_defn, minimal_language_defn, ada_language_defn)
3815 (asm_language_defn, c_language_defn, cplus_language_defn)
3816 (d_language_defn, f_language_defn, go_language_defn)
3817 (m2_language_defn, objc_language_defn, opencl_language_defn)
3818 (pascal_language_defn, rust_language_defn): Declare.
3819 * m2-lang.c (m2_language_defn): Make extern.
3820 (_initialize_m2_language): Remove add_language call.
3821 * objc-lang.c (objc_language_defn): Make extern.
3822 (_initialize_objc_language): Remove add_language call.
3823 * opencl-lang.c (opencl_language_defn): Make extern.
3824 (_initialize_opencl_language): Remove add_language call.
3825 * p-lang.c (pascal_language_defn): Make extern.
3826 (_initialize_pascal_language): Delete.
3827 * rust-lang.c (rust_language_defn): Make extern.
3828 (_initialize_rust_language): Delete.
3829 * utils.h (compare_cstrings): New static inline function.
3830
edb0c9cb
PA
38312017-07-20 Pedro Alves <palves@redhat.com>
3832
3833 * ada-lang.c (ada_to_fixed_type_1): Adjust.
3834 (get_var_value): Constify parameters.
3835 (get_int_var_value): Change prototype.
3836 (to_fixed_range_type): Adjust.
3837 * ada-lang.h (get_int_var_value): Change prototype.
3838
a778f165
PA
38392017-07-20 Pedro Alves <palves@redhat.com>
3840
3841 * dwarf2read.c (dw2_lookup_symbol): Use
3842 SYMBOL_MATCHES_SEARCH_NAME.
3843 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
3844
42edd901
PA
38452017-07-20 Pedro Alves <palves@redhat.com>
3846
3847 * block.c (block_iter_name_step, block_iter_name_first)
3848 (block_iter_name_next): Delete.
3849 (block_lookup_symbol_primary): Adjust to use
3850 dict_iter_match_first/dict_iter_match_next.
3851 * block.h (block_iter_name_first, block_iter_name_next): Delete
3852 declarations.
3853 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
3854 dict_iter_match_first/dict_iter_match_next.
3855
cf325299
PA
38562017-07-20 Pedro Alves <palves@redhat.com>
3857
3858 * cp-support.c (cp_find_first_component_aux): Add missing case for
3859 end of string.
3860
c5ed0576
DB
38612017-07-18 David Blaikie <dblaikie@gmail.com>
3862
3863 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
3864 of dwo_cu's dwo_file.
3865
27841e76
YQ
38662017-07-18 Yao Qi <yao.qi@linaro.org>
3867
3868 * remote.c (store_registers_using_G): Remove one line comment.
3869
cfb7e58b
YQ
38702017-07-18 Yao Qi <yao.qi@linaro.org>
3871
3872 * regcache.c (regcache_cpy): Simplify it.
3873 (regcache::cpy_no_passthrough): Remove it.
3874 * regcache.h (cpy_no_passthrough): Remove it.
3875 (regcache_dup, regcache_cpy): Update comments.
3876
386535dd
PA
38772017-07-18 Pedro Alves <palves@redhat.com>
3878
3879 * remote-sim.c (sim_command_completer): Adjust to work with a
3880 completion_tracker instead of a VEC.
3881
c45ec17c
PA
38822017-07-17 Pedro Alves <palves@redhat.com>
3883
3884 * completer.c (complete_source_filenames): New function.
3885 (complete_address_and_linespec_locations): New function.
3886 (location_completer): Use complete_address_and_linespec_locations.
3887 (completion_tracker::build_completion_result): Honor the tracker's
3888 request to suppress append.
3889 * completer.h (completion_tracker::suppress_append_ws)
3890 (completion_tracker::set_suppress_append_ws): New methods.
3891 (completion_tracker::m_suppress_append_ws): New field.
3892 (complete_source_filenames): New declaration.
3893 * linespec.c (linespec_complete_what): New.
3894 (struct ls_parser) <complete_what, completion_word,
3895 completion_quote_char, completion_quote_end, completion_tracker>:
3896 New fields.
3897 (string_find_incomplete_keyword_at_end): New.
3898 (linespec_lexer_lex_string): Record quote char. If in completion
3899 mode, don't throw.
3900 (linespec_lexer_consume_token): Advance the completion word point.
3901 (linespec_lexer_peek_token): Save/restore completion info.
3902 (save_stream_and_consume_token): New.
3903 (set_completion_after_number): New.
3904 (linespec_parse_basic): Set what to complete next depending on
3905 token. Handle function and label completions specially.
3906 (parse_linespec): Disable objc shortcut in completion mode. Set
3907 what to complete next depending on token type. Skip keyword if in
3908 completion mode.
3909 (complete_linespec_component, linespec_complete): New.
3910 * linespec.h (linespec_complete): Declare.
3911
be966d42
PA
39122017-07-17 Pedro Alves <palves@redhat.com>
3913
3914 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
3915 Handle 'operator<' / 'operator<<'.
3916
a2459270
PA
39172017-07-17 Pedro Alves <palves@redhat.com>
3918
3919 * completer.c (collect_explicit_location_matches): Handle
3920 MATCH_LABEL.
3921 (convert_explicit_location_to_linespec): New, factored out from
3922 ...
3923 (convert_explicit_location_to_sals): ... this.
3924 (complete_label): New.
3925 (linespec_complete_label, find_label_symbols_in_block): New.
3926 (find_label_symbols): Add completion_mode parameter and adjust to
3927 call find_label_symbols_in_block.
3928 * linespec.h (linespec_complete_label): Declare.
3929
c6756f62
PA
39302017-07-17 Pedro Alves <palves@redhat.com>
3931
3932 * ada-lang.c (ada_collect_symbol_completion_matches): Add
3933 complete_symbol_mode parameter.
3934 * cli/cli-cmds.c (complete_command): Get the completion result out
3935 of the handle_brkchars tracker if used a custom word point.
3936 * completer.c: Include "linespec.h".
3937 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
3938 (advance_to_expression_complete_word_point): New.
3939 (completion_tracker::completes_to_completion_word): New.
3940 (complete_files_symbols): Pass down
3941 complete_symbol_mode::EXPRESSION.
3942 (explicit_options, probe_options): New.
3943 (collect_explicit_location_matches): Complete on the
3944 explictit_loc->foo instead of word. Use
3945 linespec_complete_function. Handle MATCH_LINE. Handle offering
3946 keyword and options completions.
3947 (backup_text_ptr): Delete.
3948 (skip_keyword): New.
3949 (complete_explicit_location): Remove 'word' parameter. Add
3950 language, quoted_arg_start and quoted_arg_end parameters.
3951 Rewrite, parsing left to right.
3952 (location_completer): Rewrite.
3953 (location_completer_handle_brkchars): New function.
3954 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
3955 (enum complete_line_internal_reason): Adjust comments.
3956 (completion_tracker::discard_completions): New.
3957 (completer_handle_brkchars_func_for_completer): Handle
3958 location_completer.
3959 (gdb_custom_word_point_brkchars)
3960 (gdb_org_rl_basic_quote_characters): New.
3961 (gdb_completion_word_break_characters_throw)
3962 (completion_find_completion_word): Handle trackers that use a
3963 custom word point.
3964 (completion_tracker::advance_custom_word_point_by): New.
3965 (completion_tracker::build_completion_result): Don't rely on
3966 readline appending the quote char.
3967 (gdb_rl_attempted_completion_function_throw): Handle trackers that
3968 use a custom word point.
3969 (gdb_rl_attempted_completion_function): Restore
3970 rl_basic_quote_characters.
3971 * completer.h (class completion_tracker): Extend intro comment.
3972 (completion_tracker::set_quote_char)
3973 (completion_tracker::quote_char)
3974 (completion_tracker::set_use_custom_word_point)
3975 (completion_tracker::use_custom_word_point)
3976 (completion_tracker::custom_word_point)
3977 (completion_tracker::set_custom_word_point)
3978 (completion_tracker::advance_custom_word_point_by)
3979 (completion_tracker::completes_to_completion_word)
3980 (completion_tracker::discard_completions): New methods.
3981 (completion_tracker::m_quote_char)
3982 (completion_tracker::m_use_custom_word_point)
3983 (completion_tracker::m_custom_word_point): New fields.
3984 (advance_to_expression_complete_word_point): Declare.
3985 * f-lang.c (f_collect_symbol_completion_matches): Add
3986 complete_symbol_mode parameter.
3987 * language.h (struct language_defn)
3988 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
3989 parameter.
3990 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
3991 (linespec_complete_function): New function.
3992 (linespec_lexer_lex_keyword): Adjust.
3993 * linespec.h (linespec_keywords, linespec_complete_function): New
3994 declarations.
3995 * location.c (find_end_quote): New function.
3996 (explicit_location_lex_one): Add explicit_completion_info
3997 parameter. Save quoting info. Don't throw if being called for
3998 completion. Don't handle Ada operators here.
3999 (is_cp_operator, skip_op_false_positives, first_of)
4000 (explicit_location_lex_one_function): New function.
4001 (string_to_explicit_location): Replace 'dont_throw' parameter with
4002 an explicit_completion_info pointer parameter. Handle it. Don't
4003 use explicit_location_lex_one to lex function names. Use
4004 explicit_location_lex_one_function instead.
4005 * location.h (struct explicit_completion_info): New.
4006 (string_to_explicit_location): Replace 'dont_throw' parameter with
4007 an explicit_completion_info pointer parameter.
4008 * symtab.c (default_collect_symbol_completion_matches_break_on):
4009 Add complete_symbol_mode parameter. Handle LINESPEC mode.
4010 (default_collect_symbol_completion_matches)
4011 (collect_symbol_completion_matches): Add complete_symbol_mode
4012 parameter.
4013 (collect_symbol_completion_matches_type): Pass down
4014 complete_symbol_mode::EXPRESSION.
4015 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4016 parameter. Handle LINESPEC mode.
4017 * symtab.h (complete_symbol_mode): New.
4018 (default_collect_symbol_completion_matches_break_on)
4019 (default_collect_symbol_completion_matches)
4020 (collect_symbol_completion_matches)
4021 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4022 parameter.
4023
1d550c82
PA
40242017-07-17 Pedro Alves <palves@redhat.com>
4025
4026 * utils.c (enum class strncmp_iw_mode): New.
4027 (strcmp_iw): Rename to ...
4028 (strncmp_iw_with_mode): ... this. Add string2_len and mode
4029 parameters. Handle them.
4030 (strncmp_iw): New.
4031 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
4032 * utils.h (strncmp_iw): Declare.
4033 (strcmp_iw): Move describing comments here.
4034
8090b426
PA
40352017-07-17 Pedro Alves <palves@redhat.com>
4036
4037 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
4038 CP_OPERATOR_STR.
4039 * c-typeprint.c (is_type_conversion_operator): Use
4040 CP_OPERATOR_STR.
4041 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
4042 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
4043 CP_OPERATOR_LEN.
4044 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
4045 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
4046 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
4047 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
4048 CP_OPERATOR_STR.
4049 * location.c: Include "cp-support.h".
4050 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
4051 CP_OPERATOR_STR.
4052 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
4053 CP_OPERATOR_LEN.
4054
6a2c1b87
PA
40552017-07-17 Pedro Alves <palves@redhat.com>
4056
4057 * cli/cli-cmds.c (complete_command): Use a completion tracker
4058 along with completion_find_completion_word for handle_brkchars
4059 phase.
4060 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
4061 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
4062 (struct gdb_rl_completion_word_info): New.
4063 (gdb_rl_find_completion_word): New.
4064 (completion_find_completion_word): New.
4065 * completer.h (completion_find_completion_word): Declare.
4066
eb3ff9a5
PA
40672017-07-17 Pedro Alves <palves@redhat.com>
4068
4069 * ada-lang.c (symbol_completion_match): Adjust comments.
4070 (symbol_completion_add): Replace vector parameter with
4071 completion_tracker parameter. Use it.
4072 (ada_make_symbol_completion_list): Rename to...
4073 (ada_collect_symbol_completion_matches): ... this. Add
4074 completion_tracker parameter and use it.
4075 (ada_language_defn): Adjust.
4076 * break-catch-syscall.c (catch_syscall_completer): Adjust
4077 prototype and work with completion_tracker instead of VEC.
4078 * breakpoint.c (condition_completer): Adjust prototype and work
4079 with completion_tracker instead of VEC.
4080 * c-lang.c (c_language_defn, cplus_language_defn)
4081 (asm_language_defn, minimal_language_defn): Adjust to renames.
4082 * cli/cli-cmds.c (complete_command): Rework using
4083 completion_tracker. Catch exceptions when completing.
4084 * cli/cli-decode.c (integer_unlimited_completer)
4085 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
4086 with completion_tracker instead of VEC.
4087 * command.h (struct completion_tracker): Forward declare.
4088 (completer_ftype, completer_handle_brkchars_ftype): Change
4089 types.
4090 (complete_on_cmdlist, complete_on_enum): Adjust.
4091 * completer.c: Include <algorithm>.
4092 (struct gdb_completer_state): New.
4093 (current_completion): New global.
4094 (readline_line_completion_function): Delete.
4095 (noop_completer, filename_completer)
4096 (filename_completer_handle_brkchars, complete_files_symbols)
4097 (linespec_location_completer): Adjust to work with a
4098 completion_tracker instead of a VEC.
4099 (string_or_empty): New.
4100 (collect_explicit_location_matches): Adjust to work with a
4101 completion_tracker instead of a VEC.
4102 (explicit_location_completer): Rename to ...
4103 (complete_explicit_location): ... this and adjust to work with a
4104 completion_tracker instead of a VEC.
4105 (location_completer): Adjust to work with a completion_tracker
4106 instead of a VEC.
4107 (add_struct_fields): Adjust to work with a completion_list instead
4108 of VEC.
4109 (expression_completer): Rename to ...
4110 (complete_expression): ... this and adjust to work with a
4111 completion_tracker instead of a VEC. Use complete_files_symbols.
4112 (expression_completer): Reimplement on top of complete_expression.
4113 (symbol_completer): Adjust to work with a completion_tracker
4114 instead of a VEC.
4115 (enum complete_line_internal_reason): Add describing comments.
4116 (complete_line_internal_normal_command): Adjust to work with a
4117 completion_tracker instead of a VEC.
4118 (complete_line_internal): Rename to ...
4119 (complete_line_internal_1): ... this and adjust to work with a
4120 completion_tracker instead of a VEC. Assert TEXT is NULL in the
4121 handle_brkchars phase.
4122 (new_completion_tracker): Delete.
4123 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
4124 complete_line_internal_1.
4125 (free_completion_tracker): Delete.
4126 (INITIAL_COMPLETION_HTAB_SIZE): New.
4127 (completion_tracker::completion_tracker)
4128 (completion_tracker::~completion_tracker): New.
4129 (maybe_add_completion): Delete.
4130 (completion_tracker::maybe_add_completion)
4131 (completion_tracker::add_completion)
4132 (completion_tracker::add_completions): New.
4133 (throw_max_completions_reached_error): Delete.
4134 (complete_line): Adjust to work with a completion_tracker instead
4135 of a VEC. Don't create a completion_tracker_t or check for max
4136 completions here.
4137 (command_completer, command_completer_handle_brkchars)
4138 (signal_completer, reg_or_group_completer_1)
4139 (reg_or_group_completer, default_completer_handle_brkchars):
4140 Adjust to work with a completion_tracker.
4141 (gdb_completion_word_break_characters_throw): New.
4142 (gdb_completion_word_break_characters): Reimplement.
4143 (line_completion_function): Delete.
4144 (completion_tracker::recompute_lowest_common_denominator)
4145 (expand_preserving_ws)
4146 (completion_tracker::build_completion_result)
4147 (completion_result::completion_result)
4148 (completion_result::completion_result)
4149 (completion_result::~completion_result)
4150 (completion_result::completion_result)
4151 (completion_result::release_match_list, compare_cstrings)
4152 (completion_result::sort_match_list)
4153 (completion_result::reset_match_list)
4154 (gdb_rl_attempted_completion_function_throw)
4155 (gdb_rl_attempted_completion_function): New.
4156 * completer.h (completion_list, struct completion_result)
4157 (class completion_tracker): New.
4158 (complete_line): Add completion_tracker parameter.
4159 (readline_line_completion_function): Delete.
4160 (gdb_rl_attempted_completion_function): New.
4161 (noop_completer, filename_completer, expression_completer)
4162 (location_completer, symbol_completer, command_completer)
4163 (signal_completer, reg_or_group_completer): Update prototypes.
4164 (completion_tracker_t, new_completion_tracker)
4165 (make_cleanup_free_completion_tracker): Delete.
4166 (enum maybe_add_completion_enum): Delete.
4167 (maybe_add_completion): Delete.
4168 (throw_max_completions_reached_error): Delete.
4169 * corefile.c (complete_set_gnutarget): Adjust to work with a
4170 completion_tracker instead of a VEC.
4171 * cp-abi.c (cp_abi_completer): Adjust to work with a
4172 completion_tracker instead of a VEC.
4173 * d-lang.c (d_language_defn): Adjust.
4174 * disasm.c (disassembler_options_completer): Adjust to work with a
4175 completion_tracker instead of a VEC.
4176 * f-lang.c (f_make_symbol_completion_list): Rename to ...
4177 (f_collect_symbol_completion_matches): ... this. Adjust to work
4178 with a completion_tracker instead of a VEC.
4179 (f_language_defn): Adjust.
4180 * go-lang.c (go_language_defn): Adjust.
4181 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
4182 Adjust to work with a completion_tracker instead of a VEC.
4183 * infrun.c (handle_completer): Likewise.
4184 * interps.c (interpreter_completer): Likewise.
4185 * interps.h (interpreter_completer): Likewise.
4186 * language.c (unknown_language_defn, auto_language_defn)
4187 (local_language_defn): Adjust.
4188 * language.h (language_defn::la_make_symbol_completion_list):
4189 Rename to ...
4190 (language_defn::la_collect_symbol_completion_matches): ... this
4191 and adjust to work with a completion_tracker instead of a VEC.
4192 * m2-lang.c (m2_language_defn): Adjust.
4193 * objc-lang.c (objc_language_defn): Adjust.
4194 * opencl-lang.c (opencl_language_defn): Adjust.
4195 * p-lang.c (pascal_language_defn): Adjust.
4196 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
4197 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
4198 with a completion_tracker.
4199 * rust-lang.c (rust_language_defn): Adjust.
4200 * symtab.c (free_completion_list, do_free_completion_list)
4201 (return_val, completion_tracker): Delete.
4202 (completion_list_add_name, completion_list_add_symbol)
4203 (completion_list_add_msymbol, completion_list_objc_symbol)
4204 (completion_list_add_fields, add_symtab_completions): Add
4205 completion_tracker parameter and use it.
4206 (default_make_symbol_completion_list_break_on_1): Rename to...
4207 (default_collect_symbol_completion_matches_break_on): ... this.
4208 Add completion_tracker parameter and use it instead of allocating
4209 a completion tracker here.
4210 (default_make_symbol_completion_list_break_on): Delete old
4211 implementation.
4212 (default_make_symbol_completion_list): Delete.
4213 (default_collect_symbol_completion_matches): New.
4214 (make_symbol_completion_list): Delete.
4215 (collect_symbol_completion_matches): New.
4216 (make_symbol_completion_type): Rename to ...
4217 (collect_symbol_completion_matches_type): ... this. Add
4218 completion_tracker parameter and use it instead of VEC.
4219 (make_file_symbol_completion_list_1): Rename to...
4220 (collect_file_symbol_completion_matches): ... this. Add
4221 completion_tracker parameter and use it instead of VEC.
4222 (make_file_symbol_completion_list): Delete.
4223 (add_filename_to_list): Use completion_list instead of a VEC.
4224 (add_partial_filename_data::list): Now a completion_list.
4225 (make_source_files_completion_list): Work with a completion_list
4226 instead of a VEC.
4227 * symtab.h: Include "completer.h".
4228 (default_make_symbol_completion_list_break_on)
4229 (default_make_symbol_completion_list, make_symbol_completion_list)
4230 (make_symbol_completion_type, make_file_symbol_completion_list)
4231 (make_source_files_completion_list): Delete.
4232 (default_collect_symbol_completion_matches_break_on)
4233 (default_collect_symbol_completion_matches)
4234 (collect_symbol_completion_matches)
4235 (collect_symbol_completion_matches_type)
4236 (collect_file_symbol_completion_matches)
4237 (make_source_files_completion_list): New.
4238 * top.c (init_main): Don't install a rl_completion_entry_function
4239 hook. Install a rl_attempted_completion_function hook instead.
4240 * tui/tui-layout.c (layout_completer): Adjust to work with a
4241 completion_tracker.
4242 * tui/tui-regs.c (tui_reggroup_completer):
4243 * tui/tui-win.c (window_name_completer, focus_completer)
4244 (winheight_completer): Adjust to work with a completion_tracker.
4245 * value.c: Include "completer.h".
4246 (complete_internalvar): Adjust to work with a completion_tracker.
4247 * value.h (complete_internalvar): Likewise.
4248
6e1dbf8c
PA
42492017-07-17 Pedro Alves <palves@redhat.com>
4250
4251 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
4252 renames.
4253 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
4254 comments to completer_ftype's declaration.
4255 <completer_handle_brkchars>: Change type to
4256 completer_handle_brkchars_ftype.
4257 * command.h (completer_ftype): Add describing comment and give
4258 names to parameters.
4259 (completer_ftype_void): Rename to ...
4260 (completer_handle_brkchars_ftype) ... this. Add describing comment.
4261 (set_cmd_completer_handle_brkchars): Adjust.
4262 * completer.c (filename_completer_handle_brkchars): New function.
4263 (complete_line_internal_normal_command): New function, factored
4264 out from ...
4265 (complete_line_internal): ... here.
4266 (command_completer_handle_brkchars)
4267 (default_completer_handle_brkchars)
4268 (completer_handle_brkchars_func_for_completer): New functions.
4269 * completer.h (set_gdb_completion_word_break_characters): Delete
4270 declaration.
4271 (completer_handle_brkchars_func_for_completer): New declaration.
4272 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
4273 completer_handle_brkchars_func_for_completer.
4274
78b13106
PA
42752017-07-17 Pedro Alves <palves@redhat.com>
4276
4277 * completer.c (symbol_completer): New function, based on
4278 make_symbol_completion_list_fn.
4279 * completer.h (symbol_completer): New declaration.
4280 * guile/scm-cmd.c (cmdscm_completers): Adjust.
4281 * python/py-cmd.c (completers): Adjust.
4282 * symtab.c (make_symbol_completion_list_fn): Delete.
4283 * symtab.h (make_symbol_completion_list_fn): Delete.
4284 * cli/cli-decode.c (add_cmd): Adjust.
4285
bbf2f4df
PA
42862017-07-17 Pedro Alves <palves@redhat.com>
4287
4288 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
4289 * dwarf2read.c: Include "filename-seen-cache.h".
4290 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
4291 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
4292 * filename-seen-cache.c: New file.
4293 * filename-seen-cache.h: New file.
4294 * symtab.c: Include "filename-seen-cache.h".
4295 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
4296 (create_filename_seen_cache, clear_filename_seen_cache)
4297 (delete_filename_seen_cache, filename_seen): Delete, parts moved
4298 to filename-seen-cache.h/filename-seen-cache.c.
4299 (output_source_filename, sources_info)
4300 (maybe_add_partial_symtab_filename)
4301 (make_source_files_completion_list): Adjust to use
4302 filename_seen_cache.
4303
330cdd98
PA
43042017-07-17 Pedro Alves <palves@redhat.com>
4305
4306 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
4307 fields.
4308 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
4309 dwarf2_debug_sections*)): New.
4310 (dwarf2_per_objfile::dwarf2_per_objfile(const
4311 dwarf2_per_objfile&)): Declare as deleted.
4312 (dwarf2_per_objfile::operator=): Declare as deleted.
4313 (dwarf2_per_objfile::dwarf2_per_objfile)
4314 (dwarf2_per_objfile::~dwarf2_per_objfile)
4315 (dwarf2_per_objfile::free_cached_comp_units): New.
4316 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
4317 ctor. Call dwarf2_per_objfile's ctor manually.
4318 (dwarf2_locate_sections): Deleted/refactored as ...
4319 (dwarf2_per_objfile::locate_sections): ... this new method.
4320 (free_cached_comp_units): Defer to
4321 dwarf2_per_objfile::free_cached_comp_units.
4322 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
4323
8880f2a9
TT
43242017-07-14 Tom Tromey <tom@tromey.com>
4325
4326 PR rust/21764:
4327 * rust-exp.y (convert_ast_to_expression): Add "want_type"
4328 parameter.
4329 <UNOP_SIZEOF>: Split into separate case.
4330 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
4331
65547233
TT
43322017-07-14 Tom Tromey <tom@tromey.com>
4333
4334 PR rust/21763:
4335 * symtab.c (symbol_matches_domain): Add language_rust to special
4336 case.
4337 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
4338 treat LOC_TYPEDEF symbols as variables.
4339
8f14146e
PA
43402017-07-14 Pedro Alves <palves@redhat.com>
4341
4342 * symtab.c (make_file_symbol_completion_list_1): Iterate over
4343 symtabs matching all symtabs with SRCFILE as file name instead of
4344 only considering the first hit, with lookup_symtab.
4345
2347965c
SM
43462017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4347
4348 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
4349 operator_name parameters.
4350 (gen_expr): Update function call.
4351
40f4af28
SM
43522017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4353
4354 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
4355 parameter.
4356 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
4357 Likewise.
4358 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
4359 parameter, use agent_expr::gdbarch instead, update function
4360 calls.
4361 (locexpr_tracepoint_var_ref): Likewise.
4362 (loclist_tracepoint_var_ref): Likewise.
4363 * ax-gdb.c (gen_trace_static_fields): Likewise.
4364 (gen_traced_pop): Likewise.
4365 (gen_frame_args_address): Likewise.
4366 (gen_frame_locals_address): Likewise.
4367 (gen_var_ref): Likewise.
4368 (gen_struct_ref_recursive): Likewise.
4369 (gen_static_field): Likewise.
4370 (gen_maybe_namespace_elt): Likewise.
4371 (gen_expr): Likewise.
4372 (gen_trace_for_var): Likewise.
4373 (gen_trace_for_expr): Likewise.
4374 (gen_trace_for_return_address): Likewise.
4375
053f8057
SM
43762017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4377
4378 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
4379 parameter.
4380 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
4381
6661ad48
SM
43822017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4383
4384 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
4385 from ax, update calls.
4386 (gen_usual_arithmetic): Likewise.
4387 (gen_integral_promotions): Likewise.
4388 (gen_bitfield_ref): Likewise.
4389 (gen_primitive_field): Likewise.
4390 (gen_struct_ref_recursive): Likewise.
4391 (gen_struct_ref): Likewise.
4392 (gen_maybe_namespace_elt): Likewise.
4393 (gen_struct_elt_for_reference): Likewise.
4394 (gen_namespace_elt): Likewise.
4395 (gen_aggregate_elt_ref): Likewise.
4396 (gen_expr): Get gdbarch from ax, update calls.
4397 (gen_expr_binop_rest): Likewise.
4398
c55a47e7
PA
43992017-07-13 Pedro Alves <palves@redhat.com>
4400
4401 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
4402 as default tdesc.
4403 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
4404 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
4405 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
4406 tdesc_amd64_linux as default tdesc. Get final tdesc from the
4407 tdep.
4408 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
4409 Get final tdesc from the tdep.
4410 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
4411 default tdesc.
4412 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4413 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4414 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
4415 Use it as default tdesc.
4416 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
4417 down to amd_init_abi. No longer handle fallback tdesc here.
4418 * amd64-tdep.h (tdesc_x32): Declare.
4419 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
4420 parameter.
4421 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
4422 as default tdesc.
4423
55efceab
AA
44242017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4425
4426 * s390-linux-tdep.c (s390_process_record): Add support for
4427 instructions new in arch12.
4428
0aa37b65
JB
44292017-07-11 John Baldwin <jhb@FreeBSD.org>
4430
4431 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4432 PT_GETFSBASE and PT_GETGSBASE.
4433 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
4434 PT_SETGSBASE.
4435
48aeef91
JB
44362017-07-11 John Baldwin <jhb@FreeBSD.org>
4437
4438 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
4439 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
4440 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
4441 those rules.
4442 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
4443 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
4444 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
4445 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
4446 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
4447 * features/i386/amd64.xml: Add 64bit-segments.xml.
4448 * features/i386/amd64-avx-avx512.c: Regenerated.
4449 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
4450 * features/i386/amd64-avx-mpx.c: Regenerated.
4451 * features/i386/amd64-avx.c: Regenerated.
4452 * features/i386/amd64-mpx.c: Regenerated.
4453 * features/i386/amd64.c: Regenerated.
4454 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
4455 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4456 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
4457 * regformats/i386/amd64-avx.dat: Regenerated.
4458 * regformats/i386/amd64-mpx.dat: Regenerated.
4459 * regformats/i386/amd64.dat: Regenerated.
4460
77c501bc
YQ
44612017-07-10 Yao Qi <yao.qi@linaro.org>
4462
4463 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4464 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4465
6dc8d757
AK
44662017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
4467
4468 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
4469 unsetenv.
4470 * gnulib/aclocal.m4: Regenerate.
4471 * gnulib/config.in: Regenerate.
4472 * gnulib/configure: Regenerate.
4473 * gnulib/import/Makefile.am: Regenerate.
4474 * gnulib/import/Makefile.in: Regenerate.
4475 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4476 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4477 * gnulib/import/m4/environ.m4: New file.
4478 * gnulib/import/m4/setenv.m4: New file.
4479 * gnulib/import/setenv.c: New file.
4480 * gnulib/import/unsetenv.c: New file.
4481
266934d1
SM
44822017-07-09 Simon Marchi <simon.marchi@ericsson.com>
4483
4484 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
4485 address when op is DW_OP_addr.
4486
03278692
TT
44872017-07-09 Tom Tromey <tom@tromey.com>
4488
4489 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
4490 check and apply to outer type.
4491
4b654465
JB
44922017-07-07 John Baldwin <jhb@FreeBSD.org>
4493
4494 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
4495 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
4496 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
4497 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
4498
2af9fc44
JB
44992017-07-07 John Baldwin <jhb@FreeBSD.org>
4500
4501 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
4502
382b69bb
JB
45032017-07-07 John Baldwin <jhb@FreeBSD.org>
4504
4505 * corelow.c (get_core_siginfo): Remove.
4506 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
4507 instead of get_core_siginfo.
4508 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
4509 * gdbarch.h: Re-generate.
4510 * gdbarch.c: Re-generate.
4511 * linux-tdep.c (linux_core_xfer_siginfo): New.
4512 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
4513
6e5eab33
JB
45142017-07-07 John Baldwin <jhb@FreeBSD.org>
4515
4516 * corelow.c (thread_section_name): Move to ...
4517 * gdbcore.h (thread_section_name): ... here.
4518
929edea9
JB
45192017-07-07 John Baldwin <jhb@FreeBSD.org>
4520
4521 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
4522 (struct siginfo32): New.
4523 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
4524 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
4525 via ptrace(PT_LWPINFO).
4526
762c974a
JB
45272017-07-07 John Baldwin <jhb@FreeBSD.org>
4528
4529 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
4530 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
4531 (fbsd_get_siginfo_type): New.
4532 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4533 (_initialize_fbsd_tdep): New.
4534
33c5cd75
DB
45352017-07-06 David Blaikie <dblaikie@gmail.com>
4536
4537 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
4538 a singular dwo_unit*) to support multiple CUs in the same way that
4539 multiple TUs are supported.
4540 (create_cus_hash_table): Replace create_dwo_cu with a function for
4541 parsing multiple CUs from a DWO file.
4542 (open_and_init_dwo_file): Use create_cus_hash_table rather than
4543 create_dwo_cu.
4544 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
4545 htab_find, rather than comparing the signature to a singleton CU in
4546 the dwo_file.
4547
8455d262
PA
45482017-07-06 Pedro Alves <palves@redhat.com>
4549
4550 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
4551
4da3eb35
PA
45522017-07-04 Pedro Alves <palves@redhat.com>
4553
4554 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
4555 * gdbtypes.h (TYPE_STATIC): Delete.
4556 (struct fn_field) <is_public, is_abstract, is_static, is_final,
4557 is_synchronized, is_native>: Delete.
4558 <dummy>: Bump.
4559 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
4560 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
4561 (TYPE_FN_FIELD_ABSTRACT): Delete.
4562
5bfd255c
SM
45632017-07-03 Simon Marchi <simon.marchi@ericsson.com>
4564
4565 * buffer.h (buffer_finish): Fix spelling mistakes.
4566
25c54127
EZ
45672017-07-01 Eli Zaretskii <eliz@gnu.org>
4568
4569 * .dir-locals.el: Automatically switch to C-style comments in
4570 versions of Emacs that support the feature.
4571
dc4bde35
SDJ
45722017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4573 Pedro Alves <palves@redhat.com>
4574
4575 PR cli/21688
4576 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
4577 (process_next_line): New variable 'inline_cmd'.
4578 Adjust 'if' clauses for "python", "compile" and "guile" to use
4579 'command_name_equals' and check for '!inline_cmd'.
4580
51ed89aa
SDJ
45812017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4582
4583 PR cli/21688
4584 * cli/cli-script.c (command_name_equals_not_inline): New function.
4585 (process_next_line): Adjust 'if' clauses for "python", "compile"
4586 and "guile" to use command_name_equals_not_inline.
4587
eb17d413
PA
45882017-06-29 Pedro Alves <palves@redhat.com>
4589
4590 * completer.c (expression_completer): Call
4591 linespec_location_completer instead of location_completer.
4592
195bcdd5
PA
45932017-06-29 Pedro Alves <palves@redhat.com>
4594
4595 * completer.c (expression_completer): Remove code that recomputes
4596 'text' from 'word'.
4597
adc764e7
YQ
45982017-06-29 Yao Qi <yao.qi@linaro.org>
4599
4600 * regformats/regdat.sh: Generate code with
4601 "ifndef IN_PROCESS_AGENT".
4602
6e75794e
PA
46032017-06-28 Pedro Alves <palves@redhat.com>
4604
4605 * command.h: Include "common/scoped_restore.h".
4606
bc491f2e
YQ
46072017-06-28 Yao Qi <yao.qi@linaro.org>
4608
4609 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
4610 instead of obstack_grow.
4611
41664b45
DG
46122017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
4613
4614 PR gdb/21337
4615 * symfile.c (reread_symbols): Call objfiles_changed just before
4616 read_symbols.
4617
6da67eb1
PA
46182017-06-27 Pedro Alves <palves@redhat.com>
4619
4620 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
4621 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
4622 (completion_list_add_symbol, completion_list_add_msymbol):
4623 ... these new functions.
4624 (add_symtab_completions)
4625 (default_make_symbol_completion_list_break_on_1): Adjust.
4626
23732b1e
PA
46272017-06-27 Pedro Alves <palves@redhat.com>
4628
4629 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
4630 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
4631 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
4632 dtor.
4633 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
4634 'storage_obstack' field an auto_obstack. In-class initialize all
4635 non-bitfield fields. Make minsyms_read bool.
4636 * symfile.c (read_symbols): Adjust.
4637
a4d1e79a
AH
46382017-06-27 Alan Hayward <alan.hayward@arm.com>
4639
4640 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
4641 (gdbsim_store_register): Likewise.
4642
8268c778
PA
46432017-06-27 Pedro Alves <palves@redhat.com>
4644
4645 * c-exp.y (name_obstack): Now an auto_obstack.
4646 (yylex): Use auto_obstack::clear.
4647 (c_parse): Use auto_obstack::clear instead of reinitializing and
4648 freeing the obstack.
4649 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
4650 * d-exp.y (name_obstack): Now an auto_obstack.
4651 (yylex): Use auto_obstack::clear.
4652 (d_parse): Use auto_obstack::clear instead of reinitializing and
4653 freeing the obstack.
4654 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
4655 auto_obstack.
4656 * dwarf2read.c (create_addrmap_from_index)
4657 (dwarf2_build_psymtabs_hard)
4658 (update_enumeration_type_from_children): Likewise.
4659 * gdb_obstack.h (auto_obstack): New type.
4660 * go-exp.y (name_obstack): Now an auto_obstack.
4661 (build_packaged_name): Use auto_obstack::clear.
4662 (go_parse): Use auto_obstack::clear instead of reinitializing and
4663 freeing the obstack.
4664 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
4665 auto_obstack.
4666 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
4667 * rust-exp.y (work_obstack): Now an auto_obstack.
4668 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
4669 reinitializing and freeing the obstack.
4670 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
4671 (host_char_to_target): Use auto_obstack.
4672 * utils.h (make_cleanup_obstack_free): Delete declaration.
4673 * valprint.c (generic_emit_char, generic_printstr): Use
4674 auto_obstack.
4675
db665f42
SM
46762017-06-27 Simon Marchi <simon.marchi@ericsson.com>
4677
4678 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
4679 thread.
4680 (darwin_init_thread_list): Don't update dummy thread.
4681 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
4682
873c0814
SM
46832017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4684
4685 * record-full.c (netorder16): Remove.
4686
8b5a7a6e
SM
46872017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4688
4689 * common/diagnostics.h: Define macros for GCC.
4690 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
4691 * common/vec.h: Include diagnostics.h.
4692 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
4693 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
4694 warning.
4695
d1435379
SM
46962017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4697
4698 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
4699 New macro.
4700 * ada-lex.l: Ignore deprecated register warnings.
4701
cc75e0fd
SM
47022017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4703
4704 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
4705 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
4706
07809eaf
SM
47072017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4708
4709 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
4710 its own line.
4711
f076f034
SM
47122017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4713
4714 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
4715
0dd5cbc5
AH
47162017-06-23 Alan Hayward <alan.hayward@arm.com>
4717
4718 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
4719 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
4720 (xtensa_register_read_masked): Likewise.
4721
d4c6ce5b
SDJ
47222017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
4723
4724 * common/environ.c (gdb_environ::unset): Update comment.
4725
16892a03
AH
47262017-06-22 Alan Hayward <alan.hayward@arm.com>
4727
4728 * python/py-unwind.c (pyuw_sniffer): Allocate space for
4729 registers.
4730
d7dcbefc
AH
47312017-06-22 Alan Hayward <alan.hayward@arm.com>
4732
4733 * record-full.c (record_full_exec_insn): Use byte_vector.
4734
b30ff123
YQ
47352017-06-22 Yao Qi <yao.qi@linaro.org>
4736
4737 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
4738 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4739
4fa847d7
AH
47402017-06-22 Alan Hayward <alan.hayward@arm.com>
4741
4742 * remote.c (cached_reg): Move from here...
4743 * regcache.h (cached_reg): ...to here.
4744 * python/py-unwind.c (struct reg_info): Remove.
4745 (cached_frame_info): Use cached_reg_t.
4746 (pyuw_prev_register): Likewise.
4747 (pyuw_sniffer): Use cached_reg_t and allocate registers.
4748 (pyuw_dealloc_cache): Free all registers.
4749
f4906a9a
PA
47502017-06-22 Pedro Alves <palves@redhat.com>
4751 Simon Marchi <simon.marchi@ericsson.com>
4752
4753 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
4754 warning.
4755 * common/diagnostics.h: New file.
4756
b45a1208
PA
47572017-06-22 Pedro Alves <palves@redhat.com>
4758
4759 * common/agent.h: Add include guards.
4760
e4da2c61
SM
47612017-06-21 Simon Marchi <simon.marchi@ericsson.com>
4762
4763 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
4764 talk about addressable units instead of bytes.
4765
96160d60
SDJ
47662017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4767
4768 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
4769 of '::const_iterator'.
4770
9a6c7d9c
SDJ
47712017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4772
4773 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4774 'unittests/environ-selftests.c'.
4775 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
4776 * charset.c (find_charset_names): Declare object 'iconv_env'.
4777 Update code to use 'iconv_env' object. Remove call to
4778 'free_environ'.
4779 * common/environ.c: Include <utility>.
4780 (make_environ): Delete function.
4781 (free_environ): Delete function.
4782 (gdb_environ::clear): New function.
4783 (gdb_environ::operator=): New function.
4784 (gdb_environ::get): Likewise.
4785 (environ_vector): Delete function.
4786 (set_in_environ): Delete function.
4787 (gdb_environ::set): New function.
4788 (unset_in_environ): Delete function.
4789 (gdb_environ::unset): New function.
4790 (gdb_environ::envp): Likewise.
4791 * common/environ.h: Include <vector>.
4792 (struct gdb_environ): Delete; transform into...
4793 (class gdb_environ): ... this class.
4794 (free_environ): Delete prototype.
4795 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
4796 environ_vector): Likewise.
4797 * infcmd.c (run_command_1): Update code to call
4798 'envp' from 'gdb_environ' class.
4799 (environment_info): Update code to call methods from 'gdb_environ'
4800 class.
4801 (unset_environment_command): Likewise.
4802 (path_info): Likewise.
4803 (path_command): Likewise.
4804 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
4805 (inferior::inferior): Initialize 'environment' using the host's
4806 information.
4807 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
4808 Include "environ.h".
4809 (class inferior) <environment>: Change type from 'struct
4810 gdb_environ' to 'gdb_environ'.
4811 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
4812 methods from 'gdb_environ' class.
4813 * solib.c (solib_find_1): Likewise
4814 * unittests/environ-selftests.c: New file.
4815
75c554cf
YQ
48162017-06-20 Yao Qi <yao.qi@linaro.org>
4817
4818 * features/i386/i386-linux.xml: Exchange the order of including
4819 32bit-linux.xml and 32bit-sse.xml.
4820 * features/i386/i386-linux.c: Regenerated.
4821
72ddacb7
YQ
48222017-06-20 Yao Qi <yao.qi@linaro.org>
4823
4824 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
4825 Delete copy ctor and assignment operator.
4826 (tdesc_type): Likewise.
4827 (tdesc_feature): Likewise.
4828 (tdesc_free_reg): Remove.
4829 (tdesc_create_reg): Use new.
4830 (tdesc_free_type): Remove.
4831 (tdesc_create_vector): Use new.
4832 (tdesc_create_union): Likewise.
4833 (tdesc_create_flags): Likewise.
4834 (tdesc_create_enum): Likewise.
4835 (tdesc_free_feature): Delete.
4836 (free_target_description): Use delete.
4837
325c9fd4
JB
48382017-06-19 John Baldwin <jhb@FreeBSD.org>
4839
4840 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
4841 registers.
4842
16b7a719
PA
48432017-06-19 Pedro Alves <palves@redhat.com>
4844
4845 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
4846 after gdb::unlinker.
4847
1c8e01c9
SDJ
48482017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
4849
4850 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
4851 gdb_environ to access an environment variable.
4852
ffce45d2
TP
48532017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
4854
4855 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
4856 gdb_byte*.
4857
1d4fbac9
SM
48582017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4859
4860 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
4861
8465943a
SM
48622017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4863
4864 * configure: Re-generate.
4865 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
4866
3e019bdc
SM
48672017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4868
4869 * configure: Re-generate.
4870 * warning.m4: Pass -Werror to compiler when checking for
4871 supported warning flags.
4872
cf0dd6f0
SM
48732017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4874
4875 * Makefile.in (COMPILE.pre): Add "-x c++".
4876
6f98355c
YQ
48772017-06-16 Alan Hayward <alan.hayward@arm.com>
4878 Pedro Alves <palves@redhat.com>
4879 Yao Qi <yao.qi@linaro.org>
4880
4881 * defs.h (RequireLongest): New.
4882 (extract_integer): Declare function template.
4883 (extract_signed_integer): Remove the declaration, but define it
4884 static inline.
4885 (extract_unsigned_integer): Likewise.
4886 (store_integer): Declare function template.
4887 (store_signed_integer): Remove the declaration, but define it
4888 static inline.
4889 (store_unsigned_integer): Likewise.
4890 * findvar.c (extract_integer): New function template.
4891 (extract_signed_integer): Remove.
4892 (extract_unsigned_integer): Remove.
4893 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
4894 instantiations.
4895 (store_integer): New function template.
4896 (store_signed_integer): Remove.
4897 (store_unsigned_integer): Remove.
4898 (store_integer): Explicit instantiations.
4899 * regcache.c (regcache_raw_read_signed): Update.
4900 (regcache::raw_read): New function.
4901 (regcache::raw_read_signed): Remove.
4902 (regcache::raw_read_unsigned): Remove.
4903 (regcache_raw_read_unsigned): Update.
4904 (regcache_raw_write_unsigned): Update.
4905 (regcache::raw_write_signed): Remove.
4906 (regcache::raw_write): New function.
4907 (regcache_cooked_read_signed): Update.
4908 (regcache::raw_write_unsigned): Remove.
4909 (regcache::cooked_read_signed): Remove.
4910 (regcache_cooked_read_unsigned): Update.
4911 (regcache::cooked_read_unsigned): Remove.
4912 (regcache_cooked_write_signed): Update.
4913 (regcache_cooked_write_unsigned): Update.
4914 * regcache.h (regcache) <raw_read_signed>: Remove.
4915 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
4916 <raw_read, raw_write>: New.
4917 <cooked_read_signed, cooked_write_signed>: Remove.
4918 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
4919 <cooked_read, cooked_write>: New.
4920 * sh64-tdep.c (sh64_pseudo_register_read): Update.
4921 (sh64_pseudo_register_write): Update.
4922
a87dc45a
AK
49232017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
4924
4925 * arc-tdep.c (arc_disassembler_options): New variable.
4926 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
4927 of default_print_insn.
4928 (arc_delayed_print_insn): Set info->section when needed,
4929 use default_print_insn to retrieve a disassembler.
4930
45159d6a
SDJ
49312017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
4932
4933 PR gdb/21574
4934 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
4935 to mention $SHELL and startup-with-shell.
4936
b46c4cf0
MF
49372017-06-14 Max Filippov <jcmvbkbc@gmail.com>
4938
4939 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
4940
6394c606
YQ
49412017-06-14 Yao Qi <yao.qi@linaro.org>
4942
4943 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
4944 default_print_insn instead of print_insn_aarch64.
4945 * arm-tdep.c (gdb_print_insn_arm): Call
4946 default_print_insn instead of print_insn_big_arm
4947 and print_insn_little_arm.
4948 * i386-tdep.c (i386_print_insn): Call default_print_insn
4949 instead of print_insn_i386.
4950 * ia64-tdep.c (ia64_print_insn): Call
4951 default_print_insn instead of print_insn_ia64.
4952 * mips-tdep.c (gdb_print_insn_mips): Call
4953 default_print_insn instead of print_insn_big_mips
4954 and print_insn_little_mips.
4955 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
4956 instead of print_insn_spu.
4957
d5722aa2
PA
49582017-06-14 Pedro Alves <palves@redhat.com>
4959
4960 * ada-lang.c: Include "common/byte-vector.h".
4961 (ada_value_primitive_packed_val): Use gdb::byte_vector.
4962 * charset.c (wchar_iterator::iterate): Resize the vector instead
4963 of reserving it.
4964 * common/byte-vector.h: Include "common/def-vector.h".
4965 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
4966 * cli/cli-dump.c: Include "common/byte-vector.h".
4967 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
4968 * common/byte-vector.h: New file.
4969 * common/def-vector.h: New file.
4970 * common/default-init-alloc.h: New file.
4971 * dwarf2loc.c: Include "common/byte-vector.h".
4972 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
4973 instead of reserving it.
4974 * dwarf2read.c: Include "common/byte-vector.h".
4975 (data_buf::m_vec): Now a gdb::byte_vector.
4976 * gdb_regex.c: Include "common/def-vector.h".
4977 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
4978 * mi/mi-main.c: Include "common/byte-vector.h".
4979 (mi_cmd_data_read_memory): Use gdb::byte_vector.
4980 * printcmd.c: Include "common/byte-vector.h".
4981 (print_scalar_formatted): Use gdb::byte_vector.
4982 * valprint.c: Include "common/byte-vector.h".
4983 (maybe_negate_by_bytes, print_decimal_chars): Use
4984 gdb::byte_vector.
4985
01ec7a27
SM
49862017-06-13 Simon Marchi <simon.marchi@ericsson.com>
4987
4988 * darwin-nat.c: Include "nat/fork-inferior.h".
4989
848d9074
SM
49902017-06-13 Simon Marchi <simon.marchi@ericsson.com>
4991
4992 * configure.nat: Factor out Darwin bits that are not
4993 architecture-specific. Add fork-inferior.o.
4994
3b912944
SM
49952017-06-13 Simon Marchi <simon.marchi@ericsson.com>
4996
4997 * configure.nat: Factor out AIX bits that are not
4998 architecture-specific. Add fork-inferior.o.
4999
55acdf22
AA
50002017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5001
5002 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
5003 (read_pieced_value, write_pieced_value): ...here. Reduce to
5004 wrappers that just call rw_pieced_value.
5005
f65e2044
AA
50062017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5007
5008 * dwarf2loc.c (write_pieced_value): When writing the data for a
5009 memory piece, use write_memory_with_notification instead of
5010 write_memory.
5011
23f945bf
AA
50122017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5013
5014 * valops.c (read_value_memory): Change embedded_offset to
5015 represent a bit offset instead of a byte offset.
5016 * value.h (read_value_memory): Adjust comment.
5017
f236533e
AA
50182017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5019
5020 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
5021 dest_offset_bits and source_offset_bits.
5022 (write_pieced_value): Likewise.
5023
65d84b76
AA
50242017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5025
5026 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
5027 given by DW_OP_bit_piece.
5028 (write_pieced_value): Likewise.
5029
242d31ab
AA
50302017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5031
5032 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
5033 some other preparations to the places where sufficient information
5034 is available.
5035 (write_pieced_value): Likewise.
5036
03c8af18
AA
50372017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5038
5039 * dwarf2loc.c (bits_to_bytes): New function.
5040 (read_pieced_value): Fix offset calculations for register pieces
5041 on big-endian targets.
5042 (write_pieced_value): Likewise.
5043
840989c1
AA
50442017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5045
5046 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
5047 (write_pieced_value): Likewise.
5048
359b19bb
AA
50492017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5050
5051 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
5052 transfer the source value's least significant bits, instead of its
5053 lowest-addressed ones. Rename type_len to max_offset.
5054 (read_pieced_value): Mirror above changes to write_pieced_value as
5055 applicable.
5056
07c9ca3b
AA
50572017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5058
5059 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
5060 truncate full bytes from dest_offset_bits before using it as an
5061 offset into the buffer.
5062
f1cc9874
AA
50632017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5064
5065 * dwarf2loc.c (write_pieced_value): Include transfer size in
5066 byte-wise check.
5067
cdaac320
AA
50682017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5069
5070 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
5071 calculation of this_size.
5072
af547a96
AA
50732017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5074
5075 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
5076 when targeting a bit-field.
5077 (write_pieced_value): Likewise.
5078
ddd7882a
AA
50792017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5080
5081 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
5082 (allocate_piece_closure): Drop addr_size parameter.
5083 (dwarf2_evaluate_loc_desc_full): Adjust call to
5084 allocate_piece_closure.
5085
e9352324
AA
50862017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5087
5088 PR gdb/21226
5089 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
5090 the LSB end, independent of endianness.
5091
d5d1163e
AA
50922017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5093
5094 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
5095 size capping.
5096
032bb6ea
YQ
50972017-06-13 Yao Qi <yao.qi@linaro.org>
5098
5099 * mips-linux-nat.c: Move include features/mips*-linux.c to
5100 mips-linux-tdep.c.
5101 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
5102 to mips-linux-tdep.c.
5103 * mips-linux-tdep.c: Include features/mips*-linux.c
5104 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
5105 functions.
5106 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
5107 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
5108 (tdesc_mips64_dsp_linux): Declare.
5109
f12f6bad
TT
51102017-06-12 Tom Tromey <tom@tromey.com>
5111
5112 * valprint.h (val_print_type_code_int): Remove.
5113 * valprint.c (generic_val_print_int): Always call
5114 val_print_scalar_formatted.
5115 (val_print_type_code_int): Remove.
5116 * printcmd.c (print_scalar_formatted): Handle options->format==0.
5117 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
5118 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
5119 * ada-valprint.c (ada_val_print_num): Use
5120 val_print_scalar_formatted.
5121
d9109c80
TT
51222017-06-12 Tom Tromey <tom@tromey.com>
5123
5124 * printcmd.c (print_scalar_formatted): Unify the two switches.
5125 Don't convert scalars to LONGEST.
5126
4ac0cb1c
TT
51272017-06-12 Tom Tromey <tom@tromey.com>
5128
5129 PR exp/16225:
5130 * valprint.h (print_decimal_chars): Update.
5131 * valprint.c (maybe_negate_by_bytes): New function.
5132 (print_decimal_chars): Add "is_signed" argument.
5133 * printcmd.c (print_scalar_formatted): Update.
5134
30a25466
TT
51352017-06-12 Tom Tromey <tom@tromey.com>
5136
5137 PR exp/16225:
5138 * valprint.h (print_binary_chars, print_hex_chars): Update.
5139 * valprint.c (val_print_type_code_int): Update.
5140 (print_binary_chars): Add "zero_pad" argument.
5141 (emit_octal_digit): New function.
5142 (print_octal_chars): Don't zero-pad.
5143 (print_decimal_chars): Likewise.
5144 (print_hex_chars): Add "zero_pad" argument.
5145 * sh64-tdep.c (sh64_do_fp_register): Update.
5146 * regcache.c (regcache::dump): Update.
5147 * printcmd.c (print_scalar_formatted): Update.
5148 * infcmd.c (default_print_one_register_info): Update.
5149
b3464d03
PA
51502017-06-12 Pedro Alves <palves@redhat.com>
5151 Alan Hayward <alan.hayward@arm.com>
5152
5153 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
5154 (mips_eabi_push_dummy_call): Rename local 'regsize' to
5155 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
5156 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
5157 Assert that abi_regsize bytes fit in 'ref_valbuf'.
5158
4b76cda9
PA
51592017-06-12 Pedro Alves <palves@redhat.com>
5160
5161 * dwarf2read.c (mapped_symtab::data): Now a vector of
5162 symtab_index_entry instead of vector of
5163 std::unique_ptr<symtab_index_entry>. All users adjusted to check
5164 whether an element's name is NULL instead of checking whether the
5165 element itself is NULL.
5166 (find_slot): Change return type. Adjust.
5167 (hash_expand, , add_index_entry, uniquify_cu_indices)
5168 (write_hash_table): Adjust.
5169
e8f8bcb3
PA
51702017-06-12 Pedro Alves <palves@redhat.com>
5171
5172 * dwarf2read.c (recursively_count_psymbols): New function.
5173 (write_psymtabs_to_index): Call it to compute number of psyms and
5174 pass estimate size of psyms_seen to unordered_set's ctor.
5175
70a1152b
PA
51762017-06-12 Pedro Alves <palves@redhat.com>
5177
5178 * dwarf2read.c (write_hash_table): Check if key already exists
5179 before emplacing.
5180
c2f134ac
PA
51812017-06-12 Pedro Alves <palves@redhat.com>
5182
5183 * dwarf2read.c (data_buf::append_space): Rename to...
5184 (data_buf::grow): ... this, and make private. Adjust all callers.
5185 (data_buf::append_uint): New method.
5186 (add_address_entry, write_one_signatured_type)
5187 (write_psymtabs_to_index): Use it.
5188
a81e6d4d
PA
51892017-06-12 Pedro Alves <palves@redhat.com>
5190
5191 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
5192 (file_write (FILE *, const std::vector<Elem>&)): Delete.
5193 (data_buf::file_write): Call ::fwrite directly.
5194
6fd931f2
PA
51952017-06-12 Pedro Alves <palves@redhat.com>
5196
5197 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
5198 std::vector::erase.
5199
bc8f2430
JK
52002017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5201
5202 Code cleanup: C++ify .gdb_index producer.
5203 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
5204 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
5205 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
5206 (create_strtab, add_string): Remove.
5207 (file_write, data_buf): New.
5208 (struct symtab_index_entry): Use std::vector for cu_indices.
5209 (struct mapped_symtab): Use std::vector for data.
5210 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
5211 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
5212 Remove.
5213 (find_slot): Change return type. Update it to the new data structures.
5214 (hash_expand, add_index_entry): Update it to the new data structures.
5215 (offset_type_compare): Remove.
5216 (uniquify_cu_indices): Update it to the new data structures.
5217 (c_str_view, c_str_view_hasher, vector_hasher): New.
5218 (add_indices_to_cpool): Remove.
5219 (write_hash_table): Update it to the new data structures.
5220 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
5221 (eq_psymtab_cu_index): Remove.
5222 (psym_index_map): New typedef.
5223 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
5224 reference and std::unordered_map for cu_index_htab.
5225 (add_address_entry, add_address_entry_worker, write_address_map)
5226 (write_psymbols): Update it to the new data structures.
5227 (write_obstack): Remove.
5228 (struct signatured_type_index_data): Change types_list to a data_buf
5229 reference and psyms_seen to a std::unordered_set reference.
5230 (write_one_signatured_type, recursively_write_psymbols)
5231 (write_psymtabs_to_index): Update it to the new data structures.
5232
c4dcb155
SM
52332017-06-11 Simon Marchi <simon.marchi@ericsson.com>
5234
5235 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
5236 separate-debug-file commands.
5237 * symfile.h (separate_debug_file_debug): New global.
5238 * symfile.c (separate_debug_file_debug): New global.
5239 (separate_debug_file_exists, find_separate_debug_file): Add
5240 debug output.
5241 (_initialize_symfile): Add "set debug separate-debug-file"
5242 command.
5243 * build-id.c (build_id_to_debug_bfd,
5244 find_separate_debug_file_by_buildid): Add debug output.
5245
6d45d4b4
SM
52462017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5247
5248 * gdbarch.sh (displaced_step_free_closure): Remove.
5249 * gdbarch.h, gdbarch.c: Re-generate.
5250 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
5251 displaced_step_free_closure.
5252 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
5253 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5254 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5255 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
5256 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5257 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5258 * arch-utils.h (simple_displaced_step_free_closure): Remove.
5259 * arch-utils.c (simple_displaced_step_free_closure): Remove.
5260 * infrun.c (displaced_step_clear): Call xfree instead of
5261 gdbarch_displaced_step_free_closure.
5262
2f91880f
SDJ
52632017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
5264
5265 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
5266 NULL".
5267
b8b6e72f
AH
52682017-06-08 Alan Hayward <alan.hayward@arm.com>
5269
5270 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
5271 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
5272 (mn10300_push_dummy_call): Likewise.
5273
5369082e
AH
52742017-06-08 Alan Hayward <alan.hayward@arm.com>
5275
5276 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
5277
ff4ca5ac
AH
52782017-06-08 Alan Hayward <alan.hayward@arm.com>
5279
5280 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
5281
aefd8b33
SDJ
52822017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5283
5284 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
5285 able to start inferiors using a shell.
5286 (New remote packets): Announce new packet "QStartupWithShell".
5287 * remote.c: Add PACKET_QStartupWithShell.
5288 (extended_remote_create_inferior): Handle new
5289 PACKET_QStartupWithShell.
5290 (remote_protocol_features) <QStartupWithShell>: New entry for
5291 PACKET_QStartupWithShell.
5292 (_initialize_remote): Call "add_packet_config_cmd" for
5293 QStartupShell.
5294
2090129c
SDJ
52952017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5296 Pedro Alves <palves@redhat.com>
5297
5298 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
5299 and "nat/fork-inferior.h".
5300 * common/common-inferior.h: New file, with contents from
5301 "gdb/inferior.h".
5302 * commom/common-utils.c: Include "common-utils.h".
5303 (stringify_argv): New function.
5304 * common/common-utils.h (stringify_argv): New prototype.
5305 * configure.nat: Add "fork-inferior.o" as a dependency for
5306 "*linux*", "fbsd*" and "nbsd*" hosts.
5307 * corefile.c (get_exec_file): Update comment.
5308 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
5309 instead of "startup_inferior".
5310 (darwin_create_inferior): Call "add_thread_silent" after
5311 "fork_inferior".
5312 * fork-child.c: Cleanup unnecessary includes.
5313 (SHELL_FILE): Move to "common/common-fork-child.c".
5314 (environ): Likewise.
5315 (exec_wrapper): Initialize.
5316 (get_exec_wrapper): New function.
5317 (breakup_args): Move to "common/common-fork-child.c"; rename to
5318 "breakup_args_for_exec".
5319 (escape_bang_in_quoted_argument): Move to
5320 "common/common-fork-child.c".
5321 (saved_ui): New variable.
5322 (prefork_hook): New function.
5323 (postfork_hook): Likewise.
5324 (postfork_child_hook): Likewise.
5325 (gdb_startup_inferior): Likewise.
5326 (fork_inferior): Move to "common/common-fork-child.c". Update
5327 function to support gdbserver.
5328 (startup_inferior): Likewise.
5329 * gdbcore.h (get_exec_file): Remove declaration.
5330 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
5331 instead of "startup_inferior". Call "add_thread_silent" after
5332 "fork_inferior".
5333 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
5334 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
5335 instead of "startup_inferior". Call "add_thread_silent" after
5336 "fork_inferior".
5337 * inferior.h: Include "common-inferior.h".
5338 (trace_start_error): Move to "common/common-utils.h".
5339 (trace_start_error_with_name): Likewise.
5340 (fork_inferior): Move prototype to "nat/fork-inferior.h".
5341 (startup_inferior): Likewise.
5342 (gdb_startup_inferior): New prototype.
5343 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
5344 * nat/fork-inferior.h: New file.
5345 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
5346 instead of "startup_inferior". Call "add_thread_silent" after
5347 "fork_inferior".
5348 * target.h (target_terminal_init): Move prototype to
5349 "target/target.h".
5350 (target_terminal_inferior): Likewise.
5351 (target_terminal_ours): Likewise.
5352 * target/target.h (target_terminal_init): New prototype, moved
5353 from "target.h".
5354 (target_terminal_inferior): Likewise.
5355 (target_terminal_ours): Likewise.
5356 * utils.c (gdb_flush_out_err): New function.
5357
043a4934
SDJ
53582017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5359
5360 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
5361 * common/common-gdbthread.h: New file, with parts from
5362 "gdb/gdbthread.h".
5363 * gdbthread.h: Include "common-gdbthread.h".
5364 (switch_to_thread): Moved to "common/common-gdbthread.h".
5365
15652511
SDJ
53662017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5367
5368 * Makefile.in (SFILES): Add "common/job-control.c".
5369 (HFILES_NO_SRCDIR): Add "common/job-control.h".
5370 (COMMON_OBS): Add "job-control.o".
5371 * common/job-control.c: New file, with contents from
5372 "gdb/inflow.c".
5373 * common/job-control.h: New file, with contents from "terminal.h".
5374 * fork-child.c: Include "job-control.h".
5375 * inflow.c: Include "job-control.h".
5376 (gdb_setpgid): Move to "common/common-inflow.c".
5377 (_initialize_inflow): Move setting of "job_control" to
5378 "handle_job_control".
5379 * terminal.h (job_control): Moved to "common/common-terminal.h".
5380 (gdb_setpgid): Likewise.
5381 * top.c: Include "job_control.h".
5382 * utils.c: Likewise.
5383 (job_control): Moved to "job-control.c".
5384
2d7cc5c7
PA
53852017-06-07 Pedro Alves <palves@redhat.com>
5386
5387 * Makefile.in (SFILES): Add gdb_regex.c.
5388 (COMMON_OBS): Add gdb_regex.o.
5389 * ada-lang.c (ada_add_standard_exceptions)
5390 (ada_add_exceptions_from_frame, name_matches_regex)
5391 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
5392 parameter type to compiled_regex. Adjust.
5393 (ada_exceptions_list): Use compiled_regex.
5394 * break-catch-throw.c (exception_catchpoint::pattern): Now a
5395 std::unique_ptr<compiled_regex>.
5396 (exception_catchpoint::~exception_catchpoint): Remove regfree
5397 call.
5398 (check_status_exception_catchpoint): Adjust to use compiled_regex.
5399 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
5400 * breakpoint.c (solib_catchpoint::compiled): Now a
5401 std::unique_ptr<compiled_regex>.
5402 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
5403 (check_status_catch_solib): Adjust to use compiled_regex.
5404 (add_solib_catchpoint): Adjust to use compiled_regex.
5405 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
5406 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
5407 compiled_regex reference. Adjust to use it.
5408 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
5409 declaration. Include "gdb_regex.h".
5410 (apropos_cmd): Change regex parameter to compiled_regex reference.
5411 * gdb_regex.c: New file.
5412 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
5413 declarations.
5414 (class compiled_regex): New.
5415 * linux-tdep.c: Include "common/gdb_optional.h".
5416 (struct mapping_regexes): New, factored out from
5417 mapping_is_anonymous_p, and adjusted to use compiled_regex.
5418 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
5419 gdb::optional and remove cleanups. Adjust to compiled_regex.
5420 * probe.c: Include "common/gdb_optional.h".
5421 (collect_probes): Use compiled_regex and gdb::optional and remove
5422 cleanups.
5423 * skip.c: Include "common/gdb_optional.h".
5424 (skiplist_entry::compiled_function_regexp): Now a
5425 gdb::optional<compiled_regex>.
5426 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
5427 (free_skiplist_entry): Remove regfree call.
5428 (compile_skip_regexp, skip_rfunction_p): Adjust to use
5429 compiled_regex and gdb::optional.
5430 * symtab.c: Include "common/gdb_optional.h".
5431 (search_symbols): Use compiled_regex and gdb::optional.
5432 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
5433 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
5434 to gdb_regex.c.
5435
50d6adef
AH
54362017-06-07 Alan Hayward <alan.hayward@arm.com>
5437
5438 * regcache.c (regcache::save): Avoid buffer use.
5439 (regcache::dump): Likewise.
5440
4a8a33c8
AH
54412017-06-07 Alan Hayward <alan.hayward@arm.com>
5442
5443 * sh-tdep.c (sh_pseudo_register_read): Remove
5444 MAX_REGISTER_SIZE.
5445 (sh_pseudo_register_write): Likewise.
5446 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
5447 (sh64_pseudo_register_write): Likewise
5448
d1be909e
AH
54492017-06-07 Alan Hayward <alan.hayward@arm.com>
5450
5451 * aarch64-tdep.c (aarch64_store_return_value): Use
5452 V_REGISTER_SIZE.
5453 (aarch64_pseudo_read_value): Likewise.
5454 (aarch64_pseudo_write): Likewise.
5455
f4a65042
YQ
54562017-06-06 Yao Qi <yao.qi@linaro.org>
5457
5458 * regformats/regdef.h (set_register_cache): Remove the
5459 declaration.
5460
9f7fb0aa
AH
54612017-06-06 Alan Hayward <alan.hayward@arm.com>
5462
5463 * frame.c (frame_unwind_register_signed): Use
5464 frame_unwind_register_value.
5465
e1e01040
PA
54662017-06-06 Pedro Alves <palves@redhat.com>
5467
5468 PR breakpoints/21553
5469 * breakpoint.c (create_breakpoints_sal_default)
5470 (init_breakpoint_sal, create_breakpoint_sal): Use
5471 gdb::unique_xmalloc_ptr for string parameters.
5472 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5473 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
5474 (base_breakpoint_create_breakpoints_sal)
5475 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
5476 (strace_marker_create_breakpoints_sal)
5477 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
5478 string parameters.
5479 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
5480 gdb::unique_xmalloc_ptr for string parameters.
5481 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5482 parameters.
5483
fbe654c8
AH
54842017-06-06 Alan Hayward <alan.hayward@arm.com>
5485
5486 * alpha-tdep.c (alpha_register_to_value): Use
5487 get_frame_register_value.
5488 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
5489
ae0d01d6
AH
54902017-06-06 Alan Hayward <alan.hayward@arm.com>
5491
5492 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
5493 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
5494 (ia64_value_to_register): Likewise.
5495 (ia64_extract_return_value): Likewise.
5496 (ia64_store_return_value): Likewise.
5497 (ia64_push_dummy_call): Likewise.
5498
49cf576c
JB
54992017-06-04 Joel Brobecker <brobecker@adacore.com>
5500
5501 GDB 8.0 released.
5502
26b6a6ab
SM
55032017-06-03 Simon Marchi <simon.marchi@ericsson.com>
5504
5505 * x86-linux-nat.c (struct arch_lwp_info): Remove.
5506
22827c51
SM
55072017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
5508
5509 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
5510 parameter.
5511 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
5512
0e05cf3a
SM
55132017-06-02 Simon Marchi <simon.marchi@ericsson.com>
5514
5515 * event-loop.c (poll_timers): Unallocate timer using delete
5516 instead of xfree.
5517
c1fc2657
SM
55182017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5519
5520 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
5521 (struct breakpoint) <~breakpoint>: New.
5522 (struct watchpoint): Inherit from breakpoint.
5523 <~watchpoint>: New.
5524 <base>: Remove.
5525 (struct tracepoint): Inherit from breakpoint.
5526 <base>: Remove.
5527 * breakpoint.c (longjmp_breakpoint_ops): Remove.
5528 (struct longjmp_breakpoint): Inherit from breakpoint.
5529 <~longjmp_breakpoint>: New.
5530 <base>: Remove.
5531 (new_breakpoint_from_type): Remove casts.
5532 (watchpoint_in_thread_scope): Remove reference to base field.
5533 (watchpoint_del_at_next_stop): Likewise.
5534 (update_watchpoint): Likewise.
5535 (watchpoint_check): Likewise.
5536 (bpstat_check_watchpoint): Likewise.
5537 (set_longjmp_breakpoint): Likewise.
5538 (struct fork_catchpoint): Inherit from breakpoint.
5539 <base>: Remove.
5540 (struct solib_catchpoint): Inherit from breakpoint.
5541 <~solib_catchpoint>: New.
5542 <base>: Remove.
5543 (dtor_catch_solib): Change to ...
5544 (solib_catchpoint::~solib_catchpoint): ... this.
5545 (breakpoint_hit_catch_solib): Remove reference to base field.
5546 (add_solib_catchpoint): Likewise.
5547 (create_fork_vfork_event_catchpoint): Likewise.
5548 (struct exec_catchpoint): Inherit from breakpoint.
5549 <~exec_catchpoint>: New.
5550 <base>: Remove.
5551 (dtor_catch_exec): Change to ...
5552 (exec_catchpoint::~exec_catchpoint): ... this.
5553 (dtor_watchpoint): Change to ...
5554 (watchpoint::~watchpoint): ... this.
5555 (watch_command_1): Remove reference to base field.
5556 (catch_exec_command_1): Likewise.
5557 (base_breakpoint_dtor): Change to ...
5558 (breakpoint::~breakpoint): ... this.
5559 (base_breakpoint_ops): Remove dtor field value.
5560 (longjmp_bkpt_dtor): Change to ...
5561 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
5562 (strace_marker_create_breakpoints_sal): Remove reference to base
5563 field.
5564 (delete_breakpoint): Don't manually call breakpoint destructor.
5565 (create_tracepoint_from_upload): Remove reference to base field.
5566 (trace_pass_set_count): Likewise.
5567 (initialize_breakpoint_ops): Don't initialize
5568 momentary_breakpoint_ops, don't set dtors.
5569 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
5570 <~ada_catchpoint>: New.
5571 <base>: Remove.
5572 (create_excep_cond_exprs): Remove reference to base field.
5573 (dtor_exception): Change to ...
5574 (ada_catchpoint::~ada_catchpoint): ... this.
5575 (dtor_catch_exception): Remove.
5576 (dtor_catch_exception_unhandled): Remove.
5577 (dtor_catch_assert): Remove.
5578 (create_ada_exception_catchpoint): Remove reference to base
5579 field.
5580 (initialize_ada_catchpoint_ops): Don't set dtors.
5581 * break-catch-sig.c (struct signal_catchpoint): Inherit from
5582 breakpoint.
5583 <~signal_catchpoint>: New.
5584 <base>: Remove.
5585 (signal_catchpoint_dtor): Change to ...
5586 (signal_catchpoint::~signal_catchpoint): ... this.
5587 (create_signal_catchpoint): Remove reference to base field.
5588 (initialize_signal_catchpoint_ops): Don't set dtor.
5589 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
5590 from breakpoint.
5591 <~syscall_catchpoint>: New.
5592 <base>: Remove.
5593 (dtor_catch_syscall): Change to ...
5594 (syscall_catchpoint::~syscall_catchpoint): ... this.
5595 (create_syscall_event_catchpoint): Remove reference to base
5596 field.
5597 (initialize_syscall_catchpoint_ops): Don't set dtor.
5598 * break-catch-throw.c (struct exception_catchpoint): Inherit
5599 from breakpoint.
5600 <~exception_catchpoint>: New.
5601 <base>: Remove.
5602 (dtor_exception_catchpoint): Change to ...
5603 (exception_catchpoint::~exception_catchpoint): ... this.
5604 (handle_gnu_v3_exceptions): Remove reference to base field.
5605 (initialize_throw_catchpoint_ops): Don't set dtor.
5606 * ctf.c (ctf_get_traceframe_address): Remove reference to base
5607 field.
5608 * remote.c (remote_get_tracepoint_status): Likewise.
5609 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
5610 * tracefile.c (tracefile_fetch_registers): Likewise.
5611 * tracepoint.c (actions_command): Likewise.
5612 (validate_actionline): Likewise.
5613 (tfind_1): Likewise.
5614 (get_traceframe_location): Likewise.
5615 (find_matching_tracepoint_location): Likewise.
5616 (parse_tracepoint_status): Likewise.
5617 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
5618
3b0871f4
SM
56192017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5620
5621 * breakpoint.c (struct longjmp_breakpoint): New struct.
5622 (is_tracepoint_type): Change return type to bool.
5623 (is_longjmp_type): New function.
5624 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
5625 (set_raw_breakpoint_without_location): Use
5626 new_breakpoint_from_type.
5627 (set_raw_breakpoint): Likewise.
5628
a5e364af
SM
56292017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5630
5631 * breakpoint.c (new_breakpoint_from_type): New function.
5632 (create_breakpoint_sal): Use new_breakpoint_from_type and
5633 unique_ptr.
5634 (create_breakpoint): Likewise.
5635
ae3b3f34
SM
56362017-05-31 Simon Marchi <simon.marchi@ericsson.com>
5637
5638 * memattr.c (mem_info_command): Rename to ...
5639 (info_mem_command): ... this.
5640 (mem_enable_command): Rename to ...
5641 (enable_mem_command): ... this.
5642 (mem_disable_command): Rename to ...
5643 (disable_mem_command): ... this.
5644 (mem_delete_command): Rename to ...
5645 (delete_mem_command): ... this.
5646 (_initialize_mem): Adjust function names.
5647
13ace077
MM
56482017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5649
5650 * btrace.c (handle_pt_insn_events): New.
5651 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
5652 STATUS. Split into this and ...
5653 (handle_pt_insn_event_flags): ... this.
5654
c56ccc05
MM
56552017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5656
5657 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
5658 and struct pt_insn.resynced.
5659 * configure: Regenerated.
5660 * config.in: Regenerated.
5661
08c3f6d2
TW
56622017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5663
5664 * btrace.c (ftrace_find_call_by_number): New function.
5665 (ftrace_new_function): Store objects, not pointers.
5666 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
5667 ftrace_new_gap, ftrace_update_function,
5668 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
5669 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
5670 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
5671 btrace_ends_with_single_insn, btrace_call_get): Account for
5672 btrace_thread_info::functions now storing objects.
5673 * btrace.h (struct btrace_thread_info): Add constructor.
5674 (struct btrace_thread_info) <functions>: Make std::vector.
5675 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
5676 Initialize with default values.
5677 * record-btrace.c (record_btrace_frame_sniffer): Account for
5678 btrace_thread_info::functions now storing objects.
5679
8ffd39f2
TW
56802017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5681
5682 * btrace.c: Remove typedef bfun_s.
5683 (ftrace_new_gap): Directly add gaps to the list of gaps.
5684 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
5685 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
5686 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
5687 instead of gdb VEC.
5688
4aeb0dfc
TW
56892017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5690
5691 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
5692 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
5693 with btrace_thread_info::next_segment and
5694 btrace_thread_info::prev_segment.
5695 * btrace.h: Remove struct btrace_func_link.
5696 (struct btrace_function): Replace pair of function segment pointers
5697 with pair of indices.
5698 * python/py-record-btrace.c (btpy_call_prev_sibling,
5699 btpy_call_next_sibling): Replace references to
5700 btrace_thread_info::segment with btrace_thread_info::next_segment and
5701 btrace_thread_info::prev_segment.
5702 * record-btrace.c (record_btrace_frame_this_id): Use
5703 btrace_find_call_by_number.
5704
eb8f2b9c
TW
57052017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5706
5707 * btrace.c (ftrace_new_function, ftrace_fixup_level,
5708 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
5709 btrace_insn_next, btrace_insn_prev): Remove references to
5710 btrace_thread_info::flow.
5711 * btrace.h (struct btrace_function): Remove FLOW.
5712
42bfe59e
TW
57132017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5714
5715 * btrace.c (ftrace_find_call_by_number): New function.
5716 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
5717 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
5718 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
5719 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
5720 index.
5721 * btrace.h (struct btrace_function): Turn UP into an index.
5722 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
5723 as an index.
5724 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
5725 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
5726 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
5727
b54b03bd
TW
57282017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5729
5730 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5731 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5732 ftrace_update_function, ftrace_compute_global_level_offset,
5733 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
5734 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
5735 btrace_insn_end, btrace_is_empty): Remove references to
5736 btrace_thread_info::begin and btrace_thread_info::end.
5737 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
5738 (struct btrace_thread_info) <functions>: Adjust comment.
5739 * record-btrace.c (record_btrace_start_replaying): Remove reference to
5740 btrace_thread_info::begin.
5741
8286623c
TW
57422017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5743
5744 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5745 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5746 ftrace_update_function): Remove arguments that implicitly were always
5747 BTINFO->END.
5748 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
5749 Don't pass BTINFO->END.
5750
a0f1b963
TW
57512017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5752
5753 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
5754 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
5755 btrace_find_insn_by_number): Replace function segment pointer with
5756 index.
5757 (btrace_insn_cmp): Simplify.
5758 * btrace.h: (struct btrace_insn_iterator) Rename index to
5759 insn_index. Replace function segment pointer with index into function
5760 segment vector.
5761 * record-btrace.c (record_btrace_call_history): Replace function
5762 segment pointer use with index.
5763 (record_btrace_frame_sniffer): Retrieve function call segment through
5764 vector.
5765 (record_btrace_set_replay): Remove defunc't safety check.
5766
f158f208
TW
57672017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5768
5769 * btrace.c (btrace_ends_with_single_insn): New function.
5770 (btrace_call_get, btrace_call_number, btrace_call_begin,
5771 btrace_call_end, btrace_call_next, btrace_call_prev,
5772 btrace_find_call_by_number): Use index into call segment vector
5773 instead of pointer.
5774 (btrace_call_cmp): Simplify.
5775 * btrace.h (struct btrace_call_iterator): Replace function call segment
5776 pointer with index into vector.
5777 * record-btrace.c (record_btrace_call_history): Use index instead of
5778 pointer.
5779
521103fd
TW
57802017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5781
5782 * btrace.c (btrace_insn_begin, btrace_insn_end,
5783 btrace_find_insn_by_number): Add btinfo to iterator.
5784 * btrace.h (struct btrace_insn_iterator): Add btinfo.
5785
17b89b34
TW
57862017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5787
5788 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
5789 and save pointers directly.
5790 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
5791 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
5792 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
5793 changed signature of functions.
5794 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
5795 (btrace_fetch): Remove code that adds btrace_function pointers to
5796 vector of btrace_functions.
5797 (btrace_clear): Simplify freeing vector of btrace_functions.
5798
2b51eddc
TW
57992017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5800
5801 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
5802 Replace VEC_* with std::vector functions.
5803 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
5804 (struct btrace_thread_info)<functions>: Change type to std::vector.
5805
db6be0d5
SM
58062017-05-30 Simon Marchi <simon.marchi@ericsson.com>
5807
5808 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
5809 "Removed targets and native configurations" up. Merge duplicate
5810 "New commands" sub-sections. Add "New options" sub-sections.
5811
b057297a
AH
58122017-05-26 Alan Hayward <alan.hayward@arm.com>
5813
5814 * defs.h (copy_integer_to_size): New declaration.
5815 * findvar.c (copy_integer_to_size): New function.
5816 (do_cint_test): New selftest function.
5817 (copy_integer_to_size_test): Likewise.
5818 (_initialize_findvar): Likewise.
5819 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
5820 (mips_fbsd_collect_reg): Use raw_collect_integer.
5821 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
5822 (mips64_fill_gregset): Use raw_collect_integer
5823 (mips64_fill_fpregset): Use raw_supply_integer.
5824 * regcache.c (regcache::raw_supply_integer): New function.
5825 (regcache::raw_collect_integer): Likewise.
5826 * regcache.h: (regcache::raw_supply_integer): New declaration.
5827 (regcache::raw_collect_integer): Likewise.
5828
b77b02a5
YQ
58292017-05-24 Yao Qi <yao.qi@linaro.org>
5830
5831 * Makefile.in (SFILES): Add gdbarch-selftests.c.
5832 (COMMON_OBS): Add gdbarch-selftests.o.
5833 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
5834 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
5835 * gdbarch-selftests.c: New file.
5836 * regcache.h (regcache) <~regcache>: Mark it virtual if
5837 GDB_SELF_TEST.
5838 <raw_write>: Likewise.
5839
e521e87e
YQ
58402017-05-24 Yao Qi <yao.qi@linaro.org>
5841
5842 * regcache.c (current_regcache): Change it to
5843 regcache::current_regcache.
5844 (regcache_observer_target_changed): Update.
5845 (regcache_thread_ptid_changed): Make it a regcache static
5846 method.
5847 (regcache_thread_ptid_changed): Update.
5848 (class regcache_access): New.
5849 (current_regcache_test): Update.
5850 (_initialize_regcache): Update.
5851 * regcache.h: Include forward_list.
5852 (regcache): Declare regcache_thread_ptid_changed and declare
5853 registers_changed_ptid as friend.
5854
d8e07dda
YQ
58552017-05-24 Yao Qi <yao.qi@linaro.org>
5856
5857 * i387-tdep.c (i387_register_to_value): Use register_size
5858 instead of TYPE_LENGTH.
5859 * m68k-tdep.c (m68k_register_to_value): Likewise.
5860
8c8f9122
YQ
58612017-05-24 Yao Qi <yao.qi@linaro.org>
5862
5863 * i387-tdep.c (i387_convert_register_p): Return false if type
5864 code isn't TYPE_CODE_FLT.
5865
68fce50f
YQ
58662017-05-24 Yao Qi <yao.qi@linaro.org>
5867
5868 * alpha-tdep.c (alpha_convert_register_p): Return true if type
5869 length is 4.
5870 (alpha_register_to_value): Remove type length check.
5871 (alpha_value_to_register): Likewise.
5872
88954b49
YQ
58732017-05-24 Yao Qi <yao.qi@linaro.org>
5874
5875 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
5876 TYPE_CODE_FLT.
5877
e3ec9b69
YQ
58782017-05-24 Yao Qi <yao.qi@linaro.org>
5879
5880 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
5881 TYPE_CODE_FLT or not.
5882
cdd238da
YQ
58832017-05-24 Yao Qi <yao.qi@linaro.org>
5884
5885 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
5886 * avr-tdep.c (avr_gdbarch_init): Likewise.
5887 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5888 * cris-tdep.c (cris_gdbarch_init): Likewise.
5889 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5890 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
5891 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
5892 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5893 * mep-tdep.c (mep_gdbarch_init): Likewise.
5894 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
5895 * mips-tdep.c (mips_gdbarch_init): Likewise.
5896 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5897 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
5898 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
5899 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5900 * v850-tdep.c (v850_gdbarch_init): Likewise.
5901
7a3929c4
YQ
59022017-05-24 Yao Qi <yao.qi@linaro.org>
5903
5904 * selftest-arch.c (tests_with_arch): Call registers_changed
5905 and reinit_frame_cache.
5906 * selftest.c (run_self_tests): Likewise.
5907
f4985dba
YQ
59082017-05-24 Yao Qi <yao.qi@linaro.org>
5909
5910 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
5911 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
5912
ab20fa4a
YQ
59132017-05-24 Yao Qi <yao.qi@linaro.org>
5914
5915 * rl78-tdep.c (rl78_gdbarch_init): Don't call
5916 set_gdbarch_print_insn.
5917
f532ab94
YQ
59182017-05-24 Yao Qi <yao.qi@linaro.org>
5919
5920 * h8300-tdep.c (h8300_gdbarch_init): Don't call
5921 set_gdbarch_print_insn.
5922
39503f82
YQ
59232017-05-24 Yao Qi <yao.qi@linaro.org>
5924
5925 * alpha-tdep.c (alpha_gdbarch_init): Don't call
5926 set_gdbarch_print_insn.
5927 * arc-tdep.c (arc_gdbarch_init): Likewise.
5928 * arch-utils.c: include dis-asm.h.
5929 (default_print_insn): New function.
5930 * arch-utils.h (default_print_insn): Declare.
5931 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
5932 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5933 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
5934 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
5935 * frv-tdep.c (frv_gdbarch_init): Likewise.
5936 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5937 * gdbarch.sh (print_insn): Use default_print_insn.
5938 * gdbarch.c: Regenerated.
5939 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
5940 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
5941 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
5942 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
5943 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
5944 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
5945 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
5946 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
5947 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
5948 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
5949 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5950 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
5951 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
5952 * mt-tdep.c (mt_gdbarch_init): Likewise.
5953 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
5954 * nios2-tdep.c (nios2_print_insn): Remove.
5955 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
5956 * rx-tdep.c (rx_gdbarch_init): Likewise.
5957 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5958 * score-tdep.c (score_print_insn): Remove.
5959 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
5960 * sh-tdep.c (sh_gdbarch_init): Likewise.
5961 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5962 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
5963 * tic6x-tdep.c (tic6x_print_insn): Remove.
5964 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
5965 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
5966 * v850-tdep.c (v850_gdbarch_init): Likewise.
5967 * vax-tdep.c (vax_gdbarch_init): Likewise.
5968 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5969 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
5970
f7241d4f
JB
59712017-05-23 John Baldwin <jhb@FreeBSD.org>
5972
5973 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
5974 (MIPS_FP0_REGNUM): Remove.
5975 (MIPS_FSR_REGNUM): Remove.
5976 (mips_fbsd_supply_fpregs): Use mips_regnum.
5977 (mips_fbsd_supply_gregs): Likewise.
5978 (mips_fbsd_collect_fpregs): Likewise.
5979 (mips_fbsd_collect_gregs): Likewise.
5980
d489d81d
JB
59812017-05-23 John Baldwin <jhb@FreeBSD.org>
5982
5983 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
5984 (getpfpregs_supplies): New function.
5985 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
5986 getfpregs_supplies.
5987 (mips_fbsd_store_inferior_registers): Likewise.
5988
e11b3cdc
PA
59892017-05-22 Pedro Alves <palves@redhat.com>
5990
5991 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
5992 maintainer.
5993
0f068fb5
AH
59942017-05-22 Alan Hayward <alan.hayward@arm.com>
5995
5996 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
5997 (store_register): Likewise.
5998 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
5999 (get_decimal_float_return_value): Likewise.
6000 (do_ppc_sysv_return_value): Likewise.
6001 (ppc64_sysv_abi_push_integer): Likewise.
6002 (ppc64_sysv_abi_push_freg): Likewise.
6003 (ppc64_sysv_abi_return_value_base): Likewise.
6004 (ppc64_sysv_abi_return_value): Likewise.
6005 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
6006 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
6007 * rs6000-nat.c: Likewise.
6008 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
6009 (rs6000_value_to_register): Likewise.
6010 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
6011
e6cf65f2
TT
60122017-05-21 Tom Tromey <tom@tromey.com>
6013
6014 PR rust/21466:
6015 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
6016 arrays as "[T]", not "[T; ]".
6017
43cc5389
TT
60182017-05-19 Tom Tromey <tom@tromey.com>
6019
6020 PR rust/21484:
6021 * rust-lang.c (exp_descriptor_rust): New function.
6022 (rust_language_defn): Use it.
6023 * p-lang.c (pascal_language_defn): Update.
6024 * opencl-lang.c (opencl_language_defn): Update.
6025 * objc-lang.c (objc_language_defn): Update.
6026 * m2-lang.c (m2_language_defn): Update.
6027 * language.h (struct language_defn)
6028 <la_watch_location_expression>: New member.
6029 * language.c (unknown_language_defn, auto_language_defn)
6030 (local_language_defn): Update.
6031 * go-lang.c (go_language_defn): Update.
6032 * f-lang.c (f_language_defn): Update.
6033 * d-lang.c (d_language_defn): Update.
6034 * c-lang.h (c_watch_location_expression): Declare.
6035 * c-lang.c (c_watch_location_expression): New function.
6036 (c_language_defn, cplus_language_defn, asm_language_defn)
6037 (minimal_language_defn): Use it.
6038 * breakpoint.c (watch_command_1): Call
6039 la_watch_location_expression.
6040 * ada-lang.c (ada_language_defn): Update.
6041
7a6e7fcc
RO
60422017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6043
6e7e1744
RO
6044 PR tui/21482
6045 * gdb_curses.h (NOMACROS): Define.
6046 (NCURSES_NOMACROS): Define.
6047
60482017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6049
6050 PR tui/21482
7a6e7fcc
RO
6051 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
6052 arg to char *.
6053 * tui/tui-wingeneral.c (box_win): Likewise.
6054 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
6055 (tui_show_source_line): Likewise.
6056 (tui_show_exec_info_content): Likewise.
6057
1933fd8e
VM
60582017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
6059
6060 * sparc-tdep.c (sparc_structure_return_p)
6061 (sparc_arg_on_registers_p): New functions.
6062 (sparc32_store_arguments): Use them.
6063 * sparc64-tdep.c (sparc64_16_byte_align_p)
6064 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
6065 Handle TYPE_CODE_ARRAY.
6066
21873064
YQ
60672017-05-17 Yao Qi <yao.qi@linaro.org>
6068
6069 * cli/cli-decode.c (add_alias_cmd): New function.
6070 * command.h (add_alias_cmd): Declare.
6071 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
6072 instead call add_alias_cmd.
6073
2b351b19
PA
60742017-05-17 Pedro Alves <palves@redhat.com>
6075
6076 * Makefile.in (nat_extra_makefile_frag): Rename to ...
6077 (nat_makefile_frag): ... this. All references updated.
6078 * configure.ac: Likewise.
6079 * configure.nat: Likewise. Enhance comments.
6080 * configure: Regenerate.
6081
5f2ad7a3
RO
60822017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6083
6084 * procfs.c (procfs_create_inferior): Change prototype to match
6085 definition.
6086
adf3dde5
EZ
60872017-05-13 Eli Zaretskii <eliz@gnu.org>
6088
6089 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
6090 C++ compiler warning.
6091
6830f270
TT
60922017-05-12 Tom Tromey <tom@tromey.com>
6093
6094 PR rust/21483:
6095 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
6096 recurse, just call value_struct_elt directly.
6097
68f2f2e3
TT
60982017-05-12 Tom Tromey <tom@tromey.com>
6099
6100 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
6101 OP_RUST_ARRAY>: Fix.
6102
256afbc2
TT
61032017-05-12 Tom Tromey <tom@tromey.com>
6104
6105 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
6106
94bb8dfe
YQ
61072017-05-09 Yao Qi <yao.qi@linaro.org>
6108
6109 * regcache.c: Include <forward_list>.
6110 (struct regcache_list): Remove.
6111 (current_regcache): Update.
6112 (get_thread_arch_aspace_regcache): Update for std::forward_list.
6113 (regcache_thread_ptid_changed): Likewise.
6114 (registers_changed_ptid): Likewise.
6115 (current_regcache_size): Likewise.
6116
8248946c
YQ
61172017-05-09 Yao Qi <yao.qi@linaro.org>
6118
6119 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
6120 (current_regcache_size): New function.
6121 (current_regcache_test): New function.
6122 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
6123
313c5961
AH
61242017-05-08 Alan Hayward <alan.hayward@arm.com>
6125
6126 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
6127 (print_gp_register_row): Use get_frame_register_value.
6128
27bfc1d1
AH
61292017-05-08 Alan Hayward <alan.hayward@arm.com>
6130
6131 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
6132 (mips_supply_fpregset): Likewise.
6133 (mips64_supply_gregset): Likewise.
6134
146e6c5c
AH
61352017-05-08 Alan Hayward <alan.hayward@arm.com>
6136
6137 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
6138 regcache->raw_supply_zeroed.
6139
e50f25ec
SDJ
61402017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6141
6142 * configure.nat: Rearrange 'case' statements to match
6143 host before cpu.
6144
21ea5acd
SDJ
61452017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6146
6147 * Makefile.in: Remove "@host_makefile_frag@". Add variables
6148 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
6149 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
6150 "@nat_extra_makefile_frag@".
6151 (Makefile): Remove dependency on "@frags@".
6152 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
6153 (data-directory/Makefile): Likewise.
6154 * config/aarch64/linux.mh: Deleted; moved contents to
6155 "gdb/configure.nat".
6156 * config/alpha/alpha-linux.mh: Likewise.
6157 * config/alpha/nbsd.mh: Likewise.
6158 * config/arm/linux.mh: Likewise.
6159 * config/arm/nbsdelf.mh: Likewise.
6160 * config/i386/cygwin.mh: Likewise.
6161 * config/i386/cygwin64.mh: Likewise.
6162 * config/i386/darwin.mh: Likewise.
6163 * config/i386/fbsd.mh: Likewise.
6164 * config/i386/fbsd64.mh: Likewise.
6165 * config/i386/go32.mh: Likewise.
6166 * config/i386/i386gnu.mh: Likewise.
6167 * config/i386/i386sol2.mh: Likewise.
6168 * config/i386/linux.mh: Likewise.
6169 * config/i386/linux64.mh: Likewise.
6170 * config/i386/mingw.mh: Likewise.
6171 * config/i386/mingw64.mh: Likewise.
6172 * config/i386/nbsd64.mh: Likewise.
6173 * config/i386/nbsdelf.mh: Likewise.
6174 * config/i386/nto.mh: Likewise.
6175 * config/i386/obsd.mh: Likewise.
6176 * config/i386/obsd64.mh: Likewise.
6177 * config/i386/sol2-64.mh: Likewise.
6178 * config/ia64/linux.mh: Likewise.
6179 * config/m32r/linux.mh: Likewise.
6180 * config/m68k/linux.mh: Likewise.
6181 * config/m68k/nbsdelf.mh: Likewise.
6182 * config/m68k/obsd.mh: Likewise.
6183 * config/m88k/obsd.mh: Likewise.
6184 * config/mips/fbsd.mh: Likewise.
6185 * config/mips/linux.mh: Likewise.
6186 * config/mips/nbsd.mh: Likewise.
6187 * config/mips/obsd64.mh: Likewise.
6188 * config/pa/linux.mh: Likewise.
6189 * config/pa/nbsd.mh: Likewise.
6190 * config/pa/obsd.mh: Likewise.
6191 * config/powerpc/aix.mh: Likewise.
6192 * config/powerpc/fbsd.mh: Likewise.
6193 * config/powerpc/linux.mh: Likewise.
6194 * config/powerpc/nbsd.mh: Likewise.
6195 * config/powerpc/obsd.mh: Likewise.
6196 * config/powerpc/ppc64-linux.mh: Likewise.
6197 * config/powerpc/spu-linux.mh: Likewise.
6198 * config/s390/linux.mh: Likewise.
6199 * config/sh/nbsd.mh: Likewise.
6200 * config/sparc/fbsd.mh: Likewise.
6201 * config/sparc/linux.mh: Likewise.
6202 * config/sparc/linux64.mh: Likewise.
6203 * config/sparc/nbsd64.mh: Likewise.
6204 * config/sparc/nbsdelf.mh: Likewise.
6205 * config/sparc/obsd64.mh: Likewise.
6206 * config/sparc/sol2.mh: Likewise.
6207 * config/tilegx/linux.mh: Likewise.
6208 * config/vax/nbsdelf.mh: Likewise.
6209 * config/vax/obsd.mh: Likewise.
6210 * config/xtensa/linux.mh: Likewise.
6211 * config/i386/i386gnu.mn: New file, with excerpts from
6212 "config/i386/i386gnu.mh".
6213 * configure: Regenerate.
6214 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
6215 *.mh files under "gdb/config".
6216 * configure.nat: New file, with contents from the
6217 "gdb/config/*/*.mh" files.
6218
7ed1acaf
TW
62192017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
6220
6221 * btrace.c (btrace_clear): Free insn vector.
6222
e13cb306
PA
62232017-05-05 Pedro Alves <palves@redhat.com>
6224
6225 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
6226 * configure: Regenerate.
6227
5ed8105e
PA
62282017-05-04 Pedro Alves <palves@redhat.com>
6229
6230 * Makefile.in (SFILES): Add progspace-and-thread.c.
6231 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
6232 (COMMON_OBS): Add progspace-and-thread.o.
6233 * breakpoint.c: Include "progspace-and-thread.h".
6234 (update_inserted_breakpoint_locations)
6235 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
6236 Use scoped_restore_current_pspace_and_thread.
6237 (create_std_terminate_master_breakpoint): Use
6238 scoped_restore_current_program_space.
6239 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
6240 (print_breakpoint_location): Use
6241 scoped_restore_current_program_space.
6242 (bp_loc_is_permanent): Use
6243 scoped_restore_current_pspace_and_thread.
6244 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
6245 (download_tracepoint_locations): Use
6246 scoped_restore_current_pspace_and_thread.
6247 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
6248 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
6249 (enum step_over_calls_kind): Moved from inferior.h.
6250 (class scoped_restore_current_thread): New class.
6251 * gdbthread.h (make_cleanup_restore_current_thread): Delete
6252 declaration.
6253 (scoped_restore_current_thread): New class.
6254 * infcmd.c: Include "common/gdb_optional.h".
6255 (continue_1, proceed_after_attach): Use
6256 scoped_restore_current_thread.
6257 (notice_new_inferior): Use scoped_restore_current_thread.
6258 * inferior.c: Include "progspace-and-thread.h".
6259 (restore_inferior, save_current_inferior): Delete.
6260 (add_inferior_command, clone_inferior_command): Use
6261 scoped_restore_current_pspace_and_thread.
6262 * inferior.h (scoped_restore_current_inferior): New class.
6263 * infrun.c: Include "progspace-and-thread.h" and
6264 "common/gdb_optional.h".
6265 (follow_fork_inferior): Use
6266 scoped_restore_current_pspace_and_thread.
6267 (scoped_restore_exited_inferior): New class.
6268 (handle_vfork_child_exec_or_exit): Use
6269 scoped_restore_exited_inferior,
6270 scoped_restore_current_pspace_and_thread,
6271 scoped_restore_current_thread and scoped_restore.
6272 (fetch_inferior_event): Use scoped_restore_current_thread.
6273 * linespec.c (decode_line_full, decode_line_1): Use
6274 scoped_restore_current_program_space.
6275 * mi/mi-main.c: Include "progspace-and-thread.h".
6276 (exec_continue): Use scoped_restore_current_thread.
6277 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
6278 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
6279 * proc-service.c (ps_pglobal_lookup): Use
6280 scoped_restore_current_program_space.
6281 * progspace-and-thread.c: New file.
6282 * progspace-and-thread.h: New file.
6283 * progspace.c (release_program_space, clone_program_space): Use
6284 scoped_restore_current_program_space.
6285 (restore_program_space, save_current_program_space)
6286 (save_current_space_and_thread): Delete.
6287 (switch_to_program_space_and_thread): Moved to
6288 progspace-and-thread.c.
6289 * progspace.h (save_current_program_space)
6290 (save_current_space_and_thread): Delete declarations.
6291 (scoped_restore_current_program_space): New class.
6292 * remote.c (remote_btrace_maybe_reopen): Use
6293 scoped_restore_current_thread.
6294 * symtab.c: Include "progspace-and-thread.h".
6295 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
6296 * thread.c (print_thread_info_1): Use
6297 scoped_restore_current_thread.
6298 (struct current_thread_cleanup): Delete.
6299 (do_restore_current_thread_cleanup)
6300 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
6301 (scoped_restore_current_thread::~scoped_restore_current_thread):
6302 ... this new dtor.
6303 (make_cleanup_restore_current_thread): Rename/convert to ...
6304 (scoped_restore_current_thread::scoped_restore_current_thread):
6305 ... this new ctor.
6306 (thread_apply_all_command): Use scoped_restore_current_thread.
6307 (thread_apply_command): Use scoped_restore_current_thread.
6308 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
6309 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
6310
f6223dbb
PA
63112017-05-04 Pedro Alves <palves@redhat.com>
6312
6313 * thread.c (make_cleanup_restore_current_thread): Move
6314 find_thread_ptid call before the is_stopped call. Assert that the
6315 thread is found. Replace is_stopped call by checking the thread's
6316 state directly. Remove unnecessary NULL-thread check.
6317
3c3ae77e
PA
63182017-05-04 Pedro Alves <palves@redhat.com>
6319
6320 * corelow.c (thread_section_name): New class.
6321 (get_core_register_section, get_core_siginfo): Use it.
6322
45eba0ab
AA
63232017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6324
6325 * corelow.c (sniff_core_bfd): Remove extra semicolon.
6326 (get_core_register_section): Remove xfree of NULL pointer.
6327
f81fdd35
AH
63282017-05-03 Alan Hayward <alan.hayward@arm.com>
6329
6330 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
6331 * regcache.c (regcache::raw_supply_zeroed): New function.
6332 * regcache.h (regcache::raw_supply_zeroed): New declaration.
6333
35837774
SM
63342017-05-03 Simon Marchi <simon.marchi@ericsson.com>
6335
6336 * gdbarch.sh: Remove commented out definition of
6337 TARGET_CHAR_BIT.
6338 * gdbarch.h: Re-generate.
6339
c94fee56
SDJ
63402017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6341
6342 * configure: Regenerate.
6343
d17f7b36
SM
63442017-05-02 Simon Marchi <simon.marchi@ericsson.com>
6345
6346 * solib-target.c (solib_target_relocate_section_addresses):
6347 Remove num_section_bases, num_bases, segment_bases variables.
6348
b560ebd6
SM
63492017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6350
6351 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
6352
f2f46dfc
SM
63532017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6354
6355 * solib-target.c: Include <vector>
6356 (struct lm_info_target) <~lm_info_target>: Remove.
6357 <segment_bases, section_bases>: Change type to
6358 std::vector<CORE_ADDR>.
6359 (library_list_start_segment, library_list_start_section,
6360 library_list_end_library,
6361 solib_target_relocate_section_addresses): Adjust.
6362
a0ff9e1a
SM
63632017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6364
6365 * gdbarch.sh (software_single_step): Change return type to
6366 std::vector<CORE_ADDR>.
6367 * gdbarch.c, gdbarch.h: Re-generate.
6368 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
6369 Adjust.
6370 (arm_deal_with_atomic_sequence_raw): Adjust.
6371 (thumb_get_next_pcs_raw): Adjust.
6372 (arm_get_next_pcs_raw): Adjust.
6373 (arm_get_next_pcs): Adjust.
6374 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
6375 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
6376 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
6377 (alpha_software_single_step): Adjust.
6378 * alpha-tdep.h (alpha_software_single_step): Adjust.
6379 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
6380 * arm-tdep.c (arm_software_single_step): Adjust.
6381 (arm_breakpoint_kind_from_current_state): Adjust.
6382 * arm-tdep.h (arm_software_single_step): Adjust.
6383 * breakpoint.c (insert_single_step_breakpoint): Adjust.
6384 * cris-tdep.c (cris_software_single_step): Adjust.
6385 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
6386 (micromips_deal_with_atomic_sequence): Adjust.
6387 (deal_with_atomic_sequence): Adjust.
6388 (mips_software_single_step): Adjust.
6389 * mips-tdep.h (mips_software_single_step): Adjust.
6390 * moxie-tdep.c (moxie_software_single_step): Adjust.
6391 * nios2-tdep.c (nios2_software_single_step): Adjust.
6392 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
6393 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
6394 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
6395 * s390-linux-tdep.c (s390_software_single_step): Adjust.
6396 * sparc-tdep.c (sparc_software_single_step): Adjust.
6397 * spu-tdep.c (spu_software_single_step): Adjust.
6398 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
6399
ea480a30
SM
64002017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6401
6402 * gdbarch.sh: Use semi-colon as field separator instead of colon.
6403 * gdbarch.h: Re-generate.
6404
d050f7d7
TW
64052017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6406
6407 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
6408 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
6409 * python/py-instruction.c, python/py-instruction.h: New file.
6410 * python/py-record.c: Add py-instruction.h include.
6411 (gdbpy_initialize_record): Make gdb.Instruction a super class of
6412 gdb.RecordInstruction.
6413 * python/python-internal.h: Add gdbpy_initialize_instruction
6414 declaration.
6415 * python/python.c (do_start_initialization): Add
6416 gdbpy_initialize_instruction.
6417
14f819c8
TW
64182017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6419
6420 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
6421 Remove.
6422 (btrace_func_from_recpy_func): New function.
6423 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
6424 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
6425 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
6426 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
6427 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
6428 Also, use new helper functions.
6429 (btpy_list_item): Use new helper functions.
6430 (recpy_bt_function_call_history): Use new type name.
6431 (btpy_call_getset): Remove.
6432 (gdbpy_initialize_btrace): Remove code to initialize
6433 gdb.BtraceFunctionCall.
6434 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
6435 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
6436 recpy_bt_func_prev, recpy_bt_func_next): New export.
6437 * python/py-record.c (recpy_func_type): New static object.
6438 (recpy_func_new, recpy_func_level, recpy_func_symbol,
6439 recpy_func_instructions, recpy_func_up, recpy_func_prev,
6440 recpy_func_next): New function.
6441 (recpy_element_hash, recpy_element_richcompare): Updated comment.
6442 (recpy_func_getset): New static object.
6443 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
6444 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
6445
0ed5da75
TW
64462017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6447
6448 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
6449 (btpy_object, btpy_insn_type, btpy_new): Remove.
6450 (btpy_list_object): Use gdb.RecordInstruction type instead of
6451 gdb.BtraceInstruction type.
6452 (btrace_insn_from_recpy_insn): New function.
6453 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
6454 btpy_new.
6455 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
6456 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
6457 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
6458 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
6459 instead of btpy_object.
6460 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6461 btpy_insn_data, btpy_insn_decode): Rename to ...
6462 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
6463 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
6464 recpy_bt_insn_decode): This. Also, use new helper functions.
6465 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
6466 recpy_insn_type.
6467 (btpy_insn_getset): Remove.
6468 (gdbpy_initialize_btrace): Remove code to initialize
6469 gdb.BtraceInstruction. Use recpy_element_object.
6470 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
6471 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
6472 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
6473 * python/py-record.c (recpy_insn_type): New static object.
6474 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
6475 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
6476 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
6477 New function.
6478 (recpy_insn_getset): New static object.
6479 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
6480 * python/py-record.h (recpy_element_object): New typedef.
6481 (recpy_insn_type, recpy_insn_new): New export.
6482
913aeadd
TW
64832017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6484
6485 * py-record-btrace.c (btpy_insn_new): Removed.
6486 (btpy_insn_or_gap_new): New function.
6487 (btpy_insn_error): Removed.
6488 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6489 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
6490 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
6491 btpy_insn_or_gap_new instead of btpy_insn_new.
6492 (btpy_insn_getset): Remove btpy_insn_error.
6493 * py-record.c (recpy_gap_type): New static object.
6494 (recpy_gap_object): New typedef.
6495 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
6496 recpy_gap_reason_string): New function.
6497 (recpy_gap_getset): New static object.
6498 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
6499 * py-record.h (recpy_gap_new): New export.
6500
a3be24ad
TW
65012017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6502
6503 * python/py-record.c (recpy_ptid): Remove.
6504 (recpy_record_getset): Remove recpy_ptid.
6505
ae20e79a
TW
65062017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6507
6508 * btrace.c (btrace_fetch): Set inferior_ptid.
6509 * python/py-record-btrace.c: Add "py-record.h" include.
6510 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
6511 recpy_bt_end, recpy_bt_instruction_history,
6512 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
6513 in gdb.Record object instead of current ptid.
6514 * python/py-record.c: Include new "py-record.h" file.
6515 (recpy_record_object): Moved to py-record.h.
6516 * python/py-record.h: New file.
6517
8d0050ea
TW
65182017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6519
6520 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
6521 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
6522 indentation.
6523
3f380b50
JB
65242017-05-01 Joel Brobecker <brobecker@adacore.com>
6525
6526 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
6527 the past maintainers section.
6528
07495424
YQ
65292017-04-28 Yao Qi <yao.qi@linaro.org>
6530
6531 * infcmd.c (get_return_value): Use regcache ctor, and remove
6532 cleanup.
6533
deb1fa3e
YQ
65342017-04-28 Yao Qi <yao.qi@linaro.org>
6535 Pedro Alves <palves@redhat.com>
6536
6537 * regcache.c (regcache::regcache): New tag dispatch ctor.
6538 (do_cooked_read): Moved above.
6539 (regcache_dup): Use the tag dispatch ctor..
6540 * regcache.h (regcache): Declare ctor, delete copy ctor and
6541 assignment operator, remove friend regcache_dup.
6542
b421c83c
YQ
65432017-04-28 Yao Qi <yao.qi@linaro.org>
6544
6545 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
6546 call method save instead of regcache_cpy.
6547 * regcache.h (struct regcache): Make regcache_dup a friend.
6548
ef79d9a3
YQ
65492017-04-28 Yao Qi <yao.qi@linaro.org>
6550
6551 * regcache.c (struct regcache): Move to regcache.h
6552 (regcache::arch): New method.
6553 (regcache_get_ptid): Update.
6554 (get_regcache_arch): Call arch method.
6555 (get_regcache_aspace): Call method aspace.
6556 (register_buffer): Change it to method.
6557 (regcache_save): Change it to regcache::save.
6558 (regcache_restore): Likewise.
6559 (regcache_cpy_no_passthrough): Remove the declaration.
6560 (regcache_cpy): Call methods restore and cpy_no_passthrough.
6561 (regcache_cpy_no_passthrough): Change it to method
6562 cpy_no_passthrough.
6563 (regcache_register_status): Change it to method
6564 get_register_status.
6565 (regcache_invalidate): Change it to method invalidate.
6566 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
6567 (regcache_raw_update): Change it to method raw_update.
6568 (regcache_raw_read): Likewise.
6569 (regcache_raw_read_signed): Likewise.
6570 (regcache_raw_read_unsigned): Likewise.
6571 (regcache_raw_write_signed): Likewise.
6572 (regcache_raw_write_unsigned): Likewise.
6573 (regcache_cooked_read): Likewise.
6574 (regcache_cooked_read_value): Likewise.
6575 (regcache_cooked_read_signed): Likewise.
6576 (regcache_cooked_read_unsigned): Likewise.
6577 (regcache_cooked_write_signed): Likewise.
6578 (regcache_cooked_write_unsigned): Likewise.
6579 (regcache_raw_set_cached_value): Likewise.
6580 (regcache_raw_write): Likewise.
6581 (regcache_cooked_write): Likewise.
6582 (regcache_xfer_part): Likewise.
6583 (regcache_raw_read_part): Likewise.
6584 (regcache_raw_write_part): Likewise.
6585 (regcache_cooked_read_part): Likewise.
6586 (regcache_cooked_write_part): Likewise.
6587 (regcache_raw_supply): Likewise.
6588 (regcache_raw_collect): Likewise.
6589 (regcache_transfer_regset): Likewise.
6590 (regcache_supply_regset): Likewise.
6591 (regcache_collect_regset): Likewise.
6592 (regcache_debug_print_register): Likewise.
6593 (enum regcache_dump_what): Move it to regcache.h.
6594 (regcache_dump): Change it to method dump.
6595 * regcache.h (enum regcache_dump_what): New.
6596 (class regcache): New.
6597 * target.c (target_fetch_registers): Call method
6598 debug_print_register.
6599 (target_store_registers): Likewise.
6600
f8fdb78e
SM
66012017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6602
6603 * windows-nat.c (struct lm_info_windows): Initialize field.
6604 (windows_make_so): Allocate lm_info_windows with new.
6605 (windows_free_so): Free lm_info_windows with delete.
6606
9ccbfd7b
SM
66072017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6608
6609 * solib-darwin.c (struct lm_info_darwin): Initialize field.
6610 (darwin_current_sos): Allocate lm_info_darwin with new, remove
6611 cleanup.
6612 (darwin_free_so): Free lm_info_darwin with delete.
6613
76e75227
SM
66142017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6615
6616 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
6617 <l_addr_p>: Change type to bool.
6618 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
6619 (svr4_free_so): Free lm_info_svr4 with delete.
6620 (svr4_copy_library_list): Replace memcpy with call to copy
6621 constructor.
6622 (library_list_start_library, svr4_default_sos): Allocate
6623 lm_info_svr4 with new.
6624
51046d9e
SM
66252017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6626
6627 * solib-target.c (struct lm_info_target): Add destructor,
6628 initialize fields.
6629 <name>: Change type to std::string.
6630 (library_list_start_library): Allocate lm_info_target with new.
6631 (solib_target_free_library_list): Free lm_info_target with
6632 delete.
6633 (solib_target_current_sos): Adapt to std::string.
6634 (solib_target_free_so): Free lm_info_target with delete.
6635
4023ae76
SM
66362017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6637
6638 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
6639 fields.
6640 (frv_current_sos): Allocate lm_info_frv with new.
6641 (frv_relocate_main_executable): Free lm_info_frv with delete,
6642 allocate with new.
6643 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
6644
af43057b
SM
66452017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6646
6647 * solib-frv.c (struct lm_info_frv): Fix indentation.
6648
b0911207
SM
66492017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6650
6651 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
6652 map field.
6653 (dsbt_current_sos): Allocate lm_info_dsbt with new.
6654 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
6655 and allocate with new.
6656 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
6657
6c401f72
SM
66582017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6659
6660 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
6661 <filename, member_name>: Change type to std::string.
6662 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
6663 (library_list_start_library): Allocate lm_info_aix with new.
6664 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
6665 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
6666 with copy constructor.
6667
d0e449a1
SM
66682017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6669
6670 * solist.h (struct lm_info): Remove.
6671 (struct lm_info_base): New class.
6672 (struct so_list) <lm_info>: Change type to lm_info_base *.
6673 * nto-tdep.c (struct lm_info): Remove.
6674 (lm_addr): Adjust.
6675 * solib-aix.c (struct lm_info): Rename to ...
6676 (struct lm_info_aix): ... this. Extend lm_info_base.
6677 (lm_info_p): Rename to ...
6678 (lm_info_aix_p): ... this, and adjust.
6679 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
6680 solib_aix_parse_libraries, library_list_start_library,
6681 solib_aix_free_library_list, solib_aix_parse_libraries,
6682 solib_aix_get_library_list,
6683 solib_aix_relocate_section_addresses, solib_aix_free_so,
6684 solib_aix_get_section_offsets,
6685 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
6686 Adjust.
6687 (struct solib_aix_inferior_data) <library_list>: Adjust.
6688 * solib-darwin.c (struct lm_info): Rename to ...
6689 (struct lm_info_darwin): ... this. Extend lm_info_base.
6690 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
6691 * solib-dsbt.c (struct lm_info): Rename to ...
6692 (struct lm_info_dsbt): ... this. Extend lm_info_base.
6693 (struct dsbt_info) <main_executable_lm_info): Adjust.
6694 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
6695 dsbt_relocate_section_addresses): Adjust.
6696 * solib-frv.c (struct lm_info): Rename to ...
6697 (struct lm_info_frv): ... this. Extend lm_info_base.
6698 (main_executable_lm_info): Adjust.
6699 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
6700 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
6701 find_canonical_descriptor_in_load_object,
6702 frv_fdpic_find_canonical_descriptor): Adjust.
6703 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
6704 to lm_info_svr4.
6705 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
6706 svr4_clear_so, svr4_copy_library_list,
6707 library_list_start_library, svr4_default_sos, svr4_read_so_list,
6708 svr4_current_sos, svr4_fetch_objfile_link_map,
6709 solist_update_incremental): Adjust.
6710 * solib-svr4.h (struct lm_info_svr4): Move here from
6711 solib-svr4.c.
6712 * solib-target.c (struct lm_info): Rename to ...
6713 (struct lm_info_target): ... this. Extend lm_info_base.
6714 (lm_info_p): Rename to ...
6715 (lm_info_target_p): ... this.
6716 (solib_target_parse_libraries, library_list_start_segment,
6717 library_list_start_section, library_list_start_library,
6718 library_list_end_library, solib_target_free_library_list,
6719 solib_target_current_sos, solib_target_free_so,
6720 solib_target_relocate_section_addresses): Adjust.
6721 * windows-nat.c (struct lm_info): Rename to ...
6722 (struct lm_info_windows): ... this. Extend lm_info_base.
6723 (windows_make_so, handle_load_dll, handle_unload_dll,
6724 windows_xfer_shared_libraries): Adjust.
6725
434a4023
SM
67262017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6727
6728 * solib-darwin.c (struct darwin_so_list): Remove.
6729 (darwin_current_sos): Allocate an so_list object instead of a
6730 darwin_so_list, separately allocate an lm_info object.
6731 (darwin_free_so): Free lm_info.
6732
428544e8
JB
67332017-04-28 John Baldwin <jhb@FreeBSD.org>
6734
6735 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
6736 with fprintf_filtered.
6737
4621115f
YQ
67382017-04-28 Yao Qi <yao.qi@linaro.org>
6739
6740 * regcache.c (regcache::regcache): New function.
6741 (regcache::~regcache): New function.
6742 (regcache_xmalloc_1): Remove.
6743 (regcache_xmalloc): Call new regcache.
6744 (regcache_xfree): Call delete regcache.
6745 (get_thread_arch_aspace_regcache): Call new regcache.
6746
339053c2
YQ
67472017-04-28 Yao Qi <yao.qi@linaro.org>
6748
6749 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
6750 lwp instead of ptid_get_lwp.
6751
7974a605
YQ
67522017-04-28 Yao Qi <yao.qi@linaro.org>
6753
6754 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
6755 lwp_info instead of getting from inferior_ptid.
6756
e15c3eb4
KS
67572017-04-27 Keith Seitz <keiths@redhat.com>
6758
6759 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
6760 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
6761 (CV_CONVERSION_BADNESS): Define.
6762 (rank_one_type): Remove overly restrictive rvalue reference
6763 rank checks.
6764 Add cv-qualifier checks and subranks for type equality.
6765 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
6766 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
6767 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
6768
72bc1d24
SM
67692017-04-27 Simon Marchi <simon.marchi@ericsson.com>
6770
6771 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
6772 count when creating the object.
6773
55bcecda
UW
67742017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
6775 Ulrich Weigand <uweigand@de.ibm.com>
6776
6777 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
6778 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
6779 is used in AIX.
6780 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
6781 (process_xcoff_symbol): Likewise.
6782 (scan_xcoff_symtab): Likewise.
6783
5c99fcf8
AH
67842017-04-26 Alan Hayward <alan.hayward@arm.com>
6785
6786 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
6787 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
6788 (ia64_access_reg): Use get_frame_register_unsigned.
6789 (ia64_access_rse_reg): Likewise.
6790 (ia64_libunwind_frame_prev_register): Likewise.
6791
b41c5a85
JW
67922017-04-26 Jiong Wang <jiong.wang@arm.com>
6793
6794 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
6795 * gdbarch.c: Regenerated.
6796 * gdbarch.h: Regenerated.
6797 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
6798 visibility external.
6799 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
6800 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
6801 (enum cfa_how_kind): Move to ...
6802 (struct dwarf2_frame_state_reg_info): Likewise.
6803 (struct dwarf2_frame_state): Likewise.
6804 * dwarf2-frame.h: ... here.
6805 (dwarf2_frame_state_alloc_regs): New declaration.
6806 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
6807 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
6808
c185f580
AH
68092017-04-26 Alan Hayward <alan.hayward@arm.com>
6810
6811 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
6812 regcache_raw_read_unsigned.
6813 (xtensa_pseudo_register_write): Likewise.
6814
19c45594
AH
68152017-04-26 Alan Hayward <alan.hayward@arm.com>
6816
6817 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
6818 (nds32_pseudo_register_write): Likewise.
6819
4658f12e
YQ
68202017-04-25 Yao Qi <yao.qi@linaro.org>
6821
6822 * regcache.c (struct regcache) <readonly_p>: Change its type
6823 to bool.
6824 (regcache_xmalloc_1): Update parameter type and callers update.
6825
d581dda8
YQ
68262017-04-25 Yao Qi <yao.qi@linaro.org>
6827
6828 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
6829 set_gdbarch_wchar_bit.
6830 * arm-tdep.c (arm_gdbarch_init): Likewise.
6831
debed3db
PA
68322017-04-25 Pedro Alves <palves@redhat.com>
6833
6834 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
6835 (BothAreRelocatable, memcopy, memmove): Don't define.
6836 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
6837 macros.
6838
b0b92aeb
PA
68392017-04-25 Pedro Alves <palves@redhat.com>
6840
6841 * common/common-defs.h: Include "common/poison.h".
6842 * common/function-view.h: (Not, Or, Requires): Move to traits.h
6843 and adjust.
6844 * common/poison.h: New file.
6845 * common/traits.h: Include <type_traits>.
6846 (Not, Or, Requires): New, moved from common/function-view.h.
6847
16c4d54a
PA
68482017-04-25 Pedro Alves <palves@redhat.com>
6849
6850 * breakpoint.h (struct breakpoint): In-class initialize all
6851 fields. Make boolean fields "bool".
6852 * breakpoint.c (init_raw_breakpoint_without_location): Remove
6853 memset call and initializations no longer necessary.
6854
b5c36682
PA
68552017-04-25 Pedro Alves <palves@redhat.com>
6856
6857 * btrace.c (pt_btrace_insn_flags): Change parameter type to
6858 reference.
6859 (pt_btrace_insn): New function.
6860 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
6861
5625a286
PA
68622017-04-25 Pedro Alves <palves@redhat.com>
6863
6864 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
6865 "base" field and inherit from "bp_location" instead. Add
6866 non-default ctor.
6867 (allocate_location_exception): Use new non-default ctor.
6868 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
6869 (init_bp_location): Convert to ...
6870 (bp_location::bp_location): ... this new ctor, and remove memset
6871 call.
6872 (base_breakpoint_allocate_location): Use the new non-default ctor.
6873 * breakpoint.h (bp_location): Now a class. Declare default and
6874 non-default ctors. In-class initialize all members.
6875 (init_bp_location): Remove declaration.
6876
23bcc18f
PA
68772017-04-25 Pedro Alves <palves@redhat.com>
6878
6879 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
6880 assignment operator.
6881
e1ba3053
YQ
68822017-04-24 Yao Qi <yao.qi@linaro.org>
6883
6884 * doublest.c (convert_doublest_to_floatformat): Call
6885 floatformat_totalsize_bytes.
6886
10f489e5
TT
68872017-04-22 Tom Tromey <tom@tromey.com>
6888
6889 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
6890 ui_out_emit_list.
6891 * stack.c (print_frame): Use ui_out_emit_list.
6892 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
6893 ui_out_emit_list.
6894 * mi/mi-main.c (print_one_inferior)
6895 (mi_cmd_data_list_register_names)
6896 (mi_cmd_data_list_register_values, mi_cmd_list_features)
6897 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
6898 ui_out_emit_list.
6899 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
6900 (mi_output_solib_attribs): Use ui_out_emit_list,
6901 ui_out_emit_tuple.
6902 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
6903 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6904 (mi_cmd_stack_list_args, list_args_or_locals): Use
6905 ui_out_emit_list.
6906 * disasm.c (do_assembly_only): Use ui_out_emit_list.
6907 * breakpoint.c (print_solib_event, output_thread_groups): Use
6908 ui_out_emit_list.
6909
0092b74d
TT
69102017-04-22 Tom Tromey <tom@tromey.com>
6911
6912 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
6913 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
6914 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
6915
a14a62dd
TT
69162017-04-22 Tom Tromey <tom@tromey.com>
6917
6918 * tracepoint.c (tvariables_info_1)
6919 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
6920
46b9c129
TT
69212017-04-22 Tom Tromey <tom@tromey.com>
6922
6923 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
6924 annotate_arg_emitter.
6925 * breakpoint.c (print_mention_watchpoint)
6926 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
6927 * annotate.h (struct annotate_arg_emitter): New.
6928
2e783024
TT
69292017-04-22 Tom Tromey <tom@tromey.com>
6930
6931 * record-btrace.c (record_btrace_insn_history)
6932 (record_btrace_insn_history_range, record_btrace_call_history)
6933 (record_btrace_call_history_range): Use ui_out_emit_tuple.
6934 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
6935 ui_out_emit_tuple.
6936 * stack.c (print_frame_info): Use ui_out_emit_tuple.
6937 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
6938 * skip.c (skip_info): Use ui_out_emit_tuple.
6939 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
6940 * progspace.c (print_program_space): Use ui_out_emit_tuple.
6941 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
6942 * osdata.c (info_osdata): Use ui_out_emit_tuple.
6943 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
6944 ui_out_emit_tuple.
6945 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
6946 (output_register, mi_cmd_data_read_memory)
6947 (mi_cmd_data_read_memory_bytes, mi_load_progress)
6948 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
6949 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
6950 Use ui_out_emit_tuple.
6951 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
6952 ui_out_emit_tuple.
6953 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
6954 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
6955 * linux-thread-db.c (info_auto_load_libthread_db): Use
6956 ui_out_emit_tuple.
6957 * inferior.c (print_inferior): Use ui_out_emit_tuple.
6958 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
6959 * disasm.c (do_mixed_source_and_assembly_deprecated)
6960 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
6961 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
6962 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
6963 * breakpoint.c (print_one_breakpoint_location)
6964 (print_one_breakpoint): Use ui_out_emit_tuple.
6965 * auto-load.c (print_script, info_auto_load_cmd): Use
6966 ui_out_emit_tuple.
6967 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
6968
9be21bb4
SM
69692017-04-21 Simon Marchi <simon.marchi@ericsson.com>
6970
6971 * thread.c (print_thread_info_1): Remove dead code.
6972
0d4c07af
JK
69732017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6974
6975 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
6976 GDB_SELF_TEST.
6977 * arm-tdep.c (selftests::arm_record_test): Likewise.
6978
4daf993d
YQ
69792017-04-21 Yao Qi <yao.qi@linaro.org>
6980
6981 * regcache.c (regcache_restore): Remove argument 2. Replace
6982 argument 3 with regcache. Get register status from
6983 src->register_status and get register contents from
6984 register_buffer (src, regnum).
6985 (regcache_cpy): Update.
6986
a6c21d4a
PA
69872017-04-19 Pedro Alves <palves@redhat.com>
6988
6989 * gdbthread.h (thread): Add missing closing parenthesis in
6990 comment.
6991
3a3fd0fd
PA
69922017-04-19 Pedro Alves <palves@redhat.com>
6993
6994 * common/refcounted-object.h: New file.
6995 * gdbthread.h: Include "common/refcounted-object.h".
6996 (thread_info): Inherit from refcounted_object and add comments.
6997 (thread_info::incref, thread_info::decref)
6998 (thread_info::m_refcount): Delete.
6999 (thread_info::deletable): Use the refcounted_object::refcount()
7000 method.
7001 * inferior.c (current_inferior_): Add comment.
7002 (set_current_inferior): Increment/decrement refcounts.
7003 (prune_inferiors, remove_inferior_command): Skip inferiors marked
7004 not-deletable instead of comparing with the current inferior.
7005 (initialize_inferiors): Increment the initial inferior's refcount.
7006 * inferior.h (struct inferior): Forward declare.
7007 Include "common/refcounted-object.h".
7008 (current_inferior, set_current_inferior): Move declaration to
7009 before struct inferior's definition, and fix comment.
7010 (inferior): Inherit from refcounted_object. Add comments.
7011 * thread.c (switch_to_thread_no_regs): Reference the thread's
7012 inferior pointer directly instead of doing a ptid lookup.
7013 (switch_to_no_thread): New function.
7014 (switch_to_thread(thread_info *)): New function, factored out
7015 from ...
7016 (switch_to_thread(ptid_t)): ... this.
7017 (restore_current_thread): Delete.
7018 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
7019 fields, and add 'inf' field.
7020 (do_restore_current_thread_cleanup): Check whether old->inf is
7021 alive instead of looking up an inferior by ptid. Use
7022 switch_to_thread and switch_to_no_thread.
7023 (restore_current_thread_cleanup_dtor): Use old->inf directly
7024 instead of lookup up an inferior by id. Decref the inferior.
7025 Don't restore 'removable'.
7026 (make_cleanup_restore_current_thread): Same the inferior pointer
7027 in old, instead of the inferior number. Incref the inferior.
7028 Don't save/clear 'removable'.
7029
9bcb1f16
PA
70302017-04-19 Pedro Alves <palves@redhat.com>
7031
7032 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7033 unittests/scoped_restore-selftests.c.
7034 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
7035 * common/scoped_restore.h (scoped_restore_base): Make "class".
7036 (scoped_restore_base::release): New public method.
7037 (scoped_restore_base::scoped_restore_base): New protected ctor.
7038 (scoped_restore_base::m_saved_var): New protected field.
7039 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
7040 scoped_restore_base base class instead of m_saved_var directly.
7041 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
7042 (scoped_restore_tmpl::scoped_restore_tmpl(const
7043 scoped_restore_tmpl<T>&)): Likewise.
7044 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
7045 method.
7046 (scoped_restore_tmpl::saved_var): New method.
7047 (scoped_restore_tmpl::m_saved_var): Delete.
7048 * inferior.h (inferior::detaching): Now a bool.
7049 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
7050 cleanup.
7051 * unittests/scoped_restore-selftests.c: New file.
7052
26fcd539
PA
70532017-04-19 Pedro Alves <palves@redhat.com>
7054
7055 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
7056 Re-sort in alphabetic order.
7057
fdd243b0
PA
70582017-04-18 Pedro Alves <palves@redhat.com>
7059
7060 * xml-support.c (obstack_xml_printf): Delete.
7061 * xml-support.h (obstack_xml_printf): Delete.
7062
4895cde2
PA
70632017-04-18 Pedro Alves <palves@redhat.com>
7064
7065 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
7066 vdebug, verror, body_text, start_element, end_element, name,
7067 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
7068 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
7069 is_xinclude>: Make private and add m_ prefix.
7070 (gdb_xml_parser::body_text): New method, based on ...
7071 (gdb_xml_body_text): ... this. Adjust.
7072 (gdb_xml_parser::vdebug): New method, based on ...
7073 (gdb_xml_debug): ... this. Adjust.
7074 (gdb_xml_parser::verror): New method, based on ...
7075 (gdb_xml_error): ... this. Adjust.
7076 (gdb_xml_parser::start_element): New method, based on ...
7077 (gdb_xml_start_element): ... this. Adjust.
7078 (gdb_xml_start_element_wrapper): Defer to
7079 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
7080 (gdb_xml_parser::end_element): New method, based on ...
7081 (gdb_xml_end_element_wrapper): ... this. Adjust.
7082 (gdb_xml_parser::~gdb_xml_parser): Adjust.
7083 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
7084 (gdb_xml_parser::use_dtd): New method, based on ...
7085 (gdb_xml_use_dtd): ... this. Adjust.
7086 (gdb_xml_parser::parse): New method, based on ...
7087 (gdb_xml_parse): ... this. Adjust.
7088 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
7089 (xinclude_start_include): Adjust to call the parser's name method.
7090 (xml_xinclude_default, xml_xinclude_start_doctype)
7091 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
7092 method.
7093 (xml_process_xincludes): Adjust to call parser methods.
7094 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
7095 declarations.
7096
bd8a901f
PA
70972017-04-18 Pedro Alves <palves@redhat.com>
7098
7099 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
7100 gdb::optional<std::string>.
7101 * xml-support.c: Include <string>.
7102 (scope_level::scope_level(scope_level &&))
7103 (scope_level::~scope_level): Delete.
7104 (scope_level::body): Now a std::string.
7105 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
7106 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
7107 parameter.
7108 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
7109 (xinclude_parsing_data::output): Now a std::string reference.
7110 (xinclude_start_include): Adjust.
7111 (xml_xinclude_default): Adjust.
7112 (xml_process_xincludes): Add 'output' parameter, and return bool.
7113 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
7114 and return bool.
7115 * xml-tdesc.c: Include <unordered_map> and <string>.
7116 (tdesc_xml_cache): Delete.
7117 (tdesc_xml_cache_s): Delete.
7118 (xml_cache): Now an std::unordered_map.
7119 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
7120 (target_fetch_description_xml): Change return type to
7121 gdb::optional<std::string>, and adjust.
7122 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
7123 (target_fetch_description_xml): Change return type to
7124 gdb::optional<std::string>.
7125
d35d1958
PA
71262017-04-18 Pedro Alves <palves@redhat.com>
7127
7128 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7129 unittests/optional-selftests.c.
7130 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
7131 * unittests/optional-selftests.c: New file.
7132 * unittests/optional/assignment/1.cc: New file.
7133 * unittests/optional/assignment/2.cc: New file.
7134 * unittests/optional/assignment/3.cc: New file.
7135 * unittests/optional/assignment/4.cc: New file.
7136 * unittests/optional/assignment/5.cc: New file.
7137 * unittests/optional/assignment/6.cc: New file.
7138 * unittests/optional/assignment/7.cc: New file.
7139 * unittests/optional/cons/copy.cc: New file.
7140 * unittests/optional/cons/default.cc: New file.
7141 * unittests/optional/cons/move.cc: New file.
7142 * unittests/optional/cons/value.cc: New file.
7143 * unittests/optional/in_place.cc: New file.
7144 * unittests/optional/observers/1.cc: New file.
7145 * unittests/optional/observers/2.cc: New file.
7146
22796e97
PA
71472017-04-18 Pedro Alves <palves@redhat.com>
7148
7149 * common/gdb_optional.h: Include common/traits.h.
7150 (in_place_t): New type.
7151 (in_place): New constexpr variable.
7152 (optional::optional): Remove member initialization of
7153 m_instantiated.
7154 (optional::optional(in_place_t...)): New constructor.
7155 (optional::~optional): Use reset.
7156 (optional::optional(const optional&)): New.
7157 (optional::optional(const optional&&)): New.
7158 (optional::optional(T &)): New.
7159 (optional::optional(T &&)): New.
7160 (operator::operator=(const optional &)): New.
7161 (operator::operator=(optional &&)): New.
7162 (operator::operator= (const T &))
7163 (operator::operator= (T &&))
7164 (operator::emplace (Args &&... args)): Return a T&. Use reset.
7165 (operator::reset): New.
7166 (operator::m_instantiated):: Add in-class initializer.
7167 * common/traits.h: Include <type_traits>.
7168 (struct And): New types.
7169
a7fc9b61
PA
71702017-04-18 Pedro Alves <palves@redhat.com>
7171
7172 * xml-support.c: Include <vector>.
7173 (scope_level::scope_level(const gdb_xml_element *))
7174 (scope_level::scope_level(scope_level&&)): New.
7175 (scope_level::~scope_level): New.
7176 (scope_level_s): Delete.
7177 (gdb_xml_parser::scopes): Now a std::vector.
7178 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
7179 Use std::vector.
7180 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
7181 scope cleanup code.
7182 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
7183 of the scopes member. Use std::vector::emplace_back.
7184
010151c9
PA
71852017-04-18 Pedro Alves <palves@redhat.com>
7186
7187 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
7188 a bool.
7189 (gdb_xml_end_element): Change type of first parameter.
7190 (gdb_xml_cleanup): Rename to ...
7191 (gdb_xml_parser::~gdb_xml_parser): ... this.
7192 (gdb_xml_create_parser_and_cleanup): Delete with ...
7193 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
7194 to this new ctor.
7195 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
7196 using gdb_xml_create_parser_and_cleanup.
7197 (xinclude_parsing_data): Add ctor/dtor.
7198 (xml_xinclude_cleanup): Delete.
7199 (xml_process_xincludes): Create a local xinclude_parsing_data
7200 instead of heap-allocating one. Create a local gdb_xml_parser
7201 instead of heap-allocating one with
7202 gdb_xml_create_parser_and_cleanup.
7203
d56060f0
JB
72042017-04-18 John Baldwin <jhb@FreeBSD.org>
7205
7206 PR threads/20743
7207 * fbsd-nat.c (resume_one_thread_cb): Remove.
7208 (resume_all_threads_cb): Remove.
7209 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
7210 iterate_over_threads.
7211
305d16a9
JB
72122017-04-17 Joel Brobecker <brobecker@adacore.com>
7213
7214 * NEWS: Create a new section for the next release branch.
7215 Rename the section of the current branch, now that it has
7216 been cut.
7217
8bb57231
JB
72182017-04-17 Joel Brobecker <brobecker@adacore.com>
7219
7220 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
7221 * version.in: Bump version to 8.0.50.DATE-git.
7222
096c92dd
SDJ
72232017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
7224
7225 PR gdb/21385
7226 * windows-nat.c (windows_create_inferior): Declare 'allargs'
7227 independently of the host, and fix build breakage on Cygwin.
7228
0550c955
PA
72292017-04-13 Pedro Alves <palves@redhat.com>
7230
7231 * inferior.c (free_inferior): Convert to ...
7232 (inferior::~inferior): ... this dtor.
7233 (inferior::inferior): New ctor, factored out from ...
7234 (add_inferior_silent): ... here. Allocate the inferior with a new
7235 expression.
7236 (delete_inferior): Call delete instead of free_inferior.
7237 * inferior.h (gdb_environ, continuation): Forward declare.
7238 (inferior): Now a class. Add in-class initialization to all
7239 members. Make boolean fields bool, except 'detaching'.
7240 (inferior::inferior): New explicit ctor.
7241 (inferior::~inferior): New.
7242
e3d60dfc
PA
72432017-04-13 Pedro Alves <palves@redhat.com>
7244
7245 * inferior.c (init_inferior_list): Delete.
7246 * inferior.h (init_inferior_list): Delete.
7247
5fd69d0a
PA
72482017-04-13 Pedro Alves <palves@redhat.com>
7249
7250 PR threads/13217
7251 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
7252 (top level): Call it twice, with different thread sets.
7253
c6609450
PA
72542017-04-13 Pedro Alves <palves@redhat.com>
7255
7256 * thread.c: Include <algorithm>.
7257 (thread_array_cleanup): Delete.
7258 (scoped_inc_dec_ref): New class.
7259 (live_threads_count): New function.
7260 (set_thread_refcount): Delete.
7261 (tp_array_compar_ascending): Now a bool.
7262 (tp_array_compar): Convert to a std::sort comparison function.
7263 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
7264 and live_threads_count.
7265
2a00d7ce
PA
72662017-04-13 Pedro Alves <palves@redhat.com>
7267
7268 * infrun.c (follow_fork_inferior): Also switch the current
7269 inferior.
7270
441d7c93
PA
72712017-04-13 Pedro Alves <palves@redhat.com>
7272
7273 * breakpoint.c (watch_command_1): Save watchpoint-frame info
7274 before calling create_internal_breakpoint.
7275
808480f6
PA
72762017-04-13 Pedro Alves <palves@redhat.com>
7277
7278 * fork-child.c (execv_argv): New class.
7279 (breakup_args): Refactored as ...
7280 (execv_argv::init_for_no_shell): .. this method of execv_argv.
7281 Copy arguments to storage and replace separators with NULL
7282 terminators in place.
7283 (escape_bang_in_quoted_argument): Adjust to return bool.
7284 (execv_argv::execv_argv): New ctor.
7285 (execv_argv::init_for_shell): New method, factored out from
7286 fork_inferior. Don't strdup strings into the vector.
7287 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
7288 Remove free_vector_argv call.
7289
ad3d022a
YQ
72902017-04-13 Yao Qi <yao.qi@linaro.org>
7291
7292 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
7293 tdep->rx_psw_type.
7294
e6ddc3bf
YQ
72952017-04-13 Yao Qi <yao.qi@linaro.org>
7296
7297 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
7298 * rx-tdep.c (rx_gdbarch_init): Likewise.
7299
bfb8cf90
PA
73002017-04-13 Pedro Alves <palves@redhat.com>
7301
7302 * breakpoint.h (struct breakpoint): Reindent.
7303
f5336ca5
PA
73042017-04-13 Pedro Alves <palves@redhat.com>
7305
7306 * breakpoint.c (bp_location): Rename to ...
7307 (bp_locations): ... this. All references updated.
7308 (bp_location_count): Rename to ...
7309 (bp_locations_count): ... this. All references updated.
7310 (bp_location_placed_address_before_address_max): Rename to ...
7311 (bp_locations_placed_address_before_address_max): ... this. All
7312 references updated.
7313 (bp_location_shadow_len_after_address_max): Rename to ...
7314 (bp_locations_shadow_len_after_address_max): ... this. All
7315 references updated.
7316 (bp_location_compare_addrs): Rename to ...
7317 (bp_locations_compare_addrs): ... this. All references updated.
7318 (bp_location_compare):Rename to ...
7319 (bp_locations_compare): ... this. All references updated.
7320 (bp_location_target_extensions_update): Rename to ...
7321 (bp_locations_target_extensions_update): ... this. All references
7322 updated.
7323
be628ab8
SDJ
73242017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7325
7326 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
7327 * common/common.m4: Check headers 'termios.h', 'termio.h' and
7328 'sgtty.h'.
7329 * common/gdb_termios.h: New file, with parts of "terminal.h".
7330 * inflow.c: Include "gdb_termios.h".
7331 * ser-unix.c: Include "gdb_termios.h".
7332 * terminal.h: Move terminal-related defines to
7333 "common/gdb_termios.h".
7334
8e9e35b1
TT
73352017-04-12 Tom Tromey <tom@tromey.com>
7336
7337 * probe.c (parse_probes): Update.
7338 * location.h (delete_event_location): Don't declare.
7339 (event_location_deleter::operator()): Update.
7340 * location.c (event_location_deleter::operator()): Rename from
7341 delete_event_location.
7342 * linespec.h (linespec_result) <location>: Change type to
7343 event_location_up.
7344 * linespec.c (canonicalize_linespec, event_location_to_sals)
7345 (decode_objc): Update.
7346 (linespec_result): Don't call delete_event_location.
7347 * breakpoint.c (create_breakpoints_sal)
7348 (bkpt_probe_create_sals_from_location)
7349 (strace_marker_create_sals_from_location): Update.
7350
16e802b9
TT
73512017-04-12 Tom Tromey <tom@tromey.com>
7352
7353 * linespec.h (struct linespec_result): Add constructor and
7354 destructor.
7355 (init_linespec_result, destroy_linespec_result)
7356 (make_cleanup_destroy_linespec_result): Don't declare.
7357 * linespec.c (init_linespec_result): Remove.
7358 (linespec_result::~linespec_result): Rename from
7359 destroy_linespec_result. Update.
7360 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
7361 Remove.
7362 * breakpoint.c (create_breakpoint, break_range_command)
7363 (decode_location_default): Update.
7364 * ax-gdb.c (agent_command_1): Update.
7365
d28cd78a
TT
73662017-04-12 Tom Tromey <tom@tromey.com>
7367
7368 * remote.c (remote_download_tracepoint): Update.
7369 * python/py-breakpoint.c (bppy_get_location): Update.
7370 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
7371 (gdbscm_breakpoint_location): Update.
7372 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
7373 * breakpoint.h (struct breakpoint) <location, location_range_end>:
7374 Change type to event_location_up.
7375 * breakpoint.c (create_overlay_event_breakpoint)
7376 (create_longjmp_master_breakpoint)
7377 (create_std_terminate_master_breakpoint)
7378 (create_exception_master_breakpoint)
7379 (breakpoint_event_location_empty_p, print_breakpoint_location)
7380 (print_one_breakpoint_location, create_thread_event_breakpoint)
7381 (init_breakpoint_sal, create_breakpoint)
7382 (print_recreate_ranged_breakpoint, break_range_command)
7383 (init_ada_exception_breakpoint, say_where): Update.
7384 (base_breakpoint_dtor): Don't call delete_event_location.
7385 (bkpt_print_recreate, tracepoint_print_recreate)
7386 (dprintf_print_recreate, update_static_tracepoint)
7387 (breakpoint_re_set_default): Update.
7388
711799d5
TT
73892017-04-12 Tom Tromey <tom@tromey.com>
7390
7391 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
7392 type of "to_do". Update.
7393 (compute_stack_depth): Use std::vector.
7394
52d214d3
TT
73952017-04-12 Tom Tromey <tom@tromey.com>
7396
7397 * printcmd.c (find_instruction_backward): Use std::vector.
7398
4c404b8b
TT
73992017-04-12 Tom Tromey <tom@tromey.com>
7400
7401 * symfile.c (objfilep): Remove typedef.
7402 (reread_symbols): Use a std::vector.
7403
156d9eab
TT
74042017-04-12 Tom Tromey <tom@tromey.com>
7405
7406 * mi/mi-main.c (exec_direction_forward): Remove.
7407 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
7408 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7409 scoped_restore.
7410 * guile/guile.c (guile_repl_command, guile_command)
7411 (gdbscm_execute_gdb_command): Use scoped_restore.
7412 * go-exp.y (go_parse): Use scoped_restore.
7413 * d-exp.y (d_parse): Use scoped_restore.
7414 * cli/cli-decode.c (cmd_func): Use scoped_restore.
7415 * c-exp.y (c_parse): Use scoped_restore.
7416
4d89769a
TT
74172017-04-12 Tom Tromey <tom@tromey.com>
7418
7419 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
7420 (mi_parse): Update return type.
7421 (mi_parse_free): Remove.
7422 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
7423 (mi_parse::~mi_parse): Rename from mi_parse_free.
7424 (mi_parse_cleanup): Remove.
7425 (mi_parse): Return a unique_ptr. Use new.
7426 * mi/mi-main.c (mi_execute_command): Update.
7427
4b217cc7
TT
74282017-04-12 Tom Tromey <tom@tromey.com>
7429
7430 * location.c (explicit_location_lex_one): Return a
7431 unique_xmalloc_ptr.
7432 (string_to_explicit_location): Update. Remove cleanups.
7433
59d3651b
TT
74342017-04-12 Tom Tromey <tom@tromey.com>
7435
7436 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
7437 (compare_value_and_voffset): Change type. Update.
7438 (compute_vtable_size): Change type of "offset_vec".
7439 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
7440 (gnuv3_get_typeid): Remove extraneous declaration.
7441
b24b0d6c
TT
74422017-04-12 Tom Tromey <tom@tromey.com>
7443
7444 * charset.h (wchar_iterator): Fix comment.
7445
80a3b8c5
TT
74462017-04-12 Tom Tromey <tom@tromey.com>
7447
7448 * charset.c (iconv_wrapper): New class.
7449 (cleanup_iconv): Remove.
7450 (convert_between_encodings): Use it.
7451
c83dd867
TT
74522017-04-12 Tom Tromey <tom@tromey.com>
7453
7454 * symfile.h (increment_reading_symtab): Update type.
7455 * symfile.c (decrement_reading_symtab): Remove.
7456 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
7457 * psymtab.c (psymtab_to_symtab): Update.
7458 * dwarf2read.c (dw2_instantiate_symtab): Update.
7459
0e8621a0
TT
74602017-04-12 Tom Tromey <tom@tromey.com>
7461
7462 * jit.c (struct jit_reader): Declare separately. Add constructor
7463 and destructor. Change type of "handle".
7464 (loaded_jit_reader): Define separately.
7465 (jit_reader_load): Update. New "new".
7466 (jit_reader_unload_command): Use "delete".
7467 * gdb-dlfcn.h (struct dlclose_deleter): New.
7468 (gdb_dlhandle_up): New typedef.
7469 (gdb_dlopen, gdb_dlsym): Update types.
7470 (gdb_dlclose): Remove.
7471 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
7472 (gdb_dlsym): Change type of "handle".
7473 (make_cleanup_dlclose): Remove.
7474 (dlclose_deleter::operator()): Rename from gdb_dlclose.
7475 * compile/compile-c-support.c (load_libcc): Update.
7476
67d89901
TT
74772017-04-12 Tom Tromey <tom@tromey.com>
7478
7479 * symtab.h (find_pcs_for_symtab_line): Change return type.
7480 * symtab.c (find_pcs_for_symtab_line): Change return type.
7481 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
7482 type of "vec". Update.
7483 (ltpy_get_pcs_for_line): Update.
7484 * linespec.c (decode_digits_ordinary): Update.
7485
93921405
TT
74862017-04-12 Tom Tromey <tom@tromey.com>
7487
7488 * tracepoint.c (actions_command): Update.
7489 * python/python.c (python_command, python_interactive_command):
7490 Update.
7491 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7492 * guile/guile.c (guile_command): Update.
7493 * defs.h (read_command_lines, read_command_lines_1): Return
7494 command_line_up.
7495 (command_lines_deleter): New struct.
7496 (command_line_up): New typedef.
7497 * compile/compile.c (compile_code_command)
7498 (compile_print_command): Update.
7499 * cli/cli-script.h (get_command_line, copy_command_lines): Return
7500 command_line_up.
7501 (make_cleanup_free_command_lines): Remove.
7502 * cli/cli-script.c (get_command_line, read_command_lines_1)
7503 (copy_command_lines): Return command_line_up.
7504 (while_command, if_command, read_command_lines, define_command)
7505 (document_command): Update.
7506 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
7507 Remove.
7508 * breakpoint.h (breakpoint_set_commands): Change type of
7509 "commands".
7510 * breakpoint.c (breakpoint_set_commands): Change type of
7511 "commands". Update.
7512 (do_map_commands_command, update_dprintf_command_list)
7513 (create_tracepoint_from_upload): Update.
7514
ffc2605c
TT
75152017-04-12 Tom Tromey <tom@tromey.com>
7516
7517 * tracepoint.c (scope_info): Update.
7518 * spu-tdep.c (spu_catch_start): Update.
7519 * python/python.c (gdbpy_decode_line): Update.
7520 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
7521 * python/py-breakpoint.c (bppy_init): Update.
7522 * probe.c (parse_probes): Update.
7523 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
7524 * location.h (event_location_deleter): New struct.
7525 (event_location_up): New typedef.
7526 (new_linespec_location, new_address_location, new_probe_location)
7527 (new_explicit_location, copy_event_location)
7528 (string_to_event_location, string_to_event_location_basic)
7529 (string_to_explicit_location): Update return type.
7530 (make_cleanup_delete_event_location): Remove.
7531 * location.c (new_linespec_location, new_address_location)
7532 (new_probe_location, new_explicit_location, copy_event_location):
7533 Return event_location_up.
7534 (delete_event_location_cleanup)
7535 (make_cleanup_delete_event_location): Remove.
7536 (string_to_explicit_location, string_to_event_location_basic)
7537 (string_to_event_location): Return event_location_up.
7538 * linespec.c (canonicalize_linespec, event_location_to_sals)
7539 (decode_line_with_current_source)
7540 (decode_line_with_last_displayed, decode_objc): Update.
7541 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7542 * completer.c (location_completer): Update.
7543 * cli/cli-cmds.c (edit_command, list_command): Update.
7544 * breakpoint.c (create_overlay_event_breakpoint)
7545 (create_longjmp_master_breakpoint)
7546 (create_std_terminate_master_breakpoint)
7547 (create_exception_master_breakpoint)
7548 (create_thread_event_breakpoint): Update.
7549 (init_breakpoint_sal): Update. Remove some dead code.
7550 (create_breakpoint_sal): Change type of "location". Update.
7551 (create_breakpoints_sal, create_breakpoint, break_command_1)
7552 (dprintf_command, break_range_command, until_break_command)
7553 (init_ada_exception_breakpoint)
7554 (strace_marker_create_sals_from_location)
7555 (update_static_tracepoint, trace_command, ftrace_command)
7556 (strace_command, create_tracepoint_from_upload): Update.
7557 * break-catch-throw.c (re_set_exception_catchpoint): Update.
7558 * ax-gdb.c (agent_command_1): Update.
7559
8f10c932
PA
75602017-04-12 Pedro Alves <palves@redhat.com>
7561
7562 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
7563 * configure.tgt: Handle i[34567]86-*-go32* and
7564 i[34567]86-*-msdosdjgpp*.
7565 * i386-tdep.c (i386_svr4_reg_to_regnum):
7566 Make extern.
7567 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
7568 i386-go32-tdep.c.
7569 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
7570 * i386-go32-tdep.c: New file.
7571 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
7572 declarations.
7573
0a31ccfb
SM
75742017-04-12 Simon Marchi <simon.marchi@ericsson.com>
7575
7576 * aix-thread.c (pd_status2str): Change return type to const char *.
7577
e9bb3fbb
PA
75782017-04-12 Pedro Alves <palves@redhat.com>
7579
7580 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
7581 calls to set_gdbarch_gnu_triplet_regexp.
7582
53375380
PA
75832017-04-12 Pedro Alves <palves@redhat.com>
7584
7585 PR gdb/21323
7586 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
7587 New enum value.
7588 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
7589 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
7590 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
7591 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
7592 * gdbarch.h, gdbarch.c: Regenerate.
7593 * aarch64-tdep.c (aarch64_gdbarch_init): Override
7594 gdbarch_wchar_bit and gdbarch_wchar_signed.
7595 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
7596 * arm-tdep.c (arm_gdbarch_init): Likewise.
7597 * avr-tdep.c (avr_gdbarch_init): Likewise.
7598 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
7599 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
7600 * i386-tdep.c (i386_go32_init_abi): Likewise.
7601 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7602 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7603 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7604 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
7605 * sh-tdep.c (sh_gdbarch_init): Likewise.
7606 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7607 * sparc64-tdep.c (sparc64_init_abi): Likewise.
7608 * windows-tdep.c (windows_init_abi): Likewise.
7609 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7610
53e710ac
PA
76112017-04-12 Pedro Alves <palves@redhat.com>
7612
7613 PR c++/21323
7614 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
7615 cplus_primitive_type_char32_t>: New enum values.
7616 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
7617 and cplus_primitive_type_char32_t.
7618 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
7619 32, use the archtecture's built-in type for char16_t and char32_t,
7620 respectively. Otherwise, fallback to init_integer_type as before,
7621 but make the type unsigned, and issue a complaint.
7622 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
7623
ab0538b8
AH
76242017-04-12 Alan Hayward <alan.hayward@arm.com>
7625
5e0e0422 7626 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
7627 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
7628
5430098f
SDJ
76292017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7630
7631 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
7632 'const char *'.
7633
7c5ded6a
SDJ
76342017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7635
7636 * common/common-utils.c (free_vector_argv): New function.
7637 * common/common-utils.h: Include <vector>.
7638 (free_vector_argv): New prototype.
7639 * darwin-nat.c (darwin_create_inferior): Rewrite function
7640 prototype in order to constify "exec_file" and accept a
7641 "std::string" for "allargs".
7642 * fork-child.c: Include <vector>.
7643 (breakup_args): Rewrite function, using C++.
7644 (fork_inferior): Rewrite function header, constify "exec_file_arg"
7645 and accept "std::string" for "allargs". Update the code to
7646 calculate "argv" based on "allargs". Update calls to "exec_fun"
7647 and "execvp".
7648 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
7649 order to constify "exec_file" and accept a "std::string" for
7650 "allargs".
7651 * go32-nat.c (go32_create_inferior): Likewise.
7652 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
7653 * infcmd.c (run_command_1): Constify "exec_file". Use
7654 "std::string" for inferior arguments.
7655 * inferior.h (fork_inferior): Update prototype.
7656 * linux-nat.c (linux_nat_create_inferior): Rewrite function
7657 prototype in order to constify "exec_file" and accept a
7658 "std::string" for "allargs".
7659 * nto-procfs.c (procfs_create_inferior): Likewise.
7660 * procfs.c (procfs_create_inferior): Likewise.
7661 * remote-sim.c (gdbsim_create_inferior): Likewise.
7662 * remote.c (extended_remote_run): Update code to accept
7663 "std::string" as argument.
7664 (extended_remote_create_inferior): Rewrite function prototype in
7665 order to constify "exec_file" and accept a "std::string" for
7666 "allargs".
7667 * rs6000-nat.c (super_create_inferior): Likewise.
7668 (rs6000_create_inferior): Likewise.
7669 * target.h (struct target_ops) <to_create_inferior>: Likewise.
7670 * windows-nat.c (windows_create_inferior): Likewise.
7671
ae0eee42
PA
76722017-04-11 Pedro Alves <palves@redhat.com>
7673
7674 * thread.c: Fix whitespace throughout.
7675
a6acac06
PR
76762017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
7677
7678 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
7679
64403bd1
AH
76802017-04-11 Alan Hayward <alan.hayward@arm.com>
7681
7682 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
7683
a5bef50f
SDJ
76842017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
7685
7686 PR gdb/21364
7687 * osdata.c (info_osdata): Check if 'type' is an empty string
7688 instead of NULL.
7689
9295a5a9
PA
76902017-04-10 Pedro Alves <palves@redhat.com>
7691
7692 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
7693 (ptid_to_global_thread_id, in_thread_list)
7694 (do_captured_list_thread_ids, set_resumed, set_running)
7695 (set_executing, set_stop_requested, finish_thread_state)
7696 (validate_registers_access, can_access_registers_ptid)
7697 (print_thread_info_1, switch_to_thread)
7698 (do_restore_current_thread_cleanup)
7699 (make_cleanup_restore_current_thread, thread_command)
7700 (thread_name_command): Use operator== instead of ptid_equal.
7701
996812e3
PA
77022017-04-10 Pedro Alves <palves@redhat.com>
7703
7704 * thread.c (struct current_thread_cleanup) <next>: Delete field.
7705 (current_thread_cleanup_chain): Delete.
7706 (restore_current_thread_cleanup_dtor)
7707 (make_cleanup_restore_current_thread): Remove references to
7708 current_thread_cleanup_chain.
7709
845b344f
AH
77102017-04-10 Alan Hayward <alan.hayward@arm.com>
7711
7712 * msp430-tdep.c (msp430_pseudo_register_read): Never return
7713 REG_UNKNOWN.
7714
803bdfe4
YQ
77152017-04-10 Yao Qi <yao.qi@linaro.org>
7716
7717 PR gdb/19942
7718 * gdbthread.h (thread_info::deletable): New method.
7719 (thread_info::incref): New method.
7720 (thread_info::decref): New method.
7721 (thread_info::refcount): Move it to private.
7722 * infrun.c (save_stop_context): Call inc_refcount.
7723 (release_stop_context_cleanup): Likewise.
7724 * thread.c (set_thread_exited): New function.
7725 (init_thread_list): Delete "tp" only it is deletable, otherwise
7726 call set_thread_exited.
7727 (delete_thread_1): Call set_thread_exited.
7728 (current_thread_cleanup) <inferior_pid>: Remove.
7729 <thread>: New field.
7730 (restore_current_thread_ptid_changed): Removed.
7731 (do_restore_current_thread_cleanup): Adjust.
7732 (restore_current_thread_cleanup_dtor): Don't call
7733 find_thread_ptid.
7734 (set_thread_refcount): Use dec_refcount.
7735 (make_cleanup_restore_current_thread): Adjust.
7736 (thread_apply_all_command): Call inc_refcount.
7737 (_initialize_thread): Don't call
7738 observer_attach_thread_ptid_changed.
7739
8c25b497
YQ
77402017-04-10 Yao Qi <yao.qi@linaro.org>
7741
7742 * thread.c (delete_thread_1): Hoist code on marking thread as
7743 exited.
7744
8473b447
SM
77452017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7746
7747 * windows-nat.c (windows_detach): Initialize ptid with
7748 minus_one_ptid.
7749
6670ec13
SM
77502017-04-07 Simon Marchi <simon.marchi@ericsson.com>
7751
7752 * unittests/ptid-selftests.c: Fix erroneous assert messages.
7753
ba2f91bb
AH
77542017-04-07 Alan Hayward <alan.hayward@arm.com>
7755
7756 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
7757 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
7758 (bfin_pseudo_register_write): Likewise
7759
436252de
SM
77602017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7761
7762 * common/ptid.h (struct ptid): Change to...
7763 (class ptid_t): ... this.
7764 <ptid_t>: New constructors.
7765 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
7766 matches>: New methods.
7767 <make_null, make_minus_one>: New static methods.
7768 <pid>: Rename to...
7769 <m_pid>: ...this.
7770 <lwp>: Rename to...
7771 <m_lwp>: ...this.
7772 <tid>: Rename to...
7773 <m_tid>: ...this.
7774 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
7775 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
7776 as references, move comment to class ptid_t.
7777 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
7778 ptid_t static methods.
7779 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
7780 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
7781 Take ptid arguments as references, implement using ptid_t methods.
7782 * unittests/ptid-selftests.c: New file.
7783 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7784 unittests/ptid-selftests.c.
7785 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
7786
0dedf377
TP
77872017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
7788
7789 * python/python.c (python_run_simple_file): Cast mode literal to
7790 non-const char pointer as expected by PyFile_FromString.
7791
4e9868d4
SM
77922017-04-05 Simon Marchi <simon.marchi@ericsson.com>
7793
7794 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
7795 minus_one_ptid and null_ptid.
7796
9bf2a700
PA
77972017-04-05 Pedro Alves <palves@redhat.com>
7798
7799 * warning.m4 (build_warnings): Remove -Wno-write-strings.
7800 * configure: Regenerate.
7801
a121b7c1
PA
78022017-04-05 Pedro Alves <palves@redhat.com>
7803
7804 * ada-exp.y (yyerror): Constify.
7805 * ada-lang.c (bound_name, get_selections)
7806 (ada_variant_discrim_type)
7807 (ada_variant_discrim_name, ada_value_struct_elt)
7808 (ada_lookup_struct_elt_type, is_unchecked_variant)
7809 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
7810 (catch_ada_exception_command_split)
7811 (catch_ada_assert_command_split, catch_assert_command)
7812 (ada_op_name): Constify.
7813 * ada-lang.h (ada_yyerror, get_selections)
7814 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
7815 * arc-tdep.c (arc_print_frame_cache): Constify.
7816 * arm-tdep.c (arm_skip_stub): Constify.
7817 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
7818 (gen_aggregate_elt_ref): Constify.
7819 * bcache.c (print_bcache_statistics): Constify.
7820 * bcache.h (print_bcache_statistics): Constify.
7821 * break-catch-throw.c (catch_exception_command_1):
7822 * breakpoint.c (struct ep_type_description::description):
7823 Constify.
7824 (add_solib_catchpoint): Constify.
7825 (catch_fork_command_1): Add cast.
7826 (add_catch_command): Constify.
7827 * breakpoint.h (add_catch_command, add_solib_catchpoint):
7828 Constify.
7829 * bsd-uthread.c (bsd_uthread_state): Constify.
7830 * buildsym.c (patch_subfile_names): Constify.
7831 * buildsym.h (next_symbol_text_func, patch_subfile_names):
7832 Constify.
7833 * c-exp.y (yyerror): Constify.
7834 (token::oper): Constify.
7835 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
7836 * c-varobj.c (cplus_describe_child): Constify.
7837 * charset.c (find_charset_names): Add cast.
7838 (find_charset_names): Constify array and add const_cast.
7839 * cli/cli-cmds.c (complete_command, cd_command): Constify.
7840 (edit_command): Constify.
7841 * cli/cli-decode.c (lookup_cmd): Constify.
7842 * cli/cli-dump.c (dump_memory_command, dump_value_command):
7843 Constify.
7844 (struct dump_context): Constify.
7845 (add_dump_command, restore_command): Constify.
7846 * cli/cli-script.c (get_command_line): Constify.
7847 * cli/cli-script.h (get_command_line): Constify.
7848 * cli/cli-utils.c (check_for_argument): Constify.
7849 * cli/cli-utils.h (check_for_argument): Constify.
7850 * coff-pe-read.c (struct read_pe_section_data): Constify.
7851 * command.h (lookup_cmd): Constify.
7852 * common/print-utils.c (decimal2str): Constify.
7853 * completer.c (gdb_print_filename): Constify.
7854 * corefile.c (set_gnutarget): Constify.
7855 * cp-name-parser.y (yyerror): Constify.
7856 * cp-valprint.c (cp_print_class_member): Constify.
7857 * cris-tdep.c (cris_register_name, crisv32_register_name):
7858 Constify.
7859 * d-exp.y (yyerror): Constify.
7860 (struct token::oper): Constify.
7861 * d-lang.h (d_yyerror): Constify.
7862 * dbxread.c (struct header_file_location::name): Constify.
7863 (add_old_header_file, add_new_header_file, last_function_name)
7864 (dbx_next_symbol_text, add_bincl_to_list)
7865 (find_corresponding_bincl_psymtab, set_namestring)
7866 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
7867 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
7868 * defs.h (command_line_input, print_address_symbolic)
7869 (deprecated_readline_begin_hook): Constify.
7870 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
7871 Constify.
7872 * event-top.c (handle_line_of_input): Constify and add cast.
7873 * exceptions.c (catch_errors): Constify.
7874 * exceptions.h (catch_errors): Constify.
7875 * expprint.c (print_subexp_standard, op_string, op_name)
7876 (op_name_standard, dump_raw_expression, dump_raw_expression):
7877 * expression.h (op_name, op_string, dump_raw_expression):
7878 Constify.
7879 * f-exp.y (yyerror): Constify.
7880 (struct token::oper): Constify.
7881 (struct f77_boolean_val::name): Constify.
7882 * f-lang.c (f_word_break_characters): Constify.
7883 * f-lang.h (f_yyerror): Constify.
7884 * fork-child.c (fork_inferior): Add cast.
7885 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
7886 (new_variant): Constify.
7887 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
7888 * gdbarch.c: Regenerate.
7889 * gdbcore.h (set_gnutarget): Constify.
7890 * go-exp.y (yyerror): Constify.
7891 (token::oper): Constify.
7892 * go-lang.h (go_yyerror): Constify.
7893 * go32-nat.c (go32_sysinfo): Constify.
7894 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
7895 * guile/scm-cmd.c (cmdscm_function): Constify.
7896 * guile/scm-param.c (pascm_param_value): Constify.
7897 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
7898 (h8300sx_register_name): Constify.
7899 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
7900 Constify.
7901 * ia64-tdep.c (ia64_register_names): Constify.
7902 * infcmd.c (construct_inferior_arguments): Constify.
7903 (path_command, attach_post_wait): Constify.
7904 * language.c (show_range_command, show_case_command)
7905 (unk_lang_error): Constify.
7906 * language.h (language_defn::la_error)
7907 (language_defn::la_name_of_this): Constify.
7908 * linespec.c (decode_line_2): Constify.
7909 * linux-thread-db.c (thread_db_err_str): Constify.
7910 * lm32-tdep.c (lm32_register_name): Constify.
7911 * m2-exp.y (yyerror): Constify.
7912 * m2-lang.h (m2_yyerror): Constify.
7913 * m32r-tdep.c (m32r_register_names): Constify and make static.
7914 * m68hc11-tdep.c (m68hc11_register_names): Constify.
7915 * m88k-tdep.c (m88k_register_name): Constify.
7916 * macroexp.c (appendmem): Constify.
7917 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
7918 (upgrade_type, parse_external, parse_partial_symbols)
7919 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
7920 (new_symbol): Constify.
7921 * memattr.c (mem_info_command): Constify.
7922 * mep-tdep.c (register_name_from_keyword): Constify.
7923 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
7924 Constify.
7925 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
7926 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
7927 * mi/mi-main.c (captured_mi_execute_command): Constify and add
7928 cast.
7929 (mi_execute_async_cli_command): Constify.
7930 * mips-tdep.c (mips_register_name): Constify.
7931 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
7932 (am33_register_name, am33_2_register_name)
7933 * moxie-tdep.c (moxie_register_names): Constify.
7934 * nat/linux-osdata.c (osdata_type): Constify fields.
7935 * nto-tdep.c (nto_parse_redirection): Constify.
7936 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
7937 (lookup_child_selector): Constify.
7938 (objc_methcall::name): Constify.
7939 * objc-lang.h (lookup_objc_class, lookup_child_selector)
7940 (lookup_struct_typedef): Constify.
7941 * objfiles.c (pc_in_section): Constify.
7942 * objfiles.h (pc_in_section): Constify.
7943 * p-exp.y (struct token::oper): Constify.
7944 (yyerror): Constify.
7945 * p-lang.h (pascal_yyerror): Constify.
7946 * parser-defs.h (op_name_standard): Constify.
7947 (op_print::string): Constify.
7948 (exp_descriptor::op_name): Constify.
7949 * printcmd.c (print_address_symbolic): Constify.
7950 * psymtab.c (print_partial_symbols): Constify.
7951 * python/py-breakpoint.c (stop_func): Constify.
7952 (bppy_get_expression): Constify.
7953 * python/py-cmd.c (cmdpy_completer::name): Constify.
7954 (cmdpy_function): Constify.
7955 * python/py-event.c (evpy_add_attribute)
7956 (gdbpy_initialize_event_generic): Constify.
7957 * python/py-event.h (evpy_add_attribute)
7958 (gdbpy_initialize_event_generic): Constify.
7959 * python/py-evts.c (add_new_registry): Constify.
7960 * python/py-finishbreakpoint.c (outofscope_func): Constify.
7961 * python/py-framefilter.c (get_py_iter_from_func): Constify.
7962 * python/py-inferior.c (get_buffer): Add cast.
7963 * python/py-param.c (parm_constant::name): Constify.
7964 * python/py-unwind.c (fprint_frame_id): Constify.
7965 * python/python.c (gdbpy_parameter_value): Constify.
7966 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
7967 * remote.c (memory_packet_config::name): Constify.
7968 (show_packet_config_cmd, remote_write_bytes)
7969 (remote_buffer_add_string):
7970 * reverse.c (exec_reverse_once): Constify.
7971 * rs6000-tdep.c (variant::name, variant::description): Constify.
7972 * rust-exp.y (rustyyerror): Constify.
7973 * rust-lang.c (rust_op_name): Constify.
7974 * rust-lang.h (rustyyerror): Constify.
7975 * serial.h (serial_ops::name): Constify.
7976 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
7977 (sh_sh3e_register_name, sh_sh2e_register_name)
7978 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
7979 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
7980 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
7981 (sh_sh4al_dsp_register_name): Constify.
7982 * sh64-tdep.c (sh64_register_name): Constify.
7983 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
7984 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
7985 * stabsread.c (patch_block_stabs, read_type_number)
7986 (ref_map::stabs, ref_add, process_reference)
7987 (symbol_reference_defined, define_symbol, define_symbol)
7988 (error_type, read_type, read_member_functions, read_cpp_abbrev)
7989 (read_one_struct_field, read_struct_fields, read_baseclasses)
7990 (read_tilde_fields, read_struct_type, read_array_type)
7991 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
7992 (read_huge_number, read_range_type, read_args, common_block_start)
7993 (find_name_end): Constify.
7994 * stabsread.h (common_block_start, define_symbol)
7995 (process_one_symbol, symbol_reference_defined, ref_add):
7996 * symfile.c (get_section_index, add_symbol_file_command):
7997 * symfile.h (get_section_index): Constify.
7998 * target-descriptions.c (tdesc_type::name): Constify.
7999 (tdesc_free_type): Add cast.
8000 * target.c (find_default_run_target):
8001 (add_deprecated_target_alias, find_default_run_target)
8002 (target_announce_detach): Constify.
8003 (do_option): Constify.
8004 * target.h (add_deprecated_target_alias): Constify.
8005 * thread.c (print_thread_info_1): Constify.
8006 * top.c (deprecated_readline_begin_hook, command_line_input):
8007 Constify.
8008 (init_main): Add casts.
8009 * top.h (handle_line_of_input): Constify.
8010 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
8011 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
8012 (tfind_command): Rename to ...
8013 (tfind_command_1): ... this and constify.
8014 (tfind_command): New function.
8015 (tfind_end_command, tfind_start_command): Adjust.
8016 (encode_source_string): Constify.
8017 * tracepoint.h (encode_source_string): Constify.
8018 * tui/tui-data.c (tui_partial_win_by_name): Constify.
8019 * tui/tui-data.h (tui_partial_win_by_name): Constify.
8020 * tui/tui-source.c (tui_set_source_content_nil): Constify.
8021 * tui/tui-source.h (tui_set_source_content_nil): Constify.
8022 * tui/tui-win.c (parse_scrolling_args): Constify.
8023 * tui/tui-windata.c (tui_erase_data_content): Constify.
8024 * tui/tui-windata.h (tui_erase_data_content): Constify.
8025 * tui/tui-winsource.c (tui_erase_source_content): Constify.
8026 * tui/tui.c (tui_enable): Add cast.
8027 * utils.c (defaulted_query): Constify.
8028 (init_page_info): Add cast.
8029 (puts_debug, subset_compare): Constify.
8030 * utils.h (subset_compare): Constify.
8031 * varobj.c (varobj_format_string): Constify.
8032 * varobj.h (varobj_format_string): Constify.
8033 * vax-tdep.c (vax_register_name): Constify.
8034 * windows-nat.c (windows_detach): Constify.
8035 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
8036 * xml-support.c (gdb_xml_end_element): Constify.
8037 * xml-tdesc.c (tdesc_start_reg): Constify.
8038 * xstormy16-tdep.c (xstormy16_register_name): Constify.
8039 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
8040 * xtensa-tdep.h (xtensa_register_t::name): Constify.
8041
995816ba
PA
80422017-04-05 Pedro Alves <palves@redhat.com>
8043
8044 * proc-api.c (struct trans): Constify.
8045 (procfs_note): Constify.
8046 * proc-events.c (struct trans, syscall_table):
8047 * proc-flags.c (struct trans): Constify.
8048 * proc-utils.h (procfs_note): Constify.
8049 * proc-why.c (struct trans): Constify.
8050 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
8051 (procfs_detach): Constify.
8052 * sol-thread.c (struct string_map): Constify.
8053 (td_err_string, td_state_string): Constify.
8054
3e83a920
PA
80552017-04-05 Pedro Alves <palves@redhat.com>
8056
8057 * proc-api.c (procfs_filename): Don't initialize
8058 procfs_filename.
8059 (prepare_to_trace): Assume procfs_filename is non-NULL.
8060 (_initialize_proc_api): Give procfs_filename a default value here.
8061
63160a43
PA
80622017-04-05 Pedro Alves <palves@redhat.com>
8063
8064 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
8065 'cond_string' parameter.
8066 (extract_exception_regexp): Constify 'string' parameter.
8067 (catch_exception_command_1): Constify.
8068 * breakpoint.c (init_catchpoint)
8069 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
8070 parameter.
8071 (ep_parse_optional_if_clause, catch_fork_command_1)
8072 (catch_exec_command_1): Constify.
8073 * breakpoint.h (init_catchpoint): Constify 'cond_string'
8074 parameter.
8075 (ep_parse_optional_if_clause): Constify.
8076 * cli/cli-utils.c (remove_trailing_whitespace)
8077 (check_for_argument): Constify.
8078 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
8079 non-const overload.
8080 (check_for_argument): Likewise.
8081
9b2eba3d
PA
80822017-04-05 Pedro Alves <palves@redhat.com>
8083
8084 * event-top.c (command_line_handler): Add cast to execute_command
8085 call.
8086 * record-btrace.c (cmd_record_btrace_bts_start)
8087 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
8088 (cmd_record_btrace_start): Add cast to execute_command call.
8089 * record-full.c (record_full_goto_insn):
8090 * record.c (record_start, record_stop): Add cast to
8091 execute_command_to_string calls.
8092 (cmd_record_start): Add cast to execute_command calls.
8093
2adadf51
PA
80942017-04-05 Pedro Alves <palves@redhat.com>
8095
8096 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
8097 static inline function.
8098 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
8099 array and use gdb_PyArg_ParseTupleAndKeywords.
8100 * python/py-cmd.c (cmdpy_init): Likewise.
8101 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
8102 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
8103 (infpy_search_memory): Likewise.
8104 * python/py-objfile.c (objfpy_add_separate_debug_file)
8105 (gdbpy_lookup_objfile): Likewise.
8106 * python/py-symbol.c (gdbpy_lookup_symbol)
8107 (gdbpy_lookup_global_symbol): Likewise.
8108 * python/py-type.c (gdbpy_lookup_type): Likewise.
8109 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
8110 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
8111 Likewise.
8112
0d1f4ceb
PA
81132017-04-05 Pedro Alves <palves@redhat.com>
8114
8115 * python/python-internal.h (gdb_PyGetSetDef): New type.
8116 * python/py-block.c (block_object_getset)
8117 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
8118 * python/py-event.c (event_object_getset)
8119 (finish_breakpoint_object_getset): Likewise.
8120 * python/py-inferior.c (inferior_object_getset): Likewise.
8121 * python/py-infthread.c (thread_object_getset): Likewise.
8122 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
8123 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
8124 * python/py-objfile.c (objfile_getset): Likewise.
8125 * python/py-progspace.c (pspace_getset): Likewise.
8126 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
8127 Likewise.
8128 * python/py-record.c (recpy_record_getset): Likewise.
8129 * python/py-symbol.c (symbol_object_getset): Likewise.
8130 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
8131 Likewise.
8132 * python/py-type.c (type_object_getset, field_object_getset):
8133 Likewise.
8134 * python/py-value.c (value_object_getset): Likewise.
8135
4d759979
PA
81362017-04-05 Pedro Alves <palves@redhat.com>
8137
8138 * python/python-internal.h (gdb_PyObject_CallMethod)
8139 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
8140 New functions.
8141 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
8142 (PySys_GetObject, PySys_SetPath): New macros.
8143
fdf9e36f
PA
81442017-04-05 Pedro Alves <palves@redhat.com>
8145
8146 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
8147 info_osdata_command.
8148 * osdata.c (info_osdata_command): Rename to ...
8149 (info_osdata): ... this. Constify 'type' parameter, and remove
8150 the 'from_tty' parameter. Accept NULL TYPE.
8151 (info_osdata_command): New function.
8152 * osdata.h (info_osdata_command): Remove declaration.
8153 (info_osdata): New declaration.
8154
9f33b8b7
PA
81552017-04-05 Pedro Alves <palves@redhat.com>
8156
8157 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
8158 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
8159 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
8160 parameter.
8161 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
8162 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
8163 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
8164 parameter.
8165 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
8166 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
8167 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8168 (mi_cmd_file_list_exec_source_files)
8169 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
8170 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8171 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
8172 parameter.
8173 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
8174 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
8175 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8176 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
8177 (mi_cmd_stack_info_frame): Constify 'command' parameter.
8178 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
8179 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
8180 'command' parameter.
8181 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
8182 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
8183 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
8184 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
8185 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
8186 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
8187 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
8188 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
8189 (mi_cmd_var_set_update_range): Constify 'command' parameter.
8190 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
8191 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
8192 parameter.
8193 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
8194 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
8195 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
8196 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
8197 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
8198 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
8199 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
8200 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
8201 (mi_cmd_data_list_changed_registers)
8202 (mi_cmd_data_write_register_values)
8203 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
8204 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
8205 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
8206 (mi_cmd_list_features, mi_cmd_list_target_features)
8207 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
8208 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
8209 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
8210 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
8211 (mi_cmd_trace_frame_collected): Constify 'command'
8212 parameter.
8213 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
8214 'command' parameter.
8215
67cb5b2d
PA
82162017-04-05 Pedro Alves <palves@redhat.com>
8217
8218 * ada-lang.c (ada_completer_word_break_characters): Now a const
8219 array.
8220 (ada_get_gdb_completer_word_break_characters): Constify.
8221 * completer.c (gdb_completer_command_word_break_characters)
8222 (gdb_completer_file_name_break_characters)
8223 (gdb_completer_quote_characters): Now const arrays.
8224 (get_gdb_completer_quote_characters): Constify.
8225 (set_rl_completer_word_break_characters): New function.
8226 (set_gdb_completion_word_break_characters)
8227 (complete_line_internal): Use it.
8228 * completer.h (get_gdb_completer_quote_characters): Constify.
8229 (set_rl_completer_word_break_characters): Declare.
8230 * f-lang.c (f_word_break_characters): Constify.
8231 * language.c (default_word_break_characters): Constify.
8232 * language.h (language_defn::la_word_break_characters): Constify.
8233 (default_word_break_characters): Constify.
8234 * top.c (init_main): Use set_rl_completer_word_break_characters.
8235
7a114964
PA
82362017-04-05 Pedro Alves <palves@redhat.com>
8237
8238 * aix-thread.c (aix_thread_pid_to_str)
8239 (aix_thread_extra_thread_info): Constify.
8240 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
8241 * bsd-uthread.c (bsd_uthread_extra_thread_info)
8242 (bsd_uthread_pid_to_str): Constify.
8243 * corelow.c (core_pid_to_str): Constify.
8244 * darwin-nat.c (darwin_pid_to_str): Constify.
8245 * fbsd-nat.c (fbsd_pid_to_str): Constify.
8246 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
8247 Constify.
8248 * gnu-nat.c (gnu_pid_to_str): Constify.
8249 * go32-nat.c (go32_pid_to_str): Constify.
8250 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
8251 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
8252 * inferior.c (inferior_pid_to_str): Constify.
8253 * linux-nat.c (linux_nat_pid_to_str): Constify.
8254 * linux-tdep.c (linux_core_pid_to_str): Constify.
8255 * linux-thread-db.c (thread_db_pid_to_str)
8256 (thread_db_extra_thread_info): Constify.
8257 * nto-tdep.c (nto_extra_thread_info): Constify.
8258 * nto-tdep.h (nto_extra_thread_info): Constify.
8259 * obsd-nat.c (obsd_pid_to_str): Constify.
8260 * procfs.c (procfs_pid_to_str): Constify.
8261 * ravenscar-thread.c (ravenscar_extra_thread_info)
8262 (ravenscar_pid_to_str): Constify.
8263 * remote-sim.c (gdbsim_pid_to_str): Constify.
8264 * remote.c (remote_threads_extra_info, remote_pid_to_str):
8265 Constify.
8266 * sol-thread.c (solaris_pid_to_str): Constify.
8267 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
8268 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
8269 * target.c (default_pid_to_str, target_pid_to_str)
8270 (normal_pid_to_str, default_pid_to_str): Constify.
8271 * target.h (target_ops::to_pid_to_str)
8272 (target_ops::to_extra_thread_info): Constify.
8273 (target_pid_to_str, normal_pid_to_str): Constify.
8274 * windows-nat.c (windows_pid_to_str): Constify.
8275 * gdbarch.sh (core_pid_to_str): Constify.
8276 * target-delegates.c: Regenerate.
8277 * gdbarch.h, gdbarch.c: Regenerate.
8278
69bbf465
PA
82792017-04-05 Pedro Alves <palves@redhat.com>
8280
8281 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
8282 the memory of the temporary warning_pre_print override.
8283 * utils.c (warning_pre_print): Constify.
8284 * utils.h (warning_pre_print): Constify.
8285
be47f9e8
PA
82862017-04-05 Pedro Alves <palves@redhat.com>
8287
8288 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
8289 (shell_command): New function.
8290 (make_command): Use std::string.
8291 (init_cli_cmds): Register shell_command instead of shell_escape.
8292
bde6261a
PA
82932017-04-05 Pedro Alves <palves@redhat.com>
8294
8295 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
8296 * tracepoint.c (default_collect): Don't initialize.
8297
b38ef47f
PA
82982017-04-05 Pedro Alves <palves@redhat.com>
8299
8300 * macroexp.c (macro_buffer::shared): Now a bool.
8301 (init_buffer): Update.
8302 (init_shared_buffer): Constify 'addr' parameter.
8303 (substitute_args, expand, macro_expand, macro_expand_next): Remove
8304 casts.
8305
f995bbe8
PA
83062017-04-05 Pedro Alves <palves@redhat.com>
8307
8308 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
8309 * disasm.c (set_disassembler_options): Constify local.
8310 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
8311
4a596fe2
SDJ
83122017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
8313
8314 PR gdb/21352
8315 * tracefile.c (tsave_command): Fix argument parsing for '-r'
8316 option.
8317
2cad08ea
YQ
83182017-04-05 Yao Qi <yao.qi@linaro.org>
8319
8320 * frame.c (frame_unwind_register_unsigned): Call
8321 frame_unwind_register_value.
8322
55a98976
YQ
83232017-04-05 Yao Qi <yao.qi@linaro.org>
8324
8325 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
8326 Use gdb_test_multiple, and don't match anchor.
8327
4ac40124
PA
83282017-04-05 Pedro Alves <palves@redhat.com>
8329
8330 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
8331 (Write After Approval): Remove Simon Marchi.
8332
c053b654
PA
83332017-04-05 Pedro Alves <palves@redhat.com>
8334
8335 * common/gdb_optional.h (optional::optional): Make constexpr and
8336 initialize m_dummy.
8337
4c7bf4f9
JB
83382017-04-04 John Baldwin <jhb@FreeBSD.org>
8339
8340 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8341 (amd64fbsd_jmp_buf_reg_offset): Remove.
8342 (amd64fbsd_supply_uthread): Remove function.
8343 (amd64fbsd_collect_uthread): Remove function.
8344 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
8345 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
8346 (x86_64-*-freebsd*): Remove bsd-uthread.o.
8347 (fbsd-nat.c): Update comment.
8348 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8349 (i386fbsd_jmp_buf_reg_offset): Remove.
8350 (i386fbsd_supply_uthread): Remove function.
8351 (i386fbsd_collect_uthread): Remove function.
8352 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
8353
1e1a8bef
JB
83542017-04-04 John Baldwin <jhb@FreeBSD.org>
8355
8356 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
8357 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
8358 * NEWS: Mention that support for FreeBSD/alpha was removed.
8359 * alpha-fbsd-tdep.c: Delete file.
8360 * config/alpha/fbsd.mh: Delete file.
8361 * configure.host: Delete alpha*-*-freebsd* and
8362 alpha*-*-kfreebsd*-gnu.
8363 * configure.tgt: Delete alpha*-*-freebsd* and
8364 alpha*-*-kfreebsd*-gnu.
8365
49907934
JB
83662017-04-04 John Baldwin <jhb@FreeBSD.org>
8367
8368 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
8369 amd64bsd_store_inferior_registers): Use ptid from regcache.
8370
6f77053d
PA
83712017-04-04 Pedro Alves <palves@redhat.com>
8372
8373 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
8374 data fields, make them private and add "m_" prefixes.
8375 (lnp_state_machine::lnp_state_machine): New ctor.
8376 (record_line, check_line_address, handle_set_discriminator)
8377 (handle_set_address, handle_advance_pc, handle_special_opcode)
8378 (handle_advance_line, handle_set_file, handle_negate_stmt)
8379 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
8380 (end_sequence, advance_line): New methods.
8381 (m_gdbarch, m_record_lines_p): New fields.
8382 (lnp_reader_state): Delete.
8383 (dwarf_record_line): Rename to ...
8384 (lnp_state_machine::record_line): ... adjust.
8385 (init_lnp_state_machine): Delete.
8386 (lnp_state_machine::lnp_state_machine): New.
8387 (check_line_address): Rename to ...
8388 (lnp_state_machine::check_line_address): This.
8389 (dwarf_decode_lines_1): Remove reference to "reader_state".
8390 Adjust lnp_state_machine having a non-default ctor. Use bool.
8391 State machine internal state manipulation moved to
8392 lnp_state_machine methods.
8393
9c541725
PA
83942017-04-04 Pedro Alves <palves@redhat.com>
8395
8396 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8397 unittests/offset-type-selftests.c.
8398 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
8399 * common/offset-type.h: New file.
8400 * common/preprocessor.h: New file.
8401 * common/traits.h: New file.
8402 * common/valid-expr.h: New file.
8403 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
8404 sect_offset and cu_offset strong typedefs throughout.
8405 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
8406 typedefs throughout.
8407 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
8408 sect_offset and cu_offset strong typedefs throughout.
8409 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
8410 typedefs throughout.
8411 * gdbtypes.h: Include "common/offset-type.h".
8412 (cu_offset): Now an offset type (strong typedef) instead of a
8413 struct.
8414 (sect_offset): Likewise.
8415 (union call_site_parameter_u): Rename "param_offset" field to
8416 "param_cu_off".
8417 * unittests/offset-type-selftests.c: New file.
8418
ecfb656c
PA
84192017-04-04 Pedro Alves <palves@redhat.com>
8420
8421 * common/underlying.h: New file.
8422 * dwarf2read.c: Include "common/gdb_optional.h" and
8423 "common/underlying.h".
8424 (dir_index, file_name_index): New types.
8425 (file_entry): Use them.
8426 (file_entry::include): Use to_underlying.
8427 (line_header::add_file_name): Use dir_index.
8428 (read_formatted_entries): Use gdb::optional. Read form before
8429 writting to file_entry.
8430 (dwarf_decode_line_header): Use dir_index.
8431 (lnp_state_machine::current_file): Use to_underlying.
8432 (lnp_state_machine::file): Change type to file_name_index.
8433 (dwarf_record_line): Use to_underlying.
8434 (init_lnp_state_machine): Use file_name_index.
8435 (dwarf_decode_lines_1): Use dir_index and file_name_index.
8436
d194f1fe
PA
84372017-04-04 Pedro Alves <palves@redhat.com>
8438
8439 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
8440 operator bool, has_value and get methods.
8441
fff8551c
PA
84422017-04-04 Pedro Alves <palves@redhat.com>
8443
8444 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
8445 fields.
8446 (line_header): Initialize all data fields. Change type of
8447 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
8448 Change type of include_dirs to std::vector<const char *>. Remove
8449 num_include_dirs, include_dirs_size. Change type of file_names to
8450 std::vector<file_entry>. Remove num_file_names, file_names_size.
8451 (line_header::line_header): New.
8452 (line_header::add_include_dir, line_header::add_file_name): New
8453 methods.
8454 (line_header::include_dir_at): Remove NULL check.
8455 (line_header::file_name_at): Add const overload.
8456 (line_header_up): New unique_ptr typedef.
8457 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
8458 std::vector. Remove free_line_header call.
8459 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
8460 free_line_header call.
8461 (free_cu_line_header): Delete.
8462 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
8463 (setup_type_unit_groups): Use line_header_up instead of cleanups.
8464 Adjust to use std::vector.
8465 (free_line_header): Delete.
8466 (free_line_header_voidp): Use delete.
8467 (add_include_dir): Replace with ...
8468 (line_header::add_include_dir): ... this method. Use std::vector.
8469 (add_file_name): Replace with ...
8470 (line_header::add_file_name): ... this method. Use std::vector.
8471 (add_include_dir_stub): Delete.
8472 (read_formatted_entries): Remove memset.
8473 (dwarf_decode_line_header): Return a line_header_up instead of a
8474 raw pointer. Remove cleanup handling. Pass lambdas to
8475 read_formatted_entries. Adjust to use line_header methods.
8476 (dwarf_decode_lines_1): Adjust to use line_header methods.
8477 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
8478 use std::vector.
8479
d62a8ae2
SM
84802017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
8481
8482 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
8483 instead of struct ptid.
8484
db3a1dc7
AH
84852017-05-04 Alan Hayward <alan.hayward@arm.com>
8486
8487 * frame.c (get_frame_register_bytes): Unwind using value.
8488 (put_frame_register_bytes): Likewise.
8489
b1b45502
IB
84902017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
8491
8492 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
8493 aggregate-like.
8494
ec13808e
JK
84952017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8496
8497 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
8498
12316564
YQ
84992017-03-29 Yao Qi <yao.qi@linaro.org>
8500
8501 * gdbthread.h (struct thread_info): Declare constructor and
8502 destructor. Add some in-class member initializers.
8503 * thread.c (free_thread): Remove.
8504 (init_thread_list): Call delete instead of free_thread.
8505 (new_thread): Call thread_info constructor.
8506 (thread_info::thread_info): New function.
8507 (thread_info::~thread_info): New function.
8508 (delete_thread_1): Call delete instead of free_thread.
8509 (make_cleanup_restore_current_thread): Move tp and frame to
8510 inner block.
8511
fe5f7374
AK
85122017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8513
8514 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
8515 (arc_skip_prologue): Likewise.
8516 (arc_make_frame_cache): Likewise.
8517 (arc_pv_get_operand): New function.
8518 (arc_is_in_prologue): Likewise.
8519 (arc_analyze_prologue): Likewise.
8520 (arc_print_frame_cache): Likewise.
8521 (MAX_PROLOGUE_LENGTH): New constant.
8522
eea78757
AK
85232017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8524
8525 * configure.tgt: Add arc-insn.o.
8526 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
8527 (dump_arc_instruction_command): New function.
8528 (arc_fprintf_disasm): Likewise.
8529 (arc_disassemble_info): Likewise.
8530 (arc_insn_get_operand_value): Likewise.
8531 (arc_insn_get_operand_value_signed): Likewise.
8532 (arc_insn_get_memory_base_reg): Likewise.
8533 (arc_insn_get_memory_offset): Likewise.
8534 (arc_insn_get_branch_target): Likewise.
8535 (arc_insn_dump): Likewise.
8536 (arc_insn_get_linear_next_pc): Likewise.
8537 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
8538 (arc_disassemble_info): Likewise.
8539 (arc_insn_get_branch_target): Likewise.
8540 (arc_insn_get_linear_next_pc): Likewise.
8541 * NEWS: Mention new "maint print arc arc-instruction".
8542
3be78afd
AK
85432017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8544
8545 * arc-tdep (maintenance_print_arc_list): New variable.
8546 (maintenance_print_arc_command): New function.
8547
296ec4fa
AK
85482017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8549
8550 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
8551 Add "limm" and "reserved".
8552 (arc_cannot_fetch_register, arc_cannot_store_register): Add
8553 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
8554 * arc-tdep.h (arc_regnum): Likewise.
8555
f74f865e
MF
85562017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8557
8558 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8559 for THREADPTR register.
8560 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
8561 register.
8562 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
8563 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
8564 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
8565
0d0bf81a
MF
85662017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8567
8568 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
8569 registers above gdbarch_num_regs (gdbarch) as privileged in
8570 call0 ABI.
8571
0ce4291e
MF
85722017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8573
8574 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8575 for a single specified register or for all registers in
8576 a0_base..a0_base + C0_NREGS range.
8577 (supply_gregset_reg): Call regcache_raw_supply for a single
8578 specified register or for all registers in a0_base..a0_base +
8579 C0_NREGS range.
8580
c56054f9
MF
85812017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8582
8583 * arch/xtensa.h (C0_NREGS): Add definition.
8584 * xtensa-tdep.c (C0_NREGS): Remove definition.
8585
a4398628
MF
85862017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8587
8588 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
8589 Drop xtensa_default_isa initialization.
8590 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
8591
8c43009f
PA
85922017-03-27 Pedro Alves <palves@redhat.com>
8593
8594 * dwarf2read.c (file_entry) <dir_index>: Add comment.
8595 (file_entry::include_dir): New method.
8596 (line_header::include_dir_at, line_header::file_name_at): New
8597 methods.
8598 (setup_type_unit_groups, setup_type_unit_groups)
8599 (psymtab_include_file_name): Simplify using the new methods.
8600 (lnp_state_machine) <the_line_header>: New field.
8601 <file>: Add comment.
8602 (lnp_state_machine::current_file): New method.
8603 (dwarf_record_line): Simplify using the new methods.
8604 (init_lnp_state_machine): Initialize the "the_line_header" field.
8605 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
8606 Simplify using the new methods.
8607
a7e80b9e
PA
86082017-03-27 Pedro Alves <palves@redhat.com>
8609
8610 * cp-name-parser.y (make_empty): Delete.
8611 (demangler_special, nested_name, ptr_operator, array_indicator)
8612 (direct_declarator, declarator_1): Use fill_comp instead of
8613 make_empty.
8614
21047726
PA
86152017-03-27 Pedro Alves <palves@redhat.com>
8616
8617 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
8618 to ATTRIBUTE_PRINTF.
8619 * solib-target.c (library_list_start_list): Print "string" not
8620 "version".
8621 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
8622 gdb_xml_error call.
8623
d721ba37
PA
86242017-03-27 Pedro Alves <palves@redhat.com>
8625
8626 * dwarf2read.c (struct file_and_directory): New.
8627 (dwarf2_get_dwz_file): Adjust to use std::string.
8628 (dw2_get_file_names_reader): Adjust to use file_and_directory.
8629 (find_file_and_directory): Adjust to return a file_and_directory
8630 object.
8631 (read_file_scope): Adjust to use file_and_directory. Remove
8632 make_cleanup/do_cleanups calls.
8633 (open_and_init_dwp_file): Adjust to use std::string. Remove
8634 make_cleanup/do_cleanups calls.
8635 * python/python.c (do_start_initialization): Adjust to ldirname
8636 returning a std::string.
8637 * utils.c (ldirname): Now returns a std::string.
8638 * utils.h (ldirname): Change return type to std::string.
8639 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
8640 returning a std::string.
8641 * xml-tdesc.c (file_read_description_xml): Likewise.
8642
ed771251
AH
86432017-03-24 Alan Hayward <alan.hayward@arm.com>
8644
8645 * regcache.c (regcache_debug_print_register): New function.
8646 * regcache.h (regcache_debug_print_register): New declaration.
8647 * target.c (debug_print_register): Remove.
8648 (target_fetch_registers): Call regcache_debug_print_register.
8649 (target_store_registers): Likewise.
8650
568c1b9f
PB
86512017-03-24 Pádraig Brady <pbrady@fb.com>
8652
8653 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
8654 reference beyond the 'lh->include_dirs' array before accessing to
8655 it.
8656 (psymtab_include_file_name): Likewise.
8657 (dwarf_decode_lines_1): Likewise.
8658 (dwarf_decode_lines): Likewise.
8659 (file_file_name): Likewise.
8660
3e00d44f
SM
86612017-03-23 Simon Marchi <simon.marchi@ericsson.com>
8662
8663 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
8664 inferior_ptid.
8665 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8666 ps_lsetfpregs): Likewise.
8667 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
8668 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8669 ps_lsetfpregs): Likewise.
8670 * target.c (target_fetch_registers, target_store_registers):
8671 Remove asserts.
8672
077ae656
AH
86732017-03-23 Alan Hayward <alan.hayward@arm.com>
8674
8675 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
8676
1e2b521d
YQ
86772017-03-23 Yao Qi <yao.qi@linaro.org>
8678
8679 * aarch64-tdep.c (aarch64_process_record_test): Declare.
8680 (_initialize_aarch64_tdep): Register it.
8681 (aarch64_record_load_store): Handle PRFM instruction.
8682 (aarch64_process_record_test): New function.
8683
33877125
YQ
86842017-03-23 Yao Qi <yao.qi@linaro.org>
8685
8686 * aarch64-tdep.c (aarch64_record_load_store): Fix code
8687 indentation.
8688
a0eef940
YQ
86892017-03-23 Yao Qi <yao.qi@linaro.org>
8690
8691 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
8692
3f2a3564
PR
86932017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8694
8695 python/python.c (do_start_initialization): Fix memory leak.
8696
b67aeab0
SM
86972017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8698
8699 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
8700 using get_ptrace_pid.
8701 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
8702 inferior_ptid.
8703 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
8704 inferior_ptid instead of pid.
8705
ffdbe864
YQ
87062017-03-22 Yao Qi <yao.qi@linaro.org>
8707
8708 * aarch64-tdep.c: Wrap locally used classes in anonymous
8709 namespace.
8710 * arm-tdep.c: Likewise.
8711 * linespec.c: Likewise.
8712 * ui-out.c: Likewise.
8713
9d736fbf
JG
87142017-03-22 Jonah Graham <jonah@kichwacoders.com>
8715
8716 PR gdb/19637
8717 * python/lib/gdb/printer/bound_registers.py: Import sys.
8718
3de88e9a
SM
87192017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8720
8721 * windows-nat.c (do_windows_fetch_inferior_registers): Add
8722 windows_thread_info parameter and use it instead of
8723 current_thread.
8724 (windows_fetch_inferior_registers): Don't set current_thread,
8725 pass the thread to do_windows_fetch_inferior_registers. Use
8726 ptid from regcache instead of inferior_ptid.
8727 (do_windows_store_inferior_registers): Add windows_thread_info
8728 parameter and use it instead of current_thread.
8729 (windows_store_inferior_registers): Don't set current_thread,
8730 pass the thread to do_windows_store_inferior_registers. Use
8731 ptid from regcache instead of inferior_ptid.
8732
0e7b8f61
SM
87332017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8734
8735 * ser-mingw.c (ser_windows_raw): Remove reference to
8736 struct serial::current_timeout.
8737
5badf10a
IR
87382017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
8739
8740 PR tdep/20928
8741 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
8742 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
8743 (sparc64_fsr_type): Fix %fsr decoding.
8744
cee59b3f
TW
87452017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
8746
8747 * python/py-record-btrace.c (btpy_insn_data): Change return type
8748 for Python 2.
8749
639a9038
SM
87502017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
8751
8752 * spu-linux-nat.c (spu_fetch_inferior_registers,
8753 spu_store_inferior_registers): Use ptid from regcache, set and
8754 restore inferior_ptid.
8755 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
8756 Likewise.
8757
bcc0c096
SM
87582017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
8759
8760 * i386-linux-nat.c (fetch_register, store_register,
8761 i386_linux_fetch_inferior_registers,
8762 i386_linux_store_inferior_registers): Use ptid from regcache.
8763 * ia64-linux-nat.c (ia64_linux_fetch_register,
8764 ia64_linux_store_register): Likewise.
8765 * inf-ptrace.c (inf_ptrace_fetch_register,
8766 inf_ptrace_store_register): Likewise.
8767 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
8768 m32r_linux_store_inferior_registers): Likewise.
8769 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
8770 m68kbsd_store_inferior_registers): Likewise.
8771 * m68k-linux-nat.c (fetch_register, store_register,
8772 m68k_linux_fetch_inferior_registers,
8773 m68k_linux_store_inferior_registers): Likewise.
8774 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
8775 m88kbsd_store_inferior_registers): Likewise.
8776 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
8777 mips_fbsd_store_inferior_registers): Likewise.
8778 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
8779 mips64_linux_regsets_store_registers): Likewise.
8780 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
8781 mipsnbsd_store_inferior_registers): Likewise.
8782 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
8783 mips64obsd_store_inferior_registers): Likewise.
8784 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
8785 Likewise.
8786 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
8787 ppcfbsd_store_inferior_registers): Likewise.
8788 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
8789 ppc_linux_store_inferior_registers): Likewise.
8790 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
8791 ppcnbsd_store_inferior_registers): Likewise.
8792 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
8793 ppcobsd_store_registers): Likewise.
8794 * procfs.c (procfs_fetch_registers, procfs_store_registers):
8795 Likewise.
8796 * ravenscar-thread.c (ravenscar_fetch_registers,
8797 ravenscar_store_registers, ravenscar_prepare_to_store):
8798 Likewise.
8799 * record-btrace.c (record_btrace_fetch_registers,
8800 record_btrace_store_registers, record_btrace_prepare_to_store):
8801 Likewise.
8802 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
8803 Lookup inferior using ptid from regcache, instead of
8804 current_inferior.
8805 * remote.c (remote_fetch_registers, remote_store_registers): Use
8806 ptid from regcache.
8807 * rs6000-nat.c (fetch_register, store_register): Likewise.
8808 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
8809 s390_linux_store_inferior_registers): Likewise.
8810 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
8811 shnbsd_store_inferior_registers): Likewise.
8812 * sol-thread.c (sol_thread_fetch_registers,
8813 sol_thread_store_registers): Likewise.
8814 * sparc-nat.c (sparc_fetch_inferior_registers,
8815 sparc_store_inferior_registers): Likewise.
8816 * tilegx-linux-nat.c (fetch_inferior_registers,
8817 store_inferior_registers): Likewise.
8818 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
8819 vaxbsd_store_inferior_registers): Likewise.
8820 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
8821 store_xtregs): Likewise.
8822
c0f55cc6
AV
88232017-03-20 Artemiy Volkov <artemiyv@acm.org>
8824
8825 PR gdb/14441
8826 * NEWS: Mention support for rvalue references in GDB and python.
8827 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
8828 supports both lvalue and rvalue references.
8829
15c0a2a9
AV
88302017-03-20 Artemiy Volkov <artemiyv@acm.org>
8831
8832 PR gdb/14441
8833 * gdbtypes.c (rank_one_type): Implement overloading
8834 resolution rules regarding rvalue references.
8835
aa006118
AV
88362017-03-20 Artemiy Volkov <artemiyv@acm.org>
8837
8838 PR gdb/14441
8839 * aarch64-tdep.c (aarch64_type_align)
8840 (aarch64_extract_return_value, aarch64_store_return_value): Change
8841 lvalue reference type checks to general reference type checks.
8842 * amd64-tdep.c (amd64_classify): Likewise.
8843 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
8844 Likewise.
8845 * arm-tdep.c (arm_type_align, arm_extract_return_value)
8846 (arm_store_return_value): Likewise.
8847 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
8848 * c-typeprint.c (c_print_type): Likewise.
8849 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
8850 (cplus_number_of_children, cplus_describe_child): Likewise.
8851 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
8852 * completer.c (expression_completer): Likewise.
8853 * cp-support.c (make_symbol_overload_list_adl_namespace):
8854 Likewise.
8855 * darwin-nat-info.c (info_mach_region_command): Likewise.
8856 * dwarf2loc.c (entry_data_value_coerce_ref)
8857 (value_of_dwarf_reg_entry): Likewise.
8858 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
8859 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
8860 Likewise.
8861 * findvar.c (extract_typed_address, store_typed_address):
8862 Likewise.
8863 * gdbtypes.c (rank_one_type): Likewise.
8864 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
8865 * infcall.c (value_arg_coerce): Likewise.
8866 * language.c (pointer_type): Likewise.
8867 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
8868 Likewise.
8869 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
8870 * mn10300-tdep.c (mn10300_type_align): Likewise.
8871 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
8872 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
8873 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
8874 Likewise.
8875 * printcmd.c (print_formatted, x_command): Likewise.
8876 * python/py-type.c (typy_get_composite, typy_template_argument):
8877 Likewise.
8878 * python/py-value.c (valpy_referenced_value)
8879 (valpy_get_dynamic_type, value_has_field): Likewise.
8880 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
8881 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
8882 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
8883 * spu-tdep.c (spu_scalar_value_p): Likewise.
8884 * symtab.c (lookup_symbol_aux): Likewise.
8885 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
8886 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
8887 Likewise.
8888 * valops.c (value_cast_pointers, value_cast)
8889 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
8890 (value_struct_elt, value_struct_elt_bitpos)
8891 (value_find_oload_method_list, find_overload_match)
8892 (value_rtti_indirect_type): Likewise.
8893 * valprint.c (val_print_scalar_type_p, generic_val_print):
8894 Likewise.
8895 * value.c (value_actual_type, value_as_address, unpack_long)
8896 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
8897 (coerce_ref): Likewise.
8898 * varobj.c (varobj_get_value_type): Likewise.
8899
3fcf899d
AV
89002017-03-20 Artemiy Volkov <artemiyv@acm.org>
8901
8902 PR gdb/14441
8903 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
8904 table of constants.
8905 * python/lib/gdb/command/explore.py: Support exploring values
8906 of rvalue reference types.
8907 * python/lib/gdb/types.py: Implement get_basic_type() for
8908 rvalue reference types.
8909 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
8910 constant.
8911 * python/py-value.c (valpy_getitem): Add an rvalue reference
8912 check.
8913 (valpy_reference_value): Add new parameter "refcode".
8914 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
8915 New wrappers for valpy_reference_value().
8916 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
8917 (gdbpy_invoke_xmethod): Likewise.
8918
4297a3f0
AV
89192017-03-20 Artemiy Volkov <artemiyv@acm.org>
8920
8921 PR gdb/14441
8922 * dwarf2read.c (process_die, read_type_die_1): Handle the
8923 DW_TAG_rvalue_reference_type DIE.
8924 (read_tag_reference_type): Add new parameter "refcode".
8925
e1cb3213
AV
89262017-03-20 Artemiy Volkov <artemiyv@acm.org>
8927
8928 PR gdb/14441
8929 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
8930 (c_type_print_modifier, c_type_print_varspec_suffix)
8931 (c_type_print_base): Support printing rvalue reference types.
8932 * c-valprint.c (c_val_print, c_value_print): Support printing
8933 rvalue reference values.
8934
e4347c89
AV
89352017-03-20 Artemiy Volkov <artemiyv@acm.org>
8936
8937 PR gdb/14441
8938 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
8939 typename.
8940 * cp-support.c (replace_typedefs): Handle
8941 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
8942 * python/py-type.c (typy_lookup_type): Likewise.
8943
53cc15f5
AV
89442017-03-20 Artemiy Volkov <artemiyv@acm.org>
8945
8946 PR gdb/14441
8947 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
8948 * parse.c (insert_type): Change assert statement.
8949 (follow_types): Handle rvalue reference types.
8950 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
8951 constant.
8952
a65cfae5
AV
89532017-03-20 Artemiy Volkov <artemiyv@acm.org>
8954
8955 PR gdb/14441
8956 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
8957 value_ref() interface.
8958 * c-valprint.c (c_value_print): Likewise.
8959 * infcall.c (value_arg_coerce): Likewise.
8960 * python/py-value.c (valpy_reference_value): Likewise.
8961 * valops.c (value_cast, value_reinterpret_cast)
8962 (value_dynamic_cast, typecmp): Likewise.
8963 (value_ref): Parameterize by kind of return value reference type.
8964 * value.h (value_ref): Add new parameter "refcode".
8965
3b224330
AV
89662017-03-20 Artemiy Volkov <artemiyv@acm.org>
8967
8968 PR gdb/14441
8969 * dwarf2read.c (read_tag_reference_type): Use
8970 lookup_lvalue_reference_type() instead of lookup_reference_type().
8971 * eval.c (evaluate_subexp_standard): Likewise.
8972 * f-exp.y: Likewise.
8973 * gdbtypes.c (make_reference_type, lookup_reference_type):
8974 Generalize with rvalue reference types.
8975 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
8976 convenience wrappers for lookup_reference_type().
8977 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
8978 reference kind parameter.
8979 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
8980 wrappers for lookup_reference_type().
8981 * guile/scm-type.c (gdbscm_type_reference): Use
8982 lookup_lvalue_reference_type() instead of lookup_reference_type().
8983 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
8984 * parse.c (follow_types): Likewise.
8985 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
8986 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
8987 Likewise.
8988 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
8989 (gdbpy_invoke_xmethod): Likewise.
8990 * stabsread.c: Provide extra argument to make_reference_type()
8991 call.
8992 * valops.c (value_ref, value_rtti_indirect_type): Use
8993 lookup_lvalue_reference_type() instead of lookup_reference_type().
8994
f9aeb8d4
AV
89952017-03-20 Artemiy Volkov <artemiyv@acm.org>
8996
8997 PR gdb/14441
8998 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
8999 (TYPE_IS_REFERENCE): New macro.
9000 (struct type): Add rvalue_reference_type field.
9001 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
9002
51457a05
MAL
90032017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9004
9005 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
9006 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
9007 New function definition.
9008 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
9009 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
9010 New function declaration.
9011 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
9012 * mi/mi-interp.h: New file.
9013 * solib.c (info_sharedlibrary_command): Replace for loop with
9014 ALL_SO_LIBS macro
9015 * solib.h (update_solib_list): New function declaration.
9016 (so_list_head): Move macro.
9017 * solist.h (ALL_SO_LIBS): New macro.
9018
e696b3ad
MAL
90192017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9020
9021 * infcmd.c (post_create_inferior): Remove unused argument in
9022 call to solib_add.
9023 * remote.c (remote_start_remote): Likewise.
9024 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
9025 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
9026 (enable_break): Likewise.
9027 * solib.c (update_solib_list): Remove unused target argument
9028 and its documentation.
9029 (solib_add): Remove unused target argument. Remove unused
9030 argument in call to update_solib_list.
9031 (info_sharedlibrary_command): Remove unused argument in call
9032 to update_solib_list.
9033 (sharedlibrary_command): Remove unused argument in call to
9034 solib_add.
9035 (handle_solib_event): Likewise.
9036 (reload_shared_libraries): Likewise.
9037 * solib.h (solib_add): Remove unused target argument.
9038
dcb84eda
AA
90392017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
9040
9041 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
9042 (s390_displaced_step_fixup): Cover relative branches with the
9043 default fixup handling. This fixes lack of support for some
9044 relative branch instructions.
9045
d9cb6cdc
SM
90462017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9047
9048 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
9049 ptid from regcache.
9050
1afaf9f4
SM
90512017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9052
9053 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
9054 i386_darwin_store_inferior_registers): Use ptid from regcache.
9055
aac12e24
SM
90562017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9057
9058 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
9059 i386bsd_store_inferior_registers): Use ptid from regcache.
9060
bbe1eef1
SM
90612017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9062
9063 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
9064 hppaobsd_store_registers): Use ptid from regcache.
9065
10799020
SM
90662017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9067
9068 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
9069 hppanbsd_store_registers): Use ptid from regcache.
9070
00204cf7
SM
90712017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9072
9073 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
9074 from regcache. Use get_ptrace_pid.
9075
11a33714
SM
90762017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9077
9078 * corelow.c (get_core_register_section): Use ptid from regcache,
9079 update doc.
9080
317cd492
SM
90812017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9082
9083 * bsd-uthread.c (bsd_uthread_fetch_registers,
9084 bsd_uthread_store_registers): Use ptid from regcache, set and
9085 restore inferior_ptid.
9086
9ac8a7c2
SM
90872017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9088
9089 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
9090 fetch_fp_regs, store_register, store_regs, store_fp_register,
9091 store_fp_regs): Use ptid from regcache.
9092
4ac4bb6a
SM
90932017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9094
9095 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
9096 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
9097 store_vfp_regs): Use ptid from regcache.
9098
9bcbdca8
PA
90992017-03-17 Pedro Alves <palves@redhat.com>
9100
9101 PR remote/21188
9102 * ser-base.c (ser_base_wait_for): Add comment.
9103 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
9104 version.
9105 * ser-unix.c (hardwire_raw): Remove reference to
9106 scb->current_timeout.
9107 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
9108 (hardwire_ops): Install ser_base_readchar instead of
9109 hardwire_readchar.
9110 * serial.h (struct serial) <current_timeout, timeout_remaining>:
9111 Remove fields.
9112
7503099f
JG
91132017-03-17 Jonah Graham <jonah@kichwacoders.com>
9114
9115 PR gdb/19637
9116 * python/lib/gdb/printer/bound_registers.py: Add support for
9117 Python 3.
9118
7942e96e
AA
91192017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
9120
9121 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
9122 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
9123 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
9124 byte_offset to subobj_byte_offset. Fix the handling of
9125 DWARF_VALUE_STACK on big-endian targets when coming via an
9126 implicit pointer.
9127 (dwarf2_evaluate_loc_desc): Adjust call to
9128 dwarf2_evaluate_loc_desc_full.
9129 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
9130 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
9131
ba14f379
YQ
91322017-03-16 Yao Qi <yao.qi@linaro.org>
9133
9134 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
9135 and REVSH instructions.
9136
b121eeb9
YQ
91372017-03-16 Yao Qi <yao.qi@linaro.org>
9138
9139 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
9140 (arm_record_test): Declare.
9141 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
9142 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
9143 align with the manual.
9144 (thumb_record_misc): Adjust the code order to align with the
9145 manual.
9146 (thumb2_record_decode_insn_handler): Fix instruction matching.
9147 (instruction_reader_thumb): New class.
9148 (arm_record_test): New function.
9149
728a7913
YQ
91502017-03-16 Yao Qi <yao.qi@linaro.org>
9151
9152 * arm-tdep.c (abstract_memory_reader): New class.
9153 (instruction_reader): New class.
9154 (extract_arm_insn): Add argument 'reader'. Callers updated.
9155 (decode_insn): Likewise.
9156
34b43320
DE
91572017-03-16 Doug Evans <dje@google.com>
9158
a7c0469f
DE
9159 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
9160 member. Change type of TYPE member to SCM. All uses updated.
9161 (lsscm_make_lazy_string_smob): Add assert.
9162 (lsscm_make_lazy_string): Flag bad length values.
9163 (lsscm_elt_type): New function.
9164 (gdbscm_lazy_string_to_value): Rewrite to use
9165 lsscm_safe_lazy_string_to_value.
9166 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
9167 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
9168 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
9169 in incoming type.
9170 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9171 * guile/scm-type.c (tyscm_scm_to_type): New function.
9172
91732017-03-15 Doug Evans <dje@google.com>
9174
34b43320
DE
9175 PR python/17728, python/18439, python/18779
9176 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
9177 member. Change type of TYPE member to PyObject *. All uses updated.
9178 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
9179 (gdbpy_create_lazy_string_object): Flag bad length values.
9180 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
9181 Handle typedefs in incoming type.
9182 (stpy_lazy_string_elt_type): New function.
9183 (gdbpy_extract_lazy_string): Call it.
9184 * python/py-value.c (valpy_lazy_string): Flag bad length values.
9185 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
9186 typedefs in incoming type.
9187
a3a5fecc
DE
91882017-03-16 Doug Evans <dje@google.com>
9189
9190 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9191 * guile/scm-type.c (tyscm_scm_to_type): New function.
9192
28f1c605
JW
91932017-03-16 Jiong Wang <jiong.wang@arm.com>
9194
9195 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
9196 "ULONGEST" for "skip".
9197
87c336f6
AA
91982017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9199
9200 PR gdb/21220
9201 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
9202 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
9203 (inf_ptrace_peek_poke): ...here. New function. Now also loop
9204 over ptrace peek/poke until end of buffer or error.
9205
cf81cf60
SM
92062017-03-14 Simon Marchi <simon.marchi@ericsson.com>
9207
9208 * parse.c (length_of_subexp): Make static.
9209 * parser-defs.h (length_of_subexp): Remove.
9210
a379284a
AA
92112017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9212
9213 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
9214 as well.
9215
8a6200ba
PA
92162017-03-14 Pedro Alves <palves@redhat.com>
9217
9218 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
9219 (main): Use std::unique_ptr. Remove calls to
9220 cp_demangled_name_parse_free.
9221
f79ec206
SM
92222017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9223
9224 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
9225 alphabsd_store_inferior_registers): Use regcache->ptid instead
9226 of inferior_ptid.
9227
edb5fb00
SM
92282017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9229
9230 * aix-thread.c (aix_thread_fetch_registers,
9231 aix_thread_store_registers): Use regcache->ptid instead of
9232 inferior_ptid.
9233
55119686
SM
92342017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9235
9236 * aarch64-linux-nat.c (fetch_gregs_from_thread,
9237 store_gregs_to_thread, fetch_fpregs_from_thread,
9238 store_fpregs_to_thread): Use regcache->ptid instead of
9239 inferior_ptid.
9240
6a06fbb7
SM
92412017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9242
9243 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
9244 amd64_linux_fetch_inferior_registers): Use regcache->ptid
9245 instead of inferior_ptid.
9246
c6386875
SM
92472017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9248
9249 * target.c (target_fetch_registers, target_store_registers): Add
9250 assert.
9251
ddaaf0fb
SM
92522017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9253
9254 * regcache.h (regcache_get_ptid): New function.
9255 * regcache.c (regcache_get_ptid): New function.
9256
b9da89d1 92572017-03-13 Mark Wielaard <mark@klomp.org>
9258
9259 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
9260
5f4d1085
KS
92612017-03-10 Keith Seitz <keiths@redhat.com>
9262
9263 PR c++/8218
9264 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
9265
c65d6b55
PA
92662017-03-08 Pedro Alves <palves@redhat.com>
9267
9268 PR gdb/18360
9269 * infrun.c (start_step_over, do_target_resume, resume)
9270 (restart_threads): Assert we're not resuming a thread that is
9271 meant to be stopped.
9272 (infrun_thread_stop_requested_callback): Delete.
9273 (infrun_thread_stop_requested): If the thread is internally
9274 stopped, queue a pending stop event and clear the thread's
9275 inline-frame state.
9276 (handle_stop_requested): New function.
9277 (handle_syscall_event, handle_inferior_event_1): Use
9278 handle_stop_requested.
9279 (handle_stop_requested): New function.
9280 (handle_signal_stop): Set the thread's stop_signal here instead of
9281 at caller.
9282 (finish_step_over): Clear step over info unconditionally.
9283 (handle_signal_stop): If the user had interrupted the event
9284 thread, consider the stop a random signal.
9285 (handle_signal_stop) <signal arrived while stepping over
9286 breakpoint>: Don't restart threads here.
9287 (stop_waiting): Don't clear step-over info here.
9288
15c22686
PA
92892017-03-08 Pedro Alves <palves@redhat.com>
9290
9291 PR 21206
9292 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
9293 goes to argument 2, not 1.
9294
6e5d74e7
PA
92952017-03-08 Pedro Alves <palves@redhat.com>
9296
9297 PR cli/21218
9298 * top.c (gdb_readline_wrapper): Avoid passing NULL to
9299 display_gdb_prompt.
9300 (command_line_input): Add comment.
9301
9753a2f6
PA
93022017-03-08 Pedro Alves <palves@redhat.com>
9303
9304 PR tui/21216
9305 * tui/tui-file.c (tui_file::write): New.
9306 * tui/tui-file.h (tui_file): Override "write".
9307 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
9308 factored out from ...
9309 (tui_puts): ... here.
9310 (tui_putc): Use them.
9311 (tui_write): New function.
9312 * tui/tui-io.h (tui_write): Declare.
9313
1672e0d9
SDJ
93142017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
9315
9316 * Makefile.in (SFILES): Replace "environ.c" with
9317 "common/environ.c".
9318 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
9319 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
9320 to...
9321 * common/environ.c: ... here.
9322 * environ.h: Moved to...
9323 * common/environ.h: ... here.
9324
f7bb4e3a
PB
93252017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9326
9327 * gdbarch.sh (pstring_ptr): New static function.
9328 (gdbarch_disassembler_options): Use it.
9329 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
9330 not valid_disassembler_option->name.
9331 * gdbarch.c: Regenerate.
9332
e45ced6c
PB
93332017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9334
9335 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
9336
5f6fd321
PA
93372017-03-07 Pedro Alves <palves@redhat.com>
9338
9339 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
9340
6dbb839a 93412017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
9342
9343 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
9344 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
9345 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 9346 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 9347
d274ecf4
SM
93482017-03-06 Simon Marchi <simon.marchi@ericsson.com>
9349
9350 * xtensa-linux-nat.c (fetch_gregs): Remove const.
9351
df97be55
SM
93522017-03-03 Simon Marchi <simon.marchi@ericsson.com>
9353
9354 * remote.c (remote_add_target_side_commands): Use range-based
9355 for loop.
9356
7d45f3df
YQ
93572017-03-03 Yao Qi <yao.qi@linaro.org>
9358
9359 PR gdb/21165
9360 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
9361 value is lazy.
9362 * valprint.c (common_val_print): Likewise.
9363
65b48a81
PB
93642017-02-28 Peter Bergner <bergner@vnet.ibm.com>
9365
9366 * NEWS: Mention new set/show disassembler-options commands.
9367 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
9368 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
9369 (prospective_options): New static variable.
9370 (gdb_disassembler::gdb_disassembler): Initialize
9371 m_di.disassembler_options.
9372 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
9373 (get_disassembler_options): New function.
9374 (set_disassembler_options): Likewise.
9375 (set_disassembler_options_sfunc): Likewise.
9376 (show_disassembler_options_sfunc): Likewise.
9377 (disassembler_options_completer): Likewise.
9378 (_initialize_disasm): Likewise.
9379 * disasm.h (get_disassembler_options): New prototype.
9380 (set_disassembler_options): Likewise.
9381 * gdbarch.sh (gdbarch_disassembler_options): New variable.
9382 (gdbarch_verify_disassembler_options): Likewise.
9383 * gdbarch.c: Regenerate.
9384 * gdbarch.h: Likewise.
9385 * arm-tdep.c (num_disassembly_options): Delete.
9386 (set_disassembly_style): Likewise.
9387 (arm_disassembler_options): New static variable.
9388 (set_disassembly_style_sfunc): Convert short style name into long
9389 option name. Call set_disassembler_options.
9390 (show_disassembly_style_sfunc): New function.
9391 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
9392 set_gdbarch_verify_disassembler_options.
9393 (_initialize_arm_tdep): Delete regnames variable and update callers.
9394 (arm_disassembler_options): Initialize.
9395 (disasm_options): New variable.
9396 (num_disassembly_options): Rename from this...
9397 (num_disassembly_styles): ...to this. Compute by scanning through
9398 disasm_options.
9399 (valid_disassembly_styles): Initialize using disasm_options.
9400 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
9401 set_arm_regname_option.
9402 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
9403 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
9404 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
9405 set_gdbarch_verify_disassembler_options.
9406 * s390-tdep.c (s390_disassembler_options): New static variable.
9407 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
9408 set_gdbarch_verify_disassembler_options.
9409
d538e36d
SM
94102017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9411
9412 * remote.c (remote_add_target_side_condition): Remove "struct"
9413 keyword from range-based for loop.
9414
83621223
SM
94152017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9416
9417 * remote.c (remote_add_target_side_condition): Use range-based
9418 for loop. Update comment.
9419
2123df0e
YQ
94202017-02-27 Yao Qi <yao.qi@linaro.org>
9421
9422 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
9423
8e368124
AH
94242017-02-26 Alan Hayward <alan.hayward@arm.com>
9425
9426 * regcache.c (regcache_raw_update): New function.
9427 (regcache_raw_read): Move code to regcache_raw_update.
9428 * regcache.h (regcache_raw_update): New declaration.
9429 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
9430
a49dd8dd
JK
94312017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9432
9433 * dwarf2read.c (create_debug_type_hash_table): Initialize
9434 header.signature and header.type_offset_in_tu.
9435
34e4bae9
PA
94362017-02-24 Pedro Alves <palves@redhat.com>
9437
9438 * symtab.c (make_file_symbol_completion_list_1): Use
9439 add_symtab_completions.
9440
b0e4b369
AH
94412017-02-24 Alan Hayward <alan.hayward@arm.com>
9442
9443 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
9444
975c21ab
AH
94452017-02-24 Alan Hayward <alan.hayward@arm.com>
9446
9447 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
9448 I386_MAX_REGISTER_SIZE.
9449 (i386_pseudo_register_write): Likewise.
9450 (i386_process_record): Likewise.
9451 * i387-tdep.c (i387_supply_xsave): Likewise.
9452 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
9453 (store_register): Likewise.
9454
14bc53a8
PA
94552017-02-23 Pedro Alves <palves@redhat.com>
9456
9457 * ada-lang.c: Include "common/function-view.h".
9458 (ada_iterate_over_symbols): Adjust to use function_view as
9459 callback type.
9460 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
9461 (ada_make_symbol_completion_list): Use a lambda.
9462 (ada_exc_search_name_matches): Delete.
9463 (name_matches_regex): New.
9464 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
9465 * compile/compile-c-support.c: Include "common/function-view.h".
9466 (print_one_macro): Change prototype to accept a ui_file pointer.
9467 (write_macro_definitions): Use a lambda.
9468 * dwarf2read.c: Include "common/function-view.h".
9469 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9470 (dw2_expand_symtabs_matching): Adjust to use function_view as
9471 callback type.
9472 * language.h: Include "common/function-view.h".
9473 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
9474 function_view as callback type.
9475 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
9476 * linespec.c: Include "common/function-view.h".
9477 (collect_info::add_symbol): New method.
9478 (struct symbol_and_data_callback, iterate_inline_only, struct
9479 symbol_matcher_data, iterate_name_matcher): Delete.
9480 (iterate_over_all_matching_symtabs): Adjust to use function_view
9481 as callback type and lambdas.
9482 (iterate_over_file_blocks): Adjust to use function_view as
9483 callback type.
9484 (decode_compound_collector): Now a class with private fields.
9485 (decode_compound_collector::release_symbols): New method.
9486 (collect_one_symbol): Rename to...
9487 (decode_compound_collector::operator()): ... this and adjust.
9488 (lookup_prefix_sym): decode_compound_collector construction bits
9489 move to decode_compound_collector ctor. Pass the
9490 decode_compound_collector object directly as callback. Remove
9491 cleanups and use decode_compound_collector::release_symbols
9492 instead.
9493 (symtab_collector): Now a class with private fields.
9494 (symtab_collector::release_symtabs): New method.
9495 (add_symtabs_to_list): Rename to...
9496 (symtab_collector::operator()): ... this and adjust.
9497 (collect_symtabs_from_filename): symtab_collector construction
9498 bits move to symtab_collector ctor. Pass the symtab_collector
9499 object directly as callback. Remove cleanups and use
9500 symtab_collector::release_symtabs instead.
9501 (collect_symbols): Delete.
9502 (add_matching_symbols_to_info): Use lambdas.
9503 * macrocmd.c (print_macro_callback): Delete.
9504 (info_macro_command): Use a lambda.
9505 (info_macros_command): Pass print_macro_definition as callable
9506 directly.
9507 (print_one_macro): Remove 'ignore' parameter.
9508 (macro_list_command): Adjust.
9509 * macrotab.c (macro_for_each_data::fn): Now a function_view.
9510 (macro_for_each_data::user_data): Delete field.
9511 (foreach_macro): Adjust to call the function_view.
9512 (macro_for_each): Adjust to use function_view as callback type.
9513 (foreach_macro_in_scope): Adjust to call the function_view.
9514 (macro_for_each_in_scope): Adjust to use function_view as callback
9515 type.
9516 * macrotab.h: Include "common/function-view.h".
9517 (macro_callback_fn): Declare a prototype instead of a pointer.
9518 Remove "user_data" parameter.
9519 (macro_for_each, macro_for_each_in_scope): Adjust to use
9520 function_view as callback type.
9521 * psymtab.c (partial_map_expand_apply)
9522 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
9523 Adjust to use function_view as callback type and to return bool.
9524 (psym_expand_symtabs_matching): Adjust to use function_view as
9525 callback types.
9526 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
9527 to use function_view as callback type and to return bool.
9528 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
9529 callback types.
9530 * symfile.c (expand_symtabs_matching): Adjust to use function_view
9531 as callback types.
9532 * symfile.h: Include "common/function-view.h".
9533 (expand_symtabs_file_matcher_ftype)
9534 (expand_symtabs_symbol_matcher_ftype)
9535 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
9536 return bool.
9537 (quick_symbol_functions::map_symtabs_matching_filename)
9538 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
9539 function_view as callback type and return bool.
9540 (expand_symtabs_matching): Adjust to use function_view as callback
9541 type.
9542 (maintenance_expand_name_matcher)
9543 (maintenance_expand_file_matcher): Delete.
9544 (maintenance_expand_symtabs): Use lambdas.
9545 * symtab.c (iterate_over_some_symtabs): Adjust to use
9546 function_view as callback types and return bool.
9547 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
9548 of a cleanup.
9549 (lookup_symtab_callback): Delete.
9550 (lookup_symtab): Use a lambda.
9551 (iterate_over_symbols): Adjust to use function_view as callback
9552 type.
9553 (struct search_symbols_data, search_symbols_file_matches)
9554 (search_symbols_name_matches): Delete.
9555 (search_symbols): Use a pair of lambdas.
9556 (struct add_name_data, add_macro_name, symbol_completion_matcher)
9557 (symtab_expansion_callback): Delete.
9558 (default_make_symbol_completion_list_break_on_1): Use lambdas.
9559 * symtab.h: Include "common/function-view.h".
9560 (iterate_over_some_symtabs): Adjust to use function_view as
9561 callback type and return bool.
9562 (iterate_over_symtabs): Adjust to use function_view as callback
9563 type.
9564 (symbol_found_callback_ftype): Remove 'data' parameter and return
9565 bool.
9566 (iterate_over_symbols): Adjust to use function_view as callback
9567 type.
9568
07e253aa
PA
95692017-02-23 Pedro Alves <palves@redhat.com>
9570
9571 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
9572 (%.o) <unittests/%.c>: New pattern.
9573 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
9574 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
9575 * common/function-view.h: New file.
9576 * unittests/function-view-selftests.c: New file.
9577 * configure: Regenerate.
9578
8eaf5320
SM
95792017-02-23 Simon Marchi <simon.marchi@ericsson.com>
9580
9581 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
9582 inferior_ptid.
9583 * go32-nat.c (go32_thread_alive): Likewise.
9584
38768751
YQ
95852017-02-23 Yao Qi <yao.qi@linaro.org>
9586
9587 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
9588 delete.
9589
0a8beaba
YQ
95902017-02-23 Yao Qi <yao.qi@linaro.org>
9591
9592 * varobj.c (varobj_clear_saved_item): Use delete instead of
9593 xfree.
9594 (update_dynamic_varobj_children): Likewise.
9595
58fdfd2c
JK
95962017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9597
9598 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
9599
1b90b139
SM
96002017-02-21 Simon Marchi <simon.marchi@ericsson.com>
9601
9602 * common/enum-flags.h (enum_flags::enum_flags): Initialize
9603 m_enum_value to 0 in default constructor.
9604
2039d74e
EBM
96052017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9606
9607 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
9608 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
9609 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
9610 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
9611 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
9612 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
9613 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
9614 IS_STORE_CONDITIONAL_INSN.
9615
7814882a
JK
96162017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9617
9618 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
9619
0ae60b63
JK
96202017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9621
9622 * NEWS (Changes since GDB 7.12): Add DWARF-5.
9623
0224619f
JK
96242017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9625
9626 * dwarf2read.c (skip_one_die, read_attribute_value)
9627 (dwarf2_const_value_attr, dump_die_shallow)
9628 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9629 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
9630
0af92d60
JK
96312017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9632
9633 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
9634 (dwarf_parse_macro_header): Accept DWARF version 5.
9635 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
9636
216f72a1
JK
96372017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9638
9639 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
9640 DW_AT_GNU_*.
9641 * common/common-exceptions.h (enum errors): Likewise.
9642 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
9643 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
9644 (dwarf_expr_context::execute_stack_op): Likewise.
9645 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
9646 Likewise.
9647 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
9648 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9649 (show_entry_values_debug, call_site_to_target_addr)
9650 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
9651 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
9652 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
9653 (value_of_dwarf_block_entry, indirect_pieced_value)
9654 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
9655 (disassemble_dwarf_expression): Likewise.
9656 * dwarf2read.c (process_die, inherit_abstract_dies)
9657 (read_call_site_scope): Likewise.
9658 * gdbtypes.h (struct func_type, struct call_site_parameter)
9659 (struct call_site): Likewise.
9660 * stack.c (read_frame_arg): Likewise.
9661 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
9662
43988095
JK
96632017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9664
9665 * defs.h (read_unsigned_leb128): New declaration.
9666 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
9667 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
9668 (dwarf2_find_location_expression): Call also
9669 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
9670 * dwarf2loc.h (dwarf2_version): New declaration.
9671 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
9672 rnglists.
9673 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
9674 .debug_rnglists.
9675 (struct dwop_section_names): Add loclists_dwo.
9676 (dwop_section_names): Add .debug_loclists.dwo.
9677 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
9678 (struct dwarf2_per_cu_data): Add dwarf_version.
9679 (struct dwo_sections): Add loclists.
9680 (struct attr_abbrev): Add implicit_const.
9681 (read_indirect_line_string): New declaration.
9682 (read_unsigned_leb128): Delete declaration.
9683 (rcuh_kind): New definition.
9684 (read_and_check_comp_unit_head): Change parameter
9685 is_debug_types_section to section_kind.
9686 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
9687 (read_comp_unit_head): Change parameter abfd to section, add parameter
9688 section_kind. Handle DWARF-5.
9689 (error_check_comp_unit_head): Accept also DWARF version 5.
9690 (read_and_check_comp_unit_head): Change parameter
9691 is_debug_types_section to section_kind.
9692 (read_and_check_type_unit_head): Delete function.
9693 (read_abbrev_offset): Handle DWARF-5.
9694 (create_debug_type_hash_table): Add parameter section_kind. Process
9695 only DW_UT_type. Use signature and type_offset_in_tu from struct
9696 comp_unit_head.
9697 (create_debug_types_hash_table): Update create_debug_type_hash_table
9698 caller.
9699 (create_all_type_units): Call create_debug_type_hash_table.
9700 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
9701 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
9702 caller.
9703 (skip_one_die): Handle DW_FORM_implicit_const.
9704 (dwarf2_rnglists_process): New function.
9705 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
9706 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
9707 (read_attribute_value): Handle DW_FORM_implicit_const,
9708 DW_FORM_line_strp.
9709 (read_attribute): Handle DW_FORM_implicit_const.
9710 (read_indirect_string_at_offset_from): New function from
9711 read_indirect_string_at_offset.
9712 (read_indirect_string_at_offset): Call
9713 read_indirect_string_at_offset_from.
9714 (read_indirect_line_string_at_offset): New function.
9715 (read_indirect_string): New function comment.
9716 (read_indirect_line_string): New function.
9717 (read_unsigned_leb128): Make it global.
9718 (dwarf2_string_attr): Handle DWARF-5.
9719 (add_include_dir_stub, read_formatted_entries): New functions.
9720 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
9721 Handle DWARF-5.
9722 (per_cu_header_read_in): Update read_comp_unit_head caller.
9723 (dwarf2_version): New function.
9724 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
9725 rnglists.
9726 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
9727 fields.
9728
22d2f3ab
JK
97292017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9730
9731 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
9732
5f46c5a5
JK
97332017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9734
9735 * dwarf2read.c (dwarf2_ranges_process): New function from
9736 dwarf2_ranges_read.
9737 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
9738 dwarf2_ranges_process.
9739
78d4d2c5
JK
97402017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9741
9742 * dwarf2read.c (create_debug_type_hash_table): New function from
9743 create_debug_types_hash_table.
9744 (create_debug_types_hash_table): Call create_debug_type_hash_table.
9745 (create_all_type_units, open_and_init_dwo_file): Update
9746 create_debug_types_hash_table callers.
9747
1b076f25
SDJ
97482017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9749
9750 PR gdb/16188
9751 * fork-child.c (trace_start_error): Fix thinko. va_end should
9752 refer to 'ap', not 'args'.
9753
0db8980c
SDJ
97542017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9755 Pedro Alves <palves@redhat.com>
9756
9757 PR gdb/16188
9758 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
9759 calls succeeded.
9760 * fork-child.c (trace_start_error): New function.
9761 (trace_start_error_with_name): Likewise.
9762 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
9763 * inf-ptrace.c (inf_ptrace_me): Likewise.
9764 * inferior.h (trace_start_error): New prototype.
9765 (trace_start_error_with_name): Likewise.
9766
99e8a4f9
SDJ
97672017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
9768
9769 PR gdb/21164
9770 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
9771 NULL before using it.
9772 * symmisc.c (maintenance_print_symbols): Likewise.
9773 (maintenance_print_msymbols): Likewise.
9774
4e746bb6
TW
97752017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9776
9777 * NEWS: Add record Python bindings entry.
9778
97792017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9780
9781 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
9782 py-record-full.o.
9783 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
9784 * python/py-record-btrace.c, python/py-record-btrace.h,
9785 python/py-record-full.c, python/py-record-full.h: New file.
9786 * python/py-record.c: Add include for py-record-btrace.h and
9787 py-record-full.h.
9788 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
9789 recpy_instruction_history, recpy_function_call_history, recpy_begin,
9790 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
9791 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
9792 New definition.
9793 (gdbpy_initialize_btrace): New export.
9794 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
9795
97962017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9797
9798 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
9799 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
9800 * python/py-record.c: New file.
9801 * python/python-internal.h (gdbpy_start_recording,
9802 gdbpy_current_recording, gdpy_stop_recording,
9803 gdbpy_initialize_record): New export.
9804 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
9805 (python_GdbMethods): Add gdbpy_start_recording,
9806 gdbpy_current_recording and gdbpy_stop_recording.
9807
98082017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9809
9810 * record-btrace.c (record_btrace_record_method): New function.
9811 (init_record_btrace_ops): Initialize to_record_method.
9812 * record-full.c (record_full_record_method): New function.
9813 (init_record_full_ops, init_record_full_core_ops): Add
9814 record_full_record_method.
9815 * record.h (enum record_method): New enum.
9816 * target-debug.h (target_debug_print_enum_record_method: New define.
9817 * target-delegates.c: Regenerate.
9818 * target.c (target_record_method): New function.
9819 * target.h: Include record.h.
9820 (struct target_ops) <to_record_method>: New field.
9821 (target_record_method): New export.
9822
98232017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9824
9825 * record.h (record_start, record_stop): New export.
9826 * record.c (record_start, record_stop): New function.
9827
98282017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9829
9830 * btrace.c (btrace_fetch): Copy function call segments pointer
9831 into a vector.
9832 (btrace_clear): Clear the vector.
9833 (btrace_find_insn_by_number): Use binary search to find the correct
9834 function call segment.
9835 * btrace.h (brace_fun_p): New typedef.
9836 (struct btrace_thread_info) <functions>: New field.
9837
98382017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9839
9840 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
9841 * btrace.c (btrace_decode_error): ... here. New function.
9842 * btrace.h (btrace_decode_error): New export.
9843
98442017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9845
9846 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
9847 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
9848 btrace_find_insn_by_number): Remove special case for gaps.
9849 * btrace.h (btrace_insn_get_error): New export.
9850 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
9851 * record-btrace.c (btrace_insn_history): Print number for gaps.
9852 (record_btrace_info, record_btrace_goto): Handle gaps.
9853
3f77c769
TT
98542017-02-14 Tom Tromey <tom@tromey.com>
9855
9856 PR python/13598:
9857 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
9858 event.
9859 * python/py-evts.c (gdbpy_initialize_py_events): Add
9860 before_prompt registry.
9861 * python/py-events.h (events_object) <before_prompt>: New field.
9862
4c2c7ac6
MM
98632017-02-14 Markus Metzger <markus.t.metzger@intel.com>
9864
9865 * btrace.c (ftrace_new_switch): Preserve up link and flags.
9866
5cf30ebf
LM
98672017-02-13 Luis Machado <lgustavo@codesourcery.com>
9868
9869 * symfile (_initialize_symfile): Add usage text to the load command's
9870 help text.
9871
26a06916
SM
98722017-02-10 Simon Marchi <simon.marchi@ericsson.com>
9873
9874 * utils.c (defaulted_query): Don't query on secondary UIs.
9875
0b145e37
TT
98762017-02-10 Tom Tromey <tom@tromey.com>
9877
9878 * rust-lang.c (rust_get_disr_info): Remove unused variable.
9879
2d8365c4
TT
98802017-02-10 Tom Tromey <tom@tromey.com>
9881
9882 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
9883 "cleanup" local.
9884 * python/py-type.c (typy_legacy_template_argument): Remove
9885 unnecessary "cleanup" local.
9886
2bb8f231
TT
98872017-02-10 Tom Tromey <tom@tromey.com>
9888
9889 * python/python.c (do_start_initialization): New function, from
9890 _initialize_python.
9891 (_initialize_python): Call do_start_initialization.
9892 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
9893 goto.
9894
1bdfaf42
TT
98952017-02-10 Tom Tromey <tom@tromey.com>
9896
9897 * python/py-prettyprint.c (pretty_print_one_value): Use
9898 gdbpy_ref.
9899
88b6faea
TT
99002017-02-10 Tom Tromey <tom@tromey.com>
9901
9902 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
9903 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
9904 gdbpy_ref.
9905 * python/py-type.c (field_new): Use gdbpy_ref.
9906 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
9907 gdbpy_ref.
9908 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
9909 (py_free_pspace): Likewise.
9910 (pspace_to_pspace_object): Likewise.
9911 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
9912 (py_free_objfile): Likewise.
9913 (objfile_to_objfile_object): Likewise.
9914 * python/py-inferior.c (delete_thread_object): Use
9915 gdbpy_ref.
9916 (infpy_read_memory): Likewise.
9917 (py_free_inferior): Likewise.
9918 * python/py-evtregistry.c (create_eventregistry_object): Use
9919 gdbpy_ref.
9920 * python/py-event.c (create_event_object): Use gdbpy_ref.
9921
7780f186
TT
99222017-02-10 Tom Tromey <tom@tromey.com>
9923
9924 * python/py-ref.h (gdbpy_ref_policy): Now a template.
9925 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
9926 used.
9927 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
9928 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
9929 python/py-exitedevent.c, python/py-finishbreakpoint.c,
9930 python/py-framefilter.c, python/py-function.c,
9931 python/py-inferior.c, python/py-infevents.c,
9932 python/py-linetable.c, python/py-newobjfileevent.c,
9933 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
9934 python/py-signalevent.c, python/py-stopevent.c,
9935 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
9936 python/py-unwind.c, python/py-utils.c, python/py-value.c,
9937 python/py-varobj.c, python/py-xmethods.c, python/python.c,
9938 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
9939
d4b0bb18
TT
99402017-02-10 Tom Tromey <tom@tromey.com>
9941
9942 * ui-out.h (ui_out_emit_type): New class.
9943 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
9944 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
9945 and ui_out_emit_tuple.
9946 (enumerate_locals): Likewise.
9947 (py_mi_print_variables, py_print_locals, py_print_args): Use
9948 ui_out_emit_list.
9949 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
9950 ui_out_emit_list.
9951 * common/gdb_optional.h: New file.
9952
f67f945c
MG
99532017-02-10 Martin Galvan <martingalvan@sourceware.org>
9954
9955 * MAINTAINERS (Write After Approval): Update my e-mail address.
9956
18da0c51
MG
99572017-02-10 Martin Galvan <martingalvan@sourceware.org>
9958
9959 PR gdb/21122
9960 * breakpoint.c (_initialize_breakpoint): Update the help description
9961 of the 'commands' command to indicate that it takes a list argument.
9962
62c14536
SM
99632017-02-09 Simon Marchi <simon.marchi@ericsson.com>
9964
9965 * interps.c (current_interp_set_logging): Remove "return".
9966
ff6fa247
GB
99672017-02-09 Gary Benson <gbenson@redhat.com>
9968
9969 * symtab.c (add_symtab_completions): Prevent NULL pointer
9970 dereference.
9971
a474bd8e
PA
99722017-02-08 Pedro Alves <palves@redhat.com>
9973
9974 * interps.c (interp::interp): Remove reference to quiet_p.
9975 (interp_set): Make static. Remove dead "Switching to" output
9976 code.
9977 (interp_quiet_p, interp_set_quiet): Delete.
9978 (interpreter_exec_cmd): Don't set the interpreter quiet.
9979 * interps.h (interp_quiet_p): Make static.
9980 (class interp) <quiet_p>: Remove field
9981
3d7b173c
JG
99822017-02-08 Jerome Guitton <guitton@adacore.com>
9983
604c4576
JG
9984 * cli/cli-decode.c (find_command_name_length): Make it extern.
9985 * cli/cli-decode.h (find_command_name_length): Declare.
9986 * cli/cli-script.c (command_name_equals, line_first_arg):
9987 New functions.
9988 (process_next_line): Use cli-decode to parse command names.
9989 (build_command_line): Make args a constant pointer.
9990
99912017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 9992
3d7b173c
JG
9993 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
9994 Remove case-insensitive search.
9995
1291063d
JM
99962017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
9997
9998 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
9999 at the end of the line. Avoids an ARI warning.
10000
20b477a7
LM
100012017-02-06 Luis Machado <lgustavo@codesourcery.com>
10002
10003 * NEWS: Mention support for record/replay of Intel 64 rdrand and
10004 rdseed instructions.
10005 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
10006
3f7b46f2
IR
100072017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
10008
10009 PR tdep/20936
10010 Provide and use sparc32 and sparc64 target description XML files.
10011 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
10012 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
10013 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
10014 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
10015 * features/sparc/sparc32-solaris.xml: New file.
10016 * features/sparc/sparc64-solaris.xml: New file.
10017 * features/sparc/sparc32-solaris.c: Generated.
10018 * features/sparc/sparc64-solaris.c: Generated.
10019 * sparc-tdep.h: Account for differences in target descriptions.
10020 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
10021 (sparc32_register_type): Use target provided registers.
10022 (validate_tdesc_registers): New function.
10023 (sparc32_gdbarch_init): Use tdesc_has_registers.
10024 Set pseudoregister functions.
10025 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
10026 (sparc64_register_type): Use target provided registers.
10027 (sparc64_init_abi): Set pseudoregister functions.
10028
f0fd41c1
TT
100292017-02-03 Tom Tromey <tom@tromey.com>
10030
10031 PR rust/21097:
10032 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
10033 with a single member.
10034
d6f9b0fb
PA
100352017-02-03 Pedro Alves <palves@redhat.com>
10036
10037 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
10038 (cli_interp_base::~cli_interp_base): New.
10039 (cli_interp): New struct.
10040 (as_cli_interp): Cast the interp itself to cli_interp.
10041 (cli_interpreter_pre_command_loop): Rename to ...
10042 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
10043 parameter.
10044 (cli_interpreter_init): Rename to ...
10045 (cli_interp::init): ... this. Remove 'self' parameter. Use
10046 boolean. Make extern.
10047 (cli_interpreter_resume): Rename to ...
10048 (cli_interp::resume): ... this. Remove 'data' parameter. Make
10049 extern.
10050 (cli_interpreter_suspend): Rename to ...
10051 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
10052 extern.
10053 (cli_interpreter_exec): Rename to ...
10054 (cli_interp::exec): ... this. Remove 'data' parameter. Make
10055 extern.
10056 (cli_interpreter_supports_command_editing): Rename to ...
10057 (cli_interp_base::supports_command_editing): ... this. Remove
10058 'interp' parameter. Make extern.
10059 (cli_ui_out): Rename to ...
10060 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
10061 Make extern.
10062 (cli_set_logging): Rename to ...
10063 (cli_interp_base::set_logging): ... this. Remove 'interp'
10064 parameter. Make extern.
10065 (cli_interp_procs): Delete.
10066 (cli_interp_factory): Adjust to use "new".
10067 * cli/cli-interp.h: Include "interps.h".
10068 (struct cli_interp_base): New struct.
10069 * interps.c (struct interp): Delete. Fields moved to interps.h.
10070 (interp_new): Delete.
10071 (interp::interp, interp::~interp): New.
10072 (interp_set): Use bool, and return void. Assume the interpreter
10073 has suspend, init and resume methods, and that the all return
10074 void.
10075 (set_top_level_interpreter): interp_set returns void.
10076 (interp_ui_out): Adapt.
10077 (current_interp_set_logging): Adapt.
10078 (interp_data): Delete.
10079 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
10080 (interp_exec): Adapt.
10081 (top_level_interpreter_data): Delete.
10082 * interps.h (interp_init_ftype, interp_resume_ftype)
10083 (interp_suspend_ftype, interp_exec_ftype)
10084 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
10085 (class interp): New.
10086 (interp_new): Delete.
10087 (interp_set): Now returns void. Use bool.
10088 (interp_data, top_level_interpreter_data): Delete.
10089 * mi/mi-common.h: Include interps.h.
10090 (class mi_interp): Inherit from interp. Define a ctor. Declare
10091 init, resume, suspect, exec, interp_ui_out, set_logging and
10092 pre_command_loop methods.
10093 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
10094 (mi_interpreter_init): Rename to ...
10095 (mi_interp::init): ... this. Remove the 'interp' parameter, use
10096 bool, return void and make extern. Adjust.
10097 (mi_interpreter_resume): ... Rename to ...
10098 (mi_interp::resume): ... this. Remove the 'data' parameter,
10099 return void and make extern. Adjust.
10100 (mi_interpreter_suspend): ... Rename to ...
10101 (mi_interp::suspend): ... this. Remove the 'data' parameter,
10102 return void and make extern. Adjust.
10103 (mi_interpreter_exec): ... Rename to ...
10104 (mi_interp::exec): ... this. Remove the 'data' parameter and make
10105 extern. Adjust.
10106 (mi_interpreter_pre_command_loop): ... Rename to ...
10107 (mi_interp::pre_command_loop): ... this. Remove the 'self'
10108 parameter and make extern.
10109 (mi_on_normal_stop_1): Adjust.
10110 (mi_ui_out): Rename to ...
10111 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
10112 parameter and make extern. Adjust.
10113 (mi_set_logging): Rename to ...
10114 (mi_interp::set_logging): ... this. Remove the 'interp'
10115 parameter and make extern. Adjust.
10116 (mi_interp_procs): Delete.
10117 (mi_interp_factory): Adjust to use 'new'.
10118 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
10119 (mi_print_exception, mi_execute_command, mi_load_progress):
10120 Adjust.
10121 * tui/tui-interp.c (tui_interp): New class.
10122 (as_tui_interp): Return a tui_interp pointer.
10123 (tui_on_normal_stop, tui_on_signal_received)
10124 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
10125 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
10126 to use interp::interp_ui_out.
10127 (tui_init): Rename to ...
10128 (tui_interp::init): ... this. Remove the 'self' parameter, use
10129 bool, return void and make extern. Adjust.
10130 (tui_resume): Rename to ...
10131 (tui_interp::resume): ... this. Remove the 'data' parameter,
10132 return void and make extern. Adjust.
10133 (tui_suspend): Rename to ...
10134 (tui_interp::suspend): ... this. Remove the 'data' parameter,
10135 return void and make extern. Adjust.
10136 (tui_ui_out): Rename to ...
10137 (tui_interp::interp_ui_out): ... this. Remove the 'self'
10138 parameter, and make extern. Adjust.
10139 (tui_exec): Rename to ...
10140 (tui_interp::exec): ... this. Remove the 'data' parameter and
10141 make extern.
10142 (tui_interp_procs): Delete.
10143 (tui_interp_factory): Use "new".
10144
65c40c95
TT
101452017-02-02 Tom Tromey <tom@tromey.com>
10146
10147 * rust-exp.y (ends_raw_string, space_then_number)
10148 (rust_identifier_start_p): Return bool.
10149 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
10150 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
10151 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
10152 (rust_chartype_p): Return bool.
10153 (val_print_struct, rust_print_struct_def, rust_print_type):
10154 Update.
10155 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
10156 Return bool.
10157
b50f188d
TT
101582017-02-02 Tom Tromey <tom@tromey.com>
10159
10160 * rust-lang.c: Reindent.
10161
03c85b11
TT
101622017-02-02 Tom Tromey <tom@tromey.com>
10163
10164 * rust-lang.h (rust_crate_for_block): Update.
10165 * rust-lang.c (rust_crate_for_block): Return std::string.
10166 (rust_get_disr_info): Use std:;string, not
10167 gdb::unique_xmalloc_ptr.
10168 * rust-exp.y (crate_name): Update.
10169
9b6da501
PA
101702017-02-02 Pedro Alves <palves@redhat.com>
10171
10172 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
10173 field out of gdb_disassembler_test and make it static.
10174
ec4cb20b
PA
101752017-02-02 Pedro Alves <palves@redhat.com>
10176
10177 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
10178 mi1_interp and mi_interp fields.
10179
5be5dbf0
PA
101802017-02-02 Pedro Alves <palves@redhat.com>
10181
616268b6
PA
10182 * cli/cli-interp.c (struct saved_output_files, saved_output):
10183 Moved from cli/cli-logging.c.
10184 (cli_set_logging): New function.
10185 (cli_interp_procs): Install cli_set_logging.
10186 * cli/cli-interp.h (make_logging_output, cli_set_logging):
10187 Declare.
10188 * cli/cli-logging.c (struct saved_output_files, saved_output):
10189 Moved to cli/cli-interp.c.
10190 (pop_output_files): Don't save outputs here.
10191 (make_logging_output): New function.
10192 (handle_redirections): Don't build tee nor save previous outputs
10193 here.
10194 * interps.c (current_interp_set_logging): Change prototype.
10195 Assume there's always a set_logging_proc method installed.
10196 * interps.h (interp_set_logging_ftype): Change prototype.
10197 (current_interp_set_logging): Change prototype and adjust comment.
10198 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
10199 use make_logging_output.
10200 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
102012017-02-02 Pedro Alves <palves@redhat.com>
10202
5be5dbf0
PA
10203 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
10204 from ...
10205 (set_logging_overwrite): ... here.
10206 (logging_no_redirect_file): Delete.
10207 (set_logging_redirect): Don't handle redirection on the fly.
10208 Instead warn that "logging off" / "logging on" is necessary.
10209 (pop_output_files): Delete references to logging_no_redirect_file.
10210 (show_logging_command): Always speak in terms of what will happen
10211 once logging is reenabled.
10212
c99cc448
PA
102132017-02-02 Pedro Alves <palves@redhat.com>
10214
10215 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
10216
8b172ce7
PA
102172017-02-02 Pedro Alves <palves@redhat.com>
10218
10219 * disasm.c (gdb_pretty_print_insn): Rename to ...
10220 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
10221 Remove gdbarch parameter. Adapt to clear the object's buffers
10222 instead of allocating new buffers, and to print using the object's
10223 gdb_disassembler instead of calling gdb_print_insn.
10224 (dump_insns): Use gdb_pretty_print_disassembler.
10225 * disasm.h (gdb_pretty_print_insn): Delete declaration.
10226 (gdb_pretty_print_disassembler): New class.
10227 * record-btrace.c (btrace_insn_history): Use
10228 gdb_pretty_print_disassembler.
10229
d7e74731
PA
102302017-02-02 Pedro Alves <palves@redhat.com>
10231
10232 * ada-lang.c (type_as_string): Use string_file.
10233 * ada-valprint.c (ada_print_floating): Use string_file.
10234 * ada-varobj.c (ada_varobj_scalar_image)
10235 (ada_varobj_get_value_image): Use string_file.
10236 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
10237 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
10238 * breakpoint.c (update_inserted_breakpoint_locations)
10239 (insert_breakpoint_locations, reattach_breakpoints)
10240 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
10241 (print_it_watchpoint): Use string_file.
10242 (save_breakpoints): Use stdio_file.
10243 * c-exp.y (oper): Use string_file.
10244 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
10245 tee_file.
10246 (pop_output_files): Use delete.
10247 (handle_redirections): Use stdio_file and tee_file.
10248 * cli/cli-setshow.c (do_show_command): Use string_file.
10249 * compile/compile-c-support.c (c_compute_program): Use
10250 string_file.
10251 * compile/compile-c-symbols.c (generate_vla_size): Take a
10252 'string_file &' instead of a 'ui_file *'.
10253 (generate_c_for_for_one_variable): Take a 'string_file &' instead
10254 of a 'ui_file *'. Use string_file.
10255 (generate_c_for_variable_locations): Take a 'string_file &'
10256 instead of a 'ui_file *'.
10257 * compile/compile-internal.h (generate_c_for_for_one_variable):
10258 Take a 'string_file &' instead of a 'ui_file *'.
10259 * compile/compile-loc2c.c (push, pushf, unary, binary)
10260 (print_label, pushf_register_address, pushf_register)
10261 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
10262 'ui_file *'. Adjust.
10263 * compile/compile.c (compile_to_object): Use string_file.
10264 * compile/compile.h (compile_dwarf_expr_to_c)
10265 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
10266 'ui_file *'.
10267 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
10268 (replace_typedefs_qualified_name): Use string_file and
10269 obstack_copy0.
10270 * disasm.c (gdb_pretty_print_insn): Use string_file.
10271 (gdb_disassembly): Adjust reference the null_stream global.
10272 (do_ui_file_delete): Delete.
10273 (gdb_insn_length): Use null_stream.
10274 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
10275 * dwarf2loc.c (dwarf2_compile_property_to_c)
10276 (locexpr_generate_c_location, loclist_generate_c_location): Take a
10277 'string_file &' instead of a 'ui_file *'.
10278 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
10279 * dwarf2read.c (do_ui_file_peek_last): Delete.
10280 (dwarf2_compute_name): Use string_file.
10281 * event-top.c (gdb_setup_readline): Use stdio_file.
10282 * gdbarch.sh (verify_gdbarch): Use string_file.
10283 * gdbtypes.c (safe_parse_type): Use null_stream.
10284 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
10285 string_file.
10286 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
10287 'string_file *' instead of a 'ui_file *'.
10288 (gdbscm_arch_disassemble): Use string_file.
10289 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
10290 * guile/scm-ports.c (class ioscm_file_port): Now a class that
10291 inherits from ui_file.
10292 (ioscm_file_port_delete, ioscm_file_port_rewind)
10293 (ioscm_file_port_put): Delete.
10294 (ioscm_file_port_write): Rename to ...
10295 (ioscm_file_port::write): ... this. Remove file_port_magic
10296 checks.
10297 (ioscm_file_port_new): Delete.
10298 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
10299 ui_file_up.
10300 * guile/scm-type.c (tyscm_type_name): Use string_file.
10301 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
10302 Use string_file.
10303 * infcmd.c (print_return_value_1): Use string_file.
10304 * infrun.c (print_target_wait_results): Use string_file.
10305 * language.c (add_language): Use string_file.
10306 * location.c (explicit_to_string_internal): Use string_file.
10307 * main.c (captured_main_1): Use null_file.
10308 * maint.c (maintenance_print_architecture): Use stdio_file.
10309 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
10310 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
10311 event_channel>: Change type to mi_console_file pointer.
10312 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
10313 (mi_console_file_delete): Delete.
10314 (struct mi_console_file): Delete.
10315 (mi_console_file_magic): Delete.
10316 (mi_console_file_new): Delete.
10317 (mi_console_file::mi_console_file): New.
10318 (mi_console_file_delete): Delete.
10319 (mi_console_file_fputs): Delete.
10320 (mi_console_file::write): New.
10321 (mi_console_raw_packet): Delete.
10322 (mi_console_file::flush): New.
10323 (mi_console_file_flush): Delete.
10324 (mi_console_set_raw): Rename to ...
10325 (mi_console_file::set_raw): ... this.
10326 * mi/mi-console.h (class mi_console_file): New class.
10327 (mi_console_file_new, mi_console_set_raw): Delete.
10328 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
10329 (mi_set_logging): Use delete and tee_file. Adjust.
10330 * mi/mi-main.c (output_register): Use string_file.
10331 (mi_cmd_data_evaluate_expression): Use string_file.
10332 (mi_cmd_data_read_memory): Use string_file.
10333 (mi_cmd_execute, print_variable_or_computed): Use string_file.
10334 * mi/mi-out.c (mi_ui_out::main_stream): New.
10335 (mi_ui_out::rewind): Use main_stream and
10336 string_file.
10337 (mi_ui_out::put): Use main_stream and string_file.
10338 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10339 Allocate a 'string_file' instead.
10340 (mi_out_new): Don't allocate a mem_fileopen stream here.
10341 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10342 (mi_ui_out::main_stream): Declare method.
10343 * printcmd.c (eval_command): Use string_file.
10344 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
10345 * python/py-arch.c (archpy_disassemble): Use string_file.
10346 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
10347 * python/py-frame.c (frapy_str): Use string_file.
10348 * python/py-framefilter.c (py_print_type, py_print_single_arg):
10349 Use string_file.
10350 * python/py-type.c (typy_str): Use string_file.
10351 * python/py-unwind.c (unwind_infopy_str): Use string_file.
10352 * python/py-value.c (valpy_str): Use string_file.
10353 * record-btrace.c (btrace_insn_history): Use string_file.
10354 * regcache.c (regcache_print): Use stdio_file.
10355 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
10356 * remote.c (escape_buffer): Use string_file.
10357 * rust-lang.c (rust_get_disr_info): Use string_file.
10358 * serial.c (serial_open_ops_1): Use stdio_file.
10359 (do_serial_close): Use delete.
10360 * stack.c (print_frame_arg): Use string_file.
10361 (print_frame_args): Remove local mem_fileopen stream, not used.
10362 (print_frame): Use string_file.
10363 * symmisc.c (maintenance_print_symbols): Use stdio_file.
10364 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
10365 Take a 'string_file *' instead of a 'ui_file *'.
10366 * top.c (new_ui): Use stdio_file and stderr_file.
10367 (free_ui): Use delete.
10368 (execute_command_to_string): Use string_file.
10369 (quit_confirm): Use string_file.
10370 * tracepoint.c (collection_list::append_exp): Use string_file.
10371 * tui/tui-disasm.c (tui_disassemble): Use string_file.
10372 * tui/tui-file.c: Don't include "ui-file.h".
10373 (enum streamtype, struct tui_stream): Delete.
10374 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
10375 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
10376 (tui_file::tui_file): New method.
10377 (tui_file_fputs): Delete.
10378 (tui_file_get_strbuf): Delete.
10379 (tui_file::puts): New method.
10380 (tui_file_adjust_strbuf): Delete.
10381 (tui_file_flush): Delete.
10382 (tui_file::flush): New method.
10383 * tui/tui-file.h: Tweak intro comment.
10384 Include ui-file.h.
10385 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
10386 (tui_file_adjust_strbuf): Delete declarations.
10387 (class tui_file): New class.
10388 * tui/tui-io.c (tui_initialize_io): Use tui_file.
10389 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
10390 (tui_register_format): Use string_stream.
10391 * tui/tui-stack.c (tui_make_status_line): Use string_file.
10392 (tui_get_function_from_frame): Use string_file.
10393 * typeprint.c (type_to_string): Use string_file.
10394 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
10395 (null_stream): New global.
10396 (ui_file_delete): Delete.
10397 (ui_file::ui_file): New.
10398 (null_file_isatty): Delete.
10399 (ui_file::~ui_file): New.
10400 (null_file_rewind): Delete.
10401 (ui_file::printf): New.
10402 (null_file_put): Delete.
10403 (null_file_flush): Delete.
10404 (ui_file::putstr): New.
10405 (null_file_write): Delete.
10406 (ui_file::putstrn): New.
10407 (null_file_read): Delete.
10408 (ui_file::putc): New.
10409 (null_file_fputs): Delete.
10410 (null_file_write_async_safe): Delete.
10411 (ui_file::vprintf): New.
10412 (null_file_delete): Delete.
10413 (null_file::write): New.
10414 (null_file_fseek): Delete.
10415 (null_file::puts): New.
10416 (ui_file_data): Delete.
10417 (null_file::write_async_safe): New.
10418 (gdb_flush, ui_file_isatty): Adjust.
10419 (ui_file_put, ui_file_rewind): Delete.
10420 (ui_file_write): Adjust.
10421 (ui_file_write_for_put): Delete.
10422 (ui_file_write_async_safe, ui_file_read): Adjust.
10423 (ui_file_fseek): Delete.
10424 (fputs_unfiltered): Adjust.
10425 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
10426 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
10427 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
10428 (set_ui_file_data): Delete.
10429 (string_file::~string_file, string_file::write)
10430 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
10431 (do_ui_file_as_string, ui_file_as_string): Delete.
10432 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
10433 (struct mem_file): Delete.
10434 (mem_file_new): Delete.
10435 (stdio_file::stdio_file): New.
10436 (mem_file_delete): Delete.
10437 (stdio_file::stdio_file): New.
10438 (mem_fileopen): Delete.
10439 (stdio_file::~stdio_file): New.
10440 (mem_file_rewind): Delete.
10441 (stdio_file::set_stream): New.
10442 (mem_file_put): Delete.
10443 (stdio_file::open): New.
10444 (mem_file_write): Delete.
10445 (stdio_file_magic, struct stdio_file): Delete.
10446 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
10447 (stdio_file::flush): New.
10448 (stdio_file_read): Rename to ...
10449 (stdio_file::read): ... this. Adjust.
10450 (stdio_file_write): Rename to ...
10451 (stdio_file::write): ... this. Adjust.
10452 (stdio_file_write_async_safe): Rename to ...
10453 (stdio_file::write_async_safe) ... this. Adjust.
10454 (stdio_file_fputs): Rename to ...
10455 (stdio_file::puts) ... this. Adjust.
10456 (stdio_file_isatty): Delete.
10457 (stdio_file_fseek): Delete.
10458 (stdio_file::isatty): New.
10459 (stderr_file_write): Rename to ...
10460 (stderr_file::write) ... this. Adjust.
10461 (stderr_file_fputs): Rename to ...
10462 (stderr_file::puts) ... this. Adjust.
10463 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
10464 (stderr_file::stderr_file): New.
10465 (tee_file_magic): Delete.
10466 (struct tee_file): Delete.
10467 (tee_file::tee_file): New.
10468 (tee_file_new): Delete.
10469 (tee_file::~tee_file): New.
10470 (tee_file_delete): Delete.
10471 (tee_file_flush): Rename to ...
10472 (tee_file::flush): ... this. Adjust.
10473 (tee_file_write): Rename to ...
10474 (tee_file::write): ... this. Adjust.
10475 (tee_file::write_async_safe): New.
10476 (tee_file_fputs): Rename to ...
10477 (tee_file::puts): ... this. Adjust.
10478 (tee_file_isatty): Rename to ...
10479 (tee_file::isatty): ... this. Adjust.
10480 * ui-file.h (struct obstack, struct ui_file): Don't
10481 forward-declare.
10482 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
10483 (ui_file_write_ftype)
10484 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
10485 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
10486 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
10487 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
10488 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
10489 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
10490 (set_ui_file_fseek): Delete.
10491 (ui_file_data, ui_file_delete, ui_file_rewind)
10492 (struct ui_file): New.
10493 (ui_file_up): New.
10494 (class null_file): New.
10495 (null_stream): Declare.
10496 (ui_file_write_for_put, ui_file_put): Delete.
10497 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
10498 Delete.
10499 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
10500 (gdb_fopen, tee_file_new): Delete.
10501 (struct string_file): New.
10502 (struct stdio_file): New.
10503 (stdio_file_up): New.
10504 (struct stderr_file): New.
10505 (class tee_file): New.
10506 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
10507 of a 'ui_file *'. Adjust.
10508 * ui-out.h (class ui_out) <field_stream>: Likewise.
10509 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
10510 (null_stream): Delete.
10511 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
10512 Adjust.
10513 * utils.h (struct ui_file): Delete forward declaration..
10514 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
10515 (error_stream): Take a 'string_file &' instead of a
10516 'ui_file *'.
10517 * varobj.c (varobj_value_get_print_value): Use string_file.
10518 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
10519 * gdbarch.c: Regenerate.
10520
187808b0
PA
105212017-02-02 Pedro Alves <palves@redhat.com>
10522
10523 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
10524 (gdb_pretty_print_insn): ... this. Now a free function. Add back
10525 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
10526 Adjust to call gdb_print_insn instead of
10527 gdb_disassembler::print_insn.
10528 (dump_insns, do_mixed_source_and_assembly_deprecated)
10529 (do_mixed_source_and_assembly, do_assembly_only): Add back a
10530 'gdbarch' parameter. Remove gdb_disassembler parameter.
10531 (gdb_disassembly): Don't allocate a gdb_disassembler here.
10532 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
10533 declaration.
10534 (gdb_pretty_print_insn): Re-add declaration.
10535 * record-btrace.c (btrace_insn_history): Don't allocate a
10536 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
10537
7a8eb317
SM
105382017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
10539
10540 * disasm.h (gdb_disassembly): Remove file_string parameter.
10541 * disasm.c (gdb_disassembly): Likewise.
10542 * cli/cli-cmds.c (print_disassembly): Adapt.
10543 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10544 * stack.c (do_gdb_disassembly): Likewise.
10545
7346ef59
AA
105462017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
10547
10548 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
10549 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
10550 targets. And if the implicit value is longer than needed, extract
10551 the first bytes instead of the "least significant" ones.
10552
cd4007e4
MM
105532017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10554
10555 * btrace.c (btrace_enable): Do not call btrace_add_pc for
10556 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
10557 (btrace_fetch): Assert can_access_registers_ptid.
10558 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
10559 validate_registers_access.
10560
cf77c34e
MM
105612017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10562
10563 * gdbthread.h (can_access_registers_ptid): New.
10564 * thread.c (can_access_registers_ptid): New.
10565
be85ce7d
PA
105662017-02-01 Pedro Alves <palves@redhat.com>
10567
10568 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
10569
29b0b251
PA
105702017-01-31 Pedro Alves <palves@redhat.com>
10571
10572 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
10573 Fix typos.
10574
289b5b24
PA
105752017-01-31 Pedro Alves <palves@redhat.com>
10576
10577 * stack.c (print_frame_args): Remove local mem_fileopen stream,
10578 not used.
10579
b47413b4
PA
105802017-01-31 Pedro Alves <palves@redhat.com>
10581
10582 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
10583
60adb36c
PA
105842017-01-31 Pedro Alves <palves@redhat.com>
10585
10586 * common/scoped_restore.h
10587 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
10588 change the value's parameter type to T2.
10589 (make_scoped_restore): Likewise.
10590
2735833d
WT
105912017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10592 Richard Henderson <rth@redhat.com>
10593
10594 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
10595 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
10596 GS_BASE for older kernels.
10597 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
10598 GS_BASE for older kernels.
10599 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
10600 and GS_BASE to the offset table.
10601 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
10602 system register group.
10603 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
10604 for older kernels.
10605 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
10606 amd64 ABI.
10607 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
10608 AMD64_GSBASE_REGNUM.
10609 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
10610 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
10611 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
10612 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
10613 i386/64bit-segments.xml in those rules.
10614 * features/i386/64bit-segments.xml: New file.
10615 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
10616 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
10617 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
10618 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
10619 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
10620 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
10621 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
10622 * features/i386/amd64-avx-linux.c: Regenerated.
10623 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
10624 * features/i386/amd64-avx-mpx.c: Regenerated.
10625 * features/i386/amd64-avx512-linux.c: Regenerated.
10626 * features/i386/amd64-linux.c: Regenerated.
10627 * features/i386/amd64-mpx-linux.c: Regenerated.
10628 * features/i386/i386-avx-mpx-linux.c: Regenerated.
10629 * features/i386/i386-avx-mpx.c: Regenerated.
10630 * features/i386/x32-avx-linux.c: Regenerated.
10631 * features/i386/x32-avx512-linux.c: Regenerated.
10632 * regformats/i386/amd64-avx-linux.dat: Regenerated.
10633 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
10634 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
10635 * regformats/i386/amd64-linux.dat: Regenerated.
10636 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
10637 * regformats/i386/x32-avx-linux.dat: Regenerated.
10638 * regformats/i386/x32-avx512-linux.dat: Regenerated.
10639 * regformats/i386/x32-linux.dat: Regenerated.
10640
8884e97e
WT
106412017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10642
10643 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
10644 Set to AMD64_NUM_REGS.
10645
7005d26a
WT
106462017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10647
10648 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
10649 that checks validity of a register number.
10650
4bd2e1b2
KC
106512017-01-27 Kees Cook <keescook@google.com>
10652
10653 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
10654 fetch_fpregs if target has fpa registers.
10655 (arm_linux_store_inferior_registers): Call store_fpregs if target
10656 has fpa registers.
10657
7cf1de6c
AA
106582017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
10659
10660 * cris-tdep.c (cris_gdbarch_init): Remove check for
10661 info.byte_order and force it to BFD_ENDIAN_LITTLE.
10662
874a1c8c
AT
106632017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10664
10665 * corelow.c (get_core_register_section): Check for regset
10666 existence before checking for REGSET_VARIABLE_SIZE.
10667
d8b49cf0
YQ
106682017-01-26 Yao Qi <yao.qi@linaro.org>
10669 Pedro Alves <palves@redhat.com>
10670
10671 PR gdb/20939
10672 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
10673 call memory_error, save memaddr instead.
10674 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
10675 negative, cal memory_error.
10676 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
10677
658ca58c
YQ
106782017-01-26 Yao Qi <yao.qi@linaro.org>
10679
10680 * disasm-selftests.c (memory_error_test): New function.
10681 (_initialize_disasm_selftests): Register memory_error_test.
10682
79843d45
YQ
106832017-01-26 Yao Qi <yao.qi@linaro.org>
10684
10685 * Makefile.in (SFILES): Add disasm-selftests.c and
10686 selftest-arch.c.
10687 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
10688 * disasm-selftests.c: New file.
10689 * selftest-arch.c: New file.
10690 * selftest-arch.h: New file.
10691
8cafda32
YQ
106922017-01-26 Yao Qi <yao.qi@linaro.org>
10693
10694 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
10695 to bfd_arch_mep. Don't return 0 if section is not
10696 found. Call print_insn_mep.
10697
e47ad6c0
YQ
106982017-01-26 Pedro Alves <palves@redhat.com>
10699 Yao Qi <yao.qi@linaro.org>
10700
10701 * arm-tdep.c: Include "disasm.h".
10702 (gdb_print_insn_arm): Update code to get gdbarch.
10703 * disasm.c (dis_asm_read_memory): Change it to
10704 gdb_disassembler::dis_asm_read_memory.
10705 (dis_asm_memory_error): Likewise.
10706 (dis_asm_print_address): Likewise.
10707 (gdb_pretty_print_insn): Change it to
10708 gdb_disassembler::pretty_print_insn.
10709 (dump_insns): Add one argument gdb_disassemlber. All
10710 callers updated.
10711 (do_mixed_source_and_assembly_deprecated): Likewise.
10712 (do_mixed_source_and_assembly): Likewise.
10713 (do_assembly_only): Likewise.
10714 (gdb_disassembler::gdb_disassembler): New.
10715 (gdb_disassembler::print_insn): New.
10716 * disasm.h (class gdb_disassembler): New.
10717 (gdb_pretty_print_insn): Remove declaration.
10718 (gdb_disassemble_info): Likewise.
10719 * guile/scm-disasm.c (class gdbscm_disassembler): New.
10720 (gdbscm_disasm_read_memory_worker): Update.
10721 (gdbscm_disasm_read_memory): Update.
10722 (gdbscm_disasm_memory_error): Remove.
10723 (gdbscm_disasm_print_address): Remove.
10724 (gdbscm_disassembler::gdbscm_disassembler): New.
10725 (gdbscm_print_insn_from_port): Update.
10726 * mips-tdep.c: Include disasm.h.
10727 (gdb_print_insn_mips): Update code to get gdbarch.
10728 * record-btrace.c (btrace_insn_history): Update.
10729 * spu-tdep.c: Include disasm.h.
10730 (struct spu_dis_asm_data): Remove.
10731 (struct spu_dis_asm_info): New.
10732 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
10733 SPU id.
10734 (gdb_print_insn_spu): Cast disassemble_info to
10735 spu_dis_asm_info.
10736
80d75874
YQ
107372017-01-26 Yao Qi <yao.qi@linaro.org>
10738
10739 * disasm.c (do_ui_file_delete): Delete.
10740 (gdb_insn_length): Move code creating stream to ...
10741 * utils.c (null_stream): ... here. New function.
10742 * utils.h (null_stream): Declare.
10743
60685cd0
SM
107442017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10745
10746 * python/py-inferior.c (find_thread_object): Return directly
10747 from the loop. Remove "found" variable.
10748
eb1cdb62
JB
107492017-01-21 Joel Brobecker <brobecker@adacore.com>
10750
10751 GDB 7.12.1 released.
10752
b1ce6568
SM
107532017-01-20 Simon Marchi <simon.marchi@ericsson.com>
10754
10755 * python/py-function.c (fnpy_call): Reorder declarations to have
10756 the gdbpy_enter object declared first.
10757 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
10758
6f8b0407
SM
107592017-01-20 Simon Marchi <simon.marchi@ericsson.com>
10760
fec93fb1 10761 PR python/21068
6f8b0407
SM
10762 * python/python-internal.h (PyMem_RawMalloc): Define for
10763 Python < 3.4.
10764 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
10765 PyMem_RawMalloc instead of PyMem_Malloc.
10766
78cbbba8
LM
107672017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
10768 Luis Machado <lgustavo@codesourcery.com>
10769
10770 * NEWS (New commands): Mention flash-erase.
10771 (New MI commands): Mention target-flash-erase.
10772 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
10773 command.
10774 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
10775 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
10776 * target.c (flash_erase_command): New function.
10777 (initialize_targets): Add new flash-erase command.
10778 * target.h (flash_erase_command): New declaration.
10779
2132fe85
JB
107802017-01-20 Joel Brobecker <brobecker@adacore.com>
10781
10782 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
10783 HAVE_SYS_PROCFS_H is defined.
10784
d1dff226
AH
107852017-01-18 Alan Hayward <alan.hayward@arm.com>
10786
10787 * remote.c (struct cached_reg): Change data into a pointer.
10788 * (stop_reply_dtr): Free data pointers before deleting vector.
10789 (process_stop_reply): Likewise.
10790 (remote_parse_stop_reply): Allocate space for data
10791
9890e433
AH
107922017-01-18 Alan Hayward <alan.hayward@arm.com>
10793
10794 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
10795 MAX_REGISTER_SIZE.
10796 (amd64_pseudo_register_read_value): Likewise.
10797 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
10798 (store_register_using_P): Likewise.
10799 * regcache.c (regcache_xfer_part): Likewise.
10800
7a36499a
IR
108012017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
10802
10803 Split real and pseudo registers.
10804 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
10805 (sparc32_pseudo_regnum): New enum.
10806 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
10807 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
10808 (SPARC32_CP0_REGISTERS): New macro.
10809 (sparc32_pseudo_register_name): New function.
10810 (sparc32_register_name): Use sparc32_pseudo_register_name.
10811 (sparc32_pseudo_register_type): New function.
10812 (sparc32_register_type): Use sparc32_pseudo_register_type.
10813 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
10814 pseudo register numbers.
10815 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
10816 (SPARC64_CP0_REGISTERS): New macro.
10817 (sparc64_pseudo_register_name): New function.
10818 (sparc64_register_name): Use sparc64_pseudo_register_name.
10819 (sparc64_pseudo_register_type): New function.
10820 (sparc64_register_type): Use sparc64_pseudo_register_type.
10821 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
10822 pseudo register numbers.
10823 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
10824 sparc64_store_arguments): Handle pseudo register numbers.
10825
6f8976bf
YQ
108262017-01-13 Yao Qi <yao.qi@linaro.org>
10827
10828 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
10829 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
10830 output.
10831 (getpkt_or_notif_sane_1): Likewise.
10832
e4241ace
YQ
108332017-01-13 Yao Qi <yao.qi@linaro.org>
10834
10835 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
10836 of CC. Pass "-x c++-header" instead of "-x c".
10837
3015c064
SM
108382017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10839
10840 * remote.c (remote_can_async_p): Update comment.
10841
fde1b17d
SM
108422017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10843
10844 * linux-nat.c (linux_nat_can_async_p): Update comment.
10845
ca1ca08b
SM
108462017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10847
10848 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
10849
4ad2da73
SM
108502017-01-11 Simon Marchi <simon.marchi@ericsson.com>
10851
10852 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
10853
c8b23b3f
TT
108542017-01-10 Tom Tromey <tom@tromey.com>
10855
10856 * python/py-type.c (typy_legacy_template_argument): Update.
10857 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
10858 ~demangle_parse_info): Declare new members.
10859 (cp_demangled_name_to_comp): Return unique_ptr.
10860 (cp_demangled_name_parse_free)
10861 (make_cleanup_cp_demangled_name_parse_free)
10862 (cp_new_demangle_parse_info): Remove.
10863 * cp-support.c (do_demangled_name_parse_free_cleanup)
10864 (make_cleanup_cp_demangled_name_parse_free): Remove.
10865 (inspect_type, cp_canonicalize_string_full)
10866 (cp_canonicalize_string): Update.
10867 (mangled_name_to_comp): Change return type.
10868 (cp_class_name_from_physname, method_name_from_physname)
10869 (cp_func_name, cp_remove_params): Update.
10870 * cp-name-parser.y (demangle_parse_info): New constructor, from
10871 cp_new_demangle_parse_info.
10872 (~demangle_parse_info): New destructor, from
10873 cp_demangled_name_parse_free.
10874 (cp_merge_demangle_parse_infos): Update.
10875 (cp_demangled_name_to_comp): Change return type.
10876
1ac32117
TT
108772017-01-10 Tom Tromey <tom@tromey.com>
10878
10879 * top.c (prevent_dont_repeat): Change return type.
10880 * python/python.c (execute_gdb_command): Use std::string.
10881 Update.
10882 * guile/guile.c (gdbscm_execute_gdb_command): Update.
10883 * command.h (prevent_dont_repeat): Change return type.
10884 * breakpoint.c (bpstat_do_actions_1): Update.
10885
0cf08227
TT
108862017-01-10 Tom Tromey <tom@tromey.com>
10887
10888 * value.h (scoped_value_mark::~scoped_value_mark): Call
10889 free_to_mark.
10890 (scoped_value_mark::free_to_mark): New method.
10891 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
10892 scoped_value_mark.
10893
eb115069
TT
108942017-01-10 Tom Tromey <tom@tromey.com>
10895
10896 * python/py-value.c (valpy_dereference, valpy_referenced_value)
10897 (valpy_reference_value, valpy_const_value, valpy_get_address)
10898 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10899 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
10900 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
10901 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
10902 scoped_value_mark.
10903 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
10904 * value.h (scoped_value_mark): New class.
10905
906768f9
TT
109062017-01-10 Tom Tromey <tom@tromey.com>
10907
10908 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
10909 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
10910 * psymtab.c (discard_psymtabs_upto): Remove.
10911 (make_cleanup_discard_psymtabs): Remove.
10912 (struct psymtab_state): Remove.
10913
bef155c3
TT
109142017-01-10 Tom Tromey <tom@tromey.com>
10915
10916 * record-full.c (record_full_save_cleanups): Remove.
10917 (record_full_save): Use gdb::unlinker.
10918 * gcore.c (do_bfd_delete_cleanup): Remove.
10919 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
10920 cleanups.
10921 * dwarf2read.c (unlink_if_set): Remove.
10922 (write_psymtabs_to_index): Use gdb::unlinker.
10923 * common/gdb_unlinker.h: New file.
10924
192b62ce
TT
109252017-01-10 Tom Tromey <tom@tromey.com>
10926
10927 * windows-tdep.c (windows_xfer_shared_library): Update.
10928 * windows-nat.c (windows_make_so): Update.
10929 * utils.h (make_cleanup_bfd_unref): Remove.
10930 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
10931 * symfile.h (symfile_bfd_open)
10932 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
10933 * symfile.c (read_symbols, symbol_file_add)
10934 (separate_debug_file_exists): Update.
10935 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
10936 (generic_load, reread_symbols): Update.
10937 * symfile-mem.c (symbol_file_add_from_memory): Update.
10938 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
10939 (spu_symbol_file_add_from_memory): Update.
10940 * solist.h (struct target_so_ops) <bfd_open>: Return
10941 gdb_bfd_ref_ptr.
10942 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
10943 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
10944 gdb_bfd_ref_ptr.
10945 (solib_map_sections, reload_shared_libraries_1): Update.
10946 * solib-svr4.c (enable_break): Update.
10947 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
10948 * solib-frv.c (enable_break2): Update.
10949 * solib-dsbt.c (enable_break): Update.
10950 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
10951 gdb_bfd_ref_ptr.
10952 (darwin_solib_get_all_image_info_addr_at_init): Update.
10953 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
10954 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
10955 * record-full.c (record_full_save): Update.
10956 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
10957 * procfs.c (insert_dbx_link_bpt_in_file): Update.
10958 * minidebug.c (find_separate_debug_file_in_section): Return
10959 gdb_bfd_ref_ptr.
10960 * machoread.c (macho_add_oso_symfile): Change abfd to
10961 gdb_bfd_ref_ptr.
10962 (macho_symfile_read_all_oso): Update.
10963 (macho_check_dsym): Return gdb_bfd_ref_ptr.
10964 (macho_symfile_read): Update.
10965 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
10966 (jit_bfd_try_read_symtab): Update.
10967 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10968 (gdb_bfd_openw, gdb_bfd_openr_iovec)
10969 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
10970 gdb_bfd_ref_ptr.
10971 (gdb_bfd_ref_policy): New struct.
10972 (gdb_bfd_ref_ptr): New typedef.
10973 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10974 (gdb_bfd_openw, gdb_bfd_openr_iovec)
10975 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
10976 gdb_bfd_ref_ptr.
10977 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
10978 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
10979 (gcore_command): Update.
10980 * exec.c (exec_file_attach): Update.
10981 * elfread.c (elf_symfile_read): Update.
10982 * dwarf2read.c (dwarf2_get_dwz_file): Update.
10983 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
10984 (open_and_init_dwo_file): Update.
10985 (open_dwp_file): Return gdb_bfd_ref_ptr.
10986 (open_and_init_dwp_file): Update.
10987 * corelow.c (core_open): Update.
10988 * compile/compile-object-load.c (compile_object_load): Update.
10989 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
10990 * coffread.c (coff_symfile_read): Update.
10991 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
10992 gdb_bfd_ref_ptr. Rename.
10993 (dump_bfd_file, restore_command): Update.
10994 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
10995 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
10996 (find_separate_debug_file_by_buildid): Update.
10997
50315b21
TT
109982017-01-10 Tom Tromey <tom@tromey.com>
10999
11000 * common/gdb_ref_ptr.h: New file.
11001 * python/py-ref.h (struct gdbpy_ref_policy): New.
11002 (gdbpy_ref): Now a typedef.
11003
fc4007c9
TT
110042017-01-10 Tom Tromey <tom@tromey.com>
11005
11006 * utils.h (make_cleanup_htab_delete): Don't declare.
11007 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
11008 Remove.
11009 * linespec.c (decode_compound_collector): Add constructor,
11010 destructor.
11011 (lookup_prefix_sym): Remove cleanup.
11012 (symtab_collector): Add constructor, destructor.
11013 (collect_symtabs_from_filename): Remove cleanup.
11014 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
11015 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
11016 Use htab_up.
11017 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
11018 * dwarf2read.c (dw2_expand_symtabs_matching)
11019 (dw2_map_symbol_filenames, dwarf_decode_macros)
11020 (write_psymtabs_to_index): Use htab_up.
11021 * dwarf2loc.c (func_verify_no_selftailcall)
11022 (call_site_find_chain_1, func_verify_no_selftailcall)
11023 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
11024 std::vector, gdb::unique_xmalloc_ptr.
11025 (call_sitep): Remove typedef.
11026 (dwarf2_locexpr_baton_eval): Remove unused variable.
11027
8dbcee67
TT
110282017-01-10 Tom Tromey <tom@tromey.com>
11029
11030 * python/python-internal.h (make_cleanup_py_decref)
11031 (make_cleanup_py_xdecref): Don't declare.
11032 * python/py-utils.c (py_decref, make_cleanup_py_decref)
11033 (py_xdecref, make_cleanup_py_xdecref): Remove.
11034
13df46cc
TT
110352017-01-10 Tom Tromey <tom@tromey.com>
11036
11037 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
11038 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
11039
06fc9bf7
TT
110402017-01-10 Tom Tromey <tom@tromey.com>
11041
11042 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
11043
830a4934
TT
110442017-01-10 Tom Tromey <tom@tromey.com>
11045
11046 * python/py-utils.c (unicode_to_encoded_string)
11047 (python_string_to_target_string)
11048 (python_string_to_target_python_string)
11049 (python_string_to_host_string, gdbpy_obj_to_string)
11050 (get_addr_from_python): Use gdbpy_ref.
11051
4586d543
TT
110522017-01-10 Tom Tromey <tom@tromey.com>
11053
11054 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
11055 gdbpy_ref.
11056
59876f8f
TT
110572017-01-10 Tom Tromey <tom@tromey.com>
11058
11059 * python/python.c (eval_python_command, gdbpy_decode_line)
11060 (gdbpy_run_events, gdbpy_start_type_printers)
11061 (gdbpy_apply_type_printers): Use gdbpy_ref.
11062
97d83487
TT
110632017-01-10 Tom Tromey <tom@tromey.com>
11064
11065 * python/py-param.c (get_doc_string, compute_enum_values): Use
11066 gdbpy_ref.
11067
9205649a
TT
110682017-01-10 Tom Tromey <tom@tromey.com>
11069
11070 * python/py-inferior.c (find_thread_object, build_inferior_list):
11071 Use gdbpy_ref.
11072
74c49d45
TT
110732017-01-10 Tom Tromey <tom@tromey.com>
11074
11075 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11076
16361ffb
TT
110772017-01-10 Tom Tromey <tom@tromey.com>
11078
11079 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
11080 gdbpy_ref.
11081
905f2cca
TT
110822017-01-10 Tom Tromey <tom@tromey.com>
11083
11084 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
11085 extra incref.
11086 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
11087 Use gdbpy_ref.
11088
64081434
TT
110892017-01-10 Tom Tromey <tom@tromey.com>
11090
11091 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11092 gdbpy_ref.
11093
59e9e831
TT
110942017-01-10 Tom Tromey <tom@tromey.com>
11095
11096 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
11097 decref results of PyArg_ParseTupleAndKeywords.
11098
9de10f6d
TT
110992017-01-10 Tom Tromey <tom@tromey.com>
11100
11101 * python/python.c (python_run_simple_file): Use
11102 unique_xmalloc_ptr, gdbpy_ref.
11103
2bd5759d
TT
111042017-01-10 Tom Tromey <tom@tromey.com>
11105
11106 * python/py-prettyprint.c (print_stack_unless_memory_error)
11107 (print_string_repr, print_children): Use gdbpy_ref.
11108 (dummy_python_frame): New class.
11109 (dummy_python_frame::dummy_python_frame): Rename from
11110 push_dummy_python_frame.
11111 (py_restore_tstate): Remove.
11112
3b4e0e01
TT
111132017-01-10 Tom Tromey <tom@tromey.com>
11114
11115 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11116
17a22718
TT
111172017-01-10 Tom Tromey <tom@tromey.com>
11118
11119 * python/python.c (ensure_python_env, restore_python_env):
11120 Remove.
11121 * python/python-internal.h (ensure_python_env): Don't declare.
11122 * varobj.h (varobj_ensure_python_env): Don't declare.
11123 * varobj.c (varobj_ensure_python_env): Remove.
11124
68cdc557
TT
111252017-01-10 Tom Tromey <tom@tromey.com>
11126
11127 * varobj.c (varobj_value_get_print_value): Use
11128 gdbpy_enter_varobj.
11129
1eba6383
TT
111302017-01-10 Tom Tromey <tom@tromey.com>
11131
11132 * python/py-prettyprint.c (print_string_repr, print_children):
11133 Update.
11134 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
11135 of "encoding".
11136 * varobj.c (varobj_value_get_print_value): Update.
11137 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
11138
bde7b3e3
TT
111392017-01-10 Tom Tromey <tom@tromey.com>
11140
11141 * varobj.c (varobj_get_display_hint)
11142 (dynamic_varobj_has_child_method, install_new_value_visualizer)
11143 (varobj_set_visualizer, free_variable): Use
11144 gdbpy_enter_varobj.
11145
a7785f8c
TT
111462017-01-10 Tom Tromey <tom@tromey.com>
11147
11148 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
11149 (do_finish_initialization): New function. Use gdbpy_ref.
11150 (gdbpy_finish_initialization): Use gdbpy_enter. Call
11151 do_finish_initialization.
11152
2865bfce
TT
111532017-01-10 Tom Tromey <tom@tromey.com>
11154
11155 * python/py-param.c (get_set_value, get_show_value): Use
11156 gdbpy_enter, gdbpy_ref.
11157
0e9dcc75
TT
111582017-01-10 Tom Tromey <tom@tromey.com>
11159
11160 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
11161
12a5cedd
TT
111622017-01-10 Tom Tromey <tom@tromey.com>
11163
11164 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
11165
788f2586
TT
111662017-01-10 Tom Tromey <tom@tromey.com>
11167
11168 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
11169 Use gdbpy_enter_varobj.
11170
6cd67bea
TT
111712017-01-10 Tom Tromey <tom@tromey.com>
11172
11173 * varobj.c (gdbpy_enter_varobj): New constructor.
11174 * python/python-internal.h (gdbpy_enter_varobj): New class.
11175 * python/py-varobj.c (py_varobj_get_iterator): Use
11176 gdbpy_enter_varobj.
11177
14b122bf
TT
111782017-01-10 Tom Tromey <tom@tromey.com>
11179
11180 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
11181 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11182 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
11183 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
11184 unique_xmalloc_ptr.
11185 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
11186
bf1ca3b9
TT
111872017-01-10 Tom Tromey <tom@tromey.com>
11188
11189 * python/py-xmethods.c (invoke_match_method): Use
11190 gdbpy_ref.
11191
572a5524
TT
111922017-01-10 Tom Tromey <tom@tromey.com>
11193
11194 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
11195 gdbpy_enter, gdbpy_ref.
11196
396a78b6
TT
111972017-01-10 Tom Tromey <tom@tromey.com>
11198
11199 * python/python.c (python_interactive_command): Use gdbpy_enter.
11200
a88b13c7
TT
112012017-01-10 Tom Tromey <tom@tromey.com>
11202
11203 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
11204 gdbpy_ref.
11205
e9f0c363
TT
112062017-01-10 Tom Tromey <tom@tromey.com>
11207
11208 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
11209 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11210
6349f452
TT
112112017-01-10 Tom Tromey <tom@tromey.com>
11212
11213 * utils.h (htab_deleter): New struct.
11214 (htab_up): New typedef.
11215 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
11216 gdbpy_enter, gdbpy_ref, htab_up.
11217
c0171de6
TT
112182017-01-10 Tom Tromey <tom@tromey.com>
11219
11220 * python/py-unwind.c (pending_frame_invalidate): Remove.
11221 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
11222
f18e226f
TT
112232017-01-10 Tom Tromey <tom@tromey.com>
11224
11225 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
11226 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
11227
c57af3f1
TT
112282017-01-10 Tom Tromey <tom@tromey.com>
11229
11230 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
11231
60e600ec
TT
112322017-01-10 Tom Tromey <tom@tromey.com>
11233
11234 * python/python.c (gdbpy_eval_from_control_command)
11235 (gdbpy_source_script, gdbpy_run_events)
11236 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
11237 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
11238 gdbpy_enter.
11239
bf7da5b0
TT
112402017-01-10 Tom Tromey <tom@tromey.com>
11241
11242 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
11243
2d38bced
TT
112442017-01-10 Tom Tromey <tom@tromey.com>
11245
11246 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
11247
07bc7329
TT
112482017-01-10 Tom Tromey <tom@tromey.com>
11249
11250 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
11251 (python_on_inferior_call_pre, python_on_inferior_call_post)
11252 (python_on_memory_change, python_on_register_change)
11253 (python_inferior_exit, python_new_objfile, add_thread_object)
11254 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
11255
6e7c365e
TT
112562017-01-10 Tom Tromey <tom@tromey.com>
11257
11258 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
11259 (bpfinishpy_handle_exit): Use gdbpy_enter.
11260
6ba0cd40
TT
112612017-01-10 Tom Tromey <tom@tromey.com>
11262
11263 * python/py-cmd.c (cmdpy_destroyer)
11264 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
11265 gdbpy_enter.
11266
de2dc875
TT
112672017-01-10 Tom Tromey <tom@tromey.com>
11268
11269 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11270 gdbpy_enter.
11271 (gdbpy_breakpoint_has_cond): Likewise.
11272
4ecee2c4
TT
112732017-01-10 Tom Tromey <tom@tromey.com>
11274
11275 * python/python.c (gdbpy_enter): New constructor.
11276 (~gdbpy_enter): New destructor.
11277 (restore_python_env, ensure_python_env): Rewrite.
11278 * python/python-internal.h (gdbpy_enter): New class.
11279
37fce74f
TT
112802017-01-10 Tom Tromey <tom@tromey.com>
11281
11282 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
11283
53a0cca3
TT
112842017-01-10 Tom Tromey <tom@tromey.com>
11285
11286 * python/py-value.c (value_has_field, get_field_flag)
11287 (get_field_type, valpy_getitem, convert_value_from_python): Use
11288 gdbpy_ref.
11289
ff3724f5
TT
112902017-01-10 Tom Tromey <tom@tromey.com>
11291
11292 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
11293 gdbpy_ref.
11294
0700aea5
TT
112952017-01-10 Tom Tromey <tom@tromey.com>
11296
11297 * python/py-prettyprint.c (search_pp_list)
11298 (find_pretty_printer_from_objfiles)
11299 (find_pretty_printer_from_progspace)
11300 (find_pretty_printer_from_gdb, find_pretty_printer)
11301 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
11302 gdbpy_ref.
11303
1bb44c9f
TT
113042017-01-10 Tom Tromey <tom@tromey.com>
11305
11306 * python/py-param.c (call_doc_function): Use gdbpy_ref.
11307
87ce03fd
TT
113082017-01-10 Tom Tromey <tom@tromey.com>
11309
11310 * python/py-linetable.c (build_line_table_tuple_from_pcs)
11311 (ltpy_get_all_source_lines): Use gdbpy_ref.
11312
ee0a3fb8
TT
113132017-01-10 Tom Tromey <tom@tromey.com>
11314
11315 * python/py-framefilter.c (extract_sym, extract_value)
11316 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
11317 gdbpy_ref.
11318
bf2a52fa
TT
113192017-01-10 Tom Tromey <tom@tromey.com>
11320
11321 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
11322
f59fe7f8
TT
113232017-01-10 Tom Tromey <tom@tromey.com>
11324
11325 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
11326
80bd970a
TT
113272017-01-10 Tom Tromey <tom@tromey.com>
11328
11329 * python/py-function.c (convert_values_to_python, fnpy_init): Use
11330 gdbpy_ref.
11331
d1b3de2e
TT
113322017-01-10 Tom Tromey <tom@tromey.com>
11333
11334 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
11335
3bb43384
TT
113362017-01-10 Tom Tromey <tom@tromey.com>
11337
11338 * python/py-type.c (convert_field, make_fielditem, typy_fields)
11339 (typy_range): Use gdbpy_ref.
11340
abf5651e
TT
113412017-01-10 Tom Tromey <tom@tromey.com>
11342
11343 * python/py-threadevent.c (create_thread_event_object): Use
11344 gdbpy_ref.
11345 * python/py-stopevent.c (create_stop_event_object): Simplify.
11346 (emit_stop_event): Use gdbpy_ref.
11347 * python/py-signalevent.c (create_signal_event_object): Use
11348 gdbpy_ref.
11349 * python/py-newobjfileevent.c (create_new_objfile_event_object)
11350 (emit_new_objfile_event, create_clear_objfiles_event_object)
11351 (emit_clear_objfiles_event): Use gdbpy_ref.
11352 * python/py-infevents.c (create_inferior_call_event_object)
11353 (create_register_changed_event_object)
11354 (create_memory_changed_event_object, emit_inferior_call_event)
11355 (emit_memory_changed_event, emit_register_changed_event): Use
11356 gdbpy_ref.
11357 * python/py-exitedevent.c (create_exited_event_object)
11358 (emit_exited_event): Use gdbpy_ref.
11359 * python/py-event.h (evpy_emit_event): Remove
11360 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
11361 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
11362 * python/py-continueevent.c (emit_continue_event): Use
11363 gdbpy_ref.
11364 * python/py-breakpoint.c (gdbpy_breakpoint_created)
11365 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
11366 gdbpy_ref.
11367 * python/py-bpevent.c (create_breakpoint_event_object): Use
11368 gdbpy_ref.
11369
a68ff33e
TT
113702017-01-10 Tom Tromey <tom@tromey.com>
11371
11372 * python/py-ref.h: New file.
11373
7becfd03
SM
113742017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11375
11376 * cli-out.c (cli_ui_out::do_redirect): Change return type to
11377 void.
11378 * cli-out.h (cli_ui_out::do_redirect): Likewise.
11379 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
11380 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
11381 * ui-out.c (ui_out::redirect): Likewise.
11382 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
11383 * cli/cli-logging.c (set_logging_redirect): Update call site of
11384 ui_out::redirect.
11385 (handle_redirections): Likewise.
11386 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
11387 * top.c (execute_command_to_string): Likewise.
11388 * utils.c (do_ui_out_redirect_pop): Likewise.
11389
df294654
SM
113902017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11391
11392 * stack.c (_initialize_stack): Update "frame" command help message.
11393
f5e6296e
IB
113942017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
11395
11396 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
11397
0e2d6fa6
YQ
113982017-01-06 Yao Qi <yao.qi@linaro.org>
11399
11400 * x86-linux-nat.h: Include gdb_proc_service.h.
11401
44d6d3f9
YQ
114022017-01-06 Yao Qi <yao.qi@linaro.org>
11403
11404 * ser-base.h: Include serial.h.
11405
656731fe
YQ
114062017-01-06 Yao Qi <yao.qi@linaro.org>
11407
11408 * ppc-linux-tdep.h: Include ppc-tdep.h.
11409
1ca8f924
YQ
114102017-01-06 Yao Qi <yao.qi@linaro.org>
11411
11412 * nat/amd64-linux-siginfo.h: Include signal.h.
11413
bc3008c4
YQ
114142017-01-06 Yao Qi <yao.qi@linaro.org>
11415
11416 * nat/aarch64-linux-hw-point.h: Include break-common.h.
11417
66c80d03
YQ
114182017-01-06 Yao Qi <yao.qi@linaro.org>
11419
11420 * mi/mi-parse.h: Include mi-cmds.h.
11421
051d2dda
YQ
114222017-01-06 Yao Qi <yao.qi@linaro.org>
11423
11424 * inf-loop.c: Don't include "target.h".
11425 * inf-loop.h: Include it here.
11426
8018d34f
YQ
114272017-01-06 Yao Qi <yao.qi@linaro.org>
11428
11429 * dfp.h: Include "dboulest.h" and "expression.h".
11430
c0b8369c
YQ
114312017-01-06 Yao Qi <yao.qi@linaro.org>
11432
11433 * ax-gdb.h: Include "ax.h".
11434
ad5cba2a
YQ
114352017-01-06 Yao Qi <yao.qi@linaro.org>
11436
11437 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
11438 with nat/gdb_ptrace.h.
11439
1c33cd7f
YQ
114402017-01-05 Yao Qi <yao.qi@linaro.org>
11441
11442 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
11443 new line.
11444 (mips64_fbsd_sigframe_init): Likewise.
11445
c988ac1d
JB
114462017-01-04 John Baldwin <jhb@FreeBSD.org>
11447
11448 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
11449 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
11450
b268007c
JB
114512017-01-04 John Baldwin <jhb@FreeBSD.org>
11452
11453 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
11454 * NEWS: Mention new FreeBSD/mips native configuration.
11455 * config/mips/fbsd.mh: New file.
11456 * configure.host: Add mips*-*-freebsd*.
11457 * mips-fbsd-nat.c: New file.
11458
387360da
JB
114592017-01-04 John Baldwin <jhb@FreeBSD.org>
11460
11461 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
11462 (ALLDEPFILES): Add mips-fbsd-tdep.c.
11463 * NEWS: Mention new FreeBSD/mips target.
11464 * configure.tgt: Add mips*-*-freebsd*.
11465 * mips-fbsd-tdep.c: New file.
11466 * mips-fbsd-tdep.h: New file.
11467
2aaaf250
YQ
114682017-01-04 Yao Qi <yao.qi@linaro.org>
11469
11470 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
11471 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
11472
61baf725
JB
114732017-01-01 Joel Brobecker <brobecker@adacore.com>
11474
6dbb839a 11475 Update copyright year range in all GDB files.
61baf725 11476
c113e7ff 114772017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 11478
c113e7ff 11479 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 11480
c113e7ff 11481For older changes see ChangeLog-2016.
c906108c
SS
11482\f
11483Local Variables:
11484mode: change-log
11485left-margin: 8
11486fill-column: 74
11487version-control: never
57da7796 11488coding: utf-8
c906108c 11489End:
This page took 2.600891 seconds and 4 git commands to generate.